:root {
  --bg: #f5f8fc;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --soft: rgba(42, 171, 238, 0.1);
}

.dark {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: rgba(42, 171, 238, 0.16);
}

body {
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 6.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(42, 171, 238, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(42, 171, 238, 0.04), transparent 42%);
}

[data-authenticated="false"] .app-shell {
  padding-bottom: 2rem;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.brand-mark {
  min-width: 0;
}

.brand-mark p {
  white-space: nowrap;
}

.logout-short {
  display: none;
}

.bottom-nav {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(28rem, calc(100vw - 2rem));
  margin-inline: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.22);
  padding: 0.4rem;
  backdrop-filter: blur(18px);
}

.items-table-wrap {
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
}

.section-tab {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  transition: background 150ms ease, color 150ms ease;
}

.section-tab:hover {
  color: #168ac2;
}

.section-tab.active {
  background: var(--soft);
  color: #168ac2;
}

.bottom-nav-icon {
  height: 1.2rem;
  width: 1.2rem;
  flex: none;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: grid;
  gap: 1.5rem;
}

.qr-stage,
.sessions-panel,
.items-panel,
.admin-panel,
.warmup-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 0.75rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.qr-stage {
  display: flex;
  flex-direction: column;
  min-height: 34rem;
  padding: 1.25rem;
}

.link-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.link-method-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.link-method-tab svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.link-method-tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--soft) 70%, transparent);
}

.link-method-tab.active {
  color: #0c4a6e;
  background: color-mix(in srgb, #38bdf8 18%, var(--panel));
  border-color: color-mix(in srgb, #0ea5e9 35%, var(--border));
}

html.dark .link-method-tab.active {
  color: #e0f2fe;
  background: color-mix(in srgb, #0284c7 28%, var(--panel));
  border-color: color-mix(in srgb, #38bdf8 40%, var(--border));
}

.link-method-panel {
  display: none;
}

.link-method-panel.active {
  display: block;
}

.phone-hero {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--soft) 80%, transparent);
  color: #168ac2;
}

.phone-hero svg {
  width: 2.4rem;
  height: 2.4rem;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(4.75rem, 0.55fr) minmax(0, 1.7fr);
  gap: 0.5rem;
  align-items: stretch;
}

.country-code-field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.country-code-select {
  width: 100%;
  padding-left: 0.7rem !important;
  padding-right: 1.5rem !important;
  text-align: center;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.phone-national-input {
  min-width: 0;
}

@media (max-width: 420px) {
  .phone-input-row {
    grid-template-columns: 1fr;
  }
}


.sessions-panel,
.items-panel,
.admin-panel,
.warmup-panel {
  padding: 1.25rem;
}

.items-block {
  display: grid;
  gap: 0.45rem;
}

.items-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
}

.items-overview-copy {
  min-width: 0;
}

.items-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.items-overview h2 {
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.15;
}

.valid-count-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 0.65rem;
  min-width: 10.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(20, 184, 166, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(42, 171, 238, 0.08)),
    color-mix(in srgb, var(--panel-strong) 82%, transparent);
  padding: 0.65rem 0.8rem;
}

.valid-count-number {
  grid-row: span 2;
  color: #0f766e;
  font-size: 2.1rem;
  font-weight: 950;
  line-height: 0.95;
}

.dark .valid-count-number {
  color: #5eead4;
}

.valid-count-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
}

.valid-count-state {
  justify-self: start;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  padding: 0.12rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.dark .valid-count-state {
  color: #86efac;
}

.items-section-title {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
}

.invalid-items-list {
  display: grid;
  gap: 0.55rem;
}

.invalid-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.07);
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-size: 0.82rem;
}

.create-user-collapse {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.85rem;
}

.create-user-collapse summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-users-list {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.85rem;
  color: var(--text);
  font-size: 0.84rem;
}

.step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.step-pill {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.65rem 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.step-pill.active {
  border-color: rgba(42, 171, 238, 0.58);
  background: var(--soft);
  color: #168ac2;
}

.auth-panel {
  flex: 1;
}

.qr-center {
  display: flex;
  width: 100%;
  min-height: 28rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding-block: 2rem 1.5rem;
  text-align: center;
}

.form-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.qr-frame {
  display: flex;
  height: 18rem;
  width: 18rem;
  min-height: 18rem;
  min-width: 18rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-inline: auto;
  padding: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.qr-frame img:not(.hidden) {
  display: block;
  height: 16rem;
  width: 16rem;
  object-fit: contain;
}

.qr-frame.empty {
  background:
    linear-gradient(90deg, rgba(42, 171, 238, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(42, 171, 238, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
}

.qr-empty {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
}

.qr-empty-mark {
  display: grid;
  height: 5rem;
  width: 5rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #eff9ff;
  color: #168ac2;
  font-weight: 900;
}

.qr-empty-mark svg {
  height: 2.75rem;
  width: 2.75rem;
}

.field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  padding: 0.78rem 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field::placeholder {
  color: var(--muted);
}

.field:focus {
  border-color: #2aabee;
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.18);
}

.primary-button {
  display: inline-flex;
  min-height: 2.8rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2aabee, #168ac2);
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.18);
  transition: transform 150ms ease, filter 150ms ease;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.2) brightness(0.78);
}

.icon-button {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 900;
}

.icon-button:hover {
  border-color: rgba(42, 171, 238, 0.5);
  color: #168ac2;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.icon-button.danger:hover {
  border-color: rgba(251, 113, 133, 0.58);
  color: #be123c;
}

.icon-button svg,
.button-icon {
  height: 1.1rem;
  width: 1.1rem;
  flex: none;
}

.spinner {
  height: 1rem;
  width: 1rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  animation: spin 700ms linear infinite;
}

.timer-ring {
  display: inline-flex;
  height: 3.25rem;
  width: 3.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(42, 171, 238, 0.45);
  background: var(--soft);
  color: #168ac2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  font-weight: 900;
}

.session-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.7rem 0.8rem;
  min-height: 0;
}

.session-title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.2;
}

.session-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.session-phone {
  flex: none;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.session-login-line {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.15rem;
}

.status-badge {
  flex: none;
  margin-top: 0.05rem;
  border-radius: 9999px;
  background: rgba(34, 158, 217, 0.16);
  padding: 0.25rem 0.6rem;
  color: #168ac2;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-list,
.notice {
  border-radius: 0.5rem;
  border: 1px dashed var(--border);
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-list.compact {
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-size: 0.82rem;
}

.notice.error {
  border-style: solid;
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(251, 113, 133, 0.08);
  color: #be123c;
}

.pnotify-stack {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 200;
  display: grid;
  width: min(24rem, calc(100vw - 2rem));
  gap: 0.75rem;
  pointer-events: none;
}

.pnotify-stack .pnotify {
  pointer-events: auto;
}

.pnotify {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
  padding: 0.85rem 1rem;
  color: var(--text);
  backdrop-filter: blur(16px);
}

.pnotify.success {
  border-color: rgba(52, 211, 153, 0.38);
}

.pnotify.warning {
  border-color: rgba(251, 191, 36, 0.38);
}

.pnotify.error {
  border-color: rgba(251, 113, 133, 0.38);
}

.pnotify-title {
  font-size: 0.85rem;
  font-weight: 900;
}

.pnotify-text {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35rem;
}

.admin-list,
.warmup-list {
  display: grid;
  gap: 0.7rem;
}

.warmup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.warmup-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.warmup-summary {
  margin-bottom: 0.9rem;
}

.warmup-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 0.75rem;
}

.warmup-overview-main,
.warmup-metric,
.warmup-day,
.warmup-account {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
}

.warmup-overview-main {
  padding: 1rem;
}

.warmup-eyebrow,
.warmup-step-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.warmup-overview-main strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 900;
}

.warmup-overview-main p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.warmup-overview-bar,
.warmup-account-bar,
.warmup-day-bar {
  display: block;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.25);
}

