/* HUB Command UI — stronger desks look */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,500&family=Outfit:wght@600;700;800&display=swap");

:root {
  --hub-ember: #ff5c24;
  --hub-ember-deep: #e03a00;
  --hub-ember-soft: rgba(255, 92, 36, 0.16);
  --hub-gold: #f0b429;
  --hub-ink: #12151c;
  --hub-ink-soft: #2a3140;
  --hub-muted: #6b7385;
  --hub-line: rgba(18, 21, 28, 0.12);
  --hub-bg0: #c9d2de;
  --hub-bg1: #e7edf5;
  --hub-surface: rgba(255, 255, 255, 0.72);
  --hub-solid: #ffffff;
  --hub-green: #0d8a56;
  --hub-danger: #d12b2b;
  --hub-sky: #1f6f8f;
  --hub-shadow: 0 28px 70px rgba(12, 16, 28, 0.16);
  --hub-shadow-soft: 0 14px 36px rgba(12, 16, 28, 0.09);
  --hub-radius: 26px;
  --hub-radius-sm: 16px;
  --hub-font: "DM Sans", system-ui, sans-serif;
  --hub-display: "Outfit", var(--hub-font);
  --hub-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hub-safe-b: env(safe-area-inset-bottom, 0px);
  --hub-safe-t: env(safe-area-inset-top, 0px);
  --hub-nav-h: 74px;
  --hub-touch: 50px;
  --hub-rim: linear-gradient(135deg, rgba(255, 92, 36, 0.9), rgba(240, 180, 41, 0.55), rgba(31, 111, 143, 0.35));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.hub-ui {
  margin: 0;
  font-family: var(--hub-font);
  color: var(--hub-ink);
  min-height: 100dvh;
  background:
    radial-gradient(900px 560px at -8% -20%, rgba(255, 92, 36, 0.28), transparent 55%),
    radial-gradient(820px 520px at 108% -10%, rgba(31, 111, 143, 0.22), transparent 52%),
    radial-gradient(640px 420px at 70% 110%, rgba(240, 180, 41, 0.12), transparent 50%),
    linear-gradient(165deg, #f4f7fb 0%, #e8eef6 42%, #d3dce8 100%);
  background-attachment: fixed;
  letter-spacing: -0.015em;
  padding-bottom: calc(var(--hub-nav-h) + var(--hub-safe-b));
}
body.hub-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(18, 21, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  z-index: 0;
}
body.hub-ui > * { position: relative; z-index: 1; }

body.hub-ui.reduce-motion *,
body.hub-ui.reduce-motion *::before,
body.hub-ui.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

@keyframes hub-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hub-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 36, 0.45), 0 16px 40px rgba(255, 92, 36, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(255, 92, 36, 0), 0 18px 44px rgba(255, 92, 36, 0.3); }
}
@keyframes hub-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes hub-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.hub-brand, .hub-display {
  font-family: var(--hub-display);
  letter-spacing: -0.05em;
  font-weight: 800;
}
.hub-brand {
  background: linear-gradient(120deg, #12151c 10%, #ff5c24 55%, #f0b429 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-btn,
button.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--hub-touch);
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--hub-ease), box-shadow 0.2s var(--hub-ease), background 0.2s var(--hub-ease), border-color 0.2s var(--hub-ease), filter 0.2s var(--hub-ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hub-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.hub-btn:hover::after { animation: hub-sheen 0.7s var(--hub-ease); }
.hub-btn:active { transform: scale(0.975); }
.hub-btn:focus-visible {
  outline: 3px solid rgba(255, 92, 36, 0.45);
  outline-offset: 2px;
}
.hub-btn--primary,
.hub-btn.primary,
button.primary.hub-btn {
  background: linear-gradient(135deg, #ff7a3d 0%, var(--hub-ember) 42%, var(--hub-ember-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(224, 58, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}
.hub-btn--primary:hover { filter: brightness(1.05); }
.hub-btn--ghost,
.hub-btn.ghost,
button.ghost.hub-btn {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--hub-line);
  color: var(--hub-ink);
  box-shadow: var(--hub-shadow-soft);
  backdrop-filter: blur(10px);
}
.hub-btn--ghost:hover { background: #fff; border-color: rgba(255, 92, 36, 0.35); }
.hub-btn--danger {
  background: linear-gradient(180deg, #fff, #fff5f4);
  color: var(--hub-danger);
  border-color: #f3c0bc;
}
.hub-btn--success {
  background: linear-gradient(135deg, #17a868, var(--hub-green));
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 138, 86, 0.28);
}
.hub-btn--lg {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 16px;
}
.hub-btn--block { width: 100%; border-radius: 18px; }
.hub-btn--icon {
  width: var(--hub-touch);
  min-width: var(--hub-touch);
  padding: 0;
}

.hub-field { display: grid; gap: 7px; margin: 12px 0; }
.hub-field > span,
.hub-field > label {
  color: var(--hub-muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hub-input,
.hub-field input,
.hub-field textarea,
.hub-field select {
  width: 100%;
  min-height: var(--hub-touch);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #d0d8e4;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  font: inherit;
  color: var(--hub-ink);
  transition: border-color 0.15s var(--hub-ease), box-shadow 0.15s var(--hub-ease);
}
.hub-input:focus,
.hub-field input:focus,
.hub-field textarea:focus,
.hub-field select:focus {
  outline: none;
  border-color: rgba(255, 92, 36, 0.55);
  box-shadow: 0 0 0 4px var(--hub-ember-soft);
}

.hub-card,
.section-block,
.hub-col {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-soft);
  padding: 20px;
  animation: hub-rise 0.45s var(--hub-ease) both;
  overflow: hidden;
}
.hub-card::before,
.section-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--hub-rim);
}
.hub-glass {
  background: var(--hub-surface);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--hub-line);
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}
.hub-chip.is-active,
.hub-chip.active {
  background: linear-gradient(135deg, var(--hub-ember), var(--hub-ember-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(224, 58, 0, 0.28);
}

.hub-empty {
  text-align: center;
  padding: 40px 18px;
  color: var(--hub-muted);
  font-weight: 600;
}
.hub-empty strong {
  display: block;
  color: var(--hub-ink);
  font-family: var(--hub-display);
  font-size: 24px;
  margin-bottom: 6px;
}

.hub-skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, #e4ebf3 20%, #f7fafc 50%, #e4ebf3 80%);
  background-size: 200% 100%;
  animation: hub-shimmer 1.2s linear infinite;
  min-height: 14px;
}

.hub-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--hub-safe-t)) 18px calc(24px + var(--hub-safe-b));
}
.hub-login__card {
  width: min(440px, 100%);
  padding: 40px 30px 30px;
  border-radius: 34px;
  background:
    radial-gradient(420px 180px at 10% -20%, rgba(255, 92, 36, 0.18), transparent 60%),
    linear-gradient(180deg, #fff, #f7f9fc);
  border: 1px solid rgba(18, 21, 28, 0.08);
  box-shadow: var(--hub-shadow);
  position: relative;
  overflow: hidden;
  animation: hub-rise 0.5s var(--hub-ease) both;
}
.hub-login__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--hub-rim);
}
.hub-login__card h1 {
  margin: 0 0 8px;
  font-family: var(--hub-display);
  font-size: clamp(40px, 9vw, 52px);
  letter-spacing: -0.06em;
}
.hub-login__lede {
  margin: 0 0 20px;
  color: var(--hub-muted);
  font-weight: 600;
  line-height: 1.45;
}
.hub-login__error {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--hub-danger);
  font-weight: 750;
  font-size: 14px;
}

