/* Admin panel additions: Storage Positions redesign, world clocks, the six
   animated dashboard overview widgets, and the new Loading/Transportation/
   Notifications/Reports pages. Kept in its own file (like engineered-
   density.css) rather than growing pages.css indefinitely. Reuses the
   site's existing --accent/--surface/--text tokens so it matches the rest
   of the admin panel rather than introducing a new palette. */

/* ---- Storage Positions: filter bar / status chips / bulk bar ---- */
.awh-filter-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.awh-status-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.awh-status-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 18px;
  border: 1px solid var(--border-2); background: var(--surface-1); color: var(--text-2);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.awh-status-chip:hover { border-color: var(--border-strong); color: var(--text-0); }
.awh-status-chip.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-strong); }
.awh-chip-count { font-family: var(--font-mono); font-size: 11px; opacity: 0.8; }
.awh-filter-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.awh-search-wrap {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); background: var(--surface-1); color: var(--text-3);
}
.awh-search-wrap input { border: none; background: transparent; padding: 8px 0; font-size: 13px; color: var(--text-0); outline: none; width: 190px; }
.awh-bulk-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  padding: 12px 16px; margin-bottom: var(--sp-3); background: var(--accent-bg); border: 1px solid var(--accent-border, var(--accent));
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-0); animation: awh-bulk-in 0.2s ease;
}
@keyframes awh-bulk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.awh-select-all-row { margin-bottom: 10px; }
@media (max-width: 720px) {
  .awh-search-wrap input { width: 130px; }
}

/* ---- World clocks widget ---- */
.awc-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: var(--sp-3); }
.awc-clock {
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 14px; text-align: center; position: relative; overflow: hidden;
}
.awc-clock.awc-hq { border-color: var(--accent); background: var(--accent-bg); }
.awc-clock-city { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 8px; }
.awc-clock.awc-hq .awc-clock-city { color: var(--accent-strong); }
.awc-clock-face { width: 56px; height: 56px; margin: 0 auto 8px; position: relative; border-radius: 50%; border: 2px solid var(--border-2); background: var(--surface-2); }
.awc-clock.awc-hq .awc-clock-face { border-color: var(--accent); }
.awc-hand { position: absolute; left: 50%; bottom: 50%; transform-origin: bottom center; background: var(--text-0); border-radius: 2px; }
.awc-hand-hour { width: 3px; height: 15px; margin-left: -1.5px; }
.awc-hand-minute { width: 2px; height: 21px; margin-left: -1px; background: var(--text-1); }
.awc-hand-second { width: 1px; height: 24px; margin-left: -0.5px; background: var(--accent); }
.awc-clock-center { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--accent); }
.awc-clock-time { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--text-0); }
.awc-clock-date { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.awc-clock-daynight { position: absolute; top: 10px; right: 10px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .awc-hand { transition: none !important; } }

/* ---- Six animated overview widgets ---- */
.aov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-6); }
@media (max-width: 1180px) { .aov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .aov-grid { grid-template-columns: 1fr; } }
.aov-card {
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  animation: aov-in 0.4s ease both;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
/* Hover lift + accent glow — the dashboard's own widgets already animate in
   on load; this makes them respond to the cursor too, instead of sitting
   dead once rendered. */
.aov-card:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(226,166,59,0.08); }
.aov-card:nth-child(1) { animation-delay: 0.02s; } .aov-card:nth-child(2) { animation-delay: 0.06s; }
.aov-card:nth-child(3) { animation-delay: 0.1s; } .aov-card:nth-child(4) { animation-delay: 0.14s; }
.aov-card:nth-child(5) { animation-delay: 0.18s; } .aov-card:nth-child(6) { animation-delay: 0.22s; }
@keyframes aov-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aov-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aov-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.aov-title-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-strong); flex-shrink: 0; }
.aov-delta { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.aov-delta.up { color: var(--status-available); background: var(--status-available-bg); }
.aov-delta.down { color: var(--status-occupied, #e5484d); background: var(--status-occupied-bg, rgba(229,72,77,0.12)); }
.aov-delta.flat { color: var(--text-3); background: var(--surface-2); }
.aov-big { font-family: var(--font-display); font-size: 30px; color: var(--text-0); line-height: 1; }
.aov-sub { font-size: 12px; color: var(--text-3); }

/* Widget 1: occupancy gauge (semi-circle arc) */
.aov-gauge-wrap { display: flex; align-items: center; gap: var(--sp-4); }
.aov-gauge-svg circle { transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1); }

/* Widget 2: revenue trend sparkline */
.aov-spark-svg polyline { stroke-dasharray: 400; stroke-dashoffset: 400; animation: aov-draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: 0.3s; }
@keyframes aov-draw { to { stroke-dashoffset: 0; } }

/* Widget 3: booking pipeline funnel bars */
.aov-pipeline-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.aov-pipeline-track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.aov-pipeline-fill { height: 100%; border-radius: 4px; background: var(--accent); width: 0; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.aov-pipeline-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-0); min-width: 22px; text-align: right; }

/* Widget 4: payment status donut segments */
.aov-donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.aov-donut-legend-row { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.aov-donut-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.aov-donut-svg circle { transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1); }

/* Widget 5: quotation funnel */
.aov-funnel-row { display: flex; align-items: center; gap: 8px; }
.aov-funnel-bar {
  height: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  width: 0; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; padding-left: 8px;
  font-size: 10.5px; font-weight: 700; color: #06101f; white-space: nowrap; min-width: 26px;
}
.aov-funnel-label { font-size: 11px; color: var(--text-3); width: 76px; flex-shrink: 0; text-align: right; }

/* Widget 6: leaderboard */
.aov-leader-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.aov-leader-rank {
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--text-2);
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.aov-leader-row:nth-child(1) .aov-leader-rank { background: var(--accent); color: #06101f; }
.aov-leader-name { flex: 1; font-size: 12.5px; color: var(--text-1); }
.aov-leader-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-0); }