.warmup-overview-bar {
  height: 0.55rem;
  margin-top: 0.85rem;
}

.warmup-overview-bar i,
.warmup-account-bar i,
.warmup-day-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #168ac2;
}

.warmup-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.warmup-metric {
  min-width: 0;
  padding: 0.75rem;
}

.warmup-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.warmup-metric strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
}

.warmup-day-grid {
  display: grid;
  grid-auto-columns: minmax(10.75rem, 1fr);
  grid-auto-flow: column;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.9rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.warmup-day-grid::-webkit-scrollbar {
  display: none;
}

.warmup-day {
  min-width: 10.75rem;
  padding: 0.7rem;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 150ms ease, background 150ms ease;
}

.warmup-day:hover,
.warmup-day.active {
  border-color: rgba(42, 171, 238, 0.55);
  background: var(--soft);
}

.warmup-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.warmup-day-title,
.warmup-day-count,
.warmup-day-foot,
.warmup-day-alert {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.warmup-day-count {
  border-radius: 9999px;
  background: var(--panel-strong);
  padding: 0.1rem 0.45rem;
}

.warmup-day-phase {
  display: block;
  min-height: 1.95rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 0.95rem;
}

.warmup-day-foot,
.warmup-day-alert {
  color: var(--muted);
  font-size: 0.7rem;
}

.warmup-day-alert {
  color: #be123c;
}

.warmup-day-bar {
  height: 0.35rem;
  margin: 0.5rem 0;
}

.warmup-toolbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(8rem, 0.5fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.warmup-search,
.warmup-filter {
  min-height: 2.55rem;
  padding-block: 0.55rem;
  font-size: 0.82rem;
}

.warmup-account {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
}

.warmup-account-top,
.warmup-account-id,
.warmup-progress-head,
.warmup-current-step,
.warmup-progress-facts,
.warmup-pagination {
  display: flex;
  gap: 0.75rem;
}

.warmup-account-top,
.warmup-progress-head,
.warmup-current-step,
.warmup-pagination {
  align-items: center;
  justify-content: space-between;
}

.warmup-account-id {
  min-width: 0;
  align-items: center;
}

.warmup-avatar {
  display: grid;
  height: 2.55rem;
  width: 2.55rem;
  flex: none;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--soft);
  color: #168ac2;
  font-size: 1rem;
  font-weight: 900;
}

.warmup-status-stack {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.status-badge.muted {
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
}

.warmup-progress-panel {
  display: grid;
  gap: 0.55rem;
}

.warmup-progress-head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.warmup-progress-head strong {
  color: var(--text);
}

.warmup-account-bar {
  height: 0.55rem;
}

.warmup-step-rail {
  display: grid;
  grid-template-columns: repeat(15, minmax(1.35rem, 1fr));
  gap: 0.28rem;
}

.warmup-step-dot {
  display: grid;
  min-height: 1.45rem;
  place-items: center;
  border-radius: 0.35rem;
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.warmup-step-dot.complete {
  background: rgba(52, 211, 153, 0.18);
  color: #047857;
}

.warmup-step-dot.current {
  background: rgba(34, 158, 217, 0.2);
  color: #168ac2;
  box-shadow: inset 0 0 0 1px rgba(34, 158, 217, 0.35);
}

.warmup-current-step {
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--panel-strong) 68%, transparent);
  padding: 0.75rem;
}

.warmup-current-step p {
  margin-top: 0.15rem;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.25rem;
}

.warmup-step-meta {
  flex: none;
  text-align: right;
}

.warmup-step-meta span,
.warmup-step-meta time {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.warmup-progress-facts {
  flex-wrap: wrap;
}

.warmup-progress-facts span {
  flex: 1;
  min-width: 7rem;
  border-radius: 0.45rem;
  background: rgba(148, 163, 184, 0.1);
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.warmup-progress-facts strong {
  color: var(--text);
}

.warmup-pagination {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.warmup-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-row,
.warmup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.8rem;
}

.admin-row-main,
.warmup-card-main {
  min-width: 0;
}

.warmup-guidance {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3rem;
}

.admin-actions,
.warmup-actions {
  display: flex;
  max-width: 26rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mini-button {
  min-height: 1.8rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  padding: 0.25rem 0.55rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

.mini-button:hover {
  border-color: rgba(42, 171, 238, 0.5);
  color: #168ac2;
}

.mini-button.danger:hover {
  border-color: rgba(251, 113, 133, 0.58);
  color: #be123c;
}

.mini-button.primary-mini {
  background: linear-gradient(135deg, #2aabee, #168ac2);
  color: white;
  border-color: transparent;
}

.mini-button.primary-mini:hover {
  filter: brightness(1.08);
}

.admin-detail,
.warmup-detail {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  padding: 0.85rem;
}

.admin-detail-header,
.warmup-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-detail-header h3,
.warmup-detail-header h3 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.admin-detail pre,
.warmup-detail pre {
  margin-top: 0.75rem;
  max-height: 22rem;
  overflow: auto;
  border-radius: 0.45rem;
  background: rgba(2, 6, 23, 0.06);
  padding: 0.75rem;
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.25rem;
  white-space: pre-wrap;
}

.warmup-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.warmup-detail-stat {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.7rem;
}

.warmup-detail-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.warmup-detail-stat strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  text-transform: capitalize;
}

.warmup-detail-progress {
  margin-top: 0.85rem;
}

.dark .admin-detail pre,
.dark .warmup-detail pre {
  background: rgba(2, 6, 23, 0.5);
}

.audit-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.audit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.audit-row span {
  display: block;
  color: var(--text);
  font-weight: 900;
  text-transform: capitalize;
}

.audit-row p {
  margin-top: 0.15rem;
  color: var(--muted);
  line-height: 1.1rem;
}

.audit-row time {
  flex: none;
  text-align: right;
}

.upi-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.warmup-page-actions .field {
  width: auto;
  min-width: 68px;
  padding-block: 0.45rem;
}

.warmup-page-label {
  min-width: 6.5rem;
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.upi-modal.hidden {
  display: none;
}

.upi-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
}

.upi-dialog {
  position: relative;
  width: min(26rem, 100%);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.36);
  overflow: hidden;
}

.upi-dialog-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.upi-mark {
  display: grid;
  height: 2.65rem;
  width: 2.65rem;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--soft);
  color: #168ac2;
}

.upi-mark svg {
  height: 1.35rem;
  width: 1.35rem;
}

.upi-kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upi-dialog h2 {
  margin-top: 0.08rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1.2;
}

.upi-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

/* Coins Balance Modal */
.coins-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.coins-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(10px);
}

.coins-dialog {
  position: relative;
  width: min(28.5rem, 95vw);
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  overflow: hidden;
  animation: coinsModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes coinsModalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.coins-dialog-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
}

.coins-mark {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
  flex-shrink: 0;
}

.coins-mark svg {
  height: 1.25rem;
  width: 1.25rem;
}

.coins-kicker {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coins-hero-card {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coins-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.coins-hero-val {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.coins-stat-card {
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.coins-stat-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.stat-dot.green { background-color: #10b981; }
.stat-dot.yellow { background-color: #f59e0b; }
.stat-dot.red { background-color: #f43f5e; }

.stat-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.coins-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.coins-stat-sub {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.15;
  white-space: nowrap;
}

.coins-modal-banner.banner-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text);
}

.coins-modal-banner.banner-warning {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--text);
}

.upi-form .field {
  min-height: 2.85rem;
}

.upi-status {
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
  color: #be123c;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.25rem;
}

.upi-status.success {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.1);
  color: #047857;
}

.dark .upi-status.success {
  color: #86efac;
}

.upi-actions {
  display: grid;
  grid-template-columns: minmax(6rem, 0.45fr) minmax(0, 1fr);
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.upi-actions .mini-button,
.upi-actions .primary-button {
  min-height: 2.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Day-wise Warm-up Dashboard polish */
#warmup-day-grid > div {
  transition: transform .1s ease;
}
#warmup-day-grid > div:hover {
  transform: translateY(-1px);
}
#warmup-summary-cards > div {
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
#modal-timeline > div > div:first-child {
  min-height: 6px;
}

@media (max-width: 720px) {
  .app-shell {
    padding-bottom: 7.75rem;
  }

  .app-header {
    align-items: center !important;
    flex-direction: row;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    gap: 0.55rem !important;
  }

  .brand-mark p {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.12em !important;
  }

  .header-actions {
    flex: none;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .header-actions .mini-button {
    min-height: 2.15rem;
    padding-inline: 0.5rem;
    font-size: 0.72rem;
  }

  .header-actions .icon-button {
    height: 2.15rem;
    width: 2.15rem;
  }

  .logout-full {
    display: none;
  }

  .logout-short {
    display: inline;
  }

  #coins-btn {
    max-width: 4.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav {
    width: calc(100vw - 1rem);
    left: max(0.5rem, env(safe-area-inset-left));
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr));
    gap: 0.25rem;
    padding: 0.3rem;
  }

  .section-tab {
    min-height: 3rem;
    font-size: 0.68rem;
  }

  .qr-stage {
    min-height: auto;
    padding: 0.9rem;
  }

  .step-strip {
    grid-template-columns: 1fr;
  }

  .qr-center {
    min-height: auto;
    padding-block: 1.4rem 0.8rem;
  }

  .qr-frame {
    height: min(17rem, calc(100vw - 5rem));
    width: min(17rem, calc(100vw - 5rem));
    min-height: 0;
    min-width: 0;
  }

  .qr-frame img:not(.hidden) {
    height: 100%;
    width: 100%;
  }

  .session-row {
    flex-direction: column;
  }

  .session-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .sessions-panel,
  .items-panel,
  .admin-panel,
  .warmup-panel {
    padding: 0.9rem;
  }

  .items-overview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .items-overview-copy {
    grid-column: 1 / -1;
  }

  .items-overview h2 {
    font-size: 1.08rem;
  }

  .valid-count-card {
    min-width: 0;
    width: 100%;
    padding: 0.6rem 0.7rem;
  }

  .valid-count-number {
    font-size: 1.85rem;
  }

  .invalid-item-row {
    align-items: stretch;
    flex-direction: column;
  }

  .invalid-item-row .mini-button {
    width: 100%;
    min-height: 2.25rem;
  }

  .items-table-wrap {
    overflow: visible;
    border: 0 !important;
    background: transparent;
  }

  .items-table,
  .items-table thead,
  .items-table tbody,
  .items-table tr,
  .items-table td {
    display: block;
    width: 100%;
  }

  .items-table thead {
    display: none;
  }

  .items-table tbody {
    display: grid;
    gap: 0.65rem;
  }

  .items-table tr {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: rgba(148, 163, 184, 0.08);
    padding: 0.55rem 0.7rem;
  }

  .items-table td {
    display: grid;
    grid-template-columns: minmax(5rem, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    border: 0 !important;
    padding: 0.35rem 0 !important;
    word-break: break-word;
  }

  .items-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .items-table .items-empty-row td {
    display: block;
    text-align: center;
  }

  .items-table .items-empty-row td::before {
    content: none;
  }

  .warmup-head,
  .warmup-overview,
  .warmup-toolbar {
    grid-template-columns: 1fr;
  }

  .warmup-head,
  .warmup-account-top,
  .warmup-current-step,
  .warmup-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .warmup-head-actions,
  .warmup-status-stack,
  .warmup-actions,
  .warmup-page-actions {
    justify-content: flex-start;
  }

  .warmup-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warmup-day-grid {
    margin-inline: -0.1rem;
  }

  .warmup-step-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .warmup-step-dot {
    min-height: 1.75rem;
  }

  .warmup-step-meta {
    text-align: left;
  }

  .warmup-detail-grid {
    grid-template-columns: 1fr;
  }

  .audit-row {
    flex-direction: column;
  }

  .audit-row time {
    text-align: left;
  }

  .upi-modal {
    align-items: end;
    padding: 0.75rem;
  }

  .upi-dialog {
    width: 100%;
  }

  .upi-dialog-head {
    padding: 0.85rem;
  }

  .upi-form {
    padding: 0.85rem;
  }

  .upi-actions {
    grid-template-columns: 1fr;
  }

  .warmup-actions .mini-button {
    flex: 1 1 calc(50% - 0.45rem);
    min-height: 2.25rem;
  }

  .admin-row,
  .warmup-card {
    grid-template-columns: 1fr;
  }

  .admin-actions,
  .warmup-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Warm-up command center + refined shared controls
   ========================================================================== */
button,
summary,
.mini-button,
.primary-button,
.icon-button {
  -webkit-tap-highlight-color: transparent;
}

.mini-button,
.primary-button,
.icon-button {
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.mini-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1;
}

.mini-button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.mini-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: var(--app-border-strong);
  background: var(--app-surface-raised);
  color: var(--app-text);
}

.primary-button,
.mini-button.primary-mini,
.primary-mini {
  background: var(--app-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(35, 36, 112, 0.22);
}

.primary-button:hover:not(:disabled),
.mini-button.primary-mini:hover:not(:disabled),
.primary-mini:hover:not(:disabled) {
  border-color: transparent;
  background: var(--app-accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 92, 226, 0.2);
  transform: translateY(-1px);
}

.mini-button:active:not(:disabled),
.primary-button:active:not(:disabled),
.icon-button:active:not(:disabled) {
  transform: translateY(0);
}

.mini-button:focus-visible,
.primary-button:focus-visible,
.icon-button:focus-visible,
.field:focus-visible,
.warmup-search-control:focus-within,
.warmup-day-segment:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--app-accent-soft);
}

.mini-button.is-disabled,
.mini-button.primary-mini.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.mini-button.is-disabled:hover,
.mini-button.primary-mini.is-disabled:hover {
  transform: none;
  filter: grayscale(0.25);
}

.mini-button:disabled,
.primary-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.warmup-dashboard {
  gap: 18px !important;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.warmup-page-head,
.warmup-section-head,
.warmup-head-actions,
.warmup-summary-primary > div:first-child,
.warmup-account-progress > div,
.warmup-row-actions {
  display: flex;
  align-items: center;
}

.warmup-page-head {
  justify-content: space-between;
  gap: 24px;
}

.warmup-page-copy {
  min-width: 0;
}

.warmup-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--app-accent);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.warmup-page-copy h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 680;
  line-height: 1.25;
}

.warmup-page-copy p,
.warmup-section-head p {
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.warmup-head-actions {
  flex: none;
  justify-content: flex-end;
  gap: 8px;
}

.warmup-automation-menu {
  position: relative;
}

.warmup-automation-menu > summary {
  list-style: none;
  cursor: pointer;
}

.warmup-automation-menu > summary::-webkit-details-marker {
  display: none;
}

.warmup-automation-menu[open] > summary {
  border-color: var(--app-border-strong);
  background: var(--app-surface-raised);
}

.warmup-automation-menu[open] > summary svg {
  transform: rotate(180deg);
}

.warmup-automation-menu summary svg {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.warmup-automation-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 210px;
  gap: 8px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-raised);
  padding: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.warmup-automation-popover p {
  padding: 2px 3px 4px;
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 620;
}

.warmup-automation-popover .mini-button {
  width: 100%;
  justify-content: flex-start;
}

.warmup-automation-popover .danger {
  color: var(--app-danger);
}

.warmup-summary-rail {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(5, minmax(92px, 0.55fr));
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface);
}

.warmup-summary-primary,
.warmup-summary-metric {
  min-width: 0;
  padding: 16px 18px;
}

.warmup-summary-primary {
  border-right: 1px solid var(--app-border);
}

.warmup-summary-primary > div:first-child {
  justify-content: space-between;
  gap: 12px;
}

.warmup-summary-primary span,
.warmup-summary-metric span {
  color: var(--app-muted);
  font-size: 0.71rem;
  font-weight: 590;
}

.warmup-summary-primary strong {
  color: var(--app-text);
  font-size: 1.35rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.warmup-summary-primary p {
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 0.69rem;
}

.warmup-summary-progress,
.warmup-row-progress {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-border) 72%, transparent);
}

.warmup-summary-progress {
  height: 5px;
  margin-top: 10px;
}

.warmup-summary-progress i,
.warmup-row-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--app-accent);
}

