/* Sapien. Tokens follow STYLE.md. Light and dark are classes on <html>. */
:root {
  --sans: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Libre Baskerville", Georgia, Cambria, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
html.light, :root {
  color-scheme: light;
  --bg: #ffffff; --bg-sidebar: #f8f8f7; --bg-sunk: #f8f8f7; --bg-card: #fafafa; --bg-raised: #ffffff;
  --text-1: #1a1a1a; --text-2: #4d4d4d; --text-3: #737373; --text-4: #b9b9b7;
  --line-1: #0000000a; --line-2: #0000000f; --line-3: #00000024; --line-focus: #0000004d;
  --fill-1: #37352f05; --fill-2: #37352f0a; --fill-3: #37352f14;
  --btn-bg: #1a1a19; --btn-fg: #ffffff;
  --blue: #0081f2; --green: #3da546; --red: #f25a5a; --amber: #efa201; --purple: #8269cb;
  --shadow-card: 0 0 0 1px #0000000f, 0 1px 2px #00000008;
  --shadow-float: 0 12px 32px #00000014;
  --scrim: #0000001f;
  --tk-k: #6a4fb8; --tk-f: #0b66c2; --tk-n: #96600a; --tk-s: #2b7a35; --tk-c: #8a8a88; --tk-op: #c0393d;
}
html.dark {
  color-scheme: dark;
  --bg: #242424; --bg-sidebar: #1f1f1f; --bg-sunk: #1a1a1a; --bg-card: #1c1c1c; --bg-raised: #313131;
  --text-1: #e6e6e6; --text-2: #b3b3b3; --text-3: #8c8c8c; --text-4: #595959;
  --line-1: #ffffff08; --line-2: #ffffff0f; --line-3: #ffffff1f; --line-focus: #ffffff52;
  --fill-1: #ffffff0a; --fill-2: #ffffff0f; --fill-3: #ffffff14;
  --btn-bg: #fffffff2; --btn-fg: #1a1a1a;
  --blue: #1a93fe; --green: #61aa64; --red: #e1474b; --amber: #dca451; --purple: #8269cb;
  --shadow-card: 0 0 0 1px #ffffff24, 0 1px 2px #00000047;
  --shadow-float: 0 12px 32px #00000066;
  --scrim: #00000059;
  --tk-k: #b4a2ec; --tk-f: #6cb4ff; --tk-n: #dca451; --tk-s: #8bc68d; --tk-c: #7a7a7a; --tk-op: #ff8a8d;
}
/* accent colours as text: pulled toward the text colour so small type stays readable */
html { --blue-t: color-mix(in srgb, var(--blue) 80%, var(--text-1)); --green-t: color-mix(in srgb, var(--green) 70%, var(--text-1)); --red-t: color-mix(in srgb, var(--red) 75%, var(--text-1)); --amber-t: color-mix(in srgb, var(--amber) 55%, var(--text-1)); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-1); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
#app { height: 100vh; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }
.mono { font-family: var(--mono); }
.dim { color: var(--text-2); } .faint { color: var(--text-3); } .up { color: var(--green-t); } .down { color: var(--red-t); } .warn { color: var(--amber-t); }
.t1 { color: var(--text-1); }
.grow { flex: 1; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.label { font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; }
.sec-sm { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-1); }
.num { font-variant-numeric: tabular-nums; }
.ic-svg { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* shell and sidebar */
.shell { display: flex; height: 100vh; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--bg); container-type: inline-size; container-name: main; }
.sidebar { width: 300px; flex: none; background: var(--bg-sidebar); display: flex; flex-direction: column; padding: 12px 8px; overflow: hidden; transition: width .16s ease; }
.sidebar.rail { width: 56px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 0 0 8px; margin-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logotext { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; }
.mark { flex: none; display: block; }
.sb-toggle { border-color: transparent !important; }
.rail .sb-head { flex-direction: column; height: auto; gap: 10px; padding: 0; align-items: center; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 10px; border: 0; background: none; color: var(--text-1); font-size: 14px; line-height: 20px; cursor: pointer; width: 100%; text-align: left; white-space: nowrap; flex: none; transition: background .12s; }
.sb-row .ic-svg { color: var(--text-3); }
.sb-row:hover { background: var(--fill-1); }
.sb-row.on { background: var(--fill-2); }
.sb-row.on .ic-svg { color: var(--text-1); }
.sb-row.sub { height: 34px; }
.sb-row.sub .ic-svg { width: 16px; height: 16px; }
.sb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-label { font-size: 12px; line-height: 16px; color: var(--text-3); padding: 20px 8px 6px; }
.sb-recent { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.sb-empty { font-size: 12px; line-height: 16px; color: var(--text-3); padding: 4px 8px; }
.sb-foot { padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-status { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.sb-grow { flex: 1; min-width: 0; }
.sw-track { position: relative; flex: none; width: 28px; height: 16px; border-radius: 9999px; background: var(--fill-3); transition: background .15s; }
.sw-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); transition: transform .15s, background .15s; }
.sb-switch.is-on .sw-track { background: color-mix(in srgb, var(--blue) 30%, transparent); }
.sb-switch.is-on .sw-knob { transform: translateX(12px); background: var(--blue); }
.sb-switch.is-on .ic-svg { color: var(--blue-t); }
.demopill { font-size: 12px; line-height: 18px; font-weight: 500; padding: 1px 9px; border-radius: 9999px; color: var(--blue-t); background: color-mix(in srgb, var(--blue) 10%, transparent); white-space: nowrap; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sw-track, .sw-knob { transition: none; } }
.rail .sb-recent { flex: 0; }
.rail .sb-nav, .rail .sb-foot { align-items: center; }
.rail .sb-row, .rail .sb-status { width: 40px; }
.rail .sidebar-spacer { flex: 1; }
.rail .sb-foot { margin-top: auto; }

/* top bar */
.topbar { flex: none; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 16px; position: relative; z-index: 30; min-width: 0; }
.picker-wrap { position: relative; flex: none; }
.picker { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.picker:hover, .picker[aria-expanded=true] { background: var(--fill-1); color: var(--text-1); }
.bt-title { flex: 0 1 auto; font-size: 20px; line-height: 28px; padding-left: 4px; }
.stubtag { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; padding: 1px 8px; border-radius: 9999px; color: var(--amber-t); background: color-mix(in srgb, var(--amber) 14%, transparent); white-space: nowrap; }
.stubtag.sm { font-size: 10px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }

/* basic parts */
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 9999px; padding: 0 10px; height: 26px; font-size: 12px; line-height: 16px; color: var(--text-2); white-space: nowrap; }
.pill b { color: var(--text-1); font-weight: 500; }
.chip, button.pill { cursor: pointer; background: none; transition: background .12s; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9999px; font-size: 13px; color: var(--text-2); }
.chip:hover:not(:disabled), button.pill:hover { background: var(--fill-1); color: var(--text-1); }
.chip:disabled { opacity: .5; cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); background: transparent; color: var(--text-1); border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s; }
.btn:hover:not(:disabled) { background: var(--fill-1); border-color: var(--line-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover:not(:disabled) { background: var(--btn-bg); opacity: .86; }
.btn.ghost { border-color: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.big { height: auto; min-height: 52px; padding: 8px 16px; border-radius: 12px; justify-content: space-between; text-align: left; }
.btn .bt b { font-weight: 500; display: block; }
.btn .bt small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; opacity: .7; }
.btn .k { font-size: 12px; font-weight: 400; color: var(--text-3); }
.btn.primary .k { color: var(--btn-fg); opacity: .65; }
.iconbtn, .rbtn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--text-3); cursor: pointer; flex: none; transition: background .12s; }
.rbtn { border-color: var(--line-2); }
.iconbtn:hover, .rbtn:hover { background: var(--fill-1); color: var(--text-1); }
.card { background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-card); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tag { display: inline-block; font-size: 12px; line-height: 16px; padding: 1px 8px; border-radius: 9999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.g { color: var(--green-t); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: transparent; }
.tag.w { color: var(--amber-t); background: color-mix(in srgb, var(--amber) 14%, transparent); border-color: transparent; }
.tag.r { color: var(--red-t); background: color-mix(in srgb, var(--red) 12%, transparent); border-color: transparent; }
.tag.b { color: var(--blue-t); background: color-mix(in srgb, var(--blue) 11%, transparent); border-color: transparent; }
.av, .pic { background: color-mix(in srgb, var(--c, var(--text-3)) 18%, transparent); color: var(--text-1); display: grid; place-items: center; font-weight: 500; flex: none; }
.av { border-radius: 9px; }
.pic { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.spin { display: inline-block; border: 2px solid var(--fill-3); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-1); padding: 0 12px; align-items: center; }
.tab { padding: 10px 10px; height: 40px; color: var(--text-3); font-size: 14px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; margin-bottom: -1px; transition: color .12s; }
.tab:hover { color: var(--text-1); }
.tab.on { color: var(--text-1); border-color: var(--text-1); }
.tabn { margin-left: 6px; font-size: 12px; padding: 0 6px; border-radius: 9999px; background: var(--fill-2); color: var(--text-2); }
input, textarea, select { font: inherit; color: var(--text-1); }
.input { width: 100%; height: 36px; border: 1px solid var(--line-2); background: var(--bg); border-radius: 8px; padding: 0 12px; outline: none; transition: border-color .12s; }
.input:focus { border-color: var(--line-focus); }
.input::placeholder, textarea::placeholder, .searchbox input::placeholder { color: var(--text-3); opacity: .8; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-1); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-1); vertical-align: middle; }
.menu-anchor { display: none; }
.menu { position: fixed; top: 0; left: 0; z-index: 400; min-width: 220px; max-height: 340px; overflow: auto; background-color: var(--bg-raised); opacity: 1; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-float); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-3px); } }
.menu .mi { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--text-1); }
.menu .mi:hover { background: var(--fill-2); }
.menu .mi:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.menu .mi.on { font-weight: 500; }
.menu .mi > span:last-child { white-space: nowrap; flex: none; }
.mlabel { font-size: 12px; line-height: 16px; color: var(--text-3); padding: 6px 10px 2px; }
.msep { height: 1px; background: var(--line-2); margin: 4px 0; }
.mrow { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; font-size: 14px; }
.mrow .mk { color: var(--text-3); } .mrow .mv { color: var(--text-1); font-family: var(--mono); font-size: 13px; }
.mnote { font-size: 12px; color: var(--text-3); padding: 6px 10px 4px; }
.toasts { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 14px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line-3); box-shadow: var(--shadow-float); animation: slidein .16s ease-out; max-width: 340px; }
.toast.err { border-color: var(--red); } .toast.ok { border-color: var(--green); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
.screen { flex: 1; min-height: 0; overflow: auto; }
.errbox { max-width: 520px; margin: 80px auto; padding: 22px; }
.errbox .btn { margin-right: 8px; }
.skeleton { background: var(--fill-2); border-radius: 12px; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .45; } }
.empty { color: var(--text-3); padding: 10px 0; }
.page-title { font: 400 24px/30px var(--serif); margin: 0; letter-spacing: -.01em; }
.lede { color: var(--text-2); margin: 6px 0 0; }