@media (prefers-reduced-motion: reduce) {
  .aov-card { animation: none; }
  .aov-gauge-svg circle, .aov-spark-svg polyline, .aov-pipeline-fill, .aov-donut-svg circle, .aov-funnel-bar { animation: none !important; transition: none !important; }
}

/* ---- Simple admin list pages (Loading, Transportation, Notifications, Reports) ---- */
.aov-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-1); }
.notif-row > svg { flex-shrink: 0; }
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { background: linear-gradient(90deg, var(--accent-bg), transparent); margin: 0 -12px; padding: 14px 12px; border-radius: var(--radius-sm); }
.notif-row.pri-high { box-shadow: inset 3px 0 0 var(--accent-strong); }
.notif-row.pri-critical { box-shadow: inset 3px 0 0 var(--danger); }
.notif-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-row.unread .notif-icon { background: var(--accent-bg); color: var(--accent-strong); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13.5px; color: var(--text-0); font-weight: 600; margin-bottom: 2px; }
.notif-msg { font-size: 12.5px; color: var(--text-2); }
.notif-time { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.report-card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.report-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); flex-wrap: wrap; gap: 10px; }

/* =====================================================================
   Dashboard tab bar (GENERAL / STATISTICS / AI INTELLIGENCE) — the
   General tab is the original AdminOverview content, untouched, just
   moved under a tab. Statistics and AI Intelligence are new "levels of
   management intelligence" per the architecture plan: what's happening
   now vs. how the business is performing vs. what the data suggests is
   coming next. Every number either tab shows comes from
   GET /api/admin/dashboard/statistics or /intelligence (see
   server/routes/admin_statistics.php) — nothing here is simulated.
   ===================================================================== */
.dash-tabs { display: flex; justify-content: center; gap: 4px; border-bottom: 1px solid var(--border-1); margin-bottom: var(--sp-5); }
.dash-tab {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--text-2); font-family: var(--font-display);
  font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dash-tab:hover { color: var(--text-0); }
.dash-tab.active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.dash-tab-sub { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.dash-tab.active .dash-tab-sub { color: var(--text-2); }
.dash-tab-icon { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.dash-tab.active .dash-tab-icon { background: var(--accent-bg); color: var(--accent-strong); }
.dash-tab.ai.active .dash-tab-icon { background: rgba(95,147,201,0.18); color: var(--status-reserved); }
.dash-tab.ai.active { color: var(--status-reserved); border-bottom-color: var(--status-reserved); }
.dash-tab-panel { animation: dash-panel-in 0.35s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes dash-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Period selector ---- */
.dash-period-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.dash-period-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-period-chip {
  padding: 6px 13px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface-1);
  color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
}
.dash-period-chip:hover { border-color: var(--border-strong); color: var(--text-0); }
.dash-period-chip.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-strong); }
.dash-period-label { font-size: 12px; color: var(--text-3); }

