:root {
  --portal-bg: #0b0c0f;
  --portal-panel: #131419;
  --portal-panel-2: #191a20;
  --portal-line: rgba(255,255,255,.09);
  --portal-copy: #f6f4f1;
  --portal-muted: #9a9ca5;
  --portal-coral: #ff6842;
  --portal-violet: #8f72ff;
  --portal-green: #47d79b;
  --portal-yellow: #ffc85c;
  --portal-red: #ff6d7b;
  --portal-radius: 20px;
}

[hidden] { display: none !important; }

.businessPage { color: var(--portal-copy); background: var(--portal-bg); }
.businessPage .eyebrow { color: #ff8a68; }
.businessNav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--portal-line); background: rgba(11,12,15,.82); backdrop-filter: blur(20px); }
.brandLight { color: white; }
.brandLight em { margin-left: 3px; color: var(--portal-muted); font-size: 13px; font-style: normal; font-weight: 650; letter-spacing: 0; }
.businessNavLinks a { color: #b7b8bf; }
.businessNavLinks a:hover { color: white; }
.lightCta { background: white; color: #111 !important; }
.lightCta:hover { background: #e8e6e2; }

.businessHero { position: relative; overflow: hidden; padding: 104px 0 112px; }
.businessHero::before { content: ""; position: absolute; width: 720px; height: 720px; top: -300px; left: -260px; border-radius: 50%; background: rgba(255,104,66,.14); filter: blur(80px); }
.businessHeroGrid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 84px; align-items: center; }
.businessHero h1 { max-width: 760px; font-size: clamp(54px,7.5vw,96px); }
.businessHero h1 span { color: #7c7f89; }
.businessHero .heroLead { color: #b0b2ba; }
.coralButton { background: var(--portal-coral); color: #15100f !important; }
.coralButton:hover { background: #ff805f; }
.glassButton { border: 1px solid var(--portal-line); background: rgba(255,255,255,.05); color: white !important; }
.glassButton:hover { background: rgba(255,255,255,.1); }
.prototypeNote { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: #7f818a; font-size: 13px; }
.prototypeNote span { width: 7px; height: 7px; border-radius: 50%; background: var(--portal-yellow); box-shadow: 0 0 0 4px rgba(255,200,92,.12); }

.sponsorPreview { position: relative; min-height: 590px; display: grid; place-items: center; }
.sponsorGlow { position: absolute; inset: 10%; border-radius: 50%; background: linear-gradient(135deg, rgba(255,104,66,.34), rgba(143,114,255,.3)); filter: blur(55px); }
.sponsorCard { position: relative; width: min(420px,100%); padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 34px; background: linear-gradient(160deg, rgba(31,31,38,.98), rgba(15,16,20,.98)); box-shadow: 0 40px 100px rgba(0,0,0,.38); transform: rotate(1.5deg); }
.sponsorMeta, .sponsorFooter { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #9b9da5; font-size: 12px; font-weight: 750; }
.sponsoredPill { padding: 7px 10px; border-radius: 999px; background: rgba(255,104,66,.13); color: #ff967b; text-transform: uppercase; letter-spacing: .09em; }
.brandMark { width: 66px; height: 66px; display: grid; place-items: center; margin: 44px 0 15px; border-radius: 20px; background: linear-gradient(135deg, #ff744d, #7d5eff); font-size: 31px; font-weight: 950; }
.broughtBy { margin: 0 0 10px; color: #a9abb3; font-size: 13px; font-weight: 700; }
.sponsorCard h2 { max-width: 330px; font-size: 39px; }
.pollOptions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.pollOptions span { padding: 16px; border: 1px solid var(--portal-line); border-radius: 14px; background: rgba(255,255,255,.035); color: #e9e7e4; font-size: 14px; font-weight: 750; }
.sponsorFooter { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--portal-line); }

.businessSection { padding: 104px 0; border-top: 1px solid var(--portal-line); }
.splitHeading { display: grid; grid-template-columns: 1.05fr .75fr; gap: 80px; align-items: end; }
.splitHeading h2 { margin-bottom: 0; font-size: clamp(40px,5vw,68px); }
.splitHeading p { margin: 0; color: var(--portal-muted); font-size: 18px; line-height: 1.6; }
.businessFeatureGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 54px; }
.businessFeatureGrid article { min-height: 280px; padding: 28px; border: 1px solid var(--portal-line); border-radius: 24px; background: var(--portal-panel); }
.businessFeatureGrid article strong { color: #666872; font-size: 13px; letter-spacing: .12em; }
.businessFeatureGrid article h3 { margin-top: 80px; }
.businessFeatureGrid article p { margin-bottom: 0; color: var(--portal-muted); line-height: 1.65; }
.processSection { background: #101116; }
.processGrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.processGrid > div > p:not(.eyebrow) { color: var(--portal-muted); font-size: 18px; line-height: 1.6; }
.processList { list-style: none; margin: 0; padding: 0; }
.processList li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--portal-line); }
.processList li:first-child { padding-top: 0; }
.processList li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,104,66,.12); color: #ff8e70; font-weight: 900; }
.processList strong { font-size: 19px; }
.processList p { margin: 7px 0 0; color: var(--portal-muted); line-height: 1.55; }
.privacySection { background: linear-gradient(135deg, #18141d, #0e1117); }
.privacyGrid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.privacyList { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacyList span { position: relative; padding: 18px 18px 18px 46px; border: 1px solid var(--portal-line); border-radius: 15px; background: rgba(255,255,255,.035); font-weight: 750; }
.privacyList span::before { content: "×"; position: absolute; left: 18px; color: var(--portal-coral); font-size: 20px; line-height: 1; }
.finalCta { border-top: 0; }
.finalCtaCard { padding: 68px; border: 1px solid var(--portal-line); border-radius: 38px; background: linear-gradient(135deg, #1b1c22, #121318); text-align: center; }
.finalCtaCard h2 { max-width: 820px; margin-inline: auto; font-size: clamp(42px,6vw,76px); }
.finalCtaCard > p:not(.eyebrow) { color: var(--portal-muted); font-size: 18px; }
.finalCtaCard .heroActions { justify-content: center; }
.businessFooter { padding: 40px 0; border-top: 1px solid var(--portal-line); }
.businessFooter .footerLinks a { color: #91939c; }

/* Authenticated portal prototypes */
.portalPage { min-height: 100vh; color: var(--portal-copy); background: var(--portal-bg); }
.portalPage button, .portalPage input, .portalPage select, .portalPage textarea { font: inherit; }
.prototypeBar { min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 8px 18px; background: #2c2411; color: #f8d88d; font-size: 12px; font-weight: 750; text-align: center; }
.portalShell { min-height: calc(100vh - 38px); display: grid; grid-template-columns: 256px minmax(0,1fr); }
.portalSidebar { position: sticky; top: 0; height: calc(100vh - 38px); display: flex; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--portal-line); background: #0e0f13; }
.portalBrand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; color: white; text-decoration: none; font-size: 21px; font-weight: 900; }
.portalBrand img { width: 38px; height: 38px; border-radius: 11px; }
.portalBrand small { display: block; margin-top: 2px; color: #777983; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.workspaceBrand { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 9px 10px 18px; border: 0; border-bottom: 1px solid var(--portal-line); background: transparent; color: white; text-align: left; cursor: pointer; }
.workspaceBrand > span:last-child { min-width: 0; }
.workspaceBrand strong, .workspaceBrand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspaceBrand strong { font-size: 16px; }
.workspaceBrand small { margin-top: 3px; color: #747680; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workspaceLogo { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg,var(--portal-coral),var(--portal-violet)); background-position: center; background-size: cover; color: white; font-size: 17px; font-weight: 950; }
.portalNav { display: grid; gap: 5px; }
.portalNav button { min-height: 46px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #a4a6ae; font-size: 14px; font-weight: 760; text-align: left; cursor: pointer; }
.portalNav button:hover { color: white; background: rgba(255,255,255,.045); }
.portalNav button[aria-current="page"] { background: rgba(255,104,66,.12); color: #ff8c6e; }
.portalNav .navIcon { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; }
.portalNav .navIcon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portalAccount { margin-top: auto; padding: 16px 12px 4px; border-top: 1px solid var(--portal-line); }
.portalAccount strong, .portalAccount span { display: block; }
.portalAccount strong { font-size: 13px; }
.portalAccount span { margin-top: 3px; color: #73757e; font-size: 11px; }
.portalAccount .poweredBy { display: flex; align-items: center; gap: 7px; color: #a7a8af; font-weight: 800; }
.portalAccount .poweredBy img { width: 20px; height: 20px; border-radius: 6px; }
.portalMain { min-width: 0; }
.portalTopbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px; border-bottom: 1px solid var(--portal-line); }
.portalTopbar h1 { margin: 0; font-size: 20px; line-height: 1; letter-spacing: -.025em; }
.topActions { display: flex; align-items: center; gap: 10px; }
.portalButton { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--portal-line); border-radius: 11px; background: rgba(255,255,255,.04); color: white; font-size: 13px; font-weight: 820; line-height: 1; white-space: nowrap; cursor: pointer; }
.portalButton:hover { background: rgba(255,255,255,.09); }
.portalButton.primary { border-color: transparent; background: var(--portal-coral); color: #170f0d; }
.portalButton.primary:hover { background: #ff805f; }
.portalButton.danger { color: #ff929c; }
.portalContent { padding: 34px 36px 60px; }
.portalView[hidden] { display: none; }
.viewIntro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.viewIntro > .portalButton { flex: 0 0 auto; }
.viewIntro h2 { margin-bottom: 8px; font-size: 36px; }
.viewIntro p { max-width: 650px; margin: 0; color: var(--portal-muted); line-height: 1.55; }
.metricGrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.metricCard { padding: 20px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-panel); }
.metricCard span { display: block; color: var(--portal-muted); font-size: 12px; font-weight: 750; }
.metricCard strong { display: block; margin-top: 12px; font-size: 29px; }
.metricCard small { display: block; margin-top: 6px; color: #71737c; }
.portalGrid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.portalPanel { padding: 22px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-panel); }
.panelHeader { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panelHeader h3 { margin: 0; font-size: 18px; }
.panelHeader p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; }
.statusPill { max-width: 100%; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 6px 9px; border-radius: 999px; background: rgba(255,200,92,.1); color: #f5ce77; font-size: 11px; font-weight: 850; line-height: 1; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
.statusPill.approved { background: rgba(71,215,155,.1); color: #74e3b5; }
.statusPill.revision { background: rgba(143,114,255,.12); color: #b3a2ff; }
.statusPill.urgent { background: rgba(255,109,123,.12); color: #ff8f9a; }
.campaignList, .activityList { display: grid; gap: 9px; }
.campaignRow, .activityRowPortal { display: grid; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: rgba(255,255,255,.025); }
.campaignRow { grid-template-columns: minmax(0,1fr) auto auto; cursor: pointer; }
.campaignRow:hover { border-color: rgba(255,255,255,.14); }
.campaignRow strong, .campaignRow span { display: block; }
.campaignRow small, .activityRowPortal p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; }
.activityRowPortal { grid-template-columns: 34px minmax(0,1fr); }
.activityDot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(143,114,255,.12); color: #b4a5ff; font-size: 13px; font-weight: 900; }
.emptyState { padding: 42px 20px; color: var(--portal-muted); text-align: center; }
.queueToolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.queueFilters { display: flex; gap: 7px; flex-wrap: wrap; }
.filterButton { padding: 8px 11px; border: 1px solid var(--portal-line); border-radius: 10px; background: transparent; color: var(--portal-muted); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.filterButton.active { background: white; color: #15161a; }
.queueTable { width: 100%; border-collapse: collapse; }
.queueTable th { padding: 12px 14px; border-bottom: 1px solid var(--portal-line); color: #777983; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .07em; }
.queueTable td { padding: 15px 14px; border-bottom: 1px solid rgba(255,255,255,.055); color: #dedde0; font-size: 13px; }
.queueTable tbody tr { cursor: pointer; }
.queueTable tbody tr:hover { background: rgba(255,255,255,.025); }
.queueTable .subject { font-weight: 800; }
.queueTable .mutedCell { color: var(--portal-muted); }
.queueTable .deadline { color: #ff9aa3; font-weight: 800; }
.settingsList { display: grid; gap: 12px; }
.settingsRow { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--portal-line); border-radius: 15px; background: rgba(255,255,255,.025); }
.settingsRow p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; }

.drawerBackdrop { position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.drawerBackdrop.open { opacity: 1; pointer-events: auto; }
.portalDrawer { position: fixed; z-index: 50; top: 0; right: 0; width: min(560px,100%); height: 100vh; overflow-y: auto; padding: 26px; border-left: 1px solid var(--portal-line); background: #121318; transform: translateX(102%); transition: transform .22s ease; }
.portalDrawer.open { transform: translateX(0); }
.drawerHeader { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.drawerHeader h2 { margin: 0; font-size: 27px; }
.iconButton { width: 40px; height: 40px; border: 1px solid var(--portal-line); border-radius: 12px; background: transparent; color: white; cursor: pointer; }
.detailBlock { padding: 18px 0; border-top: 1px solid var(--portal-line); }
.detailBlock label { display: block; margin-bottom: 8px; color: #757780; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.detailBlock p { margin: 0; color: #d3d2d6; line-height: 1.6; }
.detailGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detailTile { padding: 14px; border-radius: 12px; background: var(--portal-panel-2); }
.detailTile span, .detailTile strong { display: block; }
.detailTile span { color: var(--portal-muted); font-size: 11px; }
.detailTile strong { margin-top: 6px; }
.drawerActions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }

.portalModal { width: min(760px,calc(100% - 28px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 0; border: 1px solid var(--portal-line); border-radius: 24px; background: #121318; color: white; box-shadow: 0 34px 100px rgba(0,0,0,.6); }
.portalModal::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(6px); }
.modalHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--portal-line); }
.modalHeader h2 { margin: 0 0 6px; font-size: 25px; }
.modalHeader p { margin: 0; color: var(--portal-muted); font-size: 13px; }
.modalBody { padding: 26px; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #c9c8cc; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--portal-line); border-radius: 11px; outline: 0; background: #1a1b21; color: white; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8f72ff; box-shadow: 0 0 0 3px rgba(143,114,255,.12); }
.field small { color: #777983; line-height: 1.45; }
.portalSelect { position: relative; width: 100%; }
.portalSelect.open { z-index: 90; }
.portalSelectNative { position: absolute !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.portalSelectTrigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; border: 1px solid var(--portal-line); border-radius: 11px; outline: 0; background: #1a1b21; color: white; text-align: left; cursor: pointer; }
.portalSelectTrigger:focus-visible, .portalSelect.open .portalSelectTrigger { border-color: var(--portal-violet); box-shadow: 0 0 0 3px rgba(143,114,255,.12); }
.portalSelectTrigger svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.portalSelect.open .portalSelectTrigger svg { transform: rotate(180deg); }
.portalSelectMenu { position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 100; display: none; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: #1c1d23; box-shadow: 0 20px 55px rgba(0,0,0,.52); }
.portalSelect.open .portalSelectMenu { display: grid; gap: 2px; }
.portalSelectOption { min-height: 42px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #d8d7db; font-size: 13px; text-align: left; cursor: pointer; }
.portalSelectOption:hover { background: rgba(255,255,255,.07); color: white; }
.portalSelectOption.selected { background: rgba(255,104,66,.13); color: #ff9478; font-weight: 850; }
.portalSelectOption.highlighted { outline: 2px solid var(--portal-violet); outline-offset: -2px; }
.portalSelectTrigger:disabled { cursor: not-allowed; }
.portalSelectTrigger[aria-invalid="true"] { border-color: #b42318; }
.reportSelector .portalSelect { min-width: 270px; }
.fieldLabelRow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fieldLabelRow small { font-size: 11px; }
.optionBuilder { display: grid; gap: 9px; }
.pollOptionRow { display: grid; grid-template-columns: 32px minmax(0,1fr) 40px; gap: 9px; align-items: center; }
.optionNumber { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(143,114,255,.12); color: #b9acff; font-size: 11px; font-weight: 900; }
.pollOptionRow .pollOptionInput { min-width: 0; }
.systemPollOption { grid-template-columns: 32px minmax(0,1fr) auto; }
.systemPollOption .pollOptionInput:disabled { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: #999ba4; opacity: 1; }
.systemOptionTag { padding: 7px 9px; border-radius: 8px; background: rgba(143,114,255,.1); color: #b9acff; font-size: 10px; font-weight: 850; white-space: nowrap; }
.removePollOption { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--portal-line); border-radius: 10px; background: transparent; color: #868892; cursor: pointer; }
.removePollOption:hover { border-color: rgba(255,109,123,.35); background: rgba(255,109,123,.08); color: #ff8995; }
.removePollOption svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.optionAddButton { width: max-content; min-height: 40px; margin-top: 2px; }
.optionAddButton > span { font-size: 18px; line-height: 1; }
.formNotice { margin: 20px 0 0; padding: 14px; border: 1px solid rgba(255,200,92,.18); border-radius: 12px; background: rgba(255,200,92,.065); color: #dac380; font-size: 12px; line-height: 1.5; }
.modalFooter { display: flex; justify-content: flex-end; gap: 9px; padding: 20px 26px; border-top: 1px solid var(--portal-line); }
.toast { position: fixed; z-index: 70; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 17px; border: 1px solid var(--portal-line); border-radius: 13px; background: #24252c; color: white; box-shadow: 0 16px 50px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.portalAuth { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--portal-bg); color: white; }
.authStory { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: linear-gradient(155deg,#19151e,#0d1015); }
.authStory::after { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; bottom: -280px; border-radius: 50%; background: linear-gradient(135deg,rgba(255,104,66,.45),rgba(143,114,255,.38)); filter: blur(70px); }
.authStory .portalBrand { position: relative; z-index: 1; padding: 0; }
.authCopy { position: relative; z-index: 1; max-width: 640px; }
.authCopy h1 { margin-bottom: 18px; font-size: clamp(46px,6vw,78px); }
.authCopy p { color: #adafb7; font-size: 19px; line-height: 1.6; }
.authFine { position: relative; z-index: 1; color: #71737d; font-size: 12px; }
.authPanel { display: grid; place-items: center; padding: 42px; }
.authCard { width: min(440px,100%); }
.authCard h2 { margin-bottom: 9px; font-size: 33px; }
.authCard > p { color: var(--portal-muted); line-height: 1.55; }
.authTabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 24px 0; padding: 5px; border-radius: 13px; background: #15161b; }
.authTabs button { padding: 11px; border: 0; border-radius: 9px; background: transparent; color: var(--portal-muted); font-weight: 800; cursor: pointer; }
.authTabs button.active { background: #292a31; color: white; }
.authForm { display: grid; gap: 15px; }
.authForm .portalButton { width: 100%; margin-top: 4px; }
.authHint { margin-top: 18px; padding: 13px; border-radius: 12px; background: rgba(255,200,92,.07); color: #d6bd7a; font-size: 11px; line-height: 1.5; }
.mobileMenu { display: none; }
.sidebarClose, .portalSidebarBackdrop { display: none; }

/* Business onboarding and reporting */
.portalOnboarding { min-height: 100vh; background: radial-gradient(circle at 10% 5%,rgba(255,104,66,.11),transparent 30%),var(--portal-bg); }
.onboardingHeader { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 38px; border-bottom: 1px solid var(--portal-line); }
.onboardingHeader .portalBrand { padding: 0; }
.onboardingMain { width: min(1180px,calc(100% - 48px)); display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 72px; margin: 0 auto; padding: 72px 0 100px; }
.onboardingAside h1 { margin: 8px 0 16px; font-size: 43px; line-height: 1.05; }
.onboardingAside > p:not(.eyebrow) { color: var(--portal-muted); line-height: 1.65; }
.onboardingSteps { display: grid; gap: 8px; margin: 38px 0 0; padding: 0; list-style: none; }
.onboardingSteps li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: center; padding: 12px; border-radius: 14px; color: #70727b; }
.onboardingSteps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--portal-line); border-radius: 11px; font-size: 12px; font-weight: 900; }
.onboardingSteps strong, .onboardingSteps small { display: block; }
.onboardingSteps small { margin-top: 3px; font-size: 11px; }
.onboardingSteps li.active { background: rgba(255,104,66,.08); color: white; }
.onboardingSteps li.active > span { border-color: transparent; background: var(--portal-coral); color: #1a0e0b; }
.onboardingSteps li.complete { color: #9b9da5; }
.onboardingSteps li.complete > span { border-color: rgba(71,215,155,.22); background: rgba(71,215,155,.1); color: var(--portal-green); }
.onboardingCard { align-self: start; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 26px; background: #121318; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.onboardingStep { padding: 42px; }
.stepCount { margin: 0 0 10px; color: #ff896a; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.onboardingStep h2 { margin: 0 0 10px; font-size: 31px; }
.stepLead { margin: 0 0 30px; color: var(--portal-muted); line-height: 1.6; }
.onboardingFooter { display: flex; justify-content: space-between; gap: 10px; padding: 20px 42px; border-top: 1px solid var(--portal-line); }
.onboardingFooter .portalButton:last-child { margin-left: auto; min-width: 126px; }
.logoUploadRow { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding: 18px; border: 1px dashed rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.02); }
.logoUploadRow small { display: block; margin-top: 8px; color: var(--portal-muted); }
.logoPreview { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg,var(--portal-coral),var(--portal-violet)); background-position: center; background-size: cover; color: white; font-size: 30px; font-weight: 950; }
.logoPreview.small { width: 54px; height: 54px; border-radius: 15px; font-size: 22px; }
.visuallyHidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.marketField { margin: 0; padding: 0; border: 0; }
.marketField legend { margin-bottom: 10px; color: #c9c8cc; font-size: 12px; font-weight: 800; }
.choiceGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.choiceGrid label { cursor: pointer; }
.choiceGrid input { position: absolute; opacity: 0; pointer-events: none; }
.choiceGrid span { min-height: 46px; display: grid; place-items: center; padding: 9px; border: 1px solid var(--portal-line); border-radius: 11px; background: #1a1b21; color: var(--portal-muted); text-align: center; }
.choiceGrid input:checked + span { border-color: rgba(255,104,66,.62); background: rgba(255,104,66,.1); color: #ff9a80; }
.profileReview { display: grid; gap: 18px; }
.profileReviewBrand { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--portal-line); border-radius: 17px; background: rgba(255,255,255,.025); }
.profileReviewBrand strong, .profileReviewBrand span { display: block; }
.profileReviewBrand span { margin-top: 4px; color: var(--portal-muted); font-size: 12px; }
.profileReview dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.profileReview dl div, .profileDescription { padding: 15px; border: 1px solid var(--portal-line); border-radius: 13px; background: rgba(255,255,255,.02); }
.profileReview dt, .profileDescription > span { color: var(--portal-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.profileReview dd { margin: 6px 0 0; color: white; }
.profileDescription p { margin: 8px 0 0; color: #d4d3d7; line-height: 1.55; }
.consentRow { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; padding: 15px; border-radius: 13px; background: rgba(255,200,92,.06); color: #d8ca9d; font-size: 12px; line-height: 1.5; }
.consentRow input { margin-top: 3px; accent-color: var(--portal-coral); }

.firstRunPanel { display: grid; grid-template-columns: 74px 1fr; gap: 24px; margin-bottom: 18px; padding: 30px; border: 1px solid rgba(255,104,66,.25); border-radius: 24px; background: linear-gradient(135deg,rgba(255,104,66,.1),rgba(143,114,255,.06)); }
.firstRunMark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--portal-coral); color: #1a0e0b; font-size: 20px; font-weight: 950; }
.firstRunPanel h3 { margin: 4px 0 8px; font-size: 27px; }
.firstRunPanel p:not(.eyebrow) { max-width: 710px; margin: 0; color: var(--portal-muted); line-height: 1.6; }
.firstRunActions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.lifecycleList { display: grid; gap: 12px; }
.lifecycleList > div { display: grid; grid-template-columns: 31px 1fr; gap: 12px; align-items: start; }
.lifecycleList > div > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: rgba(143,114,255,.12); color: #b7a8ff; font-size: 11px; font-weight: 900; }
.lifecycleList p { margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.5; }
.lifecycleList strong { display: block; color: white; font-size: 13px; }
.emptyState strong { display: block; color: white; font-size: 18px; }
.emptyState p { margin: 7px 0 18px; }
.sampleBanner { display: flex; align-items: center; gap: 12px; margin: -10px 0 20px; padding: 13px 16px; border: 1px solid rgba(143,114,255,.24); border-radius: 13px; background: rgba(143,114,255,.08); color: #c8beff; font-size: 12px; }
.sampleBanner strong { color: white; }
.reportSelector { display: grid; gap: 6px; color: var(--portal-muted); font-size: 11px; font-weight: 800; }
.reportSelector select { min-width: 250px; padding: 11px 13px; border: 1px solid var(--portal-line); border-radius: 11px; background: #191a20; color: white; }
.analyticsGrid { grid-template-columns: 1.25fr .75fr; }
.regionChart { display: grid; gap: 18px; }
.regionChart > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 16px; align-items: center; }
.regionChart span { color: #d6d5d9; font-size: 12px; }
.regionChart strong { font-size: 12px; }
.regionChart i { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: #26272e; }
.regionChart i::after { content: ""; width: var(--bar); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--portal-coral),var(--portal-violet)); }
.chartNote { margin: 20px 0 0; color: #777983; font-size: 11px; line-height: 1.55; }
.funnelList { display: grid; gap: 3px; }
.funnelList div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 2px; border-bottom: 1px solid var(--portal-line); }
.funnelList span { color: var(--portal-muted); }
.insightGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.insightGrid span { padding: 13px; border: 1px solid var(--portal-line); border-radius: 11px; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 750; }
.campaignTimeline { display: grid; gap: 0; }
.campaignTimeline span { position: relative; padding: 11px 0 11px 30px; color: #6f717a; font-size: 13px; font-weight: 750; }
.campaignTimeline span::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 10px; border: 2px solid #555761; border-radius: 50%; background: #121318; }
.campaignTimeline span:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 27px; width: 1px; height: 20px; background: #3a3b43; }
.campaignTimeline span.done { color: white; }
.campaignTimeline span.done::before { border-color: var(--portal-green); background: var(--portal-green); }

@media (max-width: 960px) {
  .businessHeroGrid, .splitHeading, .processGrid, .privacyGrid { grid-template-columns: 1fr; gap: 46px; }
  .businessFeatureGrid { grid-template-columns: 1fr; }
  .businessFeatureGrid article { min-height: 0; }
  .businessFeatureGrid article h3 { margin-top: 46px; }
  .portalShell { grid-template-columns: 1fr; }
  .portalSidebar { position: fixed; z-index: 40; left: 0; top: 38px; width: 256px; transform: translateX(-102%); transition: transform .2s ease; }
  .portalSidebar.open { transform: translateX(0); }
  .portalSidebarBackdrop { position: fixed; inset: 38px 0 0; z-index: 39; display: block; background: rgba(7,8,12,.58); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .portalSidebarBackdrop.open { opacity: 1; pointer-events: auto; }
  .sidebarClose { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.06); color: white; font-size: 23px; line-height: 1; cursor: pointer; }
  .mobileMenu { display: inline-grid; place-items: center; }
  .metricGrid { grid-template-columns: 1fr 1fr; }
  .portalGrid { grid-template-columns: 1fr; }
  .portalAuth { grid-template-columns: 1fr; }
  .authStory { min-height: 370px; padding: 34px; }
  .authPanel { padding: 48px 24px; }
  .onboardingMain { grid-template-columns: 1fr; gap: 34px; }
  .onboardingSteps { grid-template-columns: repeat(3,1fr); }
  .analyticsGrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .businessNavLinks a:not(.lightCta) { display: none; }
  .businessNav .brand em { display: none; }
  .businessNav .nav { gap: 12px; }
  .businessNav .lightCta { min-height: 40px; padding-inline: 13px; white-space: nowrap; font-size: 13px; }
  .businessHero { padding: 68px 0 78px; }
  .sponsorPreview { min-height: 480px; }
  .sponsorCard { padding: 23px; }
  .pollOptions { grid-template-columns: 1fr; }
  .businessSection { padding: 76px 0; }
  .privacyList { grid-template-columns: 1fr; }
  .finalCtaCard { padding: 42px 24px; }
  .portalTopbar { min-height: 70px; padding: 0 16px; }
  .portalContent { padding: 24px 16px 46px; }
  .viewIntro { align-items: flex-start; flex-direction: column; }
  .metricGrid { grid-template-columns: 1fr; }
  .queueTable th:nth-child(3), .queueTable td:nth-child(3) { display: none; }
  .queueTable th, .queueTable td { padding-inline: 9px; }
  .formGrid, .detailGrid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .authStory { min-height: 320px; padding: 26px; }
  .authPanel { padding: 38px 18px; }
  .onboardingHeader { padding: 14px 18px; }
  .onboardingHeader .portalBrand small { display: none; }
  .onboardingMain { width: min(100% - 28px,1180px); padding: 40px 0 70px; }
  .onboardingAside h1 { font-size: 34px; }
  .onboardingSteps { grid-template-columns: 1fr; }
  .onboardingSteps li:not(.active) { display: none; }
  .onboardingStep { padding: 28px 20px; }
  .onboardingFooter { padding: 18px 20px; }
  .choiceGrid, .profileReview dl, .insightGrid { grid-template-columns: 1fr; }
  .logoUploadRow, .firstRunPanel { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .reportSelector select { min-width: 0; width: 100%; }
  .sampleBanner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .portalDrawer, .drawerBackdrop, .toast, .portalSidebar { transition: none; }
}

/* Portal design system v2 — authenticated business experience */
html[data-theme="light"] {
  color-scheme: light;
  --portal-bg: #f4f6fa;
  --portal-panel: #ffffff;
  --portal-panel-2: #f6f7fa;
  --portal-line: #e1e5ec;
  --portal-copy: #17191f;
  --portal-muted: #686d79;
  --portal-soft: #8b909b;
  --portal-sidebar: #ffffff;
  --portal-input: #ffffff;
  --portal-hover: #f1f3f7;
  --portal-overlay: rgba(22,24,30,.42);
  --portal-shadow: 0 18px 50px rgba(23,25,31,.10);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --portal-bg: #0d0f13;
  --portal-panel: #15171c;
  --portal-panel-2: #1b1e24;
  --portal-line: rgba(255,255,255,.10);
  --portal-copy: #f5f6f8;
  --portal-muted: #a0a4ae;
  --portal-soft: #777c87;
  --portal-sidebar: #111318;
  --portal-input: #1a1d23;
  --portal-hover: rgba(255,255,255,.055);
  --portal-overlay: rgba(0,0,0,.72);
  --portal-shadow: 0 24px 70px rgba(0,0,0,.34);
}

html[data-theme="light"] .textButton { color: #b33a20; }
html[data-theme="light"] .statusPill { background: #fff4d9; color: #76500b; }
html[data-theme="light"] .statusPill.approved { background: #e5f7ef; color: #116648; }
html[data-theme="light"] .statusPill.revision { background: #f0ecff; color: #5839a7; }
html[data-theme="light"] .statusPill.urgent { background: #ffebef; color: #a1213d; }

html[data-theme] .portalPage { color: var(--portal-copy); background: var(--portal-bg); }
html[data-theme] .prototypeBar { min-height: 34px; padding: 7px 18px; border-bottom: 1px solid rgba(174,123,14,.16); background: #fff8e7; color: #72571b; }
html[data-theme="dark"] .prototypeBar { border-color: rgba(255,200,92,.14); background: #2c2411; color: #f8d88d; }
html[data-theme] .portalShell { min-height: calc(100vh - 34px); grid-template-columns: 264px minmax(0,1fr); }
html[data-theme] .portalSidebar { height: calc(100vh - 34px); padding: 22px 16px; border-color: var(--portal-line); background: var(--portal-sidebar); }
html[data-theme] .workspaceBrand { min-height: 62px; margin: 0 4px 20px; padding: 8px 8px 18px; border-color: var(--portal-line); color: var(--portal-copy); }
html[data-theme] .workspaceBrand small { color: var(--portal-soft); }
html[data-theme] .portalNav { gap: 6px; }
html[data-theme] .portalNav button { min-height: 46px; padding: 0 13px; border-radius: 10px; color: var(--portal-muted); }
html[data-theme] .portalNav button:hover { color: var(--portal-copy); background: var(--portal-hover); }
html[data-theme] .portalNav button[aria-current="page"] { background: rgba(255,104,66,.11); color: #e64f2c; }
html[data-theme="dark"] .portalNav button[aria-current="page"] { color: #ff987d; }
html[data-theme] .portalAccount { border-color: var(--portal-line); }
html[data-theme] .portalAccount .poweredBy { color: var(--portal-muted); }
html[data-theme] .portalMain { min-height: calc(100vh - 34px); background: var(--portal-bg); }
html[data-theme] .portalTopbar { min-height: 72px; padding: 0 32px; border-color: var(--portal-line); background: color-mix(in srgb,var(--portal-bg) 88%,transparent); backdrop-filter: blur(18px); }
html[data-theme] .portalTopbar h1 { color: var(--portal-copy); font-size: 19px; }
html[data-theme] .portalContent { width: min(1440px,100%); margin: 0 auto; padding: 34px 36px 64px; }
html[data-theme] .portalButton { min-height: 44px; padding: 0 16px; border-color: var(--portal-line); border-radius: 10px; background: var(--portal-panel); color: var(--portal-copy); box-shadow: 0 1px 1px rgba(20,22,27,.03); }
html[data-theme] .portalButton:hover { border-color: color-mix(in srgb,var(--portal-line) 55%,var(--portal-copy)); background: var(--portal-hover); }
html[data-theme] .portalButton.primary { border-color: transparent; background: var(--portal-coral); color: #28110a; box-shadow: 0 8px 20px rgba(255,104,66,.20); }
html[data-theme] .portalButton.primary:hover { background: #ff7a58; }
html[data-theme] .portalButton.secondary { background: transparent; }
html[data-theme] .iconButton { width: 40px; height: 40px; border-color: var(--portal-line); border-radius: 10px; color: var(--portal-copy); }
.themeToggle { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-panel); color: var(--portal-muted); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.themeToggle:hover { color: var(--portal-copy); background: var(--portal-hover); }
.themeToggle.compact { min-height: 44px; }
.themeIcon { width: 17px; height: 17px; display: grid; place-items: center; font-size: 16px; line-height: 1; }
html[data-theme="light"] .themeIcon::before { content: "☾"; }
html[data-theme="dark"] .themeIcon::before { content: "☀"; }
.headerActions, .authUtility { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.authUtility { margin-bottom: 30px; }

html[data-theme] .viewIntro { align-items: center; margin-bottom: 28px; }
html[data-theme] .viewIntro h2 { margin: 5px 0 9px; color: var(--portal-copy); font-size: clamp(30px,3vw,38px); letter-spacing: -.035em; }
html[data-theme] .viewIntro p { color: var(--portal-muted); }
html[data-theme] .metricGrid { gap: 14px; }
html[data-theme] .metricCard, html[data-theme] .portalPanel { border-color: var(--portal-line); background: var(--portal-panel); box-shadow: 0 1px 2px rgba(20,22,27,.025); }
html[data-theme] .metricCard { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 16px; }
html[data-theme] .metricCard span { color: var(--portal-muted); }
html[data-theme] .metricCard strong { margin: 12px 0 0; color: var(--portal-copy); font-size: 30px; letter-spacing: -.03em; }
html[data-theme] .metricCard small { color: var(--portal-soft); line-height: 1.4; }
html[data-theme] .portalGrid { grid-template-columns: minmax(0,1fr) minmax(300px,360px); gap: 16px; margin-top: 16px; }
html[data-theme] .portalPanel { padding: 22px; border-radius: 16px; }
html[data-theme] .panelHeader { min-height: 44px; margin-bottom: 18px; }
html[data-theme] .panelHeader h3 { color: var(--portal-copy); }
html[data-theme] .panelHeader p { color: var(--portal-muted); }
html[data-theme] .campaignList { gap: 8px; }
html[data-theme] .campaignRow { grid-template-columns: minmax(0,1fr) auto 20px; min-height: 82px; padding: 14px 16px; border-color: var(--portal-line); border-radius: 12px; background: var(--portal-panel); }
html[data-theme] .campaignRow:hover, html[data-theme] .campaignRow:focus-visible { border-color: rgba(255,104,66,.38); background: var(--portal-hover); outline: 0; }
html[data-theme] .campaignRow strong { color: var(--portal-copy); font-size: 14px; }
html[data-theme] .campaignRow small { color: var(--portal-muted); line-height: 1.45; }
.campaignIdentity, .campaignMeta { min-width: 0; }
.campaignIdentity strong, .campaignIdentity small, .campaignMeta span, .campaignMeta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaignIdentity { grid-column: 1; grid-row: 1; }
.campaignMeta { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 9px; text-align: left; }
.campaignRow > .statusPill { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.campaignRow > .rowChevron { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.campaignMeta span { color: var(--portal-copy); font-size: 12px; font-weight: 800; }
.rowChevron { color: var(--portal-soft); font-size: 24px; font-weight: 300; }
html[data-theme] .queueToolbar { margin-bottom: 18px; }
html[data-theme] .filterButton { min-height: 36px; padding: 0 13px; border-color: var(--portal-line); color: var(--portal-muted); }
html[data-theme] .filterButton.active { border-color: var(--portal-copy); background: var(--portal-copy); color: var(--portal-panel); }
html[data-theme] .sampleBanner { margin: 0 0 18px; border-color: rgba(143,114,255,.20); background: rgba(143,114,255,.07); color: color-mix(in srgb,var(--portal-violet) 70%,var(--portal-copy)); }
html[data-theme] .sampleBanner strong { color: var(--portal-copy); }
html[data-theme] .firstRunPanel { border-radius: 18px; }
html[data-theme] .firstRunPanel h3, html[data-theme] .lifecycleList strong, html[data-theme] .emptyState strong { color: var(--portal-copy); }
html[data-theme] .firstRunPanel p:not(.eyebrow), html[data-theme] .lifecycleList p, html[data-theme] .emptyState { color: var(--portal-muted); }

html[data-theme] .portalModal { border-color: var(--portal-line); border-radius: 18px; background: var(--portal-panel); color: var(--portal-copy); box-shadow: var(--portal-shadow); }
html[data-theme] .portalModal::backdrop { background: var(--portal-overlay); }
html[data-theme] .modalHeader { padding: 24px 26px; border-color: var(--portal-line); }
html[data-theme] .modalHeader .eyebrow { margin: 0 0 7px; }
html[data-theme] .modalHeader h2 { color: var(--portal-copy); }
html[data-theme] .modalHeader p { color: var(--portal-muted); }
html[data-theme] .modalBody { padding: 26px; }
html[data-theme] .modalFooter { min-height: 76px; align-items: center; padding: 16px 26px; border-color: var(--portal-line); }
html[data-theme] .field { align-content: start; gap: 8px; }
html[data-theme] .field label, html[data-theme] .marketField legend { color: var(--portal-copy); }
html[data-theme] .field input, html[data-theme] .field select, html[data-theme] .field textarea, html[data-theme] .portalSelectTrigger { min-height: 48px; border-color: var(--portal-line); background: var(--portal-input); color: var(--portal-copy); }
html[data-theme] .field textarea { min-height: 104px; }
html[data-theme] .field small { color: var(--portal-soft); }
html[data-theme] .portalSelectMenu { border-color: var(--portal-line); background: var(--portal-panel); box-shadow: var(--portal-shadow); }
html[data-theme] .portalSelectOption { color: var(--portal-muted); }
html[data-theme] .portalSelectOption:hover { background: var(--portal-hover); color: var(--portal-copy); }
html[data-theme] .portalSelectOption.selected { background: rgba(255,104,66,.10); color: #e65330; }
html[data-theme="light"] .portalSelectOption.selected { color: #b33a20; }
html[data-theme] .systemPollOption .pollOptionInput:disabled { border-color: var(--portal-line); background: var(--portal-panel-2); color: var(--portal-muted); }
html[data-theme] .removePollOption { border-color: var(--portal-line); color: var(--portal-soft); }
html[data-theme] .formNotice { border-color: rgba(174,123,14,.18); background: #fff9ea; color: #6f571f; }
html[data-theme="dark"] .formNotice { border-color: rgba(255,200,92,.18); background: rgba(255,200,92,.065); color: #dac380; }

.detailSectionHeader { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.detailSectionHeader label { margin: 0; }
.detailSectionHeader p { margin-top: 4px; color: var(--portal-muted); font-size: 12px; }
html[data-theme] .detailBlock { border-color: var(--portal-line); }
html[data-theme] .detailBlock label { color: var(--portal-soft); }
html[data-theme] .detailBlock p { color: var(--portal-muted); }
html[data-theme] .detailTile { min-height: 72px; padding: 15px; border: 1px solid var(--portal-line); border-radius: 12px; background: var(--portal-panel-2); }
html[data-theme] .detailTile strong { color: var(--portal-copy); line-height: 1.3; }
.campaignSummaryGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dojiList { display: grid; gap: 8px; }
.dojiRow { display: grid; grid-template-columns: 38px minmax(220px,1fr) minmax(150px,.55fr) auto; gap: 12px; align-items: center; min-height: 72px; padding: 12px 14px; border: 1px solid var(--portal-line); border-radius: 12px; background: var(--portal-panel-2); }
.dojiFormatMark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(143,114,255,.12); color: var(--portal-violet); font-size: 12px; font-weight: 900; }
.dojiRow strong, .dojiRow small, .dojiMeta span { display: block; }
.dojiRow strong { color: var(--portal-copy); font-size: 13px; }
.dojiRow small { margin-top: 4px; overflow: hidden; color: var(--portal-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dojiMeta span { color: var(--portal-copy); font-size: 12px; font-weight: 750; }
.emptyState.compact { padding: 26px 16px; border: 1px dashed var(--portal-line); border-radius: 12px; background: var(--portal-panel-2); }

/* Correctly aligned campaign lifecycle */
.campaignTimeline { display: grid; gap: 0; padding: 2px 0; }
.campaignTimeline span { position: relative; min-height: 50px; display: flex; align-items: flex-start; padding: 10px 0 18px 42px; color: var(--portal-soft); font-size: 13px; font-weight: 760; line-height: 20px; }
.campaignTimeline span::before { content: ""; position: absolute; z-index: 1; left: 4px; top: 10px; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--portal-soft); border-radius: 50%; background: var(--portal-panel); }
.campaignTimeline span:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: -2px; width: 2px; height: auto; background: var(--portal-line); }
.campaignTimeline span.done { color: var(--portal-copy); }
.campaignTimeline span.done::before { border-color: var(--portal-green); background: var(--portal-green); box-shadow: inset 0 0 0 4px var(--portal-panel); }
.campaignTimeline span.done:not(:last-child)::after { background: color-mix(in srgb,var(--portal-green) 52%,var(--portal-line)); }
.campaignTimeline span.current::before { border-color: var(--portal-coral); box-shadow: 0 0 0 4px rgba(255,104,66,.12); }

.resultsIntro { align-items: flex-end; }
.portalPage .analyticsGrid { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); }
.reportControls { display: grid; grid-template-columns: repeat(2,minmax(210px,1fr)); gap: 10px; }
.reportSelector { min-width: 0; }
.reportSelector .portalSelect { min-width: 0; }
.resultBreakdown { margin-top: 16px; }
html[data-theme] .regionChart span { color: var(--portal-copy); }
html[data-theme] .regionChart i { background: var(--portal-panel-2); }
html[data-theme] .chartNote { color: var(--portal-soft); }
html[data-theme] .funnelList div { border-color: var(--portal-line); }
html[data-theme] .funnelList span { color: var(--portal-muted); }

html[data-theme] .portalAuth { color: var(--portal-copy); background: var(--portal-bg); }
html[data-theme] .authStory { background: linear-gradient(145deg,#fff7f3,#f0efff); }
html[data-theme="dark"] .authStory { background: linear-gradient(155deg,#19151e,#0d1015); }
html[data-theme] .authStory::after { opacity: .55; }
html[data-theme] .authStory .portalBrand { color: var(--portal-copy); }
html[data-theme] .authCopy p, html[data-theme] .authFine, html[data-theme] .authCard > p { color: var(--portal-muted); }
html[data-theme] .authPanel { background: var(--portal-bg); }
html[data-theme] .authCard h2 { color: var(--portal-copy); }
html[data-theme] .authTabs { background: var(--portal-panel-2); }
html[data-theme] .authTabs button { color: var(--portal-muted); }
html[data-theme] .authTabs button.active { background: var(--portal-panel); color: var(--portal-copy); box-shadow: 0 1px 4px rgba(20,22,27,.08); }
html[data-theme] .authHint { background: #fff8e7; color: #72571b; }
html[data-theme="dark"] .authHint { background: rgba(255,200,92,.07); color: #d6bd7a; }

html[data-theme] .portalOnboarding { background: radial-gradient(circle at 10% 5%,rgba(255,104,66,.08),transparent 30%),var(--portal-bg); }
html[data-theme] .onboardingHeader { border-color: var(--portal-line); }
html[data-theme] .onboardingHeader .portalBrand { color: var(--portal-copy); }
html[data-theme] .onboardingAside > p:not(.eyebrow), html[data-theme] .stepLead { color: var(--portal-muted); }
html[data-theme] .onboardingSteps li { color: var(--portal-soft); }
html[data-theme] .onboardingSteps li.active { background: rgba(255,104,66,.08); color: var(--portal-copy); }
html[data-theme] .onboardingCard { border-color: var(--portal-line); background: var(--portal-panel); box-shadow: var(--portal-shadow); }
html[data-theme] .onboardingFooter { border-color: var(--portal-line); }
html[data-theme] .logoUploadRow { border-color: var(--portal-line); background: var(--portal-panel-2); }
html[data-theme] .choiceGrid span { border-color: var(--portal-line); background: var(--portal-input); color: var(--portal-muted); }
html[data-theme] .profileReviewBrand, html[data-theme] .profileReview dl div, html[data-theme] .profileDescription { border-color: var(--portal-line); background: var(--portal-panel-2); }
html[data-theme] .profileReview dd, html[data-theme] .profileDescription p { color: var(--portal-copy); }

@media (max-width: 1100px) {
  html[data-theme] .campaignRow { grid-template-columns: minmax(0,1fr) auto 18px; }
  .reportControls { grid-template-columns: 1fr; min-width: 270px; }
}

@media (max-width: 760px) {
  .themeToggle.compact [data-theme-label] { display: none; }
  html[data-theme] .portalContent { padding: 26px 18px 48px; }
  .portalPage .portalGrid, .portalPage .analyticsGrid { grid-template-columns: 1fr; }
  html[data-theme] .campaignRow { grid-template-columns: minmax(0,1fr) auto 18px; }
  .dojiRow { grid-template-columns: 38px minmax(0,1fr) auto; }
  .dojiMeta { grid-column: 2 / -1; }
  .campaignSummaryGrid { grid-template-columns: 1fr; }
  .resultsIntro { align-items: stretch; }
  .reportControls { width: 100%; min-width: 0; }
}

/* Admin operating console */
.adminPortalPage .adminAuthStory { background: radial-gradient(circle at 15% 15%,rgba(255,104,66,.18),transparent 34%),linear-gradient(150deg,#17131b,#0d1015); }
html[data-theme="light"] .adminPortalPage .adminAuthStory { background: radial-gradient(circle at 15% 15%,rgba(255,104,66,.16),transparent 34%),linear-gradient(145deg,#fff7f3,#f0efff); }
.adminWorkspaceBrand { text-decoration: none; cursor: default; }
.adminWorkspaceBrand .workspaceLogo { padding: 7px; background: var(--portal-panel-2); }
.adminWorkspaceBrand .workspaceLogo img { width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }
.adminSidebar { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.adminNav { padding-bottom: 12px; }
.navSectionLabel { display: block; margin: 17px 13px 7px; color: var(--portal-soft); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.navSectionLabel:first-child { margin-top: 0; }
.adminNav button { position: relative; }
.navCount { min-width: 24px; height: 22px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--portal-panel-2); color: var(--portal-muted); font-size: 10px; font-weight: 900; }
.adminNav button[aria-current="page"] .navCount { background: rgba(255,104,66,.14); color: inherit; }
.navAlert { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--portal-red); box-shadow: 0 0 0 4px rgba(255,109,123,.12); }
.operatorState { display: flex !important; align-items: center; gap: 6px; margin-top: 9px !important; }
.operatorState i { width: 7px; height: 7px; border-radius: 50%; background: var(--portal-green); }
.topbarKicker { margin: 0 0 5px; color: var(--portal-soft); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.adminTopbar { position: sticky; z-index: 25; top: 34px; }
.adminSearchButton { min-width: 240px; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 13px; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-panel); color: var(--portal-muted); font-size: 12px; text-align: left; cursor: pointer; }
.adminSearchButton > span:nth-child(2) { flex: 1; }
.adminSearchButton kbd { padding: 4px 6px; border: 1px solid var(--portal-line); border-radius: 6px; background: var(--portal-panel-2); color: var(--portal-soft); font: inherit; font-size: 10px; }
.adminContent { max-width: 1540px; }
.adminIntro { align-items: flex-end; }
.introActions { display: flex; gap: 9px; flex: 0 0 auto; }
.adminMetricGrid .metricCard { position: relative; overflow: hidden; }
.adminMetricGrid .metricCard::after { content: ""; position: absolute; right: -32px; bottom: -42px; width: 100px; height: 100px; border-radius: 50%; background: rgba(143,114,255,.06); }
.adminMetricGrid .criticalMetric::after { background: rgba(255,109,123,.09); }
.adminMetricGrid .healthyMetric::after { background: rgba(71,215,155,.09); }
.metricCard .wordMetric { font-size: 25px; }
.adminDashboardGrid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); gap: 16px; margin-top: 16px; align-items: start; }
.dashboardRail { display: grid; gap: 16px; }
.textButton { padding: 4px 0; border: 0; background: transparent; color: var(--portal-coral); font-size: 12px; font-weight: 850; cursor: pointer; }
.priorityList { display: grid; gap: 3px; }
.priorityRow { width: 100%; display: grid; grid-template-columns: 4px minmax(0,1fr) minmax(150px,.35fr) 18px; gap: 14px; align-items: center; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--portal-line); background: transparent; color: var(--portal-copy); text-align: left; cursor: pointer; }
.priorityRow:last-child { border-bottom: 0; }
.priorityRow:hover { background: var(--portal-hover); }
.priorityMark { width: 4px; height: 38px; border-radius: 999px; background: var(--portal-soft); }
.priorityMark.critical { background: var(--portal-red); }
.priorityMark.high { background: var(--portal-yellow); }
.priorityMark.low { background: var(--portal-green); }
.priorityCopy strong, .priorityCopy small, .priorityDue strong, .priorityDue small { display: block; }
.priorityCopy strong { font-size: 13px; }
.priorityCopy small, .priorityDue small { margin-top: 4px; color: var(--portal-muted); font-size: 11px; }
.priorityDue { text-align: right; }
.priorityDue strong { color: var(--portal-muted); font-size: 11px; }
.slaList, .scheduleList { display: grid; gap: 4px; }
.slaList > div, .scheduleList > div { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--portal-line); }
.slaList > div:last-child, .scheduleList > div:last-child { border-bottom: 0; }
.slaList span, .scheduleList span { min-width: 0; }
.slaList span:first-child { display: grid; grid-template-columns: 10px minmax(0,1fr); column-gap: 9px; }
.slaList span:first-child .serviceDot { grid-row: 1 / 3; align-self: center; }
.slaList strong, .slaList small, .scheduleList strong, .scheduleList small { display: block; }
.slaList strong, .scheduleList strong { color: var(--portal-copy); font-size: 12px; }
.slaList small, .scheduleList small { margin-top: 4px; color: var(--portal-soft); font-size: 10px; }
.scheduleList > div { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; }
.scheduleList time { color: var(--portal-muted); font-size: 11px; font-weight: 800; }

.queuePanel { padding: 0 !important; overflow: hidden; }
.queueCommandBar { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--portal-line); }
.queueSearch { min-width: 250px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-input); color: var(--portal-soft); }
.queueSearch:focus-within { border-color: var(--portal-violet); box-shadow: 0 0 0 3px rgba(143,114,255,.1); }
.queueSearch input { width: 100%; min-height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--portal-copy); font-size: 12px; }
.queueCommandBar > .portalSelect, .queueCommandBar > select { width: 190px; flex: 0 0 190px; }
.queueCommandBar .portalSelectTrigger { min-height: 42px; }
.queuePanel .tableWrap { margin: 0; }
.queueTable td { border-color: var(--portal-line); color: var(--portal-copy); vertical-align: middle; }
.queueTable tbody tr:focus-visible { outline: 2px solid var(--portal-violet); outline-offset: -2px; }
.queueTable tbody tr:hover { background: var(--portal-hover); }
.queueTable td strong, .queueTable td small { display: block; }
.queueTable td strong { color: var(--portal-copy); font-size: 12px; }
.queueTable td small { max-width: 330px; margin-top: 4px; overflow: hidden; color: var(--portal-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ownerCell { color: var(--portal-muted); font-size: 12px; }
.priorityBadge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 7px; background: var(--portal-panel-2); color: var(--portal-muted); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.priorityBadge.critical { background: rgba(255,109,123,.12); color: var(--portal-red); }
.priorityBadge.high { background: rgba(255,200,92,.13); color: #a87500; }
html[data-theme="dark"] .priorityBadge.high { color: var(--portal-yellow); }
.priorityBadge.low { background: rgba(71,215,155,.11); color: #23845c; }
.tableFooter { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; border-top: 1px solid var(--portal-line); color: var(--portal-soft); font-size: 10px; }
.emptyTableRow td { padding: 44px !important; color: var(--portal-muted) !important; text-align: center; }
.queueSummaryStrip { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 14px; background: var(--portal-panel); }
.queueSummaryStrip > span { padding: 16px 18px; border-right: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 11px; }
.queueSummaryStrip > span:last-child { border-right: 0; }
.queueSummaryStrip strong { margin-right: 4px; color: var(--portal-copy); font-size: 15px; }
.restrictedNotice { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 17px 19px; border: 1px solid rgba(255,109,123,.2); border-radius: 14px; background: rgba(255,109,123,.055); }
.restrictedNotice > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,109,123,.12); color: var(--portal-red); font-weight: 950; }
.restrictedNotice strong { color: var(--portal-copy); font-size: 13px; }
.restrictedNotice p { margin: 4px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.5; }
.syncNote { display: inline-flex; align-items: center; gap: 8px; color: var(--portal-muted); font-size: 11px; font-weight: 800; }
.syncNote i { width: 7px; height: 7px; border-radius: 50%; background: var(--portal-green); box-shadow: 0 0 0 4px rgba(71,215,155,.1); }

.businessAdminGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.businessAdminCard { display: grid; grid-template-columns: 54px minmax(0,1fr) 20px; gap: 15px; align-items: start; padding: 20px; border: 1px solid var(--portal-line); border-radius: 16px; background: var(--portal-panel); color: var(--portal-copy); text-align: left; cursor: pointer; }
.businessAdminCard:hover { border-color: rgba(255,104,66,.36); background: var(--portal-hover); }
.businessAvatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg,rgba(255,104,66,.18),rgba(143,114,255,.18)); color: var(--portal-coral); font-size: 20px; font-weight: 950; }
.businessCardBody, .businessCardBody > small, .businessOwner { display: block; }
.businessCardHeading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.businessCardHeading strong { font-size: 15px; }
.businessCardBody > small { margin-top: 3px; color: var(--portal-muted); font-size: 11px; }
.businessFacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.businessFacts span { padding: 5px 7px; border-radius: 6px; background: var(--portal-panel-2); color: var(--portal-muted); font-size: 9px; font-weight: 750; }
.businessOwner { margin-top: 13px; color: var(--portal-soft); font-size: 10px; }

.announcementGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.announcementCard { min-height: 275px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--portal-line); border-radius: 16px; background: var(--portal-panel); }
.announcementCardTop { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.announcementType { color: var(--portal-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.announcementCard h3 { margin: 28px 0 22px; color: var(--portal-copy); font-size: 20px; }
.announcementCard dl { display: grid; gap: 10px; margin: 0 0 22px; }
.announcementCard dl div { display: flex; justify-content: space-between; gap: 12px; }
.announcementCard dt { color: var(--portal-soft); font-size: 10px; }
.announcementCard dd { margin: 0; color: var(--portal-muted); font-size: 10px; font-weight: 750; text-align: right; }
.announcementCard .fullButton { margin-top: auto; }

.opsGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.opsHero { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 28px !important; }
.opsHero h3 { margin: 6px 0 8px; color: var(--portal-copy); font-size: 24px; }
.opsHero p:not(.eyebrow) { max-width: 710px; margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.55; }
.healthPulse { width: 9px; height: 9px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--portal-green); box-shadow: 0 0 0 6px rgba(71,215,155,.1); }
.opsHeroMetric { flex: 0 0 auto; text-align: right; }
.opsHeroMetric strong, .opsHeroMetric span { display: block; }
.opsHeroMetric strong { color: var(--portal-copy); font-size: 34px; }
.opsHeroMetric span { margin-top: 5px; color: var(--portal-muted); font-size: 10px; }
.serviceList, .releaseRows, .guardrailList { display: grid; gap: 0; }
.serviceList > div, .releaseRows > div { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--portal-line); }
.serviceList > div:last-child, .releaseRows > div:last-child { border-bottom: 0; }
.serviceList span, .releaseRows span { display: flex; align-items: center; gap: 9px; }
.serviceList strong, .releaseRows strong { color: var(--portal-copy); font-size: 12px; }
.serviceList small, .releaseRows small { color: var(--portal-muted); font-size: 10px; }
.serviceDot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--portal-soft); }
.serviceDot.healthy { background: var(--portal-green); }
.serviceDot.urgent { background: var(--portal-red); }
.releaseRows > div > span:first-child { min-width: 100px; display: block; }
.releaseRows > div > span:first-child strong, .releaseRows > div > span:first-child small { display: block; }
.fullButton { width: 100%; margin-top: 18px; }
.guardrailList label { min-height: 46px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 11px; }
.guardrailList label:last-child { border-bottom: 0; }
.guardrailList input { accent-color: var(--portal-green); }

.auditList { display: grid; }
.auditRow { min-height: 74px; display: grid; grid-template-columns: 36px minmax(0,1fr) 150px 72px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--portal-line); }
.auditActor { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--portal-panel-2); color: var(--portal-muted); font-size: 10px; font-weight: 900; }
.auditRow strong { color: var(--portal-copy); font-size: 12px; }
.auditRow p { margin: 4px 0 0; color: var(--portal-muted); font-size: 10px; }
.auditRow time { color: var(--portal-soft); font-size: 10px; text-align: right; }
.auditType { color: var(--portal-soft); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-align: right; text-transform: uppercase; }

html[data-theme] .adminDrawer { width: min(680px,100%); padding: 0; border-color: var(--portal-line); background: var(--portal-panel); color: var(--portal-copy); }
.adminDrawer .drawerHeader { margin: 0; padding: 26px 28px 20px; border-bottom: 1px solid var(--portal-line); }
.drawerHeaderMeta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.drawerTabs { display: flex; gap: 22px; padding: 0 28px; border-bottom: 1px solid var(--portal-line); }
.drawerTabs button { position: relative; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--portal-muted); font-size: 11px; font-weight: 850; cursor: pointer; }
.drawerTabs button.active { color: var(--portal-copy); }
.drawerTabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--portal-coral); }
.adminDrawer #drawerContent { padding: 24px 28px; }
.reviewOptionList { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.reviewOptionList span { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--portal-line); border-radius: 9px; background: var(--portal-panel-2); color: var(--portal-copy); font-size: 11px; }
.reviewOptionList i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--portal-panel); color: var(--portal-muted); font-size: 9px; font-style: normal; font-weight: 900; }
.prototypeBoundary { margin-top: 20px; padding: 15px; border: 1px solid rgba(174,123,14,.18); border-radius: 11px; background: #fff9ea; color: #6f571f; }
html[data-theme="dark"] .prototypeBoundary { border-color: rgba(255,200,92,.18); background: rgba(255,200,92,.06); color: #dac380; }
.prototypeBoundary strong { font-size: 11px; }
.prototypeBoundary p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; }
.decisionPanel { position: sticky; bottom: 0; padding: 20px 28px 26px; border-top: 1px solid var(--portal-line); background: color-mix(in srgb,var(--portal-panel) 94%,transparent); backdrop-filter: blur(18px); }
.decisionPanel textarea { min-height: 78px; }
.decisionPanel .drawerActions { margin-top: 12px; justify-content: flex-end; }
.drawerTimeline { display: grid; padding: 8px 0; }
.drawerTimeline > div { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; min-height: 66px; }
.drawerTimeline > div:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 15px; bottom: -2px; width: 1px; background: var(--portal-line); }
.drawerTimeline > div > span { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 2px; border: 3px solid var(--portal-panel); border-radius: 50%; background: var(--portal-coral); box-shadow: 0 0 0 1px var(--portal-line); }
.drawerTimeline p { margin: 0; }
.drawerTimeline strong, .drawerTimeline small { display: block; }
.drawerTimeline strong { color: var(--portal-copy); font-size: 12px; }
.drawerTimeline small { margin-top: 5px; color: var(--portal-soft); font-size: 10px; }
.relatedList { display: grid; gap: 10px; }
.relatedList > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--portal-line); }
.relatedList span { color: var(--portal-soft); font-size: 10px; }
.relatedList strong { max-width: 65%; color: var(--portal-copy); font-size: 11px; text-align: right; }

.globalSearchModal { width: min(720px,calc(100% - 28px)); overflow: visible; }
.globalSearchInput { display: grid; grid-template-columns: 24px minmax(0,1fr) 40px; gap: 10px; align-items: center; padding: 15px; border-bottom: 1px solid var(--portal-line); color: var(--portal-soft); }
.globalSearchInput input { min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--portal-copy); font-size: 15px; }
.globalSearchResults { max-height: min(560px,65vh); overflow-y: auto; padding: 10px; }
.searchSectionLabel { margin: 8px 10px 9px; color: var(--portal-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.globalSearchResults > button { width: 100%; min-height: 64px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--portal-copy); text-align: left; cursor: pointer; }
.globalSearchResults > button:hover { background: var(--portal-hover); }
.searchResultIcon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--portal-panel-2); color: var(--portal-coral); font-size: 11px; font-weight: 900; }
.globalSearchResults strong, .globalSearchResults small { display: block; }
.globalSearchResults strong { font-size: 12px; }
.globalSearchResults small { margin-top: 4px; color: var(--portal-muted); font-size: 10px; }

@media (max-width: 1180px) {
  .adminDashboardGrid { grid-template-columns: 1fr; }
  .dashboardRail { grid-template-columns: 1fr 1fr; }
  .announcementGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .queueCommandBar { align-items: stretch; flex-wrap: wrap; }
  .queueSearch { flex-basis: 100%; }
}

@media (max-width: 960px) {
  .adminTopbar { top: 34px; }
  .adminSearchButton { min-width: 44px; width: 44px; justify-content: center; }
  .adminSearchButton > span:nth-child(2), .adminSearchButton kbd { display: none; }
  .businessAdminGrid, .opsGrid { grid-template-columns: 1fr; }
  .opsHero { grid-column: auto; }
}

@media (max-width: 700px) {
  .adminTopActions .themeToggle { display: none; }
  .adminIntro { align-items: stretch; }
  .introActions { width: 100%; }
  .introActions .portalButton { flex: 1; }
  .dashboardRail, .announcementGrid { grid-template-columns: 1fr; }
  .queueSummaryStrip { grid-template-columns: 1fr 1fr; }
  .queueSummaryStrip > span:nth-child(2) { border-right: 0; }
  .queueSummaryStrip > span:nth-child(-n+2) { border-bottom: 1px solid var(--portal-line); }
  .priorityRow { grid-template-columns: 4px minmax(0,1fr) 18px; }
  .priorityDue { display: none; }
  .auditRow { grid-template-columns: 36px minmax(0,1fr); }
  .auditRow time, .auditType { grid-column: 2; text-align: left; }
  .queueCommandBar .queueFilters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .queueCommandBar > .portalSelect, .queueCommandBar > select { width: 100%; flex-basis: 100%; }
  .tableFooter { flex-direction: column; gap: 5px; }
  .opsHero { align-items: flex-start; flex-direction: column; }
  .opsHeroMetric { text-align: left; }
  .reviewOptionList { grid-template-columns: 1fr; }
  .decisionPanel .drawerActions { justify-content: stretch; }
  .decisionPanel .portalButton { flex: 1; }
}