/* benchmark bars */
.btrack { height: 6px; border-radius: 3px; background: var(--fill-3); position: relative; }
.btrack.tall { height: 8px; border-radius: 4px; }
.btrack i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--blue); transition: width .5s ease; }
.btrack i.good { background: var(--green); } .btrack i.bad { background: var(--red); }
.btrack u { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 1px; text-decoration: none; transform: translateX(-1px); }
.btrack.tall u { height: 14px; }
.t-base { background: var(--text-3); } .t-lora { background: var(--amber); } .t-target { background: var(--green); } .t-floor { background: var(--red); }
.legend { font-size: 12px; color: var(--text-3); display: inline-flex; gap: 10px; font-weight: 400; }
.lg::before { content: ""; display: inline-block; width: 2px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.lg.base::before { background: var(--text-3); } .lg.lora::before { background: var(--amber); } .lg.target::before { background: var(--green); } .lg.floor::before { background: var(--red); }
.brow { display: grid; grid-template-columns: 96px 1fr 46px; gap: 10px; align-items: center; margin: 11px 0; font-size: 13px; }
.brow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* home */
.home { display: flex; flex-direction: column; }
.home-top { flex: 1; display: flex; flex-direction: column; align-items: center; padding: clamp(24px, 12vh, 140px) 24px 24px; }
.display { font: 400 32px/40px var(--serif); margin: 0 0 28px; text-align: center; letter-spacing: -.01em; }
.entry-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(768px, 100%); }
.entry { display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-card); cursor: pointer; transition: box-shadow .12s, background .12s; min-height: 92px; }
.entry:hover { box-shadow: 0 0 0 1px var(--line-3), 0 1px 2px #00000008; background: var(--bg); }
.eic { display: block; }
.elabel { font-size: 14px; line-height: 20px; font-weight: 500; }
.examples { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 768px; }
.exchip { border: 1px solid var(--line-2); background: none; color: var(--text-2); border-radius: 9999px; padding: 0 14px; height: 32px; cursor: pointer; font-size: 14px; transition: background .12s, color .12s; }
.exchip:hover { background: var(--fill-1); color: var(--text-1); }
.dock { flex: none; padding: 0 24px 20px; display: flex; justify-content: center; }
.dock-in { width: min(768px, 100%); position: relative; }
.dock-note { font-size: 12px; line-height: 16px; color: var(--text-3); text-align: center; margin-top: 10px; }
.composer { position: relative; border: 1px solid var(--line-3); border-radius: 22px; background: var(--bg); box-shadow: var(--shadow-float); padding: 12px 16px; transition: border-color .12s; }
.composer:focus-within, .composer.over { border-color: var(--line-focus); }
.composer textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: none; font: 400 16px/24px var(--sans); color: var(--text-1); padding: 0; }
.composer textarea:disabled { opacity: .6; }
.comp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comp-left { display: flex; gap: 8px; align-items: center; }
.send { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--fill-2); color: var(--text-4); cursor: default; transition: background .12s, color .12s; flex: none; }
.send.on { background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; }
.fchips, .qchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 9999px; background: var(--fill-2); font-size: 13px; max-width: 100%; }
.fchip .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.fchip .sz { color: var(--text-3); }
.fchip .ic-svg { color: var(--text-3); }
.fchip button { border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.fchip button:hover { color: var(--text-1); background: var(--fill-2); }
.dropveil { position: absolute; inset: 0; border-radius: 22px; background: color-mix(in srgb, var(--blue) 8%, var(--bg)); border: 1.5px dashed var(--blue); display: grid; place-items: center; color: var(--blue-t); font-weight: 500; pointer-events: none; }
.drafting { width: min(520px, 100%); margin-top: 8px; padding: 24px; text-align: left; background: var(--bg-card); }
.dtitle { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.dtext { margin-top: 6px; color: var(--text-2); white-space: pre-wrap; max-height: 60px; overflow: hidden; }
.drafting .steps { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.dstep { display: flex; align-items: center; gap: 10px; color: var(--text-3); transition: color .2s; }
.dstep.on { color: var(--text-1); } .dstep.done { color: var(--text-2); }
.dstep .ck { width: 16px; height: 16px; display: grid; place-items: center; }
.shimbar { height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; margin-top: 18px; }
.shimbar i { display: block; height: 100%; width: 40%; background: var(--text-1); opacity: .7; border-radius: 2px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* document pages: spec, runs, parts */
.doc { width: min(720px, 100%); margin: 0 auto; padding: 8px 24px 16px; }
.doc.wide { width: min(960px, 100%); padding-bottom: 40px; }
.doc-title { width: calc(100% + 16px); background: none; border: 1px solid transparent; border-radius: 8px; font: 400 24px/30px var(--serif); letter-spacing: -.01em; padding: 4px 8px; margin: 0 -8px; outline: none; display: block; }
.doc-sum { width: calc(100% + 16px); background: none; border: 1px solid transparent; border-radius: 8px; color: var(--text-2); font: 400 16px/24px var(--sans); padding: 4px 8px; margin: 4px -8px 0; resize: none; outline: none; display: block; }
.doc-title:hover, .doc-sum:hover { border-color: var(--line-2); } .doc-title:focus, .doc-sum:focus { border-color: var(--line-focus); background: var(--bg); }
.sect { margin-top: 28px; }
.sec { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sec .cnt { font-size: 12px; font-weight: 400; }
.srow { margin: 16px 0 6px; }
.srow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.srow .nm { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.srow .val { font-weight: 500; font-variant-numeric: tabular-nums; }
.srow .val.guard { color: var(--red-t); }
.vwrap { display: flex; align-items: center; gap: 8px; }
.srow .note { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 3px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sl { position: relative; height: 22px; display: flex; align-items: center; }
.sl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; outline: none; margin: 0; cursor: pointer; background: linear-gradient(90deg, var(--c1, var(--text-1)) 0 var(--p, 0%), var(--fill-3) var(--p, 0%) 100%); }
.sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-3); box-shadow: var(--shadow-card); cursor: grab; position: relative; z-index: 2; }
.sl input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.sl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-3); }
.sl input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--blue); outline-offset: 1px; }
.sl .tk { position: absolute; top: 3px; width: 2px; height: 16px; border-radius: 1px; pointer-events: none; z-index: 1; transform: translateX(-1px); }
.sl .tk span { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 14px; white-space: nowrap; color: var(--text-3); }
.sl .tk.base, .sl .tk.host { background: var(--text-3); } .sl .tk.base span { transform: translateX(calc(-100% - 3px)); }
.sl .tk.lora { background: var(--amber); } .sl .tk.lora span { transform: translateX(4px); }
.has-ticks { margin-bottom: 18px; }
.xbtn { border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 6px; padding: 3px; display: grid; place-items: center; }
.xbtn:hover { color: var(--red-t); background: color-mix(in srgb, var(--red) 10%, transparent); }
.addwrap { position: relative; display: inline-block; margin-top: 18px; }
.filerow { display: grid; grid-template-columns: 1fr 190px; gap: 12px; align-items: center; padding: 8px 0; }
.splitbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.splitbar i { display: block; } .splitbar .s1 { background: var(--blue); } .splitbar .s2 { background: var(--green); }
.splitnote { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.row-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.ings { padding: 4px 16px; }
.ing { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-1); }
.ing:first-child { border-top: 0; }
.savestate { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.buildcard { position: sticky; bottom: 16px; margin-top: 32px; background: var(--bg-raised); border: 1px solid var(--line-3); border-radius: 22px; box-shadow: var(--shadow-float); padding: 12px 16px 16px; z-index: 5; }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.bc-title { font-size: 16px; line-height: 24px; font-weight: 500; }
.bc-meta { font-size: 12px; }
.bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.list { overflow: hidden; margin-top: 20px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-1); transition: background .12s; }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--fill-1); }
.lrow > .ic-svg { color: var(--text-3); }
.lmain { flex: 1; min-width: 0; }
.ltitle { font-weight: 500; }
.lsub { font-size: 12px; line-height: 16px; }
.emptycard { margin-top: 24px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.emptyt { font-size: 16px; font-weight: 500; }
.emptycard .btn { margin-top: 12px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.searchbox { position: relative; }
.searchbox input { width: 100%; height: 36px; border: 1px solid var(--line-2); background: var(--bg); border-radius: 10px; padding: 0 12px 0 34px; outline: none; }
.searchbox input:focus { border-color: var(--line-focus); }
.searchbox .ic-svg { position: absolute; left: 11px; top: 10px; color: var(--text-3); }
.pq { width: 260px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.pcard { padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.pc-main { min-width: 0; }
.pc-t { font-weight: 500; line-height: 18px; }
.pc-s { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 2px; word-break: break-word; }
.pc-m { font-size: 12px; line-height: 16px; color: var(--text-2); margin-top: 6px; }
.pc-meas { display: flex; gap: 5px; align-items: flex-start; font-size: 12px; line-height: 16px; color: var(--green-t); margin-top: 6px; }
.pc-meas .ic-svg { margin-top: 1px; }
.pc-ev { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 6px; word-break: break-word; }
.pcard.locked .pc-t, .pcard.locked .pc-s { opacity: .72; }
.pc-note { margin-top: 8px; font-size: 12px; line-height: 16px; }
.pc-note summary { cursor: pointer; color: var(--text-3); list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.pc-note summary::-webkit-details-marker { display: none; }
.pc-note summary:hover { color: var(--text-1); }
.pc-note ul { margin: 6px 0 0; padding: 0 0 0 14px; color: var(--text-2); }
.pc-note li { margin: 2px 0; }
.pc-note a, .lnk { color: var(--text-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.pc-note a:hover, .lnk:hover { color: var(--text-1); }

/* filters, tabs and lists on the parts library page */
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-1); margin-top: 18px; }
.ptab { display: inline-flex; gap: 6px; align-items: center; padding: 0 10px; height: 38px; color: var(--text-3); font-size: 14px; font-weight: 500; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; margin-bottom: -1px; transition: color .12s; }
.ptab:hover { color: var(--text-1); }
.ptab.on { color: var(--text-1); border-color: var(--text-1); }
.ptab .n { font-size: 12px; font-weight: 400; color: var(--text-3); }
.fbar { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.frow2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fchip2 { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9999px; background: none; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; }
.fchip2:hover { background: var(--fill-1); color: var(--text-1); }
.fchip2.on { background: var(--fill-2); color: var(--text-1); border-color: var(--line-3); }
.fchip2 .n { font-size: 12px; color: var(--text-3); }
.fchip2.tog { margin-left: auto; }
.fchip2 .knob { width: 22px; height: 12px; border-radius: 9999px; background: var(--fill-3); position: relative; transition: background .12s; }
.fchip2 .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line-3); transition: left .12s; }
.fchip2.on .knob { background: var(--blue); }
.fchip2.on .knob::after { left: 12px; }
.fbar.compact { margin-top: 8px; gap: 6px; }
.fbar.compact .fchip2 { height: 24px; padding: 0 8px; font-size: 12px; }
.fbar.compact .fchip2.tog { margin-left: 0; }
.morebar { display: flex; justify-content: center; margin: 16px 0 4px; gap: 10px; align-items: center; }
/* deletions are their own category: the chip carries the red minus the palette uses for them */
.fdel-mark { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red-t); font-size: 12px; line-height: 1; font-weight: 600; margin-right: -2px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 8px; }
.pager .pnums { display: inline-flex; gap: 2px; align-items: center; }
.pager .pnum { min-width: 30px; height: 30px; padding: 0 8px; border: none; border-radius: 8px; background: none; font-size: 13px; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
.pager .pnum:hover { background: var(--fill-1); color: var(--text-1); }
.pager .pnum.on { background: var(--fill-2); color: var(--text-1); font-weight: 600; }
.pager .pgap { color: var(--text-3); padding: 0 4px; }
.pager .pcount { font-size: 12px; margin-left: 8px; }
.rcard, .fcard { padding: 14px 16px; }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rc-t { font-weight: 500; line-height: 20px; }
.rc-s { font-size: 13px; line-height: 18px; color: var(--text-2); margin-top: 4px; }
.rc-m { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 6px; word-break: break-word; }
.rc-act { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--text-2); }
.nums b { font-weight: 500; color: var(--text-1); }
.about { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); align-items: center; }
.fcard.flash { box-shadow: 0 0 0 1px var(--blue); }
.palette .fbar { margin-top: 8px; }
.palette .morebar { margin: 10px 0; }

/* run */
.mini { height: 4px; border-radius: 2px; background: var(--fill-3); position: relative; }
.mini > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transition: width .5s ease; }
.lb tr.row { cursor: pointer; }
.lb tr.row:hover td { background: var(--fill-1); }
.lb tr.best td { background: var(--fill-2); }
.lb .desc { font-family: var(--mono); font-size: 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb tr.det td { background: var(--bg-sunk); padding: 14px 18px; }
.detgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.src { display: grid; grid-template-columns: 1fr 120px 40px; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-1); }
.lchart .lc-grid { stroke: var(--line-2); } .lchart .lc-txt { fill: var(--text-3); }
.lchart .lc-target { stroke: var(--green); } .lchart .lc-target-t { fill: var(--green-t); }
.lchart .lc-lora { stroke: var(--amber); } .lchart .lc-lora-t { fill: var(--amber-t); }
.lchart .lc-base { stroke: var(--text-3); } .lchart .lc-dot { fill: var(--text-4); }
.lchart .lc-line { stroke: var(--blue); } .lchart .lc-end { fill: var(--blue); stroke: var(--bg-card); }
.bigbar { height: 6px; border-radius: 3px; background: var(--fill-3); position: relative; margin-top: 12px; }
.bigbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--blue); transition: width .6s ease; }
.bigbar.ok .fill { background: var(--green); }
.bigbar .seg { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--bg-raised); opacity: .7; }
.bigbar .cfill { position: absolute; left: 0; bottom: -4px; height: 2px; border-radius: 1px; background: var(--text-3); opacity: .6; transition: width .6s; }

