/* ================================================================
   VANDA STUDIO COMMAND CENTER — V.08
   Executive HUD dashboard + expandable request cards + timeline
   ================================================================ */

:root {
  --hud-gold:#f2ca72;
  --hud-gold-rgb:242,202,114;
  --hud-rose:#f487a6;
  --hud-rose-rgb:244,135,166;
  --hud-amber:#f0aa52;
  --hud-amber-rgb:240,170,82;
  --hud-green:#82d694;
  --hud-green-rgb:130,214,148;
  --hud-blue:#78aef6;
  --hud-blue-rgb:120,174,246;
  --hud-neutral:#9b9b96;
  --hud-neutral-rgb:155,155,150;
  --hud-surface:rgba(17,18,16,.72);
  --hud-surface-strong:rgba(22,23,20,.92);
  --hud-border:rgba(255,255,255,.11);
  --hud-grid:rgba(255,255,255,.026);
  --hud-text:#fff7e7;
  --hud-muted:#b8b5ac;
  --hud-radius:22px;
}

/* Global legibility correction for operational text. */
.eyebrow {
  font-size:11.5px;
  line-height:1.35;
  letter-spacing:1.3px;
}

.header-brand p {
  font-size:11.5px;
}

.header-brand strong {
  font-size:16px;
}

.page-heading>div>p:last-child,
.welcome-block>div>p:last-child {
  font-size:13px;
}

.filter-chip,
.text-button,
.back-button,
.search-box input,
.status-pill,
.card-meta,
.action-button,
.request-action,
.bottom-nav span,
.module-card small,
.settings-card small,
.settings-list small,
.finance-legend,
.timeline-event small,
.timeline-event p,
.timeline-time,
.agenda-row p,
.request-card p,
.client-card p {
  font-size:max(11.5px, .72rem);
}

.status-pill {
  min-height:25px;
  padding:0 9px;
  letter-spacing:.42px;
}

.app-view {
  background:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px),
    radial-gradient(circle at 94% 2%, rgba(var(--hud-gold-rgb),.11), transparent 28%),
    radial-gradient(circle at 8% 32%, rgba(var(--hud-blue-rgb),.045), transparent 28%),
    linear-gradient(180deg,#070806 0,#030302 100%);
  background-size:34px 34px,34px 34px,auto,auto,auto;
}

.app-header {
  height:calc(82px + var(--safe-top));
  padding:var(--safe-top) 18px 11px;
  background:linear-gradient(180deg,rgba(3,3,2,.995),rgba(3,3,2,.93) 72%,rgba(3,3,2,0));
}

.app-main {
  padding-top:calc(90px + var(--safe-top));
}

.header-alert,
.soft-button {
  border-color:rgba(var(--hud-gold-rgb),.22);
  background:rgba(15,15,13,.68);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 0 24px rgba(var(--hud-gold-rgb),.05);
}

/* Tone system: color is semantic, never a solid card fill. */
.tone-rose { --tone:var(--hud-rose); --tone-rgb:var(--hud-rose-rgb); }
.tone-amber { --tone:var(--hud-amber); --tone-rgb:var(--hud-amber-rgb); }
.tone-green { --tone:var(--hud-green); --tone-rgb:var(--hud-green-rgb); }
.tone-blue { --tone:var(--hud-blue); --tone-rgb:var(--hud-blue-rgb); }
.tone-gold { --tone:var(--hud-gold); --tone-rgb:var(--hud-gold-rgb); }
.tone-neutral { --tone:var(--hud-neutral); --tone-rgb:var(--hud-neutral-rgb); }

/* ========================= DASHBOARD ========================= */
.dashboard-page {
  padding-top:12px;
}

.dashboard-hero {
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:13px;
  padding:8px 0 2px;
}

.dashboard-hero::before {
  content:"";
  position:absolute;
  left:-16px;
  top:-12px;
  width:150px;
  height:120px;
  pointer-events:none;
  background:radial-gradient(circle,rgba(var(--hud-gold-rgb),.07),transparent 66%);
}

