/* SERVR (tools/servr.html). Tool accent: mint #5cffc0. Builds on vibe.css + product.css + simple.css. No pink. */
.servr-page { --mint: #5cffc0; --mint-ink: #5cffc0; --mint-soft: rgba(92, 255, 192, .1); --mint-line: rgba(92, 255, 192, .32); --mint-glow: rgba(92, 255, 192, .45); --accent: var(--mint); }
:root[data-theme="light"] .servr-page { --mint-ink: #0c7f5a; --mint-soft: rgba(12, 127, 90, .1); --mint-line: rgba(12, 127, 90, .3); --mint-glow: rgba(12, 127, 90, .25); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .servr-page { --mint-ink: #0c7f5a; --mint-soft: rgba(12, 127, 90, .1); --mint-line: rgba(12, 127, 90, .3); --mint-glow: rgba(12, 127, 90, .25); } }

/* simple.css defaults are lime: retint to mint for this page */
.servr-page .sp { --sp-acc: var(--mint); }
.servr-page .sp-pi { color: var(--mint-ink); background: var(--mint-soft); border-color: var(--mint-line); }
:root[data-theme="light"] .servr-page .sp-pi { color: var(--mint-ink); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .servr-page .sp-pi { color: var(--mint-ink); } }
.servr-page .sp-path-copy { border-color: color-mix(in srgb, var(--mint-ink) 30%, var(--line-2)); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--mint) 6%, transparent), transparent 55%), var(--surface); }
.servr-page .sp-k { background: var(--mint); color: #04150f; box-shadow: 0 0 18px -4px var(--mint-glow); }
.servr-page .sp-steps i { color: var(--mint-ink); }
.servr-page .sb-fine { margin: 0; font-size: 12.5px; }
.servr-page .sb-fine a, .servr-page .sp-more a:not(.btn) { color: var(--mint-ink); }
.eyebrow.mint::before { background: var(--mint); box-shadow: 0 0 10px var(--mint-glow); }
.servr-page code { overflow-wrap: anywhere; }
.sv-promise-b { display: block; margin-bottom: 6px; font: 650 clamp(21px, 2vw, 26px)/1.25 var(--f-display); letter-spacing: -.02em; color: var(--text); }

/* CTA */
.servr-page .bt-cta { align-items: center; }
.sv-open { background: var(--mint); color: #04150f; border-color: transparent; box-shadow: 0 0 0 1px rgba(92, 255, 192, .45), 0 8px 30px -10px rgba(92, 255, 192, .5); }
.sv-open:hover { background: #7dffcf; border-color: transparent; }
.sv-open svg { width: 15px; height: 15px; }
.sv-open .i-check { display: none; }
.sv-open.copied .i-copy { display: none; }
.sv-open.copied .i-check { display: block; }

/* ---------- hero host board ---------- */
.sv-board { position: relative; display: grid; gap: 0; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; color: #dfe5dc;
  background: radial-gradient(70% 50% at 50% 0%, rgba(92, 255, 192, .09), transparent 70%), var(--code-bg); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .9), 0 0 60px -38px rgba(92, 255, 192, .55); }
.sv-board::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 28px 28px; }
.sv-board > * { position: relative; }
.sv-b-top { display: grid; gap: 10px; justify-items: center; }
.sv-b-app { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(92, 255, 192, .35); background: rgba(10, 14, 16, .9); box-shadow: 0 0 30px -14px rgba(92, 255, 192, .6); }
.sv-b-app div { display: grid; gap: 3px; }
.sv-b-app b { font-size: 14px; color: #eef2f5; font-weight: 600; }
.sv-b-app span { font-size: 12px; color: #8a919a; }
.sv-b-dot { width: 9px; height: 9px; border-radius: 50%; background: #5cffc0; box-shadow: 0 0 10px #5cffc0; animation: sv-pulse 2.4s ease-in-out infinite; }
.sv-b-cmd { font-size: 11.5px; color: #8a919a; letter-spacing: .02em; }
.sv-b-cmd .ps { color: #5cffc0; font-weight: 600; letter-spacing: .1em; margin-right: 6px; }
.sv-b-cmd em { font-style: normal; color: #eef2f5; }
.sv-b-wire { display: grid; place-items: center; height: 34px; }
.sv-b-wire i { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, rgba(92, 255, 192, .8) 0 6px, transparent 6px 11px); background-size: 2px 22px; animation: sv-flow-y 1.2s linear infinite; }
.sv-b-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sv-b-host { display: grid; gap: 4px; padding: 10px 10px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(18, 21, 26, .85); min-width: 0; transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.sv-b-host i { width: 7px; height: 7px; border-radius: 2px; background: var(--acc); opacity: .55; transition: opacity .4s, box-shadow .4s; }
.sv-b-host b { font: 600 12.5px/1.2 var(--f-display); color: #e8ece6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-b-host span { font: 500 9.5px/1.2 var(--f-mono); color: #6b727b; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-b-host.on { border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 0 24px -10px var(--acc); transform: translateY(-2px); }
.sv-b-host.on i { opacity: 1; box-shadow: 0 0 10px var(--acc); }
.sv-b-out { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; border-radius: 9px; border: 1px dashed rgba(255, 255, 255, .1); font-size: 11.5px; color: #b7bdb8; min-width: 0; }
.sv-b-out span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-b-ok { flex: none; padding: 3px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5cffc0; background: rgba(92, 255, 192, .1); border: 1px solid rgba(92, 255, 192, .3); }
@keyframes sv-flow-y { to { background-position: 0 22px; } }
@keyframes sv-flow-x { to { background-position: 22px 0; } }
@keyframes sv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- prompt / terminal block (own copy of Brand's .bs-cmdb) ---------- */
.sv-cmdb { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--code-bg); min-width: 0; }
.sv-cmdb-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; transition: box-shadow .3s; }
.sv-cmdb-r.term { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; } /* product.css .term is a terminal window */
.sv-cmdb-r + .sv-cmdb-r { border-top: 1px solid rgba(255, 255, 255, .06); }
.sv-cmdb-r.flash, .sv-cmdb-r.term.flash { box-shadow: inset 0 0 0 1px rgba(92, 255, 192, .45), inset 0 0 30px -12px rgba(92, 255, 192, .4); }
.sv-cmdb-l { display: inline-flex; align-items: center; gap: 7px; padding-top: 3px; min-width: 132px; font: 600 10px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #5cffc0; white-space: nowrap; }
.sv-cmdb-l i { width: 7px; height: 7px; border-radius: 2px; background: #5cffc0; box-shadow: 0 0 8px rgba(92, 255, 192, .6); flex: none; }
.sv-cmdb-r.term .sv-cmdb-l { color: #2ee6ff; }
.sv-cmdb-r.term .sv-cmdb-l i { background: #2ee6ff; border-radius: 50%; box-shadow: 0 0 8px rgba(46, 230, 255, .6); }
.sv-cmdb-b { min-width: 0; color: #e8ece6; font-size: 13px; line-height: 1.45; }
.sv-cmdb-b p { margin: 0; }
.sv-cmdb-b details { margin-top: 6px; }
.sv-cmdb-b summary { cursor: pointer; font: 500 11px/1.4 var(--f-mono); color: #8a919a; }
.sv-cmdb-b summary:hover { color: #5cffc0; }
.sv-cmdb-b pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--f-code); color: #b7bdb8; max-height: 260px; overflow: auto; scrollbar-width: thin; }
.sv-cmdb-cw { display: grid; gap: 4px; min-width: 0; }
.sv-cmdb-c { display: block; min-width: 0; font: 12.5px/1.5 var(--f-code); color: #2ee6ff; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding-top: 1px; background: none; border: 0; overflow-wrap: normal; }
.sv-cmdb-n { font-size: 12px; color: #8a919a; line-height: 1.4; }
.sv-cmdb-n a { color: #5cffc0; }
.sv-cmdb-n code { color: #c9d0c6; background: rgba(255, 255, 255, .06); padding: 1px 4px; border-radius: 4px; }
.sv-cmdb .copy-btn { align-self: start; margin: 0; }

/* ---------- planner ---------- */
.sv-step-l { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sv-step-l span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10.5px; letter-spacing: 0; color: #04150f; background: var(--mint); }
.sv-apps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sv-chip { display: grid; gap: 3px; padding: 10px 12px; text-align: left; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; min-width: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.sv-chip b { font: 600 13.5px/1.2 var(--f-display); }
.sv-chip span { font: 500 10.5px/1.2 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-chip:hover { border-color: var(--line-3); }
.sv-chip[aria-pressed="true"] { border-color: var(--mint-line); background: color-mix(in srgb, var(--mint) 8%, var(--bg-2)); box-shadow: 0 0 0 1px var(--mint-line), 0 0 24px -14px var(--mint-glow); }
.sv-chip[aria-pressed="true"] span { color: var(--mint-ink); }
.sv-chip:focus-visible, .sv-host:focus-visible, .sv-file:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }

.sv-app-sum { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--bg) 50%, transparent); }
.sv-app-sum p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.sv-app-sum dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sv-app-sum dl div { display: flex; gap: 7px; align-items: baseline; min-width: 0; }
.sv-app-sum dt { font: 600 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sv-app-sum dd { margin: 0; font: 500 12.5px/1.4 var(--f-code); color: var(--text); overflow-wrap: anywhere; min-width: 0; }

.sv-hosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sv-host { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 14px; text-align: left; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; min-width: 0; transition: border-color .2s, background .2s, box-shadow .2s, opacity .2s; }
.sv-host:hover { border-color: var(--line-3); }
.sv-host-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sv-host-top i { width: 8px; height: 8px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 8px color-mix(in srgb, var(--acc) 60%, transparent); flex: none; }
:root[data-theme="light"] .sv-host-top i { box-shadow: 0 0 0 1px rgba(13, 16, 20, .25); }
.sv-host-top b { font: 600 14.5px/1.2 var(--f-display); }
.sv-host-blurb { font-size: 12.5px; line-height: 1.45; color: var(--muted); flex: 1; }
.sv-host[aria-pressed="true"] { border-color: var(--mint-line); background: color-mix(in srgb, var(--mint) 7%, var(--bg-2)); box-shadow: 0 0 0 1px var(--mint-line), 0 0 26px -14px var(--mint-glow); }
.sv-host.is-no { opacity: .5; }
.sv-host.is-no:hover, .sv-host.is-no[aria-pressed="true"] { opacity: .85; }
.sv-host.is-no .sv-host-blurb { text-decoration: none; }

.sv-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.sv-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sv-st.rec { color: #04150f; background: var(--mint); border-color: transparent; }
.sv-st.rec::before { background: #04150f; }
.sv-st.runs { color: var(--mint-ink); border-color: var(--mint-line); background: var(--mint-soft); }
.sv-st.note { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 35%, transparent); background: var(--amber-soft); }
.sv-st.no { color: var(--dim); }
.sv-st.no::before { background: none; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0; }

/* the plan panel */
.sv-plan { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--mint-line); background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--mint) 5%, transparent), transparent 60%), var(--bg-2); min-width: 0; animation: card-in .3s var(--ease); }
.sv-plan-h { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.sv-plan-h h3 { margin: 0; font: 650 19px/1.25 var(--f-display); letter-spacing: -.01em; }
.sv-plan-h h3 em { font-style: normal; color: var(--mint-ink); }
.sv-dry { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; font-size: 11px; color: var(--muted); border: 1px dashed var(--line-3); }
.sv-dry i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mint-ink); }
.sv-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; line-height: 1.5; }
.sv-note p { margin: 0; color: var(--text-2); }
.sv-note > span svg { width: 16px; height: 16px; margin-top: 2px; }
.sv-note.warn { border: 1px solid color-mix(in srgb, var(--amber-ink) 30%, transparent); background: var(--amber-soft); }
.sv-note.warn > span { color: var(--amber-ink); }

.sv-no { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.sv-no-i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--amber-ink); background: var(--amber-soft); }
.sv-no-i svg { width: 17px; height: 17px; }
.sv-no b { font: 600 15px/1.3 var(--f-display); }
.sv-no p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.sv-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.sv-alts > span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.sv-alts .btn em { font: 600 9px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; color: #04150f; background: var(--mint); }

.sv-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sv-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; min-width: 0; }
.sv-opt input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--mint-ink); flex: none; cursor: pointer; }
.sv-opt > span { display: block; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.sv-opt b { font-weight: 600; }
.sv-opt code { font-size: 11.5px; color: var(--mint-ink); background: var(--mint-soft); padding: 1px 5px; border-radius: 4px; }
.sv-opt small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.sv-opt b { margin-right: 6px; }
.sv-opt.off { cursor: not-allowed; opacity: .55; }
.sv-opt.off input { cursor: not-allowed; }
.sv-dom { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; }
.sv-dom .input { height: 34px; font-size: 13px; }

.sv-files-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.sv-files { display: grid; gap: 6px; min-width: 0; }
.sv-plan h4 { margin: 0 0 4px; font: 600 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sv-file { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; text-align: left; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-width: 0; transition: border-color .2s, background .2s; }
.sv-file:hover { border-color: var(--line-3); }
.sv-file[aria-pressed="true"] { border-color: var(--mint-line); background: color-mix(in srgb, var(--mint) 6%, var(--surface)); }
.sv-file-b { display: grid; gap: 3px; min-width: 0; }
.sv-file-b code { font: 600 12.5px/1.35 var(--f-code); color: var(--text); background: none; padding: 0; border: 0; }
.sv-file-b small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sv-file-b small code { font-size: 11px; font-weight: 500; }
.sv-tag { flex: none; padding: 3px 6px; border-radius: 5px; font: 700 9px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.sv-tag.new { color: var(--mint-ink); background: var(--mint-soft); border: 1px solid var(--mint-line); }
.sv-tag.edit { color: var(--amber-ink); background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber-ink) 30%, transparent); }
.sv-only { font: 600 10px/1 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); margin-top: 2px; }

.sv-view { position: sticky; top: calc(var(--header-h) + 12px); display: grid; min-width: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--code-bg); overflow: hidden; transition: box-shadow .3s; }
.sv-view.flash { box-shadow: 0 0 0 1px rgba(92, 255, 192, .45), 0 0 30px -12px rgba(92, 255, 192, .45); }
.sv-view-h { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.sv-view-h > code { flex: 1; min-width: 0; font: 600 12.5px/1.3 var(--f-code); color: #e8ece6; background: none; padding: 0; border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-view-h .sv-tag { margin: 0; }
.sv-view-h .sv-tag.new { color: #5cffc0; background: rgba(92, 255, 192, .1); border-color: rgba(92, 255, 192, .3); }
.sv-view-h .sv-tag.edit { color: #ffb547; background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .3); }
.sv-view-h .copy-btn { margin: 0; }
.sv-code { margin: 0; max-height: 360px; overflow: auto; padding: 10px 0; font: 500 12.5px/1.6 var(--f-code); color: #dfe5dc; scrollbar-width: thin; counter-reset: l; }
.sv-code code { display: block; min-width: 100%; width: max-content; background: none; padding: 0; border: 0; font: inherit; color: inherit; overflow-wrap: normal; }
.sv-code .l { display: block; padding-right: 16px; white-space: pre; }
.sv-code .l::before { counter-increment: l; content: counter(l); position: sticky; left: 0; display: inline-block; width: 3.4em; padding-right: .9em; margin-right: .6em; text-align: right; color: #4a5058; background: var(--code-bg); border-right: 1px solid rgba(255, 255, 255, .05); user-select: none; }
.sv-code .l.add { background: rgba(92, 255, 192, .09); }
.sv-code .l.add::before { color: #5cffc0; background: #0b1a15; content: '+' counter(l); }
.sv-code .c { color: #6b737c; }
.sv-code .s { color: #ffc247; }
.sv-code .k { color: #5cffc0; }
.sv-view-f { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 10.5px; color: #8a919a; }
.sv-view-f i { width: 12px; height: 8px; border-radius: 2px; background: rgba(92, 255, 192, .3); }

.sv-block { display: grid; gap: 8px; min-width: 0; }
.sv-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.sv-list li::marker { color: var(--amber-ink); }
.sv-notes li::marker { color: var(--mint-ink); }
.sv-fine { margin: 0; font-size: 12.5px; color: var(--muted); }

.sv-env { display: grid; border-radius: 11px; border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.sv-env-r { display: grid; grid-template-columns: minmax(150px, 1.1fr) 92px minmax(110px, .9fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 9px 13px; font-size: 13px; }
.sv-env-r + .sv-env-r { border-top: 1px solid var(--line); }
.sv-env-h { font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
.sv-env-r code { font-size: 12px; }
.sv-env-r .mono { font-size: 11.5px; overflow-wrap: anywhere; }
.sv-env-how { color: var(--text-2); min-width: 0; }
.sv-kind { font: 600 9.5px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.sv-kind.secret { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 35%, transparent); background: var(--amber-soft); }
.sv-kind.public { color: var(--cyan-ink); border-color: color-mix(in srgb, var(--cyan-ink) 35%, transparent); background: var(--cyan-soft); }

.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sv-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: box-shadow .3s; }
.sv-step.flash { box-shadow: 0 0 0 1px var(--mint-line); }
.sv-step-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--mint-ink); border: 1px solid var(--mint-line); background: var(--mint-soft); }
.sv-step-b { display: grid; gap: 5px; min-width: 0; flex: 1; }
.sv-step-b > b { font: 600 13.5px/1.3 var(--f-display); }
.sv-step-b > span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.sv-step-b small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sv-step-c { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 4px 4px 11px; border-radius: 9px; background: var(--code-bg); border: 1px solid rgba(255, 255, 255, .06); }
.sv-step-c code { flex: 1; min-width: 0; font: 12.5px/1.5 var(--f-code); color: #2ee6ff; background: none; border: 0; padding: 0; white-space: nowrap; overflow-x: auto; overflow-wrap: normal; scrollbar-width: thin; }
.sv-step-c .copy-btn { margin: 0; height: 28px; min-width: 70px; }
.sv-rollback { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; border-left: 2px solid var(--mint-ink); background: var(--surface); font-size: 13px; line-height: 1.55; color: var(--text-2); }
.sv-rollback b { color: var(--text); }

/* ---------- drive ---------- */
.sv-flow { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr); align-items: center; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: radial-gradient(60% 80% at 100% 50%, color-mix(in srgb, var(--mint) 7%, transparent), transparent 70%), var(--bg-2); }
.sv-node { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.sv-node svg { width: 48px; height: 48px; margin-bottom: 4px; }
.sv-node svg .s { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; opacity: .75; }
.sv-node svg .a { fill: none; stroke: var(--mint-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-node svg .dot { fill: var(--mint-ink); }
.sv-node b { font: 600 14px/1.2 var(--f-display); }
.sv-node span { font: 500 11px/1.3 var(--f-mono); color: var(--muted); }
.sv-node-out b { color: var(--mint-ink); }
.sv-wire { display: block; height: 2px; background: repeating-linear-gradient(90deg, var(--mint-ink) 0 6px, transparent 6px 11px); background-size: 22px 2px; opacity: .7; animation: sv-flow-x 1.2s linear infinite; position: relative; }
.sv-wire::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--mint-ink); border-right: 0; }

.sv-drive-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sv-h3 { margin: 0 0 10px; font: 600 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sv-tree { border-radius: 12px; border: 1px solid var(--line-2); background: var(--code-bg); padding: 12px 14px; color: #dfe5dc; }
.sv-tree-root { font-size: 12.5px; color: #5cffc0; margin-bottom: 6px; overflow-wrap: anywhere; }
.sv-tree-r { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px; padding: 4px 0; font-size: 12.5px; }
.sv-tree-n { color: #e8ece6; font-size: 12px; overflow-wrap: anywhere; }
.sv-tree-n i { font-style: normal; color: #4a5058; margin-right: 6px; }
.sv-tree-d { color: #8a919a; line-height: 1.45; }
.sv-tunnels { display: grid; gap: 8px; }
.sv-tunnels .sv-h3 { margin-bottom: 2px; }
.sv-tun { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sv-tun b { font: 600 14.5px/1.2 var(--f-display); }
.sv-tun span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sv-port { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.sv-port code { color: var(--mint-ink); font-size: 12px; }
.sv-limits ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.sv-limits li::marker { color: var(--amber-ink); }

.sv-safe code { padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow-wrap: normal; font-size: 11.5px; }

/* ---------- honest limits ---------- */
.sv-honest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-honest li { display: grid; gap: 5px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.sv-honest b { font: 600 14.5px/1.3 var(--f-display); }
.sv-honest span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sv-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-files-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-view { position: static; }
}
@media (max-width: 960px) {
  .sv-hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-opts { grid-template-columns: minmax(0, 1fr); }
  .sv-drive-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-env-r { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .sv-env-h { display: none; }
  .sv-env-r > :nth-child(3), .sv-env-r > :nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sv-board { padding: 14px; }
  .sv-b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-b-host span { display: none; }
  .sv-b-out { font-size: 10.5px; }
  .sv-cmdb-r { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-cmdb-l { grid-column: 1 / -1; min-width: 0; }
  .sv-cmdb-c { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; }
  .sv-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-host { padding: 11px 12px; }
  .sv-host-blurb { font-size: 12px; }
  .sv-plan { padding: 14px; }
  .sv-plan-h h3 { font-size: 17px; }
  .sv-flow { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); padding: 14px 8px; }
  .sv-node svg { width: 34px; height: 34px; margin-bottom: 2px; }
  .sv-node b { font-size: 12px; }
  .sv-node span { display: none; }
  .sv-wire { margin-bottom: 18px; }
  .sv-wire::after { top: -4px; border-width: 5px 0 5px 6px; }
  .sv-tree-r { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 5px 0; }
  .sv-tree-d { padding-left: 22px; }
  .sv-honest { grid-template-columns: minmax(0, 1fr); }
  .sv-no { flex-direction: column; }
  .sv-step { padding: 10px; gap: 10px; }
}
@media (max-width: 480px) {
  .sv-hosts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sv-host { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 10px 12px; }
  .sv-host-blurb { grid-column: 1 / -1; grid-row: 2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sv-host[aria-pressed="true"] .sv-host-blurb { -webkit-line-clamp: unset; display: block; }
  .sv-host .sv-st { grid-column: 2; grid-row: 1; }
  .sv-plan { margin-inline: -6px; padding: 12px; }
  .sv-step-c { align-items: flex-start; }
  .sv-step-c code { white-space: normal; overflow-wrap: anywhere; padding: 4px 0; }
  .sv-step-c .copy-btn { min-width: 0; padding: 0 10px; }
  .sv-legend { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-b-dot, .sv-b-wire i, .sv-wire, .sv-plan { animation: none !important; }
  .servr-page * { transition: none !important; }
}
