*{box-sizing:border-box}body{margin:0;background:#0b1020;color:#e9edf7;font:15px/1.55 Inter,system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:#c7b5ff}.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.side{background:#11182a;border-right:1px solid #2a3245;padding:28px 16px;display:flex;flex-direction:column;gap:20px}.brand{font-size:22px;font-weight:800;letter-spacing:-.6px}.brand em{color:#b6a0ff;font-style:normal}.tenant{font-size:12px;color:#9caac2;border:1px solid #344058;padding:12px;border-radius:12px}.nav{display:grid;gap:6px}.nav button{background:transparent;border:0;color:#b9c4d9;text-align:left;padding:12px 13px;border-radius:9px}.nav button.active,.nav button:hover{background:#2b2650;color:#fff}.sidefoot{margin-top:auto;color:#9ba9c1;font-size:12px}.main{min-width:0}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #2a3245;padding:18px 30px;flex-wrap:wrap}.demo{color:#ffe0a0;font-weight:750;font-size:12px;letter-spacing:.06em}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid #48526c;background:#222c43;color:#f1f4fa;border-radius:9px;padding:10px 14px;font-weight:650}.btn.primary{background:#8264e9;border-color:#8264e9;color:#fff}.btn.ghost{background:transparent}.btn:hover{filter:brightness(1.14)}.content{max-width:1270px;padding:30px;margin:auto}.eyebrow{color:#b8a4ff;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}h1{font-size:34px;line-height:1.15;margin:7px 0 8px}h2{font-size:19px;margin:0 0 14px}h3{font-size:15px;margin:0 0 8px}p{margin:5px 0 16px;color:#aebbd2}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.panel{background:#151e31;border:1px solid #303b54;border-radius:14px;padding:20px;min-width:0}.metric strong{display:block;font-size:30px;line-height:1.2}.metric small{color:#a9b7d0}.split{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin:16px 0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.field{width:100%;background:#0c1426;border:1px solid #44516a;border-radius:9px;color:#fff;padding:11px}.toolbar .field{max-width:300px}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:12px;color:#9baac3;text-transform:uppercase;letter-spacing:.04em}.table td,.table th{padding:12px 9px;border-bottom:1px solid #303b54}.table tr:last-child td{border:0}.table button{background:transparent;border:0;color:#c9b7ff;font-weight:700;text-align:left;padding:0}.pill{display:inline-block;padding:3px 9px;border-radius:100px;background:#283b53;color:#cde1fa;font-size:12px}.pill.warn{background:#54382b;color:#ffd4a4}.pill.good{background:#1b493d;color:#a9f4d1}.muted{color:#a8b6ce}.notice{padding:12px 14px;border:1px solid #6e5a37;border-radius:10px;background:#2d2630;color:#ffe1ac;font-size:13px;margin:14px 0}.timeline{border-left:2px solid #5d4c9b;margin-left:9px;padding-left:18px}.timeline div{padding:0 0 16px;position:relative}.timeline div:before{content:'';position:absolute;left:-25px;top:7px;width:11px;height:11px;border-radius:50%;background:#a28cff}.timeline small{display:block;color:#9faec7}.stack{display:grid;gap:12px}.formrow{display:grid;gap:6px;margin:12px 0}.formrow label{color:#cbd4e5;font-size:13px;font-weight:650}.overlay{position:fixed;inset:0;background:#030814bb;display:grid;place-items:center;padding:15px;z-index:30}.modal{background:#192338;border:1px solid #56617b;border-radius:16px;width:min(550px,100%);padding:24px;max-height:90vh;overflow:auto}.modalhead{display:flex;justify-content:space-between;align-items:center}.modalhead button{font-size:24px;background:none;border:0;color:white}.tour{position:fixed;bottom:20px;right:20px;width:min(430px,calc(100% - 40px));z-index:25;background:#2b244c;border:1px solid #9a83e8;border-radius:16px;padding:20px;box-shadow:0 15px 60px #0009}.tour p{color:#e3ddfa}.tour .actions{justify-content:space-between}.hint{font-size:12px;color:#aebbd2}.mobilehead{display:none}.empty{padding:28px;text-align:center;color:#9babc6}.print{background:#f6f2e8;color:#142138;padding:18px;border-radius:12px;max-width:340px}.print p{color:#35405a}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:720px){.shell{display:block}.side{display:none}.mobilehead{display:block;padding:12px 20px;background:#11182a}.mobilehead select{width:100%}.top{padding:14px 20px}.content{padding:22px 16px}h1{font-size:28px}.grid{gap:9px}.panel{padding:14px}.table{display:block;overflow:auto}.tour{bottom:10px;right:10px;width:calc(100% - 20px)}}@media print{.side,.top,.toolbar,.btn,.tour,.mobilehead{display:none!important}.content{padding:0}.print{border:1px solid #aaa}}/* Phase 7: prevent intrinsic table widths from expanding mobile grid columns. */
.grid > *, .split > *, .content > *, .panel {min-width:0}
@media(max-width:720px){.split{min-width:0}.split > section{min-width:0;max-width:100%}.table{max-width:100%;overflow-x:auto}}

/* Welcome gate: first visit only; no automatic audio or external actions. */
.welcome-backdrop{position:fixed;inset:0;z-index:100;background:rgba(2,7,17,.87);display:grid;place-items:center;padding:20px;overflow-y:auto}
.welcome-card{width:min(610px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;background:#111c30;border:1px solid #465574;box-shadow:0 30px 90px #000a;border-radius:20px;padding:clamp(22px,4vw,42px)}
.welcome-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#d6b8ff;margin-bottom:18px}
.welcome-card h1{font-size:clamp(28px,4vw,39px);max-width:490px;line-height:1.14;margin:0 0 14px;color:#fff}
.welcome-card p{font-size:15px;line-height:1.6;color:#c7d2e6;margin:0 0 20px}
.welcome-tenant{display:grid;gap:3px;padding:15px 18px;background:#1b2a42;border:1px solid #394a66;border-radius:11px;margin-bottom:20px}
.welcome-tenant strong{color:#fff}.welcome-tenant span{font-size:12px;color:#b6c6dc}
.welcome-choices{display:grid;gap:10px}.welcome-choice{display:grid;gap:3px;text-align:left;border-radius:10px;padding:15px 18px;background:#1b2a42;color:#fff;border:1px solid #52627b;width:100%}.welcome-choice strong{font-size:15px}.welcome-choice span{font-size:12px;color:#c4d1e4}.welcome-choice.featured{background:#c49339;color:#081a26;border-color:#c49339}.welcome-choice.featured span{color:#24313a}.welcome-choice:hover,.welcome-explore:hover{filter:brightness(1.12)}.welcome-choice:focus-visible,.welcome-explore:focus-visible{outline:3px solid #fff;outline-offset:3px}
.welcome-explore{border:0;background:transparent;color:#e6dcff;padding:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.welcome-card .welcome-footnote{font-size:12px;color:#aebcd1;margin:13px 0 0}
@media(max-width:480px){.welcome-backdrop{padding:10px}.welcome-card{max-height:calc(100dvh - 20px);padding:20px}.welcome-choice{padding:13px}}
@media print{.welcome-backdrop{display:none!important}}

/* Guided attention, deliberately subtle so the table stays legible. */
.tour-focus{outline:2px solid #d3acff!important;outline-offset:3px;box-shadow:0 0 0 5px #9b7ce52b!important;position:relative;z-index:1;background-color:#272445!important}
tr.tour-focus td{background-color:#272445!important}
@media(max-width:720px){.tour{max-height:46vh;overflow-y:auto}.tour-focus{outline-offset:1px}}

/* v3: dedicated presentation rail prevents the tour covering connection details. */
@media(min-width:1101px){
 .main.tour-active{padding-right:365px}
 .main.tour-active .content{max-width:100%;padding:28px 22px}
 .main.tour-active .grid{gap:10px}
 .main.tour-active .metric strong{font-size:24px;overflow-wrap:anywhere}
 .main.tour-active .split{grid-template-columns:1fr}
 .tour{top:156px;right:18px;bottom:auto;width:330px;max-height:calc(100dvh - 175px);overflow-y:auto}
}
@media(min-width:721px) and (max-width:1100px){
 .main.tour-active{padding-bottom:360px}
 .tour{right:18px;bottom:18px;width:360px;max-height:310px;overflow-y:auto}
}
@media(max-width:720px){
 .main.tour-active{padding-bottom:48vh}
 .tour{max-height:43vh;overflow-y:auto}
}
.tour-owner.tour-focus{display:inline-block;border-radius:5px;padding:2px 5px}
button.tour-focus{z-index:2}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* v4: reserve an actual viewport rail, not an overlay over the record. */
@media(min-width:1101px){
 .shell:has(.tour){grid-template-columns:242px minmax(0,1fr) 360px}
 .shell:has(.tour) .main{padding-right:0;min-width:0}
 .shell:has(.tour) .main .content{max-width:1120px;padding:28px 24px}
 .shell:has(.tour) .tour{position:sticky;top:0;right:auto;bottom:auto;grid-column:3;grid-row:1;align-self:start;margin:20px 16px 0 0;width:auto;max-height:calc(100vh - 40px);overflow-y:auto}
 .shell:has(.tour) .split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
}
@media(min-width:721px) and (max-width:1100px){
 .shell:has(.tour) .main{padding-bottom:360px}
 .tour{max-height:310px}
}
.tour-focus{transition:box-shadow .15s ease}
[data-tour-anchor="timeline"].tour-focus{padding:12px}

/* v5: content-sized cards, no grid-row stretching during guided tours. */
.split{align-items:start}
.split > section{align-self:start}
.stack{align-content:start;grid-auto-rows:max-content}
.panel{height:auto}
@media(min-width:1101px){.shell:has(.tour) .split{align-items:start}.shell:has(.tour) .stack{align-content:start;grid-auto-rows:max-content}}
.completion{border:1px solid #9d83e6;border-radius:16px;background:#242143;padding:24px;margin:0 0 24px}
.completion h2{font-size:25px;margin:8px 0 12px;color:#fff}
.completion p{max-width:850px;color:#e0dcf3}
.completion-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:720px){.completion{padding:18px}.completion h2{font-size:22px}}

/* Full Walkthrough v2: preserve outreach-card contrast even when highlighted. */
.print,.print.tour-focus{background:#f6f2e8!important;color:#142138!important;border:1px solid #d8c8a8}
.print h2,.print strong,.print.tour-focus h2,.print.tour-focus strong{color:#142138!important}
.print p,.print.tour-focus p{color:#35405a!important}
.print strong{display:block;font-size:18px;margin:12px 0}
.print p:last-child{font-size:11px;letter-spacing:.04em;font-weight:700;border-top:1px solid #c4bba9;padding-top:12px;margin-top:16px}
.team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.team-summary .panel{padding:18px}.team-summary strong{display:block;font-size:28px;color:#f4f2ff;margin-top:5px}
.tour-instruction{font-size:12px;color:#c9c2e5!important;border-top:1px solid #62568b;padding-top:10px}
.tour-active button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:720px){.team-summary{grid-template-columns:1fr}.team-summary .panel{padding:12px}}
@media print{.print,.print.tour-focus{background:#fff!important;color:#111!important}.print h2,.print strong,.print p{color:#111!important}}

/* Campaign material: prominent branded QR and printable preview. */
.campaign-panel{margin:24px 0}.campaign-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.campaign-heading p{max-width:650px}.campaign-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,.7fr);gap:22px;align-items:center}.outreach-card{max-width:none!important;min-width:0;padding:0!important;overflow:hidden;border-radius:14px!important;box-shadow:0 18px 45px #0004}.outreach-card .card-topline{display:flex;justify-content:space-between;gap:10px;background:#14263c;color:#fff;padding:16px 22px;font-size:11px;letter-spacing:.11em;font-weight:800}.outreach-card .card-topline span{color:#e9c889}.outreach-card .card-inner{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:12px;padding:28px 22px;align-items:center}.outreach-card .card-overline{font-size:10px;font-weight:800;letter-spacing:.16em;color:#815c25}.outreach-card .card-message h2{font-family:Georgia,serif;font-size:clamp(25px,2.6vw,42px);line-height:1.08;color:#142138!important;margin:14px 0}.outreach-card .card-message p{font-size:13px;color:#344359!important}.outreach-card .card-event{font-size:12px;font-weight:800;border-top:1px solid #d8c8a8;padding-top:12px}.outreach-card .qr-zone{display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center}.outreach-card .qr-zone img{width:170px;height:170px;background:#fff;padding:8px;border:1px solid #ddd}.outreach-card .qr-zone strong{font-size:11px;letter-spacing:.08em;margin:2px 0!important}.outreach-card .qr-zone small{font-size:10px;color:#344359}.outreach-card .card-footer{display:flex;justify-content:space-between;gap:12px;background:#d9c49b;color:#142138;padding:10px 22px;font-size:9px;letter-spacing:.07em;font-weight:800}.campaign-actions p{color:#c3cee0}.campaign-buttons{display:flex;gap:10px;flex-wrap:wrap}.campaign-buttons a{text-decoration:none;display:inline-flex;align-items:center}.campaign-actions .hint{margin-top:16px;font-size:12px}.outreach-card.tour-focus{background:#f6f2e8!important}.outreach-card.tour-focus .card-topline{background:#14263c!important}.outreach-card.tour-focus .card-topline,.outreach-card.tour-focus .card-topline span{color:#fff!important}.outreach-card.tour-focus .card-footer{background:#d9c49b!important}
@media(max-width:1250px){.campaign-layout{grid-template-columns:1fr}.campaign-actions{padding:0 4px}}
@media(max-width:560px){.outreach-card .card-inner{grid-template-columns:1fr;padding:18px}.outreach-card .card-topline,.outreach-card .card-footer{flex-direction:column}.campaign-heading{display:block}}

/* Audio controls */
.narration-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 10px;padding:12px 0;border-top:1px solid #ffffff24;border-bottom:1px solid #ffffff24}
.narration-controls .btn{font-size:12px;min-height:35px;padding:8px 12px}
.narration-status{font-size:11px;line-height:1.4;color:#d6cce8;flex-basis:100%}
.tour{max-height:min(80vh,650px);overflow-y:auto}