/* ---- Executive KPI grid ---- */
.exec-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.exec-kpi-card {
  position: relative; background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 18px; overflow: hidden; animation: aov-in 0.4s ease both;
}
.exec-kpi-card::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--accent-bg), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.exec-kpi-card:hover::before { opacity: 1; }
.exec-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 8px; }
.exec-kpi-value { font-family: var(--font-display); font-size: 28px; color: var(--text-0); line-height: 1; }
.exec-kpi-value .unit { font-size: 14px; color: var(--text-2); margin-left: 4px; }
.exec-kpi-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.exec-kpi-delta.up { color: var(--status-available); background: var(--status-available-bg); }
.exec-kpi-delta.down { color: var(--danger); background: rgba(224,86,76,0.12); }
.exec-kpi-delta.flat { color: var(--text-3); background: var(--surface-2); }
.exec-kpi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ---- Collapsible detail sections ---- */
.exec-section { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); margin-bottom: var(--sp-4); overflow: hidden; }
.exec-section-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px;
  background: none; border: none; cursor: pointer; text-align: left; color: var(--text-0);
}
.exec-section-head:hover { background: var(--surface-2); }
.exec-section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; }
.exec-section-title-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--accent-bg); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exec-section-chevron { transition: transform 0.2s ease; color: var(--text-3); }
.exec-section.open .exec-section-chevron { transform: rotate(180deg); }
.exec-section-body { padding: 0 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-4); }
/* Warehouse Performance's metric row sits below a `gridColumn: 1/-1` ring
   row. That full-span ring row keeps every auto-fit track "occupied" (a
   spanning item touches all of them), so the empty trailing tracks never
   collapse the way auto-fit normally would — the 5 real metrics end up
   packed into the first few tracks with a large empty gap on the right
   instead of being centered. Giving them their own nested row (fixed-max
   column width + justify-content: center) sidesteps that entirely. */
.wi-metric-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 220px)); justify-content: center; gap: var(--sp-4); }
.exec-metric { padding: 12px 0; border-top: 1px solid var(--border-1); }
.exec-metric-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.exec-metric-value { font-family: var(--font-mono); font-size: 18px; color: var(--text-0); }
.exec-metric-cmp { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.exec-metric-cmp .up { color: var(--status-available); } .exec-metric-cmp .down { color: var(--danger); }

/* ---- Management summary panel ---- */
.exec-summary-panel {
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2)); border: 1px solid var(--accent-border);
  border-radius: var(--radius-md); padding: 20px 22px; margin-top: var(--sp-5); position: relative;
}
.exec-summary-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-strong); margin-bottom: 8px; }
.exec-summary-text { font-size: 14px; line-height: 1.6; color: var(--text-1); }
.exec-insufficient { font-size: 12.5px; color: var(--text-3); font-style: italic; padding: 20px; text-align: center; }

/* =====================================================================
   AI Intelligence tab — deliberately different visual register from
   Statistics: cool blue/info accent instead of amber, a glowing animated
   border on the hero summary, pulsing severity dots. Still built entirely
   from GET /api/admin/dashboard/intelligence's real, rule-based output.
   ===================================================================== */
.ai-hero {
  position: relative; border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: var(--sp-5);
  background: linear-gradient(135deg, rgba(95,147,201,0.14), rgba(18,24,33,0.6)); border: 1px solid rgba(95,147,201,0.35);
  overflow: hidden;
}
.ai-hero::before {
  content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(95,147,201,0.25), transparent 30%);
  animation: ai-rotate 8s linear infinite; opacity: 0.5; pointer-events: none;
}
@keyframes ai-rotate { to { transform: rotate(360deg); } }
.ai-hero-inner { position: relative; z-index: 1; }
.ai-hero-inner-split { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }
.ai-hero-inner-split > div:first-child { flex: 1; min-width: 0; }
.ai-hero-ring { flex-shrink: 0; }
@media (max-width: 860px) {
  .ai-hero-inner-split { flex-direction: column; align-items: flex-start; }
  .ai-hero-ring { align-self: center; }
}
.ai-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px;
  background: rgba(95,147,201,0.18); border: 1px solid rgba(95,147,201,0.4); color: var(--status-reserved);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.ai-hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-reserved); animation: ai-pulse 1.8s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(95,147,201,0.5); } 50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(95,147,201,0); } }