/* agent drawer */
.well { background: var(--bg-sunk); border-radius: 12px; box-shadow: var(--shadow-card); padding: 4px 14px 14px; }
.well .sec-sm:first-child { margin-top: 10px; }
.code { background: transparent; border: 0; padding: 4px 0; font: 12px/1.65 var(--mono); color: var(--text-1); overflow: auto; }
.code .cl { display: flex; padding: 0 10px 0 0; border-left: 2px solid transparent; }
.code .cl.hl { background: color-mix(in srgb, var(--blue) 10%, transparent); border-left-color: var(--blue); }
.code .ln { width: 34px; text-align: right; padding-right: 12px; color: var(--text-4); user-select: none; flex: none; }
.code .lt { white-space: pre; }
.tk-k { color: var(--tk-k); font-weight: 600; } .tk-s { color: var(--tk-s); } .tk-n { color: var(--tk-n); } .tk-c { color: var(--tk-c); font-style: italic; } .tk-f { color: var(--tk-f); } .tk-op { color: var(--tk-op); }

/* builder */
.builder { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; }
.palette { padding: 4px 12px 16px 16px; overflow: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 120; padding: 8px 14px; border-radius: 10px; background: var(--bg-raised); border: 1px solid var(--blue); box-shadow: var(--shadow-float); color: var(--text-1, inherit); font-size: 13px; }
.skip-link:focus { left: 16px; top: 60px; }
.canvas:focus { outline: none; }
.pgroup { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); margin: 18px 0 6px; }
.piece { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-card); margin: 6px 0; cursor: grab; user-select: none; transition: box-shadow .12s; }
.piece:hover { box-shadow: 0 0 0 1px var(--line-3), 0 1px 2px #00000008; }
.piece:active { cursor: grabbing; }
.piece.dragging { opacity: .4; box-shadow: 0 0 0 1px var(--blue); }
.piece .t1 { font-weight: 500; font-size: 13px; line-height: 18px; }
.piece .t2 { font-size: 12px; color: var(--text-3); line-height: 16px; }
.piece .t3 { font-size: 12px; color: var(--green-t); line-height: 16px; margin-top: 1px; }
.piece .add { margin-left: auto; opacity: 0; color: var(--text-3); transition: opacity .12s; }
.piece:hover .add { opacity: 1; }
.piece.used { opacity: .55; }
.canvas { position: relative; overflow: hidden; background-color: var(--bg-sunk); background-image: radial-gradient(circle, var(--line-3) 0.8px, transparent 1.1px); background-size: 20px 20px; display: flex; flex-direction: column; min-width: 0; border-radius: 16px 0 0 0; box-shadow: 0 0 0 1px var(--line-1); }
.ctool { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; z-index: 3; gap: 8px; }
.seg2 { display: inline-flex; border-radius: 9px; overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow-card); padding: 2px; gap: 2px; }
.seg2 button { height: 26px; padding: 0 12px; color: var(--text-2); font-weight: 500; border: 0; border-radius: 7px; background: none; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .12s, color .12s; }
.seg2 button:hover { color: var(--text-1); }
.seg2 button.on { color: var(--text-1); }
.cv-body { flex: 1; min-height: 0; display: flex; position: relative; }
.cv-scroll { flex: 1; min-width: 0; overflow: auto; position: relative; }
.cv-inner { position: relative; min-height: 100%; padding: 14px 40px 150px 40px; min-width: 780px; }
.stack { position: relative; width: 250px; z-index: 2; }
.stack .label { margin-bottom: 8px; display: block; }
.hostlabel { color: var(--text-2); }
.slab { height: 28px; margin: 4px 0; border-radius: 8px; box-shadow: var(--shadow-card); background: var(--bg-card); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; color: var(--text-2); position: relative; transition: height .15s, box-shadow .15s, background .15s; gap: 8px; }
.slab .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slab.tall { height: 40px; }
.slab.port { box-shadow: 0 0 0 1px var(--blue); color: var(--text-1); background: color-mix(in srgb, var(--blue) 8%, var(--bg-card)); }
.slab .reads { color: var(--blue-t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slab.drop { box-shadow: none; border: 1px dashed var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--bg-card)); color: var(--text-1); }
.slab.drop.tall { height: 46px; }
.slab.mask { box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 55%, transparent); color: var(--red-t); background: color-mix(in srgb, var(--red) 7%, var(--bg-card)); }
.slab.heal { box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent); background: color-mix(in srgb, var(--green) 8%, var(--bg-card)); color: var(--green-t); }
.slab.lora { box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 60%, transparent); background: color-mix(in srgb, var(--amber) 9%, var(--bg-card)); color: var(--amber-t); }
.slab.tail { box-shadow: none; border: 1px dashed var(--line-3); background: transparent; color: var(--text-3); justify-content: center; }
.slab.tail.drop { border-color: var(--blue); }
.slab .ctl { display: inline-flex; align-items: center; gap: 4px; color: var(--text-1); }
.slab .ctl button { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; line-height: 1; display: grid; place-items: center; font-size: 13px; padding: 0; color: var(--text-1); }
.slab .ctl button:hover { border-color: var(--line-3); background: var(--fill-1); }
.slab .ctl select { background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; padding: 1px 2px; }
.slab .x { opacity: .7; } .slab .x:hover { opacity: 1; }
.node { position: absolute; width: 238px; border-radius: 12px; box-shadow: var(--shadow-card); background: var(--bg-card); padding: 10px 12px; z-index: 2; transition: top .3s ease, box-shadow .12s, opacity .12s; cursor: grab; }
.node:hover { box-shadow: 0 0 0 1px var(--line-3), 0 1px 2px #00000008; }
.node.dragging { opacity: .35; }
.node.sel { box-shadow: 0 0 0 1.5px var(--text-1); }
.node .nh { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.node .nh .pic { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.node .nh .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .ds { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 4px; }
.node .tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.node .nf { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.fitchip { display: inline-block; padding: 0 8px; border-radius: 9999px; font-size: 12px; line-height: 18px; font-weight: 500; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-t); animation: pop .2s ease-out; }
.fitchip.mid { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber-t); }
.fitchip.low { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red-t); }
.wires { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.wires path { fill: none; stroke-width: 2; stroke-linecap: round; transition: d .3s ease; }
.empty-hint { position: absolute; left: 340px; top: 120px; width: 300px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-3); border-radius: 14px; padding: 26px 18px; pointer-events: none; }
.empty-hint b { color: var(--text-2); font-weight: 500; display: block; margin-bottom: 4px; }
.cv-actions { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px; border-radius: 22px; border: 1px solid var(--line-3); background: var(--bg-raised); box-shadow: var(--shadow-float); z-index: 6; max-width: calc(100% - 24px); }
.cv-actions .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cv-actions .btn { height: 34px; border-radius: 17px; padding: 0 14px; }
.jobline { display: flex; align-items: center; gap: 10px; padding: 2px 6px 0; font-size: 12px; color: var(--text-2); }
.jobline .bigbar { height: 4px; flex: 1; margin-top: 0; }
.codepane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-sunk); }
.cv-body.split .cv-scroll { flex: 1.3; }
.cv-body.split .codepane { flex: 1; border-left: 1px solid var(--line-2); }
.editor { flex: 1; position: relative; overflow: hidden; }
.editor .gut { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; padding: 14px 0; overflow: hidden; border-right: 1px solid var(--line-1); font: 12.5px/1.7 var(--mono); color: var(--text-4); text-align: right; user-select: none; }
.editor .gut div { padding-right: 10px; height: 21.25px; }
.editor .gut div.err { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red-t); }
.editor textarea { position: absolute; left: 44px; right: 0; top: 0; bottom: 0; width: calc(100% - 44px); padding: 14px 16px; background: transparent; border: 0; outline: none; resize: none; font: 12.5px/1.7 var(--mono); color: var(--text-1); white-space: pre; overflow: auto; tab-size: 2; }
.editor .hlayer { position: absolute; left: 44px; right: 0; top: 0; bottom: 0; padding: 14px 16px; font: 12.5px/1.7 var(--mono); white-space: pre; overflow: hidden; pointer-events: none; }
.editor textarea.over { color: transparent; caret-color: var(--text-1); }
.errline { padding: 8px 14px; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red-t); font-size: 12px; }
.okline { padding: 8px 14px; border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 12px; display: flex; justify-content: space-between; }
.side { padding: 4px 16px 16px 12px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.ringcard { padding: 14px; display: flex; gap: 14px; align-items: center; }
.benchcard { padding: 12px 14px; }
.bigv { font: 400 24px/32px var(--serif); margin-top: 2px; letter-spacing: -.02em; }
.ring .ring-bg { stroke: var(--fill-3); } .ring .ring-fg { stroke: var(--blue); transition: stroke-dashoffset .5s ease; }
.ring .ring-v { fill: var(--text-1); font-family: var(--serif); } .ring .ring-l { fill: var(--text-3); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; text-align: center; }
.stat { padding: 8px 4px; border-radius: 10px; background: var(--bg-sunk); }
.stat .l { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.stat b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.attempt { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.attempt:hover { background: var(--fill-1); }
.attempt .n { color: var(--text-3); font-size: 12px; }
.attempt .d { font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug { padding: 12px; border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-card); font-size: 13px; line-height: 18px; animation: evin .3s; }
.sug b { font-weight: 500; }
.sug .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.sugload { display: flex; gap: 8px; align-items: center; color: var(--text-3); padding: 8px 0; }
.piece .t3 + .t3 { margin-top: 0; }
.slab .ctl button:disabled { opacity: .35; cursor: default; }
.numin { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-1); padding: 4px 8px; font-size: 13px; }
.infoline { margin-top: 10px; font-size: 12px; color: var(--text-2); line-height: 16px; }
.cv-inner.compact { padding: 14px 20px 150px 20px; min-width: 500px; }
.cv-inner.compact .stack { width: 200px; }
.cv-inner.compact .node { width: 214px; }
.cv-inner.compact .empty-hint { width: 220px; }

/* narrower main areas (container queries, so the sidebar width counts) */
@container main (max-width: 1100px) {
  .builder { grid-template-columns: 216px minmax(0, 1fr) 272px; }
  .two { grid-template-columns: 1fr; }
  .cv-actions .k { display: none; }
}
@container main (max-width: 900px) {
  .hide-sm { display: none !important; }
  .brow { grid-template-columns: 78px 1fr 42px; }
  .builder { grid-template-columns: 200px minmax(0, 1fr) 256px; }
  .entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container main (max-width: 720px) {
  .builder { grid-template-columns: 180px minmax(0, 1fr) 220px; }
  .cv-inner { min-width: 500px; }
  .run { grid-template-columns: 1fr; }
  .agents { flex-direction: row; overflow-x: auto; padding: 2px 24px 8px; }
  .agents-head { display: none; }
  .agent { width: 260px; }
  .main { padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.ph > div:first-child { flex: 1 1 360px; min-width: 0; }
.ph .pq { flex: none; }
.tscroll { overflow-x: auto; }
.tscroll .lb { min-width: 660px; }
.tabs { overflow-x: auto; }
.tab { white-space: nowrap; flex: none; }
.bhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.benchcard .brow { grid-template-columns: 72px 1fr 38px; gap: 8px; }
@container main (max-width: 1100px) {
  .cv-actions .btn { padding: 0 10px; }
  .cv-actions .row { gap: 6px; flex-wrap: nowrap; }
  .cv-actions { padding: 8px; }
}
@container main (max-width: 1100px) { .hide-md { display: none !important; } }


@keyframes evin { from { opacity: 0; background: var(--fill-2); } }

/* run pages */
.runview { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-sunk); }
.runview .topbar { background: transparent; }
.col { width: min(760px, 100%); margin: 0 auto; padding: 0 24px; }
.col.narrow { width: min(680px, 100%); }
.col.wide { width: min(920px, 100%); }
.rhead { flex: none; padding-top: 8px; }
.rh-row { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.rh-row .page-title { font-size: 26px; line-height: 34px; min-width: 0; }
.rh-btns { display: flex; gap: 8px; flex: none; }
.rh-btns .btn .t-icon-swap { margin-right: 2px; }
.rh-status { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--text-2); min-height: 22px; }
.rstat { font-variant-numeric: tabular-nums; }
.rstat .t-success-check { color: var(--green-t); margin-right: 8px; vertical-align: -3px; }
.rline { height: 2px; border-radius: 1px; background: var(--fill-3); margin-top: 16px; overflow: hidden; }
.rline i { display: block; height: 100%; background: var(--blue); transition: width var(--bar-dur) var(--bar-ease), background-color .4s; }
.rline.ok i { background: var(--green); }
.rnav { flex: none; margin-top: 8px; }
.rtabs { padding: 0; }
.rtabs a.tab { display: inline-flex; align-items: center; }
.rpage { flex: 1; min-height: 0; overflow: auto; padding-bottom: 72px; }
.rpage.act, .rpage.agentp { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; position: relative; }
.rsec { margin-top: 32px; }
.rsec:first-child { margin-top: 24px; }
.rh2 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0 0 12px; }
.bname { font-size: 16px; line-height: 24px; font-weight: 500; }
.bscore { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.bnum { display: inline-flex; font: 400 44px/52px var(--serif); letter-spacing: -.02em; }
.bcmp { display: flex; gap: 20px; margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--text-3); flex-wrap: wrap; }
.bact { margin-top: 16px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--text-2); font-size: 14px; line-height: 22px; cursor: pointer; display: inline-block; }
.linkbtn:hover:not(:disabled) { color: var(--text-1); text-decoration: underline; }
.linkbtn:disabled { opacity: .5; cursor: default; }
.alist { display: flex; flex-direction: column; margin: 0 -10px; }
.arow { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px; border-radius: 10px; transition: background .12s; }
.arow:hover { background: var(--fill-1); }
.arow .an { font-size: 14px; line-height: 20px; font-weight: 500; flex: none; min-width: 72px; }
.arow .anow { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.arow .asc { flex: none; min-width: 52px; text-align: right; color: var(--text-2); font-size: 14px; }
.plist { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; line-height: 22px; }
.prow .rk { width: 20px; flex: none; color: var(--text-3); }
.prow .pn { flex: 1; min-width: 0; }
.prow .ps { flex: none; text-align: right; color: var(--text-2); }
.plist + .linkbtn { margin-top: 12px; }
.dim3 { color: var(--text-3); }
/* activity */
.alog { flex: 1; min-height: 0; overflow: auto; padding: 8px 0 24px; }
.rgroup { margin-top: 28px; }
.rgroup:first-child { margin-top: 12px; }
.rdiv { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; color: var(--text-3); margin-bottom: 8px; }
.rdiv::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.al { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; padding: 3px 0; align-items: start; }
.ln { font-size: 13px; line-height: 22px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt { font-size: 14px; line-height: 22px; color: var(--text-1); overflow-wrap: anywhere; }
.lt.bad, .lsub.bad { color: var(--red-t); }
.lt.dim3 { color: var(--text-3); }
.lsub { font-size: 12px; line-height: 18px; }
.lr { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; white-space: nowrap; }
.lscore { color: var(--text-1); }
.lmile { text-align: center; font-size: 12px; line-height: 16px; color: var(--text-3); margin: 16px 0; }
.unudge { display: flex; flex-direction: column; align-items: flex-end; margin: 16px 0; }
.ulabel { font-size: 12px; line-height: 16px; color: var(--text-3); margin-bottom: 4px; }
.ubub { background: var(--bg); border-radius: 12px 12px 4px 12px; padding: 8px 12px; font-size: 14px; line-height: 22px; max-width: 440px; box-shadow: var(--shadow-card); overflow-wrap: anywhere; }
.foldbtn { border: 0; background: none; padding: 0; font-size: 14px; line-height: 22px; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.foldbtn:hover { color: var(--text-1); }
.detwell { background: var(--bg); box-shadow: var(--shadow-card); border-radius: 10px; padding: 10px 12px; margin: 8px 0 4px; font-size: 12px; line-height: 18px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.plines { padding: 4px 0; }
.pl { font-size: 12px; line-height: 20px; color: var(--text-3); }
.adock { flex: none; padding: 8px 0 16px; }
.pickwrap { position: relative; }
.pickbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.pickbtn:hover { background: var(--fill-1); color: var(--text-1); }
.newpill { position: absolute; left: 0; right: 0; bottom: 124px; margin: 0 auto; width: max-content; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--line-3); background: var(--bg-raised); box-shadow: var(--shadow-float); font-size: 13px; cursor: pointer; z-index: 5; }
/* agent page */
.ascroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 24px; }
.back { display: inline-block; font-size: 13px; line-height: 20px; color: var(--text-3); margin-top: 16px; }
.back::before { content: "\2039"; margin-right: 6px; }
.back:hover { color: var(--text-1); }
.ahd { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.astat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.ameta { font-size: 13px; line-height: 20px; color: var(--text-3); margin-top: 4px; }
.anowline { font-size: 14px; line-height: 22px; }
.pname { font-size: 14px; line-height: 22px; font-weight: 500; margin-bottom: 8px; }
.runview .well { background: var(--bg); }
.tlist { display: flex; flex-direction: column; }
.trow { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 12px; line-height: 18px; }
.trow .tc { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tr { text-align: right; }
.rline2 { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.rline2 .ts { font-size: 12px; line-height: 22px; color: var(--text-3); }
/* results */
.rlb { table-layout: fixed; min-width: 640px; }
.rlb th, .rlb td { padding: 9px 8px; }
.rlb th.r, .rlb td.r { text-align: right; }
.rlb tr.row td { background: transparent; }
.rlb tr.row:hover td { background: var(--fill-1); }
.rlb tr.row.open td { background: var(--fill-1); }
.rlb tr.det td { padding: 0; background: transparent; }
.rlb tr.det:not([data-open="true"]) td { border-bottom: 0; }
.detin { padding: 16px 8px 20px; }
.detbar { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.detfoot { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12px; line-height: 18px; flex-wrap: wrap; }
.lchart .lc-end { stroke: var(--bg-sunk); }
.tlegend { margin-bottom: 4px; }
.brow2 { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; gap: 12px; align-items: center; margin: 12px 0; font-size: 14px; }
.brow2 .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow2 .ps { text-align: right; }
.srcrow { display: grid; grid-template-columns: minmax(0, 1fr) 48px 120px 32px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.srcrow .sm { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.srcrow .ps { text-align: right; }
@container main (max-width: 720px) {
  .col, .col.narrow, .col.wide { padding: 0 16px; }
  .al { grid-template-columns: 64px minmax(0, 1fr) auto; }
}
.rtabs { overflow: visible; }
.rlb .desc { font-family: var(--sans); font-size: 14px; max-width: none; }

/* model logos */
.mlogo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 5px; overflow: hidden; vertical-align: middle; }
.mlogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mlogo-letter { background: var(--fill-2); color: var(--text-2); font-weight: 600; line-height: 1; }
html.dark .mlogo-mono { filter: invert(1); }
.mlogos { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.mlogo-more { font-size: 11px; line-height: 16px; color: var(--text-3); margin-left: 1px; }
.piece .mlogo, .pcard .mlogo { margin-top: 0; }
.nh .mlogo { flex: none; }
.lead { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* part status */
.pst { font-size: 11px; line-height: 16px; color: var(--text-3); white-space: nowrap; flex: none; }
.pst.g, .pst.r { padding: 0 6px; border-radius: 9999px; }
.pst.g { color: var(--green-t); background: color-mix(in srgb, var(--green) 12%, transparent); }
.pst.r { color: var(--red-t); background: color-mix(in srgb, var(--red) 12%, transparent); }
.piece .t1row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.piece .t1row .t1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece.locked { cursor: not-allowed; opacity: .6; }
.piece.locked:hover { box-shadow: var(--shadow-card); }
.piece .lk { margin-left: auto; color: var(--text-3); flex: none; display: inline-flex; }
.pgroup .n { font-weight: 400; margin-left: 4px; }
.pc-ev { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard.locked { opacity: 1; }
.pcard.locked .pc-t, .pcard.locked .pc-s, .pcard.locked .pc-m, .pcard.locked .pc-ev, .pcard.locked .pc-meas { color: var(--text-3); }
.pc-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.t-tt { width: max-content; max-width: 300px; white-space: normal; text-align: left; }

/* comparison set */
.cmp-verdict { font-size: 13px; line-height: 18px; font-weight: 500; margin-bottom: 6px; }
.cmp-list { display: flex; flex-direction: column; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 28px; font-size: 13px; line-height: 18px; border-top: 1px solid var(--line-1); }
.cmp-row:first-child { border-top: 0; }
.cmp-row .cl { color: var(--text-2); min-width: 0; }
.cmp-row .cv { color: var(--text-3); text-align: right; }
.cmp-row .cd { text-align: right; min-width: 76px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.cmp-row .cd .ic-svg { margin-top: -1px; }
.cmp.compact .cmp-row { font-size: 12px; }
.cmpbox { padding: 12px 14px; }
.bverdict { margin-top: 4px; font-size: 14px; line-height: 22px; }
.detcmp { margin-top: 14px; max-width: 520px; }

/* limits and tiles */
.statgrid.two { grid-template-columns: 1fr 1fr; }
.stat b.over { color: var(--red-t); }
.stat .sub { font-size: 11px; line-height: 14px; color: var(--text-3); }
.refused { margin-top: 10px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.ing .lead, .row-card .lead { flex: none; }
.srcrow .sm { display: flex; align-items: center; gap: 8px; }
.bname { display: flex; align-items: center; gap: 8px; }
.prow .pn { display: flex; align-items: center; gap: 8px; }
.prow .pn > span:last-child, .lb .desc > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .desc { display: flex; align-items: center; gap: 8px; }
.rlb .desc > span[title] { min-width: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; line-height: 18px; }
.stack .label.hostlabel { display: flex; align-items: center; gap: 8px; }
.healnote { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 16px; color: var(--amber-t); margin: 2px 0 8px; }
.healnote .ic-svg { flex: none; margin-top: 1px; }
.healmark { display: inline-flex; color: var(--amber-t); flex: none; }
.srcrow .sm .ell { min-width: 0; }
.refused { margin-top: 20px; }
.piece .t2s { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.piece .t2s .pst { order: 0; }

/* ---------- benchmark research ---------- */
.rs { margin-top: 28px; }
.rs-bare { margin-top: 20px; }
.lnk { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; font: 400 13px/20px var(--sans); color: var(--text-3); cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.lnk:hover:not(:disabled) { color: var(--text-1); background: var(--fill-2); }
.lnk:disabled { opacity: .5; cursor: default; }
.rs-now { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 6px; }
.rs-now .t-think { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.rs-prov { flex: none; color: var(--text-3); }
.rs-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.rs-step { display: flex; gap: 8px; font-size: 13px; line-height: 20px; color: var(--text-3); padding: 2px 0; }
.rs-ic { flex: none; display: inline-flex; align-items: center; height: 20px; color: var(--text-3); }
.rs-tx { min-width: 0; overflow-wrap: anywhere; }
.rs-done { margin-top: 4px; }
.rs-sumrow { display: flex; align-items: center; gap: 8px; color: var(--text-2); flex-wrap: wrap; }
.rs-sumrow .t-success-check { color: var(--green-t); display: inline-flex; }
.rs-sumrow .lnk { margin-left: 4px; }
.rs-work { padding-top: 14px; }
.rs-reason { font-size: 14px; line-height: 22px; color: var(--text-2); margin: 0 0 10px; }
.rs-sub { font-size: 12px; line-height: 16px; color: var(--text-3); margin: 16px 0 4px; }
.rs-src { list-style: none; margin: 0; padding: 0; }
.rs-src li { display: flex; gap: 10px; align-items: baseline; font-size: 13px; line-height: 22px; min-width: 0; }
.rs-src a { color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rs-src a:hover { color: var(--text-1); text-decoration: underline; }
.rs-host { flex: none; margin-left: auto; font-size: 12px; color: var(--text-3); }
.rs-line { margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.rs-line.err { color: var(--red-t); }
.rs-faint { font-size: 12px; line-height: 16px; color: var(--text-3); margin: -2px 0 6px; }
.rs-why { font-size: 13px; line-height: 20px; color: var(--text-2); margin-top: 2px; }
.rs-pending { font-size: 12px; line-height: 16px; color: var(--text-3); margin: 2px 0 0; }
.refs { list-style: none; margin: 6px 0 0; padding: 0; }
.refs li { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 20px; color: var(--text-3); }
.refs .rf-nm { color: var(--text-2); }
.refs .rf-sc { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.refs .rf-src { color: var(--blue-t); text-decoration: none; width: 52px; text-align: right; }
.refs .rf-src:hover { text-decoration: underline; }
.refs .rf-est { width: 52px; text-align: right; cursor: help; }
.alsorow { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.alsorow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.alsorow .nm { font-weight: 500; }
.sl .tk.ref { background: var(--text-2); opacity: .7; top: 6px; height: 10px; }
.sl .tk.ref.est { opacity: .3; }
.lg.ref::before { background: var(--text-2); opacity: .7; height: 8px; }
.rs-steps.clamp .rs-tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-more { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 8px; padding-left: 22px; }

/* ---------- shrink: spec section and plan page ---------- */
.small { font-size: 12px; line-height: 16px; }
.pickwrap { position: relative; display: inline-block; }
.menu.pickmenu { max-width: calc(100vw - 24px); }
.menu.pickmenu .mi-why { max-width: none; }
.menu.pickmenu .mi > .mi-main:last-child { flex: 0 1 auto; white-space: normal; }
.menu .mi.two { align-items: flex-start; }
.mi-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.mi-main .mlogo { margin-top: 1px; flex: none; }
.mi-t { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.mi-why { font-size: 12px; line-height: 16px; white-space: normal; max-width: 300px; }
.srccard { margin-top: 8px; padding: 12px 14px; }
.srcmain { min-width: 0; }
.srcname { font-weight: 500; word-break: break-all; }
.bc-row.one { grid-template-columns: 1fr; }
.cmp-row .cref { font-size: 12px; color: var(--text-3); min-width: 14px; }

.doc.shrink { width: min(760px, 100%); padding-bottom: 64px; }
.sh-head { margin-bottom: 8px; }
.sh-title { font: 400 24px/30px var(--serif); letter-spacing: -.01em; margin: 4px 0 10px; }
.sh-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-src { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.rsect { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-1); }
.sh-head + .rsect { border-top: 0; margin-top: 16px; padding-top: 0; }
.rsect .sec { display: flex; align-items: center; gap: 10px; }
.sh-sum { color: var(--text-2); font-size: 16px; line-height: 24px; margin: 6px 0 20px; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fig-l { font-size: 12px; line-height: 16px; color: var(--text-3); }
.fig-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fig-new { font: 400 24px/30px var(--serif); font-variant-numeric: tabular-nums; }
.fig-old { font-size: 14px; color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.fig-s { display: flex; gap: 10px; font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 2px; flex-wrap: wrap; }
.fig.bad .fig-new { color: var(--red-t); }
.fig.bad .fig-s span:last-child { color: var(--red-t); }
.figs-note { margin-top: 8px; }
.prob { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--red-t); margin-top: 12px; }
.prob .ic-svg { flex: none; margin-top: 2px; }
.sh-ctl { margin-top: 20px; }
.runrow { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.runrow .btn.primary { height: 40px; padding: 0 20px; border-radius: 10px; }
.runrow .why { font-size: 13px; line-height: 18px; color: var(--red-t); flex: 1 1 260px; min-width: 0; }
.jobline2 { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.tl { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; }
.tl li { position: relative; padding: 0 0 8px 18px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.tl li i { position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); }
.tl li::before { content: ''; position: absolute; left: 2.5px; top: 14px; bottom: -1px; width: 1px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
h3.sub { font-size: 14px; line-height: 20px; font-weight: 500; margin: 24px 0 6px; }
.rm { color: var(--text-2); margin: 0; }
.scs { display: flex; flex-direction: column; margin-bottom: 14px; }
.sc { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-1); }
.sc:first-child { border-top: 0; }
.sc-n { font-weight: 500; }
.sc-v { font: 400 24px/30px var(--serif); }
.sc-o { grid-column: 1 / -1; }
.healline { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 10px; }
@media (max-width: 640px) { .figs { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .tl li, .fig-new { transition: none; } }

/* quiet states and notes */
.limwarn { font-size: 13px; line-height: 20px; color: var(--amber-t); margin: -4px 0 10px; }
.rempty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.rh-note { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.rline.stopped i { background: var(--text-3); }
.stopmark { color: var(--text-3); margin-right: 8px; vertical-align: -3px; }
.cmp-rule { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--text-3); }
.wmark { color: var(--amber-t); font-size: 12px; font-weight: 500; white-space: nowrap; }
.cmp-row .cd:has(.wmark) { min-width: 120px; }
.lbsort { font-size: 12px; line-height: 16px; color: var(--text-3); margin: -4px 0 8px; }
.sb-sfx, .ltitle .sb-sfx { color: var(--text-3); font-size: 12px; font-weight: 400; }
.limprob { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.piece.locked { opacity: 1; }
.piece.locked .t1, .piece.locked .t2, .piece.locked .t3 { color: var(--text-3); }
/* the page scrollers keep a gutter on both sides, so their column lines up with the run header */
.rpage, .ascroll, .alog { scrollbar-gutter: stable both-edges; }

/* component verdicts */
.vtag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 9999px; white-space: nowrap; flex: none; color: var(--text-3); }
.vtag.g { color: var(--green-t); background: color-mix(in srgb, var(--green) 12%, transparent); }
.vtag.r { color: var(--red-t); background: color-mix(in srgb, var(--red) 12%, transparent); }
.vtag.n::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.vtag.x { box-shadow: inset 0 0 0 1px var(--line-2); }
.node .nv { margin-top: 8px; display: flex; }
.parts { display: flex; flex-direction: column; }
.part-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; padding: 6px 0; font-size: 13px; line-height: 18px; border-top: 1px solid var(--line-1); }
.part-row:first-child { border-top: 0; }
.part-row .pl { color: var(--text-2); }
.part-row .pmeta { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.part-row .pn2 { font-size: 12px; line-height: 16px; }
.parts.compact .part-row { font-size: 12px; }
.partsbox { padding: 12px 14px; }
.partsbox .label { margin-bottom: 6px; }
.stages { margin-top: 8px; border-top: 1px solid var(--line-1); padding-top: 6px; font-size: 12px; line-height: 16px; }
.stages summary { cursor: pointer; display: flex; justify-content: space-between; color: var(--text-2); list-style: none; padding: 2px 0; }
.stages summary::-webkit-details-marker { display: none; }
.stages summary::before { content: "+"; width: 14px; color: var(--text-3); }
.stages[open] summary::before { content: "-"; }
.stages summary > span:first-child { flex: 1; }
.st-list { display: flex; flex-direction: column; margin-top: 4px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 96px; gap: 8px; align-items: center; min-height: 24px; color: var(--text-2); }
.st-row .ss, .st-row .sp { text-align: right; }
.st-row .sn { display: flex; flex-direction: column; white-space: nowrap; }
.st-row .sp { white-space: nowrap; }
.st-row .sr { color: var(--amber-t); font-size: 11px; line-height: 14px; }
.st-note { margin-top: 4px; }
.st-drift { margin-top: 8px; color: var(--text-2); }
.bparts { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.detparts { margin-bottom: 10px; }
.detparts .label { margin-bottom: 4px; }
.part-stub { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; padding-top: 6px; }
