/* ============================================================
   Architecture Studio — v5.0 styles
   All classnames are .as-* — no collision with .bs- / other studios
   Blueprint blue (#0EA5E9) as the studio accent
   ============================================================ */

.as-shell {
  --as-blue: #0EA5E9;
  --as-deep: #0369A1;
  --as-radius: 10px;
  --as-anim: 140ms ease;

  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  min-height: 100%;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ---- resume banner ---- */
.as-resume {
  margin: 12px 16px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(14,165,233,0.25);
  background: rgba(14,165,233,0.05);
  border-left: 3px solid var(--as-blue);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.as-resume-l { display: flex; align-items: flex-start; gap: 10px; }
.as-resume-icon {
  font-size: 16px;
  color: var(--as-blue);
  background: rgba(14,165,233,0.10);
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.as-resume-r { display: flex; gap: 8px; justify-content: flex-end; }
.as-news {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-news-i {
  display: grid;
  grid-template-columns: 22px auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 6px 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 5px;
  font-size: 12px;
}
.as-news-i-num {
  background: var(--ink-08);
  border-radius: 50%;
  width: 18px; height: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 18px;
  color: var(--ink-60);
}
.as-news-i-title { font-weight: 600; }
.as-news-i-desc  { color: var(--ink-60); font-size: 11.5px; }
.as-news-i.sev-good  .as-news-i-num { background: rgba(17,165,116,0.15); color: #11A574; }
.as-news-i.sev-warn  .as-news-i-num { background: rgba(245,158,11,0.18); color: #B45309; }
.as-news-i.sev-bad   .as-news-i-num { background: rgba(220,38,38,0.16); color: #B91C1C; }

/* ---- toolbar ---- */
.as-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.as-tb-l { display: flex; gap: 12px; align-items: baseline; }
.as-tb-brand {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.as-tb-dot {
  width: 8px; height: 8px;
  background: var(--as-blue);
  border-radius: 50%;
}
.as-tb-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  text-transform: uppercase;
}
.as-tb-r { display: flex; gap: 8px; align-items: center; }
.as-arch-select {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--ink-08);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}
.as-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 120ms ease;
  font-weight: 500;
}
.as-btn.ghost {
  background: var(--paper);
  border-color: var(--ink-08);
  color: var(--ink);
}
.as-btn.ghost:hover { border-color: var(--as-blue); color: var(--as-blue); }
.as-btn.accent {
  background: var(--as-blue);
  color: var(--paper);
}
.as-btn.accent:hover { background: var(--as-deep); }

/* ---- layout ---- */
.as-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 0 16px 24px 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .as-layout { grid-template-columns: 1fr; }
}

/* ---- side controls ---- */
.as-side {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 10px;
  padding: 14px;
  position: sticky;
  top: 12px;
}
.as-side-head {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink-08);
}
.as-ctrl { margin-bottom: 14px; }
.as-ctrl label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-60);
  margin-bottom: 5px;
  font-weight: 500;
}
.as-ctrl input[type=range] {
  width: 100%;
  accent-color: var(--as-blue);
  height: 4px;
  cursor: pointer;
}
.as-ctrl output {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--as-blue);
  margin-top: 2px;
  text-align: right;
}
.as-seg {
  display: flex;
  background: var(--bone);
  border-radius: 6px;
  padding: 2px;
  gap: 1px;
}
.as-seg button {
  flex: 1;
  padding: 5px 4px;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--ink-60);
  transition: all 120ms ease;
}
.as-seg button.on {
  background: var(--paper);
  color: var(--as-blue);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-weight: 600;
}
.as-seg button:hover:not(.on) { color: var(--ink); }
.as-side-foot {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--ink-08);
}
.as-perf-stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-40);
}
.as-perf-stamp #asPerfMs {
  color: var(--as-blue);
  font-weight: 600;
}

/* ---- main column ---- */
.as-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.as-section {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 10px;
  padding: 14px;
}
.as-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.as-sec-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.as-sec-sub {
  font-size: 11.5px;
  color: var(--ink-60);
}