.warmup-summary-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--app-border);
}

.warmup-summary-metric:last-child {
  border-right: 0;
}

.warmup-summary-metric strong {
  margin-top: 7px;
  color: var(--app-text);
  font-size: 1.3rem;
  font-weight: 670;
  font-variant-numeric: tabular-nums;
}

.warmup-summary-metric.is-success strong {
  color: var(--app-success);
}

.warmup-summary-metric.is-warning strong {
  color: var(--app-warning);
}

.warmup-summary-metric.is-danger strong {
  color: var(--app-danger);
}

.warmup-days-section,
.warmup-accounts-section {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface);
}

.warmup-days-section {
  padding: 17px 18px 15px;
}

.warmup-section-head {
  justify-content: space-between;
  gap: 16px;
}

.warmup-section-head h3 {
  color: var(--app-text);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.warmup-timeline-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--app-muted);
  font-size: 0.68rem;
}

.warmup-timeline-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-accent);
}

.warmup-day-strip {
  display: grid;
  grid-template-columns: repeat(15, minmax(52px, 1fr));
  gap: 5px;
  min-width: 850px;
  margin-top: 15px;
}

.warmup-days-section {
  overflow-x: auto;
  scrollbar-width: thin;
}

.warmup-day-segment {
  display: grid;
  grid-template-columns: 1fr 6px;
  grid-template-rows: auto auto;
  gap: 4px 7px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--app-surface-subtle);
  padding: 8px;
  color: var(--app-muted);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.warmup-day-segment:hover {
  border-color: var(--app-border-strong);
  background: var(--app-surface-raised);
}

