/* Operational overview. Keep these rules within the dashboard route. */
.page-content[data-ui-route="dashboard"] .page-head {
  margin-bottom: 22px;
}
.page-content[data-ui-route="dashboard"] .overview-hero {
  height: 244px;
}
.page-content[data-ui-route="dashboard"] .overview-hero-copy {
  left: 28px;
  top: 26px;
  /* Two matching 232px controls + 10px gap must fit on one line. */
  width: min(60%, 540px);
  pointer-events: auto;
}
.page-content[data-ui-route="dashboard"] .overview-hero-copy .eyebrow {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: none;
}
.page-content[data-ui-route="dashboard"] .overview-hero-copy h2 {
  margin-top: 13px;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.16;
  letter-spacing: -.8px;
}
.page-content[data-ui-route="dashboard"] .overview-hero-copy h2 > span {
  color: inherit;
}
.page-content[data-ui-route="dashboard"] .overview-hero-copy p {
  max-width: 390px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.page-content[data-ui-route="dashboard"] .dashboard-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px 18px;
  margin-top: 18px;
}
.page-content[data-ui-route="dashboard"] .dashboard-hero-actions .btn {
  min-height: 40px;
  font-size: 12px;
  padding: 10px 14px;
}
.page-content[data-ui-route="dashboard"] .dashboard-hero-actions .hero-link {
  margin-top: 0;
  min-height: 40px;
  font-size: 12px;
  gap: 8px;
}
/* Twin hero actions: one quiet, tactile STX treatment for both workflows.
   Shared selectors guarantee identical colors, elevation and interaction. */
.page-content[data-ui-route="dashboard"] .dashboard-hero-actions { gap: 10px; }
.page-content[data-ui-route="dashboard"] .dashboard-action-cta {
  --action-foreground: #f2f8f5;
  --action-muted: #d1e6df;
  --action-border: rgba(216, 240, 232, .29);
  --action-border-hover: rgba(228, 247, 241, .52);
  --action-bg-top: rgba(255, 255, 255, .145);
  --action-bg-bottom: rgba(255, 255, 255, .065);
  --action-chrome: rgba(255, 255, 255, .115);
  --action-chrome-border: rgba(235, 252, 246, .16);
  --action-shadow: rgba(2, 17, 22, .12);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex: 0 0 232px;
  width: 232px;
  min-height: 46px;
  padding: 6px 10px 6px 7px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--action-border);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--action-bg-top), var(--action-bg-bottom));
  color: var(--action-foreground);
  box-shadow: inset 0 1px rgba(255, 255, 255, .17), 0 2px 5px rgba(0, 0, 0, .025), 0 5px 13px var(--action-shadow);
  text-decoration: none;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -.01em;
  line-height: 1.25;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
/* A satin reflection travels over either button on hover, never at rest. */
.page-content[data-ui-route="dashboard"] .dashboard-action-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 24%, rgba(255, 255, 255, .16) 45%, transparent 66%);
  transform: translateX(-125%);
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22, .7, .18, 1);
}
.page-content[data-ui-route="dashboard"] .dashboard-action-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border: 1px solid var(--action-chrome-border);
  border-radius: 8px;
  background: var(--action-chrome);
  color: var(--action-muted);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}