/* ---- B. quad of 4 stacks ---- */
.as-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1200px) {
  .as-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .as-quad { grid-template-columns: 1fr; }
}
.as-stack {
  background: var(--paper);
  border: 1.5px solid var(--ink-08);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.as-stack::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stack-color);
  opacity: 0.55;
}
.as-stack:hover {
  border-color: var(--stack-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.as-stack.is-active {
  border-color: var(--stack-color);
  border-width: 2px;
  background: var(--stack-bg);
}
.as-stack.is-active::before { opacity: 1; height: 4px; }
.as-stack.is-cheapest .as-stack-total .val { color: #11A574; }

.as-stack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.as-stack-name { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.as-stack-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stack-color);
  display: inline-block;
}
.as-stack-name strong { font-size: 13px; }
.as-stack-name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-60);
}
.as-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.as-pill.ok   { background: rgba(17,165,116,0.12); color: #047857; }
.as-pill.warn { background: rgba(245,158,11,0.16); color: #B45309; }
.as-pill.bad  { background: rgba(220,38,38,0.14); color: #B91C1C; }

.as-stack-svg {
  border-radius: 6px;
  padding: 4px;
}
.as-svg { display: block; width: 100%; height: auto; }
.as-edge { stroke-linecap: round; stroke-linejoin: round; }
.as-node { cursor: pointer; transition: opacity 120ms ease; }
.as-node:hover { opacity: 0.7; }
.as-node rect { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06)); }

/* draw-in animation */
@keyframes as-draw {
  from { stroke-dashoffset: 100; opacity: 0.1; }
  to   { stroke-dashoffset: 0;   opacity: 0.4; }
}
@keyframes as-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.as-stack-svg .as-edge { animation: as-draw 300ms cubic-bezier(0.22,1,0.36,1) both; stroke-dasharray: 100; pathLength: 100; }
.as-stack-svg .as-node { animation: as-pop 300ms cubic-bezier(0.22,1,0.36,1) both; }

.as-stack-foot {
  border-top: 1px dashed var(--ink-08);
  padding-top: 8px;
}
.as-stack-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.as-stack-total .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.as-stack-total .val {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
}
.as-bom-short {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.as-bom-short li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 4px;
  align-items: baseline;
  padding: 2px 0;
}
.as-bom-short .b-i { font-size: 11px; }
.as-bom-short .b-l { color: var(--ink-60); }
.as-bom-short .b-c { font-family: var(--font-mono); color: var(--ink); font-size: 10.5px; }
.as-bom-short .b-more {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-40);
  border-top: 1px dotted var(--ink-08);
  margin-top: 3px;
  padding-top: 4px;
  display: block;
  grid-template-columns: none;
}

/* ---- C. timeline ---- */
.as-timeline { margin-top: 4px; }
.as-tl-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-tl-snap {
  display: grid;
  grid-template-columns: 60px 60px 80px 110px auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 120ms ease;
}
.as-tl-snap:hover { background: var(--paper); border-color: var(--ink-08); }
.as-tl-snap.on {
  background: var(--paper);
  border-color: var(--as-blue);
  box-shadow: 0 0 0 2px rgba(14,165,233,0.10);
}
.as-tl-snap.on.is-a { border-color: var(--as-blue); }
.as-tl-snap.on.is-b { border-color: var(--as-deep); }
.as-tl-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--as-blue);
}
.as-tl-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-60);
}
.as-tl-stack {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}
.as-tl-cost {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  text-align: right;
}
.as-tl-mark {
  background: var(--as-blue);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
}
.as-tl-snap.is-b .as-tl-mark { background: var(--as-deep); }
.as-tl-reason {
  font-size: 11.5px;
  color: var(--ink-60);
}
.as-tl-hint {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-40);
}
@media (max-width: 1024px) {
  .as-tl-snap {
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
  }
  .as-tl-stack, .as-tl-date { grid-column: 2; grid-row: 1; }
  .as-tl-cost { grid-column: 3; grid-row: 1; }
  .as-tl-reason { grid-column: 2 / -1; grid-row: 2; font-size: 11px; }
  .as-tl-mark { grid-row: 1; }
}

