/* ITViewer design system: shared identity for console, authentication and player. */
:root {
  --iv-purple: #6d4aff;
  --iv-purple-hover: #5533eb;
  --iv-purple-deep: #24134d;
  --iv-purple-soft: #eee9ff;
  --iv-mint: #77d2aa;
  --iv-green: #176c51;
  --iv-green-soft: #e8f5ee;
  --iv-blue: #205f99;
  --iv-blue-soft: #eaf2fb;
  --iv-red: #b32e45;
  --iv-red-soft: #fff0f2;
  --iv-bg: #f7f6fa;
  --iv-surface: #ffffff;
  --iv-ink: #211d2b;
  --iv-muted: #686574;
  --iv-line: #e6e2eb;
  --iv-r-sm: 6px;
  --iv-r-field: 8px;
  --iv-r-button: 10px;
  --iv-r-card: 14px;
  --iv-r-panel: 18px;
  --iv-r-modal: 22px;
  --iv-shadow: 0 10px 28px rgba(36, 19, 77, .07);
  --bg: var(--iv-bg);
  --surface: var(--iv-surface);
  --ink: var(--iv-ink);
  --muted: var(--iv-muted);
  --line: var(--iv-line);
  --purple: var(--iv-purple);
  --purple-dark: var(--iv-purple-hover);
  --green: var(--iv-green);
  --blue: var(--iv-blue);
  --radius: var(--iv-r-panel);
  --shadow: var(--iv-shadow);
}
.nav-item[hidden], .page[hidden], [data-open-modal="client"][hidden] { display: none !important; }

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--iv-purple);
  outline-offset: 3px;
}

