/* ═══════════════════════════════════════════════════════════════
   SUMMON SIMULATOR (simulator.php, one banner)
   Builds on css/character.css (cd-* tokens, panels, buttons, tabs, .it-* item tiles) and css/gachas.css (.gu unit
   frames, .gl-tag chips); everything here is sm-* scoped. The stage is the one animated part of the site: its motion
   is driven by js/simulator.js (anime.js), these rules only draw the resting shapes. Individual transform properties
   (translate / rotate) place the FX layers so the script's own `transform` animations never fight them.
   ═══════════════════════════════════════════════════════════════ */

.sm { display: grid; gap: 20px; align-content: start; }
.sm > * { min-width: 0; }
.sm-app { display: grid; gap: 20px; min-width: 0; }
.sm-app > * { min-width: 0; }
.sm-note { margin: 0; color: var(--text-3); font-size: 0.86rem; }

/* ── Head ───────────────────────────────────────────────────────── */
.sm-head { display: grid; gap: 8px; }
.sm-crumb { margin: 12px 0 0; color: var(--acc2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cd-jp .sm-crumb { letter-spacing: 0; }
.sm .sm-crumb a { color: inherit; text-decoration: none; }
.sm .sm-crumb a:hover { text-decoration: underline; }
.sm-h1 { display: inline-block; justify-self: start; margin-bottom: 4px; font-size: clamp(1.3rem, 3.8vw, 1.9rem); overflow-wrap: anywhere; }
.sm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.sm-dates { color: var(--text-3); font-size: 0.82rem; }
.sm-lead { max-width: 72ch; margin: 0; color: var(--text-2); font-size: 0.9rem; }
.sm-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }

/* ── Stage ──────────────────────────────────────────────────────── */
.sm-play { display: grid; gap: 12px; }
.sm-stage {
    --burst: #ffffff;
    --burst-ink: #0b0f1a;
    --line: rgba(255, 255, 255, 0.5);
    --ca: #a9424d;
    --cb: #ed5969;
    position: relative;
    min-height: clamp(330px, 46vw, 500px);
    overflow: hidden;
    isolation: isolate;
    border: 3px solid #05080f;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.1) 0, transparent 62%),
        radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.5px, transparent 2px) 0 0 / 14px 14px,
        linear-gradient(160deg, #16264a, #0b1326 70%);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}
.sm-stage.sm-t3 { --burst: #ffd553; --line: rgba(255, 213, 83, 0.6); }
.sm-stage.sm-t4 { --burst: #fff3a6; --line: rgba(255, 255, 255, 0.75); }

.sm-idle { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 6px; padding: 14px; }
.sm-idle-art { min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.sm-idle-txt { margin: 0; padding: 3px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: var(--text-2); font-size: 0.82rem; font-weight: 600; }
.sm-stage:not([data-state="idle"]) .sm-idle { display: none; }

/* FX layers: all invisible at rest */
.sm-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sm-fx > * { opacity: 0; }
.sm-lines {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg, transparent 0 3.6deg, var(--line) 3.6deg 4.6deg, transparent 4.6deg 9deg, var(--line) 9deg 9.5deg);
    -webkit-mask: radial-gradient(circle, transparent 0 20%, #000 52%);
    mask: radial-gradient(circle, transparent 0 20%, #000 52%);
}
.sm-stage.sm-t4.is-hot .sm-lines {
    background: repeating-conic-gradient(from 0deg, #ff5d6c 0 6deg, transparent 6deg 9deg, #ffd553 9deg 15deg, transparent 15deg 18deg, #57dd5c 18deg 24deg, transparent 24deg 27deg, #5b95ed 27deg 33deg, transparent 33deg 36deg, #b959e6 36deg 42deg, transparent 42deg 45deg);
}
.sm-burst { position: absolute; left: 50%; top: 50%; width: min(78%, 560px); aspect-ratio: 1.55; translate: -50% -50%; display: grid; place-items: center; filter: drop-shadow(4px 5px 0 #05080f); }
.sm-burst-bg {
    position: absolute;
    inset: 0;
    background: var(--burst);
    clip-path: polygon(100% 50%, 89.7% 54.5%, 94.8% 60.2%, 84.9% 62.2%, 95% 71.7%, 81.3% 69.7%, 89.1% 81.2%, 78.3% 78.3%, 81.2% 89.1%, 69.7% 81.3%, 70% 91.4%, 62.2% 84.9%, 61.1% 98.7%, 54.5% 89.7%, 50% 100%, 45.9% 86.8%, 38.9% 98.7%, 37.8% 84.9%, 30% 91.4%, 28.7% 83.9%, 18.8% 89.1%, 23.8% 76.2%, 10.9% 81.2%, 18.7% 69.7%, 5% 71.7%, 12.2% 63.2%, 5.2% 60.2%, 13.2% 54.1%, 0% 50%, 13.2% 45.9%, 1.3% 38.9%, 12.2% 36.8%, 5% 28.3%, 18.7% 30.3%, 14% 21.3%, 23.8% 23.8%, 18.8% 10.9%, 28.7% 16.1%, 28.3% 5%, 37.8% 15.1%, 38.9% 1.3%, 45.9% 13.2%, 50% 4%, 54.5% 10.3%, 61.1% 1.3%, 62.2% 15.1%, 71.7% 5%, 69.7% 18.7%, 81.2% 10.9%, 78.3% 21.7%, 86% 21.3%, 81.3% 30.3%, 95% 28.3%, 84.9% 37.8%, 98.7% 38.9%, 89.7% 45.5%);
}
.sm-stage.sm-t4.is-hot .sm-burst-bg { background: conic-gradient(from 20deg, #ff5d6c, #ffd553, #79ff80, #5bc8ff, #b959e6, #ff5d6c); }
.sm-stage.sm-t3.is-hot .sm-burst-bg { background: radial-gradient(circle, #fff7c9 0, #ffd553 55%, #f59e0b 100%); }
.sm-word {
    position: relative;
    rotate: -6deg;
    padding: 0 0.3em;
    color: #fff;
    font: 400 clamp(1.7rem, 7.4vw, 4rem)/1 var(--font-display);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    -webkit-text-stroke: 0.14em #05080f;
    paint-order: stroke fill;
    text-shadow: 0.07em 0.08em 0 #05080f;
}
.cd-jp .sm-word { letter-spacing: 0; }
.sm-stage.sm-t3.is-hot .sm-word { color: #fff3a6; }
.sm-stage.sm-t4.is-hot .sm-word { color: #fff; }
.sm-stamp {
    position: absolute;
    right: 5%;
    top: 9%;
    rotate: 9deg;
    padding: 0.2em 0.6em;
    border: 0.16em solid #e8413c;
    border-radius: 0.35em;
    background: rgba(5, 8, 15, 0.72);
    color: #ff6f6a;
    font: 400 clamp(1rem, 3.6vw, 1.7rem)/1.1 var(--font-display);
    letter-spacing: 1px;
    white-space: nowrap;
}
.sm-flash { position: absolute; inset: 0; background: #fff; }

/* Cut-in: a slanted strip with the character's cut-in art */
.sm-cutin {
    position: absolute;
    left: -6%;
    right: -6%;
    top: 50%;
    height: clamp(120px, 40%, 210px);
    translate: 0 -50%;
    rotate: -4deg;
    overflow: hidden;
    border-block: 5px solid #05080f;
    background: linear-gradient(100deg, var(--ca), var(--cb) 55%, var(--ca));
    box-shadow: 0 0 0 3px #fff inset, 0 8px 0 rgba(0, 0, 0, 0.35);
}
.sm-cutin::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 11px, rgba(0, 0, 0, 0.12) 11px 12px, transparent 12px 23px); }
.sm-cutin-img { position: absolute; left: 50%; top: 50%; height: 104%; width: auto; max-width: none; translate: -50% -50%; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.55)); }
.sm-cutin-name {
    position: absolute;
    right: 9%;
    bottom: 9%;
    max-width: 70%;
    color: #fff;
    font: 400 clamp(0.95rem, 3.2vw, 1.6rem)/1.1 var(--font-display);
    text-align: right;
    -webkit-text-stroke: 0.2em #05080f;
    paint-order: stroke fill;
}

/* Splash: the unit's full art on a halftone burst */
.sm-splash { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, var(--cb) 0, var(--ca) 48%, #05080f 100%); }
.sm-splash-burst {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 150%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.2) 0 7deg, transparent 7deg 14deg);
    -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%);
    mask: radial-gradient(circle, #000 0 30%, transparent 62%);
}
.sm-splash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(0, 0, 0, 0.22) 1.6px, transparent 2px) 0 0 / 11px 11px; -webkit-mask: linear-gradient(180deg, transparent 40%, #000); mask: linear-gradient(180deg, transparent 40%, #000); }
.sm-splash-art { position: absolute; z-index: 1; left: 2%; top: 3%; width: 96%; height: 92%; object-fit: contain; filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, 0.45)); }
.sm-splash.is-memory .sm-splash-art { left: 50%; top: 44%; width: auto; height: 62%; max-width: 86%; translate: -50% -50%; rotate: -3deg; object-fit: cover; border: 6px solid #fff; border-radius: 4px; box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.5); filter: none; }
.sm-splash-info { position: absolute; z-index: 2; left: 4%; bottom: 5%; display: flex; align-items: center; gap: 10px; max-width: 92%; }
.sm-splash-rar { flex: none; width: auto; height: clamp(34px, 8.2vw, 61px); filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.6)); }
.sm-splash-name { min-width: 0; color: #fff; font: 400 clamp(1rem, 3.6vw, 1.9rem)/1.12 var(--font-display); -webkit-text-stroke: 0.2em #05080f; paint-order: stroke fill; overflow-wrap: anywhere; }
.sm-splash-tag {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 0.35em;
    rotate: -7deg;
    padding: 0.1em 0.55em;
    border-radius: 0.3em;
    background: #ffd553;
    color: #05080f;
    font: 400 clamp(0.9rem, 3vw, 1.5rem)/1.2 var(--font-display);
    white-space: nowrap;
    box-shadow: 3px 3px 0 #05080f;
}
.sm-splash-tag:empty { display: none; }
/* These come in after their container: a timeline writes a tween's start values only when it reaches that tween,
   so they stay hidden until then (otherwise they show in place first, then jump back and animate in). */
.sm-cutin-name, .sm-splash-art, .sm-splash-info, .sm-splash-tag { opacity: 0; }

/* Result cards */
.sm-results {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: center;
    gap: clamp(6px, 1.6vw, 14px) clamp(4px, 1.4vw, 12px);
    width: min(100%, 700px);
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(10px, 2.4vw, 22px);
    list-style: none;
}
.sm-results:empty { display: none; }
.sm-results.is-single { grid-template-columns: minmax(0, 190px); justify-content: center; }
.sm-card { display: grid; gap: 4px; justify-items: center; min-width: 0; perspective: 600px; }
.sm-stage[data-state="anim"] .sm-card { opacity: 0; }   /* until the script deals it */
.sm-card-in { position: relative; display: block; width: 100%; aspect-ratio: 1; transform-style: preserve-3d; }
.sm-card.is-back .sm-card-in { transform: rotateY(180deg); }
.sm-card-face, .sm-card-back { position: absolute; inset: 0; display: block; border-radius: 9px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sm-card-back {
    transform: rotateY(180deg);
    border: 3px solid #05080f;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.4px, transparent 2px) 0 0 / 9px 9px,
        linear-gradient(140deg, #2b4a86, #162a52);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.sm-card-back::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font: 400 clamp(1.2rem, 5vw, 2.2rem)/1 var(--font-display); -webkit-text-stroke: 0.12em #05080f; paint-order: stroke fill; }
.sm-card-face .gu { width: 100%; }
.sm-card.r3 .sm-card-face { box-shadow: 0 0 0 2px rgba(255, 213, 83, 0.55), 0 0 14px rgba(255, 213, 83, 0.35); }
.sm-card.r4 .sm-card-face { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, 0.6), 0 0 34px rgba(185, 89, 230, 0.5); }
/* sized by height: the R / N badges are 36 x 37, SR / UR 60 x 38, so a shared width would make R and N taller */
.sm-card-rar { position: absolute; z-index: 3; right: -2%; top: -7%; width: auto; height: 23%; filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.6)); pointer-events: none; }
.sm-card-new, .sm-card-pu {
    position: absolute;
    z-index: 3;
    left: -2%;   /* both badges overhang their card by less than half the gap, so neighbours never touch */
    padding: 0 0.4em;
    border-radius: 0.35em;
    font: 700 clamp(0.5rem, 1.6vw, 0.68rem)/1.5 var(--font-body);
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 1px 2px 0 #05080f;
    pointer-events: none;
}
.sm-card-new { top: -7%; background: #e8413c; color: #fff; rotate: -8deg; }
.sm-card-pu { bottom: -5%; left: auto; right: -2%; background: var(--gold); color: #05080f; rotate: 5deg; }
.sm .sm-card-name { display: block; width: 100%; overflow: hidden; color: var(--text-2); font-size: clamp(0.56rem, 1.6vw, 0.72rem); line-height: 1.25; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sm .sm-card-name:hover { color: #fff; text-decoration: underline; }
.sm-card.is-back .sm-card-name { visibility: hidden; }
.sm-results.is-single .sm-card-name { font-size: 0.9rem; white-space: normal; }

.sm-skip { position: absolute; z-index: 6; right: 10px; bottom: 10px; padding: 4px 12px; border: 2px solid #05080f; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #05080f; font: 700 0.78rem/1.4 var(--font-body); cursor: pointer; box-shadow: 2px 2px 0 #05080f; }
.sm-skip:hover { background: var(--gold); }
.sm-summary { min-height: 1.5em; margin: 0; color: var(--text-2); font-size: 0.9rem; text-align: center; }
.sm-summary b { color: var(--gold); }

/* ── Controls ───────────────────────────────────────────────────── */
.sm-controls { display: grid; gap: 12px; }
.sm-track { display: grid; gap: 8px; }
.sm-lap { margin: 0; color: var(--acc2); font-size: 0.82rem; font-weight: 700; }
.sm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sm-step { display: grid; gap: 4px; align-content: start; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: rgba(255, 255, 255, 0.03); opacity: 0.55; }
.sm-step.is-now { border-color: var(--acc2); background: color-mix(in srgb, var(--acc) 22%, transparent); opacity: 1; }
.sm-step.is-past { opacity: 0.8; }
.sm-step-no { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sm-step-no img { width: 70px; height: auto; }
.sm-step-no b { color: var(--up); font-size: 0.72rem; }
.sm-step:not(.is-past) .sm-step-no b { display: none; }
.sm-step-t { color: var(--text-2); font-size: 0.74rem; line-height: 1.35; }
.sm-step-b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--text-3); font-size: 0.7rem; }
.sm-step-b .it-ic { width: 26px; }

.sm-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sm-pull {
    display: grid;
    gap: 2px;
    justify-items: center;
    min-width: min(100%, 210px);
    padding: 9px 20px 8px;
    border: 3px solid #05080f;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffe27a, #ffb52e);
    color: #05080f;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 4px 4px 0 #05080f;
}
.sm-pull b { font: 400 1.25rem/1.15 var(--font-display); letter-spacing: 0.5px; }
.cd-jp .sm-pull b { letter-spacing: 0; }
.sm-pull.is-ten { background: linear-gradient(180deg, #ff9f8f, #e8413c); color: #fff; }
.sm-pull:hover:not(:disabled) { translate: -1px -1px; box-shadow: 5px 5px 0 #05080f; }
.sm-pull:active:not(:disabled) { translate: 2px 2px; box-shadow: 2px 2px 0 #05080f; }
.sm-pull:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sm-pull:disabled { cursor: default; filter: grayscale(0.85) brightness(0.75); }
.sm-cost { display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sm-cost .it-ic { width: 26px; }
.sm-pull small { font-size: 0.7rem; font-weight: 600; opacity: 0.85; }

.sm-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; color: var(--text-2); font-size: 0.82rem; }
.sm-opts .cd-tabs { padding: 3px; }
.sm-opts .cd-tab { padding-top: 3px; padding-bottom: 3px; font-size: 0.78rem; }
.sm-opt { display: inline-flex; align-items: center; gap: 6px; }
.sm-opts .cd-btn { padding-top: 4px; padding-bottom: 4px; font-size: 0.8rem; }
.sm-done { margin: 0; color: var(--gold); font-weight: 600; text-align: center; }

/* Custom banners: choosing the UR characters */
.sm-custom { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.sm-custom-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.sm-custom-head b { color: #fff; }
.sm-custom-head span { color: var(--acc2); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sm-custom-q { width: min(100%, 260px); padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-size: 0.84rem; }
.sm-custom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 250px; margin: 0; padding: 2px; overflow-y: auto; list-style: none; }
.sm-pick { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; opacity: 0.55; }
.sm-pick .gu { width: 100%; }
.sm-pick:hover { opacity: 0.9; }
.sm-pick[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--gold); outline-offset: -1px; }
.sm-pick:focus-visible { outline: 3px solid #fff; }

/* ── Session panels ─────────────────────────────────────────────── */
.sm-reset { padding-top: 4px; padding-bottom: 4px; font-size: 0.78rem; }
.sm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.sm-stats > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); }
.sm-stats dt { color: var(--text-3); font-size: 0.72rem; font-weight: 700; }
.sm-stats dd { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sm-stats dd small { display: block; color: var(--text-3); font-size: 0.68rem; font-weight: 500; }
.sm-stats .is-ur dd { color: #ffe980; }

.sm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sm-tile { position: relative; display: block; text-decoration: none; }
.sm-tile .gu { width: 100%; }
.sm-tile.is-zero { opacity: 0.4; filter: grayscale(0.7); }
.sm-n { position: absolute; z-index: 3; right: -3px; bottom: -3px; padding: 0 5px; border-radius: 999px; background: rgba(10, 22, 40, 0.92); color: var(--gold); font-size: 0.7rem; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.sm-group + .sm-group { margin-top: 14px; }
.sm-group-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--text-2); font-size: 0.82rem; font-weight: 700; }
.sm-group-h img { width: auto; height: 28px; }

.sm-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; max-height: 420px; margin: 10px 0 0; padding: 2px; overflow-y: auto; list-style: none; }
.sm-good { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); }
.sm-good .gu, .sm-good .it-ic { width: 44px; }
.sm-good-t { display: grid; min-width: 0; font-size: 0.8rem; line-height: 1.3; }
.sm-good-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-good-t small { color: var(--text-3); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.sm-good-t small b { color: var(--gold); }
.sm-good .cd-btn { padding: 3px 10px; font-size: 0.74rem; }
.sm-good .cd-btn:disabled { opacity: 0.4; pointer-events: none; }

.sm-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sm-hist { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.sm-hist-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-3); font-size: 0.74rem; }
.sm-hist-h b { color: var(--text); }
.sm-hist-h .it-ic { display: inline-block; width: 20px; vertical-align: -5px; }
.sm-hist-u { display: flex; flex-wrap: wrap; gap: 4px; }
.sm-hist-u .gu { width: 34px; }
.sm-hist-u .gu.is-ur { outline: 2px solid #fff; outline-offset: -1px; border-radius: 5px; }

@media (max-width: 520px) {
    .sm-stage { min-height: 300px; }
    .sm-pull { min-width: 0; flex: 1 1 140px; padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .sm-pull:hover:not(:disabled), .sm-pull:active:not(:disabled) { translate: none; }
}