.hub-header,
.desk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: calc(16px + var(--hub-safe-t)) 20px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
  box-shadow: 0 10px 40px rgba(12, 16, 28, 0.05);
}
.hub-header__title,
.desk-header .brand,
.hub-header .hub-brand {
  font-family: var(--hub-display);
  font-size: clamp(30px, 5vw, 40px);
  line-height: 0.92;
  margin: 0;
}
.hub-header__sub,
.desk-sub {
  margin-top: 6px;
  color: var(--hub-muted);
  font-size: 13px;
  font-weight: 650;
  max-width: 64ch;
  line-height: 1.35;
}
.hub-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hub-tabs,
.desk-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 20px 8px;
  scrollbar-width: none;
  position: sticky;
  top: 72px;
  z-index: 35;
  background: linear-gradient(180deg, rgba(236, 241, 248, 0.95), rgba(236, 241, 248, 0.72));
  backdrop-filter: blur(14px);
}
.hub-tabs::-webkit-scrollbar,
.desk-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a,
.hub-tabs button,
.desk-tabs a,
.desk-tabs button {
  border: 1px solid rgba(18, 21, 28, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--hub-ink-soft);
  border-radius: 999px;
  padding: 11px 16px;
  min-height: 44px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s var(--hub-ease), background 0.18s var(--hub-ease), color 0.18s var(--hub-ease), box-shadow 0.18s var(--hub-ease);
}
.hub-tabs a:hover,
.desk-tabs a:hover { transform: translateY(-1px); }
.hub-tabs a.active,
.hub-tabs button.active,
.hub-tabs a[aria-current="page"],
.desk-tabs a.active,
.desk-tabs button.active {
  background: linear-gradient(135deg, #151821, #2a3140);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 21, 28, 0.22);
}

.hub-bottom-nav {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + var(--hub-safe-b));
  z-index: 50;
  padding: 8px;
  background: rgba(18, 21, 28, 0.88);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 4px;
}
.hub-bottom-nav a,
.hub-bottom-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  min-height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 4px;
}
.hub-bottom-nav .hub-nav-ico {
  font-size: 16px;
  line-height: 1;
  font-family: var(--hub-display);
}
.hub-bottom-nav a.active,
.hub-bottom-nav button.active,
.hub-bottom-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 92, 36, 0.95), rgba(224, 58, 0, 0.88));
  box-shadow: 0 10px 24px rgba(224, 58, 0, 0.35);
}

