

#view-argo, #view-dossiers, #view-wallet {
  --ar-dim: var(--text-muted-on-panel, var(--text-muted));
  --ar-line: color-mix(in oklab, var(--border) 75%, transparent);
}
.ar-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1180px; }
.ar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-fig { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ar-muted-l { font-size: 12.5px; color: var(--ar-dim); }
.ar-none { color: var(--ar-dim); }


.ar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ar-head-t { min-width: 0; flex: 1 1 420px; }
.ar-head .eyebrow { margin: 0 0 4px; }
.ar-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.05;
  margin: 0; color: var(--text-primary); text-wrap: balance; }
.ar-title:focus { outline: none; }
.ar-blurb { margin: 8px 0 0; max-width: 66ch; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }
.ar-wallet { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--panel-solid);
  color: var(--text-primary); text-decoration: none; }
.ar-wallet:hover { border-color: var(--border-strong); }
.ar-wallet:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ar-wallet-l { font-size: 13px; color: var(--text-secondary); }

.ar-price { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 600;
  color: var(--text-primary); }
.ar-sig { display: inline-flex; color: var(--gold, var(--brand)); }
.ar-sig .ilg { stroke-width: 2.4; }


.ar-broker { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: color-mix(in oklab, var(--panel-solid) 88%, transparent); }
.ar-broker.compact { padding: 10px 14px; }
.ar-portrait { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface-1, var(--panel-solid)); display: grid; place-items: center; }
.ar-broker.compact .ar-portrait { width: 56px; height: 56px; }
.ar-portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-portrait.empty { border-style: dashed; color: var(--ar-dim); }
.ar-broker.compact .ar-portrait-mark .ilg { width: 26px; height: 26px; }
.ar-say { min-width: 0; flex: 1 1 auto; }
.ar-broker .ar-wallet { flex: 0 0 auto; }
.ar-say-h { margin: 0 0 3px; }
.ar-say-t { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; max-width: 70ch; }


.ar-ownerbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px;
  border: 1px dashed color-mix(in oklab, var(--brand) 55%, var(--border)); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary); }
.ar-ownerbar .eyebrow { color: var(--brand); }
.ar-ownerbar .btn { margin-left: auto; }


.ar-shelf-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ar-shelf-h .eyebrow { margin: 0; }
.ar-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ar-dos { --kc: var(--series-2); display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 16px 20px;
  border-left: 3px solid var(--kc); margin: 0; }
.ar-dos.kind-sweep { --kc: var(--series-3); }
.ar-dos.kind-briefing { --kc: var(--series-2); }
.ar-dos.kind-portfolio { --kc: var(--series-1); }
.ar-dos.held { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--kc) 45%, transparent); }
.ar-kind { margin: 0; color: color-mix(in oklab, var(--kc) 60%, var(--text-secondary)); }
.ar-dos-t { margin: 0; font-size: 17px; line-height: 1.3; font-family: var(--font); font-weight: 700; }
.ar-dos-t a { color: var(--text-primary); text-decoration: none; }
.ar-dos-t a:hover { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--brand) 60%, transparent); }
.ar-dos-p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); flex: 1 1 auto; }
.ar-stand, .ar-owned { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ar-dim); }
.ar-owned { color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; }
.ar-since { margin: 0; padding-left: 10px; border-left: 2px solid var(--kc); font-size: 13px; line-height: 1.45;
  color: var(--text-primary); }
.ar-since.still { border-left-color: var(--border); color: var(--text-secondary); }
.ar-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ar-foot .ar-price { margin-right: auto; font-size: 15px; }
.ar-foot .ar-muted-l + .ar-price { margin-right: auto; }
.ar-foot .btn { min-height: 36px; }
.ar-foot-note { margin: 0; font-size: 12.5px; color: var(--ar-dim); }


.ar-back { margin: 0; font-size: 13px; }
.ar-back a { color: var(--text-secondary); }
.ar-dated { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; padding: 16px 20px;
  border: 1px solid color-mix(in oklab, var(--brand) 45%, var(--border)); }