.warmup-day-segment strong {
  grid-column: 1;
  color: var(--app-text);
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.warmup-day-number,
.warmup-day-segment > span:last-child {
  font-size: 0.61rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.warmup-day-segment-bar {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  height: 34px;
  align-items: end;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-border) 74%, transparent);
}

.warmup-day-segment-bar i {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: var(--app-accent);
}

.warmup-day-segment.is-healthy .warmup-day-segment-bar i {
  background: var(--app-success);
}

.warmup-day-segment.is-behind .warmup-day-segment-bar i {
  background: var(--app-warning);
}

.warmup-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(132px, 0.34fr)) auto;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.warmup-search-control {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-surface);
  padding: 0 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.warmup-search-control:focus-within {
  border-color: var(--app-accent);
}

.warmup-search-control svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--app-muted);
}

.warmup-search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-text);
  font-size: 0.79rem;
}

.warmup-search-control input::placeholder {
  color: var(--app-subtle);
}

.warmup-filter {
  width: 100%;
  min-height: 39px;
  background: var(--app-surface);
  font-size: 0.76rem;
}

.warmup-accounts-section {
  overflow: hidden;
}

.warmup-accounts-section > .warmup-section-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--app-border);
}

.warmup-account-list {
  display: grid;
}

.warmup-account-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.05fr)
    minmax(130px, 0.75fr)
    minmax(150px, 0.85fr)
    minmax(180px, 1.1fr)
    auto;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--app-border);
  transition: background-color 140ms ease;
}

.warmup-account-row:last-child {
  border-bottom: 0;
}

.warmup-account-row:hover {
  background: color-mix(in srgb, var(--app-surface-subtle) 75%, transparent);
}

.warmup-account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.warmup-account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--app-accent) 28%, var(--app-border));
  border-radius: 9px;
  background: var(--app-accent-soft);
  color: var(--app-accent);
  font-size: 0.75rem;
  font-weight: 720;
}

.warmup-account-identity strong,
.warmup-account-identity span,
.warmup-account-next span,
.warmup-account-next strong,
.warmup-account-next time {
  display: block;
}

.warmup-account-identity strong {
  overflow: hidden;
  color: var(--app-text);
  font-size: 0.79rem;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warmup-account-identity div > span {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 0.68rem;
}

.warmup-account-state {
  min-width: 0;
}

.warmup-status-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--app-surface-subtle);
  padding: 5px 8px;
  color: var(--app-muted);
  font-size: 0.67rem;
  font-weight: 620;
}

.warmup-status-badge i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.warmup-status-badge.is-success {
  background: color-mix(in srgb, var(--app-success) 12%, transparent);
  color: var(--app-success);
}

.warmup-status-badge.is-warning {
  background: color-mix(in srgb, var(--app-warning) 12%, transparent);
  color: var(--app-warning);
}

.warmup-status-badge.is-danger {
  background: color-mix(in srgb, var(--app-danger) 12%, transparent);
  color: var(--app-danger);
}

.warmup-account-state p {
  overflow: hidden;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warmup-account-progress {
  min-width: 0;
}

.warmup-account-progress > div {
  justify-content: space-between;
  gap: 10px;
  color: var(--app-muted);
  font-size: 0.68rem;
}

.warmup-account-progress strong {
  color: var(--app-text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.warmup-row-progress {
  height: 5px;
  margin-top: 8px;
}

.warmup-account-next {
  min-width: 0;
}

.warmup-account-next span {
  color: var(--app-muted);
  font-size: 0.64rem;
}

.warmup-account-next strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--app-text);
  font-size: 0.73rem;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warmup-account-next time {
  margin-top: 4px;
  color: var(--app-subtle);
  font-size: 0.63rem;
}

.warmup-row-actions {
  justify-content: flex-end;
  gap: 6px;
}

.warmup-row-actions .mini-button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 0.7rem;
}

.warmup-pause-button {
  color: var(--app-muted);
}

.warmup-empty-state {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.warmup-empty-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  color: var(--app-muted);
  font-size: 0.72rem;
}

.warmup-empty-state strong {
  display: block;
  color: var(--app-text);
  font-size: 0.8rem;
}

.warmup-empty-state p {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 0.7rem;
}

.warmup-pagination:empty {
  display: none;
}

@media (max-width: 1240px) {
  .warmup-summary-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .warmup-summary-primary {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .warmup-summary-metric {
    border-right: 1px solid var(--app-border);
  }

  .warmup-account-row {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(160px, 1fr);
  }

  .warmup-account-next {
    grid-column: 1 / 3;
  }

  .warmup-row-actions {
    grid-column: 3;
  }
}

@media (max-width: 900px) {
  .warmup-page-head {
    align-items: flex-start;
  }

  .warmup-toolbar {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(130px, 0.42fr));
  }

  .warmup-search-control {
    grid-column: 1 / -1;
  }

  .warmup-toolbar #clear-filters {
    width: 100%;
  }

  .warmup-account-row {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.65fr);
  }

  .warmup-account-progress {
    grid-column: 1 / -1;
  }

  .warmup-account-next {
    grid-column: 1;
  }

  .warmup-row-actions {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .warmup-dashboard {
    gap: 14px !important;
  }

  .warmup-page-head {
    flex-direction: column;
    gap: 16px;
  }

  .warmup-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .warmup-head-actions > .primary-mini {
    flex: 1;
  }

  .warmup-automation-menu {
    flex: 1;
  }

  .warmup-automation-menu > summary {
    width: 100%;
  }

  .warmup-automation-popover {
    right: auto;
    left: 0;
    width: min(240px, calc(100vw - 48px));
  }

  .warmup-summary-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warmup-summary-primary {
    grid-column: 1 / -1;
  }

  .warmup-summary-metric {
    min-height: 82px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--app-border);
  }

  .warmup-summary-metric:nth-child(odd) {
    border-right: 0;
  }

  .warmup-summary-metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .warmup-days-section {
    padding: 15px 14px 13px;
  }

  .warmup-day-strip {
    min-width: 760px;
  }

  .warmup-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warmup-search-control,
  .warmup-toolbar #clear-filters {
    grid-column: 1 / -1;
  }

  .warmup-filter {
    min-width: 0;
  }

  .warmup-accounts-section > .warmup-section-head {
    padding: 14px;
  }

  .warmup-account-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    padding: 15px 14px;
  }

  .warmup-account-state {
    justify-self: end;
  }

  .warmup-account-state p {
    display: none;
  }

  .warmup-account-progress,
  .warmup-account-next,
  .warmup-row-actions {
    grid-column: 1 / -1;
  }

  .warmup-account-next strong {
    white-space: normal;
  }

  .warmup-row-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  }

  .warmup-row-actions .mini-button {
    min-height: 38px;
  }

  .warmup-empty-state {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- View Boost / Queue / Settings ---- */
.boost-card {
  border: 1px solid var(--border);
  background: var(--panel-strong);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.boost-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.boost-meta {
  display: flex;
  gap: 0.75rem;
}

.boost-stat {
  min-width: 5.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--soft);
  border: 1px solid var(--border);
  text-align: center;
}

.boost-stat span {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.boost-stat label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.boost-form .field,
.boost-card .field {
  width: 100%;
}

.channel-auto-panel {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(42, 171, 238, 0.045);
}

.channel-auto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-interval-badge {
  flex: none;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
  background: rgba(42, 171, 238, 0.14);
}

.channel-boost-form {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) minmax(8rem, 0.75fr) minmax(8rem, 0.75fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.channel-submit-cell {
  display: flex;
  align-items: end;
}

.channel-churn-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: rgba(148, 163, 184, 0.08);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.channel-churn-option input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--app-accent, #2aabee);
}

.channel-churn-option strong,
.channel-churn-option small {
  display: block;
}

.channel-churn-option small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2rem;
}

.channel-reaction-config {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.25fr);
  gap: 0.65rem;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: rgba(148, 163, 184, 0.08);
  padding: 0.7rem 0.8rem;
}