.ai-hero-title { font-family: var(--font-display); font-size: 22px; color: var(--text-0); margin-bottom: 10px; letter-spacing: 0.01em; }
.ai-hero-summary { font-size: 14.5px; line-height: 1.65; color: var(--text-1); max-width: 900px; }

.ai-section-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-2); margin: var(--sp-5) 0 var(--sp-3); }

.ai-priority-list { display: flex; flex-direction: column; gap: 10px; }
.ai-priority-card { background: var(--surface-1); border: 1px solid var(--border-1); border-left: 3px solid var(--border-2); border-radius: var(--radius-md); padding: 16px 18px; animation: aov-in 0.35s ease both; }
.ai-priority-card.sev-high { border-left-color: var(--danger); animation: aov-in 0.35s ease both, ai-high-glow 2.4s ease-in-out infinite; }
@keyframes ai-high-glow {
  0%, 100% { box-shadow: -3px 0 0 0 rgba(224,86,76,0); }
  50% { box-shadow: -3px 0 14px 0 rgba(224,86,76,0.35); }
}
.ai-priority-card.sev-medium { border-left-color: var(--accent); }
.ai-priority-card.sev-attention { border-left-color: #e2c93b; }
.ai-priority-card.sev-low { border-left-color: var(--status-reserved); }
.ai-priority-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ai-sev-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 10px; text-transform: uppercase; }
.ai-sev-badge.sev-high { color: var(--danger); background: rgba(224,86,76,0.14); }
.ai-sev-badge.sev-medium { color: var(--accent-strong); background: var(--accent-bg); }
.ai-sev-badge.sev-attention { color: #e2c93b; background: rgba(226,201,59,0.14); }
.ai-sev-badge.sev-low { color: var(--status-reserved); background: rgba(95,147,201,0.14); }
.ai-priority-title { font-size: 14px; font-weight: 700; color: var(--text-0); }
.ai-priority-category { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto; }
.ai-priority-summary { font-size: 13px; color: var(--text-1); margin-bottom: 4px; }
.ai-why-toggle { background: none; border: none; color: var(--status-reserved); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.ai-why-toggle:hover { text-decoration: underline; }
.ai-why-body { margin-top: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-2); line-height: 1.6; animation: dash-panel-in 0.2s ease both; }
.ai-why-body .suggestion { margin-top: 8px; color: var(--text-1); font-style: italic; }

.ai-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }
.ai-insight-card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 14px 16px; }
.ai-insight-cat { font-size: 10px; font-weight: 800; letter-spacing: 0.07em; color: var(--status-reserved); text-transform: uppercase; margin-bottom: 6px; }
.ai-insight-text { font-size: 13px; color: var(--text-1); line-height: 1.55; }

.ai-forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.ai-forecast-card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 18px 20px; }
.ai-forecast-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 10px; }
.ai-forecast-row { display: flex; align-items: baseline; gap: 14px; }
.ai-forecast-current, .ai-forecast-projected { text-align: center; }
.ai-forecast-num { font-family: var(--font-display); font-size: 26px; color: var(--text-0); }
.ai-forecast-projected .ai-forecast-num { color: var(--status-reserved); }
.ai-forecast-tag { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.ai-forecast-arrow { color: var(--text-3); font-size: 18px; }
.ai-forecast-basis { font-size: 11px; color: var(--text-3); margin-top: 10px; font-style: italic; }

.ai-watchlist { display: flex; flex-direction: column; gap: 8px; }
.ai-watch-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-sm); }
.ai-watch-rank { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); width: 18px; }
.ai-watch-label { flex: 1; font-size: 13px; color: var(--text-1); }
.ai-watch-metric { font-family: var(--font-mono); font-size: 12px; color: var(--text-0); }

