:root {
  --teal: #018076; --teal-bright: #04a396; --teal-pale: #7fd8cf; --grey: #949398;
  --ink: #1a1d1c; --ink-2: #3c403e; --ink-3: #4a4f4d;
  --paper: #f5f5f3; --paper-2: #fbfbfa; --white: #fff;
  --screen-bg: #0d100f; --screen-alt: #1a1f1e; --screen-ink: #f2f3f2; --screen-ink-2: #c9cac9;
  --body-font: 'Barlow', Arial, sans-serif;
  --display-font: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono-font: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: var(--body-font); color: var(--ink); background: var(--paper);
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
button:hover:not(:disabled) { filter: brightness(.96); }
.mono, .section-label { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.app-shell { height: 100vh; height: 100dvh; display: flex; overflow: hidden; }
.control-panel { width: 364px; flex: none; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-right: 1px solid rgba(0,0,0,.09); }
.brand-header { padding: 16px 18px 14px; border-bottom: 1px solid rgba(0,0,0,.08); display: flex; justify-content: space-between; align-items: center; flex: none; }
.wordmark { color: var(--teal); font: 700 19px var(--display-font); letter-spacing: .12em; }
.brand-caption { margin-top: 5px; font-size: 9.5px; letter-spacing: .08em; color: var(--grey); }
.venue { display: flex; flex-direction: column; text-align: right; gap: 5px; }
.venue strong { font-size: 11px; font-weight: 600; }
.venue time { color: var(--grey); font-size: 9.5px; }
.sponsor-settings { padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,.08); background: var(--paper-2); display: flex; flex-direction: column; gap: 9px; flex: none; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.section-label { font-weight: 600; font-size: 9.5px; color: var(--grey); letter-spacing: .14em; white-space: nowrap; }
.sim-toggle { background: none; border: 0; padding: 0; font-weight: 500; font-size: 8.5px; color: var(--teal); letter-spacing: .015em; white-space: nowrap; }
.sim-toggle[aria-pressed="false"] { color: var(--grey); }
.sponsor-input { width: 100%; padding: 11px 12px; border-radius: 7px; border: 1px solid rgba(0,0,0,.14); background: var(--white); color: var(--ink); font-size: 13px; font-weight: 500; }
.sponsor-input.edited { border-color: var(--teal); }
.helper { font-size: 10.5px; line-height: 1.45; color: var(--ink-3); }
.loop-heading { padding: 14px 18px 10px; display: flex; justify-content: space-between; align-items: center; gap: 7px; flex: none; }
.loop-heading > span { font-size: 9.5px; color: var(--grey); white-space: nowrap; }
.loop-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 16px; scrollbar-width: thin; }
.playlist { display: flex; flex-direction: column; gap: 6px; }
.item-row { position: relative; flex: none; overflow: hidden; border-radius: 8px; border: 1px solid rgba(0,0,0,.09); background: var(--white); cursor: grab; }
.row-inner { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.item-row.edited { border-color: rgba(1,128,118,.3); }
.item-row.active { border-color: rgba(1,128,118,.55); background: rgba(1,128,118,.09); }
.item-row.dragging { opacity: .4; }
.item-row.drop-target { border-top: 2px solid var(--teal); }
.drag-handle { flex: none; font: 400 12px var(--mono-font); color: var(--grey); width: 9px; text-align: center; border: 0; padding: 0; background: transparent; cursor: grab; }
.thumbnail { flex: none; display: grid; place-items: center; width: 34px; height: 25px; border-radius: 4px; background: rgba(148,147,152,.3); color: var(--ink-2); font: 600 7.5px var(--mono-font); letter-spacing: .04em; }
.thumbnail.fids { background: var(--teal); color: var(--white); }
.active .thumbnail { background: var(--teal-bright); color: var(--white); }
.item-info { min-width: 0; flex: 1; }
.item-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 12px; }
.active .item-name { color: var(--teal); }
.item-subtitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; font: 400 8px var(--mono-font); letter-spacing: -.015em; color: var(--grey); }
.duration-input { flex: none; width: 39px; padding: 6px 3px; border: 1px solid rgba(0,0,0,.14); border-radius: 5px; text-align: center; font: 600 11px var(--mono-font); color: var(--ink); background: var(--white); appearance: textfield; -moz-appearance: textfield; }
.duration-input::-webkit-inner-spin-button, .duration-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.duration-input.edited { border-color: var(--teal); }
.sec-label { font: 500 8.5px var(--mono-font); color: var(--grey); margin-left: -4px; }
.sponsor-check { appearance: none; width: 19px; height: 19px; flex: none; padding: 0; margin: 0; border: 1px solid rgba(0,0,0,.22); border-radius: 4px; background: var(--white); display: grid; place-items: center; cursor: pointer; }
.sponsor-check:checked { background: var(--teal); border-color: var(--teal); }
.sponsor-check:checked::after { content: '✓'; color: white; font: 700 11px var(--body-font); }
.delete-item { flex: none; width: 19px; height: 19px; border-radius: 4px; border: 0; padding: 0; background: rgba(0,0,0,.05); color: var(--ink-2); font-size: 11px; }
.delete-item:disabled { background: rgba(148,147,152,.14); color: var(--grey); cursor: not-allowed; }
.row-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--teal); }
.dropzone { display: flex; flex-direction: column; flex: none; margin-top: 8px; padding: 13px; border-radius: 8px; border: 1px dashed rgba(0,0,0,.2); background: var(--paper-2); text-align: center; font: 500 10px/1.6 var(--mono-font); letter-spacing: .06em; color: var(--ink-3); cursor: pointer; }
.dropzone span + span { color: var(--grey); }
.dropzone.drag-over { border-color: var(--teal); background: rgba(1,128,118,.09); }
.notice { font-size: 11px; line-height: 1.45; margin-top: 10px; color: var(--ink-3); }
.notice:empty { display: none; }
.control-footer { flex: none; padding: 12px 18px; border-top: 1px solid rgba(0,0,0,.08); background: var(--white); display: flex; flex-direction: column; gap: 9px; }
.apply-button { width: 100%; padding: 12px; border-radius: 7px; font-weight: 700; font-size: 11.5px; letter-spacing: .09em; background: var(--teal); border: 1px solid var(--teal); color: var(--white); }
.apply-button:disabled { background: var(--paper); color: var(--grey); border-color: rgba(0,0,0,.1); }
.transport { display: flex; gap: 7px; }
.transport button { width: 36px; height: 34px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); color: var(--ink-2); background: var(--white); font: 600 10px var(--mono-font); }
.transport button:nth-child(2) { flex: 1; font: 600 11px var(--body-font); }
.preview-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(#f5f5f3, #e9e9e6); }
.preview-header { flex: none; padding: 16px 24px; border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-header h2 { font-size: 15px; font-weight: 600; }
.preview-header p { font-size: 10.5px; letter-spacing: .035em; color: var(--grey); margin-top: 6px; }
.air-status { flex: none; display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 9.5px; color: var(--ink-3); letter-spacing: .12em; }
.air-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-in-out infinite; }
.air-status.paused .air-dot { animation: none; background: var(--grey); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.display-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 28px 32px; container-type: size; }
.screen-bezel { width: 100%; max-width: min(1180px, calc((100cqh - 30px) * 16 / 9 + 30px)); padding: 15px; border-radius: 14px; background: var(--ink); box-shadow: 0 30px 50px -22px rgba(0,0,0,.5); }
.screen-surface { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--screen-bg); display: flex; container-type: size; }
.screen-card { width: 100%; height: 100%; animation: card-in .5s ease both; }
.screen-card.leaving { position: absolute; inset: 0; z-index: 1; pointer-events: none; animation: card-out .5s ease both; }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-out { from { opacity: 1; } to { opacity: 0; } }
.loading-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; padding: 6cqw; text-align: center; color: var(--screen-ink); }
.loading-card h2 { font: 600 6cqh/1.15 var(--display-font); }
.loading-card p { font: 400 2.8cqh/1.5 var(--body-font); color: var(--screen-ink-2); }
.transport button:disabled, .secondary-button:disabled, .sound-toggle:disabled { opacity: .5; }
.fids-card { display: flex; flex-direction: column; background: var(--screen-bg); }
.fids-header { flex: none; padding: 2.6cqh 3cqw; background: var(--teal); display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.fids-heading { font: 700 6cqh/1 var(--display-font); letter-spacing: .1em; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.fids-clock { font: 700 7cqh/1 var(--display-font); font-variant-numeric: tabular-nums; color: white; }
.fids-labels, .flight-row { display: grid; grid-template-columns: 1.1fr 2fr .9fr .7fr 1.1fr; align-items: center; }
.fids-labels { flex: none; padding: 1.6cqh 3cqw; border-bottom: 1px solid rgba(148,147,152,.25); font: 600 2.5cqh var(--mono-font); letter-spacing: .12em; color: var(--grey); }
.fids-labels > :last-child, .flight-row > :last-child { text-align: right; }
.flights { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.flight-row { flex: 1; min-height: 0; padding: 0 3cqw; border-bottom: 1px solid rgba(148,147,152,.12); white-space: nowrap; }
.flight-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.flight-number { font: 600 4.4cqh var(--mono-font); color: var(--screen-ink-2); }
.flight-destination { font: 600 6cqh var(--display-font); letter-spacing: .08em; color: var(--screen-ink); }
.flight-time, .flight-gate { font: 600 5cqh var(--mono-font); font-variant-numeric: tabular-nums; color: var(--screen-ink); }
.flight-gate { color: var(--grey); }
.flight-status { font: 600 3.2cqh var(--mono-font); letter-spacing: .08em; color: var(--screen-ink); }
.flight-status.boarding { color: var(--teal-bright); }
.flight-status.delayed { color: var(--grey); }
.media-card { object-fit: cover; }
.placeholder-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.4cqh; padding: 0 6cqw; background: repeating-linear-gradient(135deg,rgba(148,147,152,.13) 0 15px,rgba(148,147,152,.04) 15px 30px),var(--screen-alt); }
.placeholder-label { font: 500 2.2cqh var(--mono-font); letter-spacing: .26em; color: var(--grey); }
.placeholder-title { font: 700 11cqh/1.02 var(--display-font); text-transform: uppercase; color: var(--screen-ink); overflow-wrap: anywhere; }
.placeholder-meta { font: 400 2.4cqh var(--mono-font); color: var(--teal-pale); }
.has-sponsor-bar .screen-card { height: 92%; }
.has-sponsor-bar .media-card { object-fit: contain; }
.has-sponsor-bar .fids-source { bottom: 8.5cqh; }
.sponsor-bar { position: absolute; z-index: 2; left: 0; bottom: 0; display: flex; width: 100%; height: 8cqh; overflow: hidden; white-space: nowrap; background: var(--paper); color: var(--ink); border-top: 1px solid var(--teal); font: 600 3.6cqh/1 var(--body-font); letter-spacing: .015em; }
.sponsor-bar-label { position: relative; z-index: 1; display: flex; align-items: center; flex: none; padding: 0 2cqw; color: var(--white); background: var(--teal); font: 600 2.5cqh/1 var(--mono-font); text-transform: uppercase; letter-spacing: .09em; }
.sponsor-ticker { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: stretch; }
.sponsor-ticker-track { display: flex; width: max-content; min-width: 200%; flex: none; animation: sponsor-scroll var(--ticker-duration, 18s) linear infinite; }
.sponsor-ticker-copy { display: flex; align-items: center; justify-content: center; flex: 1 0 auto; padding: 0 5cqw; }
.sponsor-bar[data-playing="false"] .sponsor-ticker-track { animation-play-state: paused; }
@keyframes sponsor-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sponsor-ticker-track { animation: none; min-width: 0; width: 100%; }
  .sponsor-ticker-copy { min-width: 0; flex: 1; justify-content: flex-start; padding: 0 2cqw; }
  .sponsor-ticker-copy bdi { overflow: hidden; text-overflow: ellipsis; }
  .sponsor-ticker-copy[aria-hidden="true"] { display: none; }
}
.progress-strip { padding: 0 32px 22px; flex: none; }
.progress-content { max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 16px; }
.progress-content > span { flex: none; font-size: 10.5px; white-space: nowrap; color: var(--grey); }
.progress-content > span:first-child { color: var(--ink-3); }
.loop-track { flex: 1; min-width: 24px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.1); overflow: hidden; }
.loop-track > div { width: 0; height: 100%; background: var(--teal); }
.sound-toggle { border: 0; border-left: 1px solid rgba(0,0,0,.12); padding: 0 0 0 12px; background: transparent; font-size: 9px; color: var(--grey); white-space: nowrap; }
.sound-toggle[aria-pressed="true"] { color: var(--teal); }
.display-strip { padding: 0 32px 24px; flex: none; }
.display-checker { max-width: 1180px; margin: auto; padding: 14px 16px; border-radius: 10px; background: var(--white); border: 1px solid rgba(0,0,0,.1); display: flex; align-items: center; gap: 14px; }
.display-checker.connected { border-color: rgba(1,128,118,.45); }
.monitor-icon { position: relative; flex: none; width: 36px; height: 25px; border-radius: 3px; border: 1.5px dashed var(--grey); margin-bottom: 6px; }
.monitor-icon::after { content: ''; position: absolute; width: 14px; height: 5px; left: 9.5px; bottom: -6px; border-bottom: 1.5px solid var(--grey); background: linear-gradient(90deg,transparent 45%,var(--grey) 45%,var(--grey) 55%,transparent 55%); }
.connected .monitor-icon { border-style: solid; border-color: var(--teal); }
.display-copy { flex: 1; min-width: 0; }
.display-copy h3 { font-weight: 600; font-size: 12.5px; }
.display-copy p { margin-top: 4px; font-size: 10.5px; line-height: 1.45; color: var(--ink-3); }
.display-actions { display: flex; flex: none; gap: 8px; }
.primary-button, .secondary-button { padding: 10px 15px; border-radius: 7px; font-weight: 600; font-size: 10.5px; letter-spacing: .07em; white-space: nowrap; }
.primary-button { background: var(--teal); border: 1px solid var(--teal); color: var(--white); }
.secondary-button { background: var(--white); border: 1px solid rgba(0,0,0,.14); color: var(--ink-2); }
@media (max-width: 1150px) { .display-checker { flex-wrap: wrap; } .display-actions { margin-left: auto; } .display-copy { min-width: 220px; } .display-stage { padding: 24px; } .display-strip, .progress-strip { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 820px) { .control-panel { width: 340px; } .preview-header { align-items: flex-start; flex-direction: column; padding: 16px; gap: 10px; } .display-stage { padding: 18px; } .display-strip, .progress-strip { padding-left: 18px; padding-right: 18px; } .display-copy { min-width: 160px; } .progress-content { gap: 8px; flex-wrap: wrap; } .progress-content .loop-track { order: 3; flex-basis: 100%; } .screen-bezel { padding: 10px; } }
@media (max-width: 680px) { .app-shell { flex-direction: column; overflow-y: auto; height: auto; min-height: 100dvh; } .control-panel { width: 100%; overflow: visible; border-right: 0; } .loop-scroll { flex: none; max-height: 285px; } .preview-pane { min-height: 520px; flex: none; } .preview-header { flex-direction: row; align-items: center; } .preview-header h2 { font-size: 14px; } .preview-header p { font-size: 8px; } .air-status { font-size: 8px; letter-spacing: 0; } .display-stage { min-height: 240px; flex: none; padding: 24px 18px; container-type: normal; } .screen-bezel { max-width: 100%; } .display-checker { gap: 12px; } .display-copy { min-width: 200px; } .display-actions { margin-left: 48px; } }
@media (prefers-reduced-motion: reduce) { .air-dot { animation: none; } .screen-card { animation: none; } .screen-card.leaving { display: none; } }

[hidden] { display: none !important; }
.account-bar { padding: 10px 18px; border-bottom: 1px solid #e8e8e6; flex: none; background: #f5f5f3; }
.account-bar p { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; color: var(--ink-3); }
.account-bar > div { display: flex; gap: 14px; margin-top: 6px; }
.account-button { border: 0; background: none; color: var(--teal); font-size: 11px; font-weight: 600; padding: 4px 0; }
.account-button:disabled { opacity: .5; }
.dropzone[aria-disabled="true"] { opacity: .5; cursor: default; }
input:disabled { opacity: .6; }
.fids-source { position: absolute; right: 2cqw; bottom: .5cqh; font: 500 1.7cqh var(--mono-font); color: var(--grey); }