.dashboard-welcome {
  min-width:0;
  position:relative;
}

.dashboard-welcome h1 {
  margin:0;
  font-size:clamp(38px,10.8vw,52px);
  line-height:.98;
  letter-spacing:-1.5px;
}

.dashboard-welcome h1 span {
  font-family:"Great Vibes",cursive;
  color:var(--hud-gold);
  font-size:1.23em;
  font-weight:400;
  letter-spacing:0;
  text-shadow:0 0 22px rgba(var(--hud-gold-rgb),.12);
}

.dashboard-welcome>p:last-child {
  margin:14px 0 0;
  color:var(--hud-muted);
  font-size:14px;
  line-height:1.5;
}

.dashboard-refresh {
  margin-top:8px;
  width:48px;
  height:48px;
  border-radius:17px;
}

.dashboard-live-strip {
  min-height:40px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
  padding:9px 12px;
  border:1px solid rgba(var(--hud-green-rgb),.19);
  border-radius:14px;
  background:linear-gradient(90deg,rgba(var(--hud-green-rgb),.055),rgba(255,255,255,.014));
  color:var(--hud-muted);
  font-size:12px;
}

.dashboard-live-strip strong {
  color:var(--hud-green);
  font-size:12px;
}

.live-dot {
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--hud-green);
  box-shadow:0 0 0 4px rgba(var(--hud-green-rgb),.08),0 0 14px rgba(var(--hud-green-rgb),.42);
  animation:livePulse 2.2s ease-in-out infinite;
}

.priority-panel {
  --tone:var(--hud-rose);
  --tone-rgb:var(--hud-rose-rgb);
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:14px;
  padding:18px;
  border:1px solid rgba(var(--tone-rgb),.44);
  border-radius:24px;
  background:
    linear-gradient(145deg,rgba(var(--tone-rgb),.085),rgba(13,14,12,.82) 48%,rgba(7,8,7,.94)),
    var(--hud-surface);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 18px 44px rgba(0,0,0,.34),
    0 0 32px rgba(var(--tone-rgb),.085);
}

.priority-panel::before {
  content:"";
  position:absolute;
  z-index:-1;
  width:190px;
  height:190px;
  right:-74px;
  top:-86px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(var(--tone-rgb),.14),transparent 67%);
}

.priority-panel::after {
  content:"";
  position:absolute;
  z-index:-1;
  left:18px;
  right:18px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--tone),transparent);
  opacity:.55;
}

.priority-orbit {
  position:relative;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:var(--tone);
  background:rgba(var(--tone-rgb),.075);
  border:1px solid rgba(var(--tone-rgb),.48);
  box-shadow:0 0 22px rgba(var(--tone-rgb),.12);
}

.priority-orbit::after {
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(var(--tone-rgb),.14);
}

.priority-copy {
  min-width:0;
}

.priority-copy .eyebrow {
  color:var(--tone);
}

.priority-copy h2 {
  margin:2px 0 0;
  color:var(--hud-text);
  font-size:20px;
  line-height:1.2;
}

.priority-copy>p:not(.eyebrow) {
  margin:7px 0 0;
  color:var(--hud-muted);
  font-size:13px;
  line-height:1.48;
}

.priority-meta {
  display:block;
  margin-top:9px;
  color:rgba(var(--tone-rgb),.92);
  font-size:11.5px;
  font-weight:700;
}

.priority-action {
  grid-column:1/-1;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(var(--tone-rgb),.43);
  background:rgba(var(--tone-rgb),.075);
  color:var(--hud-text);
  font-size:14px;
  font-weight:800;
}

.priority-action .icon {
  color:var(--tone);
}

.dashboard-section {
  margin-top:26px;
}

.dashboard-heading {
  align-items:flex-end;
  margin-bottom:12px;
}

.dashboard-heading h2 {
  font-size:21px;
}