@media (prefers-reduced-motion: reduce) {
  .ai-hero::before { animation: none; }
  .ai-hero-badge-dot { animation: none; }
  .exec-kpi-card, .ai-priority-card, .ai-priority-card.sev-high { animation: none; }
  .wi-kpi-card, .wi-bar-row, .wi-panel, .wi-ring-wrap { animation: none; }
  .wi-bar-fill, .wi-activity-seg, .wi-ring-wrap circle { transition: none !important; }
  .ops-ticker-label svg { animation: none; }
  .ops-ticker-track { animation: none; }
}

@media (max-width: 720px) {
  .dash-tabs { overflow-x: auto; }
  .dash-tab { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .exec-section-body { grid-template-columns: 1fr; }
  .ai-forecast-row { justify-content: center; }
  .wi-panel-grid { grid-template-columns: 1fr; }
  .wi-activity-date { font-size: 8.5px; }
}

/* ==================== Warehouse Intelligence: Overview charts & AI Insights (redesign) ====================
   Reuses this file's existing surface/border/text/accent tokens and the
   .ai-hero/.ai-priority-card language above, so the two "AI" surfaces in
   the app (Executive Intelligence and Warehouse Intelligence) read as one
   consistent visual system. Categorical series reuse the app's established
   6-color status/accent order (see components/Charts.tsx SERIES_COLORS) —
   the same colors already used for booking/position status everywhere
   else, so a customer/zone doesn't get a color meaning readers have to
   relearn per page. */

.wi-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.wi-kpi-card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 14px 16px; animation: aov-in 0.4s ease both; }
.wi-kpi-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 6px; }
.wi-kpi-value { font-family: var(--font-display); font-size: 26px; color: var(--text-0); line-height: 1; }
.wi-kpi-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.wi-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.wi-panel { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 18px 20px; animation: aov-in 0.4s ease both; }
.wi-panel-wide { grid-column: 1 / -1; }
.wi-panel-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.wi-panel-sub { font-size: 11.5px; color: var(--text-3); margin-bottom: 14px; }

.wi-ring-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.wi-ring-wrap { display: flex; flex-direction: column; align-items: center; width: 140px; animation: aov-in 0.5s ease both; }
.wi-ring-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); text-align: center; max-width: 136px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.wi-ring-sub { font-size: 11.5px; color: var(--text-2); margin-top: 2px; text-align: center; max-width: 136px; }

.wi-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.wi-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.wi-legend-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

.wi-chart { display: flex; flex-direction: column; gap: 14px; }
.wi-bar-row { animation: aov-in 0.35s ease both; }
.wi-bar-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.wi-bar-row-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-bar-row-value { font-size: 12px; font-family: var(--font-mono); color: var(--text-0); white-space: nowrap; }
.wi-bar-track { position: relative; height: 9px; border-radius: 4px; background: var(--surface-3); overflow: visible; }
.wi-bar-fill { height: 100%; border-radius: 4px; transition: width 0.9s cubic-bezier(.22,1,.36,1); }
.wi-bar-track-empty { font-size: 11px; color: var(--text-3); font-style: italic; padding-top: 1px; }

.wi-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 11.5px; color: var(--text-0); white-space: nowrap;
  box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.wi-bar-track:hover .wi-tooltip, .wi-activity-stack:hover .wi-tooltip { opacity: 1; transform: translateY(0); }

.wi-activity-chart { display: flex; align-items: flex-end; gap: 6px; height: 168px; padding-top: 6px; }
.wi-activity-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; animation: aov-in 0.4s ease both; }
.wi-activity-stack { position: relative; width: 100%; max-width: 20px; height: 130px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.wi-activity-seg { width: 100%; border-radius: 2px; transition: height 0.9s cubic-bezier(.22,1,.36,1); }
.wi-activity-seg-empty { width: 4px; height: 3px; border-radius: 2px; background: var(--border-2); }
.wi-activity-date { font-size: 9.5px; color: var(--text-3); white-space: nowrap; }

.wi-empty-chart { font-size: 12px; color: var(--text-3); font-style: italic; padding: 20px 0; text-align: center; }

/* ---- Sparkline (weekly trend series, AI Intelligence tab) ---- */
.wi-sparkline { width: 100%; }
.wi-sparkline-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 4px; }

/* ---- AI Insights: rich cards replacing the raw-JSON detail dump ---- */
.wi-insight-summary-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.wi-insight-count-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border-1); color: var(--text-1); }
.wi-insight-count-chip .dot { width: 7px; height: 7px; border-radius: 50%; }

