/* Sigma Labs — free tools (loaded after /styles.css on /tools/* pages) */

/* ── Tool cards on the hub ── */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { display: block; text-decoration: none; color: inherit; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); position: relative; overflow: hidden; transition: transform 0.3s var(--e-spring), border-color 0.25s var(--e-out); }
.tool-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tc, var(--teal)); opacity: 0.8; }
.tool-card:nth-child(4n+1) { --tc: var(--teal); } .tool-card:nth-child(4n+2) { --tc: var(--coral); } .tool-card:nth-child(4n+3) { --tc: var(--gold); } .tool-card:nth-child(4n+4) { --tc: var(--magenta); }
.tool-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tool-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.tool-card .num { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--tc, var(--teal)); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tool-card .ico-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc, var(--teal)) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tc, var(--teal)) 32%, transparent); color: var(--tc, var(--teal)); flex-shrink: 0; }
.tool-card .ico-box .ico { width: 20px; height: 20px; }
.tool-card .ico-box { transition: background 0.3s var(--e-out), border-color 0.3s var(--e-out), transform 0.45s var(--e-spring); }
.tool-card:hover .ico-box { background: color-mix(in srgb, var(--tc, var(--teal)) 20%, transparent); border-color: color-mix(in srgb, var(--tc, var(--teal)) 60%, transparent); transform: translateY(-3px) rotate(-8deg); }
.tool-card:hover .ico-box .ico { transform: scale(1.18) rotate(8deg); }
@media (prefers-reduced-motion: reduce) { .tool-card:hover .ico-box, .tool-card:hover .ico-box .ico { transform: none; } }
.tool-card h2 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.tool-card p { font-size: 0.92rem; color: var(--muted); }
.tool-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink); }
.tool-card .go svg { transition: transform 0.3s var(--e-spring); }
.tool-card:hover .go svg { transform: translateX(4px); }

/* ── Input form ── */
.tool-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); box-shadow: var(--card-shadow); }
.tool-bar { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool-bar .btn { white-space: nowrap; padding: 13px 22px; justify-content: center; }
.tool-bar.row { grid-template-columns: 1fr auto; align-items: end; }
.tool-bar.row .btn { justify-content: flex-start; }
.tool-form input, .tool-form select { font-family: var(--mono); font-size: 0.95rem; }
.tool-form textarea { font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; min-height: 220px; }
.tool-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; font-size: 0.84rem; color: var(--muted); align-items: center; }
.tool-opts label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.tool-opts input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--coral); }
.tool-opts .sel { display: inline-flex; align-items: center; gap: 8px; }
.tool-opts .sel input { width: 150px; padding: 8px 10px; font-size: 0.85rem; }
.tool-note { margin-top: 12px; font-size: 0.78rem; color: var(--ghost); }
.tool-note a { color: var(--faint); }
.tool-form .form-error { display: block; }
.tool-form .form-error[hidden] { display: none; }
.tool-form .btn[aria-busy="true"] svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Report ── */
.report { margin-top: 28px; }
.report[hidden] { display: none; }
.report:focus { outline: none; }
.report-head { display: grid; grid-template-columns: 1fr; gap: 20px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); margin-bottom: 18px; }
@media (min-width: 640px) { .report-head { grid-template-columns: auto 1fr; align-items: center; gap: 28px; } }
.grade { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; color: var(--gc, var(--teal)); border: 3px solid var(--gc, var(--teal)); background: color-mix(in srgb, var(--gc, var(--teal)) 10%, transparent); position: relative; }
.grade small { position: absolute; bottom: 14px; font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 500; color: var(--faint); }
.grade.A, .grade.B { --gc: var(--teal); } .grade.C { --gc: var(--gold); } .grade.D, .grade.F { --gc: var(--coral); }
.report-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 6px; overflow-wrap: anywhere; }
.report-head .sub { font-size: 0.88rem; color: var(--muted); }
.report-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.02em; }
.report-head .meta b { color: var(--ink); font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--sc); color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, transparent); white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); }
.st.has-ico::before { display: none; }
.st .ico { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: 0; }
.st.pass { --sc: var(--teal); } .st.warn { --sc: var(--gold); } .st.fail { --sc: var(--coral); } .st.info { --sc: var(--blue); } .st.none { --sc: var(--ghost); }
.pills .st { padding: 6px 11px; font-size: 0.72rem; }
.pills .st b { font-weight: 500; text-transform: none; letter-spacing: 0; }