.dashboard-caption {
  color:var(--hud-muted);
  font-size:11.5px;
  text-align:right;
}

.hud-summary-grid {
  gap:11px;
}

.hud-card {
  --tone:var(--hud-gold);
  --tone-rgb:var(--hud-gold-rgb);
  position:relative;
  isolation:isolate;
  min-height:142px;
  padding:14px;
  border:1px solid rgba(var(--tone-rgb),.32);
  border-radius:21px;
  background:
    linear-gradient(145deg,rgba(var(--tone-rgb),.065),rgba(16,17,15,.75) 54%,rgba(8,9,8,.9)),
    var(--hud-surface);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),0 14px 34px rgba(0,0,0,.28),0 0 26px rgba(var(--tone-rgb),.04);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.hud-card::before {
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--tone),transparent);
  opacity:.66;
}

.hud-card:active {
  transform:scale(.985);
}

.hud-card:focus-visible {
  outline:2px solid var(--tone);
}

.hud-card-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--tone-rgb),.36);
  border-radius:12px;
  color:var(--tone);
  background:rgba(var(--tone-rgb),.06);
}

.hud-card-icon .icon {
  width:18px;
  height:18px;
}

.hud-card-label {
  margin-top:12px;
  color:var(--hud-muted)!important;
  font-size:12px!important;
  font-weight:600;
}

.hud-card strong {
  margin-top:5px;
  color:var(--tone);
  font-size:34px;
  text-shadow:0 0 20px rgba(var(--tone-rgb),.14);
}

.hud-card small {
  margin-top:auto;
  padding-top:8px;
  color:var(--hud-text);
  font-size:11.5px;
  line-height:1.3;
}

.hud-chevron {
  position:absolute;
  right:12px;
  bottom:12px;
  width:16px;
  color:var(--tone);
  opacity:.72;
}

.agenda-preview-meta {
  display:inline-flex;
  min-height:29px;
  align-items:center;
  margin:-2px 0 10px;
  padding:0 10px;
  border:1px solid rgba(var(--hud-blue-rgb),.2);
  border-radius:999px;
  color:var(--hud-blue);
  background:rgba(var(--hud-blue-rgb),.045);
  font-size:11.5px;
  font-weight:700;
}

.dashboard-agenda-list {
  gap:9px;
}

.dashboard-agenda-list .agenda-row {
  grid-template-columns:56px minmax(0,1fr) auto;
  min-height:76px;
  padding:12px 13px;
  border-color:rgba(var(--row-tone-rgb,var(--hud-blue-rgb)),.22);
  background:linear-gradient(100deg,rgba(var(--row-tone-rgb,var(--hud-blue-rgb)),.045),rgba(13,14,12,.78));
}

.dashboard-agenda-list .agenda-row::before {
  content:"";
  position:absolute;
  left:0;
  top:15px;
  bottom:15px;
  width:2px;
  border-radius:999px;
  background:var(--row-tone,var(--hud-blue));
  box-shadow:0 0 12px rgba(var(--row-tone-rgb,var(--hud-blue-rgb)),.4);
}

.agenda-row time {
  font-size:15px;
}

.agenda-row strong {
  font-size:15px;
}

.dashboard-assistant-card {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 38px;
  align-items:center;
  gap:12px;
  margin-top:22px;
  padding:14px;
  border:1px solid rgba(var(--hud-gold-rgb),.2);
  border-radius:18px;
  background:linear-gradient(110deg,rgba(var(--hud-gold-rgb),.055),rgba(255,255,255,.016));
}

.assistant-spark {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid rgba(var(--hud-gold-rgb),.35);
  color:var(--hud-gold);
  background:rgba(var(--hud-gold-rgb),.055);
}

.dashboard-assistant-card strong {
  display:block;
  color:var(--hud-text);
  font-size:13px;
  line-height:1.4;
}

.dashboard-assistant-card>button {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid var(--hud-border);
  background:rgba(255,255,255,.025);
  color:var(--hud-gold);
}