.page-content[data-ui-route="dashboard"] .dashboard-action-label {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
}
.page-content[data-ui-route="dashboard"] .dashboard-action-arrow {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--action-chrome-border);
  background: var(--action-chrome);
  color: var(--action-muted);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover {
  transform: translateY(-2px);
  border-color: var(--action-border-hover);
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 8px 23px var(--action-shadow);
}
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover::before { transform: translateX(125%); }
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover .dashboard-action-icon { transform: translateY(-1px); }
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover .dashboard-action-arrow { transform: translateX(3px); }
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:active { transform: translateY(0) scale(.985); }
.page-content[data-ui-route="dashboard"] .dashboard-action-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Pearl / botanical ink: in light mode these are two equal glass buttons, not two competing CTAs. */
html[data-theme="light"] .page-content[data-ui-route="dashboard"] .dashboard-action-cta {
  --action-foreground: #244541;
  --action-muted: #42685e;
  --action-border: rgba(71, 116, 101, .27);
  --action-border-hover: rgba(46, 103, 85, .49);
  --action-bg-top: rgba(255, 255, 255, .93);
  --action-bg-bottom: rgba(245, 250, 246, .78);
  --action-chrome: rgba(58, 117, 98, .065);
  --action-chrome-border: rgba(58, 117, 98, .12);
  --action-shadow: rgba(26, 72, 60, .085);
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 2px 5px rgba(30, 74, 60, .018), 0 5px 13px var(--action-shadow);
}
html[data-theme="light"] .page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover {
  box-shadow: inset 0 1px rgba(255, 255, 255, .98), 0 8px 23px rgba(26, 72, 60, .14);
}
@media (prefers-reduced-motion: reduce) {
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta,
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta::before,
  .page-content[data-ui-route="dashboard"] .dashboard-action-icon,
  .page-content[data-ui-route="dashboard"] .dashboard-action-arrow { transition: none; }
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover,
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta:active { transform: none; }
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta:hover::before { transform: translateX(-125%); }
}
.page-content[data-ui-route="dashboard"] .dashboard-scene {
  top: -58px;
  bottom: -58px;
  left: 42%;
  right: -6%;
}
.page-content[data-ui-route="dashboard"] .hero-telemetry {
  top: 19px;
  left: 58%;
  right: 22px;
  font-size: 10px;
  letter-spacing: .2px;
}
.page-content[data-ui-route="dashboard"] .hero-telemetry > span:last-child {
  text-align: right;
}
.page-content[data-ui-route="dashboard"] .metrics-grid {
  gap: 14px;
  margin-top: 16px;
}
.page-content[data-ui-route="dashboard"] .metric-link {
  display: block;
  padding: 17px 18px 15px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.page-content[data-ui-route="dashboard"] .metric-link:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--accent) 9%, transparent);
}
.page-content[data-ui-route="dashboard"] .metric-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.page-content[data-ui-route="dashboard"] .metric-link > div:first-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  min-height: 20px;
}
.page-content[data-ui-route="dashboard"] .metric-link > strong {
  margin: 10px 0;
  font-size: 34px;
}
.page-content[data-ui-route="dashboard"] .metric-link > footer {
  font-size: 11px;
  color: var(--muted);
  justify-content: space-between;
  line-height: 1.45;
  gap: 10px;
}
.page-content[data-ui-route="dashboard"] .metric-link > footer > svg {
  flex: 0 0 auto;
  color: var(--accent);
}
.page-content[data-ui-route="dashboard"] .quick-row small {
  font-size: 12px;
  line-height: 1.45;
}
.page-content[data-ui-route="dashboard"] .panel-head p,
.page-content[data-ui-route="dashboard"] .online-mix-hint {
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .page-content[data-ui-route="dashboard"] .overview-hero-copy { width: min(65%, 510px); }
  .page-content[data-ui-route="dashboard"] .hero-telemetry > span:first-child { display: none; }
  .page-content[data-ui-route="dashboard"] .hero-telemetry { justify-content: flex-end; }
  .page-content[data-ui-route="dashboard"] .metric-link > div:first-child { font-size: 12px; }
  .page-content[data-ui-route="dashboard"] .metric-link { padding: 15px; }
}
/* Only stack the paired actions when the viewport genuinely needs it;
   reserve enough banner height so neither action crosses its lower edge. */
@media (max-width: 900px) {
  .page-content[data-ui-route="dashboard"] .overview-hero { height: 320px; }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy { width: min(68%, 400px); }
  .page-content[data-ui-route="dashboard"] .dashboard-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta {
    flex: 0 0 auto;
    width: min(100%, 280px);
    min-height: 44px;
  }
}
@media (max-width: 760px) {
  .page-content[data-ui-route="dashboard"] .overview-hero { height: 320px; }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy { left: 22px; top: 24px; width: min(70%, 390px); }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy h2 { font-size: 29px; }
  .page-content[data-ui-route="dashboard"] .dashboard-scene { left: 43%; right: -40%; top: -20px; bottom: -30px; opacity: .55; }
  .page-content[data-ui-route="dashboard"] .hero-telemetry { top: auto; bottom: 15px; left: auto; right: 18px; }
  .page-content[data-ui-route="dashboard"] .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .page-content[data-ui-route="dashboard"] .overview-hero { height: 350px; }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy { left: 20px; right: 20px; top: 22px; width: auto; }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy h2 { max-width: 300px; font-size: 29px; }
  .page-content[data-ui-route="dashboard"] .overview-hero-copy p { max-width: 280px; }
  .page-content[data-ui-route="dashboard"] .dashboard-scene { left: 26%; right: -72%; top: 25px; bottom: -30px; opacity: .2; pointer-events: none; }
  .page-content[data-ui-route="dashboard"] .dashboard-hero-actions { gap: 8px; margin-top: 16px; }
  .page-content[data-ui-route="dashboard"] .dashboard-hero-actions { flex-direction: column; align-items: flex-start; }
  .page-content[data-ui-route="dashboard"] .dashboard-action-cta { width: min(100%, 280px); flex: 0 0 auto; min-height: 42px; padding: 5px 9px 5px 6px; font-size: 11px; gap: 9px; }
  .page-content[data-ui-route="dashboard"] .dashboard-action-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .page-content[data-ui-route="dashboard"] .hero-telemetry { font-size: 10px; }
  .page-content[data-ui-route="dashboard"] .metric-link { padding: 15px 13px; }
  .page-content[data-ui-route="dashboard"] .metric-link > strong { font-size: 30px; margin: 10px 0 8px; }
  .page-content[data-ui-route="dashboard"] .metric-link > div:first-child { min-height: 34px; align-items: flex-start; }
  .page-content[data-ui-route="dashboard"] .metric-link > div:first-child > svg { flex: 0 0 auto; }
  .page-content[data-ui-route="dashboard"] .metric-link > footer { font-size: 11px; min-height: 32px; }
}