.r-sec { margin-top: 26px; }
.r-sec > h3 { font-size: 0.74rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.r-sec > h3::after { content: ''; flex: 1; min-width: 32px; height: 1px; background: var(--line); }
.r-sec > h3 .st { margin-left: auto; }
.r-sec > h3 .st + .st { margin-left: 0; }

.f-list { list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.f { display: grid; grid-template-columns: 1fr; gap: 8px 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .f { grid-template-columns: minmax(96px, max-content) 1fr; padding: 16px 22px; } }
.f:last-child { border-bottom: 0; }
.f .st { align-self: start; justify-self: start; margin-top: 2px; }
.f h4 { font-size: 0.98rem; font-weight: 500; margin-bottom: 3px; letter-spacing: -0.01em; }
.f .sum { font-size: 0.9rem; color: var(--muted); }
.f .notes { margin: 8px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--muted); }
.f .notes li + li { margin-top: 4px; }
.f .fix { margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-accent); background: rgba(229,96,74,0.05); font-size: 0.86rem; color: var(--ink); }
.f .fix b { color: var(--coral-ink); font-weight: 500; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 8px; }
.rec { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; word-break: break-all; overflow-x: auto; }
[data-theme="light"] .rec { background: #f3efe8; }
.rec + .rec { margin-top: 6px; }
.rec .k { color: var(--faint); }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 500; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.mono, .tbl .mono { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }
.tbl td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl .dim { color: var(--faint); }
.tbl .ok { color: var(--teal); } .tbl .bad { color: var(--coral-ink); } .tbl .mid { color: var(--gold); }

.kv { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.kv div { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
@media (min-width: 640px) { .kv div { grid-template-columns: 200px 1fr; } }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; padding-top: 2px; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.kv dd.mono { font-family: var(--mono); font-size: 0.8rem; }

/* ── Hop timeline (header analyser) ── */
.hops { list-style: none; position: relative; padding-left: 26px; }
.hops::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.hop { position: relative; padding: 10px 0 14px; }
.hop::before { content: ''; position: absolute; left: -22px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); }
.hop.slow::before { border-color: var(--gold); } .hop.vslow::before { border-color: var(--coral); }
.hop .h-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.hop .h-n { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); letter-spacing: 0.1em; }
.hop .h-by { font-size: 0.92rem; color: var(--ink); word-break: break-all; }
.hop .h-delay { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--teal); white-space: nowrap; }
.hop.slow .h-delay { color: var(--gold); } .hop.vslow .h-delay { color: var(--coral-ink); }
.hop .h-from { font-size: 0.8rem; color: var(--muted); margin-top: 3px; word-break: break-all; }
.hop .h-from a { color: var(--faint); }
.hop .h-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--ghost); margin-top: 3px; word-break: break-all; }

/* ── Left-to-right server chain + Microsoft-style hop table ── */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-bottom: 14px; }
.chain-node { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--card-shadow); max-width: 260px; }
.chain-node .n { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--faint); }
.chain-node .h { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); word-break: break-all; line-height: 1.35; }
.chain-node .ip { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); }
.chain-arrow { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 0 6px; color: var(--teal); }
.chain-arrow i { display: block; width: 100%; height: 2px; background: currentColor; position: relative; opacity: 0.8; }
.chain-arrow i::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: currentColor; border-right: 0; }
.chain-arrow b { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; margin-top: 4px; white-space: nowrap; }
.chain-arrow.slow { color: var(--gold); } .chain-arrow.vslow { color: var(--coral); }
.hops-tbl { min-width: 880px; }
.hops-tbl td.host { max-width: 280px; }
.hops-tbl td.delay { min-width: 150px; }
.hops-tbl td:nth-child(4), .hops-tbl td:nth-child(6), .hops-tbl td:nth-child(7) { white-space: nowrap; }
.dbar { position: relative; height: 22px; border-radius: 6px; background: rgba(127,127,127,0.10); overflow: hidden; display: flex; align-items: center; }
.dbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); opacity: 0.35; border-radius: 6px; }
.dbar.mid i { background: var(--gold); } .dbar.bad i { background: var(--coral); }
.dbar b { position: relative; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; padding: 0 8px; color: var(--ink); white-space: nowrap; }

/* ── Small summary tiles ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.tile .l { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tile .v { font-size: 1.05rem; font-weight: 500; margin-top: 4px; letter-spacing: -0.01em; word-break: break-word; }
.tile .v.mono { font-family: var(--mono); font-size: 0.92rem; }

/* ── Details / raw ── */
.raw { margin-top: 14px; }
.raw > summary { cursor: pointer; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--faint); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.raw > summary::-webkit-details-marker { display: none; }
.raw > summary::before { content: '+'; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; font-size: 0.8rem; }
.raw[open] > summary::before { content: '–'; }
.raw > summary:hover { color: var(--ink); }
.raw .rec { margin-top: 8px; max-height: 420px; overflow: auto; }

