*, *::before, *::after { box-sizing: border-box; }
:root {
  font: 100%/1.45 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #18263a;
  background: #f2f5f9;
  --ink: #18263a;
  --muted: #52647b;
  --line: #dee6ef;
  --surface: #fff;
  --blue: #2452c8;
  --blue-pressed: #1b41a6;
  --blue-ink: #1b49ad;
  --sidebar: #111e32;
  --light-blue: #eaf1ff;
  --green-ink: #126347;
  --green-bg: #e7f5ee;
  --amber-ink: #875208;
  --amber-bg: #fff3db;
  --red-ink: #a72537;
  --red-bg: #fff0f2;
  --radius: .875rem;
}
body { margin: 0; min-width: 0; font-size: .875rem; }
button, input, select, textarea { font: inherit; }
button, select, a { touch-action: manipulation; }
button, [type=file] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: .15625rem solid #386ae6; outline-offset: .1875rem; }
h1:focus, main:focus { outline: none; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .75rem; background: white; border-radius: .5rem; }
.tabular, time, .metric-value, .pair-code { font-variant-numeric: tabular-nums; }
.mobile-label { display: none; }
.dashboard { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; min-height: 100dvh;
  background: var(--sidebar); color: #dce6f5; padding: 1.625rem .875rem 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem; padding: .125rem .5rem;
  color: #f9fbff; font-size: 1.125rem; font-weight: 720; line-height: 1.12; letter-spacing: -.025em;
}
.brand-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.45rem; height: 2.45rem;
  border: 1px solid #6e92fb; border-radius: .7rem; background: #295ae0; color: white;
}
.brand-mark i { position: relative; display: block; width: 1.15rem; height: .8rem; border: 1.5px solid currentColor; border-radius: .17rem; }
.brand-mark i::after { content: ''; position: absolute; width: .5rem; height: 1.5px; background: currentColor; left: calc(50% - .25rem); bottom: -.24rem; }
.navigation { display: grid; gap: .25rem; margin-top: 2.35rem; }
.navigation a {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .65rem; min-height: 2.65rem;
  border-radius: .55rem; color: #c8d5e7; font-weight: 570; line-height: 1.2;
}
.navigation a:hover, .navigation a:active { color: white; background: #21324c; }
.navigation a[aria-current] { color: #fff; background: #263d63; box-shadow: inset .1875rem 0 #83a5ff; }
.navigation a:focus-visible, .brand:focus-visible, .player :focus-visible { outline-color: #a6bfff; }
.nav-icon { position: relative; display: inline-block; width: 1rem; height: .9rem; flex: 0 0 1rem; color: inherit; }
.icon-calendar { border: 1.5px solid currentColor; border-radius: .17rem; }
.icon-calendar::before { content: ''; position: absolute; left: 0; right: 0; top: .22rem; border-top: 1.5px solid; }
.icon-calendar::after { content: ''; position: absolute; width: .25rem; height: .125rem; background: currentColor; top: .46rem; left: .22rem; border-radius: .06rem; }
.icon-screen { border: 1.5px solid currentColor; height: .73rem; border-radius: .13rem; }
.icon-screen::after { content: ''; position: absolute; width: .45rem; height: 1.5px; background: currentColor; left: calc(50% - .225rem); bottom: -.2rem; }
.icon-ticker { border-block: 1.5px solid currentColor; height: .65rem; }
.icon-ticker::after { content: ''; position: absolute; width: 72%; border-top: 1.5px solid; top: calc(50% - .75px); }
.icon-journal { border: 1.5px solid currentColor; width: .85rem; border-radius: .13rem; }
.icon-journal::after { content: ''; position: absolute; width: .38rem; height: .28rem; border-block: 1px solid; top: .2rem; left: .24rem; }
.sidebar-footer {
  display: flex; align-items: center; gap: .55rem; margin: auto .5rem 0; padding-top: 1rem;
  border-top: 1px solid #2a3b55; color: #b9c9de; font-size: .78rem; font-weight: 570;
}
.pilot-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #94b4ff; }

.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 2; background: rgb(249 251 254 / 90%);
  backdrop-filter: blur(1.125rem) saturate(145%);
  box-shadow: 0 .0625rem .75rem rgb(31 53 87 / 8%);
}
.topbar-inner, .main { max-width: 91rem; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.75rem); }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4rem;
}
.workspace-name { font-weight: 680; }
.top-actions { display: flex; align-items: center; gap: 1.1rem; }
.top-actions time { color: var(--muted); font-size: .79rem; white-space: nowrap; }
.main { padding-block: clamp(1.5rem, 3vw, 2.75rem) 3rem; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 1.55rem; }
h1 { font-size: clamp(1.9rem, 3.1vw, 2.45rem); font-weight: 745; letter-spacing: -.042em; line-height: 1.07; }
.page-heading p { color: var(--muted); margin-top: .45rem; }
h2 { font-size: 1.0625rem; line-height: 1.22; font-weight: 720; letter-spacing: -.02em; }
h3 { font-size: .9375rem; font-weight: 710; letter-spacing: -.01em; }

