/* Surface finish — on top of calc.css */
main.sf .tabs { grid-template-columns: repeat(3, 1fr); }
main.sf .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.sf .stage-bar .hist { margin-left: auto; }
main.sf .stage-bar .seg { flex: 0 0 auto; }
#view { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
#view .hit { fill: transparent; stroke: none; }
#view .handle { cursor: grab; }
#view .handle.hx { cursor: ew-resize; }
#view .handle.hy { cursor: ns-resize; }
#view .handle .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
#view .handle:hover .knob, #view .handle:focus .knob { fill: var(--sel); }

/* the profile drawing */
.sf-name { font-size: 13px; font-weight: 600; fill: var(--text); }
.sf-nm { cursor: text; }
.sf-nm:hover .sf-name, .sf-nm:focus .sf-name { fill: var(--sel); }
.sf-nm:focus { outline: none; }
.sf-sub { font-size: 11.5px; fill: var(--text-3); }
.sf-band { font-size: 11.5px; font-weight: 500; fill: var(--text-2); }
.sf-bg { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.sf-run { fill: var(--x-f4f4f1, #f4f4f1); stroke: none; }
.sf-prim { fill: none; stroke: var(--slate); stroke-width: 1.1; stroke-linejoin: round; }
.sf-mean { fill: none; stroke: var(--moment); stroke-width: 1.6; stroke-dasharray: 7 4; }
.sf-rough { fill: none; stroke: var(--text); stroke-width: 1.15; stroke-linejoin: round; }
.sf-zero { stroke: var(--steel-550); stroke-width: .8; stroke-dasharray: 9 3 1.5 3; }
.sf-secl { stroke: var(--steel-350); stroke-width: 1; stroke-dasharray: 3 3; }
.sf-secT { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.sf-fill { fill: color-mix(in srgb, var(--moment) 16%, transparent); stroke: none; }
.sf-core { fill: color-mix(in srgb, var(--moment) 8%, transparent); stroke: none; }
.sf-hl { stroke: var(--moment); stroke-width: 1.3; stroke-dasharray: 5 3; }
.sf-cl { stroke: var(--text); stroke-width: 1; stroke-dasharray: 4 3; }
.sf-mat { stroke: var(--load); stroke-width: 3; stroke-linecap: butt; }
.sf-zi { stroke: var(--load); stroke-width: 1.4; }
.sf-pk { fill: var(--load); stroke: var(--halo); stroke-width: 1; }
.sf-vl { fill: var(--moment); stroke: var(--halo); stroke-width: 1; }
.sf-el { stroke: var(--moment); stroke-width: 3; }
.sf-el.alt { stroke: var(--x-9fb0c8, #9fb0c8); }
.sf-dim, .sf-fdim { stroke: var(--steel-550); stroke-width: .9; fill: none; }
.sf-dimh { fill: var(--steel-550); }
.sf-ext { stroke: var(--steel-400); stroke-width: .8; }

/* pills */
#view .pill rect { fill: var(--surface); stroke: var(--steel-300); }
#view .pill text { font-size: 11.5px; font-weight: 500; fill: var(--text-2); font-variant-numeric: tabular-nums; }
#view .pill.dimv rect { stroke: var(--steel-200); }
#view .pill.desig rect { stroke: color-mix(in srgb, var(--sel) 45%, transparent); } #view .pill.desig text { fill: var(--x-1e4fbf, #1e4fbf); font-weight: 600; }
#view .pill.val rect { stroke: color-mix(in srgb, var(--text) 35%, transparent); } #view .pill.val text { fill: var(--text); font-weight: 600; }
#view .pill.editable { cursor: text; }
#view .pill.editable:hover rect, #view .pill.editable:focus rect { stroke: var(--sel); stroke-width: 1.4; }
#view .pill.editable:focus { outline: none; }

/* editors in the drawing */
.stage { position: relative; }
.sf-edit { position: absolute; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1.5px solid var(--sel); border-radius: 9px; padding: 2px 8px 2px 4px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); }
.sf-edit input { width: 82px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; }
.sf-edit-name input { width: 200px; text-align: left; }
.sf-edit span { font-size: 11.5px; color: var(--text-3); }

/* parameter chips under the drawing, flags */
.sf-live { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--line); }
.sf-pchip { display: inline-flex; align-items: center; gap: 6px; line-height: 1; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; font-family: inherit; }
.sf-pchip b { font-weight: 600; color: var(--text); }
.sf-pchip:hover { border-color: var(--line-2); }
.sf-pchip.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.sf-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sf-flags span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* panel */
.sf-seg { margin-bottom: 6px; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.sf-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; font-family: inherit; line-height: 1.3; }
.sf-chip:hover { border-color: var(--line-2); }
.sf-chip.on { border-color: var(--text); color: var(--text); font-weight: 500; }
.sf-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.sf-line { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 2px; margin-bottom: 6px; }
.sf-line-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sf-line-h select { flex: 0 0 auto; min-width: 84px; }
.sf-line-h .seg { flex: 1 1 auto; margin: 0; }
.sf-x { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; font-size: 16px; line-height: 1; }
.sf-tag { display: inline-block; font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; font-weight: 400; }
.sf-acc b.good { color: var(--good-ink); } .sf-acc b.bad { color: var(--bad-ink); } .sf-acc b.warn { color: var(--warn-ink); }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
#panel input[type="text"] { width: 100%; }
#panel.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
#panel.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
#panel.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); }

/* summary */
.sf-say { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; max-width: 38ch; }

/* margins */
#checks td.note { white-space: normal; min-width: 200px; line-height: 1.4; }
@media (max-width: 760px) {
  #checks thead { display: none; }
  #checks, #checks tbody { display: block; width: 100%; }
  #checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  #checks td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  #checks td.chk { grid-column: 1; grid-row: 1; }
  #checks td:nth-child(5) { grid-column: 2; grid-row: 1; align-self: center; }
  #checks td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  #checks td:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 12.5px; text-align: right; }
  #checks td:nth-child(2)::before { content: "value "; color: var(--text-3); }
  #checks td:nth-child(3)::before { content: "limit "; color: var(--text-3); }
  #checks td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--text-3); }
}

/* charts */
.sf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .sf-two { grid-template-columns: minmax(0, 1fr); } }
#pchart, #mchart { touch-action: none; user-select: none; }
#pchart .pdrag, #mchart .mdrag { cursor: ew-resize; }
#mchart .mdrag { cursor: ns-resize; }
.pc-avg { fill: var(--x-9fb0c8, #9fb0c8); }
.pc-avg.hit { fill: var(--x-7f93b3, #7f93b3); }
.pc-avg.on { fill: var(--moment); }
.pc-rare { fill: var(--steel-150); }
.pc-rare.on { fill: var(--x-c9d4e6, #c9d4e6); }
.pc-n { font-size: 11.5px; fill: var(--text-2); cursor: pointer; }
.pc-n.on { fill: var(--text); font-weight: 600; }
@media (max-width: 600px) { .pc-n { font-size: 10.5px; } }
.ch-pill rect { fill: var(--surface); stroke: var(--text); stroke-width: 1; }
.ch-pill text { font-size: 11px; font-weight: 600; fill: var(--text); font-variant-numeric: tabular-nums; }
.ch-l.halo { paint-order: stroke; stroke: var(--halo); stroke-width: 4px; stroke-linejoin: round; fill: var(--text-2); font-size: 11.5px; }
.sf-cap { margin: 8px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }

/* ---------- conversions (convert.js) ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cv-top { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 14px 22px; align-items: start; margin-bottom: 14px; }
.cv-in { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.cv-field { position: relative; display: block; }
.cv-field input { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; padding: 10px 34px 10px 12px; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.cv-field input:focus { border-color: var(--text-2); }
.cv-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; font-size: 16px; line-height: 1; }
.cv-from { margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); }
.cv-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cv-i.typed { border-color: var(--text-2); }
.cv-eg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cv-eg .sf-chip { font-size: 12px; }
.cv-warn .sf-tag { margin: 0 4px 0 0; }
.cv-i { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px 8px; background: var(--surface); min-width: 0; }
.cv-i .k { font-size: 11.5px; color: var(--text-3); }
.cv-i b.v { font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; justify-self: start; }
.cv-i i { font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.35; }
.cv-proc, .cv-warn, .cv-bad { margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.cv-proc b { font-weight: 500; color: var(--text); }
.cv-proc span { color: var(--text-3); }
.cv-cite { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.cv-warn { color: var(--text-3); }
.cv-bad { color: var(--bad-ink); }
.cv-tabs { margin: 4px 0 10px; }
.cv-body { min-width: 0; }
table.cv-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.cv-t th { font-size: 11.5px; font-weight: 500; color: var(--text-3); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: bottom; }
table.cv-t td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cv-t .l { text-align: left; }
table.cv-t td small { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.35; margin-top: 2px; }
table.cv-t tbody tr:hover { background: var(--surface-2); }
table.cv-t tr.on td { background: var(--sel-bg); }
table.cv-t tr.on td:first-child { font-weight: 600; }
table.cv-grades tr[data-n] { cursor: pointer; }
table.cv-names td.l { min-width: 0; }
table.cv-names td:first-child { white-space: nowrap; }
table.cv-t .sf-tag.warn { color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.cv-note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.cv-miss h3 { font-size: 13px; font-weight: 600; margin: 16px 0 0; }
.cv-miss ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.cv-chart { display: block; margin: 0 0 10px; }
.cv-chart .cv-cn { font-size: 11.5px; font-weight: 500; fill: var(--text-2); }
.cv-chart .cv-cn.on { fill: var(--text); font-weight: 600; }
.cv-chart .ch-l { font-size: 11.5px; font-weight: 500; fill: var(--text-2); paint-order: stroke; stroke: var(--halo); stroke-width: 3px; }
@media (max-width: 760px) {
  .cv-top { grid-template-columns: minmax(0, 1fr); }
  .cv-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-tabs { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  table.cv-t tr.on { background: var(--sel-bg); }
  table.cv-t tr.on td { background: none; }
  table.cv-t, table.cv-t tbody { display: block; width: 100%; }
  table.cv-t thead { display: none; }
  table.cv-t tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
  table.cv-t td { display: block; border: 0; padding: 2px 0; text-align: left; min-width: 0; }
  table.cv-t td::before { content: attr(data-h); display: block; font-size: 10.5px; color: var(--text-3); }
  table.cv-t td.l:first-child { grid-column: 1 / -1; }
  table.cv-t td.pr, table.cv-t td.cpc { display: none; }
  table.cv-names tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  table.cv-names td:nth-child(2), table.cv-names td:nth-child(5) { grid-column: 1 / -1; }
}

/* click to copy (copy.js, the threads/ pattern) */
.cp { cursor: copy; border-radius: 3px; -webkit-tap-highlight-color: transparent; transition: background-color .12s, box-shadow .12s; }
@media (hover: hover) { .cp:hover { background: var(--fill-2); box-shadow: 0 0 0 2px var(--fill-2); } }
.cp:focus { outline: none; }
.cp:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.cp.cp-ok, .cpb.cp-ok { background: var(--good-bg); box-shadow: 0 0 0 2px var(--good-bg); color: var(--good-ink); }
table.cv-t .cpc { width: 22px; padding: 0 0 0 2px; text-align: center; vertical-align: middle; }
.cpb { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none;
  color: var(--text-3); cursor: copy; vertical-align: middle; -webkit-tap-highlight-color: transparent; }
.cpb:hover { color: var(--text); background: var(--fill-2); }
.cpb:focus { outline: none; }
.cpb:focus-visible { outline: 2px solid var(--sel); outline-offset: 0; opacity: 1; }
@media (hover: hover) {
  table.cv-t tbody .cpb { opacity: 0; }
  table.cv-t tbody tr:hover .cpb, table.cv-t tbody .cpb:focus-visible, table.cv-t tbody .cpb.cp-ok { opacity: 1; }
  table.cv-t thead .cpb { opacity: .55; }
  table.cv-t:hover thead .cpb { opacity: 1; }
}
.cp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; gap: 12px; align-items: center; width: max-content;
  max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 9px; background: var(--text); color: var(--on-accent); font-size: 13px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.cp-toast[hidden] { display: none; }
.cp-toast b { font-weight: 600; }
.cp-toast button { flex: none; border: 0; border-radius: 6px; padding: 4px 9px; background: color-mix(in srgb, var(--surface) 16%, transparent); color: var(--on-accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.cp-toast.in { animation: cp-in .16s ease-out; }
@keyframes cp-in { from { opacity: 0; transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .cp-toast.in { animation: none; } .cp { transition: none; } }
@media print { .cpc, .cp-toast { display: none; } }

/* ---------- the symbol, spot by spot (symbol.js, ../surface-sym.js) ---------- */
.sx-eds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.sx-eds .sf-chip { font-size: 12.5px; padding: 4px 11px; }
.sx-gh { margin-left: auto; padding: 0; font-size: 12.5px; }
.sx-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.sx-fig { display: grid; gap: 8px; min-width: 0; }
.sx-canvas { display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.sx-svg { display: block; max-width: 100%; height: auto; overflow: visible; color: var(--ink); }
.sx-svg .sy-t { fill: var(--ink); font-family: inherit; }
.sx-svg .sy-t.c { font-style: italic; }
.sx-svg .sy-t.on, .sx-svg .sy-s.on { fill: var(--sel); }
.sx-svg .sy-ln.on { stroke: var(--sel); }
.sx-svg .sy-gh { fill: var(--text-3); font-style: italic; }
.sx-svg .sy-gh.on { fill: var(--sel); }
.sx-svg .sx-gbox { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 2.5; }
.sx-svg .sx-gbox.on { stroke: var(--sel); fill: var(--sel-bg); }
.sx-svg .sx-hl { fill: var(--sel-bg); }
.sx-svg .sx-surf { stroke: var(--steel-550); stroke-width: 1; fill: none; }
.sx-svg .sx-hatch { stroke: var(--steel-350); stroke-width: .8; fill: none; }
.sx-svg .sx-hit { fill: transparent; stroke: none; cursor: help; }
.sx-svg .sx-hit:focus { outline: none; }
.sx-svg .sx-hit:focus-visible { stroke: var(--sel); stroke-width: 1.2; }
.sx-exp { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-3); }
.sx-exp span { margin-right: 4px; }
.sx-side { display: grid; gap: 10px; min-width: 0; }
.sx-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.sx-card h3 { margin: 2px 0 6px; font-size: 15px; font-weight: 600; }
.sx-card p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.sx-card .sx-k { margin: 0; font-size: 11.5px; color: var(--text-3); }
.sx-card .sx-hint { color: var(--text-3); font-size: 12.5px; }
.sx-l { display: inline-block; min-width: 62px; font-size: 11.5px; color: var(--text-3); }
.sx-card code, .sx-tm code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; background: var(--fill-1); border-radius: 5px; padding: 1px 6px; color: var(--text); white-space: pre-wrap; }
.sx-cl { font-size: 11.5px; color: var(--text-3); }
.sx-card p.sx-cl { margin-top: 8px; }
.sx-this b { color: var(--text); }
.sx-lays { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 12px; color: var(--text-3); }
.sx-lays li b { display: inline-block; width: 18px; color: var(--text-2); }
.sx-lays li.on { color: var(--text); }
.sx-idx { display: flex; flex-wrap: wrap; gap: 4px; }
.sx-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--text-2); cursor: pointer; line-height: 1.4; }
.sx-chip b { font-weight: 600; color: var(--text); }
.sx-chip:hover { border-color: var(--line-2); }
.sx-chip.on { border-color: var(--sel); color: var(--text); background: var(--sel-bg); }
#sxBuild { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sx-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px 24px; align-items: start; }
.sx-g { display: grid; gap: 8px; min-width: 0; align-content: start; }
.sx-g h3, .sx-read h3 { margin: 0; font-size: 12px; font-weight: 500; color: var(--text-3); }
.sx-g .seg { justify-self: start; max-width: 100%; }
.sx-f { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.sx-f input[type="text"] { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); outline: none; }
.sx-f input[type="text"]:focus { border-color: var(--text-2); }
.sx-f .num { max-width: 140px; }
.sx-g .check { padding: 0; }
.sx-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sx-line select { width: auto; min-width: 0; flex: 0 1 auto; padding: 5px 6px; font-size: 12.5px; }
.sx-line .sx-v { width: 104px; flex: none; }
.sx-line .sx-v input.bad, .sx-f input.bad { border-color: var(--bad); color: var(--bad-ink); }
.sx-line .sf-x { margin-left: auto; }
.sx-lines .btn { justify-self: start; }
.sx-read { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.sx-say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.sx-tm { margin: 0; font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sx-cp { font-size: 12px; }
.sx-val, .sx-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.sx-val li b { display: inline-block; min-width: 82px; font-weight: 600; font-size: 11.5px; }
.sx-val li.err b { color: var(--bad-ink); }
.sx-val li.warn b { color: var(--warn-ink); }
.sx-val li.info b { color: var(--text-3); }
.sx-ok { margin: 0; font-size: 12.5px; color: var(--good-ink); }
.sx-notes li { padding-left: 14px; position: relative; }
.sx-notes li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
@media (max-width: 1000px) { .sx-top, .sx-b { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sx-canvas { min-height: 180px; padding: 12px 6px; } .sx-gh { margin-left: 0; } .sx-say { font-size: 14px; } }

@media print { .sf-edit { display: none !important; } }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-1e4fbf: #749ff5; --x-6e7177: #85827f; --x-7f93b3: #6e7e98; --x-9fb0c8: #4b5768; --x-c9d4e6: #353c48;
    --x-f4f4f1: #292724;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1e4fbf: #749ff5; --x-6e7177: #85827f; --x-7f93b3: #6e7e98; --x-9fb0c8: #4b5768; --x-c9d4e6: #353c48;
    --x-f4f4f1: #292724;
  }
}
/* theme-auto:end */
