.delivery-app{--good:oklch(.53 .1 153);--warning:var(--primary);--evidence:oklch(.54 .08 251);--soft-good:color-mix(in oklch,var(--good) 7%,white)}
.delivery-app .app-header{max-width:1600px;margin:auto;height:72px;padding-inline:36px}.delivery-app .gabie-logo{height:23px}.delivery-workspace{max-width:1528px;margin:0 24px;padding:30px 30px 0;background:var(--background);border:1px solid var(--border);border-radius:var(--radius);min-height:calc(100dvh - 88px)}
.delivery-app .page-heading{margin-bottom:24px}.delivery-app h1{font-size:32px}.delivery-app .page-description{font-size:13px}.surface{border:1px solid var(--border);border-radius:var(--radius);background:var(--card);min-width:0;overflow:hidden}.surface-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px}.surface-heading .eyebrow{margin-bottom:6px}.surface-heading h2{font-size:16px;line-height:1.4}.surface-heading p{font-size:12px;color:var(--muted-foreground);margin-top:5px}.surface-footer{border-top:1px solid var(--border);padding:12px 22px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted-foreground)}
.connection-strip{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:14px 0;margin-bottom:22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:11px}.connection-summary{display:flex;align-items:center;gap:8px;font-weight:500}.connection-summary[data-state=live] .status-dot{background:var(--good)}.connection-summary[data-state=offline] .status-dot{background:var(--destructive)}.source-pills{display:flex;gap:16px;flex-wrap:wrap}.source-pill{display:flex;align-items:center;gap:6px;color:var(--muted-foreground)}.source-pill i{width:5px;height:5px;border-radius:50%;background:var(--muted-foreground)}.source-pill[data-state=live] i{background:var(--good)}.connection-strip time{margin-left:auto;font-size:10px;color:var(--muted-foreground)}
.delivery-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;margin-bottom:22px}.scene-card{display:flex;flex-direction:column}.traffic-stage{position:relative;background:var(--shell);aspect-ratio:16/9;min-height:180px;margin:0 20px;border-radius:4px;overflow:hidden}.traffic-stage img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#171717}.stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px;color:var(--muted-foreground)}.stage-symbol{font:36px var(--serif);color:var(--primary)}.stage-empty strong{font-size:15px;font-weight:500;color:var(--foreground)}.stage-empty p{font-size:12px;max-width:250px}.scene-readout{display:flex;justify-content:space-between;gap:20px;padding:20px 22px;align-items:center;flex:1}.scene-readout strong{font-size:15px;font-weight:550}.scene-readout p{font-size:11px;color:var(--muted-foreground);margin-top:4px;max-width:350px}.scene-value{text-align:right;flex:none}.scene-value .mono{display:block;font-size:26px}.scene-value>span:last-child{font-size:10px;color:var(--muted-foreground)}
.delivery-app label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500}.delivery-app input,.delivery-app select,.delivery-app textarea{font:12px var(--sans);width:100%;min-width:0;min-height:40px;border:1px solid var(--border);border-radius:calc(var(--radius)*.8);padding:9px 10px;background:var(--card);color:var(--foreground)}.delivery-app input:focus-visible,.delivery-app select:focus-visible,.delivery-app textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.delivery-app input:disabled,.delivery-app select:disabled{background:var(--shell);color:var(--muted-foreground)}.delivery-app textarea{resize:vertical}.instruction-form{padding:0 22px 18px;display:flex;flex-direction:column;gap:14px}.creative-choice{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:center}.creative-preview{aspect-ratio:16/9;border:1px solid var(--border);background:var(--shell);border-radius:4px;overflow:hidden;display:grid;place-items:center;font-size:9px;text-align:center;color:var(--muted-foreground)}.creative-preview img{width:100%;height:100%;object-fit:contain}.creative-choice .upload-label{display:inline-flex;margin-top:4px;cursor:pointer;min-height:28px;flex-direction:row;align-items:center;gap:5px;font-size:10px}.field-pair{display:grid;grid-template-columns:1fr 1.35fr;gap:12px}.deadline-shortcuts{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--muted-foreground);margin-top:-6px}.deadline-shortcuts .text-button{font-size:10px}.start-instruction{width:100%;margin-top:2px;justify-content:space-between;height:42px!important}.feedback{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:var(--muted-foreground)}.feedback:empty{display:none}.feedback.error{color:var(--destructive)}.workspace-message{margin-bottom:14px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--shell)}
.active-instruction{padding:0 22px 22px}.active-creative{display:flex;align-items:center;gap:16px;padding-bottom:18px}.active-creative img{width:130px;aspect-ratio:16/9;object-fit:contain;border-radius:4px;border:1px solid var(--border)}.active-creative h3{font-size:18px}.active-creative p{color:var(--muted-foreground);font-size:12px;margin-top:5px}.instruction-facts{margin:0 0 20px;display:grid;gap:11px}.instruction-facts>div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border);padding-bottom:10px;align-items:baseline}.instruction-facts dt{font-size:11px;color:var(--muted-foreground);flex:none}.instruction-facts dd{font-size:12px;text-align:right;margin:0;overflow-wrap:anywhere;min-width:0}.instruction-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.stop-button{color:var(--destructive);border-color:color-mix(in oklch,var(--destructive) 24%,white)}.instruction-actions+.feedback{margin-top:12px}
.delivery-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.delivery-metrics .metric-card{padding:20px 22px}.delivery-metrics .metric-value{font-size:38px;letter-spacing:-.06em;margin:14px 0 7px}.delivery-metrics .metric-label{font-size:12px}.counter-mark{font:9px var(--mono);color:var(--muted-foreground)}.delivery-metrics .metric-card>p{font-size:11px}.qualifying-card{background:var(--soft-good);border-color:color-mix(in oklch,var(--good) 24%,white)}.qualifying-card .metric-value{color:var(--good)}.remaining{text-align:right;flex:none}.remaining strong{display:block;font-size:26px;font-weight:450;line-height:1.2}.remaining span{font-size:10px;color:var(--muted-foreground)}.target-progress{height:3px;background:var(--muted);margin:0 22px 18px;overflow:hidden;border-radius:2px}.target-progress span{display:block;height:100%;width:0;background:var(--good);transition:width .35s ease}.second-strip{display:flex;gap:3px;padding:0 22px 14px;min-height:54px;align-items:flex-end;overflow-x:auto;scrollbar-width:thin}.second-strip button{flex:0 0 10px;height:30px;border:0;border-radius:2px;padding:0;background:var(--muted);position:relative}.second-strip button:hover{outline:2px solid var(--foreground);outline-offset:1px}.second-strip button[aria-pressed=true]{outline:2px solid var(--primary);outline-offset:2px}.second-strip [data-label=counted],.strip-key [data-label=counted]{background:var(--good)}.second-strip [data-label=claimed_only],.strip-key [data-label=claimed_only]{background:var(--primary)}.second-strip [data-label=condition_unknown],.second-strip [data-label=observation_unavailable],.strip-key [data-label=observation_unavailable]{background:color-mix(in oklch,var(--muted-foreground) 35%,white)}.second-strip [data-label=ineligible],.strip-key [data-label=ineligible]{background:var(--evidence)}.second-strip [data-label=outside_entitlement],.second-strip [data-label=wrong_creative],.strip-key [data-label=outside_entitlement]{background:var(--destructive)}.strip-key{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:0 22px 20px;font-size:9px;color:var(--muted-foreground)}.strip-key>span{display:flex;align-items:center;gap:5px}.strip-key i{height:7px;width:7px;border-radius:2px;display:inline-block}.strip-key .text-button{margin-left:auto}.action-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--border);padding:18px 22px;background:var(--shell)}.action-bar .eyebrow{margin-bottom:5px}.action-bar strong{font-size:13px;font-weight:500}.action-bar p{font-size:11px;color:var(--muted-foreground);margin-top:4px}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.empty-copy{font-size:12px;color:var(--muted-foreground);line-height:1.65}.pending-list{padding:0 22px 22px;max-height:270px;overflow:auto}.pending-item{padding:11px 0;border-top:1px solid var(--border)}.pending-item strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.pending-item p{font-size:10px;color:var(--muted-foreground);margin-top:5px}.ask-card form{padding:0 22px}.ask-input{display:flex;gap:7px}.ask-input .button{height:40px;flex:none}.ask-answer{padding:13px 22px 22px;white-space:pre-wrap;font-size:12px;line-height:1.75;color:var(--muted-foreground);overflow-wrap:anywhere}.delivery-workspace .workspace-footer{margin-top:24px}
.access-panel{min-height:calc(100dvh - 72px);display:grid;place-items:center;padding:30px}.access-card{width:min(100%,400px);background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:20px}.access-card .eyebrow{margin:0}.access-card h1{font-family:var(--serif);font-weight:450;font-size:34px;letter-spacing:-.04em}.access-card>p{font-size:13px;line-height:1.7;color:var(--muted-foreground)}.access-card .button{height:42px}.access-card .text-button{text-align:center;font-size:11px}
.delivery-dialog{width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:26px;border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 18px 60px rgb(0 0 0/.16);color:var(--foreground);background:var(--background)}.delivery-dialog::backdrop{background:rgb(20 20 20/.3);backdrop-filter:blur(3px)}.dialog-heading{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.dialog-heading h2{font-size:20px;letter-spacing:-.03em}.icon-button{width:30px;height:30px;border:1px solid var(--border);border-radius:4px;background:var(--card);font-size:21px;flex:none;line-height:1}.dialog-intro,.form-note{font-size:11px;color:var(--muted-foreground);line-height:1.7;margin-bottom:18px}.delivery-dialog form{display:flex;flex-direction:column;gap:16px}.delivery-dialog .form-note{margin:0}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.pair-result{background:var(--shell);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-top:20px}.pair-result strong{display:block;font-size:26px;letter-spacing:.15em;margin:9px 0}.pair-result p{font-size:11px;line-height:1.7;color:var(--muted-foreground);overflow-wrap:anywhere}.pair-result .button{margin:12px 0}.record-dialog{width:min(650px,calc(100vw - 32px))}.raw-record{margin-bottom:20px}.raw-record summary{font-size:12px;cursor:pointer;padding:10px 0}.raw-record pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.7 var(--mono);background:var(--shell);padding:14px;max-height:340px;overflow:auto;border-radius:4px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.upload-label:focus-within{outline:2px solid var(--primary);outline-offset:2px}
.player-body{background:#000;overflow:hidden}.player-stage{position:fixed;inset:0;background:#000;display:grid;place-items:center}.player-stage img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;user-select:none}.player-access{position:fixed;inset:0;display:grid;place-items:center;padding:24px;background:var(--shell);z-index:5}.player-access .access-card{gap:18px}.player-access .gabie-logo{width:85px;height:auto;align-self:flex-start}.player-toolbar{position:fixed;top:16px;left:16px;right:16px;z-index:3;display:flex;align-items:center;gap:12px;padding:10px 12px;background:rgb(255 255 255/.96);border-radius:var(--radius);box-shadow:var(--shadow-card);transition:opacity .2s}.player-toolbar .gabie-logo{height:19px;width:auto}.player-toolbar #player-status{font-size:11px;margin-right:auto}.player-toolbar.quiet{opacity:0;pointer-events:none}.player-idle{position:relative;z-index:2;color:#d2d2d2;text-align:center;max-width:420px;padding:24px}.player-idle img{height:24px;width:auto;filter:brightness(0) invert(1);opacity:.7;margin-bottom:20px}.player-idle h1{font-size:24px;font-weight:450}.player-idle p{font-size:12px;line-height:1.7;color:#a3a3a3;margin-top:10px}.player-body .feedback{min-height:0}.player-toolbar button{height:32px}.player-toolbar .text-button{font-size:10px}
.player-idle{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,100%);pointer-events:none}
.scene-readout .eyebrow,.action-bar .eyebrow{display:block}.traffic-stage{max-height:270px}
.bottom-grid{align-items:start;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.ask-card .surface-heading{gap:12px}.ask-card .surface-heading .badge{max-width:45%;overflow:hidden;text-overflow:ellipsis}.conversation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 22px;padding-bottom:12px;border-bottom:1px solid var(--border)}.conversation-actions{display:flex;gap:14px;flex-wrap:wrap}.conversation-actions .text-button{font-size:10px;min-height:28px}.language-status{font-size:10px;line-height:1.6;color:var(--muted-foreground);overflow-wrap:anywhere}.language-status[data-state=checked]{color:var(--good)}.language-status[data-state=unavailable]{color:var(--destructive)}
.conversation-log{min-height:180px;max-height:480px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:18px 22px;display:flex;flex-direction:column;gap:18px;scroll-margin:24px}.conversation-log:focus-visible{outline-offset:-3px}.conversation-empty{padding:24px 0 18px;max-width:340px}.conversation-empty .eyebrow{display:block;margin-bottom:12px}.conversation-log .ask-answer{padding:0;font-size:12px;line-height:1.8;color:var(--foreground)}.conversation-empty .ask-answer{color:var(--muted-foreground)}.conversation-turn{min-width:0;max-width:100%;flex:none}.conversation-turn-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:6px}.conversation-speaker{font-size:10px;font-weight:600;display:block}.conversation-as-of{font-size:9px;color:var(--muted-foreground)}.conversation-text{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.user-turn{align-self:flex-end;background:var(--shell);border:1px solid var(--border);border-radius:var(--radius);padding:11px 14px;max-width:92%}.user-turn .conversation-speaker{color:var(--muted-foreground);margin-bottom:5px}.assistant-turn{padding-bottom:6px}.conversation-model{font-size:9px;color:var(--muted-foreground);overflow-wrap:anywhere;margin-top:10px}.conversation-sources{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}.citation-label{font-size:9px;color:var(--muted-foreground);display:block;margin-bottom:4px}.conversation-citation summary{font-size:10px;line-height:1.6;color:var(--primary);padding:7px 0;cursor:pointer;overflow-wrap:anywhere}.citation-content{padding:11px 12px;background:var(--shell);border:1px solid var(--border);border-radius:var(--radius);font-size:11px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.citation-content .citation-provenance{font-size:9px;color:var(--muted-foreground);margin-top:8px}.conversation-progress{padding:0 22px 14px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted-foreground)}.conversation-progress .status-dot{background:var(--primary);flex:none}.conversation-feedback{padding:0 22px 12px}.ask-card #ask-form{padding:14px 22px 16px;border-top:1px solid var(--border);background:var(--shell)}.ask-input{align-items:flex-end}.ask-input textarea{resize:none;min-height:64px;max-height:180px;line-height:1.6;padding:11px 12px;background:var(--card)}.ask-input .button{height:40px;width:40px;font-size:19px}.conversation-input-note{font-size:9px;line-height:1.6;color:var(--muted-foreground);margin-top:9px}
@media(min-width:1576px){.delivery-workspace{margin-inline:auto}}@media(max-width:1080px){.delivery-workspace{padding:24px 20px 0;margin-inline:14px}.delivery-grid{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.surface-heading{padding:18px}.instruction-form,.active-instruction{padding-inline:18px}.field-pair{grid-template-columns:1fr}.instruction-form{gap:10px}.creative-choice{grid-template-columns:90px minmax(0,1fr)}.delivery-app .app-header{padding-inline:25px}.scene-readout{padding:18px;flex-wrap:wrap}.scene-value{text-align:left}.traffic-stage{margin-inline:18px}.bottom-grid{gap:16px}.delivery-metrics .metric-card{padding:18px}.surface-footer{padding-inline:18px;flex-wrap:wrap}}
@media(max-width:760px){.delivery-app .app-header{padding-inline:18px;height:64px;gap:14px}.delivery-app .gabie-logo{height:20px}.delivery-app .header-end{gap:10px}.header-product{display:none}.delivery-workspace{padding:23px 16px 0;margin-inline:8px}.delivery-app h1{font-size:28px}.delivery-app .page-heading{align-items:flex-start}.delivery-app .page-actions{padding:0;flex:none;width:auto}.connection-strip{gap:12px}.connection-strip time{display:none}.source-pills{gap:12px}.delivery-grid,.bottom-grid{grid-template-columns:1fr}.field-pair{grid-template-columns:1fr 1.2fr}.scene-value{text-align:right}.scene-readout{flex-wrap:nowrap}.traffic-stage{aspect-ratio:16/8.5}.delivery-metrics{gap:8px}.delivery-metrics .metric-card{padding:14px 11px}.delivery-metrics .metric-value{font-size:28px}.delivery-metrics .metric-label{font-size:10px}.delivery-metrics .metric-card>p{font-size:9px;min-height:28px}.counter-mark{display:none}.remaining strong{font-size:23px}.remaining span{display:block;max-width:95px;font-size:9px}.surface-heading{gap:12px}.surface-heading h2{font-size:15px}.strip-key{gap:9px}.strip-key .text-button{margin-left:0}.action-bar{padding:16px 18px;gap:12px}.action-bar .button{font-size:10px;min-width:105px}.surface-footer{font-size:9px}.instruction-actions .button{font-size:11px}.player-toolbar{top:8px;left:8px;right:8px;flex-wrap:wrap}.player-toolbar #player-status{flex:1}.player-toolbar .gabie-logo{height:17px}}
@media(max-width:430px){.delivery-app .app-header{gap:10px}.delivery-app .header-end .button{font-size:10px;padding-inline:9px}.delivery-app .header-divider{display:none}.delivery-app .page-heading{gap:12px}.delivery-app .page-actions .button{font-size:10px;padding-inline:9px}.delivery-app .page-description{font-size:11px}.field-pair{grid-template-columns:1fr}.delivery-metrics .metric-value{font-size:23px}.metric-unit{font-size:9px;margin-left:3px}.delivery-metrics .metric-label{font-size:9px}.scene-value .mono{font-size:23px}.access-card{padding:25px}.delivery-dialog{padding:22px}.remaining strong{font-size:21px}.action-bar{align-items:flex-start}.surface-heading .badge{font-size:8px}}
/* Typed source data belongs to the frozen citation, never a later live snapshot. */
.citation-fields{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;max-height:260px;overflow:auto;margin-top:8px}.citation-recorded-fields{margin-top:8px}
/* The delivery navigation has more controls than the read-only analysis view. */
@media(max-width:760px){
  .delivery-app:not(.attribution-app) .app-header{height:auto;min-height:64px;flex-wrap:wrap;padding-block:12px}
  .delivery-app:not(.attribution-app) .header-divider{display:none}
  .delivery-app:not(.attribution-app) .header-end{width:100%;margin-left:0;justify-content:space-between;flex-wrap:wrap}
}

.app-header .header-divider{display:inline-block;width:1px;height:22px;background:#d6d0c5;margin:0 14px}.app-header .partner-logo{height:19px;width:auto;display:block}@media(max-width:760px){.app-header .header-divider{margin:0 10px}.app-header .partner-logo{height:16px}}
.access-panel{grid-template-columns:minmax(0,1fr)}.access-card{justify-self:center;max-width:400px;width:100%}.app-header{flex-wrap:wrap}.app-header .text-button{font-size:12px}
.access-panel{min-height:calc(100dvh - 72px);padding:24px 20px}.access-wrap{width:100%;max-width:400px;justify-self:center}.access-card{width:100%;max-width:none;padding:34px 32px 30px;gap:18px;align-items:stretch;text-align:center;border-radius:16px}.access-logo{height:30px;width:auto;align-self:center;margin-bottom:2px}.access-card>p{margin:0;font-size:14px;color:var(--muted-foreground)}.access-card input{text-align:center;min-height:46px;font-size:14px}.access-card .button{margin:0;height:46px}.access-card .feedback{margin:0;min-height:0}.access-card .feedback:empty{display:none}.access-foot{margin:22px 0 0;text-align:center;font-size:12px;color:var(--muted-foreground)}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:760px){.access-panel{min-height:calc(100dvh - 64px)}.access-card{padding:28px 22px 24px}}