.dashboard-empty {
  min-height:106px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px dashed rgba(var(--hud-blue-rgb),.24);
  border-radius:18px;
  background:rgba(var(--hud-blue-rgb),.025);
}

.dashboard-empty-icon {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:var(--hud-blue);
  border:1px solid rgba(var(--hud-blue-rgb),.28);
  background:rgba(var(--hud-blue-rgb),.045);
}

.dashboard-empty strong {
  font-size:15px;
}

.dashboard-empty p {
  margin:3px 0 0;
  color:var(--hud-muted);
  font-size:12px;
}

.dashboard-empty button {
  min-height:38px;
  padding:0 10px;
  border-radius:11px;
  border:1px solid rgba(var(--hud-blue-rgb),.3);
  color:var(--hud-blue);
  background:rgba(var(--hud-blue-rgb),.05);
  font-size:12px;
  font-weight:800;
}

/* ====================== EXPANDABLE REQUESTS ====================== */
.request-list-helper {
  margin:0 0 12px;
  color:var(--hud-muted);
  font-size:12px;
  line-height:1.45;
}

.request-card-rich {
  --request-tone:var(--hud-gold);
  --request-tone-rgb:var(--hud-gold-rgb);
  border-color:rgba(var(--request-tone-rgb),.25);
  background:linear-gradient(145deg,rgba(var(--request-tone-rgb),.04),rgba(10,11,9,.94));
  box-shadow:0 16px 38px rgba(0,0,0,.28),0 0 28px rgba(var(--request-tone-rgb),.035);
  overflow:visible;
}

.request-card-rich.request-tone-new {
  --request-tone:var(--hud-rose);
  --request-tone-rgb:var(--hud-rose-rgb);
}

.request-card-rich.request-tone-waiting {
  --request-tone:var(--hud-amber);
  --request-tone-rgb:var(--hud-amber-rgb);
}

.request-card-rich.request-tone-confirmed {
  --request-tone:var(--hud-green);
  --request-tone-rgb:var(--hud-green-rgb);
}

.request-card-rich.request-tone-info {
  --request-tone:var(--hud-blue);
  --request-tone-rgb:var(--hud-blue-rgb);
}

.request-card-summary {
  width:100%;
  position:relative;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:15px;
  border-radius:20px;
  background:transparent;
  color:var(--hud-text);
  text-align:left;
}

.request-card-summary::before {
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--request-tone),transparent);
  opacity:.65;
}

.request-card-summary:focus-visible {
  outline:2px solid var(--request-tone);
  outline-offset:2px;
}

.request-card-summary .appointment-sequence,
.request-card-summary .request-select-toggle {
  width:54px;
  min-height:54px;
  border-color:rgba(var(--request-tone-rgb),.38);
  color:var(--request-tone);
  background:radial-gradient(circle at 50% 12%,rgba(var(--request-tone-rgb),.12),rgba(9,9,7,.9));
  font-size:23px;
}

.request-card-summary-main {
  min-width:0;
}

.request-summary-topline {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:5px;
}

.request-summary-topline .request-group-count {
  color:var(--request-tone);
  border-color:rgba(var(--request-tone-rgb),.26);
  background:rgba(var(--request-tone-rgb),.065);
  font-size:11.5px;
}

.request-card-summary h3 {
  margin:0;
  font-size:18px;
  line-height:1.2;
}

.request-summary-meta {
  margin-top:6px;
  color:var(--hud-muted);
  font-size:12px;
  line-height:1.4;
}

.request-summary-meta strong {
  display:inline;
  color:var(--hud-text);
  font-size:12px;
}

.request-summary-price {
  display:block;
  margin-top:8px;
  color:var(--request-tone);
  font-size:17px;
  font-weight:800;
}

.request-summary-side {
  min-width:63px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:9px;
}

.request-summary-side time {
  color:var(--hud-muted);
  font-size:11.5px;
  white-space:nowrap;
}