.wi-data-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wi-data-chip { display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-sm); min-width: 92px; }
.wi-data-chip-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.wi-data-chip-value { font-family: var(--font-mono); font-size: 13px; color: var(--text-0); font-weight: 600; }

.wi-mini-compare { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.wi-mini-compare-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; position: relative; }
.wi-mini-compare-fill { height: 100%; border-radius: 4px; transition: width 0.9s cubic-bezier(.22,1,.36,1); }
.wi-mini-compare-label { font-size: 11px; color: var(--text-3); white-space: nowrap; font-family: var(--font-mono); }

/* ---- Dashboard "Live Operations" news ticker (real notification feed,
   see components/NewsTicker.tsx) — sits above the Global Operations Clock,
   never replaces it. ---- */
.ops-ticker {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 0 0 0 14px; overflow: hidden; height: 40px;
}
.ops-ticker-empty { padding: 0 14px; gap: 8px; }
.ops-ticker-label {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-strong);
  padding: 5px 10px; border-radius: 20px; background: var(--accent-bg); border: 1px solid var(--accent-border);
}
.ops-ticker-label svg { animation: opsTickerPulse 1.6s ease-in-out infinite; }
@keyframes opsTickerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ops-ticker-viewport { flex: 1; min-width: 0; overflow: hidden; height: 100%; position: relative; }
.ops-ticker-track {
  display: flex; align-items: center; gap: 28px; height: 100%;
  width: max-content;
  animation: opsTickerScroll 38s linear infinite;
}
.ops-ticker-viewport:hover .ops-ticker-track { animation-play-state: paused; }
@keyframes opsTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ops-ticker-item {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: none; border: none; padding: 0; margin: 0; cursor: default;
  font-size: 12.5px; font-weight: 700; color: var(--text-2); font-family: var(--font-body); white-space: nowrap;
}
.ops-ticker-item svg { color: var(--text-3); flex-shrink: 0; }
.ops-ticker-item.clickable { cursor: pointer; }
.ops-ticker-item.clickable:hover { color: var(--text-0); }
.ops-ticker-item.clickable:hover svg { color: var(--accent-strong); }
.ops-ticker-dot { color: var(--border-2); margin-left: 20px; }

/* Respect reduced-motion preference: no auto-scroll, just let the track
   overflow-scroll manually if it's wider than the viewport. */
@media (prefers-reduced-motion: reduce) {
  .ops-ticker-track { animation: none; }
  .ops-ticker-viewport { overflow-x: auto; }
}

@media (max-width: 640px) {
  .ops-ticker { height: 36px; }
}

/* ---- Customer portal: Quick Actions (task #89) — real actions (request
   quotation / book storage open the real public flows; renew / extend post
   to POST /api/bookings/:id/service-request), styled as an interactive,
   staggered-in card row rather than a plain link list. ---- */
.portal-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-6); }
@media (max-width: 980px) { .portal-quick-actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portal-quick-actions { grid-template-columns: 1fr; } }
.pqa-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 16px 18px; cursor: pointer; font-family: var(--font-body);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  animation: aov-in 0.4s ease both;
}
.pqa-card:hover { border-color: var(--accent-border); background: var(--accent-bg); transform: translateY(-2px); }
.pqa-icon {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-strong); flex-shrink: 0; transition: transform 0.18s ease;
}
.pqa-card:hover .pqa-icon { transform: scale(1.1); }
.pqa-label { font-size: 13.5px; font-weight: 700; color: var(--text-0); }
.pqa-sub { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.pqa-arrow { position: absolute; top: 16px; right: 16px; color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.pqa-card:hover .pqa-arrow { opacity: 1; transform: translateX(0); color: var(--accent-strong); }
@media (prefers-reduced-motion: reduce) {
  .pqa-card { animation: none; transition: none; }
  .pqa-icon, .pqa-arrow { transition: none; }
}

/* ---- Customer portal: offline-payment request modal (task #90) ---- */
.ppay-instructions { background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-sm); padding: 12px 14px; }
.ppay-instructions-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-0); }

/* ---- Customer portal: animated tracking step visualization (task #92) —
   real journey steps from each table's own status CHECK constraint (see
   PortalTrackingResult.tsx), never fabricated stages. ---- */
