*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background:#f4f7fc;color:#1a3050;font:16px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
header:not(.tz-site-shell),main,footer{max-width:1220px;width:100%;margin:auto;padding:24px;min-width:0}
header:not(.tz-site-shell){display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #e0e8f3}
a{color:#1769e8;text-decoration:none}
.brand{font-weight:650;font-size:23px}
nav:not(.tz-shell-nav):not(.tz-shell-mobile){display:flex;gap:24px;flex-wrap:wrap}
.back{font-size:14px}
.eyebrow{color:#1769e8;font-size:12px;letter-spacing:2px;margin-top:24px;font-weight:600}
h1{font-size:38px;line-height:1.3;margin:10px 0}
.lead{color:#5b6c85;max-width:840px;margin:0 0 18px}
h2{font-size:21px;line-height:1.45;margin:8px 0}
p{overflow-wrap:anywhere}
.scene-switch-bar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.scene-switch-bar a{padding:8px 16px;border-radius:999px;background:#fff;border:1px solid #d5e2f4;color:#354d6d;font-size:14px;font-weight:500;transition:all .15s ease}
.scene-switch-bar a:hover,.scene-switch-bar a[aria-current="true"]{background:#1769ff;color:#fff;border-color:#1769ff}
.scene-brief-panel{background:#fff;border:1px solid #d8e4f5;border-radius:20px;padding:22px;margin:18px 0 24px;box-shadow:0 8px 24px rgba(23,49,83,.04);min-width:0;max-width:100%}
.scene-brief-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px;min-width:0}
.scene-brief-top>div{min-width:0;flex:1 1 240px}
.scene-hook{margin:0 0 10px;font-size:17px;font-weight:700;color:#1769ff;overflow-wrap:anywhere}
.scene-kpis{display:flex;flex-wrap:wrap;gap:8px}
.scene-kpi{font-size:12px;color:#274469;background:#f3f7fe;border:1px solid #dfeaf9;padding:4px 10px;border-radius:8px;font-weight:500}
.scene-copy-btn{padding:9px 16px;border-radius:10px;border:1px solid #1769ff;background:#f4f8ff;color:#1769ff;font-size:13px;font-weight:600;cursor:pointer;max-width:100%}
.scene-copy-btn:hover{background:#1769ff;color:#fff}
.tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
.tier-card{background:#f8fbff;border:1px solid #e1ebf8;border-radius:14px;padding:15px;cursor:pointer;text-align:left;transition:border-color .15s ease,box-shadow .15s ease;min-width:0;width:100%;white-space:normal}
.tier-card:hover,.tier-card.active{border-color:#1769ff;box-shadow:0 6px 18px rgba(23,105,255,.10);background:#fff}
.tier-card-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.tier-card-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eaf2ff;color:#1769ff}
.tier-card-budget{font-size:12px;font-weight:600;color:#1769ff}
.tier-card h3{margin:0 0 6px;font-size:15px;color:#173153;overflow-wrap:anywhere}
.tier-card p{margin:0;font-size:13px;color:#526783;line-height:1.5;overflow-wrap:anywhere}
.hub-controls{display:flex;gap:18px;flex-wrap:wrap;align-items:end;margin:22px 0;min-width:0}
.hub-controls label{display:grid;gap:6px;font-size:13px;color:#526783;min-width:0}
.hub-controls form{display:flex;gap:12px;align-items:end;flex:1 1 260px;min-width:0;max-width:100%}
.tier-filter-bar{display:flex;flex-wrap:wrap;gap:8px}
.tier-filter-bar button{padding:9px 14px;border-radius:999px;font-size:13px;background:#fff;border:1px solid #ccd9ec;color:#425b7d}
.tier-filter-bar button[aria-pressed="true"]{background:#1769ff;border-color:#1769ff;color:#fff;font-weight:600}
input,select,button{font:inherit;border:1px solid #ccd9ec;background:#fff;padding:10px 14px;border-radius:9px;color:inherit}
button{cursor:pointer;color:#1769e8}
input{width:320px;max-width:100%}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.hub-card{background:#fff;border:1px solid #e0e8f3;border-radius:18px;overflow:hidden;padding:24px;display:flex;flex-direction:column}
.hub-card[hidden]{display:none}
.hub-card .meta{color:#5a718f;font-size:13px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tier-pill{display:inline-block;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:700;background:#eaf2ff;color:#1769ff}
.tier-pill.tier-A{background:#ecfdf3;color:#0f766e}
.tier-pill.tier-B{background:#eaf2ff;color:#1769ff}
.tier-pill.tier-C{background:#f3e8ff;color:#7e22ce}
.hub-card ul{padding-left:20px}
.links{display:flex;gap:20px;flex-wrap:wrap}
.hub-card img{width:calc(100% + 48px);height:230px;object-fit:cover;display:block;margin:-24px -24px 18px;background:#e7eef8}
.hub-card p{white-space:pre-wrap;margin:8px 0}
.hub-card .card-budget{font-weight:650;color:#1769ff;font-size:14px;margin-top:auto;padding-top:8px}
#nodeError{background:#fff3da;padding:14px;border-radius:10px}
footer{color:#74859a}
#collectionMore{display:block;margin:30px auto}
#collectionMore[hidden]{display:none}
@media(max-width:960px){.hub-grid,.tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){header{align-items:start;flex-direction:column;gap:12px}nav{gap:14px}header,main,footer{padding:16px}.hub-grid,.tier-grid{grid-template-columns:1fr}h1{font-size:26px}.scene-brief-panel{padding:16px}.hub-card{padding:18px}.hub-card img{width:calc(100% + 36px);margin:-18px -18px 16px}.hub-controls{display:grid}.hub-controls form{flex:none;width:100%;align-items:stretch;flex-direction:column}input{width:100%}}
@media(prefers-color-scheme:dark){
  body{background:#0b1220;color:#e6eefb}
  header{border-bottom-color:#1e293b}
  a{color:#60a5fa}
  .lead,.hub-card .meta,.tier-card p,.hub-controls label,footer{color:#94a3b8}
  .eyebrow,.scene-hook,.tier-card-budget,.hub-card .card-budget{color:#60a5fa}
  .scene-switch-bar a{background:#111a2e;border-color:#23324d;color:#cbd5e1}
  .scene-switch-bar a:hover,.scene-switch-bar a[aria-current="true"]{background:#2563eb;border-color:#3b82f6;color:#fff}
  .scene-brief-panel,.hub-card{background:#111a2e;border-color:#22304a;box-shadow:0 10px 30px rgba(0,0,0,.35)}
  .tier-card{background:#162238;border-color:#263754}
  .tier-card:hover,.tier-card.active{background:#1b2a46;border-color:#3b82f6}
  .tier-card h3{color:#f1f5f9}
  .tier-card-badge{background:#1e3a8a;color:#bfdbfe}
  .scene-kpi{background:#162238;border-color:#263754;color:#cbd5e1}
  .scene-copy-btn{background:#162238;border-color:#3b82f6;color:#93c5fd}
  .scene-copy-btn:hover{background:#2563eb;color:#fff}
  .tier-filter-bar button,input,select,button{background:#111a2e;border-color:#263754;color:#e2e8f0}
  .tier-filter-bar button[aria-pressed="true"]{background:#2563eb;border-color:#3b82f6;color:#fff}
  .tier-pill.tier-A{background:#064e3b;color:#6ee7b7}
  .tier-pill.tier-B{background:#1e3a8a;color:#93c5fd}
  .tier-pill.tier-C{background:#4c1d95;color:#ddd6fe}
  .hub-card img{background:#1b2840}
  #nodeError{background:#422006;color:#fde68a}
}