.ar-dated-d .eyebrow { margin: 0; }
.ar-dated-v { margin: 2px 0 0; font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-primary); }
.ar-dated-t { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.ar-dated-a { display: flex; align-items: center; gap: 12px; }
.ar-dated-a .btn { min-height: 40px; }

.ar-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel-solid); }
.ar-tiles[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-tiles[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-tile { padding: 12px 16px; border-left: 1px solid var(--ar-line); min-width: 0; }
.ar-tile:first-child { border-left: 0; }
.ar-tile .eyebrow { margin: 0 0 4px; }
.ar-tile-v { margin: 0; font-size: 22px; font-weight: 600; color: var(--text-primary); }
.ar-tile-s { margin: 2px 0 0; font-size: 12px; color: var(--ar-dim); }

.ar-sec { padding: 16px 20px; margin: 0; }
.ar-sec > .eyebrow { margin: 0 0 6px; }
.ar-note { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 80ch; }
.ar-read { border-left: 3px solid var(--series-1); }
.ar-quiet { background: transparent; box-shadow: none; }
.ar-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.ar-list li + li { margin-top: 4px; }
.ar-cover-src { margin: 10px 0 0; }

.ar-tablewrap { overflow-x: auto; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ar-table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ar-dim); padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ar-table td { padding: 8px 10px; border-bottom: 1px solid var(--ar-line); vertical-align: top; color: var(--text-primary); }
.ar-table td.f-text { font-family: var(--font); color: var(--text-secondary); line-height: 1.45; }
.ar-table td.f-ticker { font-family: var(--font); min-width: 180px; }
.ar-table th.f-pct, .ar-table th.f-signed_pct, .ar-table th.f-pp, .ar-table th.f-money, .ar-table th.f-price,
.ar-table th.f-num0, .ar-table th.f-num1, .ar-table th.f-int,
.ar-table td.f-pct, .ar-table td.f-signed_pct, .ar-table td.f-pp, .ar-table td.f-money, .ar-table td.f-price,
.ar-table td.f-num0, .ar-table td.f-num1, .ar-table td.f-int { text-align: right; white-space: nowrap; }
.ar-table td.f-day { white-space: nowrap; }
.ar-tk { color: var(--text-primary); text-decoration: none; }
.ar-tk:hover .ar-tk-n { text-decoration: underline; }
.ar-tk-n { color: var(--text-secondary); font-size: 12.5px; }
.ar-ccy { color: var(--ar-dim); font-size: 11px; }
.ar-flag { font-family: var(--font); font-size: 12px; color: var(--ar-dim); }


.ar-bal { display: flex; align-items: flex-end; gap: 20px 36px; flex-wrap: wrap; padding: 16px 20px; }
.ar-bal-c .eyebrow { margin: 0 0 4px; }
.ar-bal-v { margin: 0; }
.ar-bal-v .ar-price { font-size: 28px; }
.ar-bal-v .ar-sig .ilg { width: 20px; height: 20px; }
.ar-bal-s { margin: 0; font-size: 18px; color: var(--text-primary); }
.ar-bal-w { margin: 0 0 3px auto; }

.ar-one { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.ar-one > .ar-note { margin: 0; flex: 1 1 320px; }
.ar-wal { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ar-wal-main, .ar-wal-side { display: grid; gap: 16px; min-width: 0; }
.ar-tasks { list-style: none; margin: 0; padding: 0; }
.ar-task { padding: 12px 0; border-top: 1px solid var(--ar-line); }
.ar-task:first-child { border-top: 0; padding-top: 2px; }
.ar-task-h { margin: 0 0 4px; }
.ar-task-w { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.ar-task-f label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px; }
.ar-task-r { display: flex; gap: 8px; align-items: center; }
.ar-task-r input { font-family: var(--font-mono); width: 11rem; min-height: 40px; }
.ar-task-r .btn { min-height: 40px; }
.ar-task-s { margin: 6px 0 0; font-size: 12.5px; color: var(--ar-dim); }
.ar-task-s.done { color: var(--text-primary); }
.ar-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline;
  cursor: pointer; min-height: 24px; }
.ar-week-now p:not(.eyebrow) { margin: 0 0 6px; font-size: 13.5px; }
.ar-week-now .eyebrow { margin: 0 0 2px; }
.ar-meter { height: 6px; border-radius: var(--radius-pill); background: var(--ar-line); overflow: hidden; margin-bottom: 10px; }
.ar-meter span { display: block; height: 100%; background: var(--series-2); }
.ar-weeks, .ar-rows { list-style: none; margin: 0; padding: 0; }
.ar-weeks li, .ar-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--ar-line); font-size: 13.5px; color: var(--text-primary); min-height: 40px; }
.ar-weeks li:first-child, .ar-rows li:first-child { border-top: 0; }
.ar-rows li > .ar-fig { color: var(--text-secondary); white-space: nowrap; }
.ar-chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--text-secondary); }
.ar-chip.off { color: var(--ar-dim); }
.ar-empty { padding: 18px 20px; display: grid; gap: 12px; }
.ar-empty p { margin: 0; }


@media (max-width: 860px) {
  .ar-wal { grid-template-columns: minmax(0, 1fr); }
  .ar-tiles, .ar-tiles[data-n="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-tile:nth-child(3) { border-left: 0; }
  .ar-tile:nth-child(n+3) { border-top: 1px solid var(--ar-line); }
}
@media (max-width: 640px) {
  .ar-page { gap: 14px; }
  .ar-broker { padding: 10px 12px; gap: 12px; }
  .ar-portrait { width: 56px; height: 56px; }
  .ar-portrait-mark .ilg { width: 26px; height: 26px; }
  .ar-say-t { font-size: 13px; }
  .ar-shelf { grid-template-columns: minmax(0, 1fr); }
  .ar-ownerbar .btn { margin-left: 0; }
  .ar-dated { padding: 14px 16px; }
  .ar-dated-a { width: 100%; justify-content: space-between; }
  .ar-dated-a .btn, .ar-foot .btn { min-height: 44px; }
  .ar-sec { padding: 14px 16px; }
  .ar-bal-w { margin-left: 0; }
  
  .ar-bal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .ar-bal > .ar-bal-c:first-child, .ar-bal > .ar-bal-w { grid-column: 1 / -1; }
  
  .ar-tablewrap { overflow: visible; }
  .ar-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ar-table, .ar-table tbody, .ar-table tr, .ar-table td { display: block; width: 100%; }
  .ar-table tr { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .ar-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .ar-table td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ar-dim); text-align: left; flex: 0 0 auto; padding-top: 2px; }
  .ar-table td.f-text { display: block; text-align: left; }
  .ar-table td.f-text::before { display: block; margin-bottom: 2px; }
  .ar-table td.f-ticker { min-width: 0; }
  .ar-table td:empty { display: none; }
  .ar-table td:first-child { font-weight: 600; color: var(--text-primary); }
  .ar-table td:first-child::before { display: none; }
  .ar-task-r input { flex: 1 1 auto; width: auto; min-height: 44px; }
  .ar-task-r .btn { min-height: 44px; }
}