/* ---- diff panel ---- */
.as-diff {
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--ink-08);
}
.as-diff-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ink-08);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.as-diff-cost {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.as-diff-cost.up   { color: #B91C1C; }
.as-diff-cost.down { color: #047857; }
.as-diff-cost em {
  font-style: normal;
  font-size: 11px;
  margin-left: 4px;
}
.as-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 720px) {
  .as-diff-grid { grid-template-columns: 1fr; }
}
.as-diff-col h4 {
  margin: 0 0 6px 0;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--ink-60);
  letter-spacing: 0.05em;
}
.as-chip {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 7px;
  margin: 0 4px 4px 0;
  border-radius: 4px;
}
.as-chip.add { background: rgba(17,165,116,0.13); color: #047857; }
.as-chip.rem { background: rgba(220,38,38,0.13); color: #B91C1C; }
.as-chip.chg { background: rgba(14,165,233,0.13); color: var(--as-deep); }
.as-diff-note {
  font-size: 12px;
  color: var(--ink-60);
  padding-top: 6px;
  border-top: 1px dashed var(--ink-08);
}
.as-diff-note b { color: var(--ink); }
.muted { color: var(--ink-40); font-family: var(--font-mono); font-size: 11px; }

/* ---- F. stress scenarios ---- */
.as-stress-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .as-stress-tabs { grid-template-columns: 1fr; }
}
.as-stress-tab {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
  transition: all 120ms ease;
}
.as-stress-tab:hover { border-color: var(--as-blue); }
.as-stress-tab.on {
  background: var(--paper);
  border-color: var(--as-blue);
  box-shadow: 0 2px 6px rgba(14,165,233,0.12);
}
.as-stress-tab strong { font-size: 12.5px; }
.as-stress-tab em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-60);
  font-family: var(--font-mono);
}
.as-stress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1200px) {
  .as-stress-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .as-stress-grid { grid-template-columns: 1fr; }
}
.as-stress-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--stack-color);
}
.as-stress-card-h {
  display: flex;
  gap: 6px;
  align-items: center;
}
.as-stress-dot {
  width: 6px; height: 6px;
  background: var(--stack-color);
  border-radius: 50%;
}
.as-stress-card-h strong { font-size: 12.5px; flex: 1; }
.as-mini-svg { width: 100%; height: 80px; color: var(--stack-color); }
.as-stress-detail {
  font-size: 11.5px;
  color: var(--ink-60);
  line-height: 1.45;
  margin: 0;
}

/* ---- risk matrix ---- */
.as-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}
@media (max-width: 900px) {
  .as-grid-2 { grid-template-columns: 1fr; }
}
.as-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 10px;
  padding: 14px;
}
.as-risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.as-risk-table th, .as-risk-table td {
  padding: 7px 6px;
  text-align: left;
  border-bottom: 1px solid var(--ink-05);
  font-weight: normal;
}
.as-risk-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.as-risk-table td:last-child {
  font-family: var(--font-mono);
  text-align: right;
}
.as-risk-table td:last-child em {
  color: var(--ink-40);
  font-style: normal;
  font-size: 10px;
}
.as-risk-name {
  font-weight: 600;
  color: var(--stack-color);
}
.as-rb { display: inline-flex; gap: 2px; }
.as-rb span {
  width: 7px; height: 14px;
  background: var(--ink-05);
  border-radius: 1px;
}
.as-rb span.on { background: var(--stack-color); opacity: 0.85; }

/* ---- forecast ---- */
.as-forecast-svg {
  width: 100%;
  height: auto;
  display: block;
}
.as-forecast-leg {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.as-forecast-leg .lg { white-space: nowrap; }

/* ---- ADR (decision log) ---- */
.as-adr {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.as-adr li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 4px 6px;
  font-size: 11.5px;
  border-bottom: 1px dotted var(--ink-05);
}
.as-adr .adr-t {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-40);
}
.as-adr .adr-x { color: var(--ink); }

/* ---- toast ---- */
.as-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  max-width: 380px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.as-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.as-toast b { color: var(--as-blue); }