.button {
  display: inline-flex; padding: .5rem .8rem; min-height: 2.4rem;
  justify-content: center; align-items: center; gap: .4rem; border-radius: .55rem;
  border: 1px solid transparent; font-weight: 660; line-height: 1.2; text-align: center;
  transition: transform 120ms cubic-bezier(.23, 1, .32, 1), background-color 120ms ease;
}
.button:active:not(:disabled), .upload-button:active { transform: scale(.975); transition-duration: 0ms; }
.button:disabled { opacity: .55; cursor: default; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover:not(:disabled), .button-primary:active:not(:disabled) { background: var(--blue-pressed); }
.button-light { color: var(--ink); background: white; border-color: #d3dfed; }
.button-light:hover:not(:disabled) { background: #f0f5fc; }
.button-text-danger { color: var(--red-ink); background: transparent; }
.button-text-danger:hover { background: var(--red-bg); }
.plus { font-size: 1.18rem; font-weight: 530; line-height: .85; }
.text-link, a.metric-note { color: var(--blue-ink); font-weight: 660; }
.text-link:hover, a.metric-note:hover { text-decoration: underline; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 5px rgb(27 45 76 / 3%); }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.2rem; }
.metric { display: flex; flex-direction: column; align-items: flex-start; gap: .23rem; padding: 1rem 1.2rem 1.05rem; min-width: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label { font-size: .8125rem; font-weight: 645; color: var(--muted); }
.metric-value { font-size: clamp(1.55rem, 2.8vw, 2.05rem); font-weight: 725; letter-spacing: -.052em; line-height: 1.16; }
.metric-note { margin-top: .12rem; color: var(--muted); font-size: .755rem; }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(16.5rem, 1fr); gap: 1.125rem; align-items: start; }
.campaign-main { display: grid; gap: 1.125rem; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: 1rem 1.125rem; }
.section-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.section-note, .secondary { color: var(--muted); font-size: .77rem; }
h2 + .section-note { margin-top: .25rem; }
.count:empty { display: none; }
.count {
  display: inline-grid; place-items: center; min-width: 1.3rem; min-height: 1.25rem; padding: 0 .3rem;
  border-radius: .35rem; color: #405576; background: #edf2f8; font-size: .71rem; font-weight: 690;
}
.filter, .field input, .field textarea, .field select {
  color: var(--ink); background: #fff; border: 1px solid #cbd7e5; border-radius: .5rem;
}
.filter { max-width: 10.5rem; padding: .34rem .5rem; min-height: 2.1rem; font-size: .77rem; }
.campaign-table, .journal-table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { text-align: left; border-bottom: 1px solid #e7edf4; }
th { color: #495e77; background: #f6f8fb; padding: .56rem .7rem; font-size: .72rem; font-weight: 710; }
.campaign-table th:first-child, .campaign-table td:first-child { padding-left: 1.125rem; }
.campaign-table th:last-child, .campaign-table td:last-child { padding-right: 1.125rem; }
td { padding: .7rem .7rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8faff; }
.campaign-name { width: 43%; }
.campaign-open {
  display: flex; align-items: center; gap: .55rem; padding: .12rem 0; min-width: 0; width: 100%;
  color: var(--ink); background: transparent; border: none; border-radius: .3rem; text-align: left;
}
.campaign-open:hover strong { color: var(--blue-ink); text-decoration: underline; }
.campaign-open:active { color: var(--blue-ink); }
.row-thumb {
  display: grid; place-items: center; width: 2.5rem; height: 1.9rem; flex: 0 0 auto; overflow: hidden;
  border-radius: .3rem; background: #e8effb; color: #3c5e91;
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.campaign-title, .campaign-timing { overflow-wrap: anywhere; }
.campaign-title { display: grid; gap: .15rem; min-width: 0; font-size: .8125rem; line-height: 1.23; }
.campaign-title strong, .target-name { font-weight: 690; }
.campaign-timing span { display: block; }
.campaign-timing .secondary { font-size: .71rem; }
.target-name { font-size: .77rem; }
.campaign-plays { white-space: nowrap; font-weight: 640; }
.campaign-status { white-space: nowrap; }
.status {
  display: inline-flex; align-items: center; gap: .34rem; min-height: 1.3rem; padding: .12rem .42rem;
  border-radius: .4rem; font-size: .71rem; font-weight: 670; line-height: 1.25; color: #495e77; background: #edf1f6;
}
.status::before { content: ''; width: .34rem; height: .34rem; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.status-success { color: var(--green-ink); background: var(--green-bg); }
.status-info { color: #2453ac; background: var(--light-blue); }
.status-warning { color: var(--amber-ink); background: var(--amber-bg); }
.empty { padding: 1.2rem; color: var(--muted); }
.chart-key { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .35rem; color: var(--muted); font-size: .72rem; }
.chart-key i { width: .6rem; height: .6rem; border-radius: .17rem; background: #5d82e4; }
.usage-chart {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: clamp(.16rem, .38vw, .35rem);
  min-height: 5.2rem; margin: .12rem 1.125rem .15rem;
}
.chart-col { display: grid; grid-template-rows: 3.85rem 1.1rem; gap: .3rem; min-width: 0; }
.chart-track { position: relative; align-self: end; height: 100%; border-radius: .22rem; background: #e9eef6; overflow: hidden; }
.chart-track i { position: absolute; inset: auto 0 0; height: var(--used); background: #6c90eb; border-radius: .17rem; }
.chart-current .chart-track { outline: 1px solid #5a82e7; outline-offset: 1px; background: #dfebff; }
.chart-current .chart-track i { background: #315cce; }
.chart-label { color: var(--muted); font-size: .66rem; font-variant-numeric: tabular-nums; }
.usage-details { padding: .4rem 1.125rem .85rem; color: var(--muted); }
.usage-details summary { width: fit-content; padding: .2rem 0; font-size: .755rem; font-weight: 650; cursor: pointer; }
.hour-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .25rem .75rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.hour-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; border-bottom: 1px solid var(--line); font-size: .73rem; }

.screen-preview { min-width: 0; }
.screen-preview .text-link { font-size: .77rem; flex: 0 0 auto; }
.preview-caption {
  position: absolute; left: .5rem; bottom: .5rem; padding: .21rem .4rem; border-radius: .27rem;
  background: #10203a; color: #f3f7ff; font-size: .66rem; font-weight: 660;
}
.screen-preview h3, .screen-location { margin-inline: 1rem; }
.screen-location { margin-top: .15rem; }
.screen-facts { margin: .7rem 1rem .95rem; }
.fact {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  padding: .53rem 0; border-top: 1px solid #e7edf4;
}
.fact dt { color: var(--muted); }
.fact dd { text-align: right; overflow-wrap: anywhere; }
.screen-facts dt { font-size: .76rem; }
/* Screen register and device details */
.device-toolbar {
  display: grid; grid-template-columns: minmax(9rem, 1.25fr) repeat(3, minmax(0, 1fr)); gap: .65rem;
  padding: .9rem 1.125rem;
}
.device-toolbar .filter, .device-search input {
  width: 100%; max-width: none; min-height: 2.65rem; font-size: .8125rem;
}
.device-toolbar .filter { padding-inline: .65rem; text-overflow: ellipsis; }
.device-search { position: relative; min-width: 0; }
.device-search input {
  color: var(--ink); background: white; border: 1px solid #cbd7e5; border-radius: .5rem;
  padding: .45rem .7rem .45rem 2.15rem;
}
.device-search input::placeholder { color: var(--muted); opacity: 1; }
.device-search::before, .device-search::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
}
.device-search::before {
  width: .68rem; height: .68rem; top: calc(50% - .4rem); left: .81rem;
  border: 1.5px solid var(--muted); border-radius: 50%;
}
.device-search::after {
  width: .33rem; height: 1.5px; top: calc(50% + .21rem); left: 1.32rem;
  background: var(--muted); transform: rotate(45deg);
}
.device-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.device-table th, .device-table td { padding-inline: .875rem; }
.device-table th:first-child, .device-table td:first-child { padding-left: 1.125rem; }
.device-table th:first-child { width: 33%; }
.device-table th:nth-child(2) { width: 20%; }
.device-table th:nth-child(3) { width: 23%; }
.device-table td { padding-block: .7rem; vertical-align: middle; overflow-wrap: anywhere; }
.device-table tbody tr:focus-within td { background: #f5f8ff; }
.device-identity {
  display: flex; align-items: center; gap: .7rem; min-height: 2.6rem; border-radius: .4rem;
}
.device-identity:active { background: var(--light-blue); }
.device-identity:hover .device-label { color: var(--blue-ink); text-decoration: underline; }
.device-glyph {
  display: grid; place-items: center; flex: 0 0 2.15rem; min-height: 2.15rem;
  border-radius: .55rem; background: #eaf1ff; color: #2956bb;
}
.device-identity-text { display: grid; gap: .13rem; min-width: 0; }
.device-label { font-size: .9375rem; font-weight: 720; line-height: 1.2; }
.device-cell-secondary { display: block; margin-top: .23rem; min-width: 0; }
.device-cell-secondary:empty { display: none; }
.device-mobile-label { display: none; }
.device-cell-title { display: block; font-size: .8125rem; font-weight: 650; }
.device-back {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.35rem;
  margin: -.4rem 0 .34rem; padding-inline: .2rem; border-radius: .3rem;
}
.device-back:active { background: var(--light-blue); }
.device-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.device-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.device-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.device-indicator { min-width: 0; padding: 1rem 1.125rem; overflow-wrap: anywhere; }
.device-indicator + .device-indicator { border-left: 1px solid var(--line); }
.device-indicator h2 { color: var(--muted); font-size: .8125rem; letter-spacing: 0; margin-bottom: .4rem; }
.device-indicator .status { font-size: .765rem; }
.device-indicator p { margin-top: .3rem; }
.device-value { display: block; font-weight: 705; line-height: 1.35; }
.device-tabs {
  display: inline-flex; gap: .2rem; margin-block: 1.125rem; padding: .23rem;
  background: #e7edf6; border: 1px solid #dce5f1; border-radius: .7rem;
}
.device-tabs button {
  min-height: 2.3rem; border: 1px solid transparent; border-radius: .48rem;
  padding: .38rem .85rem; color: #405672; background: transparent; font-weight: 665;
}
.device-tabs button:hover { color: var(--ink); background: #f4f7fc; }
.device-tabs button:active { background: #d8e5fa; }
.device-tabs button[aria-selected="true"] {
  color: var(--ink); background: #fff; border-color: #d5dfee; box-shadow: 0 1px 2px rgb(29 52 88 / 8%);
}
.device-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.device-panel { min-width: 0; }
.device-facts { margin: 0 1.125rem .55rem; }
.device-facts .fact { align-items: start; padding-block: .7rem; }
.device-facts dd { min-width: 0; overflow-wrap: anywhere; font-weight: 625; }
.device-facts .device-cell-secondary { font-weight: 500; line-height: 1.4; }
.device-facts dt { flex: 0 1 45%; }
#device-storage-meter { display: block; width: min(100%, 9.5rem); height: .55rem; margin-top: .35rem; }
.device-proof-strip {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: .3rem .85rem; flex-wrap: wrap;
  padding: .66rem 1.125rem; background: #f8fafd; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); overflow-wrap: anywhere;
}
.device-proof-strip .device-value { min-width: 0; }
.device-proof-strip time { margin-left: auto; }
.device-tags { display: flex; flex-wrap: wrap; justify-content: end; gap: .25rem; }
.device-tag {
  display: inline-block; background: #edf3fc; color: #36527b; padding: .12rem .45rem;
  border-radius: .35rem; font-size: .76rem; font-weight: 630;
}
.device-monitor-top { margin-bottom: 1rem; }
.device-activity { list-style: none; padding: 0; margin: 0 1.125rem .75rem; }
.device-activity li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: .65rem 0;
}
.device-activity strong { font-weight: 650; }
.device-frame-gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem;
  padding: 0 1.125rem 1.125rem;
}
.device-frame-latest { grid-column: 1 / -1; }
.device-frame-gallery a { display: block; border-radius: .55rem; }
.device-frame-gallery img {
  width: 100%; max-height: 30rem; object-fit: contain; border-radius: .55rem;
  border: 1px solid #d4dfed; background: #111e32;
}
.device-frame-thumbnail img { aspect-ratio: 16 / 9; }
.device-frame-gallery figcaption { margin-top: .35rem; }
.device-air-proof { grid-column: 1 / -1; }
.device-control-heading { flex-wrap: wrap; }
.device-control-heading .button { white-space: normal; overflow-wrap: anywhere; }
.screen-editor { width: min(34rem, calc(100% - 1.5rem)); }
#screen-editor-form { display: flex; flex-direction: column; max-height: calc(100dvh - 1.65rem); }

.detail-panel { max-width: 60rem; }
.detail-panel .section-heading { padding: 1.125rem 1.25rem; }
.detail-facts { margin: 0 1.25rem .5rem; }
.detail-facts .fact { padding-block: .75rem; }
.detail-facts dd { font-weight: 630; }
.panel-foot {
  display: flex; justify-content: space-between; align-items: start; gap: .75rem 1rem; flex-wrap: wrap;
  padding: .9rem 1.25rem; border-top: 1px solid var(--line);
}
.panel-foot .text-link { font-size: .8rem; }
.journal-scroll { overflow-x: auto; }
.journal-table th, .journal-table td { padding-inline: 1.25rem; }
.journal-table td { font-size: .8125rem; }

.field { display: grid; gap: .25rem; min-width: 0; color: var(--ink); font-size: .81rem; font-weight: 680; }
.field :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 2.45rem; padding: .47rem .6rem; font-weight: 500; }
.field textarea { resize: vertical; }
.field-help { min-height: .95rem; color: var(--muted); font-size: .75rem; }
.ticker-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: start; gap: 1.25rem; padding: 0 1.25rem 1.25rem; }
.ticker-preview { position: relative; overflow: hidden; border-radius: .6rem; background: #142f6d; aspect-ratio: 16/9; }
.ticker-preview video { width: 100%; height: 100%; object-fit: cover; }
.ticker-preview .preview-caption { top: .5rem; bottom: auto; }
.ticker-preview-line {
  position: absolute; inset: auto 0 0; padding: .4rem .65rem; background: rgb(8 21 41 / 94%);
  color: white; font-size: .76rem; font-weight: 650; overflow-wrap: anywhere;
}
.ticker-inputs { display: grid; gap: .45rem; }
.ticker-inputs .form-actions { margin-top: .3rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.message { padding: .65rem .8rem; border-radius: .52rem; font-size: .81rem; }
.message-error { color: var(--red-ink); background: var(--red-bg); }
.message-success { color: var(--green-ink); background: var(--green-bg); }
.main > .message { margin-bottom: 1rem; }

dialog {
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 1rem; padding: 0; width: min(36rem, calc(100% - 1.5rem)); max-width: none;
  max-height: min(54rem, calc(100dvh - 1.5rem)); overflow: hidden;
  box-shadow: 0 1.25rem 4rem rgb(15 31 62 / 28%);
}
dialog::backdrop { background: rgb(15 29 53 / 48%); }
#campaign-form { display: flex; flex-direction: column; max-height: min(54rem, calc(100dvh - 1.65rem)); }
.dialog-heading, .dialog-foot { display: flex; align-items: center; gap: .6rem; padding: .95rem 1.1rem; flex: 0 0 auto; }
.dialog-heading {
  justify-content: space-between; background: #f7f9fc; border-bottom: 1px solid var(--line);
}
.dialog-body { display: grid; align-content: start; gap: .65rem; padding: .95rem 1.1rem; overflow: auto; }
.dialog-foot { justify-content: end; flex-wrap: wrap; border-top: 1px solid var(--line); background: #f7f9fc; }
.icon-button { min-width: 2.1rem; min-height: 2.1rem; padding: 0; font-size: 1.4rem; color: var(--ink); background: #e9eff7; }
.icon-button:hover { background: #dfe9f7; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.form-hours { grid-template-columns: 1fr 1fr 1.13fr; }
.upload-button { position: relative; overflow: hidden; min-height: 2.45rem; }
.upload-button:focus-within { outline: .15625rem solid #386ae6; outline-offset: .1875rem; }
.upload-button input { position: absolute; inset: 0; opacity: 0; width: 100%; }
.capacity-card { display: grid; gap: .24rem; padding: .7rem .8rem; background: #f2f6fc; color: #405672; border-radius: .55rem; }
.capacity-card strong { color: var(--ink); }
.capacity-card p { font-size: .76rem; }
.capacity-card p:empty { display: none; }
.capacity-success { background: #eef8f3; color: #285b48; }
.capacity-error { background: var(--red-bg); color: var(--red-ink); }
.capacity-error strong { color: var(--red-ink); }
.capacity-track { display: flex; height: .35rem; overflow: hidden; border-radius: .2rem; background: rgb(31 63 82 / 14%); }
.capacity-track i:first-child { width: var(--occupied); background: #587591; }
.capacity-track i:last-child { width: var(--requested); background: #278a64; }
.capacity-error .capacity-track i:last-child { background: #bb4252; }
#stop-campaign { margin-right: auto; }
.code-dialog { width: min(27rem, calc(100% - 1.5rem)); }
.code-dialog[open] { display: flex; flex-direction: column; }
.pair-code {
  width: fit-content; color: var(--blue-ink); background: #edf3ff; border-radius: .55rem;
  padding: .45rem .65rem; font-size: 1.65rem; font-weight: 720; letter-spacing: .08em; user-select: all;
}

.player { color-scheme: dark; background: #0e1728; color: #edf3ff; min-height: 100dvh; }
.player-main { width: min(100% - 2rem, 72rem); margin-inline: auto; padding-block: 1.5rem 2rem; }
.player-header, .player-title { display: flex; align-items: center; gap: .7rem; }
.player-header { justify-content: space-between; margin-bottom: 1.35rem; }
.player-title h1 { font-size: clamp(1.2rem, 3.6vw, 1.65rem); }
.player-title p, .player-progress { color: #b6c7e2; font-size: .8rem; margin-top: .25rem; }
.button-dark { background: #1a2b46; color: #edf3ff; border-color: #415777; }
.button-dark:hover { background: #263e63; }
.binding-panel { max-width: 28rem; margin-inline: auto; padding: 1.35rem; background: #162640; border: 1px solid #354b6f; border-radius: .875rem; }
.binding-panel p { margin-block: .55rem .8rem; color: #c3d2ea; }
.binding-panel form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem; }
.binding-panel .field { color: #e8f0ff; }
.binding-panel input { text-transform: uppercase; color: #edf3ff; background: #0f1d34; border-color: #536b92; }
.binding-panel .message-error { color: var(--red-ink); }
.stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 16/9; min-width: 0; overflow: hidden;
  background: #050912; border: 1px solid #334663; border-radius: .7rem;
}
.stage video { width: 100%; height: 100%; object-fit: contain; }
.stage-message { position: absolute; max-width: 85%; color: #d8e4f7; text-align: center; }
.screen-ticker {
  position: absolute; bottom: 0; inset-inline: 0; container-type: inline-size;
  overflow: hidden; background: rgb(5 14 31 / 95%); color: #fff; font-weight: 700;
  padding: .55em .85em; font-size: clamp(.8rem, 2.6vw, 1.75rem);
}
.screen-ticker span { display: inline-block; width: max-content; animation: ticker-scroll 18s linear infinite; }
.screen-ticker.is-paused span { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(100cqw); } to { transform: translateX(-100%); } }
.player-controlbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding-block: .8rem; }
.player-now, .player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.player-now > span:last-child, .player-detail { color: #b6c7e2; font-size: .77rem; }
.player-detail { display: flex; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.player-detail p:empty { display: none; }

@media (max-width: 73rem) {
  .dashboard { grid-template-columns: 12.3rem minmax(0, 1fr); }
  .campaign-layout { grid-template-columns: minmax(0, 1fr) minmax(14.25rem, .48fr); }
  .row-thumb { display: none; }
}
@media (max-width: 61rem) {
  .campaign-layout { grid-template-columns: minmax(0, 1fr); }
  .row-thumb { display: grid; }
}
@media (max-width: 46rem) {
  .dashboard { display: block; }
  .sidebar { position: static; min-height: 0; padding: .75rem .8rem .45rem; }
  .brand { font-size: 1.03rem; padding: 0 .35rem; }
  .brand-break, .sidebar-footer, .workspace-name { display: none; }
  .brand-mark { width: 2rem; height: 2rem; border-radius: .52rem; }
  .navigation { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; margin-top: .65rem; }
  .navigation a { justify-content: center; padding-inline: .12rem; font-size: .76rem; min-height: 2.75rem; }
  .navigation a[aria-current] { box-shadow: inset 0 -.14rem #83a5ff; }
  .navigation .nav-icon, .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .topbar-inner { display: block; min-height: 0; padding-block: .35rem; }
  .top-actions { justify-content: space-between; }
  .top-actions .button { min-height: 2.35rem; }
  .main { padding-top: 1.5rem; }
  .page-heading { align-items: start; margin-bottom: 1.1rem; }
  .page-heading .button { flex: 0 0 auto; }
  .summary { margin-bottom: .85rem; }
  .metric { padding: .7rem; }
  .metric-label, .metric-note { font-size: .72rem; }
  .campaign-main, .campaign-layout { gap: .85rem; }
  .ticker-form { grid-template-columns: 1fr; }
  .field :is(input, textarea, select) { font-size: 1rem; }
  .button { min-height: 2.75rem; }
}
@media (max-width: 33rem) {
  .page-heading { flex-direction: column; gap: .65rem; }
  .page-heading .button { align-self: start; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-usage { grid-column: span 2; border-top: 1px solid var(--line); border-left: 0 !important; }
  .metric-usage .metric-note { margin-top: 0; }
  .campaign-table { display: block; }
  .campaign-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .campaign-table tbody, .campaign-row { display: block; }
  .campaign-table .campaign-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .55rem;
    border-top: 1px solid var(--line); padding: .65rem .9rem;
  }
  .campaign-table .campaign-row td { display: block; padding: 0; width: auto; border: 0; background: transparent; }
  .campaign-table .campaign-row .campaign-name { grid-area: 1 / 1; }
  .campaign-status { grid-area: 1 / 2; align-self: center; justify-self: end; }
  .campaign-timing { grid-area: 2 / 1; }
  .campaign-plays { grid-area: 2 / 2; align-self: end; font-size: .76rem; font-weight: 600; }
  .campaign-open { min-height: 2.75rem; }
  .campaign-timing, .campaign-plays { padding-bottom: .25rem !important; }
  .section-heading, .detail-panel .section-heading { padding-inline: .9rem; }
  .journal-table th, .journal-table td { padding-inline: .75rem; }
  .detail-facts, .ticker-form { margin-inline: 0; padding-inline: .9rem; }
  .dialog-body, .dialog-heading, .dialog-foot { padding-inline: .75rem; }
  .dialog-foot { justify-content: stretch; }
  .dialog-foot .button { flex: 1 1 auto; }
}
@media (max-width: 58rem) {
  .device-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .device-tabs button { padding-inline: .25rem; overflow-wrap: anywhere; }
}
@media (max-width: 46rem) {
  .device-columns { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .device-back, .device-identity { min-height: 2.75rem; }
  .device-toolbar .filter, .device-search input { min-height: 2.75rem; font-size: 1rem; }
  .device-facts { margin-inline: .9rem; }
  .device-tabs button { min-height: 2.75rem; padding-inline: .15rem; }
  .device-frame-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: .9rem; }
  .device-activity { margin-inline: .9rem; }
}
@media (max-width: 36rem) {
  .device-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding-inline: .85rem; }
  .device-search { grid-column: 1 / -1; }
  .device-table, .device-table tbody { display: block; }
  .device-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .device-table .device-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .75rem;
    border-top: 1px solid var(--line); padding: .7rem .85rem .8rem;
  }
  .device-table .device-row td { display: block; padding: 0; border: 0; background: transparent; }
  .device-table .device-row td:first-child { grid-column: 1 / -1; }
  .device-table .device-row td:last-child { grid-column: 1 / -1; }
  .device-mobile-label { display: block; color: var(--muted); font-size: .73rem; margin-bottom: .18rem; }
  .device-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-indicator { padding: .75rem .85rem; }
  .device-indicator:nth-child(3) { border-left: 0; }
  .device-indicator:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .device-proof-strip { padding-inline: .85rem; }
  .device-proof-strip time { margin-left: 0; }
  .device-panel .section-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0ms !important; }
  .button:active:not(:disabled), .upload-button:active { transform: none; }
  .screen-ticker span { animation: none; width: auto; overflow-wrap: anywhere; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .screen-ticker { backdrop-filter: none; }
  .topbar { background: #f9fbfe; }
  .screen-ticker { background: #050e1f; }
}
@media (prefers-contrast: more) {
  .topbar { background: #fff; backdrop-filter: none; border-bottom: 1px solid #54657f; }
  .surface, .field :is(input, select, textarea), .filter, .device-search input, .device-tabs { border-color: #52647b; }
}
@media (forced-colors: active) {
  .navigation a[aria-current] { border: 1px solid LinkText; }
  .status, .button { border-color: ButtonText; }
  .device-tabs button[aria-selected="true"] { border-color: Highlight; }
  .chart-track { border: 1px solid CanvasText; }
  .chart-track i { forced-color-adjust: none; background: Highlight; }
}


.campaign-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem;
  padding: 0 1.125rem .85rem;
}
.campaign-toolbar input {
  width: 100%; min-width: 0; min-height: 2.25rem; padding: .43rem .6rem;
  background: white; color: var(--ink); border: 1px solid #cbd7e5; border-radius: .5rem; font: inherit; font-size: .82rem;
}
.campaign-heading h1 { overflow-wrap: anywhere; }
.campaign-heading .status { margin-top: .55rem; }
.campaign-detail-body { display: grid; gap: 1.125rem; }
.campaign-summary {
  display: grid; grid-template-columns: 1fr 1.25fr .85fr 1fr; margin: 0; overflow: hidden;
}
.campaign-summary > div {
  display: grid; align-content: start; gap: .28rem; min-width: 0; padding: .9rem 1.125rem;
}
.campaign-summary > div + div { border-left: 1px solid var(--line); }
.campaign-summary dt { color: var(--muted); font-size: .77rem; font-weight: 620; }
.campaign-summary dd { margin: 0; font-size: .925rem; font-weight: 690; overflow-wrap: anywhere; }
.campaign-summary #campaign-detail-usage { color: var(--muted); font-size: .78rem; font-weight: 530; }
.campaign-content-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start; gap: 1.1rem; padding: 0 1.125rem 1.125rem;
}
.campaign-clip-list, .campaign-info-list { list-style: none; padding: 0; margin: 0; min-width: 0; }
.campaign-clip-list { display: grid; gap: .42rem; }
.clip-choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  width: 100%; min-height: 3.2rem; gap: .65rem; padding: .55rem .65rem;
  border: 1px solid var(--line); border-radius: .58rem;
  color: var(--ink); background: #fff; text-align: left;
}
.clip-choice:hover { background: #f7faff; border-color: #c2d2e8; }
.clip-choice:active { background: #e6efff; }
.clip-choice[aria-pressed="true"] { background: #eff5ff; border-color: #a4bcec; box-shadow: inset .16rem 0 #4f78dc; }
.clip-choice .row-thumb { width: 2.8rem; height: 1.65rem; }
.clip-choice .campaign-title { font-size: .85rem; }
.clip-choice .clip-rate { text-align: right; color: var(--ink); white-space: nowrap; font-size: .79rem; font-weight: 660; }
.campaign-preview { margin: 0; min-width: 0; }
.campaign-preview video {
  display: block; width: 100%; max-height: 18rem; aspect-ratio: 16 / 9; object-fit: contain;
  background: #101b2d; border-radius: .55rem;
}
.campaign-preview figcaption { margin-top: .43rem; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.campaign-preview .message { margin-top: .43rem; }
.campaign-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.125rem; align-items: start; }
.campaign-detail-grid > .surface { min-width: 0; overflow: hidden; }
.campaign-info-list li { display: grid; gap: .32rem; padding: .68rem 1.125rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.campaign-info-list li > strong, .campaign-info-list li > a { font-size: .86rem; line-height: 1.3; width: fit-content; }
.campaign-screen-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.campaign-screen-badges .status { white-space: normal; }
.campaign-report-total { color: var(--muted); font-size: .78rem; flex: 0 1 auto; text-align: right; }
#campaign-dialog { width: min(43rem, calc(100% - 1.5rem)); }
#campaign-dialog .dialog-heading {
  background: rgb(249 251 254 / 92%); backdrop-filter: blur(1rem) saturate(140%);
}
.editor-clips {
  display: grid; gap: .6rem; background: #f5f8fc; border: 1px solid var(--line);
  padding: .7rem; border-radius: .6rem;
}
.editor-clips-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .7rem; }
#editor-clip-rows { display: grid; gap: .65rem; }
.editor-clip-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem auto; gap: .45rem; align-items: end;
}
.editor-clip-row .field { min-width: 0; }
.editor-clip-row .field select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.editor-media-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.image-upload-options {
  display: grid; gap: .5rem; min-width: 0; margin: 0; padding: .65rem;
  background: #fff; border: 1px solid var(--line); border-radius: .55rem;
}
.image-upload-name { font-weight: 650; overflow-wrap: anywhere; }
.image-upload-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; }
.image-upload-controls .field { min-width: 0; }
.image-upload-controls input { width: 100%; min-width: 4.5rem; }
.image-upload-controls .button { min-height: 2.45rem; }
.editor-clips .clip-remove:not(:disabled):hover { background: var(--red-bg); color: var(--red-ink); }
#campaign-dialog .form-hours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 65rem) {
  .campaign-content-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .campaign-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-summary > div:nth-child(3) { border-left: 0; }
  .campaign-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 48rem) {
  .campaign-detail-grid, .campaign-content-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .campaign-detail-body { gap: .85rem; }
  .clip-choice { min-height: 3.35rem; }
  .campaign-toolbar :is(input, select) { min-height: 2.75rem; font-size: 1rem; }
}
@media (max-width: 33rem) {
  .campaign-toolbar { padding-inline: .9rem; grid-template-columns: minmax(0, 1fr); }
  .campaign-toolbar select { max-width: none; }
  .campaign-content-grid { padding-inline: .9rem; }
  .campaign-summary > div, .campaign-info-list li { padding-inline: .9rem; }
  .campaign-open .campaign-title .secondary { font-size: .72rem; }
  .editor-clip-row { grid-template-columns: minmax(0, 1fr) auto; }
  .editor-clip-row .field:first-child { grid-column: 1 / -1; }
  .editor-clip-row .clip-remove { min-width: 2.75rem; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #campaign-dialog .dialog-heading { backdrop-filter: none; background: #f9fbfe; }
}
@media (prefers-contrast: more) {
  .clip-choice, .campaign-toolbar input, .editor-clips { border-color: #52647b; }
}
@media (forced-colors: active) {
  .clip-choice[aria-pressed="true"] { border-color: Highlight; }
}


.campaign-aside { display: grid; gap: 1.125rem; min-width: 0; }
.reserve-panel .section-heading { flex-wrap: wrap; }
.reserve-figure { display: grid; gap: .5rem; min-width: 0; }
.reserve-panel .reserve-figure { margin: 0 1.125rem 1rem; }
.reserve-figure video {
  width: 100%; aspect-ratio: 16 / 9; max-height: 15rem; object-fit: contain;
  border-radius: .55rem; background: #101b2d;
}
.reserve-figure figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; }
.reserve-figure figcaption strong { min-width: 0; overflow-wrap: anywhere; }
.group-panel { margin-bottom: 1rem; }
.group-panel .section-heading { flex-wrap: wrap; }
.group-rows {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .6rem; list-style: none; margin: 0; padding: 0 1.125rem .95rem;
}
.group-preview {
  display: grid; align-content: start; gap: .25rem; padding: .65rem .7rem;
  border: 1px solid var(--line); border-radius: .55rem; background: #f6f9fd; min-width: 0;
}
.group-preview[data-selected] { background: #edf4ff; border-color: #a1b8eb; }
.group-preview .text-link { justify-self: start; padding: .18rem 0; min-width: 0; overflow-wrap: anywhere; text-align: left; border: 0; background: transparent; }
.group-preview .text-link:active { color: var(--blue-pressed); }
.group-preview .button { justify-self: start; font-size: .77rem; min-height: 2.1rem; margin-top: .12rem; }
.operations-dialog-form { display: flex; flex-direction: column; max-height: calc(100dvh - 1.65rem); }
.group-members { margin: 0; padding: .65rem .7rem; min-width: 0; border: 1px solid var(--line); border-radius: .55rem; }
.group-members legend { padding-inline: .3rem; font-weight: 690; }
.group-members .field-help { margin-block: .45rem; }
.group-members-list { max-height: 16rem; overflow: auto; }
.group-member { display: flex; align-items: center; gap: .55rem; padding: .35rem .15rem; min-height: 2.4rem; }
.group-member + .group-member { border-top: 1px solid var(--line); }
.group-member input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--blue); }
.group-member > span { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.report-filters { display: grid; gap: .55rem; padding: 0 1.125rem .8rem; }
.report-filters .form-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.report-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.report-actions .button { min-height: 2.15rem; font-size: .78rem; }
@media (max-width: 54rem) {
  .device-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .device-search { grid-column: 1 / -1; }
}
@media (max-width: 46rem) {
  .campaign-aside { gap: .85rem; }
  .group-preview .text-link { min-height: 2.5rem; }
  .report-actions .button, .group-preview .button { min-height: 2.75rem; }
}
@media (max-width: 33rem) {
  .group-rows, .report-filters { padding-inline: .9rem; }
  .group-rows { grid-template-columns: 1fr; }
  .reserve-panel .reserve-figure { margin-inline: .9rem; }
}
@media (prefers-contrast: more) {
  .group-preview, .group-members { border-color: #52647b; }
}

.auth-entry {
  grid-column: 1 / -1; display: grid; place-items: center;
  min-height: 100dvh; min-width: 0; padding: 1.2rem;
}
.auth-card { width: min(100%, 26rem); padding: clamp(1.2rem, 4vw, 2rem); }
.auth-card .auth-brand { padding: 0; color: var(--ink); font-size: 1rem; margin-bottom: 1rem; }
.auth-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .5rem; }
.auth-form { display: grid; gap: .85rem; margin-top: .9rem; }
.auth-card #login-retry { margin-top: .75rem; }
.top-actions { flex-wrap: wrap; row-gap: .3rem; }
.session-actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.profile-button { min-width: 0; overflow-wrap: anywhere; white-space: normal; text-align: left; }
.icon-account::before {
  content: ''; position: absolute; inset: 0 auto auto .34rem; width: .35rem; height: .35rem;
  border: 1.5px solid; border-radius: 50%;
}
.icon-account::after {
  content: ''; position: absolute; inset: .48rem .07rem 0; border: 1.5px solid; border-radius: .35rem .35rem .11rem .11rem;
}
.accounts-panel { overflow: hidden; }
.accounts-table { width: 100%; border-collapse: collapse; text-align: left; }
.accounts-table :is(th, td) { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.accounts-table th { color: var(--muted); font-size: .77rem; }
.accounts-table tbody tr:last-child td { border-bottom: 0; }
.accounts-table td:first-child { width: 40%; overflow-wrap: anywhere; }
.accounts-table td:first-child .secondary { display: block; }
.accounts-table td:last-child { text-align: right; }
.accounts-table .button { min-height: 2.25rem; }
#account-form, #password-form { display: flex; flex-direction: column; max-height: calc(100dvh - 1.65rem); }
@media (max-width: 46rem) {
  .navigation:has([data-view=accounts]:not([hidden])) { display: flex; flex-wrap: wrap; }
  .navigation:has([data-view=accounts]:not([hidden])) a { flex: 1 0 30%; }
  .session-actions { flex-basis: 100%; flex-wrap: nowrap; gap: .3rem; }
  .session-actions .profile-button { flex: 1; font-size: .8rem; }
  .accounts-table :is(th, td) { padding-inline: .65rem; }
}
@media (max-width: 35rem) {
  .accounts-table, .accounts-table tbody { display: block; }
  .accounts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .accounts-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: .15rem .55rem; padding: .75rem;
    border-bottom: 1px solid var(--line);
  }
  .accounts-table tbody tr:last-child { border-bottom: 0; }
  .accounts-table td, .accounts-table td:first-child { padding: 0; border: 0; width: auto; }
  .accounts-table td:first-child { grid-area: 1 / 1; }
  .accounts-table .account-role { grid-area: 2 / 1; align-self: center; }
  .accounts-table .account-active { grid-area: 3 / 1; }
  .accounts-table td:last-child { grid-area: 1 / 2 / 4 / 3; align-self: center; }
}


.campaign-actions, .fleet-shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fleet-shortcuts { padding: .8rem 1.125rem 0; }
.fleet-shortcuts .button[aria-pressed="true"] { border-color: #819eda; background: #e9f0ff; }
.fleet-shortcuts .button strong { margin-inline-start: .32rem; }
.group-panel { margin: 1rem 0 0; }
.group-panel > summary, .target-picker > summary {
  cursor: pointer; min-height: 2.75rem; padding: .65rem .9rem; font-weight: 680; color: var(--ink);
}
.group-panel > summary { padding-inline: 1.125rem; }
.group-tools { display: flex; justify-content: flex-end; padding: 0 1.125rem .65rem; }
.list-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: .5rem .75rem; padding: .75rem 1.125rem; border-top: 1px solid var(--line);
}
.list-pagination > span { color: var(--muted); font-size: .82rem; }
.list-pagination .button { min-height: 2.75rem; }
.plan-panel { overflow: hidden; }
.plan-totals {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
  margin: 0; padding: .2rem 1.125rem .85rem;
}
.plan-totals dt { color: var(--muted); font-size: .82rem; }
.plan-totals dd { margin: .2rem 0 0; font-weight: 715; font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.plan-table { width: 100%; border-collapse: collapse; text-align: start; }
.plan-table td, .plan-table th { padding: .65rem .8rem; border-top: 1px solid var(--line); text-align: start; }
.plan-table th:first-child, .plan-table td:first-child { padding-inline-start: 1.125rem; }
.plan-table td:nth-child(2) { overflow-wrap: anywhere; }
.plan-table td:nth-child(2) > span, .plan-table td:nth-child(2) > strong { display: block; }
.plan-table th { background: #f6f9fd; color: var(--muted); font-size: .82rem; }
.plan-table .status { white-space: normal; }
.campaign-date-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.3rem), 1fr)); }
.target-picker { border: 1px solid var(--line); border-radius: .55rem; margin-top: .35rem; }
.target-picker > div { padding: 0 .65rem .65rem; }
.target-picker .group-members-list { margin-top: .32rem; }
.target-picker .group-member { min-height: 2.75rem; }
.day-picker { min-width: 0; margin: 0; border: 0; padding: 0; }
.day-picker legend { font-weight: 680; margin-bottom: .3rem; padding: 0; }
.weekday-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.weekday {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem;
  border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; background: #f6f9fd;
}
.weekday input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.weekday:has(input:checked) { border-color: #91a9e0; background: #e9f0ff; color: var(--blue-pressed); font-weight: 700; }
.weekday:has(input:focus-visible) { outline: .15625rem solid #386ae6; outline-offset: .125rem; }
.editor-windows, #editor-window-rows { display: grid; gap: .45rem; }
.editor-windows > .button { justify-self: start; min-height: 2.75rem; }
.schedule-window { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
.schedule-window:has(button[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-window .icon-button, #close-editor { min-width: 2.75rem; min-height: 2.75rem; }
#stop-dialog { width: min(27rem, calc(100% - 1.5rem)); }
@media (max-width: 46rem) {
  .fleet-shortcuts, .list-pagination { padding-inline: .9rem; }
  .plan-table, .plan-table tbody { display: block; }
  .plan-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .plan-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .65rem .9rem; border-top: 1px solid var(--line); gap: .28rem .6rem; }
  .plan-table td, .plan-table td:first-child { display: block; padding: 0; border: 0; }
  .plan-table td:nth-child(2), .plan-table td:last-child { grid-column: 1 / -1; }
  .plan-table td:nth-child(3)::before { content: 'План '; color: var(--muted); }
  .plan-table td:nth-child(4)::before { content: 'Факт '; color: var(--muted); }
}
@media (max-width: 25rem) {
  .plan-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-pagination { justify-content: space-between; }
}
