.studio { flex: 1; min-height: 0; display: flex; }
.vrail { width: 248px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.vrail-head { padding: 16px 16px 10px; display: flex; align-items: center; gap: 8px; position: relative; }
.vlist { flex: 1; overflow: auto; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.vitem { padding: 10px; border-radius: var(--r); display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.vitem:hover { background: var(--paper-2); }
.vitem.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.vitem .vn { font-weight: 700; font-size: 15px; }
.vitem .vs { font-size: 13px; color: var(--ink-soft); min-height: 1.55em; }
.vitem .st { font-size: 13px; }
.vrail-foot { flex: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; }
.vrail-none { font-size: 14px; color: var(--ink-soft); padding: 4px 18px; }
.vmain { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.vhead { flex: none; padding: 18px var(--gutter) 0; display: flex; flex-direction: column; gap: 14px; }
.vhead-top { display: flex; align-items: center; gap: 14px; position: relative; max-width: 880px; }
.vtitle { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.vhead-top .sub { margin-top: 2px; }
/* The header and its tabs end where the 880px body column ends; only the tabs' rule runs the full width. */
/* A notice above a version ends at the body column, with the header. */
.vhead > .notice { max-width: 880px; }
.vhead .tabs { margin: 0 calc(-1 * var(--gutter)); padding: 0 max(var(--gutter), calc(100% + var(--gutter) - 880px)) 0 var(--gutter); }
.vbody { flex: 1; min-height: 0; overflow: auto; padding: 22px var(--gutter) 40px; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; scrollbar-color: var(--line-hard) transparent; }
.vcol { display: flex; flex-direction: column; width: 100%; max-width: 880px; }
.glance { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: -8px; }
[data-page="capture"] .strong { font-weight: 600; }

.matrix { width: 100%; border-collapse: collapse; }
.matrix th { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.matrix th.c { text-align: center; width: 92px; }
.matrix td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix td.c { text-align: center; }
.matrix .case { font-weight: 600; font-size: 14px; }
.matrix .case-open { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.matrix .case-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.attempt-video { width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: var(--r); background: var(--player); }

.built-body { padding: 20px 24px; gap: 18px; }
.attempt-line { font-size: 16px; line-height: 1.55; }
.attempt-check { gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.built-sum { font-weight: 700; font-size: 16px; }
.built-body[data-tab="scenarios"] .built-sum { font-weight: 600; font-size: 15px; }
.vrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.built-sum + div > .vrow:first-child { border-top: 1px solid var(--line); }
.vrow .dot { margin-top: 8px; }
.vrow .vt { font-size: 15px; line-height: 1.5; font-weight: 600; }
.vrow .vf { font-size: 14px; color: var(--ink-soft); margin-top: 4px; display: flex; flex-direction: column; gap: 3px; }
.passed-rule { align-items: flex-start; padding: 3px 0; }
.passed-rule .dot { margin-top: 7px; }
.item-row { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; color: var(--ink); min-height: 52px; font: inherit; }
.item-head { gap: 12px; }
.files { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r); height: calc(100vh - 240px); min-height: 0; }
.flist { border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.fitem { appearance: none; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink); font-family: var(--mono); }
.fitem:hover { background: var(--paper-2); }
.fitem.on { background: var(--paper-2); font-weight: 600; }
.fitem span { font-family: var(--font); color: var(--ink-soft); font-size: 13px; font-weight: 400; }
.fview { padding: 16px; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.fview .codeview { flex: 1; min-height: 0; max-height: none; }
.fprose { padding: 8px 8px 0; overflow: auto; }
.log-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-bottom: 8px; }
.logrow { display: grid; grid-template-columns: 70px 80px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
button.logrow { appearance: none; background: none; border-width: 0 0 1px; width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
button.logrow:hover { background: var(--paper-2); }
.logrow .lt { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.logrow .lk { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.logrow .lk > .ico { width: 14px; height: 14px; flex: none; }
.logrow .lk[data-k="ok"] { color: var(--ok); }
.logrow .lk[data-k="warn"] { color: var(--amber); }
.logrow .lk[data-k="error"] { color: var(--danger); }
.log-detail { margin: 8px 0 12px 162px; padding: 10px 12px; background: var(--paper-2); border-radius: var(--r); font-family: var(--mono); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.two-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vrow .disc, .vrow .disc:first-child { border: 0; }
.fprose h1, .fprose h2 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; }
.fprose table { border-collapse: collapse; font-size: 14px; }
.fprose th, .fprose td { text-align: left; vertical-align: top; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }

.compare-pick { gap: 10px; }
.compare-pick .dd { width: 150px; }
.compare-line { font-size: 16px; font-weight: 600; line-height: 1.5; }
.compare-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.compare-sides > section { padding: 16px 20px 16px 0; }
.compare-sides > section + section { padding: 16px 20px; border-left: 1px solid var(--line); }

.feed-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.feed-ico { display: inline-flex; color: var(--ink-ghost); }
.feed-ico .ico { width: 18px; height: 18px; }
.feed-ico[data-tone="ok"] { color: var(--ok); }
.feed-ico[data-tone="run"] { color: var(--run); }
.feed-ico[data-tone="bad"] { color: var(--danger); }
.feed-time { width: 104px; flex: none; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
