.auth-chart { display: flex; height: 170px; gap: 8px; align-items: end; overflow-x: auto; padding: 8px 0; }
.auth-day { flex: 1 0 28px; display: flex; flex-direction: column; gap: 7px; height: 100%; min-width: 0; font-size: 10px; text-align: center; color: var(--muted); }
.auth-bars { height: 126px; display: flex; align-items: end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line); }
.auth-bar { width: 40%; max-width: 22px; background: var(--line-strong); border-radius: 3px 3px 0 0; }
.auth-bar-success { background: var(--ink-soft); }
.auth-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--muted); }
.auth-quality { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-quality h3 { margin: 0 0 8px; font-size: 14px; }
.auth-quality p { margin: 0; font-size: 13px; color: var(--muted); }
.auth-disclosure { margin: 15px 0 0; }
.auth-disclosure summary { min-height: 44px; display: list-item; padding: 10px 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-buckets { padding: 0; list-style: none; min-width: 220px; white-space: normal; }
.auth-buckets li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.auth-definition { white-space: normal; min-width: 260px; max-width: 440px; }
.auth-definitions th[scope="row"] { white-space: normal; min-width: 160px; }
.auth-help { position: relative; border-bottom: 1px dotted var(--muted); cursor: help; }
.auth-tip { display: none; position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 240px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 400; text-align: left; white-space: normal; box-shadow: var(--shadow); }
.auth-help:focus { z-index: 21; }
#auth-live th:nth-last-child(-n+2) .auth-tip { left: auto; right: 0; }
.auth-help:focus .auth-tip, .auth-help:hover .auth-tip { display: block; }
#auth-live th[scope="row"] { text-align: left; color: var(--ink); }
#auth-live td { font-variant-numeric: tabular-nums; }
#auth-live .metric-value { font-size: clamp(22px, 2.1vw, 30px); }
#auth-live button:disabled { opacity: .55; cursor: not-allowed; }
/* J02 uses the shared sage / ink palette. The stage rail is its primary navigation. */
body:has(#auth-live:not([hidden])) .toolbar { display:none; }
body:has(#auth-live:not([hidden])) main { padding-top:20px; }
body:has(#auth-live:not([hidden])) .hero { align-items:center; margin-bottom:18px; gap:20px; }
body:has(#auth-live:not([hidden])) .hero h1 { font-size:30px; letter-spacing:-.035em; }
body:has(#auth-live:not([hidden])) .hero p { margin-top:6px; font-size:14px; }
body:has(#auth-live:not([hidden])) .hero-note { background:transparent; border-left:2px solid var(--line-strong); max-width:260px; padding:4px 12px; }
#auth-live { --auth-gap:20px; }
#auth-live small { display:block; font-size:12px; color:var(--muted); font-weight:400; margin-top:3px; }
#auth-live h2,#auth-live h3,#auth-live h4 { color:var(--ink); }
#auth-live h3 { font-size:16px; margin:0 0 12px; }
#auth-live h4 { font-size:14px; margin:0 0 8px; }
#auth-live summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:13px; color:var(--ink-soft); }
#auth-live code { overflow-wrap:anywhere; white-space:normal; font-size:12px; }
#auth-live .board { box-shadow:none; overflow:visible; }
#auth-live .board-section { padding:20px 24px; }
#auth-live .section-head { margin-bottom:12px; align-items:center; }
#auth-live .section-head h2 { font-size:18px; }
#auth-live .table-shell { max-width:100%; margin-top:10px; }
#auth-live th,#auth-live td { padding:10px 12px; font-size:13px; }
.auth-controls { display:flex; align-items:end; flex-wrap:wrap; gap:10px; position:relative; z-index:3; }
.auth-controls label { display:grid; gap:4px; font-size:12px; color:var(--muted); }
.auth-controls select,.auth-method-select select { min-height:44px; padding:0 30px 0 12px; border:1px solid var(--line-strong); border-radius:8px; background:var(--paper); max-width:100%; }
.auth-controls .auth-export { margin-left:auto; }
.auth-more { position:relative; }
#auth-live .auth-more > summary { border:1px solid var(--line-strong); border-radius:8px; padding:10px 12px; background:var(--paper); }
.auth-more > div { position:absolute; top:calc(100% + 6px); left:0; min-width:260px; padding:14px; display:grid; gap:10px; border:1px solid var(--line); background:var(--paper); border-radius:10px; box-shadow:var(--shadow); }
.auth-active-filters { flex-basis:100%; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; }
.auth-active-filters span { padding:3px 9px; border-radius:5px; background:var(--blue-soft); color:var(--blue); }
.auth-active-filters button { min-height:44px; border:0; background:none; color:var(--blue); }
.auth-range { font-size:12px; margin:12px 0 3px; color:var(--ink-soft); overflow-wrap:anywhere; }
.auth-freshness { font-size:12px; color:var(--muted); margin:0 0 18px; }
.auth-freshness strong { color:var(--amber); }
.auth-method-nav { display:flex; gap:4px; padding:0 18px; border-bottom:1px solid var(--line); }
.auth-method-nav button { min-height:50px; padding:0 17px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font-size:14px; font-weight:600; }
.auth-method-nav button[aria-pressed="true"] { color:var(--ink); border-bottom-color:var(--yellow); }
.auth-method-nav button:hover { color:var(--blue); }
.auth-method-select { display:none; }
.auth-priorities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:20px 24px; border-bottom:1px solid var(--line); background:var(--canvas); }
.auth-priorities > div { min-width:0; padding:0 18px; border-left:1px solid var(--line-strong); }
.auth-priorities > div:first-child { padding-left:0; border:0; }
.auth-priorities > div:last-child { padding-right:0; }
.auth-priorities h2 { margin:0 0 6px; font-size:13px; font-weight:600; display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; }
.auth-priorities h2 strong { font-size:22px; font-variant-numeric:tabular-nums; }
.auth-priorities p { font-size:12px; color:var(--muted); margin:8px 0; }
.auth-clue-link { min-height:44px; width:100%; padding:5px 0; border:0; background:none; text-align:left; display:flex; align-items:center; flex-wrap:wrap; column-gap:8px; font-size:13px; }
.auth-clue-link strong { margin-left:auto; font-size:14px; white-space:nowrap; }
.auth-clue-link small { width:100%; }
.auth-clue-link:hover { color:var(--blue); }
.auth-flow { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.auth-flow .flow-node { min-width:0; width:auto; min-height:116px; padding:12px 14px; border-radius:8px; box-shadow:none; text-align:left; }
.auth-flow .step-index { margin-bottom:5px; font-size:11px; }
.auth-flow .step-name { min-height:0; font-size:13px; margin-bottom:8px; }
.auth-flow .step-value { font-size:26px; }
.auth-flow .flow-node[aria-expanded="true"] { background:var(--blue-soft); border-color:var(--blue); }
.auth-scope-strip,.auth-scope-note { font-size:12px; color:var(--muted); line-height:1.7; margin:10px 0; overflow-wrap:anywhere; }
.auth-overview-detail { background:var(--paper); border-top:1px solid var(--line); }
.auth-method-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 24px; padding-bottom:12px; color:var(--muted); font-size:13px; }
.auth-method-summary > span strong { font-size:22px; font-variant-numeric:tabular-nums; color:var(--ink); margin-left:7px; }
.auth-method-summary > details { margin-left:auto; }
.auth-method-summary > details[open] { flex-basis:100%; margin:0; }
.auth-stage-head,.auth-stage-row { display:grid; grid-template-columns:minmax(200px,2fr) minmax(64px,.65fr) minmax(86px,.75fr) minmax(160px,1.25fr) 20px; align-items:center; gap:16px; }
.auth-stage-head { padding:10px 12px; font-size:12px; color:var(--muted); border-bottom:1px solid var(--line); }
.auth-stage-row { width:100%; min-height:65px; padding:10px 12px; text-align:left; background:transparent; border:0; font-size:14px; font-variant-numeric:tabular-nums; }
.auth-stage-item { border-bottom:1px solid var(--line); }
.auth-stage-row:hover { background:var(--canvas); }
.auth-stage-item.is-open > .auth-stage-row { background:var(--blue-soft); }
.auth-stage-name { display:flex; align-items:center; gap:12px; font-weight:600; }
.auth-stage-name i { position:relative; font-style:normal; font-size:12px; font-weight:400; color:var(--muted); width:24px; height:24px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; background:var(--paper); flex-shrink:0; }
.auth-stage-item:not(:last-child) .auth-stage-name i::after { content:''; position:absolute; top:24px; left:10px; height:40px; border-left:1px solid var(--line); pointer-events:none; }
.auth-stage-item.is-open .auth-stage-name i::after { display:none; }
#auth-live .auth-mobile-label { display:none; }
.auth-fault { color:var(--red); font-weight:600; }
.auth-stage-detail { padding:22px 24px 22px 48px; background:var(--canvas); border-left:3px solid var(--blue); }
.auth-overview-detail .auth-stage-detail { padding:12px 0; background:transparent; border:0; }
.auth-result-list { display:flex; flex-wrap:wrap; gap:12px 28px; padding:10px 0; margin:0; }
.auth-result-list dt { color:var(--muted); font-size:12px; }
.auth-result-list dd { font-size:18px; font-weight:600; margin:3px 0 0; font-variant-numeric:tabular-nums; }
.auth-duration-detail { margin:14px 0; }
.auth-duration-detail p { margin:0; font-size:13px; }
.auth-duration-detail > details { margin-top:2px; }
.auth-reason { white-space:normal; overflow-wrap:anywhere; max-width:380px; }
.auth-reason details summary { font-weight:400; color:var(--muted); }
.auth-network { margin-top:20px; padding-top:18px; border-top:1px solid var(--line-strong); }
.auth-network h4 span { font-size:12px; font-weight:400; color:var(--amber); padding:3px 6px; margin-left:5px; background:var(--amber-soft); border-radius:4px; }
.auth-api-freshness { color:var(--muted); font-size:12px; margin:8px 0; }
.auth-api { border:1px solid var(--line); border-radius:8px; background:var(--paper); margin-top:10px; overflow:hidden; }
.auth-api-row { display:grid; grid-template-columns:minmax(200px,2fr) minmax(80px,.7fr) minmax(160px,1.1fr) 18px; gap:16px; width:100%; min-height:74px; padding:12px 16px; border:0; background:transparent; text-align:left; align-items:center; font-size:13px; }
.auth-api-row code { display:block; margin-top:4px; color:var(--muted); }
.auth-api-row[aria-expanded="true"] { background:var(--blue-soft); }
.auth-api-detail { padding:16px; }
.auth-api-detail > details { border-top:1px solid var(--line); margin-top:12px; }
.auth-secondary { display:flex; flex-wrap:wrap; align-items:start; column-gap:26px; padding:4px 2px; }
.auth-secondary > details[open] { flex-basis:100%; }
.auth-secondary .board-section { border:1px solid var(--line); background:var(--paper); border-radius:10px; }
.auth-secondary .auth-disclosure,.auth-secondary .auth-definitions { margin-top:5px; }
.auth-text-button { background:none; border:0; min-height:44px; padding:4px 0; color:var(--blue); text-align:left; font:inherit; }
.auth-availability { margin-top:10px; }
@media(max-width:1020px){
  .auth-flow { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .auth-stage-head,.auth-stage-row { grid-template-columns:minmax(160px,1.8fr) 62px 80px minmax(125px,1.2fr) 16px; gap:10px; }
  .auth-api-row { grid-template-columns:minmax(180px,1.5fr) 72px minmax(130px,1fr) 16px; gap:10px; }
}
@media(max-width:680px){
  body:has(#auth-live:not([hidden])) main { padding-top:16px; }
  body:has(#auth-live:not([hidden])) .hero { grid-template-columns:1fr; gap:10px; }
  body:has(#auth-live:not([hidden])) .hero-note { max-width:none; }
  .auth-controls { gap:8px; }
  .auth-controls > label { flex:1 1 90px; min-width:0; }
  .auth-controls select { padding-right:14px; min-width:0; }
  .auth-controls .auth-export { margin-left:0; }
  .auth-more > div { left:0; min-width:240px; max-width:calc(100vw - 38px); }
  #auth-live .board-section { padding:16px; }
  .auth-method-nav { display:none; }
  .auth-method-select { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); font-size:13px; }
  .auth-method-select select { flex:1; }
  .auth-priorities { grid-template-columns:1fr; gap:14px; padding:16px; }
  .auth-priorities > div { padding:12px 0 0; border-left:0; border-top:1px solid var(--line); }
  .auth-priorities > div:first-child { padding-top:0; }
  .auth-flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .auth-flow .flow-node { padding:10px; min-height:110px; }
  .auth-stage-head { display:none; }
  .auth-stage-row { grid-template-columns:1fr 1fr 1.5fr 14px; gap:8px; padding:14px 2px; }
  .auth-stage-name { grid-column:1/5; }
  .auth-stage-name i::after { display:none; }
  #auth-live .auth-mobile-label { display:block; margin:0 0 4px; }
  .auth-stage-detail { padding:16px 12px; }
  .auth-result-list { gap:12px 20px; }
  .auth-method-summary { gap:8px 14px; }
  .auth-method-summary > span strong { font-size:20px; margin-left:4px; }
  .auth-method-summary > details { margin-left:0; }
  .auth-api-row { grid-template-columns:1fr 1.4fr 14px; gap:10px; padding:12px; }
  .auth-api-row > span:first-child { grid-column:1/4; }
  .auth-api-detail { padding:12px; }
  .auth-secondary { display:block; }
  .auth-quality { grid-template-columns:1fr; }
  #auth-live .section-head { gap:8px; }
}
@media(prefers-reduced-motion:reduce){#auth-live *{scroll-behavior:auto;}}
/* Keep the main path visible on common laptop viewports. */
@media(min-width:681px){
  body:has(#auth-live:not([hidden])) main { padding-top:14px; }
  body:has(#auth-live:not([hidden])) .hero { margin-bottom:12px; }
  body:has(#auth-live:not([hidden])) .hero h1 { font-size:28px; }
  body:has(#auth-live:not([hidden])) .hero p { display:none; }
  .auth-freshness { margin-bottom:12px; }
  .auth-priorities { padding-top:14px; padding-bottom:14px; }
  #auth-live .auth-root-flow { padding-top:16px; padding-bottom:12px; }
  .auth-flow .flow-node { min-height:100px; padding:10px 12px; }
  #auth-live .auth-root-flow .section-head p { margin-top:2px; }
  #auth-live .auth-method-workspace { padding-top:16px; }
  .auth-stage-row { min-height:59px; padding-top:8px; padding-bottom:8px; }
  .auth-stage-item:not(:last-child) .auth-stage-name i::after { height:34px; }
}
body:has(#auth-live:not([hidden])) main > .contract { display:none; }
.auth-api-counts { margin:0; padding:0 16px 12px; font-size:12px; color:var(--muted); }
.auth-source { font-size:13px; color:var(--muted); padding:0 20px 14px; }
.auth-source summary { color:var(--ink); }
@media(min-width:681px){.auth-root-flow .auth-scope-strip{margin-bottom:0;} .auth-priorities{padding-bottom:10px;}}
.auth-stage-row,.auth-overview-detail { scroll-margin-top:125px; }
