/* Same product tokens, calmer density and explicit visual hierarchy. */
.agendas-workspace { --ax-positive: #27775b; --ax-show: #718fab; --ax-miss: #bd684d; --ax-cancel: #bdc5cd; --ax-pending: #e4e8ed; color: var(--ink); font-size: 15px; line-height: 1.5; }
.agendas-workspace button, .agendas-workspace input { font: inherit; }
.agendas-workspace button { cursor: pointer; }
.agendas-workspace button:disabled { cursor: default; opacity: .4; }
.agendas-workspace :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ax-navigation { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 28px; border-bottom: 1px solid var(--line-strong); }
.ax-tabs { display: flex; gap: 28px; }
.ax-tabs button { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 12px 0 16px; white-space: nowrap; font-weight: 500; }
.ax-tabs button[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--ink); }
.ax-tabs button span { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--surface-2); color: var(--warn-ink); font-variant-numeric: tabular-nums; }
.ax-timezone { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ax-intro { margin-bottom: 24px; }
.ax-intro h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.ax-intro p { color: var(--muted); margin: 4px 0 0; }
.ax-metrics { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr 1fr; margin-bottom: 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.ax-metric { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; }
.ax-metric:first-child { padding-left: 0; }
.ax-metric + .ax-metric { border-left: 1px solid var(--line); }
.ax-metric > span { font-size: 15px; font-weight: 500; }
.ax-metric strong { font-size: 40px; line-height: 1.25; letter-spacing: -.05em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ax-positive strong { color: var(--ax-positive); }
.ax-metric small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ax-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 24px; overflow: hidden; min-width: 0; }
.ax-panel-head { padding: 24px 24px 16px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ax-panel h2 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.ax-panel-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.ax-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.ax-button:hover:not(:disabled) { background: var(--surface-2); }
.ax-panel-action { padding: 0 24px 20px; text-align: center; }
.ax-segment { display: flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: var(--surface-2); }
.ax-segment button { background: transparent; border: 0; border-radius: 4px; color: var(--muted); padding: 6px 12px; min-height: 32px; font-size: 14px; }
.ax-segment button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #0000000d; }
.ax-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 24px 16px; color: var(--ink-2); font-size: 14px; }
.ax-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ax-legend i { height: 8px; width: 8px; border-radius: 2px; }
.ax-fill-won { fill: var(--ax-positive); background: var(--ax-positive); }
.ax-fill-show { fill: var(--ax-show); background: var(--ax-show); }
.ax-fill-miss { fill: var(--ax-miss); background: var(--ax-miss); }
.ax-fill-cancel { fill: var(--ax-cancel); background: var(--ax-cancel); }
.ax-fill-pending { fill: var(--ax-pending); background: var(--ax-pending); }
.ax-chart { margin: 0 24px 24px 12px; }
.ax-chart-inner { height: 240px; position: relative; }
.ax-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ax-x-label { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--muted); }
.ax-y-label { position: absolute; left: 0; transform: translateY(-50%); font-size: 13px; color: var(--muted); }
.ax-chart line { stroke: var(--line); stroke-dasharray: 3 4; }
.ax-chart text { fill: var(--muted); font: 13px Inter, sans-serif; }
.ax-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.ax-columns .ax-panel { display: flex; flex-direction: column; }
.ax-table-wrap { width: 100%; overflow-x: auto; }
.agendas-workspace .ax-table { border-collapse: collapse; width: 100%; table-layout: auto; font-variant-numeric: tabular-nums; }
.agendas-workspace .ax-table th, .agendas-workspace .ax-table td { padding: 14px 24px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; white-space: normal; line-height: 1.5; }
.agendas-workspace .ax-table thead th { background: var(--surface-2); color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.agendas-workspace .ax-table tbody th { font-weight: 500; }
.agendas-workspace .ax-table td { color: var(--ink-2); }
.agendas-workspace .ax-table tbody tr:last-child > * { border-bottom: 0; }
.agendas-workspace .ax-table tbody tr:hover { background: var(--surface-2); }
.agendas-workspace .ax-sources th, .agendas-workspace .ax-sources td { padding: 12px 16px; }
.agendas-workspace .ax-sources th:first-child { padding-left: 24px; width: 38%; }
.ax-mini-bar { height: 4px; max-width: 132px; display: block; margin-top: 8px; background: var(--surface-2); border-radius: 2px; }
.ax-mini-bar i { display: block; height: 100%; background: var(--ax-show); border-radius: 2px; }
.ax-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; padding: 12px 24px 24px; }
.ax-weekdays > div { display: grid; gap: 8px; justify-items: center; }
.ax-weekdays strong { font-size: 15px; font-weight: 500; }
.ax-weekdays span { font-size: 13px; color: var(--muted); }
.ax-day-track { height: 64px; width: 100%; max-width: 28px; display: flex; align-items: end; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ax-day-track i { width: 100%; background: var(--ax-show); }
.ax-tempo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: 16px 24px 0; margin-top: auto; }
.ax-tempo > div { display: grid; gap: 2px; }
.ax-tempo strong { font-weight: 600; font-size: 24px; letter-spacing: -.03em; }
.ax-tempo span { font-size: 14px; color: var(--ink-2); }
.ax-footnote { color: var(--muted); font-size: 14px; padding: 12px 24px 16px; margin: 0; }
.ax-details { border-top: 1px solid var(--line); }
.ax-details summary { color: var(--ink-2); padding: 16px 24px; font-size: 14px; cursor: pointer; }
.ax-details > div { padding: 0 24px 20px; color: var(--muted); font-size: 14px; }
.ax-details p { margin: 12px 0 0; }
.ax-details .ax-table-wrap { margin-bottom: 16px; max-height: 360px; overflow: auto; }
.ax-details thead th { position: sticky; top: 0; z-index: 1; }
.ax-details .ax-table th, .ax-details .ax-table td { padding-inline: 12px; }
.ax-notice { padding: 12px 16px; border-left: 3px solid var(--warn); background: var(--warn-wash); color: var(--warn-ink); font-size: 14px; margin: 0 0 24px; }
.ax-notice > span { margin-inline: 8px; opacity: .5; }
.ax-cohort { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 20px 0; }
.ax-cohort dd { color: var(--ink); font-size: 24px; font-weight: 600; margin: 4px 0 0; }
.ax-empty { padding: 40px 24px; color: var(--muted); text-align: center; }
.ax-calendar-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); margin: 8px 24px 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ax-calendar-strip > div { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; }
.ax-calendar-strip > div + div { border-left: 1px solid var(--line); }
.ax-calendar-strip strong { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.ax-calendar-strip span, .ax-calendar-strip small { color: var(--muted); font-size: 14px; }
.ax-calendar-strip .is-today { background: var(--accent-wash); }
.ax-calendar-strip .is-today strong, .ax-calendar-strip .is-today span { color: var(--accent-ink); }
.ax-lead { background: transparent; color: var(--ink); text-align: left; border: 0; padding: 0; font-weight: 600 !important; overflow-wrap: anywhere; }
.ax-lead:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.ax-secondary { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.ax-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ax-pagination > div { display: flex; align-items: center; gap: 12px; }
.ax-pipeline-toolbar { padding: 0 24px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ax-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-filter-chips button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 14px; }
.ax-filter-chips b { font-weight: 500; margin-left: 4px; }
.ax-filter-chips button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
#ax-search { width: 260px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.ax-status { display: inline-flex; font-size: 14px; font-weight: 500; padding: 4px 8px; border-radius: 4px; background: var(--surface-2); }
.ax-status.warning { background: var(--warn-wash); color: var(--warn-ink); }
.ax-status.info { background: var(--accent-wash); color: var(--accent-ink); }
.ax-confirm-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0 24px 24px; color: var(--muted); font-size: 14px; }
.ax-confirm-stats b { font-size: 20px; color: var(--ink); font-weight: 600; margin-right: 6px; }
.ax-bounded { max-height: 360px; overflow: auto; }
.ax-loading { display: grid; gap: 24px; }
.ax-loading > div { height: 96px; background: var(--surface-2); border-radius: 8px; }
.ax-loading > div:last-child { height: 320px; }
@media (max-width: 1100px) {
  .ax-columns { grid-template-columns: 1fr; gap: 0; }
  .ax-metric { padding-inline: 16px; }
  .ax-metric strong { font-size: 36px; }
}
@media (max-width: 700px) {
  .ax-navigation { display: block; margin-bottom: 20px; }
  .ax-tabs { gap: 20px; overflow-x: auto; }
  .ax-tabs button { font-size: 14px; }
  .ax-timezone { display: block; padding: 8px 0; }
  .ax-intro h2 { font-size: 22px; }
  .ax-intro p { font-size: 14px; }
  .ax-metrics { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .ax-metric { padding: 0 16px; }
  .ax-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ax-metric strong { font-size: 34px; }
  .ax-panel-head { padding: 20px 16px 16px; flex-wrap: wrap; }
  .ax-legend { padding-inline: 16px; gap: 8px 16px; }
  .ax-chart { overflow-x: auto; margin-right: 16px; }
  .ax-chart-inner { min-width: 600px; }
  .ax-calendar-strip { margin-inline: 16px; }
  .ax-calendar-strip strong { font-size: 22px; }
  .agendas-workspace .ax-table { min-width: 540px; }
  .ax-pagination { padding-inline: 16px; }
  .ax-pipeline-toolbar { padding-inline: 16px; }
  #ax-search { width: 100%; }
  .ax-details summary, .ax-details > div { padding-inline: 16px; }
  .ax-cohort { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ax-metric > span { min-height: 45px; }
}
@media (max-width: 400px) {
  .ax-tabs { gap: 12px; }
  .ax-tabs button span { padding-inline: 4px; margin-left: 4px; }
}

.ax-future-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ax-future-actions select { max-width: 220px; }
