.smm {
    --sm-bg:#171e29;--sm-soft:#111822;--sm-line:#303c4d;--sm-ink:#edf2fa;--sm-muted:#a8b8cd;
    --sm-accent:#ff9c59;--sm-action:#ff8834;--sm-tint:#30251f;--sm-error:#ffa4a4;
    display:grid;gap:16px;min-width:0;color:var(--sm-ink);container-type:inline-size;
}
html[data-cscom-theme="light"] .smm {
    --sm-bg:white;--sm-soft:#f5f7fa;--sm-line:#d2dce8;--sm-ink:#1c2939;--sm-muted:#50627a;
    --sm-accent:#a74200;--sm-action:#fb852d;--sm-tint:#fff1e6;--sm-error:#ad2632;color-scheme:light;
}
.smm [hidden],.smm-symbols {display:none!important}
.smm :where(h1,h2,h3,p,ol) {margin:0}
.smm :where(button,input,select) {font:inherit}
.smm :where(button,a,input,select,summary):focus-visible {outline:2px solid var(--sm-accent);outline-offset:3px}
.smm :where(button:not(:disabled),select,summary) {cursor:pointer}
.smm button:disabled {cursor:default;opacity:.47}
.smm :where(button,a,.smm-kicker,.smm-icon,.smm-privacy) svg {width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.smm-hero,.smm-panel,.smm-help {box-sizing:border-box;min-width:0;border:1px solid var(--sm-line);border-radius:15px;background:var(--sm-bg)}
.smm-hero {position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;padding:clamp(22px,4cqw,40px);background:linear-gradient(115deg,var(--sm-bg) 42%,color-mix(in srgb,var(--sm-bg) 83%,var(--sm-tint)));border-top-color:color-mix(in srgb,var(--sm-accent) 62%,var(--sm-line))}
.smm-hero-copy {position:relative;z-index:1;min-width:0}
.smm-kicker,.smm-privacy {display:flex;align-items:center;gap:7px;color:var(--sm-accent)}
.smm-kicker {font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.smm-hero h1 {margin:10px 0 11px;color:var(--sm-ink);font-size:clamp(28px,5.2cqw,45px);line-height:1.06;font-weight:800;letter-spacing:-.045em;text-wrap:balance}
.smm-hero h1 span {color:var(--sm-accent)}
.smm-hero p,.smm-intro,.smm-help p {color:var(--sm-muted);line-height:1.55;font-size:14px}
.smm-hero p {max-width:56ch}
.smm code {font: .94em ui-monospace,Consolas,monospace;color:var(--sm-ink)}
.smm-diagram {width:21%;max-width:165px;flex:none;overflow:visible;color:var(--sm-accent)}
.smm-diagram-guide {stroke:var(--sm-muted);stroke-dasharray:2 5;opacity:.5}
.smm-plane {stroke:currentColor;stroke-width:1.5}
.smm-plane-back {fill:var(--sm-tint);opacity:.55}
.smm-plane-mid {fill:color-mix(in srgb,var(--sm-accent) 22%,var(--sm-bg));opacity:.9}
.smm-plane-front {fill:color-mix(in srgb,var(--sm-accent) 34%,var(--sm-bg))}
.smm-plane-wire {stroke:currentColor;opacity:.72}.smm-vertex {fill:currentColor}
.smm-panel {padding:clamp(16px,3.1cqw,28px)}
.smm-heading,.smm-preview-line {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.smm-heading h2 {font-size:clamp(19px,2.8cqw,24px);color:var(--sm-ink);letter-spacing:-.035em;line-height:1.2}
.smm-privacy {font-size:11px;color:var(--sm-muted)}.smm-privacy svg {width:13px;height:13px}
.smm-intro {margin-top:8px;max-width:75ch}
.smm .smm-drop {display:flex;align-items:center;justify-content:center;gap:13px;width:100%;margin:17px 0 0;padding:22px 10px;border:1px dashed color-mix(in srgb,var(--sm-muted) 65%,var(--sm-line));border-radius:11px;color:var(--sm-ink);background:var(--sm-soft);text-align:left}
.smm .smm-drop:is(:hover,:focus-visible),.smm .smm-drop.is-over {background:var(--sm-tint);border-color:var(--sm-accent)}
.smm-drop-icon,.smm-icon {width:40px;height:40px;display:grid;place-items:center;color:var(--sm-accent);background:var(--sm-tint);border-radius:11px;flex:none}
.smm-drop strong,.smm-artifact strong {display:block;font-size:15px;color:var(--sm-ink);line-height:1.4}
.smm-drop small,.smm-artifact small,.smm-row-meta {display:block;font-size:12px;color:var(--sm-muted);line-height:1.45}
.smm .smm-demo {margin:7px 0 0;padding:5px 0;font-size:12px;font-weight:700;color:var(--sm-accent);background:transparent;border:0}
.smm .smm-demo span {margin-left:4px}
.smm-files {list-style:none;padding:0;display:grid;gap:8px}
.smm-files:not(:empty) {margin-top:13px}
.smm-file-row {padding:10px 12px;border-radius:10px;background:var(--sm-soft);border:1px solid var(--sm-line)}
.smm-row-main {display:flex;align-items:center;gap:12px}
.smm-index {flex:none;align-self:flex-start;padding:6px 7px;border-radius:6px;background:var(--sm-tint);color:var(--sm-accent);font:650 11px/1.3 ui-monospace,Consolas,monospace;white-space:nowrap}
.smm-file-info {min-width:0;flex:1}.smm-file-name {display:block;color:var(--sm-ink);overflow-wrap:anywhere;font-size:14px}.smm-row-meta{margin-top:2px;overflow-wrap:anywhere}
.smm-row-actions {display:flex;gap:4px;flex-wrap:wrap;align-items:center;flex:none}
.smm .smm-row-actions button {width:32px;height:32px;display:grid;place-items:center;background:var(--sm-bg);border:1px solid var(--sm-line);color:var(--sm-muted);border-radius:7px}
.smm .smm-row-actions svg {width:15px;height:15px}
.smm .smm-row-actions button:hover:not(:disabled),.smm .smm-secondary:hover,.smm .smm-download:hover {border-color:var(--sm-accent);color:var(--sm-accent)}
.smm-row-settings {margin-top:6px;color:var(--sm-muted);font-size:12px}
.smm-row-settings summary {width:fit-content;padding:3px 0;color:var(--sm-accent);font-weight:650}
.smm-source-options {display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin-top:6px}
.smm-build {display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-top:15px}
.smm-field {display:grid;gap:5px;min-width:0;color:var(--sm-muted);font-size:12px;font-weight:650}
.smm-build .smm-field {flex:1;min-width:min(100%,180px)}
.smm .smm-field :is(select,input) {box-sizing:border-box;min-width:0;width:100%;max-width:100%;border:1px solid var(--sm-line)!important;border-radius:7px;background:var(--sm-soft)!important;color:var(--sm-ink)!important;min-height:39px;padding:7px 10px;font-size:13px;font-family:inherit}
.smm .smm-source-options .smm-field {max-width:100%}
.smm .smm-main-button,.smm .smm-secondary,.smm .smm-download {display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:9px 13px;min-height:39px;box-sizing:border-box;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none}
.smm .smm-main-button {border:1px solid transparent;background:var(--sm-action);color:#20160e}.smm .smm-main-button:hover:not(:disabled){background:#ffa05a}
.smm .smm-secondary,.smm .smm-download {border:1px solid var(--sm-line);color:var(--sm-ink);background:var(--sm-bg)}
.smm .smm-download {margin-left:auto;border-color:color-mix(in srgb,var(--sm-accent) 55%,var(--sm-line));background:var(--sm-tint);color:var(--sm-accent)}
.smm-message {margin:9px 0 0;color:var(--sm-muted);line-height:1.5;font-size:13px;overflow-wrap:anywhere;white-space:pre-line}.smm .is-error {color:var(--sm-error)}
.smm-result {margin-top:15px;border-top:1px solid var(--sm-line);padding-top:15px}
.smm-artifact {display:flex;align-items:center;flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}
.smm-preview-line {margin-top:15px;justify-content:flex-start;align-items:flex-end}
.smm-stage {height:clamp(220px,44cqw,340px);border:1px solid var(--sm-line);border-radius:10px;overflow:hidden;margin-top:10px;background:var(--sm-soft)}
.smm-stage canvas {display:block;max-width:100%;touch-action:none}
.smm-help {padding:14px clamp(16px,3.1cqw,28px)}
.smm-help summary {font-weight:700;color:var(--sm-ink)}.smm-help p {margin-top:10px}.smm-help a {color:var(--sm-accent);text-decoration:underline}
@container (max-width:520px) {
    .smm-diagram {display:none}
    .smm-hero {padding:20px 16px}.smm-heading {gap:5px}
    .smm-row-main {flex-wrap:wrap;gap:7px}.smm-file-info {min-width:50%}
    .smm-row-actions {margin-left:auto}
    .smm-build {gap:10px}.smm-build .smm-main-button {width:100%}
}
@media (forced-colors:active) {.smm .smm-main-button,.smm .smm-index,.smm-hero {border:1px solid ButtonText}}