/* ── CTA after a result ── */
.after { margin-top: 26px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-accent); background: linear-gradient(120deg, rgba(229,96,74,0.09), rgba(45,179,166,0.05)); display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width: 760px) { .after { grid-template-columns: 1fr auto; } }
.after h3 { font-size: 1.1rem; margin-bottom: 4px; }
.after p { font-size: 0.9rem; color: var(--muted); }
.after .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Explainer prose ── */
.explain { max-width: 760px; }
.explain h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.02em; }
.explain h2:first-child { margin-top: 0; }
.explain p { color: var(--muted); margin-bottom: 12px; font-size: 0.98rem; }
.explain ul { color: var(--muted); padding-left: 20px; margin-bottom: 12px; font-size: 0.95rem; }
.explain li + li { margin-top: 5px; }
.explain code { font-family: var(--mono); font-size: 0.82em; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--ink); }
[data-theme="light"] .explain code { background: #f3efe8; }
.explain b { color: var(--ink); font-weight: 500; }
.explain .cross { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) { .tool-card, .tool-card .go svg { transition: none; } .tool-form .btn[aria-busy="true"] svg { animation: none; } }

/* ── Batch 2: generators, copy buttons, checkbox grids, format tabs ── */
.copy { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.copy:hover { color: var(--ink); border-color: var(--line-accent); }
.copy:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.copy.ok { color: var(--teal); border-color: var(--teal); }
.meta .copy { padding: 2px 7px; font-size: 0.6rem; margin-left: 4px; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.out-head h3 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.out-host { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.out-host b { color: var(--ink); font-weight: 500; }
.chk-grid { display: grid; grid-template-columns: 1fr; gap: 6px 14px; margin-top: 8px; }
@media (min-width: 560px) { .chk-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .chk-grid { grid-template-columns: 1fr 1fr 1fr; } }
.chk { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--ink); font-weight: 400; margin: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.chk:hover { border-color: var(--line-strong); }
.chk input { width: 16px; height: 16px; margin-top: 2px; padding: 0; flex-shrink: 0; accent-color: var(--coral); }
.chk em { font-style: normal; color: var(--faint); font-size: 0.8rem; }
.gen-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .gen-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; } .gen-grid .sticky { position: sticky; top: calc(var(--nav-h) + 16px); } }
.gen-block { padding: clamp(18px, 2.6vw, 26px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); }
.gen-block + .gen-block { margin-top: 16px; }
.gen-block h2 { font-size: 1.1rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.gen-block .sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.gen-block .field { margin-bottom: 12px; }
.gen-block .field-row { grid-template-columns: 1fr 1fr; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 0.88rem; color: var(--ink); font-weight: 400; cursor: pointer; }
.radio-row input { width: 14px; height: 14px; padding: 0; accent-color: var(--coral); }
.radio-row label:has(input:checked) { border-color: var(--coral-dim); background: rgba(229,96,74,0.06); }
.tool-note.bad { color: var(--coral-ink); } .tool-note.mid { color: var(--gold); }
.notes-out { margin: 10px 0 0; padding-left: 18px; font-size: 0.84rem; color: var(--muted); }
.notes-out li + li { margin-top: 4px; }
.notes-out .dim, .notes-out li.dim { color: var(--ghost); list-style: none; margin-left: -18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.tabs button { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tabs button:hover { color: var(--ink); border-color: var(--line-strong); }
.tabs button.on { color: var(--ink); border-color: var(--coral-dim); background: rgba(229,96,74,0.08); }
.tabs button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.rec.big { font-size: 0.8rem; max-height: 520px; overflow: auto; }
.prefill { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-accent); background: rgba(229,96,74,0.05); font-size: 0.86rem; color: var(--muted); }
.prefill b { color: var(--ink); font-weight: 500; }
.tile .v.bad { color: var(--coral-ink); } .tile .v.mid { color: var(--gold); }

/* ── Page speed: score rings and metric tiles ── */
.rings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 720px) { .rings { grid-template-columns: repeat(4, 1fr); } }
.ring { position: relative; padding: 18px 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); text-align: center; --rc: var(--teal); }
.ring.warn { --rc: var(--gold); } .ring.fail { --rc: var(--coral); } .ring.info { --rc: var(--ghost); }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); display: block; margin: 0 auto; }
.ring .bg { fill: none; stroke: color-mix(in srgb, var(--rc) 16%, transparent); stroke-width: 3; }
.ring .fg { fill: none; stroke: var(--rc); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.9s var(--e-out); }
.ring b { position: absolute; left: 0; right: 0; top: 46px; font-family: var(--mono); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.04em; color: var(--rc); }
.ring span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tiles.metrics { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles.metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles.metrics { grid-template-columns: repeat(3, 1fr); } }
.tile.pass { border-left: 3px solid var(--teal); } .tile.warn { border-left: 3px solid var(--gold); } .tile.fail { border-left: 3px solid var(--coral); }
.tile .what { font-size: 0.8rem; color: var(--faint); margin-top: 6px; line-height: 1.45; }
.tabs.strat { margin: 0 0 14px; }
.tabs.strat button { font-size: 0.78rem; padding: 9px 14px; }
.shot { display: block; margin-top: 10px; max-width: 360px; border-radius: 10px; border: 1px solid var(--line); }
.tool-note.running { font-size: 0.92rem; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.tool-note.running b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