.channel-reaction-config > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.channel-voting-config {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 0.22fr) minmax(7rem, 0.22fr);
  gap: 0.65rem;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: rgba(148, 163, 184, 0.08);
  padding: 0.7rem 0.8rem;
}

.channel-voting-config > .channel-churn-option {
  grid-column: auto;
  border: 0;
  background: transparent;
  padding: 0.65rem 0;
}

.channel-voting-config > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.channel-auto-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.channel-schedules-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.channel-schedules-list {
  display: grid;
  gap: 0.55rem;
}

.channel-schedule-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) repeat(3, minmax(6rem, 0.75fr)) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel-strong);
  font-size: 0.78rem;
}

.channel-schedule-row small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.channel-schedule-name {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.channel-schedule-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.channel-schedule-range-field {
  display: inline-grid;
  gap: 0.15rem;
  min-width: 4.5rem;
}

.channel-schedule-range-field span {
  color: var(--muted);
  font-size: 0.65rem;
}

.channel-schedule-range-field input {
  width: 5.25rem;
}

.channel-schedule-reaction-emojis {
  min-width: 9rem;
  flex: 1 1 10rem;
}

.channel-schedule-reaction-percent input {
  width: 4.5rem;
}

.channel-schedule-churn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.channel-schedule-churn-toggle input {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--app-accent, #2aabee);
}

@media (max-width: 900px) {
  .channel-boost-form,
  .channel-schedule-row {
    grid-template-columns: 1fr 1fr;
  }

  #panel-boost .channel-boost-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-link-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .channel-auto-head {
    flex-direction: column;
  }

  .channel-boost-form,
  .channel-schedule-row {
    grid-template-columns: 1fr;
  }

  .channel-link-field {
    grid-column: auto;
  }

}

