/*
 * Light-only on purpose: this dashboard mirrors the OneSignal console, which
 * has no dark mode. The Android notification preview is the only dark surface.
 */
:root {
  --page: #f7f8fa;
  --surface: #ffffff;
  --sidebar: #f4f4f6;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-muted: #475467;
  --placeholder: #98a2b3;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --online: #12b76a;
  --offline: #d0d5dd;
  --danger: #b42318;
  --warn: #b54708;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --sidebar-width: 216px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }

/* ---------------------------------------------------------------- shell */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex: none;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width .15s ease;
}
.sidebar--collapsed { width: 64px; }
.sidebar--collapsed .brand__name,
.sidebar--collapsed .appswitch__text,
.sidebar--collapsed .appswitch__chev,
.sidebar--collapsed .nav__item span { display: none; }
.sidebar--collapsed .nav__item { justify-content: center; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 6px 16px;
  color: #12172b;
}
.brand__mark {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: #12172b;
  color: #fff;
  display: grid;
  place-items: center;
}
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }

.appswitch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 6px;
  margin-bottom: 10px;
  cursor: default;
}
.appswitch__text { min-width: 0; flex: 1; }
.appswitch__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appswitch__sub { display: block; font-size: 11.5px; color: #9a5b2b; }
.appswitch__chev { width: 14px; height: 14px; color: var(--text-muted); flex: none; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
}
.nav__item svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.nav__item:hover { background: rgba(16, 24, 40, .04); }
.nav__item--on { background: #dedcfb; color: var(--accent); font-weight: 500; }
.nav__item--on svg { color: var(--accent); }

.sidebar__collapse {
  margin-top: auto;
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.sidebar__collapse:hover { background: rgba(16, 24, 40, .06); color: var(--text); }
.sidebar__collapse svg { width: 18px; height: 18px; display: block; }

.main { flex: 1; min-width: 0; padding: 22px 28px 48px; }
.main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.main__head h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

.status {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  white-space: nowrap;
}
.status--ok { color: #027a48; border-color: #a6f4c5; background: #ecfdf3; }
.status--bad { color: var(--warn); border-color: #fedf89; background: #fffaeb; }
.status--muted { color: var(--text-muted); }

.view { display: flex; flex-direction: column; }

/* ----------------------------------------------------------------- tabs */

.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.tabs__item {
  padding: 0 0 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs__item:hover { color: var(--text); }
.tabs__item--on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }

.ctrl {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ctrl:hover { background: var(--accent-soft); border-color: #c7d7fe; }
.ctrl--static { color: var(--text-muted); cursor: default; }
.ctrl--static:hover { background: var(--surface); border-color: var(--border-strong); }
.ctrl__chev { font-size: 9px; opacity: .8; }

.picker { position: relative; }
.picker__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
  padding: 4px;
  min-width: 128px;
}
.picker__option {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  border-radius: 5px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text);
}
.picker__option:hover { background: var(--accent-soft); }
.picker__option--on { color: var(--accent); font-weight: 600; }

/* ---------------------------------------------------------------- cards */

.pagebody { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 0;
}
.card__title { display: flex; align-items: center; gap: 6px; }
.card__title h2 { font-size: 14px; font-weight: 700; }
.card__help {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--placeholder);
  font-size: 10px;
  display: grid;
  place-items: center;
  cursor: help;
}
.card__controls { display: flex; gap: 8px; }
.card__body { padding: 14px 20px 18px; }
.card__foot {
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
}
.viewdetails {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.viewdetails:hover { text-decoration: underline; }
.viewdetails__chev { font-size: 14px; line-height: 1; }

.subhead { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

/* ----------------------------------------------------------- hero + stats */

.hero { margin-bottom: 6px; }
.hero__line { display: flex; align-items: baseline; gap: 10px; }
.hero__value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.hero__delta { font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; }
.hero__delta--up { color: #027a48; }
.hero__delta--down { color: var(--danger); }
.hero__arrow { font-size: 12px; }
.hero__caption { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.stat__label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.stat__label--help { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.stat__value { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.stat__sub { font-size: 11.5px; color: var(--placeholder); margin-top: 2px; }

/* --------------------------------------------------------------- charts */

.chartwrap { margin-top: 10px; position: relative; }
.chartwrap__plot { position: relative; width: 100%; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; }

.chart__grid { stroke: #f0f1f4; stroke-width: 1; }
.chart__axis { stroke: var(--border-strong); stroke-width: 1; }
.chart__tick { fill: var(--placeholder); font-size: 10.5px; text-anchor: end; }
.chart__tick--x { text-anchor: middle; }
.chart__bar { transition: opacity .1s; }
.chart__area { opacity: .16; }
.chart__crosshair { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__hit { cursor: crosshair; }

.chart__tooltip {
  position: absolute;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
  padding: 8px 10px;
  font-size: 12px;
  pointer-events: none;
  min-width: 122px;
}
.chart__tooltip-date { font-weight: 600; margin-bottom: 4px; }
.chart__tooltip-row { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.chart__tooltip-row strong { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.chart__tooltip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.chart__empty {
  color: var(--placeholder);
  font-size: 13px;
  text-align: center;
  padding: 44px 0;
  margin: 0;
}

.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}
.legend__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend__item--off { text-decoration: line-through; opacity: .5; }

/* ------------------------------------------------------------- datatable */

.datatable { width: 100%; border-collapse: collapse; font-size: 13px; }
.datatable th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--placeholder);
  font-weight: 600;
  padding: 0 12px 8px 0;
}
.datatable th.num, .datatable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.datatable td {
  padding: 9px 12px 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.datatable tbody tr:first-child td { border-top: 1px solid var(--border); }
.datatable__key { color: var(--text); font-weight: 500; width: 190px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--offline); }
.dot--online { background: var(--online); box-shadow: 0 0 0 3px #d1fadf; }
.device-name { font-weight: 500; color: var(--text); }
.device-id { font-size: 11px; color: var(--placeholder); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.btn-tiny {
  font: inherit;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.btn-tiny:hover { color: var(--danger); border-color: #fda29b; background: #fef3f2; }

/* -------------------------------------------------------------- banners */

.banner { border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; font-size: 12.5px; }
.banner strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 13px; }
.banner p { margin: 0; }
.banner--info { background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; }
.banner--warn { background: #fffaeb; border: 1px solid #fedf89; color: var(--warn); }

.code {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-x: auto;
  margin: 0 0 12px;
  color: var(--text);
}

.loading { color: var(--placeholder); font-size: 13px; padding: 32px 0; }

/* ------------------------------------------------------ composer (Messages) */

.radio-list { display: flex; flex-direction: column; gap: 12px; }
.radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.radio input {
  appearance: none;
  width: 16px; height: 16px;
  flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.radio input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; transform: scale(0); background: var(--surface); }
.radio input:checked { border-color: var(--accent); background: var(--accent); }
.radio input:checked::before { transform: scale(1); }

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field--indent { margin-left: 26px; max-width: 420px; }
.field:first-child { margin-top: 0; }

label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.req { color: var(--danger); }
.hint { font-weight: 400; color: var(--placeholder); }

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 34px;
}

.field__error { color: var(--danger); font-size: 12px; margin: 0; min-height: 16px; }

.note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }

.preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone {
  width: 100%;
  max-width: 300px;
  border: 8px solid #e4e7ec;
  border-radius: 26px;
  background: #e4e7ec;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
}
.phone__screen {
  background: linear-gradient(160deg, #2b3550 0%, #1d2438 100%);
  border-radius: 18px;
  padding: 10px 10px 16px;
  min-height: 180px;
}
.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px 12px;
}
.phone__icons { display: inline-flex; gap: 5px; align-items: center; }

.notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f4f4f6;
  border-radius: 14px;
  padding: 11px 12px;
  color: #1a1c1e;
}
.notif__icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1e3a8a;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.notif__content { min-width: 0; flex: 1; }
.notif__meta { font-size: 11px; color: #5f6368; display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.notif__dot { opacity: .7; }
.notif__title { font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.notif__body { font-size: 12.5px; color: #3c4043; line-height: 1.4; overflow-wrap: anywhere; }
.notif__data {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: #5f6368;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notif__chevron { flex: none; width: 16px; height: 16px; color: #5f6368; margin-top: 2px; }

.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--surface);
}
.platform__badge { background: var(--page); border-radius: 4px; padding: 1px 6px; font-size: 11px; color: var(--text); }

.actionbar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:disabled { opacity: .55; cursor: default; }
.btn--ghost { background: var(--surface); color: var(--text-muted); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--page); color: var(--text); }

.result { font-size: 13px; color: var(--text-muted); }
.result--ok { color: #027a48; }
.result--bad { color: var(--danger); }

.modal {
  border: none;
  border-radius: 12px;
  padding: 24px;
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 20px 40px rgba(16, 24, 40, .18);
  color: var(--text);
}
.modal::backdrop { background: rgba(16, 24, 40, .45); }
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal__target { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.modal__preview { margin-bottom: 20px; }
.modal__preview .phone { max-width: none; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .sidebar { width: 64px; }
  .sidebar .brand__name, .sidebar .appswitch__text, .sidebar .appswitch__chev, .sidebar .nav__item span { display: none; }
  .main { padding: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* App context and consistent vertical spacing across admin pages. */
.appswitch { position: relative; }
.view > .card + .card { margin-top: 20px; }
.credential-form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 20px; }
.credential-form .field { width: 100%; }
.credential-form .result { margin: 0; }
.credential-form .result:empty { display: none; }
.field + .radio-list { margin-top: 20px; }

/* Account and project administration */
[hidden] { display: none !important; }
.assignment-option { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.assignment-option input, .field input[type=checkbox] { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }

/* NLRADIO sign-in */
.login-page {
  --accent: #126782;
  --accent-hover: #0b4d64;
  --accent-soft: #e6f3f7;
  --text: #143341;
  --text-muted: #526b77;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse at 8% 5%, #cde6ed 0, transparent 48%),
    radial-gradient(ellipse at 95% 95%, #d9e8ef 0, transparent 45%),
    #f2f7f9;
}
.login-layout { width: min(100%, 460px); }
.login-card {
  position: relative;
  overflow: hidden;
  padding: 44px 42px 30px;
  border: 1px solid #ffffff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px -24px #173f5833, 0 4px 16px #173f5808;
}
.login-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0a3547, #177899);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-logo { display: block; width: 260px; max-width: 100%; height: auto; }
.login-product { font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: #527280; }
.login-intro { margin: 34px 0 28px; text-align: center; }
.login-intro h1 { font-size: 28px; line-height: 1.25; font-weight: 650; letter-spacing: -.7px; }
.login-intro p { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }
.login-form { display: grid; gap: 20px; }
.login-form .field { margin: 0; gap: 8px; }
.login-form label { color: #284654; font-size: 13px; font-weight: 600; }
.login-form input { min-height: 50px; padding: 12px 14px; border-color: #d5e1e7; border-radius: 10px; background: #fbfdfe; font-size: 16px; }
.login-form input::placeholder { color: #778b96; font-size: 14px; }
.login-form input:focus { background: #fff; border-color: var(--accent); }
.login-submit { justify-content: center; width: 100%; min-height: 50px; margin-top: 8px; border-radius: 10px; font-size: 15px; gap: 12px; box-shadow: 0 5px 12px #12678220; transition: background .15s, box-shadow .15s; }
.login-submit:hover { box-shadow: 0 6px 16px #12678230; }
.login-result { margin: -6px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.login-result:empty { display: none; }
.login-help { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #edf2f5; color: #657c88; text-align: center; font-size: 12px; }
.login-footer { margin-top: 24px; text-align: center; color: #5b7683; font-size: 12px; letter-spacing: .02em; }
.login-footer span { margin: 0 9px; color: #8ba2ad; }
@media (max-width: 480px) {
  .login-page { padding: 28px 18px; }
  .login-card { padding: 36px 24px 26px; border-radius: 20px; }
  .login-logo { width: 232px; }
  .login-intro { margin-top: 30px; }
  .login-intro h1 { font-size: 26px; }
}

/* Administration navigation and page layout */
.nav__admin { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav__section-label { padding: 0 10px 7px; color: var(--text-muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.sidebar--collapsed .nav__section-label { display: none; }
.main__account { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.account-name { font-size: 13px; font-weight: 600; color: var(--text-muted); padding-left: 12px; border-left: 1px solid var(--border); }
.admin-intro { margin: -4px 0 22px; color: var(--text-muted); font-size: 13px; }
.admin-card .card__body > p:first-child { margin: 0 0 22px; max-width: 760px; color: var(--text-muted); line-height: 1.65; }
.admin-card form { max-width: 760px; }
.admin-card .field { margin-top: 18px; }
.admin-card .field:first-child { margin-top: 0; }
.admin-card .admin-checkbox { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
.admin-card .admin-checkbox input { margin: 0; }
.admin-card form > .btn { margin-top: 20px; }
.admin-card form > fieldset + .btn { margin-top: 0; }
@media (max-width: 720px) {
  .nav__section-label { display: none; }
  .main__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .main__account { justify-content: flex-start; gap: 10px; }
  .account-name { padding-left: 0; border-left: 0; }
}

/* Project switcher */
.appswitch { display: block; padding: 0; border: 0; margin: 2px 0 20px; }
.project-switch { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--text); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.project-switch:hover, .project-switch[aria-expanded=true] { border-color: #b8bed9; background: #fafaff; }
.project-switch:disabled { cursor: default; opacity: .6; }
.project-switch__icon { width: 20px; height: 20px; flex: none; color: #126782; }
.project-switch__label { display: block; margin-bottom: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.project-options { position: absolute; top: calc(100% + 8px); left: 0; width: max(100%, 232px); max-width: calc(100vw - 32px); max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: 0 12px 32px #10182824; z-index: 100; }
.project-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 6px; background: white; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.project-option:hover, .project-option:focus-visible { background: #f0f5f8; outline: none; box-shadow: inset 0 0 0 2px #126782; }
.project-option[aria-selected=true] { color: #0e5d77; background: #eaf4f7; font-weight: 600; }
.project-option__name { overflow-wrap: anywhere; }
.project-option__check { flex: none; width: 16px; }
.sidebar--collapsed .project-switch { justify-content: center; padding: 8px; min-height: 42px; }
@media (max-width: 720px) {
  .project-switch { justify-content: center; padding: 8px; min-height: 42px; }
}
/* Keep the project menu above dashboard controls. */
.sidebar { z-index: 50; }

/* Durable broadcast progress and late delivery confirmations. */
.broadcast-progress { margin-bottom: 20px; }
.broadcast-progress .card__head h2 { font-size: 16px; }
.broadcast-job { overflow-wrap: anywhere; color: var(--text-muted); font-size: 12px; }
.broadcast-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 12px; margin: 18px 0; }
.broadcast-metric { padding: 12px; background: var(--bg, #f7f8fa); border-radius: 8px; }
.broadcast-metric strong { display: block; font-size: 25px; line-height: 1.3; }
.broadcast-metric span { display: block; font-size: 12px; color: var(--text-muted); }
.broadcast-history { overflow-x: auto; margin: 12px 0; }
.broadcast-progress summary { cursor: pointer; margin: 12px 0; }
.broadcast-progress small { display: block; margin-top: 12px; color: var(--text-muted); }

/* RADIONL private reply marker; notification titles retain the DJ name. */
.dj-reply-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7efff;
  color: #17458c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

.queued-details { overflow-wrap: anywhere; margin: 16px 0; }
.queued-details p { margin: 8px 0; }
