


.at-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.at-tile-w { min-width: 0; }
.at-tile { display: flex; flex-direction: column; gap: .3rem; width: 100%; height: 100%; min-height: 44px; text-align: left;
  padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1);
  color: var(--text-primary); font: inherit; cursor: pointer; }
.at-tile:hover { border-color: var(--border-strong); }
.at-tile[aria-pressed="true"] { border-color: var(--series-1); box-shadow: inset 0 0 0 1px var(--series-1); }
.at-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.at-tile-eye { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary); }
.at-tile-q { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.at-tile-f { font-size: .8rem; line-height: 1.35; color: var(--text-secondary); }


.at-fig { padding: 1.1rem 1.2rem 1rem; }
.at-eye { margin: 0 0 .35rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary); }
.at-head { margin: 0 0 .5rem; font-family: var(--font); font-size: 1.28rem; font-weight: 650; line-height: 1.3;
  max-width: 62ch; color: var(--text-primary); }
.at-head .mono { font-weight: 600; }
.at-says { margin: 0 0 .8rem; max-width: 75ch; color: var(--text-secondary); line-height: 1.45; }
.at-switch, .at-ed { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text-secondary);
  font-size: .85rem; }
.at-switch { margin: 0 0 .8rem; }
.at-switch select, .at-ed select { min-height: 32px; max-width: 100%; }
.at-chart { width: 100%; min-width: 0; }
.at-tab { margin: .6rem 0 0; }
.at-tab > summary { cursor: pointer; color: var(--text-secondary); min-height: 24px; padding-block: .2rem; width: max-content; }
.at-tw { overflow-x: auto; margin-top: .4rem; }
.at-t { border-collapse: collapse; font-size: .82rem; min-width: 100%; }
.at-t th, .at-t td { padding: .25rem .6rem .25rem 0; border-bottom: 1px solid var(--border); text-align: left;
  font-weight: 400; color: var(--text-primary); }
.at-t thead th { color: var(--text-secondary); font-size: .74rem; }
.at-t .num { text-align: right; }
.at-foot { margin-top: .9rem; font-size: .8rem; color: var(--text-secondary); line-height: 1.45; }
.at-foot p { margin: .25rem 0 0; max-width: 90ch; }
.at-notes { margin: .3rem 0 0; padding-left: 1.1rem; max-width: 90ch; }
.at-notes li { margin: .15rem 0; }
.at-src { overflow-wrap: anywhere; }


.at-svg { display: block; overflow: visible; }
.at-grid { stroke: var(--grid); stroke-width: 1; }
.at-zero { stroke: var(--border-strong); stroke-width: 1.2; }
.at-ax { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-secondary); }
.at-lab { font-family: var(--font); font-size: 12px; fill: var(--text-primary); }
.at-val { font-family: var(--font-mono); font-size: 11.5px; fill: var(--text-primary); }
.at-leg { font-family: var(--font); font-size: 11.5px; fill: var(--text-secondary); }
.at-hit { fill: transparent; }
.at-row:hover .at-hit { fill: color-mix(in oklab, var(--series-1) 9%, transparent); }
.at-bar { fill: var(--series-1); }
.at-bar.neg { fill: color-mix(in oklab, var(--series-1) 55%, transparent); }
.at-stem { stroke: var(--grid); stroke-width: 1; }
.at-dot { fill: var(--series-1); stroke: var(--panel-solid); stroke-width: 1.5; }
.at-ring { fill: var(--panel-solid); stroke: var(--text-secondary); stroke-width: 2; }
.at-join { stroke: color-mix(in oklab, var(--text-secondary) 60%, transparent); stroke-width: 2; }
.at-join.up { stroke: color-mix(in oklab, var(--series-1) 70%, transparent); }
.at-ref { stroke: var(--text-secondary); stroke-width: 1.2; stroke-dasharray: 4 3; }
.at-ref-t { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-secondary); }
.at-line { fill: none; stroke: var(--series-1); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.at-refline { fill: none; stroke: var(--text-secondary); stroke-width: 1.4; stroke-dasharray: 5 4; }
.at-pt { fill: var(--series-1); stroke: var(--panel-solid); stroke-width: 1.5; }
.at-pt.hollow { fill: var(--panel-solid); stroke: var(--series-1); stroke-width: 2; }
.at-mark { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 3; }
.at-mark-t { font-family: var(--font); font-size: 10px; fill: var(--text-secondary); }


.at-mult { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .4rem 1rem; }
.at-facet { margin: 0; min-width: 0; }
.at-facet figcaption { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary); margin: 0 0 .1rem; }
.at-key { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .5rem 0 0; font-size: .78rem;
  color: var(--text-secondary); }
.at-key-top { margin: 0 0 .4rem; }
.at-ki { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; margin-right: .7rem; }
.at-ki > span { display: inline-block; flex: none; }
.at-k-line { width: 16px; height: 0; border-top: 2.2px solid var(--series-1); }
.at-k-ref { width: 16px; height: 0; border-top: 1.4px dashed var(--text-secondary); }
.at-k-hollow { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--series-1); }
.at-k-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--series-1); }
.at-k-ring { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--text-secondary); }

@media (max-width: 600px) {
  .at-shelf { grid-template-columns: 1fr; gap: .45rem; }
  .at-fig { padding: .9rem .85rem .85rem; }
  .at-head { font-size: 1.1rem; }
}