.boost-log-console {
  max-height: 240px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
  color: #d1fae5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.danger-mini {
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: rgba(127, 29, 29, 0.35) !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.status-pill.pending { background: rgba(251, 191, 36, 0.15); color: #b45309; border-color: rgba(251, 191, 36, 0.3); }
.status-pill.active { background: rgba(16, 185, 129, 0.15); color: #047857; border-color: rgba(16, 185, 129, 0.3); }
.status-pill.running { background: rgba(42, 171, 238, 0.15); color: #0369a1; border-color: rgba(42, 171, 238, 0.3); }
.status-pill.paused { background: rgba(148, 163, 184, 0.2); color: #475569; border-color: rgba(148, 163, 184, 0.3); }
.status-pill.completed { background: rgba(16, 185, 129, 0.15); color: #047857; border-color: rgba(16, 185, 129, 0.3); }
.status-pill.cancelled,
.status-pill.failed { background: rgba(244, 63, 94, 0.15); color: #be123c; border-color: rgba(244, 63, 94, 0.3); }

.dark .status-pill.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.dark .status-pill.active,
.dark .status-pill.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.dark .status-pill.running { background: rgba(42, 171, 238, 0.15); color: #38bdf8; }
.dark .status-pill.paused { background: rgba(148, 163, 184, 0.18); color: #94a3b8; }
.dark .status-pill.cancelled,
.dark .status-pill.failed { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.settings-group {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(148, 163, 184, 0.06);
}

.settings-group summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
}

.settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.settings-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  margin-top: 1.4rem;
}

/* ==========================================================================
   2026 application shell
   ========================================================================== */
:root {
  --app-bg: #f6f7f9;
  --app-surface: #ffffff;
  --app-surface-raised: #ffffff;
  --app-surface-subtle: #f8fafc;
  --app-sidebar: #0f1117;
  --app-sidebar-hover: #191c24;
  --app-border: #e3e6eb;
  --app-border-strong: #d3d7de;
  --app-text: #17191f;
  --app-muted: #687080;
  --app-subtle: #9299a6;
  --app-accent: #5b5ce2;
  --app-accent-hover: #4c4dcc;
  --app-accent-soft: #eeeeff;
  --app-success: #16875b;
  --app-warning: #a96508;
  --app-danger: #c43d4b;
  --app-radius: 12px;
  --app-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
}

.dark {
  --app-bg: #0d0f14;
  --app-surface: #14171e;
  --app-surface-raised: #181b23;
  --app-surface-subtle: #101218;
  --app-sidebar: #090b0f;
  --app-sidebar-hover: #171a21;
  --app-border: #292d37;
  --app-border-strong: #383d49;
  --app-text: #f2f4f7;
  --app-muted: #9ba3b2;
  --app-subtle: #707888;
  --app-accent: #7c7df0;
  --app-accent-hover: #9293f5;
  --app-accent-soft: rgba(124, 125, 240, 0.14);
  --app-success: #55c895;
  --app-warning: #e6a84b;
  --app-danger: #f0707c;
  --app-shadow: 0 1px 2px rgba(0, 0, 0, 0.22), 0 16px 40px rgba(0, 0, 0, 0.12);
}

html {
  background: var(--app-bg);
}

body {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.app-shell {
  min-height: 100vh;
  padding: 0;
  background: var(--app-bg);
}

.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 264px;
  z-index: 35;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark h1 {
  color: var(--app-text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand-mark p {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 0.76rem;
  white-space: normal;
}

.header-actions {
  gap: 8px;
}

.header-actions .icon-button,
.header-actions .mini-button,
.mobile-menu-button {
  min-height: 36px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  color: var(--app-muted);
  box-shadow: none;
}

.header-actions .mini-button {
  padding-inline: 13px;
}

.header-actions .icon-button:hover,
.header-actions .mini-button:hover,
.mobile-menu-button:hover {
  border-color: var(--app-border-strong);
  background: var(--app-surface-raised);
  color: var(--app-text);
}

.header-balance {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-surface);
  padding: 0 12px;
  color: var(--app-muted);
  font-size: 0.76rem;
}

.header-balance strong {
  color: var(--app-text);
  font-size: 0.82rem;
}

.mobile-menu-button {
  display: none;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.mobile-menu-button svg {
  height: 18px;
  width: 18px;
}

.app-content {
  display: grid;
  width: auto;
  max-width: none;
  gap: 24px;
  margin-left: 264px;
  padding: 96px 32px 44px;
}

.bottom-nav {
  position: fixed;
  top: 14px;
  right: auto;
  bottom: 14px;
  left: 14px;
  z-index: 50;
  display: flex;
  width: 236px;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: var(--app-sidebar);
  padding: 86px 10px 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.bottom-nav::before {
  content: "Teleboost";
  position: absolute;
  top: 24px;
  left: 22px;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bottom-nav::after {
  content: "OPERATIONS";
  position: absolute;
  top: 56px;
  left: 22px;
  color: #626b7b;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.section-tab {
  display: flex;
  min-height: 42px;
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 12px;
  color: #8d96a6;
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: -0.005em;
}

.section-tab:hover {
  border-color: rgba(255, 255, 255, 0.04);
  background: var(--app-sidebar-hover);
  color: #e6e9ef;
}

.section-tab.active {
  border-color: rgba(124, 125, 240, 0.22);
  background: rgba(124, 125, 240, 0.14);
  color: #d8d9ff;
}

.bottom-nav-icon {
  height: 17px;
  width: 17px;
  opacity: 0.88;
}

.sidebar-scrim {
  display: none;
}

.section-panel.active {
  gap: 20px;
}

.qr-stage,
.sessions-panel,
.items-panel,
.admin-panel,
.warmup-panel,
.boost-card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
  backdrop-filter: none;
}

.qr-stage,
.sessions-panel,
.items-panel,
.admin-panel,
.warmup-panel {
  padding: 22px;
}

.boost-card {
  padding: 22px;
}

.boost-card-head {
  margin-bottom: 22px;
}

.boost-card-head h2,
.queue-card-head h2,
.admin-panel h2,
.warmup-panel h2 {
  color: var(--app-text) !important;
  letter-spacing: -0.025em;
}

.items-kicker {
  color: var(--app-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field {
  min-height: 40px;
  font-size: 0.875rem;
  border-color: var(--app-border);
  border-radius: 9px;
  background: var(--app-surface-subtle);
  color: var(--app-text);
  box-shadow: none;
}

.field:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px var(--app-accent-soft);
}

.primary-button,
.primary-mini {
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--app-accent);
  color: #fff;
  box-shadow: none;
}

.primary-button:hover,
.primary-mini:hover {
  background: var(--app-accent-hover);
}

.mini-button {
  min-height: 34px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-color: var(--app-border);
  border-radius: 9px;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: none;
}

.boost-stat {
  min-width: 100px;
  padding: 0.65rem 1rem;
  border-color: var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-subtle);
  text-align: center;
}

.boost-stat span {
  display: block;
  color: var(--app-text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.boost-stat label {
  display: block;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

#panel-boost .boost-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

#panel-boost .boost-card-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
  border-bottom: 1px solid var(--app-border);
  padding-bottom: 20px;
}

#panel-boost .boost-form {
  align-self: start;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-subtle);
  padding: 18px;
}

#panel-boost .channel-auto-panel {
  margin-top: 0 !important;
  border-color: color-mix(in srgb, var(--app-accent) 22%, var(--app-border));
  background: color-mix(in srgb, var(--app-accent) 3%, var(--app-surface));
  padding: 22px;
}

#panel-boost .boost-console {
  margin-top: 0 !important;
}

.boost-log-console {
  min-height: 280px;
  max-height: 420px;
  border-color: #2a2e38;
  border-radius: 10px;
  background: #0b0d12;
  color: #b8c0ce;
  padding: 14px 16px;
  font-size: 0.72rem;
}

.queue-card-head,
.queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-card-head {
  margin-bottom: 18px;
}

.queue-refresh-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-subtle);
  font-size: 0.7rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--app-success);
  font-weight: 650;
}

.live-indicator i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.queue-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.queue-metric {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-subtle);
  padding: 13px 14px;
}

.queue-metric span {
  color: var(--app-muted);
  font-size: 0.69rem;
  font-weight: 560;
}

.queue-metric strong {
  color: var(--app-text);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.queue-toolbar {
  margin-bottom: 12px;
  border-top: 1px solid var(--app-border);
  padding-top: 14px;
}

.queue-filter-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

#queue-search {
  width: min(320px, 34vw);
}

.queue-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--app-muted);
  font-size: 0.72rem;
}

.queue-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-pagination-controls .field {
  width: auto;
  min-width: 68px;
  padding-block: 7px;
}

.queue-page-label {
  min-width: 6.5rem;
  color: var(--app-text);
  font-weight: 650;
  text-align: center;
}

.queue-table-wrap,
.items-table-wrap {
  overflow: auto;
  border: 1px solid var(--app-border) !important;
  border-radius: 10px !important;
  background: var(--app-surface);
}

.items-table {
  color: var(--app-text);
  font-size: 0.78rem;
}

.items-table thead {
  background: var(--app-surface-subtle) !important;
}

.items-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.items-table td {
  border-bottom-color: var(--app-border);
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.items-table tbody tr {
  transition: background 120ms ease;
}

.items-table tbody tr:hover {
  background: color-mix(in srgb, var(--app-accent) 4%, transparent);
}

.coins-maturity-block {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--app-border);
}

.coins-maturity-list {
  scrollbar-width: thin;
}

.coins-maturity-row {
  transition: border-color 120ms ease, background 120ms ease;
}

.coins-maturity-row:hover {
  border-color: color-mix(in srgb, var(--app-accent) 28%, var(--app-border));
}

.status-pill {
  border: 1px solid transparent;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 650;
  text-transform: capitalize;
}

.status-pill.pending { border-color: rgba(230, 168, 75, 0.22); }
.status-pill.running { border-color: rgba(124, 125, 240, 0.25); }
.status-pill.completed { border-color: rgba(85, 200, 149, 0.22); }
.status-pill.cancelled,
.status-pill.failed { border-color: rgba(240, 112, 124, 0.22); }

.job-progress {
  min-width: 112px;
}

.job-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--app-muted);
  font-size: 0.67rem;
}

.job-progress-copy strong {
  color: var(--app-text);
  font-weight: 620;
}

.job-progress-track {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--app-border);
}

.job-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--app-accent);
}

.storage-warning {
  color: var(--app-warning) !important;
}

#panel-boost .channel-boost-form {
  grid-template-columns: minmax(0, 1fr) repeat(4, minmax(104px, 0.28fr));
  gap: 14px;
  margin-top: 18px;
}

#panel-boost .channel-submit-cell {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

#panel-boost .channel-submit-cell .primary-button {
  width: auto;
  min-width: 220px;
}

.one-time-boost-disclosure {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-subtle);
}

.one-time-boost-disclosure > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  color: var(--app-text);
  cursor: pointer;
  list-style: none;
}

.one-time-boost-disclosure > summary::-webkit-details-marker {
  display: none;
}

.one-time-boost-disclosure > summary strong,
.one-time-boost-disclosure > summary small {
  display: block;
}

.one-time-boost-disclosure > summary strong {
  font-size: 0.78rem;
}

.one-time-boost-disclosure > summary small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 0.65rem;
}

.one-time-boost-disclosure > summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 150ms ease;
}

.one-time-boost-disclosure[open] > summary svg {
  transform: rotate(180deg);
}

.one-time-boost-disclosure > .boost-form {
  border-top: 1px solid var(--app-border);
  padding: 16px 14px;
}

.channel-automation-table {
  grid-column: 1 / -1;
  border-block: 1px solid var(--app-border);
}

.one-time-automation-table {
  margin-top: 0.25rem;
}