.hub-toolbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hub-toolbar::-webkit-scrollbar { display: none; }
.hub-toolbar > * { flex: 0 0 auto; }

.hub-wrap,
.desk-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 32px;
}

.hub-stat-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.hub-stat,
.stat {
  position: relative;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(255, 92, 36, 0.12), transparent 60%),
    linear-gradient(180deg, #fff, #f4f7fb);
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--hub-shadow-soft);
}
.hub-stat::before,
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--hub-rim);
}
.hub-stat b,
.stat b {
  display: block;
  font-family: var(--hub-display);
  font-size: 28px;
  letter-spacing: -0.04em;
}
.hub-stat span,
.stat span {
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--hub-nav-h) + var(--hub-safe-b) + 18px);
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}
.hub-toast {
  pointer-events: auto;
  background: linear-gradient(135deg, #151821, #2a3140);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  box-shadow: var(--hub-shadow);
  animation: hub-rise 0.28s var(--hub-ease) both;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hub-toast--ok { background: linear-gradient(135deg, #0d8a56, #0a6b44); }
.hub-toast--err { background: linear-gradient(135deg, #d12b2b, #9f1c1c); }

.hub-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(6px);
  display: none;
}
.hub-sheet-backdrop.is-open { display: block; }
.hub-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  max-height: min(86dvh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, #fff, #f4f7fb);
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(18px + var(--hub-safe-b));
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(110%);
  transition: transform 0.32s var(--hub-ease);
}
.hub-sheet.is-open { transform: translateY(0); }
.hub-sheet__grab {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #cfd7e3;
  margin: 4px auto 14px;
}
.hub-sheet h2 {
  margin: 0 0 8px;
  font-family: var(--hub-display);
  font-size: 26px;
}

.hub-alarm,
#alarm-banner {
  margin: 0 14px 12px;
  padding: 15px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d12b2b, #ff5c24);
  color: #fff;
  font-weight: 800;
  font-family: var(--hub-display);
  letter-spacing: -0.02em;
  animation: hub-glow 1.8s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hub-offline {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #151821;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-weight: 750;
  font-size: 13px;
  display: none;
}
.hub-offline.is-on { display: block; }

.hub-board,
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 14px 24px;
}
.hub-col,
.col {
  padding: 14px;
  min-height: 220px;
}
.hub-col h2,
.col h2 {
  margin: 0 0 12px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--hub-display);
}
.hub-order-card,
.card {
  border: 1px solid rgba(18, 21, 28, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: var(--hub-shadow-soft);
}
.hub-order-card.overdue,
.card.overdue { box-shadow: inset 0 0 0 2px var(--hub-danger); }
.hub-order-card.tip-hot,
.card.tip-hot { box-shadow: inset 0 0 0 2px var(--hub-ember); }

.hub-muted,
.muted { color: var(--hub-muted); }
.hub-hidden { display: none !important; }
.hub-row,
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.primary {
  background: linear-gradient(135deg, #ff7a3d, var(--hub-ember) 45%, var(--hub-ember-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(224, 58, 0, 0.3);
}
.ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--hub-ink);
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 750;
  box-shadow: var(--hub-shadow-soft);
}
.danger {
  background: #fff;
  color: var(--hub-danger);
  border: 1px solid #f2c3bf;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 750;
}

/* Dark command center */
body.hub-ui.desk-dark,
body.desk-dark.hub-ui {
  --hub-ink: #f4f6fb;
  --hub-ink-soft: #d7dde8;
  --hub-muted: #9aa3b5;
  --hub-line: rgba(255, 255, 255, 0.1);
  --hub-solid: #151a24;
  --hub-surface: rgba(20, 24, 34, 0.82);
  --hub-bg0: #07090e;
  --hub-bg1: #0d1118;
  background:
    radial-gradient(900px 560px at -10% -25%, rgba(255, 92, 36, 0.28), transparent 55%),
    radial-gradient(780px 480px at 110% -5%, rgba(31, 111, 143, 0.22), transparent 52%),
    radial-gradient(520px 360px at 50% 120%, rgba(240, 180, 41, 0.08), transparent 50%),
    linear-gradient(168deg, #10151f 0%, #0a0d13 48%, #07090e 100%);
  color: var(--hub-ink);
}
body.hub-ui.desk-dark::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
body.hub-ui.desk-dark .hub-brand {
  background: linear-gradient(120deg, #fff 8%, #ff8a55 48%, #f0b429 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.hub-ui.desk-dark .hub-header,
body.hub-ui.desk-dark .desk-header,
body.hub-ui.desk-dark .hub-tabs,
body.hub-ui.desk-dark .desk-tabs,
body.hub-ui.desk-dark .hub-card,
body.hub-ui.desk-dark .section-block,
body.hub-ui.desk-dark .hub-login__card,
body.hub-ui.desk-dark .hub-sheet,
body.hub-ui.desk-dark .hub-order-card,
body.hub-ui.desk-dark .card,
body.hub-ui.desk-dark .hub-col,
body.hub-ui.desk-dark .col,
body.hub-ui.desk-dark .panel,
body.hub-ui.desk-dark .hub-stat,
body.hub-ui.desk-dark .stat {
  background:
    linear-gradient(180deg, rgba(28, 34, 48, 0.96), rgba(18, 22, 32, 0.94));
  color: var(--hub-ink);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
body.hub-ui.desk-dark .hub-header,
body.hub-ui.desk-dark .desk-header {
  background: rgba(10, 13, 20, 0.78);
}
body.hub-ui.desk-dark .hub-tabs,
body.hub-ui.desk-dark .desk-tabs {
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.92), rgba(10, 13, 20, 0.7));
}
body.hub-ui.desk-dark .hub-tabs a,
body.hub-ui.desk-dark .desk-tabs a,
body.hub-ui.desk-dark .hub-btn--ghost,
body.hub-ui.desk-dark button.ghost,
body.hub-ui.desk-dark .ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f6fb;
  border-color: rgba(255, 255, 255, 0.1);
}
body.hub-ui.desk-dark .hub-tabs a.active,
body.hub-ui.desk-dark .desk-tabs a.active {
  background: linear-gradient(135deg, #ff7a3d, #e03a00);
  color: #fff;
  box-shadow: 0 12px 28px rgba(224, 58, 0, 0.35);
}
body.hub-ui.desk-dark .hub-input,
body.hub-ui.desk-dark input,
body.hub-ui.desk-dark textarea,
body.hub-ui.desk-dark select {
  background: #0d1118;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
body.hub-ui.desk-dark .hub-stat::before,
body.hub-ui.desk-dark .stat::before,
body.hub-ui.desk-dark .hub-card::before,
body.hub-ui.desk-dark .section-block::before {
  opacity: 1;
}

@media (max-width: 900px) {
  body.hub-ui { padding-bottom: calc(var(--hub-nav-h) + var(--hub-safe-b) + 18px); }
  .hub-tabs,
  .desk-tabs { display: none; }
  .hub-bottom-nav { display: grid; }
  .hub-board,
  .board { grid-template-columns: 1fr; padding-bottom: 8px; }
  .hub-header,
  .desk-header {
    flex-direction: column;
    align-items: stretch;
  }
  .hub-header__actions { justify-content: stretch; }
  .hub-header__actions .hub-btn,
  .hub-header__actions button { flex: 1 1 auto; }
  .hub-wrap,
  .desk-wrap { width: calc(100% - 16px); }
}

@media (min-width: 901px) {
  body.hub-ui { padding-bottom: 36px; }
  .hub-bottom-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-alarm,
  #alarm-banner { animation: none; }
}