.request-expand-icon {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:var(--request-tone);
  border:1px solid rgba(var(--request-tone-rgb),.26);
  background:rgba(var(--request-tone-rgb),.045);
}

.request-expand-icon .icon {
  width:17px;
  height:17px;
}

.request-card-details {
  padding:0 15px 15px;
  border-top:1px solid rgba(var(--request-tone-rgb),.16);
}

.request-card-details[hidden],
.request-segment-details[hidden] {
  display:none!important;
}

.request-general-info {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:13px 0;
}

.request-general-info strong {
  font-size:14px;
}

.request-general-info p {
  margin:4px 0 0;
  color:var(--hud-muted);
  font-size:12px;
}

.request-whatsapp {
  min-height:40px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 12px;
  border-radius:12px;
  color:var(--hud-green);
  border:1px solid rgba(var(--hud-green-rgb),.32);
  background:rgba(var(--hud-green-rgb),.055);
  font-size:12px;
  font-weight:800;
}

.request-general-note {
  margin:0 0 12px;
  padding:12px;
  border-left:2px solid var(--request-tone);
  border-radius:0 13px 13px 0;
  background:rgba(var(--request-tone-rgb),.04);
}

.request-general-note span {
  color:var(--request-tone);
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.55px;
  text-transform:uppercase;
}

.request-general-note p {
  margin:5px 0 0;
  color:var(--hud-muted);
  font-size:12px;
  line-height:1.5;
}

.request-segments {
  display:grid;
  gap:9px;
}

.request-segment {
  padding:0;
  overflow:visible;
  border:1px solid rgba(255,255,255,.095);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}

.request-segment + .request-segment {
  border-top:1px solid rgba(255,255,255,.095);
  box-shadow:none;
}

.request-segment-summary {
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:15px;
  background:transparent;
  color:var(--hud-text);
  text-align:left;
}

.request-segment-summary:focus-visible {
  outline:2px solid var(--request-tone);
  outline-offset:2px;
}

.segment-summary-title {
  min-width:0;
}

.segment-order {
  margin:0 0 3px;
  color:var(--request-tone);
  font-size:11.5px;
}

.segment-summary-title h4 {
  margin:0;
  font-size:16px;
  line-height:1.25;
}

.segment-summary-service {
  margin-top:4px;
  color:var(--hud-muted);
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.segment-summary-schedule {
  margin-top:5px;
  color:var(--hud-text);
  font-size:12px;
}

.segment-summary-side {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.segment-summary-side strong {
  color:var(--request-tone);
  font-size:17px;
}

.segment-summary-toggle {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--request-tone-rgb),.22);
  border-radius:9px;
  color:var(--request-tone);
  background:rgba(var(--request-tone-rgb),.04);
}

.request-segment-details {
  padding:0 12px 12px;
}

.segment-service-list {
  margin:0 0 9px;
  padding:10px 11px;
  border-radius:12px;
}

.segment-service-row {
  font-size:13px;
  line-height:1.45;
}

.segment-information {
  gap:7px;
}

.segment-info {
  padding:10px 11px;
  border-radius:12px;
}

.segment-info span,
.segment-note>span {
  font-size:11.5px;
}

.segment-info strong {
  font-size:13px;
}

.segment-info.segment-price strong {
  font-size:17px;
}

.segment-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;
  gap:7px;
  padding:11px 0 0;
}

.request-action {
  min-height:44px;
  border-radius:12px;
  font-size:14px;
}

.request-action span {
  white-space:nowrap;
}

.segment-menu {
  position:relative;
}

.segment-menu summary {
  list-style:none;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--hud-gold-rgb),.26);
  border-radius:12px;
  color:var(--hud-gold);
  background:rgba(var(--hud-gold-rgb),.04);
  cursor:pointer;
}

.segment-menu summary::-webkit-details-marker {
  display:none;
}