.channel-automation-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
  min-height: 78px;
  align-items: center;
  gap: 28px;
  padding: 12px 4px;
}

.channel-automation-row + .channel-automation-row {
  border-top: 1px solid var(--app-border);
}

.channel-automation-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.channel-automation-copy.static-copy {
  cursor: default;
  padding-left: 45px;
}

.channel-automation-copy > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-automation-copy > span:last-child,
.channel-automation-copy strong,
.channel-automation-copy small {
  display: block;
}

.channel-automation-copy strong {
  color: var(--app-text);
  font-size: 0.76rem;
  font-weight: 620;
}

.channel-automation-copy small {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 0.65rem;
}

.channel-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--app-muted) 48%, transparent);
  border-radius: 999px;
  background: var(--app-surface-subtle);
}

.channel-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--app-muted);
  transition: 140ms ease;
}

.channel-automation-copy input:checked + .channel-switch {
  border-color: var(--app-accent);
  background: var(--app-accent-soft);
}

.channel-automation-copy input:checked + .channel-switch::after {
  left: 18px;
  background: var(--app-accent);
}

.channel-automation-hint {
  justify-self: end;
  color: var(--app-muted);
  font-size: 0.65rem;
}

.channel-inline-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 9px;
}

.channel-inline-range i {
  padding-bottom: 11px;
  color: var(--app-muted);
  font-size: 0.62rem;
  font-style: normal;
}

.channel-inline-range .voice-auto-reply {
  grid-column: 1 / -1;
  align-items: center;
  margin-top: 2px;
}

.channel-inline-range .voice-auto-reply-target {
  grid-column: 1 / -1;
}

.channel-inline-range .voice-hand-raise-settings {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.channel-inline-range .voice-auto-reply > span {
  margin: 0;
  color: var(--app-text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.channel-inline-range label > span,
.channel-reaction-inputs label > span,
.channel-drawer-fields label > span,
.channel-compact-range label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--app-muted);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.channel-reaction-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.5fr);
  gap: 10px;
}

.channel-reaction-inputs.expanded {
  grid-template-columns: minmax(170px, 1.5fr) repeat(4, minmax(76px, 0.5fr));
}

.channel-churn-ranges {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 8px;
}

.channel-churn-ranges label > span {
  display: block;
  min-height: 1.75em;
  margin-bottom: 5px;
  color: var(--app-muted);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.channel-automation-row *,
.channel-edit-drawer * {
  box-sizing: border-box;
  min-width: 0;
}

.channel-form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.channel-form-footer p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.66rem;
}

.channel-schedule-table-head,
.channel-schedule-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(170px, 0.85fr) minmax(190px, 1fr) minmax(160px, 0.8fr) 64px;
  align-items: center;
  gap: 18px;
}

.channel-schedule-table-head {
  min-height: 38px;
  border: 1px solid var(--app-border);
  background: var(--app-surface-subtle);
  color: var(--app-muted);
  padding: 0 16px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.channel-schedules-active,
.channel-schedules-history {
  border-inline: 1px solid var(--app-border);
  background: var(--app-surface);
}

.channel-schedules-history {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.channel-schedule-record {
  border-bottom: 1px solid var(--app-border);
}

.channel-schedule-summary {
  min-height: 92px;
  padding: 15px 16px;
}

.channel-schedule-summary > div {
  min-width: 0;
}

.channel-schedule-summary strong,
.channel-schedule-summary small {
  display: block;
}

.channel-schedule-summary strong {
  color: var(--app-text);
  font-size: 0.76rem;
  font-weight: 610;
}

.channel-schedule-summary small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-summary-identity > strong {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.channel-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--app-muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.channel-status-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.channel-status-line.active,
.channel-status-line.completed {
  color: var(--app-success);
}

.channel-status-line.cancelled,
.channel-status-line.failed {
  color: var(--app-danger);
}

.channel-status-line.paused {
  color: var(--app-warning);
}

.channel-summary-actions {
  display: flex;
  justify-content: flex-end;
}

.channel-schedule-error {
  border-top: 1px solid color-mix(in srgb, var(--app-danger) 25%, var(--app-border));
  background: color-mix(in srgb, var(--app-danger) 7%, transparent);
  color: var(--app-danger);
  padding: 8px 16px;
  font-size: 0.65rem;
}

.channel-edit-drawer {
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface-subtle) 60%, var(--app-surface));
}

.channel-drawer-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--app-border);
  padding: 10px 16px;
}

.channel-drawer-heading strong,
.channel-drawer-heading small {
  display: block;
}

.channel-drawer-heading strong {
  color: var(--app-text);
  font-size: 0.78rem;
}

.channel-drawer-heading small {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 0.62rem;
}

.channel-drawer-section {
  padding: 14px 16px;
}

.channel-drawer-section + .channel-drawer-section {
  border-top: 1px solid var(--app-border);
}

.channel-drawer-section h5 {
  margin: 0 0 10px;
  color: var(--app-muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.channel-drawer-fields {
  display: grid;
  gap: 10px;
}

.channel-drawer-fields.delivery {
  grid-template-columns: repeat(3, minmax(0, 180px));
}

.channel-drawer-automation {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(190px, 0.65fr) minmax(280px, 1fr);
  padding: 0;
}

.channel-drawer-automation > div {
  min-width: 0;
  padding: 14px 16px;
}

.channel-drawer-voting,
.channel-drawer-voice {
  border-left: 1px solid var(--app-border);
}

.channel-drawer-reactions {
  grid-column: 1 / -1;
  border-top: 1px solid var(--app-border);
}

.channel-drawer-voice .voice-auto-reply {
  margin-top: 12px;
}

.channel-drawer-voice .voice-auto-reply-target {
  display: block;
  margin-top: 10px;
}

.channel-check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text);
  cursor: pointer;
  font-size: 0.69rem;
}

.channel-check-line input {
  width: 14px;
  height: 14px;
  accent-color: var(--app-accent);
}

.channel-compact-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.channel-compact-range.reactions {
  grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(90px, 0.55fr));
  margin-top: 10px;
}

.channel-compact-range.churn {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.channel-edit-drawer .field {
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  font-size: 0.75rem;
}

.channel-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--app-border);
  padding: 12px 16px;
}

.channel-drawer-footer .primary-button {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  font-size: 0.72rem;
}

.channel-cancel-link {
  border: 0;
  background: transparent;
  color: var(--app-danger);
  padding: 6px 0;
  font-size: 0.66rem;
  cursor: pointer;
}

.channel-history-control {
  display: flex;
  border: 1px solid var(--app-border);
  border-top: 0;
  padding: 10px 16px;
}

.channel-history-control strong {
  margin-left: 5px;
  color: var(--app-muted);
}

.channel-history-control .active {
  border-color: var(--app-accent);
  color: var(--app-text);
}

.channel-empty-state {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--app-border);
  padding: 24px 16px;
  text-align: center;
}

.channel-empty-state strong {
  color: var(--app-text);
  font-size: 0.76rem;
}

.channel-empty-state span {
  color: var(--app-muted);
  font-size: 0.65rem;
}

.settings-group {
  border-color: var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-subtle);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-group[open] {
  border-color: var(--app-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.settings-group summary {
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.settings-group summary:hover {
  color: var(--app-accent);
}

/* Compact Warmup Session Cards */
.compact-warmup-card {
  padding: 0.85rem 1rem !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
}

.compact-warmup-card .warmup-account-top {
  margin-bottom: 0 !important;
}

.compact-warmup-card .warmup-progress-panel {
  margin: 0 !important;
  padding: 0.45rem 0.75rem !important;
  background: var(--app-surface-subtle) !important;
  border-radius: 9px !important;
  border: 1px solid var(--app-border) !important;
}

.compact-warmup-card .warmup-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.compact-warmup-card .warmup-task-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 8px;
  font-size: 0.78rem;
}

.compact-warmup-card .warmup-task-tag {
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
}

.dark .compact-warmup-card .warmup-task-tag {
  color: #38bdf8;
}

.compact-warmup-card .warmup-task-desc {
  color: var(--app-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-warmup-card .warmup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.compact-warmup-card .warmup-actions .mini-button {
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
}

.admin-row,
.warmup-card,
.session-card {
  border-color: var(--app-border);
  background: var(--app-surface-subtle);
  box-shadow: none;
}

.notice {
  border-radius: 10px;
}

.managed-channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.managed-session-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
}

.managed-session-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 390px;
  overflow-y: auto;
}

.managed-session-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-subtle);
  color: var(--app-text);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.managed-session-row:hover,
.managed-session-row.selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
}