/* ---- node hover tip ---- */
.as-tip {
  position: absolute;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  pointer-events: none;
  z-index: 100;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  line-height: 1.45;
}
.as-tip .t-h {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.as-tip .t-h em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.as-tip .t-l {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 2px;
}
.as-tip .t-l b {
  color: var(--as-blue);
  font-weight: 500;
}

/* -------- phone fallback (≤600px) -------- */
@media (max-width: 600px) {
  .as-shell { padding: 12px; }
  .as-toast { right: 8px; bottom: 8px; z-index: 9999; }
  .as-ctrl input[type=range] { height: 6px; }
}
body.is-phone .as-layout { grid-template-columns: 1fr !important; }
body.is-phone .as-quad,
body.is-phone .as-stress-grid,
body.is-phone .as-stacks { grid-template-columns: 1fr !important; }
body.is-phone .as-toast { z-index: 9999; }

/* ============================================================
   v5.6 P0 — Progressive Disclosure (Arch Studio)
   ============================================================ */
.as-shell-pro { display: flex; flex-direction: column; min-height: 100%; }
.as-shell-pro .as-header-pro {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--ink-08);
}
.as-shell-pro .as-h-l { display: flex; flex-direction: column; gap: 3px; }
.as-shell-pro .as-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-transform: uppercase;
}
.as-shell-pro .as-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.as-shell-pro .as-h-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
}
.as-shell-pro .as-h-r { display: flex; align-items: center; gap: 8px; }
.as-h-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bone);
  border: 1px solid var(--ink-08);
  color: var(--ink-60);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all 180ms var(--ease);
}
.as-h-pill:hover { color: var(--ink); border-color: var(--ink-24); }
.as-h-pill.is-open { color: var(--accent); border-color: var(--accent); background: rgba(209,74,36,0.05); }
.as-h-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.as-resume-collapse { padding: 0 28px 8px; }
.as-resume-collapse[hidden] { display: none; }

/* main 2-col */
.as-shell-pro .as-layout-pro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  padding: 0;
  min-height: 480px;
}
.as-shell-pro .as-side-pro {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 20px 24px;
  border-right: 1px solid var(--ink-08);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--paper);
}
.as-shell-pro .as-main-pro { padding: 20px 28px 0; }
.as-cand-section-pro .as-section-head-pro {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 16px;
}
.as-section-title-pro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.as-section-meta-pro {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
}

/* bottom tabs */
.as-bottom-tabs { margin-top: 18px; padding: 0 28px 28px; }
.as-tabs-bar {
  display: flex; gap: 2px;
  border-bottom: 1.5px solid var(--ink-08);
  margin-bottom: 18px;
  overflow-x: auto;
}
.as-tab {
  background: none; border: none;
  padding: 12px 18px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-60);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 180ms var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.as-tab:hover { color: var(--ink); }
.as-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.as-tab-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bone);
  color: var(--ink-60);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.as-tab.is-active .as-tab-n {
  background: var(--accent);
  color: var(--paper);
}
.as-pane { display: none; }
.as-pane.is-active { display: block; animation: asFadeIn 220ms var(--ease); }
@keyframes asFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.as-pane-head { margin-bottom: 12px; }
.as-pane-meta {
  font-size: 12px;
  color: var(--ink-60);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.as-flow-pane {
  background: var(--bone);
  padding: 22px 24px;
  border-radius: 12px;
}
.as-flow-pane-h { font-size: 13.5px; color: var(--ink); margin-bottom: 14px; }
.as-flow-actions-pro { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .as-shell-pro .as-layout-pro { grid-template-columns: 1fr; }
  .as-shell-pro .as-side-pro { position: static; border-right: none; border-bottom: 1px solid var(--ink-08); max-height: none; }
  .as-shell-pro .as-header-pro { padding: 18px 18px 14px; flex-direction: column; gap: 10px; }
  .as-shell-pro .as-main-pro { padding: 16px 18px 0; }
  .as-bottom-tabs { padding: 0 18px 24px; }
  .as-tab { padding: 10px 12px; font-size: 12px; }
}
