:root {
  --paper: #f6f0e7; --paper2: #efe6d9; --card: #fffaf3; --ink: #2b2733; --ink2: #575062; --muted: #8a8295;
  --line: #e6dccd; --line2: #d9ccb9;
  --gold: #e2a93b; --gold2: #f4d58d; --navy: #2f3b63; --navy2: #3c4c85; --teal: #3fa79c; --coral: #ec7f63;
  --indigo: #6f74de; --pink: #e07bab; --violet: #6c5ce7; --den: #1d1838;
  --p-real: #2e9e6b; --p-conn: #2f7fd0; --p-user: #c07a2a; --p-ai: #8b5cf6; --p-sample: #8d8a96; --p-unavail: #c4525a; --p-verify: #d9961a;
  --shadow: 0 12px 34px -14px rgba(70, 45, 30, .32), 0 2px 6px rgba(70, 45, 30, .06);
  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-disp: "Fraunces", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- board chrome ---------- */
.board-head { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px 28px; background: rgba(246, 240, 231, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.board-head .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-head .brand img { width: 40px; height: 40px; border-radius: 12px; background: #e8e0f4; }
.board-head .brand b { display: block; font-family: var(--f-disp); font-size: 18px; font-weight: 700; color: var(--navy); }
.board-head .brand small { color: var(--muted); font-size: 12.5px; }
.board-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.board-nav a { white-space: nowrap; text-decoration: none; color: var(--ink2); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.board-nav a:hover { background: #fff; color: var(--navy); }
.chip-sample { font: 700 11px var(--f-mono); letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; border: 1.5px dashed var(--p-sample); color: #6f6b78; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(141, 138, 150, .1) 6px 12px); white-space: nowrap; }

main { max-width: 1680px; margin: 0 auto; padding: 0 28px 80px; }
.sec { padding-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head .num { font: 700 12px var(--f-mono); color: var(--gold); letter-spacing: .1em; }
.sec-head h2 { font-family: var(--f-disp); font-weight: 700; font-size: 30px; color: var(--navy); line-height: 1.15; }
.sec-head p { margin: 6px 0 0; color: var(--ink2); max-width: 720px; }
.hint-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd { font: 600 12px var(--f-mono); padding: 5px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }

/* ---------- 16:9 stage ---------- */
.stage-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(70, 45, 30, .45), 0 0 0 1px rgba(70, 45, 30, .06); background: #f8eadb; }
.stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden; font-size: 13px;
  background: radial-gradient(1100px 700px at 38% 18%, #fffaf2 0%, #f9ecdd 42%, #ecdff0 100%); }
.stage.den-on { background: radial-gradient(1100px 700px at 50% 60%, #3a3266 0%, #241f45 55%, #16122c 100%); transition: background .6s; }
#c3d { position: absolute; inset: 0; width: 1600px; height: 900px; display: block; touch-action: none; }
.stage .labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; clip-path: inset(66px 400px 0 90px); }
.glass { background: rgba(255, 250, 243, .94); border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--shadow); border-radius: 18px; }

.topbar { position: absolute; left: 0; right: 0; top: 0; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 14px;
  background: linear-gradient(180deg, rgba(255, 249, 240, .98), rgba(255, 249, 240, .9)); border-bottom: 1px solid rgba(226, 169, 59, .25); }
.tb-brand { display: flex; align-items: center; gap: 12px; }
.tb-brand .logo { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #2f3b63, #4a5a96); padding: 2px; box-shadow: 0 4px 10px -4px rgba(47, 59, 99, .6); }
.tb-brand .logo img { width: 42px; height: 42px; border-radius: 12px; }
.tb-brand h1 { font-family: var(--f-disp); font-size: 21px; font-weight: 700; letter-spacing: .015em; color: var(--navy); line-height: 1.1; }
.tb-brand p { margin: 2px 0 0; font-size: 12px; color: var(--ink2); font-weight: 600; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mode-chip { font: 700 10.5px var(--f-mono); letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; color: #6f6b78; border: 1.5px dashed var(--p-sample); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .6) 0 6px, rgba(141, 138, 150, .1) 6px 12px); }
.audio { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.audio button { width: 32px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); display: grid; place-items: center; }
.audio button:hover { background: #fff; color: var(--navy); }
.audio button.on { background: var(--navy); color: #fff; }
.date-chip { font-weight: 700; font-size: 12px; color: var(--ink2); padding: 0 4px; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.me img { width: 36px; height: 36px; border-radius: 50%; background: #e4ecf8; }
.me b { display: block; font-size: 13px; line-height: 1.1; }
.me small { font-size: 10.5px; color: var(--muted); font-weight: 600; }

.rail { position: absolute; left: 12px; top: 78px; bottom: 12px; width: 74px; padding: 8px 6px; display: flex; flex-direction: column; gap: 2px; }
.rail button { position: relative; border: 0; background: transparent; border-radius: 12px; padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink2); font-size: 10px; font-weight: 700; }
.rail button:hover { background: #fff; color: var(--navy); }
.rail button.active { background: var(--navy); color: #fff; }
.rail .badge { position: absolute; top: 3px; right: 9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10px; display: grid; place-items: center; }

.hero { position: absolute; top: 82px; left: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta { display: flex; align-items: center; gap: 12px; padding: 7px 26px 7px 7px; border-radius: 999px; border: 2px solid var(--gold2); background: linear-gradient(135deg, #2f3b63, #46589a); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .1em; box-shadow: 0 12px 26px -10px rgba(47, 59, 99, .7), 0 0 0 6px rgba(226, 169, 59, .14); animation: ctaGlow 3.2s ease-in-out infinite; }
.cta img { width: 42px; height: 42px; border-radius: 50%; background: #f4ead6; }
.cta:hover { transform: translateY(-1px); }
@keyframes ctaGlow { 50% { box-shadow: 0 12px 26px -10px rgba(47, 59, 99, .7), 0 0 0 11px rgba(226, 169, 59, .08); } }
.hero-sec { display: flex; gap: 6px; flex-wrap: wrap; width: 300px; }
.hero-sec button { border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 250, 243, .95); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; color: var(--ink2); box-shadow: 0 4px 12px -8px rgba(70, 45, 30, .4); }
.hero-sec button:hover { color: var(--navy); background: #fff; }
.hero-sec b { margin-left: 4px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10.5px; }

.brief { position: absolute; left: 98px; bottom: 72px; width: 296px; padding: 13px 13px 11px; }
.brief .hello { font-family: var(--f-disp); font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.brief .sub { font-size: 12px; color: var(--ink2); margin: 3px 0 10px; font-weight: 600; }
.brief .sub b { color: var(--coral); }
.brief .cats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.brief .cat { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px 5px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); cursor: default; }
.brief .cat .k { font: 700 9px var(--f-mono); letter-spacing: .04em; color: var(--ink2); white-space: nowrap; }
.brief .cat .n { display: grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 6px; background: #f1e8dc; font-weight: 800; font-size: 10.5px; }
.brief .cat.hot { border-color: #f5c3b3; background: #fff5f1; }
.brief .cat.hot .n { background: var(--coral); color: #fff; }
.brief .cat.appr { border-color: #f2d79c; background: #fffaf0; }
.brief .cat.appr .n { background: var(--gold); color: #fff; }
.brief .next { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #fff6e2; border-left: 4px solid var(--gold); font-size: 11.5px; }
.brief .next b { display: block; font: 700 9.5px var(--f-mono); letter-spacing: .06em; color: #a87a1c; margin-bottom: 2px; }
.brief .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.brief .x, .inspector .x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.brief .x:hover, .inspector .x:hover { background: #fff; color: var(--ink); }

.inspector { position: absolute; left: 98px; top: 214px; width: 340px; max-height: 618px; overflow: auto; padding: 14px; }
.inspector[hidden], .brief[hidden] { display: none; }
.ins-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 26px; }
.ins-head img { width: 66px; height: 66px; border-radius: 18px; background: var(--tint, #f1e8dc); }
.ins-head .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--tint, #f1e8dc); }
.ins-head h3 { font-family: var(--f-disp); font-size: 20px; line-height: 1.1; color: var(--navy); }
.ins-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink2); font-weight: 600; line-height: 1.3; }
.fld { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 12px; }
.fld > b { display: block; font: 700 9.5px var(--f-mono); letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.fld .line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ins-note { margin: 8px 0; padding: 7px 9px; border-radius: 10px; background: #f3effa; color: #574a7c; font-size: 11px; line-height: 1.35; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.acts button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: var(--navy); }
.acts button:hover { border-color: var(--navy); }
.acts button.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.acts button.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.mini-av { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.mini-av img { width: 20px; height: 20px; border-radius: 50%; background: var(--tint, #f1e8dc); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 12px; }
.list li .grow { flex: 1; min-width: 0; }
.list li small { display: block; color: var(--muted); font-size: 10.5px; }

.director { position: absolute; right: 12px; top: 78px; bottom: 12px; width: 384px; display: flex; flex-direction: column; overflow: hidden; }
.dir-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px 8px; }
.dir-head img { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, #f4ead6, #e7d8bd); }
.dir-head b { display: block; font-family: var(--f-disp); font-size: 18px; color: var(--navy); line-height: 1.1; }
.dir-head span { font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.dir-head .demo { margin-left: auto; align-self: flex-start; }
.disclaim { margin: 0 14px 8px; font-size: 10px; color: var(--muted); line-height: 1.3; }
.chat { flex: 1; overflow: auto; padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: thin; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.4; }
.msg.dir { background: #fff; border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-top-right-radius: 6px; }
.msg small { display: block; opacity: .65; font-size: 10px; margin-top: 3px; }
.proposal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 6px 16px -12px rgba(70, 45, 30, .35); }
.prop-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.prop-head span:first-child { font: 800 10px var(--f-mono); letter-spacing: .08em; color: var(--navy); }
.proposal h5 { margin: 9px 0 4px; font: 700 9.5px var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.proposal p { margin: 0; font-size: 12.5px; font-weight: 600; }
.team { display: flex; flex-wrap: wrap; gap: 4px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; counter-reset: s; }
.flow li { counter-increment: s; position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 10px; background: #faf6ef; border: 1px solid #efe5d6; font-size: 11px; font-weight: 700; line-height: 1.15; }
.flow li::before { content: counter(s); flex: none; width: 18px; height: 18px; border-radius: 6px; background: #efe5d6; display: grid; place-items: center; font: 700 9.5px var(--f-mono); color: var(--ink2); }
.flow li img { width: 20px; height: 20px; border-radius: 50%; margin-left: auto; flex: none; }
.flow li.gate { background: #fff6e2; border-color: #f2d79c; }
.flow li.gate::before { background: var(--gold); color: #fff; }
.flow li.hold::before { background: #d98b1f; color: #fff; }
.notes { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; }
.notes div { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: var(--ink2); line-height: 1.3; }
.notes i { font-style: normal; flex: none; }
.prop-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.prop-acts button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 4px; font-size: 9.8px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.prop-acts button:hover { border-color: var(--navy); }
.prop-acts .primary { background: linear-gradient(135deg, var(--gold), #d4952a); color: #fff; border-color: transparent; }
.quick { display: flex; gap: 5px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
.quick button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--ink2); }
.composer { display: flex; align-items: center; gap: 6px; margin: 0 12px 12px; padding: 5px 5px 5px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line2); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; font: 600 13px var(--f-ui); background: transparent; color: var(--ink); }
.composer button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #f3ece2; color: var(--ink2); }
.composer button.send { background: var(--navy); color: #fff; }

.zonebar { position: absolute; bottom: 14px; left: 652px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; }
.zonebar .zb { border: 0; background: transparent; border-radius: 999px; padding: 7px 11px; font-size: 11.5px; font-weight: 800; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.zonebar .zb i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #ccc); }
.zonebar .zb:hover { background: #fff; color: var(--navy); }
.zonebar .zb.active { background: var(--navy); color: #fff; }
.zonebar .zb.den { color: var(--violet); }
.zonebar .zb.den.active { background: var(--violet); color: #fff; }
.zonebar .sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.seg { display: flex; padding: 2px; border-radius: 999px; background: #efe6d9; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 11.5px; font-weight: 800; color: var(--ink2); display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .3); }
.ib { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink2); }
.ib:hover { background: #fff; color: var(--navy); }

.legend-mini { position: absolute; right: 408px; bottom: 72px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink2); border-radius: 14px; }
.legend-mini span { display: flex; align-items: center; gap: 8px; }
.legend-mini .ring { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #d98b1f; }
.legend-mini .dash { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed #b9b3c3; }

.toast { position: absolute; left: 652px; bottom: 74px; transform: translate(-50%, 12px); padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; white-space: nowrap; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.touch-gate { position: absolute; left: 652px; top: 450px; transform: translate(-50%, -50%); padding: 22px 34px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font-size: 26px; font-weight: 800; box-shadow: var(--shadow); }
.touch-gate[hidden] { display: none; }

.step-hud { position: absolute; top: 80px; left: 652px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-hud[hidden] { display: none; }
.step-hud .where { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--navy); }
.step-hud .keys { display: flex; gap: 6px; font-size: 11.5px; color: var(--ink2); font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.step-hud .tele { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; max-width: 760px; }
.step-hud .tele button { border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 250, 243, .9); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.stage.stepping .brief, .stage.stepping .hero, .stage.stepping .legend-mini { display: none; }
.talk-hint { position: absolute; left: 652px; bottom: 80px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; font-weight: 800; color: var(--navy); }
.talk-hint[hidden] { display: none; }

/* ---------- labels inside the 3D view ---------- */
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; transition: opacity .25s; will-change: transform; }
.lbl.hide { opacity: 0; }
.lbl-wing { padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 250, 243, .9); border: 1px solid #fff; box-shadow: 0 6px 16px -10px rgba(60, 40, 30, .6); font-weight: 800; font-size: 13px; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.lbl-wing i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.lbl-room { padding: 4px 9px; border-radius: 999px; background: rgba(255, 250, 243, .92); border: 1px solid #fff; box-shadow: 0 4px 10px -8px rgba(60, 40, 30, .6); font-weight: 700; font-size: 11px; color: var(--ink); }
.lbl-room.sel { background: var(--navy); color: #fff; }
.lbl-proj { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px 6px 11px; border-radius: 12px; background: #fff; border-left: 4px solid var(--c); box-shadow: 0 10px 22px -12px rgba(60, 40, 30, .6); font-size: 11px; }
.lbl-proj b { font-size: 11.5px; color: var(--ink); }
.lbl-proj span { display: flex; gap: 5px; align-items: center; color: var(--ink2); font-weight: 600; font-size: 10.5px; }
.lbl-proj::after { content: ""; position: absolute; left: 14px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.lbl-agent { padding: 2px 8px; border-radius: 999px; background: rgba(43, 39, 51, .82); color: #fff; font-weight: 700; font-size: 10.5px; display: flex; gap: 5px; align-items: center; }
.lbl-agent i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lbl-agent em { font-style: normal; font: 700 9px var(--f-mono); opacity: .8; }
.lbl-emote { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; box-shadow: 0 6px 14px -8px rgba(60, 40, 30, .7); animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.3); } }
.lbl-den { padding: 3px 9px; border-radius: 999px; background: rgba(29, 24, 56, .88); border: 1px solid var(--c); color: #efeaff; font: 700 10.5px var(--f-mono); }
.lbl-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ffe08a; color: #241f45; font: 800 13px var(--f-ui); box-shadow: 0 0 0 4px rgba(255, 224, 138, .25), 0 6px 14px -6px #000; }
.den-panel { position: absolute; left: 98px; bottom: 72px; width: 320px; padding: 16px; border-radius: 18px; background: rgba(29, 24, 56, .95); border: 1px solid #4b3fa0; color: #e9e3ff; box-shadow: 0 20px 40px -20px #000; }
.den-panel[hidden] { display: none; }
.den-panel .dp-k { font: 700 10px var(--f-mono); letter-spacing: .1em; color: #b9adff; }
.den-panel h3 { font-family: var(--f-disp); font-size: 19px; color: #fff; margin-top: 2px; }
.den-panel .dp-sub { margin: 4px 0 8px; font-size: 11px; color: #b9adff; line-height: 1.35; }
.den-panel ol { list-style: none; margin: 0; padding: 0; }
.den-panel li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(185, 173, 255, .3); font-size: 12px; line-height: 1.35; }
.den-panel li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #ffe08a; color: #241f45; font: 800 11.5px var(--f-ui); font-style: normal; }
.den-panel li small { display: block; color: #9d90e6; font: 600 10px var(--f-mono); margin-top: 2px; }
.den-panel .dp-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 10.5px; color: #cfc6ff; }
.den-panel .dp-legend span { display: flex; align-items: center; gap: 5px; }
.den-panel .dp-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.stage.den-on .brief, .inspector:not([hidden]) ~ .den-panel { display: none; }
.lbl-note { max-width: 250px; white-space: normal; padding: 8px 11px; border-radius: 12px; background: rgba(29, 24, 56, .92); border: 1px solid #7d70e0; color: #e9e3ff; font-size: 11.5px; line-height: 1.35; box-shadow: 0 10px 24px -12px #000; }
.lbl-note b { display: block; font: 700 9.5px var(--f-mono); letter-spacing: .08em; color: #b9adff; margin-bottom: 2px; }
.stage.den-on .lbl-wing, .stage.den-on .lbl-room, .stage.den-on .lbl-proj { opacity: .18; }

/* ---------- shared chips ---------- */
.prov { display: inline-flex; align-items: center; gap: 4px; font: 700 9.5px var(--f-mono); letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; border: 1.5px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); white-space: nowrap; }
.prov.sample { border-style: dashed; color: #6f6b78; background: repeating-linear-gradient(135deg, #fff 0 5px, rgba(141, 138, 150, .12) 5px 10px); }
.prov.unavail { border-style: dotted; }
.st { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 5px; font: 700 9.5px var(--f-mono); letter-spacing: .04em; padding: 3px 7px; border-radius: 7px; color: #fff; background: var(--c); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9; }
.divchip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: var(--c); }
.divchip::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }

/* ---------- mobile preview ---------- */
.mobile-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.mobile-grid > * { min-width: 0; }
.phone-wrap { width: 400px; }
.phone { position: relative; width: 390px; height: 800px; border-radius: 54px; background: #1e1b24; padding: 12px; box-shadow: 0 40px 80px -40px rgba(30, 20, 40, .7), inset 0 0 0 2px #3a3542; transform-origin: 0 0; }
.screen { position: relative; width: 366px; height: 776px; border-radius: 43px; overflow: hidden; background: radial-gradient(400px 500px at 50% 30%, #fffaf2, #f1e6f0); font-size: 12px; }
.screen canvas { position: absolute; inset: 0; width: 366px; height: 776px; touch-action: none; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #0d0b10; z-index: 5; }
.sbar { position: absolute; top: 14px; left: 30px; right: 26px; display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; z-index: 4; color: var(--ink); }
.m-app { position: absolute; top: 50px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; border-radius: 18px; z-index: 4; }
.m-app img { width: 32px; height: 32px; border-radius: 10px; background: #f4ead6; }
.m-app b { font-family: var(--f-disp); font-size: 15px; color: var(--navy); line-height: 1.05; }
.m-app small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.m-app .bell { margin-left: auto; position: relative; width: 34px; height: 34px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--navy); border: 1px solid var(--line); }
.m-app .bell em { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: #fff; font: 800 10px var(--f-ui); display: grid; place-items: center; font-style: normal; }
.m-mode { position: absolute; top: 106px; left: 50%; transform: translateX(-50%); z-index: 4; }
.m-mode .seg { background: rgba(239, 230, 217, .92); box-shadow: var(--shadow); }
.m-tele { position: absolute; top: 146px; left: 0; right: 0; display: flex; gap: 6px; overflow-x: auto; padding: 0 12px; z-index: 4; scrollbar-width: none; }
.m-tele button { flex: none; border: 1px solid #fff; background: rgba(255, 250, 243, .92); border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 800; color: var(--ink2); box-shadow: 0 4px 10px -8px rgba(0, 0, 0, .5); }
.m-where { position: absolute; top: 186px; left: 12px; z-index: 4; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 11px; color: var(--navy); }
.joy { position: absolute; left: 22px; bottom: 156px; width: 116px; height: 116px; border-radius: 50%; background: rgba(255, 250, 243, .6); border: 2px solid rgba(255, 255, 255, .9); z-index: 4; touch-action: none; box-shadow: var(--shadow); }
.joy .knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: linear-gradient(145deg, #fff, #efe6d9); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.joy small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; color: var(--ink2); }
.m-act { position: absolute; right: 18px; bottom: 170px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.m-act button { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--navy); color: #fff; font-weight: 800; font-size: 12px; box-shadow: var(--shadow); }
.m-act button.alt { background: #fff; color: var(--navy); }
.m-dir { position: absolute; left: 12px; right: 12px; bottom: 86px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; border-radius: 999px; z-index: 4; }
.m-dir img { width: 34px; height: 34px; border-radius: 50%; background: #f4ead6; }
.m-dir span { flex: 1; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.m-dir button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; }
.m-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 78px; padding: 8px 10px 18px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 250, 243, .96); border-top: 1px solid var(--line); z-index: 4; }
.m-nav button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: var(--muted); position: relative; }
.m-nav button.on { color: var(--navy); }
.m-nav em { position: absolute; top: -3px; right: 18px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--gold); color: #fff; font: 800 9.5px var(--f-ui); font-style: normal; display: grid; place-items: center; }
.m-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.note-card h4 { font-family: var(--f-disp); font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.note-card p { margin: 0; color: var(--ink2); font-size: 13.5px; }
.note-card .tag { font: 700 10.5px var(--f-mono); color: var(--gold); letter-spacing: .08em; }

/* ---------- roster ---------- */
.roster-group { margin-top: 22px; }
.roster-group h3 { font: 700 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.roster-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.agent-card { position: relative; display: flex; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: .15s; }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line2); }
.agent-card img { width: 84px; height: 84px; border-radius: 18px; flex: none; background: var(--tint); }
.agent-card .code { position: absolute; top: 10px; right: 12px; font: 700 10.5px var(--f-mono); color: var(--muted); }
.agent-card b { display: block; font-family: var(--f-disp); font-size: 17px; color: var(--navy); line-height: 1.15; padding-right: 22px; }
.agent-card .role { font-size: 12px; font-weight: 700; color: var(--ink2); line-height: 1.25; margin: 2px 0 4px; }
.agent-card .room { font-size: 11px; color: var(--muted); margin-bottom: 6px; }

/* ---------- generic cards ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.card > h3 { font-family: var(--f-disp); font-size: 20px; color: var(--navy); }
.card > .kick { font: 700 10.5px var(--f-mono); letter-spacing: .1em; color: var(--gold); margin-bottom: 4px; display: block; }
.card > p.lead { margin: 4px 0 12px; color: var(--ink2); font-size: 13.5px; }
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meet div { border-radius: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.meet div b { display: block; font: 700 9.5px var(--f-mono); letter-spacing: .08em; margin-bottom: 3px; color: var(--c); }
.meet .wide { grid-column: span 2; }
.voice { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.voice img { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #f1e8dc; }
.approval-doc { position: relative; border-radius: 16px; background: #fff; border: 1px solid #f2d79c; padding: 14px; box-shadow: 0 16px 30px -22px rgba(160, 110, 20, .8); }
.approval-doc::before { content: ""; position: absolute; inset: -6px -6px auto auto; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #ffe3a3, transparent 70%); }
.trail { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink2); margin-bottom: 10px; flex-wrap: wrap; }
.trail span { padding: 3px 8px; border-radius: 999px; background: #f6efe4; }
.trail span.on { background: var(--gold); color: #fff; }
.den-card { background: linear-gradient(160deg, #241f45, #1a1533); color: #e9e3ff; border-color: #3a3366; }
.den-card > h3 { color: #fff; }
.den-card > p.lead { color: #b9adff; }
.opnote { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(185, 173, 255, .3); font-size: 13px; }
.opnote i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(185, 173, 255, .15); font-style: normal; }
.opnote small { display: block; color: #b9adff; font: 600 10.5px var(--f-mono); }

.pipe { display: flex; flex-wrap: wrap; gap: 8px; }
.pipe .stg { position: relative; flex: 1 1 140px; min-height: 104px; border-radius: 16px; padding: 10px; background: #fff; border: 1px solid var(--line); }
.pipe .stg .n { font: 700 10px var(--f-mono); color: var(--muted); }
.pipe .stg b { display: block; font-size: 13px; line-height: 1.2; margin: 2px 0 6px; }
.pipe .pj { display: block; font-size: 11px; font-weight: 700; padding: 5px 7px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); margin-top: 4px; }
.prog-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.prog-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.prog-tabs button.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.prog-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 12px; }
.kpi small { display: block; font: 700 9.5px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.kpi b { display: block; font-size: 22px; font-family: var(--f-disp); margin: 2px 0; }
.kpi span { font-size: 11.5px; color: var(--ink2); }
table.pub { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.pub th { text-align: left; font: 700 9.5px var(--f-mono); letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.pub td { padding: 8px; border-bottom: 1px dashed var(--line); }

.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.prov-item { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 12px; }
.prov-item p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.states { display: flex; flex-wrap: wrap; gap: 6px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.int { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.int .plug { width: 30px; height: 30px; border-radius: 10px; background: #f6efe4; display: grid; place-items: center; color: var(--muted); flex: none; }
.int b { display: block; font-size: 13px; }
.int small { color: var(--muted); font-size: 11px; }
.int .prov { margin-left: auto; }
.deco-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deco-vs div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); }
.deco-vs b { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 4px; }

.arch { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.layers { display: flex; flex-direction: column; gap: 6px; }
.layer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.layer b { width: 170px; flex: none; }
.layer span { color: var(--ink2); font-size: 12px; }
.flowchain { display: flex; flex-direction: column; gap: 0; }
.flowchain div { position: relative; padding: 8px 12px; margin-left: 14px; border-left: 2px solid var(--line2); font-size: 13px; font-weight: 700; }
.flowchain div::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--navy)); }
.flowchain div small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.bus { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bus div { padding: 10px 12px; border-radius: 12px; font-size: 12px; }
.bus .task { background: #e9f6ef; border: 1px solid #bfe3cd; }
.bus .anim { background: #f3effa; border: 1px dashed #c8bde6; }
.bus b { display: block; font: 700 10px var(--f-mono); letter-spacing: .06em; margin-bottom: 2px; }

.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.check i { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line2); display: grid; place-items: center; font-style: normal; color: var(--gold); font-weight: 800; }
.check b { display: block; }
.check span { color: var(--ink2); font-size: 12.5px; }
.next-phase { margin-top: 18px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #2f3b63, #46589a); color: #fff; }
.next-phase h3 { font-family: var(--f-disp); font-size: 22px; }
.next-phase p { margin: 6px 0 0; color: #dfe4ff; font-size: 14px; }
.next-phase ul { margin: 10px 0 0; padding-left: 18px; columns: 2; font-size: 13.5px; color: #eef1ff; }
footer { max-width: 1680px; margin: 0 auto; padding: 24px 28px 40px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }

@media (max-width: 1100px) {
  .mobile-grid, .arch { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .prog-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  main { padding: 0 16px 60px; }
  .board-head { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .board-nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .board-head .chip-sample { display: none; }
  .sec-head h2 { font-size: 24px; }
  .stage-wrap { border-radius: 14px; }
  .m-notes, .meet, .deco-vs, .bus, .prog-body { grid-template-columns: 1fr; }
  .meet .wide { grid-column: auto; }
  .phone-wrap { width: 100%; max-width: 390px; }
  .next-phase ul { columns: 1; }
  footer { padding: 20px 16px 32px; }
}