button, .button, a { -webkit-tap-highlight-color: transparent; }
button:disabled, .button:disabled { cursor: not-allowed; opacity: .58; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Console shell and navigation */
body:has(.app-shell) { background: var(--iv-bg); color: var(--iv-ink); }
.app-shell { grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 105% 4%, rgba(132, 84, 255, .36), transparent 34%),
    radial-gradient(circle at -35% 72%, rgba(40, 135, 172, .19), transparent 46%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(218, 197, 255, .025) 42px),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(218, 197, 255, .025) 42px),
    linear-gradient(165deg, #241449 0%, #20113f 54%, #190d33 100%);
  border-right: 1px solid rgba(181, 145, 255, .23);
  box-shadow: 8px 0 32px rgba(27, 14, 57, .12);
  padding: 24px 13px 17px;
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 148, 255, .45) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(183, 148, 255, .45); }
.brand { position: relative; gap: 11px; padding: 2px 9px 33px; margin-bottom: 16px; }
.brand::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(135, 224, 185, .75), rgba(179, 139, 255, .28) 57%, transparent); }
.brand-logo { display: block; width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 13px rgba(143, 95, 255, .4)); }
.brand strong { font-size: 17px; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 0 20px rgba(185, 151, 255, .28); }
.brand small { color: #cfc2eb; font-size: 10px; letter-spacing: .11em; }
.sidebar-user small { color: #c5b8de; font-size: 11px; letter-spacing: .02em; }
.nav-list { gap: 7px; }
.nav-list::before { content: 'PAINEL DE CONTROLE'; display: block; padding: 0 13px 7px; color: #a997ce; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.sidebar .nav-item { position: relative; min-height: 49px; padding: 0 9px; gap: 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #d7cbea; font-size: 13px; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.sidebar .nav-item > svg, .sidebar .nav-item > i[data-lucide] { flex: none; box-sizing: border-box; width: 31px; height: 31px; padding: 7px; border: 1px solid rgba(189, 157, 255, .12); border-radius: 9px; background: rgba(255, 255, 255, .045); color: #c9b8ed; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.sidebar .nav-item > svg { stroke-width: 1.8; }
.sidebar .nav-item:hover { background: rgba(146, 103, 255, .14); border-color: rgba(177, 146, 250, .2); color: #fff; transform: translateX(2px); }
.sidebar .nav-item:hover > svg, .sidebar .nav-item:hover > i[data-lucide] { background: rgba(148, 101, 255, .18); color: #fff; }
.sidebar .nav-item.active { background: linear-gradient(100deg, rgba(117, 78, 238, .42), rgba(94, 61, 176, .23)); border-color: rgba(179, 141, 255, .38); color: #fff; font-weight: 700; box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 8px 22px rgba(12, 4, 36, .18); }
.sidebar .nav-item.active::before { content: ''; position: absolute; left: -14px; top: 10px; width: 3px; height: 29px; border-radius: 0 4px 4px 0; background: #80e6b7; box-shadow: 0 0 13px 2px rgba(128, 230, 183, .72); }
.sidebar .nav-item.active > svg, .sidebar .nav-item.active > i[data-lucide] { background: rgba(135, 93, 255, .4); border-color: rgba(201, 177, 255, .31); color: #fff; box-shadow: 0 0 16px rgba(130, 84, 255, .32); }
.sidebar .nav-item:focus-visible { outline: 2px solid #8becc1; outline-offset: 2px; }
.nav-count { padding: 3px 7px; border: 1px solid rgba(194, 167, 255, .2); border-radius: 7px; background: rgba(173, 137, 255, .2); color: #f1eaff; font-size: 11px; }
.nav-item.active .nav-count { background: rgba(130, 227, 183, .17); border-color: rgba(130, 227, 183, .27); color: #a1f2cd; }
.storage-card { position: relative; margin: 11px 4px 13px; padding: 15px; border: 1px solid rgba(184, 150, 255, .34); border-radius: 16px; background: linear-gradient(130deg, rgba(154, 109, 255, .16), rgba(72, 52, 126, .11)); box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 10px 25px rgba(14, 6, 35, .13); }
.storage-head { font-size: 12px; }
.storage-head b { color: #8ce9be; text-shadow: 0 0 12px rgba(140, 233, 190, .35); }
.storage-card .progress { height: 6px; border-radius: 999px; background: rgba(12, 5, 35, .58); }
.storage-card .progress span { border-radius: inherit; background: linear-gradient(90deg, #7cddba, #a69bff); box-shadow: 0 0 12px rgba(124, 221, 186, .55); }
.storage-card p { color: #cfc2e8; font-size: 11px; }
.sidebar > .nav-item { margin: 2px 0; }
#logoutButton:hover { background: rgba(202, 74, 110, .14); border-color: rgba(242, 121, 152, .25); }
.sidebar-user { gap: 10px; margin-top: 13px; padding: 11px 9px; border: 1px solid rgba(183, 148, 255, .23); border-radius: 13px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 1px rgba(255, 255, 255, .05); }
.sidebar-user strong { font-size: 12px; }
.sidebar-user > svg { color: #bba9e0; }
.avatar { background: linear-gradient(145deg, #7852da, #a06fff); border-radius: 10px; box-shadow: 0 0 16px rgba(155, 98, 255, .32); }
@media (max-height: 820px) {
  .sidebar { padding-top: 18px; padding-bottom: 10px; }
  .brand { padding-bottom: 19px; margin-bottom: 8px; }
  .nav-list { gap: 3px; }
  .nav-list::before { padding-bottom: 3px; }
  .sidebar .nav-item { min-height: 44px; }
  .sidebar .nav-item > svg, .sidebar .nav-item > i[data-lucide] { width: 29px; height: 29px; padding: 6px; }
  .sidebar .nav-item.active::before { top: 8px; height: 27px; }
  .storage-card { margin-top: 7px; margin-bottom: 7px; padding: 12px; }
  .sidebar > .nav-item { min-height: 42px; margin: 0; }
  .sidebar-user { margin-top: 8px; padding: 8px 9px; }
}
.topbar { height: 68px; padding: 0 30px; background: #fff; border-color: var(--iv-line); backdrop-filter: none; }
.breadcrumb { color: #746d80; font-size: 12px; }
.breadcrumb b { color: var(--iv-ink); }
.icon-btn { width: 40px; height: 40px; border-color: var(--iv-line); border-radius: var(--iv-r-button); }
.icon-btn:hover { border-color: #bba9e6; color: var(--iv-purple); transform: none; }
.notification span { background: var(--iv-red); }
.client-switcher-wrap { margin-left: 20px; padding-left: 19px; }
.client-switcher-wrap svg { color: var(--iv-purple); }
.client-switcher-wrap select { color: #3b344b; font-size: 12px; cursor: pointer; }
.content { padding: 31px 32px 60px; }
.software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.software-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 352px; padding: 25px; border: 1px solid var(--iv-line); border-radius: var(--iv-r-panel); background: var(--iv-surface); box-shadow: var(--iv-shadow); }
.software-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 19px; }
.software-icon svg { width: 25px; height: 25px; }
.software-icon.android { color: #176c51; background: #e2f5eb; }
.software-icon.windows { color: #3b43a8; background: #e8eaff; }
.software-platform { color: var(--iv-purple); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.software-card h2 { margin: 8px 0 9px; font: 800 20px/1.2 "Manrope", sans-serif; letter-spacing: -.025em; }
.software-card > p:not(.software-availability) { margin: 0; color: var(--iv-muted); font-size: 13px; line-height: 1.55; }
.software-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: auto; padding-top: 22px; color: var(--iv-muted); font-size: 11px; }
.software-availability { margin: 13px 0; color: var(--iv-muted); font-size: 11px; }
.software-availability.available { color: var(--iv-green); font-weight: 700; }
.software-download { min-width: 194px; }
.software-download[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.software-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.software-note { display: block; margin-top: 12px; color: var(--iv-muted); font-size: 11px; line-height: 1.5; }
.software-guide ol { margin: 17px 0; padding-left: 19px; line-height: 1.8; font-size: 13px; }
.software-guide > p { margin: 0; color: var(--iv-muted); font-size: 12px; line-height: 1.6; }
.software-guide a { color: var(--iv-purple); }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 29px; line-height: 1.18; }
.page-head p { line-height: 1.5; }
.eyebrow { font-size: 11px !important; color: var(--iv-purple) !important; }

/* Shared controls and feedback */
.button { height: 42px; border-radius: var(--iv-r-button); padding: 0 16px; font-size: 13px; }
.button.primary { background: var(--iv-purple); box-shadow: 0 5px 14px rgba(109, 74, 255, .17); }
.button.primary:hover { background: var(--iv-purple-hover); transform: none; }
.button.secondary, .button.ghost { border-color: var(--iv-line); }
.button.secondary:hover, .button.ghost:hover { border-color: #c4b4e5; background: #faf8ff; }
.text-button { color: #5634ce; font-size: 12px; }
.text-button:hover { color: #3e22a7; text-decoration: underline; }
.search { height: 42px; border-color: var(--iv-line); border-radius: var(--iv-r-button); }
.search input { font-size: 13px; color: var(--iv-ink); }
.search:focus-within { border-color: var(--iv-purple); box-shadow: 0 0 0 3px var(--iv-purple-soft); }
.pill { height: 40px; border-radius: var(--iv-r-field); font-size: 12px; }
.pill:hover { border-color: #c4b4e5; }
.pill.active { background: var(--iv-purple-deep); border-color: var(--iv-purple-deep); }
.notice { background: var(--iv-purple-soft); border-color: #ded3fa; border-radius: var(--iv-r-card); }
.notice-icon { background: var(--iv-purple); border-radius: var(--iv-r-field); }
.notice strong { font-size: 13px; }
.notice p { color: #584e6c; font-size: 12px; }
.notice-close { color: #584e6c; }
.toast { border-radius: var(--iv-r-button); box-shadow: var(--iv-shadow); }
.toast svg { color: var(--iv-mint); }
.toast.error { background: #7b2136; }

/* Data surfaces */
.metric-card, .client-card, .screen-card, .media-card { border-color: var(--iv-line); border-radius: var(--iv-r-card); box-shadow: none; }
.metric-card { min-height: 147px; padding: 17px 18px; }
.metric-card > strong { margin: 18px 0 6px; font-size: 30px; }
.metric-card h3 { font-size: 13px; margin-bottom: 10px; }
.metric-card p { color: var(--iv-muted); font-size: 11px; }
.trend { color: #5f596c; background: #f4f2f8; font-size: 11px; }
.metric-icon.green, .activity-icon.green { background: var(--iv-green-soft); color: var(--iv-green); }
.metric-icon.violet, .activity-icon.violet { background: var(--iv-purple-soft); color: var(--iv-purple); }
.metric-icon.blue, .activity-icon.blue { background: var(--iv-blue-soft); color: var(--iv-blue); }
.metric-icon.orange, .activity-icon.orange { background: #fff2e7; color: #a6571d; }
.dot.online { background: var(--iv-green); box-shadow: 0 0 0 3px var(--iv-green-soft); }
.panel { border-color: var(--iv-line); border-radius: var(--iv-r-panel); padding: 20px; }
.panel-head h2, .library-head h2, .calendar-header h2 { font-size: 15px; }
.panel-head p, .calendar-header p { color: var(--iv-muted); font-size: 11px; line-height: 1.45; }
.panel-head select, .calendar-header select { font-size: 12px; color: #514b5d; }
.chart-y, .bar-col small { color: var(--iv-muted); font-size: 10px; }
.bar { background: #d6ccfb; }
.bar-col.today .bar { background: var(--iv-purple); }
.bar-col.today small { color: #5133c4; }
.chart-wrap.is-empty { display: block; margin-top: 20px; }
.chart-wrap.is-empty .chart-y { display: none; }
.chart-wrap.is-empty .bar-chart { height: 100%; display: grid; place-items: center; border: 1px dashed #d9d2e5; border-radius: var(--iv-r-card); background: #fcfbfe; padding: 18px; }
.chart-empty { max-width: 255px; text-align: center; }
.chart-empty strong { font-size: 13px; }
.chart-empty p { color: var(--iv-muted); font-size: 11px; line-height: 1.5; }
.activity strong { font-size: 12px; }
.activity p { color: var(--iv-muted); font-size: 11px; }
.empty-state { color: var(--iv-muted); font-size: 13px; line-height: 1.55; }
.table-row { font-size: 12px; }
.table-row.header, .report-row.header { color: #655e70; font-size: 10px; }
.screen-name b, .campaign-info h3, .media-info h3 { font-size: 12px; }
.screen-name small, .screen-card-body > p, .campaign-info p, .campaign-meta span, .media-info p { color: var(--iv-muted); font-size: 11px; }
.screen-pairing-code { display: block; margin-top: 4px; color: var(--iv-muted); font-size: 10px; white-space: nowrap; }
.screen-pairing-code strong { color: var(--iv-purple-deep); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.status-chip { border-radius: var(--iv-r-sm); font-size: 11px; padding: 5px 8px; font-weight: 700; }
.status-chip.online { background: var(--iv-green-soft); color: var(--iv-green); }
.status-chip.offline { background: #f1eff4; color: #5c5665; }
.screen-visual { background: #f1edf9; border: 1px solid #e7e1f2; }
.screen-visual::after { content: 'ITVIEWER PLAYER'; color: #78699d; font-size: 13px; letter-spacing: .08em; }
.screen-visual.variant-2, .screen-visual.variant-3 { background: #f1edf9; }
.screen-visual.variant-2::after, .screen-visual.variant-3::after { content: 'ITVIEWER PLAYER'; }
.screen-card-title h3 { font-size: 14px; }
.screen-details span { color: var(--iv-muted); font-size: 11px; }
.screen-details b { color: var(--iv-ink); font-size: 12px; }
.campaign-summary { border-color: var(--iv-line); border-radius: var(--iv-r-card); }
.campaign-summary span { font-size: 12px; color: var(--iv-muted); }
.campaign-summary b { font-size: 16px; color: var(--iv-ink); }
.campaign-card { border-color: var(--iv-line); border-radius: var(--iv-r-card); }
.campaign-art { background: var(--iv-purple-soft) !important; color: #5133bb; font-size: 9px; }
.campaign-meta b { font-size: 12px; }
.campaign-toggle.on { background: var(--iv-purple); }
.upload-zone { border-color: #c8bade; border-radius: var(--iv-r-card); background: #fcfbfe; }
.upload-zone strong { font-size: 13px; }
.upload-zone p { font-size: 11px; color: var(--iv-muted); }
.upload-zone.dragging { background: var(--iv-purple-soft); }
.media-info h3 { font-size: 12px; }
.media-type { font-size: 10px; }
.report-row { font-size: 12px; }
.report-row b { font-size: 12px; }
.report-row span { color: #625b6b; }
.client-overview { background: var(--iv-purple-deep); border-radius: var(--iv-r-panel); }
.client-overview span, .client-overview small { color: #c8bce0; font-size: 11px; }
.client-card h3 { font-size: 14px; }
.client-card-head p, .client-card-footer > span { color: var(--iv-muted); font-size: 11px; }
.client-stats span { color: var(--iv-muted); font-size: 10px; }
.client-stats b { font-size: 12px; }
.tenant-note { background: var(--iv-green-soft); color: var(--iv-green); }
.tenant-note strong, .tenant-note p { font-size: 11px; }

/* Dialogs */
.modal-backdrop { background: rgba(24, 13, 48, .62); backdrop-filter: blur(3px); }
.modal { border: 1px solid #eee9f5; border-radius: var(--iv-r-modal); box-shadow: 0 22px 58px rgba(24, 13, 48, .22); }
.modal-step { color: var(--iv-purple); font-size: 11px; }
.modal form > label, .form-grid label { font-size: 12px; }
.modal input, .modal select { height: 44px; border-color: var(--iv-line); border-radius: var(--iv-r-field); color: var(--iv-ink); }
.modal input:focus, .modal select:focus { border-color: var(--iv-purple); box-shadow: 0 0 0 3px var(--iv-purple-soft); }
.orientation { border-color: var(--iv-line); border-radius: var(--iv-r-button); }
.orientation.active { border-color: var(--iv-purple); background: #f8f5ff; }
.orientation b { font-size: 12px; }
.orientation small { color: var(--iv-muted); font-size: 11px; }
.form-hint { color: #565061; background: #f6f3fb; font-size: 12px; }

/* Authentication */
body:has(.auth-shell) { background: radial-gradient(circle at 16% 10%, #eee9ff, transparent 35%), var(--iv-bg); color: var(--iv-ink); }
.auth-brand { margin-bottom: 24px; }
.auth-brand .brand-logo { width: 42px; height: 42px; border: 1px solid var(--iv-line); border-radius: 12px; }
.auth-brand strong { font-size: 22px; letter-spacing: -.04em; text-transform: uppercase; }
.auth-brand small { color: var(--iv-muted); font-size: 11px; }
.auth-card { border-color: var(--iv-line); border-radius: var(--iv-r-modal); box-shadow: var(--iv-shadow); }
.auth-card > p { color: var(--iv-muted); font-size: 14px; }
.auth-card label { font-size: 13px; }
.auth-card input { height: 46px; border-color: var(--iv-line); border-radius: var(--iv-r-field); color: var(--iv-ink); }
.auth-card input:focus { border-color: var(--iv-purple); box-shadow: 0 0 0 3px var(--iv-purple-soft); }
.auth-button { height: 46px; border-radius: var(--iv-r-button); background: var(--iv-purple); box-shadow: 0 6px 16px rgba(109, 74, 255, .18); font-size: 13px; }
.auth-button:hover { background: var(--iv-purple-hover); }
.auth-error { background: var(--iv-red-soft); border-color: #f3c9d0; color: #8d1931; }
.auth-note, .password-rules { color: var(--iv-muted); font-size: 12px; }

/* Player pairing and standby; campaign media stays untouched. */
body:has(.pairing-view) { background: #150d2f; }
.fullscreen-prompt { position: fixed; left: max(18px, 2vw); bottom: max(18px, 2vw); z-index: 12; display: grid; gap: 9px; max-width: min(390px, calc(100vw - 36px)); }
.fullscreen-prompt[hidden], .fullscreen-button[hidden], .fullscreen-hint[hidden] { display: none; }
.fullscreen-button { min-height: 48px; padding: 10px 17px; border: 1px solid #bba6ff; border-radius: var(--iv-r-button); background: var(--iv-purple); color: #fff; box-shadow: 0 10px 24px rgba(9, 4, 29, .22); font: 700 clamp(13px, 1.2vw, 17px) "DM Sans", Arial, sans-serif; cursor: pointer; text-align: left; }
.fullscreen-button:hover { background: var(--iv-purple-hover); }
.fullscreen-button:focus-visible { outline-color: var(--iv-mint); outline-offset: 4px; }
.fullscreen-hint { margin: 0; padding: 10px 12px; border: 1px solid #5e4b83; border-radius: var(--iv-r-field); background: #2b1951; color: #eee8f7; font: 500 12px/1.45 "DM Sans", Arial, sans-serif; }
.pairing-view { background: radial-gradient(circle at 50% 33%, #3d2577 0, #24134d 52%, #150d2f 100%); }
.player-brand .brand-logo { width: max(36px, 3vw); height: max(36px, 3vw); }
.player-brand b { text-transform: uppercase; letter-spacing: -.03em; }
.pairing-card { border: 1px solid #5e4b83; background: #2b1951; border-radius: max(16px, 1.6vw); box-shadow: 0 2vw 5vw rgba(9, 4, 29, .22); }
.pairing-card > p { color: var(--iv-mint); }
.pairing-card > span { color: #e5def2; }
.pairing-card > small { color: #c4b8dc; }
.standby { background: radial-gradient(circle at 50% 38%, #382168, #150d2f 75%); }
.standby p { color: #dbd2eb; }
.player-status { background: rgba(23, 11, 53, .88); opacity: .9; }
.player-status small { color: #d6cde6; }
.online-dot { background: var(--iv-mint); box-shadow: 0 0 0 .25vw rgba(119, 210, 170, .18); }
.player-blank, .player-blank .playback-view { background: #000 !important; }
.player-blank .player-status, .player-blank .standby { display: none !important; }

/* Operational controls: compact where information is dense. */
.modal { max-height: min(94vh, 980px); overflow-y: auto; }
.choice-field { border: 1px solid var(--iv-line); border-radius: var(--iv-r-card); padding: 12px; margin: 0 0 15px; }
.choice-field legend { padding: 0 5px; font-size: 12px; font-weight: 700; }
.choice-field > p { margin: 2px 0 9px; color: var(--iv-muted); font-size: 11px; }
.choice-list { max-height: 108px; overflow-y: auto; display: grid; gap: 5px; }
.choice-list label, .weekday-list label { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; font-size: 11px; cursor: pointer; }
.choice-list label:hover, .weekday-list label:hover { background: var(--iv-purple-soft); }
.choice-list input, .weekday-list input, .idle-setting input { width: 16px; height: 16px; accent-color: var(--iv-purple); flex: none; }
.weekday-list { display: flex; flex-wrap: wrap; gap: 3px; }
.danger-action { color: #b32545; }
.danger-action:hover { color: #841633; text-decoration: underline; }
.client-card-footer { justify-content: flex-start; }
.client-card-footer > span { flex: 1 0 100%; }
.screen-visual { display: grid; place-items: center; }
.screen-visual::after { display: none !important; }
.screen-visual img { width: 100%; height: 100%; object-fit: contain; }
.screen-sample-label { color: #72658d; font-weight: 700; font-size: 12px; }
.idle-setting { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; line-height: 1.3; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: contain; }
.media-info .text-button { margin-top: 9px; }
.sample-stage { min-height: 190px; border-radius: 12px; background: #21133f; color: #fff; display: grid; place-items: center; text-align: center; overflow: hidden; }
.sample-stage img, .sample-stage video { display: block; width: 100%; max-height: 380px; object-fit: contain; }
.week-actions { display: flex; gap: 5px; }
.week-actions .button { min-width: 38px; }
.week-grid { display: grid; grid-template-columns: repeat(7,minmax(150px,1fr)); gap: 8px; margin-top: 17px; overflow-x: auto; padding-bottom: 7px; }
.week-day { min-height: 240px; border: 1px solid var(--iv-line); border-radius: 13px; padding: 10px; background: #faf9fd; }
.week-day h3 { margin: 0 0 10px; font-size: 12px; }
.week-day h3 span { display: block; color: var(--iv-muted); font-weight: 500; font-size: 10px; margin-top: 2px; }
.week-day > p { color: var(--iv-muted); font-size: 11px; margin: 0; }
.schedule-event { width: 100%; display: grid; gap: 3px; text-align: left; border: 1px solid #ded4ff; border-left: 3px solid var(--iv-purple); border-radius: 9px; padding: 9px; background: #f1edff; cursor: pointer; margin: 0 0 7px; }
.schedule-event:hover, .schedule-event:focus-visible { outline: 2px solid var(--iv-purple); outline-offset: 1px; }
.schedule-event b { color: var(--iv-purple); font-size: 10px; }
.schedule-event strong { font-size: 11px; }
.schedule-event small { color: var(--iv-muted); font-size: 10px; }
.schedule-event.is-paused { background: #f3f2f5; border-color: #dedbe5; border-left-color: #928a9f; opacity: .75; }
@media (max-width: 1100px) { .week-grid { grid-template-columns: repeat(7, minmax(155px,1fr)); } }

/* Readable fallback while the existing Lucide CDN script is unavailable. */
i[data-lucide] { display: inline-grid; place-items: center; width: 1.15em; font-style: normal; line-height: 1; }
i[data-lucide]::before { content: '•'; }
i[data-lucide="layout-dashboard"]::before, i[data-lucide="grid-2x2"]::before { content: '▦'; }
i[data-lucide="building-2"]::before { content: '▥'; }
i[data-lucide="monitor"]::before, i[data-lucide="monitor-check"]::before, i[data-lucide="monitor-up"]::before, i[data-lucide="tv"]::before { content: '▣'; }
i[data-lucide="clapperboard"]::before, i[data-lucide="play"]::before, i[data-lucide="play-circle"]::before { content: '▷'; }
i[data-lucide="images"]::before { content: '▧'; }
i[data-lucide="calendar-days"]::before { content: '▤'; }
i[data-lucide="chart-no-axes-combined"]::before { content: '▥'; }
i[data-lucide="settings"]::before { content: '⚙'; }
i[data-lucide="log-out"]::before, i[data-lucide="arrow-right"]::before, i[data-lucide="external-link"]::before { content: '→'; }
i[data-lucide="chevron-right"]::before { content: '›'; }
i[data-lucide="chevrons-up-down"]::before { content: '⌄'; }
i[data-lucide="circle-help"]::before { content: '?'; }
i[data-lucide="bell"]::before { content: '♧'; }
i[data-lucide="plus"]::before { content: '+'; font-size: 1.35em; }
i[data-lucide="refresh-cw"]::before { content: '↻'; }
i[data-lucide="search"]::before { content: '⌕'; }
i[data-lucide="clock-3"]::before, i[data-lucide="timer"]::before { content: '◷'; }
i[data-lucide="cloud-upload"]::before, i[data-lucide="upload"]::before { content: '↑'; }
i[data-lucide="download"]::before { content: '↓'; }
i[data-lucide="list"]::before { content: '☷'; }
i[data-lucide="more-horizontal"]::before { content: '···'; }
i[data-lucide="check-check"]::before, i[data-lucide="check-circle-2"]::before, i[data-lucide="shield-check"]::before { content: '✓'; }
i[data-lucide="sliders-horizontal"]::before { content: '☷'; }
i[data-lucide="sparkles"]::before { content: '✦'; }
i[data-lucide="menu"]::before { content: '☰'; }
i[data-lucide="x"]::before { content: '×'; }
i[data-lucide="map-pin"]::before { content: '⌖'; }
i[data-lucide="eye"]::before { content: '◉'; }
i[data-lucide="wifi"]::before { content: '◠'; }
i[data-lucide="send"]::before { content: '↗'; }
i[data-lucide="activity"]::before { content: '⌁'; }

@media (max-width: 1100px) {
  .campaign-card { grid-template-columns: 62px minmax(140px, 1fr) auto; }
  .campaign-card .campaign-meta, .campaign-card .campaign-meta:nth-of-type(3) { display: block; grid-column: 2 / 3; }
  .campaign-card .table-actions { grid-column: 3; grid-row: 1; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: 250px; left: -270px; }
  .topbar { padding: 0 18px; }
  .content { padding: 26px 20px 50px; }
  .notice .text-button { display: inline-flex; }
  .software-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; }
  .breadcrumb { display: none; }
  .client-switcher-wrap { display: flex; margin-left: 0; padding-left: 0; border-left: 0; }
  .client-switcher-wrap select { max-width: 136px; }
  .top-actions .button { width: auto; min-width: 104px; padding: 0 10px; font-size: 12px; }
  .top-actions .button i { display: none; }
  .content { padding: 22px 15px 46px; }
  .notice { flex-wrap: wrap; }
  .notice .text-button { margin-left: 49px; }
  .metrics-grid { gap: 9px; }
  .metric-card { min-height: 138px; }
  .campaign-card { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .campaign-card .campaign-meta { grid-column: 2 / -1; }
  .client-overview span, .client-overview small { font-size: 12px; }
}

/* Preserve the supplied artwork colours and transparent background in the sidebar. */
.brand-wordmark { display: block; max-width: 100%; height: auto; object-fit: contain; }
.sidebar .brand { display: block; padding: 0 0 24px; }
.sidebar .brand .brand-wordmark { width: 100%; background: transparent; border-radius: 0; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 1)) drop-shadow(0 0 7px rgba(255, 255, 255, .9)); }
.auth-brand { flex-direction: column; gap: 0; }
.auth-brand .brand-wordmark { width: min(310px, 100%); }
.auth-brand > small { color: var(--iv-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.player-brand { background: #fff; border-radius: 1vw; padding: 0 .5vw; }
.player-brand .brand-wordmark { width: clamp(230px, 23vw, 460px); }
.standby .player-brand { justify-self: center; }
