/* Measured lift page (owner + approver). Builds on sales.css (sp-*) and the finance ledger palette. */
.at-page { --at-brass: #94700f; --at-ink: #2a2414; --at-teal: #1f4d5c; --at-rust: #a2361f; --at-sage: #2f6b45; --at-line: rgba(120,100,60,.25); --at-paper: rgba(255,250,235,.6);
  display: grid; gap: 14px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.at-page * { box-sizing: border-box; }
.at-head { display: grid; gap: 2px; border-bottom: 3px double var(--at-line); padding-bottom: 10px; }
.at-head p { margin: 0; }
.at-kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--at-brass); font-weight: 700; }
.at-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
.at-title:focus { outline: none; }
.at-msg { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--at-line); border-left: 4px solid var(--at-teal); }
.at-msg-success { border-left-color: var(--at-sage); } .at-msg-warning { border-left-color: var(--at-brass); } .at-msg-danger { border-left-color: var(--at-rust); }
.at-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px 14px; border: 1px solid var(--at-line); border-radius: 12px; background: var(--panel, var(--at-paper)); }
.at-controls-tight { padding: 8px 10px; margin: 8px 0; }
.at-field { display: grid; gap: 4px; min-width: 0; flex: 1 1 180px; }
.at-field label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.at-field select, .at-field input { min-height: 40px; width: 100%; font: inherit; }
.at-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.at-sources { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .8rem; }
.at-src-l { font-weight: 700; color: var(--at-brass); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.at-src, .at-status, .at-verdict, .at-overlap { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--at-line); white-space: nowrap; }
.at-src { color: var(--at-teal); }
.at-st-active { color: var(--at-sage); border-color: currentColor; } .at-st-draft { color: var(--at-brass); border-style: dashed; }
.at-st-measured { color: var(--at-teal); border-color: currentColor; } .at-st-superseded { opacity: .65; text-decoration: line-through; }
.at-v-positive { color: var(--at-sage); border-color: currentColor; } .at-v-negative { color: var(--at-rust); border-color: currentColor; }
.at-v-inconclusive, .at-v-neutral, .at-v-none { color: var(--muted, #6b6150); }
.at-overlap { color: var(--at-brass); margin-left: 6px; }
.at-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.at-card { min-width: 0; }
.at-wins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.at-win-btn { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: inherit; background: none; padding: 10px 12px; border: 1px solid var(--at-line); border-left: 4px solid var(--at-line); border-radius: 10px; cursor: pointer; min-width: 0; }
.at-win-btn:hover { border-left-color: var(--at-brass); }
.at-sel .at-win-btn, .at-win-btn[aria-pressed="true"] { border-left-color: var(--at-brass); background: rgba(196,150,40,.12); }
.at-win-top, .at-win-lift { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.at-win-meta { font-size: .82rem; opacity: .85; }
.at-lift-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.at-note { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--at-brass); }
.at-dl { display: grid; gap: 6px; margin: 8px 0; }
.at-dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-bottom: 1px dotted var(--at-line); padding-bottom: 4px; }
.at-dl dt { font-weight: 600; } .at-dl dd { margin: 0; }
.at-chart-wrap { width: 100%; max-width: 100%; }
.at-chart { width: 100%; height: auto; display: block; }
.at-band { fill: rgba(31,77,92,.16); }
.at-zone { fill: rgba(196,150,40,.13); }
.at-base { fill: none; stroke: var(--at-teal); stroke-width: 1.5; stroke-dasharray: 5 4; }
.at-act { fill: none; stroke: var(--at-brass); stroke-width: 2.25; }
.at-dot { fill: var(--at-brass); } .at-dot-out { fill: var(--at-rust); }
.at-grid { stroke: var(--at-line); stroke-dasharray: 3 4; } .at-axis { stroke: var(--at-ink); opacity: .5; }
.at-tick { font-size: 11px; fill: currentColor; opacity: .75; } .at-zone-l { fill: var(--at-brass); opacity: 1; font-weight: 600; }
.at-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 8px 0; list-style: none; font-size: .8rem; }
.at-legend li { display: flex; align-items: center; gap: 6px; }
.at-sw { width: 14px; height: 10px; display: inline-block; border-radius: 2px; }
.at-sw-act { height: 3px; background: var(--at-brass); } .at-sw-base { height: 0; border-top: 2px dashed var(--at-teal); }
.at-sw-band { background: rgba(31,77,92,.3); } .at-sw-zone { background: rgba(196,150,40,.3); } .at-sw-out { width: 9px; height: 9px; border-radius: 50%; background: var(--at-rust); }
.at-summary { margin: 6px 0; }
.at-sub { margin: 14px 0 6px; font-size: 1rem; }
.at-table-wrap { overflow-x: auto; max-width: 100%; }
.at-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.at-table th, .at-table td { padding: 8px 10px; border-bottom: 1px solid var(--at-line); text-align: left; vertical-align: top; }
.at-table thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.at-num { text-align: right !important; }
.at-unav { color: var(--muted, #6b6150); font-style: italic; }
.at-form, .at-pin-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.at-stores { flex: 1 1 100%; border: 1px solid var(--at-line); border-radius: 10px; padding: 8px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.at-stores legend { font-weight: 650; padding: 0 4px; }
.at-check { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.at-form > p, .at-form > .at-actions { flex: 1 1 100%; margin: 0; }
.at-pin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.at-pin input { width: 5.5em; min-height: 36px; font: inherit; }
.at-pin-new { margin-top: 10px; padding-top: 10px; border-top: 1px dotted var(--at-line); }
.at-run { display: flex; flex-wrap: wrap; gap: 8px; }
.at-run .btn, .at-pin .btn, .at-actions .btn { min-height: 40px; }
.at-bf-res { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.at-bf-res a { color: var(--at-teal); text-underline-offset: 3px; }
.at-field input[disabled] { opacity: .6; }
.at-brief { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.at-brief-l { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--at-brass, #94700f); }
.at-brief-b { opacity: .85; font-size: .88rem; }
.at-brief-na, .at-brief-none { font-style: italic; opacity: .8; }
.at-page button:focus-visible, .at-page input:focus-visible, .at-page select:focus-visible, .at-summary:focus-visible, .at-table-wrap:focus-visible { outline: 2px solid var(--at-brass); outline-offset: 2px; }
.at-neutral h1 { margin-top: 0; }
@media (max-width: 720px) {
  .at-table-wrap { overflow-x: visible; }
  .at-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .at-table, .at-table tbody, .at-table tr, .at-table th, .at-table td { display: block; width: 100%; }
  .at-table tr { border: 1px solid var(--at-line); border-radius: 10px; margin-bottom: 10px; padding: 4px 0; }
  .at-table td { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-bottom: 1px dotted var(--at-line); text-align: right; }
  .at-table td::before { content: attr(data-label); font-weight: 600; text-align: left; }
  .at-table tr td:last-child { border-bottom: 0; }
  .at-field { flex-basis: 100%; }
  .at-src, .at-status, .at-verdict, .at-overlap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .at-page * { transition: none !important; animation: none !important; } }
