:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel2: #f1f4f7;
  --line: #d8e0e8;
  --muted: #607286;
  --text: #172b40;
  --blue: #285d81;
  --teal: #16786f;
  --yellow: #96620f;
  --red: #b74048;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.loading {
  height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.layout {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  border-right: 1px solid #222b36;
  background: #131920;
  display: flex;
  flex-direction: column;
  padding: 25px 16px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin: 0 7px 38px;
}
.brand-icon,
.brand-mark {
  display: grid;
  place-items: center;
  background: #19344d;
  color: #75baff;
  width: 36px;
  height: 36px;
  border: 1px solid #315576;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 800;
}
.brand b {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
}
.brand small {
  display: block;
  color: #94a4b4;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-top: 3px;
}
.nav-label,
.eyebrow {
  color: #8191a1;
  font-size: 10px;
  letter-spacing: 1.35px;
  font-weight: 700;
}
.nav-label {
  padding: 0 10px;
  margin: 0 0 10px;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #a9b5c2;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.nav-item > span {
  font-size: 16px;
  width: 16px;
  text-align: center;
  color: #8694a3;
}
.nav-item:hover,
.nav-item.active {
  background: #1d2a36;
  color: #f4f7fa;
}
.nav-item.active {
  box-shadow: inset 2px 0 #5aaaff;
}
.nav-item.active > span {
  color: #69b1ff;
}
.nav-item kbd {
  margin-left: auto;
  color: #8d9aaa;
  font:
    10px "DM Mono",
    monospace;
}
.side-bottom {
  margin-top: auto;
}
.connection {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
}
.connection b,
.connection small,
.profile-name b,
.profile-name small {
  display: block;
}
.connection b {
  font-size: 11px;
  font-weight: 500;
}
.connection small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d4a0;
  box-shadow: 0 0 9px #58d4a080;
}
.profile {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 7px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #293849;
  color: #b6d5f3;
  font-size: 10px;
  font-weight: 700;
}
.profile-name {
  flex: 1;
}
.profile-name b {
  font-size: 11px;
}
.profile-name small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.more {
  font-size: 20px;
  color: var(--muted);
}
.logout {
  padding: 8px 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11px;
}
.main {
  margin-left: 245px;
}
.topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #10151cef;
  border-bottom: 1px solid #222b36;
  padding: 0 34px;
  backdrop-filter: blur(10px);
}
.breadcrumbs {
  font-size: 12px;
  color: #97a4b1;
}
.breadcrumbs b {
  font-weight: 500;
  color: #edf2f7;
}
.slash {
  padding: 0 10px;
  color: #586573;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    11px "DM Mono",
    monospace;
}
.clock small {
  color: var(--muted);
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
  margin-left: 3px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: #aeb9c6;
  border-radius: 7px;
  width: 33px;
  height: 33px;
  font-size: 18px;
  line-height: 1;
}
.content {
  max-width: 1460px;
  margin: auto;
  padding: 31px 34px 60px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.page-heading h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 5px 0 7px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.eyebrow {
  margin: 0;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 9px 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
}
.btn.primary {
  background: #3189ea;
  color: white;
  box-shadow: 0 3px 14px #2572c329;
}
.btn.primary:hover {
  background: #4399f7;
}
.btn.secondary {
  background: #253749;
  border-color: #324c65;
  color: #d1e6f8;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: #bac4ce;
}
.btn.full {
  width: 100%;
  padding: 12px;
}
.date-chip,
.select-control,
.input-control {
  background: var(--panel);
  border: 1px solid var(--line);
  color: #dde5ed;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
}
.date-chip {
  font-family: "DM Mono", monospace;
  color: #c7d4e1;
}
.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  background: #141b23;
  border: 1px solid #222c38;
  border-radius: 9px;
  margin-bottom: 15px;
}
.filters label {
  color: var(--muted);
  font-size: 10px;
}
.filters .select-control,
.filters input {
  min-width: 150px;
}
.search-wrap {
  position: relative;
  margin-left: auto;
}
.search-wrap input {
  width: 208px;
  padding-left: 30px;
}
.search-icon {
  position: absolute;
  left: 11px;
  top: 8px;
  color: #8392a2;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid #25303c;
  border-radius: 9px;
  padding: 15px 16px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #2e3c49;
  background: #1d2a36;
  border-radius: 7px;
  color: #82baff;
}
.stat-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-top: 8px;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.section-card {
  border: 1px solid #26313d;
  border-radius: 9px;
  background: #141a22;
  overflow: hidden;
  margin-bottom: 17px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #26313d;
}
.section-head h2 {
  font-size: 12px;
  margin: 0;
  font-weight: 600;
}
.section-head p {
  color: var(--muted);
  font-size: 10px;
  margin: 4px 0 0;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  font:
    10px "DM Mono",
    monospace;
  color: #9cabb9;
  background: #202a34;
  border: 1px solid #2d3946;
  padding: 3px 6px;
  border-radius: 5px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 9px;
  color: #8492a1;
  font-weight: 600;
  background: #171f28;
  padding: 10px 13px;
  border-bottom: 1px solid #25303b;
}
td {
  padding: 11px 13px;
  border-bottom: 1px solid #202a34;
  font-size: 10px;
  color: #ced6df;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #1a232c;
}
.mono {
  font:
    10px "DM Mono",
    monospace;
  color: #b1becc;
}
.call-sign {
  font-weight: 700;
  color: #e5ecf4;
}
.program {
  font-weight: 600;
  color: #e0e6ee;
}
.subtext {
  color: #8593a2;
  font-size: 9px;
  margin-top: 4px;
}
.status,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 7px;
  border: 1px solid #3d3425;
  background: #282319;
  color: #e7c781;
  font-size: 9px;
}
.status.Open,
.status.Resolved {
  border-color: #24503e;
  background: #18271f;
  color: #84d9a9;
}
.status.Closed {
  border-color: #313b46;
  background: #222932;
  color: #aab5c1;
}
.status.Pending\ Engineering,
.status.Pending\ Traffic,
.status.Under\ Review {
  border-color: #34496a;
  background: #1d2a3e;
  color: #8fc2ff;
}
.tag.blue {
  border-color: #34496a;
  background: #1d2a3e;
  color: #8fc2ff;
}
.empty {
  padding: 40px 15px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  font-size: 23px;
  color: #576779;
  margin-bottom: 9px;
}
.empty b {
  display: block;
  color: #cad3dc;
  font-size: 12px;
  margin-bottom: 5px;
}
.empty span {
  font-size: 10px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card-pad {
  padding: 15px;
}
.muted {
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 14px;
}
label {
  display: block;
  color: #aab7c4;
  font-size: 10px;
}
label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.stack input,
.admin-form input,
.admin-form select {
  background: #111820;
  color: #e5ecf2;
  border: 1px solid #303a47;
  border-radius: 6px;
  padding: 9px 10px;
  outline: none;
  font-size: 11px;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.stack input:focus {
  border-color: #4e92cd;
  box-shadow: 0 0 0 2px #4e92cd25;
}
.form-grid select option,
.stack select option {
  background: #171f28;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.mini-card {
  border: 1px solid #28333f;
  background: var(--panel);
  padding: 16px;
  border-radius: 8px;
}
.mini-card h3 {
  font-size: 12px;
  margin: 0 0 6px;
}
.mini-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
.mini-num {
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-card {
  border: 1px solid #28333f;
  background: var(--panel);
  border-radius: 9px;
  padding: 17px;
}
.admin-card h2 {
  font-size: 13px;
  margin: 0 0 5px;
}
.admin-card > p {
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 15px;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-form .wide {
  grid-column: 1/-1;
}
.admin-form .btn {
  align-self: end;
}
.callout {
  border: 1px solid #4e4228;
  background: #282318;
  color: #dbc58d;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1a2734, #10151c 65%);
}
.login-card {
  width: min(390px, calc(100vw - 36px));
  padding: 33px;
  background: #161d26;
  border: 1px solid #2a3643;
  border-radius: 13px;
  box-shadow: 0 20px 100px #0005;
}
.login-card .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 23px;
  margin-bottom: 21px;
}
.brand-mark span {
  color: #fff;
}
.login-card h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 6px 0;
}
.login-card > .muted {
  font-size: 11px;
  margin: 7px 0 22px;
}
.login-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
  color: #82909f;
  font-size: 9px;
  letter-spacing: 1px;
}
.login-card input {
  padding: 11px;
}
.login-card .eyebrow {
  font-size: 9px;
}
.form-error {
  color: #ff9a9f;
  font-size: 10px;
  min-height: 14px;
  margin: 0;
}
.toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  padding: 12px 15px;
  border: 1px solid #355844;
  border-radius: 8px;
  background: #18271f;
  color: #abedc0;
  font-size: 11px;
  box-shadow: 0 10px 40px #0005;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  border-color: #653c40;
  background: #2a1b1d;
  color: #ffb6ba;
}
dialog {
  color: var(--text);
  width: min(720px, calc(100vw - 22px));
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 1px solid #35404d;
  border-radius: 12px;
  background: #171e27;
  box-shadow: 0 24px 120px #0009;
}
dialog::backdrop {
  background: #05090dd9;
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 21px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #2c3743;
  padding: 0 0 16px;
  margin-bottom: 17px;
}
.dialog-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.inline-muted {
  color: #8191a1;
  font-size: 9px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #2c3743;
  padding-top: 14px;
  margin-top: 12px;
}
.dialog-actions .btn {
  padding: 9px 12px;
}
.report-section {
  margin: 13px;
}
.date-empty {
  padding: 60px 20px;
}
@media (max-width: 1030px) {
  .sidebar {
    width: 210px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 24px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-wrap input {
    width: 155px;
  }
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: auto;
    height: auto;
    padding: 12px 14px;
  }
  .brand {
    margin: 0;
  }
  .sidebar .nav-label,
  .sidebar nav,
  .sidebar #admin-nav,
  .side-bottom .connection,
  .side-bottom .logout {
    display: none;
  }
  .side-bottom {
    position: absolute;
    right: 13px;
    top: 10px;
  }
  .profile {
    width: auto;
    padding: 0;
  }
  .profile-name,
  .profile .more {
    display: none;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 15px;
  }
  .clock small {
    display: none;
  }
  .content {
    padding: 20px 13px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .page-heading {
    align-items: center;
  }
  .page-heading p {
    font-size: 10px;
  }
  .page-actions .optional {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-num {
    font-size: 22px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search-wrap {
    margin: 0;
    width: 100%;
  }
  .search-wrap input {
    width: 100%;
  }
  .filters .select-control,
  .filters input {
    min-width: 0;
    flex: 1;
  }
  .split,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  .clock {
    font-size: 10px;
  }
  .page-actions {
    gap: 5px;
  }
  .page-actions .btn {
    padding: 8px;
  }
  .page-actions .btn:not(.primary) {
    display: none;
  }
}
.channels-check {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.channels-check legend {
  color: #9aa9b7;
  padding: 0 4px;
}
.channels-check label {
  background: #202a34;
  border: 1px solid #303c49;
  border-radius: 5px;
  padding: 7px;
}
.channels-check input {
  display: inline;
  width: auto;
  margin: 0 4px 0 0;
}
.admin-form .wide textarea {
  width: 100%;
}

@media (max-width: 700px) {
  .sidebar {
    display: block;
    padding: 11px 12px 9px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    margin-top: 10px;
    scrollbar-width: thin;
  }
  .sidebar nav .nav-item {
    width: auto;
    white-space: nowrap;
    flex: none;
    padding: 8px 9px;
    margin: 0;
    font-size: 10px;
  }
  .sidebar nav .nav-item > span {
    width: auto;
  }
  .sidebar nav kbd {
    display: none;
  }
  .sidebar .nav-label {
    display: none;
  }
  .sidebar #admin-nav:not([hidden]) {
    display: block;
    overflow-x: auto;
  }
  .sidebar #admin-nav:not([hidden]) .nav-item {
    width: auto;
    display: inline-flex;
  }
  .sidebar #admin-nav .nav-label {
    display: none;
  }
  .side-bottom {
    top: 11px;
  }
  .topbar {
    top: 0;
  }
  .content {
    padding-top: 16px;
  }
}

.nav-item[hidden] {
  display: none;
}

/* Professional broadcast-operations palette: clean work surface, navy navigation. */
:root {
  color-scheme: light;
}
body {
  background: var(--bg);
  color: var(--text);
}
.sidebar {
  background: #18344d;
  border-right-color: #29445d;
}
.brand-icon,
.brand-mark {
  background: #244663;
  color: #e6f0f7;
  border-color: #52718a;
}
.brand small,
.nav-item,
.nav-item > span,
.nav-label {
  color: #b7c6d3;
}
.nav-item:hover,
.nav-item.active {
  background: #254663;
  color: #ffffff;
}
.nav-item.active {
  box-shadow: inset 3px 0 #a3c8e0;
}
.nav-item.active > span {
  color: #d6eaf7;
}
.nav-item kbd {
  color: #bdcad6;
}
.avatar {
  background: #355570;
  color: #f0f6fa;
}
.topbar {
  background: rgb(255 255 255 / 96%);
  border-bottom-color: #dce3ea;
}
.breadcrumbs {
  color: #64778a;
}
.breadcrumbs b {
  color: #263d52;
}
.slash {
  color: #9aa9b7;
}
.icon-btn {
  background: #ffffff;
  color: #465d73;
  border-color: #d6dfe7;
}
.icon-btn:hover {
  background: #eef3f7;
  border-color: #c0ccd7;
}
.btn.primary {
  background: #285d81;
  box-shadow: 0 2px 6px rgb(25 60 87 / 12%);
}
.btn.primary:hover {
  background: #1e4d6d;
}
.btn.secondary {
  background: #e7eef4;
  border-color: #d3dee7;
  color: #284b66;
}
.btn.secondary:hover {
  background: #dce7ef;
}
.btn.ghost {
  background: #ffffff;
  border-color: #d2dce5;
  color: #465c70;
}
.date-chip,
.select-control,
.input-control {
  background: #ffffff;
  border-color: #ced9e3;
  color: #253a4f;
}
.date-chip {
  color: #344c62;
}
.filters {
  background: #ffffff;
  border-color: #dbe2e9;
  box-shadow: 0 1px 2px rgb(23 43 64 / 3%);
}
.search-icon {
  color: #73869a;
}
.stat-card {
  background: #ffffff;
  border-color: #dbe2e9;
  box-shadow: 0 1px 2px rgb(23 43 64 / 3%);
}
.stat-icon {
  color: #285d81;
  background: #edf3f7;
  border-color: #dbe5ed;
}
.section-card {
  background: #ffffff;
  border-color: #dbe2e9;
  box-shadow: 0 1px 2px rgb(23 43 64 / 3%);
}
.section-head {
  border-bottom-color: #e0e6ec;
}
.count {
  color: #53687c;
  background: #f1f4f7;
  border-color: #dbe3ea;
}
thead th {
  background: #f0f3f6;
  color: #52667a;
  border-bottom-color: #dce4eb;
}
tbody td {
  color: #34485c;
  border-bottom-color: #e9edf1;
}
tbody tr:nth-child(even) {
  background: #fbfcfd;
}
tbody tr:hover {
  background: #f1f6fa;
}
.mono {
  color: #516579;
}
.call-sign {
  color: #243e55;
}
.program {
  color: #283f54;
}
.subtext {
  color: #63778b;
}
.status,
.tag {
  color: #8a5a12;
  background: #fbf4e7;
  border-color: #e9d6ad;
}
.status.Open {
  color: #88560e;
  background: #fbf2df;
  border-color: #ebd09b;
}
.status.Resolved {
  color: #206448;
  background: #eaf5ef;
  border-color: #c8e3d3;
}
.status.Closed {
  color: #536477;
  background: #eef1f4;
  border-color: #d8dfe5;
}
.status.Pending,
.status.Under {
  color: #315c82;
  background: #edf3f9;
  border-color: #ceddec;
}
.tag.blue {
  color: #315c82;
  background: #edf3f9;
  border-color: #ceddec;
}
.empty {
  color: #607286;
}
.empty .empty-icon {
  color: #8494a3;
}
.empty b {
  color: #34495d;
}
label {
  color: #43596d;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.stack input,
.admin-form input,
.admin-form select {
  background: #ffffff;
  color: #24394d;
  border-color: #ced9e3;
}
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.stack input::placeholder,
.admin-form input::placeholder {
  color: #8796a4;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.stack input:focus,
.admin-form input:focus,
.admin-form select:focus {
  border-color: #5280a1;
  box-shadow: 0 0 0 3px rgb(40 93 129 / 14%);
}
.form-grid select option,
.stack select option {
  background: #ffffff;
  color: #24394d;
}
.admin-card,
.mini-card {
  background: #ffffff;
  border-color: #dbe2e9;
  box-shadow: 0 1px 2px rgb(23 43 64 / 3%);
}
.callout {
  background: #fbf5e9;
  border-color: #ead9b9;
  color: #795b28;
}
.login-wrap {
  background:
    radial-gradient(
      ellipse at 50% 18%,
      rgb(221 233 241 / 85%),
      transparent 55%
    ),
    #f3f5f7;
}
.login-card {
  background: #ffffff;
  border-color: #dbe2e9;
  box-shadow: 0 18px 55px rgb(23 43 64 / 11%);
}
.login-card .brand-mark {
  background: #183e5d;
  color: #ffffff;
  border-color: #183e5d;
}
.brand-mark span {
  color: #9dc0d6;
}
.form-error {
  color: #a7353e;
}
.login-foot {
  border-top-color: #e1e7ed;
  color: #66798c;
}
.toast {
  background: #eef6f1;
  border-color: #c7e0d0;
  color: #245e43;
  box-shadow: 0 8px 28px rgb(23 43 64 / 12%);
}
.toast.error {
  background: #fbefef;
  border-color: #e8caca;
  color: #91353b;
}
dialog {
  background: #ffffff;
  border-color: #d4dee7;
  box-shadow: 0 22px 65px rgb(23 43 64 / 22%);
}
dialog::backdrop {
  background: rgb(20 36 52 / 42%);
}
.dialog-head,
.dialog-actions {
  border-color: #e1e7ed;
}
.channels-check {
  border-color: #d2dde6;
}
.channels-check legend {
  color: #596e82;
}
.channels-check label {
  background: #f5f7f9;
  border-color: #dce4eb;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151c;
  --panel: #161d26;
  --panel2: #1b232e;
  --line: #28323f;
  --muted: #8693a3;
  --text: #edf2f7;
  --blue: #58a8ff;
  --teal: #56d9be;
  --yellow: #f0c575;
  --red: #ff828a;
}
body[data-theme="dark"] .sidebar {
  background: #131920;
  border-right-color: #222b36;
}
body[data-theme="dark"] .brand-icon,
body[data-theme="dark"] .brand-mark {
  background: #19344d;
  color: #75baff;
  border-color: #315576;
}
body[data-theme="dark"] .brand small,
body[data-theme="dark"] .nav-label {
  color: #94a4b4;
}
body[data-theme="dark"] .nav-item {
  color: #a9b5c2;
}
body[data-theme="dark"] .nav-item > span {
  color: #8694a3;
}
body[data-theme="dark"] .nav-item:hover,
body[data-theme="dark"] .nav-item.active {
  background: #1d2a36;
  color: #f4f7fa;
}
body[data-theme="dark"] .nav-item.active {
  box-shadow: inset 2px 0 #5aaaff;
}
body[data-theme="dark"] .nav-item.active > span {
  color: #69b1ff;
}
body[data-theme="dark"] .nav-item kbd {
  color: #8d9aaa;
}
body[data-theme="dark"] .avatar {
  background: #293849;
  color: #b6d5f3;
}
body[data-theme="dark"] .topbar {
  background: rgb(16 21 28 / 94%);
  border-bottom-color: #222b36;
}
body[data-theme="dark"] .breadcrumbs {
  color: #97a4b1;
}
body[data-theme="dark"] .breadcrumbs b {
  color: #edf2f7;
}
body[data-theme="dark"] .slash {
  color: #586573;
}
body[data-theme="dark"] .icon-btn {
  background: var(--panel);
  color: #aeb9c6;
  border-color: var(--line);
}
body[data-theme="dark"] .btn.primary {
  background: #3189ea;
  box-shadow: 0 3px 14px #2572c329;
}
body[data-theme="dark"] .btn.primary:hover {
  background: #4399f7;
}
body[data-theme="dark"] .btn.secondary {
  background: #253749;
  border-color: #324c65;
  color: #d1e6f8;
}
body[data-theme="dark"] .btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: #bac4ce;
}
body[data-theme="dark"] .date-chip,
body[data-theme="dark"] .select-control,
body[data-theme="dark"] .input-control {
  background: var(--panel);
  border-color: var(--line);
  color: #dde5ed;
}
body[data-theme="dark"] .date-chip {
  color: #c7d4e1;
}
body[data-theme="dark"] .filters {
  background: #141b23;
  border-color: #222c38;
}
body[data-theme="dark"] .search-icon {
  color: #8392a2;
}
body[data-theme="dark"] .stat-card {
  background: var(--panel);
  border-color: #25303c;
}
body[data-theme="dark"] .stat-icon {
  color: #82baff;
  background: #1d2a36;
  border-color: #2e3c49;
}
body[data-theme="dark"] .section-card {
  background: #141a22;
  border-color: #26313d;
}
body[data-theme="dark"] .section-head {
  border-bottom-color: #26313d;
}
body[data-theme="dark"] .count {
  color: #9cabb9;
  background: #202a34;
  border-color: #2d3946;
}
body[data-theme="dark"] thead th {
  background: #171f28;
  color: #8492a1;
  border-bottom-color: #25303b;
}
body[data-theme="dark"] tbody td {
  color: #ced6df;
  border-bottom-color: #202a34;
}
body[data-theme="dark"] tbody tr:nth-child(even) {
  background: #161d26;
}
body[data-theme="dark"] tbody tr:hover {
  background: #1a232c;
}
body[data-theme="dark"] .mono {
  color: #b1becc;
}
body[data-theme="dark"] .call-sign {
  color: #e5ecf4;
}
body[data-theme="dark"] .program {
  color: #e0e6ee;
}
body[data-theme="dark"] .subtext {
  color: #8593a2;
}
body[data-theme="dark"] .status,
body[data-theme="dark"] .tag {
  color: #e7c781;
  background: #282319;
  border-color: #3d3425;
}
body[data-theme="dark"] .status.Open,
body[data-theme="dark"] .status.Resolved {
  color: #84d9a9;
  background: #18271f;
  border-color: #24503e;
}
body[data-theme="dark"] .status.Closed {
  color: #aab5c1;
  background: #222932;
  border-color: #313b46;
}
body[data-theme="dark"] .status.Pending,
body[data-theme="dark"] .status.Under,
body[data-theme="dark"] .tag.blue {
  color: #8fc2ff;
  background: #1d2a3e;
  border-color: #34496a;
}
body[data-theme="dark"] .empty {
  color: var(--muted);
}
body[data-theme="dark"] .empty .empty-icon {
  color: #576779;
}
body[data-theme="dark"] .empty b {
  color: #cad3dc;
}
body[data-theme="dark"] label {
  color: #aab7c4;
}
body[data-theme="dark"] .form-grid input,
body[data-theme="dark"] .form-grid select,
body[data-theme="dark"] .form-grid textarea,
body[data-theme="dark"] .stack input,
body[data-theme="dark"] .admin-form input,
body[data-theme="dark"] .admin-form select {
  background: #111820;
  color: #e5ecf2;
  border-color: #303a47;
}
body[data-theme="dark"] .form-grid select option,
body[data-theme="dark"] .stack select option {
  background: #171f28;
  color: #edf2f7;
}
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .mini-card {
  background: var(--panel);
  border-color: #28333f;
}
body[data-theme="dark"] .callout {
  background: #282318;
  border-color: #4e4228;
  color: #dbc58d;
}
body[data-theme="dark"] .login-wrap {
  background: radial-gradient(ellipse at 50% 40%, #1a2734, #10151c 65%);
}
body[data-theme="dark"] .login-card {
  background: #161d26;
  border-color: #2a3643;
  box-shadow: 0 20px 100px #0005;
}
body[data-theme="dark"] .login-card .brand-mark {
  background: #19344d;
  color: #75baff;
  border-color: #315576;
}
body[data-theme="dark"] .brand-mark span {
  color: #ffffff;
}
body[data-theme="dark"] .form-error {
  color: #ff9a9f;
}
body[data-theme="dark"] .login-foot {
  border-top-color: var(--line);
  color: #82909f;
}
body[data-theme="dark"] .toast {
  background: #18271f;
  border-color: #355844;
  color: #abedc0;
  box-shadow: 0 10px 40px #0005;
}
body[data-theme="dark"] .toast.error {
  background: #2a1b1d;
  border-color: #653c40;
  color: #ffb6ba;
}
body[data-theme="dark"] dialog {
  background: #171e27;
  border-color: #35404d;
  box-shadow: 0 24px 120px #0009;
}
body[data-theme="dark"] dialog::backdrop {
  background: #05090dd9;
}
body[data-theme="dark"] .dialog-head,
body[data-theme="dark"] .dialog-actions {
  border-color: #2c3743;
}
body[data-theme="dark"] .channels-check {
  border-color: var(--line);
}
body[data-theme="dark"] .channels-check legend {
  color: #9aa9b7;
}
body[data-theme="dark"] .channels-check label {
  background: #202a34;
  border-color: #303c49;
}

/* Marquee operations workspace: dense, quiet and service-first. */
:root {
  --bg: #f1f3f5;
  --panel: #ffffff;
  --panel2: #f5f7f8;
  --line: #d6dce1;
  --muted: #65727e;
  --text: #27343f;
  --blue: #40566b;
  --teal: #496075;
  --yellow: #885e24;
  --red: #9c4544;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.sidebar {
  width: 248px;
  padding: 19px 14px 12px;
  background: #2e4357;
  border-right: 1px solid #25394c;
}
.brand {
  gap: 11px;
  margin: 0 5px 27px;
  color: #f5f7f8;
}
.brand-icon {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 37px;
  padding: 0;
  object-fit: contain;
  background: #f6f6f6;
  border: 0;
  border-radius: 2px;
}
.brand b {
  font-size: 12px;
  letter-spacing: 1.5px;
}
.brand small {
  margin-top: 4px;
  color: #c3cdd5;
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.nav-label {
  margin: 0 0 7px;
  padding: 0 9px;
  color: #c0cbd4;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.nav-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 39px;
  margin: 1px 0;
  padding: 6px 8px;
  border-radius: 2px;
  color: #d2d9df;
  font-size: 12px;
  font-weight: 500;
}
.nav-item > .nav-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 24px;
  border: 1px solid #516579;
  border-radius: 2px;
  background: #3a5065;
  color: #e0e6eb;
  font: 600 8px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.35px;
}
.nav-item:hover,
.nav-item.active {
  background: #3a5065;
  color: #ffffff;
}
.nav-item.active {
  box-shadow: inset 2px 0 #d5e0e8;
}
.nav-item.active > .nav-mark {
  background: #eef1f3;
  border-color: #eef1f3;
  color: #33495e;
}
.nav-item kbd {
  color: #d2dae0;
}
.connection {
  padding: 11px 8px;
  border-color: #526477;
}
.connection b,
.profile-name b {
  color: #f5f7f8;
}
.connection small,
.profile-name small {
  color: #c1ccd5;
}
.pulse {
  width: 7px;
  height: 7px;
  box-shadow: none;
}
.avatar {
  border-radius: 2px;
  background: #506579;
  color: #ffffff;
}
.logout {
  color: #c4cdd5;
  text-align: left;
}
.logout:hover {
  color: #ffffff;
}
.main {
  min-width: 0;
  margin-left: 248px;
  background: var(--bg);
}
.topbar {
  height: 53px;
  padding: 0 30px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.breadcrumbs {
  color: #72808c;
  font-size: 11px;
}
.breadcrumbs b {
  color: #344552;
  font-weight: 600;
}
.top-right {
  gap: 10px;
}
.clock {
  gap: 7px;
  color: #35495a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.clock small {
  color: #6b7985;
  letter-spacing: 0.65px;
}
.utility-btn {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #ccd4db;
  border-radius: 2px;
  background: #ffffff;
  color: #465969;
  font-size: 10px;
  font-weight: 600;
}
.utility-btn:hover {
  background: #f1f4f6;
  border-color: #aebbc6;
}
.content {
  width: 100%;
  max-width: 1680px;
  padding: 25px 30px 48px;
}
.page-heading {
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}
.page-heading .eyebrow {
  color: #64788a;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.page-heading h1 {
  margin: 3px 0 4px;
  color: #293945;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
.page-heading p {
  color: #65727e;
  font-size: 11px;
  line-height: 1.45;
}
.page-actions {
  flex-wrap: wrap;
  gap: 7px;
}
.btn {
  min-height: 34px;
  padding: 8px 12px;
  gap: 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none !important;
}
.btn.primary {
  background: #40566b;
  border-color: #40566b;
  color: #ffffff;
}
.btn.primary:hover {
  background: #33495e;
  border-color: #33495e;
}
.btn.secondary {
  background: #e9edf0;
  border-color: #d3dbe1;
  color: #344b60;
}
.btn.secondary:hover,
.btn.ghost:hover {
  background: #e5eaee;
  border-color: #b9c5ce;
}
.btn.ghost {
  background: #ffffff;
  border-color: #ccd5dc;
  color: #465969;
}
.filters {
  display: grid;
  grid-template-columns: minmax(165px, 205px) minmax(190px, 255px) minmax(230px, 1fr);
  align-items: end;
  gap: 12px;
  margin: 13px 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none;
}
.filter-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: #63717d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0 !important;
  height: 32px;
  padding: 6px 8px;
  border: 1px solid #ced6dd;
  border-radius: 2px;
  background: #ffffff;
  color: #344654;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.filter-service {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #ced6dd;
  background: #f5f7f8;
  color: #31495d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}
.filter-service small {
  color: #697885;
  font-size: 10px;
  font-weight: 400;
}
.filter-search input {
  background: #ffffff;
}
.filters .search-wrap {
  position: static;
  width: auto;
  margin: 0;
}
.filters .search-wrap input {
  width: 100%;
  padding-left: 9px;
}
.service-context {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 21px;
  padding: 12px 16px;
  border: 1px solid #d4dbe1;
  border-left: 3px solid #496075;
  border-radius: 2px;
  background: #ffffff;
}
.service-primary {
  min-width: 190px;
}
.context-label {
  display: block;
  margin-bottom: 4px;
  color: #71808c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.service-primary strong {
  display: block;
  color: #293d4f;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.1px;
}
.service-primary strong span {
  margin-left: 4px;
  color: #526779;
  font-size: 13px;
  font-weight: 500;
}
.service-primary small,
.service-context > div:not(.context-divider):not(.context-spacer):not(.service-primary) small {
  display: block;
  margin-top: 3px;
  color: #6c7a86;
  font-size: 10px;
}
.service-context > div:not(.context-divider):not(.context-spacer):not(.service-primary) strong {
  color: #344956;
  font-size: 12px;
  font-weight: 600;
}
.context-divider {
  width: 1px;
  align-self: stretch;
  background: #e0e5e9;
}
.context-spacer {
  flex: 1;
}
.shift-records {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.shift-records strong {
  color: #344b60;
  font-size: 18px !important;
}
.shift-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
  padding: 13px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ffffff;
}
.shift-metrics > div {
  min-width: 0;
  padding: 0 17px;
  border-right: 1px solid #e0e5e9;
}
.shift-metrics > div:last-child {
  border-right: 0;
}
.shift-metrics dt {
  color: #667581;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.shift-metrics dd {
  display: inline-block;
  margin: 5px 7px 0 0;
  color: #2f4353;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}
.shift-metrics small {
  color: #71808b;
  font-size: 9px;
}
.section-card,
.admin-card,
.mini-card {
  border: 1px solid #d5dce2;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: none !important;
}
.section-card {
  margin-bottom: 13px;
}
.section-head {
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid #dfe4e8;
}
.section-head h2 {
  color: #334654;
  font-size: 12px;
  font-weight: 650;
}
.section-head p {
  color: #73808b;
  font-size: 10px;
}
.count {
  border: 1px solid #d9dfe4;
  border-radius: 2px;
  background: #f2f4f6;
  color: #586874;
  font: 10px "Segoe UI", Arial, sans-serif;
  padding: 4px 7px;
}
.broadcast-log .table-scroll {
  max-height: calc(100vh - 410px);
  min-height: 220px;
  overflow: auto;
}
.broadcast-log table {
  min-width: 1060px;
}
.broadcast-log thead th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 9px 10px;
  background: #edf0f2;
  color: #586975;
  font-size: 8px;
  letter-spacing: 0.55px;
}
.broadcast-log tbody td {
  max-width: 245px;
  padding: 9px 10px;
  color: #3d4d59;
  font-size: 11px;
  white-space: nowrap;
}
.broadcast-log tbody tr:nth-child(even) {
  background: #fafbfc;
}
.broadcast-log tbody tr:hover {
  background: #f0f3f5;
}
.mono {
  color: #536574;
  font: 10px "Consolas", "SFMono-Regular", monospace;
  font-variant-numeric: tabular-nums;
}
.call-sign {
  color: #354b5f;
  font-weight: 700;
}
.program {
  color: #344754;
  font-weight: 600;
}
.subtext {
  color: #73808b;
  font-size: 9px;
}
.status,
.tag {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
}
.status.Open {
  border-color: #e8d3ac;
  background: #f8f1e5;
  color: #805a21;
}
.status.Resolved {
  border-color: #cbded2;
  background: #eef5f0;
  color: #37634a;
}
.status.Closed {
  border-color: #d6dce1;
  background: #f0f2f4;
  color: #5d6b76;
}
.status.Pending\ Engineering,
.status.Pending\ Traffic,
.status.Under\ Review,
.tag.blue {
  border-color: #d0dbe4;
  background: #eef2f5;
  color: #405c73;
}
.empty {
  padding: 48px 16px;
  color: #667581;
}
.empty b {
  color: #344754;
  font-size: 12px;
}
.empty span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.icon-btn {
  border-radius: 2px;
  color: #425768;
}
.login-wrap {
  background: #edf0f2;
}
.login-card {
  border: 1px solid #d4dce2;
  border-radius: 3px;
  box-shadow: 0 7px 22px rgb(40 54 66 / 8%);
}
.login-card .brand-mark {
  display: block;
  width: 88px;
  height: 58px;
  margin-bottom: 20px;
  object-fit: contain;
  background: #f6f6f6;
  border: 0;
  border-radius: 2px;
}
.login-card .eyebrow {
  color: #536879;
}
.login-card h1 {
  color: #293a48;
  font-size: 21px;
  font-weight: 600;
}
.login-card > .muted {
  padding: 0;
  background: transparent;
  color: #677581;
}
.pulse {
  box-shadow: none;
}
body[data-theme="dark"] .brand-icon,
body[data-theme="dark"] .login-card .brand-mark {
  background: #f6f6f6;
  border: 0;
}
body[data-theme="dark"] .service-context,
body[data-theme="dark"] .filters,
body[data-theme="dark"] .shift-metrics {
  background: var(--panel);
  border-color: #3a4651;
}
body[data-theme="dark"] .service-context strong,
body[data-theme="dark"] .shift-metrics dd {
  color: #e0e6eb;
}
body[data-theme="dark"] .shift-metrics dt,
body[data-theme="dark"] .shift-metrics small,
body[data-theme="dark"] .context-label,
body[data-theme="dark"] .service-context small {
  color: #aab6c0;
}
body[data-theme="dark"] .filter-field input,
body[data-theme="dark"] .filter-field select,
body[data-theme="dark"] .filter-service {
  border-color: #3a4651;
  background: #111820;
  color: #dbe2e8;
}
body[data-theme="dark"] .utility-btn {
  border-color: #3b4854;
  background: #1a232c;
  color: #d4dce3;
}
@media (max-width: 1030px) {
  .sidebar { width: 220px; }
  .main { margin-left: 220px; }
  .content { padding: 22px 20px 40px; }
  .filters { grid-template-columns: minmax(145px, 190px) minmax(170px, 225px) minmax(180px, 1fr); }
}
@media (max-width: 700px) {
  .sidebar {
    position: sticky;
    z-index: 4;
    top: 0;
    width: 100%;
    height: auto;
    padding: 9px 12px 7px;
    border-right: 0;
    border-bottom: 1px solid #25394c;
  }
  .brand { margin: 0 0 8px; }
  .brand-icon { width: 44px; height: 29px; flex-basis: 44px; }
  .sidebar .nav-label { display: none; }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .sidebar nav .nav-item {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 32px;
    padding: 4px 7px;
    font-size: 10px;
    white-space: nowrap;
  }
  .sidebar nav .nav-item > .nav-mark {
    width: 22px;
    height: 20px;
    font-size: 7px;
  }
  .sidebar #admin-nav[hidden] { display: none; }
  .sidebar #admin-nav:not([hidden]) {
    display: flex;
    margin-top: 4px;
    overflow-x: auto;
  }
  .sidebar #admin-nav:not([hidden]) .nav-item { width: auto; }
  .side-bottom { position: absolute; top: 10px; right: 12px; margin: 0; }
  .side-bottom .connection,
  .profile-name,
  .profile .more { display: none; }
  .profile { width: auto; padding: 0; }
  .logout { width: auto; padding: 7px 0 7px 8px; font-size: 10px; }
  .main { margin-left: 0; }
  .topbar { position: sticky; top: 87px; height: 43px; padding: 0 12px; }
  .top-right { gap: 6px; }
  .clock small { display: none; }
  .utility-btn { min-height: 28px; padding: 0 6px; font-size: 9px; }
  .content { padding: 16px 12px 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-heading h1 { font-size: 19px; }
  .page-actions { width: 100%; }
  .filters { grid-template-columns: 1fr 1fr; gap: 9px; padding: 9px; }
  .filter-search { grid-column: 1 / -1; }
  .service-context { flex-wrap: wrap; gap: 12px; padding: 10px; }
  .service-primary { min-width: 140px; }
  .context-divider { display: none; }
  .context-spacer { display: none; }
  .shift-records { margin-left: auto; }
  .shift-metrics { grid-template-columns: 1fr 1fr; }
  .shift-metrics > div { padding: 9px 12px; border-bottom: 1px solid #e0e5e9; }
  .shift-metrics > div:nth-child(2) { border-right: 0; }
  .shift-metrics > div:nth-child(n+3) { border-bottom: 0; }
  .broadcast-log .table-scroll { max-height: 65vh; min-height: 180px; }
  .split,.admin-grid { grid-template-columns: 1fr; }
}

/* Dark theme contrast pass: keep secondary copy readable on every surface. */
body[data-theme="dark"] {
  --bg: #111820;
  --panel: #1b242d;
  --panel2: #222e39;
  --line: #46525e;
  --muted: #b8c3cc;
  --text: #f1f5f8;
  color: var(--text);
}
body[data-theme="dark"] .content,
body[data-theme="dark"] .main {
  color: var(--text);
}
body[data-theme="dark"] .page-heading h1,
body[data-theme="dark"] .section-head h2,
body[data-theme="dark"] .admin-card h2,
body[data-theme="dark"] .admin-card h3,
body[data-theme="dark"] .card-pad h2,
body[data-theme="dark"] .card-pad h3,
body[data-theme="dark"] .dialog-head h2,
body[data-theme="dark"] .empty b,
body[data-theme="dark"] .program,
body[data-theme="dark"] .call-sign {
  color: #f1f5f8;
}
body[data-theme="dark"] .page-heading p,
body[data-theme="dark"] .page-heading .eyebrow,
body[data-theme="dark"] .login-card .eyebrow,
body[data-theme="dark"] .section-head p,
body[data-theme="dark"] .admin-card > p,
body[data-theme="dark"] .muted,
body[data-theme="dark"] .subtext,
body[data-theme="dark"] .inline-muted,
body[data-theme="dark"] .empty,
body[data-theme="dark"] .empty span,
body[data-theme="dark"] .context-label,
body[data-theme="dark"] .service-context small,
body[data-theme="dark"] .shift-metrics dt,
body[data-theme="dark"] .shift-metrics small,
body[data-theme="dark"] .filter-field,
body[data-theme="dark"] .breadcrumbs,
body[data-theme="dark"] .count,
body[data-theme="dark"] .login-foot {
  color: var(--muted);
}
body[data-theme="dark"] .section-card,
body[data-theme="dark"] .admin-card,
body[data-theme="dark"] .mini-card,
body[data-theme="dark"] .service-context,
body[data-theme="dark"] .filters,
body[data-theme="dark"] .shift-metrics {
  background: var(--panel);
  border-color: #3c4955;
}
body[data-theme="dark"] .section-head,
body[data-theme="dark"] .dialog-head,
body[data-theme="dark"] .dialog-actions,
body[data-theme="dark"] .shift-metrics > div {
  border-color: #3c4955;
}
body[data-theme="dark"] .service-primary strong,
body[data-theme="dark"] .service-context strong,
body[data-theme="dark"] .shift-metrics dd,
body[data-theme="dark"] .stat-top,
body[data-theme="dark"] .stat-top b {
  color: #f1f5f8;
}
body[data-theme="dark"] .filter-field input,
body[data-theme="dark"] .filter-field select,
body[data-theme="dark"] .filter-service,
body[data-theme="dark"] .date-chip,
body[data-theme="dark"] .select-control,
body[data-theme="dark"] .input-control,
body[data-theme="dark"] .form-grid input,
body[data-theme="dark"] .form-grid select,
body[data-theme="dark"] .form-grid textarea,
body[data-theme="dark"] .stack input,
body[data-theme="dark"] .stack select,
body[data-theme="dark"] .stack textarea,
body[data-theme="dark"] .admin-form input,
body[data-theme="dark"] .admin-form select,
body[data-theme="dark"] .admin-form textarea {
  border-color: #53616e;
  background: #111820;
  color: #f1f5f8;
}
body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: #aebbc5;
  opacity: 1;
}
body[data-theme="dark"] select option {
  background: #1b242d;
  color: #f1f5f8;
}
body[data-theme="dark"] input:focus,
body[data-theme="dark"] select:focus,
body[data-theme="dark"] textarea:focus {
  outline: 2px solid #83bded;
  outline-offset: 1px;
}
body[data-theme="dark"] .filter-service small,
body[data-theme="dark"] .shift-records small,
body[data-theme="dark"] .mono,
body[data-theme="dark"] .clock {
  color: #c2cdd6;
}
body[data-theme="dark"] .clock small {
  color: #b8c3cc;
}
body[data-theme="dark"] thead th {
  background: #27333e;
  color: #d2dce4;
  border-color: #46525e;
}
body[data-theme="dark"] tbody td,
body[data-theme="dark"] .broadcast-log tbody td {
  color: #e1e8ed;
  border-color: #35424e;
}
body[data-theme="dark"] tbody tr:nth-child(even) {
  background: #202a34;
}
body[data-theme="dark"] tbody tr:hover {
  background: #2a3743;
}
body[data-theme="dark"] .status.Open {
  border-color: #76623d;
  background: #40351f;
  color: #ffe2a0;
}
body[data-theme="dark"] .status.Resolved {
  border-color: #477456;
  background: #20392a;
  color: #b7f0c8;
}
body[data-theme="dark"] .status.Closed {
  border-color: #596570;
  background: #303a44;
  color: #e0e7ec;
}
body[data-theme="dark"] .status.Pending\ Engineering,
body[data-theme="dark"] .status.Pending\ Traffic,
body[data-theme="dark"] .status.Under\ Review,
body[data-theme="dark"] .tag.blue {
  border-color: #4e6f8b;
  background: #263d51;
  color: #c5e2ff;
}
body[data-theme="dark"] .tag:not(.blue) {
  border-color: #596570;
  background: #303a44;
  color: #e0e7ec;
}
body[data-theme="dark"] .callout {
  border-color: #75603a;
  background: #38301f;
  color: #ffe2a0;
}
body[data-theme="dark"] .btn.ghost,
body[data-theme="dark"] .utility-btn {
  border-color: #596773;
  background: #222d37;
  color: #eef3f6;
}
body[data-theme="dark"] .btn.secondary {
  border-color: #58718a;
  background: #2c4052;
  color: #f0f6fa;
}
body[data-theme="dark"] .btn.primary {
  border-color: #5c9bd0;
  background: #326f9f;
  color: #ffffff;
}
body[data-theme="dark"] .nav-item,
body[data-theme="dark"] .nav-item > .nav-mark,
body[data-theme="dark"] .nav-item kbd {
  color: #d3dde5;
}
body[data-theme="dark"] .nav-item > .nav-mark {
  border-color: #536575;
  background: #263542;
}
body[data-theme="dark"] .nav-item.active > .nav-mark {
  border-color: #d7e2ea;
  background: #d7e2ea;
  color: #243849;
}
body[data-theme="dark"] .channels-check,
body[data-theme="dark"] .channels-check label {
  border-color: #53616e;
  background: #222d37;
  color: #eef3f6;
}
body[data-theme="dark"] a {
  color: #a9d3f5;
}
body[data-theme="dark"] a.btn {
  text-decoration: none;
}
body[data-theme="dark"] .toast {
  border-color: #52745d;
  background: #20392a;
  color: #c8f3d4;
}
body[data-theme="dark"] .toast.error,
body[data-theme="dark"] .form-error {
  border-color: #87545a;
  background: #43272b;
  color: #ffd0d2;
}
body[data-theme="dark"] button:disabled {
  border-color: #53616e;
  background: #303a44;
  color: #c4ced6;
  opacity: 1;
}
body[data-theme="dark"] .login-card h1,
body[data-theme="dark"] .login-card > .muted {
  color: #f1f5f8;
}
body[data-theme="dark"] .service-context > div:not(.context-divider):not(.context-spacer):not(.service-primary) .context-label {
  color: #b8c3cc;
}
body[data-theme="dark"] .service-context > div:not(.context-divider):not(.context-spacer):not(.service-primary) strong {
  color: #f1f5f8;
}
body[data-theme="dark"] .service-context > div:not(.context-divider):not(.context-spacer):not(.service-primary) small {
  color: #b8c3cc;
}

dialog.report-picker {
  width: min(650px, calc(100vw - 24px));
  border: 1px solid #cbd5dd;
  border-radius: 4px;
  background: #ffffff;
  color: #273945;
  box-shadow: 0 18px 56px rgb(16 31 44 / 24%);
}
.report-picker form {
  padding: 18px;
}
.report-picker .dialog-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-color: #dce2e7;
}
.report-picker .dialog-head h2 {
  color: #2d4354;
  font-size: 17px;
}
.report-picker .dialog-head p {
  margin-top: 5px;
  color: #5e707e;
  line-height: 1.45;
}
.report-picker .dialog-head .eyebrow {
  color: #536b7f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.report-picker-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.report-picker-actions .muted {
  margin-left: auto;
  color: #526575;
  font-size: 10px;
}
.report-picker-scroll {
  max-height: min(52vh, 440px);
  overflow: auto;
  padding-right: 3px;
}
.report-station {
  min-width: 0;
  margin: 0 0 8px;
  padding: 8px 10px 10px;
  border: 1px solid #d4dce2;
  border-radius: 3px;
}
.report-station legend {
  padding: 0 5px;
  color: #324a5d;
  font-size: 11px;
  font-weight: 700;
}
.report-station legend label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.report-station legend small {
  color: #647583;
  font-size: 9px;
  font-weight: 400;
}
.report-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
}
.report-channel-list label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
  color: #304554;
  font-size: 10px;
  cursor: pointer;
}
.report-channel-list input,
.report-station legend input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #40566b;
}
.report-channel-list b,
.report-channel-list small {
  display: block;
}
.report-channel-list small {
  margin-top: 2px;
  color: #586b79;
  font-size: 9px;
}
.report-picker .dialog-actions {
  margin-top: 10px;
  padding-top: 11px;
  border-color: #dce2e7;
}
.report-picker-error {
  min-height: 0;
  margin: 4px 0 0;
  color: #9e3838;
  font-size: 10px;
}
body[data-theme="dark"] dialog.report-picker {
  border-color: #53616e;
  background: #1b242d;
  color: #f1f5f8;
}
body[data-theme="dark"] .report-picker .dialog-head h2,
body[data-theme="dark"] .report-station legend,
body[data-theme="dark"] .report-channel-list label {
  color: #f1f5f8;
}
body[data-theme="dark"] .report-picker .dialog-head p,
body[data-theme="dark"] .report-picker-actions .muted,
body[data-theme="dark"] .report-station legend small,
body[data-theme="dark"] .report-channel-list small {
  color: #b8c3cc;
}
body[data-theme="dark"] .report-picker .dialog-head,
body[data-theme="dark"] .report-picker .dialog-actions,
body[data-theme="dark"] .report-station {
  border-color: #46525e;
}
body[data-theme="dark"] .report-picker .dialog-head .eyebrow {
  color: #c2d2df;
}
body[data-theme="dark"] .report-picker-error {
  color: #ffc5c8;
}
@media (max-width: 560px) {
  .report-channel-list { grid-template-columns: 1fr; }
  .report-picker-actions { flex-wrap: wrap; }
}
.facility-create-channels,
.facility-channel-form .channels-check {
  display: block;
}
.facility-channel-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 5px 0 10px;
}
.facility-channel-group {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #d7dfe5;
  background: #f7f8f9;
}
.facility-group-head,
.facility-channel-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 2px;
  color: #304554;
  cursor: pointer;
}
.facility-group-head {
  padding-bottom: 6px;
  border-bottom: 1px solid #d7dfe5;
}
.facility-group-head b,
.facility-group-head small,
.facility-channel-option span,
.facility-channel-option small {
  display: block;
}
.facility-group-head small,
.facility-channel-option small {
  margin-top: 2px;
  color: #5e707e;
  font-size: 9px;
}
.facility-group-head input,
.facility-channel-option input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #40566b;
}
.facility-assignment-list {
  margin-top: 17px;
  border-top: 1px solid #d7dfe5;
  padding-top: 10px;
}
.facility-assignment-list h3 {
  margin: 0 0 8px;
}
.facility-assignment {
  margin: 7px 0;
  border: 1px solid #d4dce2;
  background: #ffffff;
}
.facility-assignment summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: #304554;
  cursor: pointer;
}
.facility-assignment summary b,
.facility-assignment summary small {
  display: block;
}
.facility-assignment summary small {
  margin-top: 3px;
  color: #5e707e;
  font-size: 9px;
}
.facility-channel-form {
  padding: 0 10px 10px;
}
.facility-channel-form .channels-check {
  margin-bottom: 8px;
}
body[data-theme="dark"] .facility-channel-group,
body[data-theme="dark"] .facility-assignment {
  border-color: #46525e;
  background: #1b242d;
}
body[data-theme="dark"] .facility-group-head,
body[data-theme="dark"] .facility-channel-option,
body[data-theme="dark"] .facility-assignment summary {
  color: #f1f5f8;
}
body[data-theme="dark"] .facility-group-head small,
body[data-theme="dark"] .facility-channel-option small,
body[data-theme="dark"] .facility-assignment summary small {
  color: #b8c3cc;
}
body[data-theme="dark"] .facility-group-head,
body[data-theme="dark"] .facility-assignment-list {
  border-color: #46525e;
}
@media (max-width: 700px) {
  .facility-channel-options { grid-template-columns: 1fr; }
}