.ptrk-wrap { margin: 20px 4px 44px; padding: 0 8px; }
.ptrk-track { position: relative; height: 4px; background: var(--surface-3); border-radius: 2px; margin: 28px 0; }
.ptrk-track-fill {
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ptrk-mover {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-strong); color: #14181f;
  display: flex; align-items: center; justify-content: center;
  transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 4px var(--accent-bg), 0 0 14px 2px rgba(240, 160, 32, 0.45);
  animation: ptrk-mover-pulse 1.8s ease-in-out infinite;
}
@keyframes ptrk-mover-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-bg), 0 0 14px 2px rgba(240, 160, 32, 0.45); }
  50% { box-shadow: 0 0 0 6px var(--accent-bg), 0 0 20px 4px rgba(240, 160, 32, 0.6); }
}
.ptrk-step { position: absolute; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.ptrk-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center; color: #14181f; transition: background 0.4s ease, border-color 0.4s ease;
}
.ptrk-step.done .ptrk-dot { background: var(--accent-strong); border-color: var(--accent-strong); }
.ptrk-step.active .ptrk-dot { border-color: var(--accent-strong); background: var(--surface-1); }
.ptrk-label {
  position: absolute; top: 22px; width: 90px; text-align: center; font-size: 11px; color: var(--text-3);
  white-space: normal; line-height: 1.3;
}
.ptrk-step.done .ptrk-label { color: var(--text-2); }
.ptrk-step.active .ptrk-label { color: var(--accent-strong); font-weight: 700; }
.ptrk-exception {
  display: flex; align-items: center; gap: 8px; margin: 16px 0; padding: 12px 14px;
  background: rgba(224,86,76,0.1); border: 1px solid rgba(224,86,76,0.3); border-radius: var(--radius-sm);
  color: var(--danger); font-size: 13px;
}
@media (max-width: 560px) {
  .ptrk-label { width: 64px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ptrk-mover { animation: none; }
  .ptrk-track-fill, .ptrk-mover { transition: none; }
}

/* ---- Warehouse Intelligence: live rack density (reuses the Home page's
   Engineered For Density visual language — .efd-* selector/stage/info-panel
   — with this warehouse's real occupancy instead of static facility specs;
   see WiRackDensity.tsx and the /rack-density endpoint.) ---- */
.wi-rack-density { margin-top: 4px; }
.wi-rd-selector { margin-bottom: 16px; }
.wi-rd-stage { margin-bottom: 20px; }
.wi-rd-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3);
}
.wi-rd-stat {
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 14px 16px;
}
.wi-rd-stat-value { font-size: 24px; font-weight: 700; color: var(--text-0); font-family: var(--font-mono); line-height: 1.1; }
.wi-rd-stat-label { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Admin Dashboard: 4 animated "live" sections (AdminLiveSections.tsx)
   — same reveal-on-scroll idiom as the Home page's marketing scenes
   (.in-view flip via useInViewport()), but every number is real, live data
   rather than illustrative content. ---- */
.als-wrap { display: flex; flex-direction: column; gap: var(--sp-6); margin-top: var(--sp-2); }
.als-section {
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-6); opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.als-section.in-view { opacity: 1; transform: translateY(0); }
.als-head { margin-bottom: var(--sp-5); max-width: 640px; }
.als-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--accent-strong); padding: 4px 10px; border-radius: 20px;
  background: var(--accent-bg); border: 1px solid var(--accent-border); margin-bottom: 10px;
}
.als-eyebrow svg { animation: opsTickerPulse 1.6s ease-in-out infinite; }
.als-head h3 { margin: 0 0 6px; font-size: 19px; }
.als-head p { margin: 0; font-size: 13px; }

/* 1. Warehouse Pulse — zone occupancy rings */
.als-pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--sp-4); }
.als-pulse-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  opacity: 0; position: relative;
}
.als-section.in-view .als-pulse-tile { animation: alsPopIn 0.45s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes alsPopIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: none; } }
.als-pulse-ring {
  --pct: 0%; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--tone, var(--accent)) var(--pct), var(--surface-2) 0);
  animation: alsRingGrow 1.1s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes alsRingGrow { from { filter: brightness(0.7); } to { filter: brightness(1); } }