.segment-menu-panel {
  position:absolute;
  z-index:12;
  right:0;
  bottom:50px;
  min-width:150px;
  padding:6px;
  border:1px solid rgba(var(--hud-rose-rgb),.25);
  border-radius:13px;
  background:rgba(10,10,9,.985);
  box-shadow:0 18px 45px rgba(0,0,0,.58);
}

.segment-menu-panel button {
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
  border-radius:9px;
  background:rgba(var(--hud-rose-rgb),.045);
  color:var(--danger);
  font-size:12px;
  font-weight:800;
}

.request-group-summary {
  margin-top:12px;
  min-height:54px;
  padding:11px 12px;
  border:1px solid rgba(var(--request-tone-rgb),.18);
  border-radius:13px;
  background:rgba(var(--request-tone-rgb),.035);
}

.request-group-summary span {
  font-size:12px;
}

.request-group-summary strong {
  color:var(--request-tone);
  font-size:20px;
}

.request-card-rich.is-selection-mode .request-card-summary {
  cursor:default;
}

/* ====================== OPERATIONAL TIMELINE ===================== */
.agenda-hud-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:-2px 0 13px;
}

.agenda-hud-chip {
  --tone:var(--hud-blue);
  --tone-rgb:var(--hud-blue-rgb);
  min-height:62px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:10px;
  border:1px solid rgba(var(--tone-rgb),.25);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(var(--tone-rgb),.055),rgba(255,255,255,.014));
}

.agenda-hud-chip span {
  color:var(--hud-muted);
  font-size:11.5px;
}

.agenda-hud-chip strong {
  margin-top:2px;
  color:var(--tone);
  font-size:22px;
  line-height:1;
}

.timeline {
  gap:0;
  padding-bottom:14px;
}

.timeline-card {
  --timeline-tone:var(--hud-blue);
  --timeline-tone-rgb:var(--hud-blue-rgb);
  grid-template-columns:52px minmax(0,1fr);
  gap:13px;
  position:relative;
  padding-bottom:12px;
}

.timeline-card.timeline-new {
  --timeline-tone:var(--hud-rose);
  --timeline-tone-rgb:var(--hud-rose-rgb);
}

.timeline-card.timeline-waiting {
  --timeline-tone:var(--hud-amber);
  --timeline-tone-rgb:var(--hud-amber-rgb);
}

.timeline-card.timeline-confirmed {
  --timeline-tone:var(--hud-green);
  --timeline-tone-rgb:var(--hud-green-rgb);
}

.timeline-card.timeline-info {
  --timeline-tone:var(--hud-blue);
  --timeline-tone-rgb:var(--hud-blue-rgb);
}

.timeline-time {
  padding-top:17px;
  color:var(--hud-text);
  font-size:13px;
  font-weight:800;
}

.timeline-event {
  min-height:104px;
  padding:14px;
  overflow:visible;
  border-color:rgba(var(--timeline-tone-rgb),.29);
  border-radius:18px;
  background:linear-gradient(120deg,rgba(var(--timeline-tone-rgb),.065),rgba(14,15,13,.84));
  box-shadow:0 12px 30px rgba(0,0,0,.25),0 0 22px rgba(var(--timeline-tone-rgb),.035);
  color:var(--hud-text);
  text-align:left;
}

.timeline-event::before {
  left:-14px;
  bottom:-13px;
  background:linear-gradient(var(--timeline-tone),rgba(var(--timeline-tone-rgb),.12));
}

.timeline-event::after {
  left:-18px;
  top:20px;
  width:9px;
  height:9px;
  background:var(--timeline-tone);
  box-shadow:0 0 0 5px rgba(var(--timeline-tone-rgb),.08),0 0 15px rgba(var(--timeline-tone-rgb),.42);
}

.timeline-event-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.timeline-event strong {
  font-size:16px;
}

.timeline-event p {
  margin-top:6px;
  color:var(--hud-muted);
  font-size:12px;
  line-height:1.4;
}

.timeline-event-bottom {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:11px;
}

.timeline-event-price {
  color:var(--timeline-tone);
  font-size:15px;
  font-weight:800;
}

