.st-wrap{max-width:960px;margin:0 auto}
.st-card{background:#fff;color:#1e293b;border-radius:14px;border:1px solid #e2e8f0;padding:16px}
.st-card label,.st-card .small,.st-card .form-text{color:#334155}
.st-card .form-control,.st-card .form-select{color:#0f172a;background-color:#fff}
.st-drop{border:2px dashed #94a3b8;border-radius:12px;padding:26px 12px;text-align:center;cursor:pointer;background:#f8fafc;color:#334155}
.st-drop.over{border-color:#16a34a;background:#f0fdf4}
.st-out{font-family:ui-monospace,Consolas,monospace;font-size:.85rem;word-break:break-word;background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;white-space:pre-wrap}
.st-badge{display:inline-block;font-size:.8rem;font-weight:600;border-radius:999px;padding:3px 10px}
.st-ok{background:#dcfce7;color:#166534}.st-bad{background:#fee2e2;color:#991b1b}.st-wait{background:#e2e8f0;color:#334155}
.st-big{font-size:1.6rem;font-weight:700;color:#0f172a}
.st-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.st-kv>div{background:#f1f5f9;border-radius:10px;padding:10px;color:#0f172a}
.st-kv small{display:block;color:#475569}
.st-article h2{font-size:1.35rem;margin-top:0}.st-article h3{font-size:1.05rem}
.st-article p,.st-article li{line-height:1.65}
.st-steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:12px}
.st-steps li{counter-increment:s;position:relative;padding-left:44px}
.st-steps li:before{content:counter(s);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:#16a34a;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.st-table{width:100%;border-collapse:collapse;font-size:.92rem}
.st-table th,.st-table td{border:1px solid rgba(128,128,128,.35);padding:8px 10px;text-align:left;vertical-align:top;color:inherit}
.st-table th{background:rgba(128,128,128,.14)}
.st-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.st-thumb{border:1px solid #cbd5e1;border-radius:8px;padding:6px;background:#f8fafc;text-align:center;font-size:.75rem;color:#334155}
.st-thumb canvas,.st-thumb img{max-width:100%;height:auto;display:block;margin:0 auto 4px}
.st-thumb.off{opacity:.35}
@media print{body *{visibility:hidden}.st-print,.st-print *{visibility:visible}.st-print{position:absolute;left:0;top:0;width:100%}}

/* dark mode safety: the tool area stays light, plain buttons and muted text stay readable */
.st-card{color-scheme:light}.st-card button:not(.btn):not(.accordion-button){color:#1e293b}.st-card .text-muted,.st-card .small.text-muted{color:#64748b!important}.st-card a:not(.btn){color:#0b5ed7}