.managed-session-row.limit-reached {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.08);
}

.managed-session-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
  font-weight: 800;
}

.limit-reached .managed-session-avatar {
  background: rgba(244, 63, 94, 0.14);
  color: #e11d48;
}

.managed-session-identity strong,
.managed-session-identity small,
.managed-session-identity em {
  display: block;
}

.managed-session-identity small {
  color: var(--app-text-muted);
  font-size: 0.7rem;
}

.managed-session-identity em,
.session-limit-warning {
  color: #e11d48;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.managed-session-state {
  color: #0284c7;
  font-size: 0.7rem;
  font-weight: 800;
}

.limit-reached .managed-session-state {
  color: #e11d48;
}

.channel-admin-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  font-size: 0.75rem;
}

.channel-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.38fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-subtle);
}

.channel-admin-search-field,
.channel-admin-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.channel-admin-search-field > span,
.channel-admin-filter-field > span {
  color: var(--app-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel-admin-toolbar .field {
  width: 100%;
  min-height: 40px;
}

.channel-admin-search-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #0284c7;
  border-radius: 9px;
  background: #0284c7;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.channel-admin-search-button:hover {
  background: #0369a1;
}

.channel-admin-result.limit-reached {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.08);
}

.managed-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--app-text-muted);
  font-size: 0.72rem;
}

.managed-capacity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-subtle);
}

.managed-capacity-number {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #059669;
}

.managed-capacity-number.is-full {
  color: #e11d48;
}

.managed-capacity-number strong {
  font-size: 2rem;
  line-height: 1;
}

.managed-capacity-number span {
  max-width: 90px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.managed-username-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.managed-username-field > span {
  color: var(--app-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.managed-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.managed-channel-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface-subtle);
}

.managed-username-field > .mini-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.username-availability-status {
  min-height: 1rem;
  margin-top: 6px;
  color: var(--app-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.username-availability-status.is-available {
  color: #059669;
}

.username-availability-status.is-unavailable,
.username-availability-status.is-error {
  color: #e11d48;
}

.managed-channel-username-edit {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface);
}

.managed-channel-username-edit[hidden] {
  display: none;
}

.managed-channel-username-edit > label {
  color: var(--app-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.managed-channel-username-edit > small {
  color: var(--app-text-muted);
  font-size: 0.68rem;
}

.managed-channel-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.managed-channel-metrics > div {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  text-align: center;
}

.managed-channel-metrics strong,
.managed-channel-metrics span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.managed-channel-metrics strong {
  color: var(--app-text);
  font-size: 0.9rem;
}

.managed-channel-metrics span {
  color: var(--app-text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  #panel-boost .boost-card {
    grid-template-columns: 1fr;
  }

  #panel-boost .boost-card-head {
    grid-column: 1;
  }
}

@media (max-width: 1024px) {
  .app-header {
    left: 0;
    min-height: 64px;
    padding: 0 18px;
  }

  .app-content {
    margin-left: 0;
    padding: 84px 18px 34px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .bottom-nav {
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 272px;
    transform: translateX(calc(-100% - 24px));
    transition: transform 180ms ease;
  }

  .bottom-nav.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(3, 5, 9, 0.54);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .sidebar-scrim.open {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .app-header {
    gap: 10px;
  }

  .brand-mark p {
    display: none;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .mini-button {
    padding-inline: 10px;
  }

  .app-content {
    gap: 16px;
    padding: 78px 12px 24px;
  }

  .boost-card,
  .qr-stage,
  .sessions-panel,
  .items-panel,
  .admin-panel,
  .warmup-panel {
    padding: 16px;
  }

  .queue-card-head,
  .queue-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-refresh-meta {
    justify-content: space-between;
  }

  .queue-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-filter-group {
    align-items: stretch;
    flex-direction: column;
  }

  #queue-search {
    width: 100%;
  }

  .queue-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-pagination-controls {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #panel-boost .boost-card {
    gap: 18px;
  }

  .boost-meta {
    width: 100%;
  }

  .boost-stat {
    flex: 1;
  }

  #panel-boost .channel-boost-form,
  #panel-boost .channel-schedule-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #panel-boost .channel-link-field,
  #panel-boost .channel-churn-option,
  #panel-boost .channel-voting-config,
  #panel-boost .channel-reaction-config,
  #panel-boost .channel-submit-cell,
  #panel-boost .channel-schedule-row > div:first-child {
    grid-column: auto;
  }

  .channel-voting-config,
  .channel-reaction-config {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-voting-config > small,
  .channel-reaction-config > small {
    grid-column: auto;
  }

  .managed-channel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .managed-session-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-admin-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-admin-search-button {
    width: 100%;
  }

  .managed-capacity-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .managed-channel-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* PWA Install Button Styles */
.pwa-install-button {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.15), rgba(37, 99, 235, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pwa-install-button:hover {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.25), rgba(37, 99, 235, 0.38));
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* Mobile Orientation Landscape Safeguard */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .app-shell {
    max-width: 540px !important;
    margin: 0 auto !important;
  }
}

/* Never show the install action after the app is running as an installed PWA. */
#pwa-install-btn.hidden {
  display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  #pwa-install-btn {
    display: none !important;
  }
}

/* Keep the installed/mobile header compact and clear of device safe areas. */
@media (max-width: 720px) {
  .app-header {
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 !important;
    gap: 8px !important;
  }

  .app-content {
    padding-top: calc(78px + env(safe-area-inset-top, 0px));
  }

  .header-context {
    gap: 8px;
  }

  .header-actions .mini-button {
    min-height: 34px;
    padding-inline: 8px;
  }
}

@media (max-width: 430px) {
  #force-stop {
    width: 34px;
    justify-content: center;
    padding-inline: 0;
  }

  #force-stop span {
    display: none;
  }
}

@media (max-width: 1050px) {
  .channel-schedule-table-head {
    display: none;
  }

  .channel-schedule-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .channel-summary-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 1250px) {
  .channel-drawer-automation {
    grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 0.8fr);
  }

  .channel-drawer-voice {
    grid-column: 1 / -1;
    border-top: 1px solid var(--app-border);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .channel-automation-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .channel-automation-hint {
    justify-self: start;
    padding-left: 45px;
  }

  .channel-churn-ranges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-drawer-automation {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-drawer-voting,
  .channel-drawer-voice,
  .channel-drawer-reactions {
    border-top: 1px solid var(--app-border);
    border-left: 0;
  }

  .channel-drawer-voice,
  .channel-drawer-reactions {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .channel-form-footer,
  .channel-drawer-heading,
  .channel-drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  #panel-boost .channel-submit-cell,
  #panel-boost .channel-submit-cell .primary-button,
  .channel-drawer-footer .primary-button {
    width: 100%;
  }

  .channel-schedule-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .channel-summary-actions {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
  }

  .channel-drawer-fields.delivery,
  .channel-inline-range,
  .channel-reaction-inputs,
  .channel-compact-range,
  .channel-compact-range.reactions {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-reaction-inputs.expanded,
  .channel-churn-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-inline-range i {
    display: none;
  }

  .channel-inline-range .voice-hand-raise-settings {
    grid-template-columns: minmax(0, 1fr);
  }
}