.timeline-event-open {
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--timeline-tone);
  font-size:11.5px;
  font-weight:800;
}

/* =========================== NAVIGATION ========================== */
.bottom-nav {
  background:linear-gradient(180deg,rgba(3,3,2,.75),rgba(3,3,2,.985) 28%);
  border-top:1px solid rgba(var(--hud-gold-rgb),.12);
  backdrop-filter:blur(18px);
}

.bottom-nav button {
  min-height:64px;
}

.bottom-nav span {
  font-size:11.5px;
}

.bottom-nav button.active {
  color:var(--hud-gold);
}

.bottom-nav button.active::before {
  content:"";
  position:absolute;
  top:3px;
  width:24px;
  height:2px;
  border-radius:999px;
  background:var(--hud-gold);
  box-shadow:0 0 12px rgba(var(--hud-gold-rgb),.5);
}

/* Ensure common modules never return to 8–10px operational text. */
.module-card strong,
.communication-card h3,
.professional-card h3,
.alert-card h3 {
  font-size:14px;
}

.communication-card p,
.professional-card p,
.alert-card p,
.availability-card p,
.settings-list strong,
.finance-line,
.finance-card header strong {
  font-size:12px;
}

@keyframes livePulse {
  0%,100% { transform:scale(1); opacity:1; }
  50% { transform:scale(.82); opacity:.68; }
}

@media(min-width:600px) {
  .priority-panel {
    grid-template-columns:58px minmax(0,1fr) auto;
    align-items:center;
  }
  .priority-action {
    grid-column:auto;
    min-width:150px;
  }
  .hud-summary-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .request-card-summary {
    grid-template-columns:58px minmax(0,1fr) auto;
  }
}

@media(max-width:380px) {
  .dashboard-welcome h1 {
    font-size:36px;
  }
  .priority-panel {
    grid-template-columns:46px minmax(0,1fr);
    padding:15px;
  }
  .priority-orbit {
    width:46px;
    height:46px;
  }
  .hud-card {
    min-height:134px;
    padding:12px;
  }
  .hud-card strong {
    font-size:31px;
  }
  .request-card-summary {
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:9px;
    padding:12px;
  }
  .request-card-summary .appointment-sequence,
  .request-card-summary .request-select-toggle {
    width:48px;
    min-height:48px;
    font-size:20px;
  }
  .request-card-summary h3 {
    font-size:17px;
  }
  .request-summary-side {
    min-width:54px;
  }
  .segment-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;
  }
  .request-action {
    font-size:12px;
    padding:0 6px;
  }
  .request-action .icon {
    display:none;
  }
  .agenda-hud-chip {
    padding:8px;
  }
  .agenda-hud-chip span {
    font-size:10.5px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .live-dot {
    animation:none;
  }
}

.request-summary-toggle {
  min-width:0;
  width:100%;
  padding:0;
  background:transparent;
  color:inherit;
  text-align:left;
}

.request-summary-toggle:focus-visible {
  outline:2px solid var(--request-tone);
  outline-offset:4px;
  border-radius:10px;
}

.request-card-details .group-tags {
  padding:0 0 12px;
  border-bottom:0;
}

/* Tone declarations are repeated last so component defaults never override semantics. */
.tone-rose { --tone:var(--hud-rose); --tone-rgb:var(--hud-rose-rgb); }
.tone-amber { --tone:var(--hud-amber); --tone-rgb:var(--hud-amber-rgb); }
.tone-green { --tone:var(--hud-green); --tone-rgb:var(--hud-green-rgb); }
.tone-blue { --tone:var(--hud-blue); --tone-rgb:var(--hud-blue-rgb); }
.tone-gold { --tone:var(--hud-gold); --tone-rgb:var(--hud-gold-rgb); }
.tone-neutral { --tone:var(--hud-neutral); --tone-rgb:var(--hud-neutral-rgb); }

.request-summary-meta,
.request-summary-price {
  display:block;
}