.als-pulse-ring::before { content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--surface-1); }
.als-pulse-pct { position: relative; z-index: 1; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--text-0); }
.als-pulse-label { font-weight: 700; font-size: 13px; color: var(--text-0); }
.als-pulse-sub { font-size: 11px; color: var(--text-3); }
.als-pulse-flag { font-size: 10px; font-weight: 700; color: #e0554f; text-transform: uppercase; letter-spacing: 0.03em; }

/* 2. Operations Flow — animated pipeline */
.als-flow-row { display: flex; align-items: center; }
.als-flow-node {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; opacity: 0;
}
.als-section.in-view .als-flow-node { animation: alsPopIn 0.45s cubic-bezier(0.16,1,0.3,1) forwards; }
.als-flow-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-strong); border: 1px solid var(--accent-border); margin-bottom: 4px;
}
.als-flow-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text-0); }
.als-flow-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; }
.als-flow-connector { flex: 0 0 auto; width: 60px; height: 2px; position: relative; margin: 0 -6px 24px; overflow: hidden; }
.als-flow-connector span {
  position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  background-size: 32px 2px; animation: alsFlowDash 1.1s linear infinite;
}
@keyframes alsFlowDash { to { background-position: -32px 0; } }
@media (max-width: 780px) { .als-flow-row { flex-wrap: wrap; gap: var(--sp-4); } .als-flow-connector { display: none; } }

/* 3. Dock & Bay Activity */
.als-dock-row { display: flex; flex-wrap: wrap; gap: 10px; }
.als-dock-bay {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-1); background: var(--surface-2); color: var(--text-2); cursor: pointer;
  font-size: 12.5px; font-weight: 600; position: relative; opacity: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.als-section.in-view .als-dock-bay { animation: alsPopIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.als-dock-bay:hover { transform: translateY(-1px); border-color: var(--accent-border); }
.als-dock-bay.occupied { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-strong); }
.als-dock-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); animation: opsTickerPulse 1.3s ease-in-out infinite; }

/* 4. Financial Pulse */
.als-fin-row { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 720px) { .als-fin-row { grid-template-columns: 1fr; } }
.als-fin-headline { display: flex; flex-direction: column; gap: 4px; }
.als-fin-value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--text-0); }
.als-fin-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; width: fit-content; }
.als-fin-delta.up { color: var(--status-available); }
.als-fin-delta.down { color: #e0554f; }
.als-fin-sub { font-size: 11.5px; color: var(--text-3); }
.als-fin-bars { display: flex; flex-direction: column; gap: 10px; }
.als-fin-bar-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 10px; opacity: 0; }
.als-section.in-view .als-fin-bar-row { animation: alsPopIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.als-fin-bar-label { font-size: 12px; color: var(--text-2); }
.als-fin-bar-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.als-fin-bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); width: 0; transition: width 1s cubic-bezier(0.16,1,0.3,1); }
.als-fin-bar-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-0); text-align: right; min-width: 70px; }

@media (prefers-reduced-motion: reduce) {
  .als-section, .als-pulse-tile, .als-flow-node, .als-dock-bay, .als-fin-bar-row { opacity: 1 !important; transform: none !important; animation: none !important; }
  .als-flow-connector span { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Automation Center — "How it works" flow node captions, guided New Rule */
/* modal steps, and the live rule-preview sentence. Reuses the .als-flow- */
/* pipeline and .ai-hero design language above; these are the few labels  */
/* and containers that pattern didn't already define.                    */
/* ---------------------------------------------------------------------- */
.ac-flow-title { font-size: 12.5px; font-weight: 700; color: var(--text-0); }
.ac-flow-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; max-width: 150px; }

.ac-modal-step {
  background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: var(--sp-4);
}
.ac-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ac-step-num {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-strong); border: 1px solid var(--accent-border);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.ac-step-title { font-size: 13px; font-weight: 700; color: var(--text-0); }

.ac-operator-hint {
  font-size: 11.5px; color: var(--text-3); line-height: 1.4; padding: 6px 0 2px 2px;
}

.ac-rule-preview {
  background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: var(--radius-md);
  padding: 12px 16px; margin-top: var(--sp-4); animation: aov-in 0.35s ease both;
}
.ac-rule-preview-label {
  display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-strong); margin-bottom: 8px;
}
.ac-rule-preview-line {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-0); line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .ac-rule-preview { animation: none; }
}
