/* =====================================================================
   Shopify Token Generator — "banco di rilascio"
   Il form è il lato richiesta (carta chiara); il reveal è il lato
   rilascio (lastra petrolio + timbro in ottone). Sans di sistema per la
   voce umana, monospace come font-strumento per i dati macchina.
   ===================================================================== */

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== DESIGN TOKENS ===== */
:root {
    /* superfici scure = "banco sicuro" */
    --ink:        #0B1E27;
    --ink-raised: #123039;
    --ink-line:   rgba(227, 162, 74, 0.16);

    /* superfici chiare = "lato richiesta" */
    --bg:      #E9ECEC;
    --surface: #FFFFFF;
    --line:    #D7DDDE;
    --field:   #F4F6F6;

    /* ottone = chiave / sigillo / azione */
    --brass:        #B7791F;
    --brass-deep:   #8F5E15;
    --brass-bright: #E3A24A;
    --paper-token:  #EFE7D6;

    /* testo */
    --text:      #17272E;
    --muted:     #55666F;
    --on-ink:    #D6E0E3;
    --on-ink-mut:#7C929B;

    /* semantica (toni sordi, non acidi) */
    --success:   #1F7A5A;
    --danger:    #B4442E;
    --warning:   #B7791F;

    --radius-sm: 7px;
    --radius:    11px;
    --radius-lg: 16px;

    --shadow-card: 0 1px 2px rgba(11,30,39,0.05), 0 10px 34px rgba(11,30,39,0.10);
    --shadow-pop:  0 12px 40px rgba(11,30,39,0.18);
    --shadow-plate:0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 50px rgba(0,0,0,0.42);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Cascadia Code", "Liberation Mono", monospace;
}

/* ===== BASE ===== */
body {
    font-family: var(--font-sans);
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

:focus-visible {
    outline: 2px solid var(--brass-deep);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    height: 100vh;
    overflow: hidden; /* dashboard a tutta altezza, senza scroll */
}

/* ===== SIDEBAR (il banco) ===== */
.sidebar {
    width: 248px;
    flex-shrink: 0;
    background:
        radial-gradient(120% 80% at 20% 0%, #12303a 0%, var(--ink) 62%);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo svg { flex-shrink: 0; }

.sidebar-title {
    font-size: 0.98rem;
    font-weight: 750;
    color: #EEF3F4;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* eyebrow mono sotto il marchio */
.sidebar-tagline {
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass-bright);
    line-height: 1.7;
}

.sidebar-note {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--on-ink-mut);
    line-height: 1.5;
    max-width: 15rem;
}

.sidebar-spacer { flex: 1; }

.sidebar-user {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.83rem;
    color: var(--on-ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--on-ink-mut);
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: left;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    width: 100%;
}

.sidebar-logout-btn:hover {
    border-color: rgba(227,162,74,0.5);
    color: #fff;
    background: rgba(227,162,74,0.08);
}

/* ===== MAIN ===== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-y: auto; /* era hidden: consenti lo scroll quando il reveal supera i 100vh (altrimenti lo scope in fondo non si legge) */
}

/* margin-block:auto centra verticalmente senza tagliare in cima quando il contenuto eccede l'altezza (a differenza di justify-content:center + overflow) */
.main > .card { width: 100%; max-width: 580px; margin-block: auto; }

/* ===== CARD (lato richiesta) ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

/* ===== EYEBROW (mono, struttura non decoro) ===== */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin-bottom: 0.6rem;
}

.form-section > h2 {
    font-size: 1.55rem;
    font-weight: 780;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
    line-height: 1.5;
    max-width: 44ch;
}

/* ===== FORM ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width { grid-column: 1 / -1; }

/* etichette in mono = "questi sono campi/chiavi" */
.form-group label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.form-group input {
    padding: 0.68rem 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--field);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
}

/* i campi credenziale portano il valore: mostrali in mono */
#apiKey, #apiSecret { font-family: var(--font-mono); font-size: 0.86rem; }

.form-group input::placeholder { color: #9AA8AE; }

.form-group input:focus {
    border-color: var(--brass);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(183,121,31,0.14);
}

/* ===== SELECT PROGETTI SALVATI ===== */
.custom-select-wrapper { position: relative; }
.custom-select { position: relative; width: 100%; }

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.68rem 0.85rem;
    background: var(--field);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s;
    min-height: 44px;
    font-size: 0.88rem;
    color: var(--muted);
}

.custom-select-trigger:hover { border-color: #B7c0c3; }

.custom-select.open .custom-select-trigger {
    border-color: var(--brass);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(183,121,31,0.14);
    color: var(--text);
}

.custom-select-trigger span:first-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow {
    color: var(--muted);
    transition: transform 0.2s;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.custom-select.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--brass);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-pop);
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.custom-select.open .custom-select-dropdown { display: block; }

.custom-select-search {
    width: 100%;
    padding: 0.68rem 0.85rem;
    border: none;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
    background: var(--field);
    color: var(--text);
}

.custom-select-search:focus { background: #fff; border-bottom-color: var(--brass); }

.custom-select-options { max-height: 230px; overflow-y: auto; }

.custom-select-option {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.1s;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover { background: #FBF4E7; }
.custom-select-option.selected { background: var(--brass); color: #fff; }
.custom-select-option.selected:hover { background: var(--brass-deep); }
.custom-select-option.hidden { display: none; }

.custom-select-option-empty {
    padding: 1rem;
    text-align: center;
    color: #9AA8AE;
    font-size: 0.86rem;
    font-style: italic;
}

/* ===== BUTTONS ===== */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 650;
    border-radius: var(--radius-sm);
    transition: background 0.15s, box-shadow 0.15s, transform 0.08s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    font-size: 0.92rem;
}

button:active { transform: translateY(1px); }

.btn-primary {
    background: var(--brass-deep);
    color: #fff;
    padding: 0.78rem 1.5rem;
    box-shadow: 0 1px 2px rgba(143,94,21,0.4);
}

.btn-primary:hover {
    background: #7c5011;
    box-shadow: 0 6px 18px rgba(143,94,21,0.32);
}

.btn-secondary {
    background: transparent;
    color: var(--muted);
    padding: 0.78rem 1.25rem;
    border: 1.5px solid var(--line);
}

.btn-secondary:hover { border-color: #B7c0c3; color: var(--text); background: #fff; }

.form-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    align-items: center;
}

#submitBtn { flex: 1; }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.93);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: var(--radius-lg);
    z-index: 10;
    backdrop-filter: blur(2px);
}

.loading-overlay p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--line);
    border-top-color: var(--brass);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FORCE-CONFIRM (409: avvisa ma consenti) ===== */
.force-confirm-banner {
    background: #FBF3E4;
    border: 1px solid #EBD6A6;
    border-left: 3px solid var(--brass);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
}

.force-confirm-message {
    font-size: 0.88rem;
    color: #6B4E12;
    margin-bottom: 0.9rem;
    line-height: 1.55;
}

.force-confirm-actions { display: flex; gap: 0.6rem; }
.force-confirm-actions .btn-primary { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.force-confirm-actions .btn-secondary { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* =====================================================================
   REVEAL (lato rilascio) — lastra petrolio + timbro in ottone.
   .reveal-section segue .card così vince su sfondo/bordo (stessa specificità).
   ===================================================================== */
.reveal-section {
    background:
        radial-gradient(140% 90% at 85% -10%, #16323c 0%, var(--ink) 60%);
    border: 1px solid var(--ink-line);
    color: var(--on-ink);
    padding: 2.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-plate);
}

/* ingresso orchestrato: la lastra sale (una volta, via .shown) */
.reveal-section.shown { animation: plateRise 0.42s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes plateRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 0.6rem;
}

.reveal-section h2 {
    font-size: 1.5rem;
    font-weight: 780;
    color: #F3F7F8;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: calc(100% - 96px); /* non finire sotto il timbro */
}

.reveal-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--on-ink-mut);
    margin: 0.5rem 0 0;
    max-width: calc(100% - 96px);
    word-break: break-word;
}

/* IL TIMBRO — firma della pagina */
.reveal-stamp {
    position: absolute;
    top: 1.9rem;
    right: 1.9rem;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 2px solid var(--brass);
    box-shadow: 0 0 0 3px rgba(183,121,31,0.14) inset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transform: rotate(-8deg);
    color: var(--brass-bright);
    opacity: 0.92;
    text-align: center;
    pointer-events: none;
}

.reveal-section.shown .reveal-stamp {
    animation: stampPress 0.5s cubic-bezier(0.34,1.4,0.5,1) 0.12s both;
}

@keyframes stampPress {
    0%   { opacity: 0; transform: rotate(-8deg) scale(1.55); }
    60%  { opacity: 0.95; }
    100% { opacity: 0.92; transform: rotate(-8deg) scale(1); }
}

.reveal-stamp .stamp-top {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.14em;
}

.reveal-stamp .stamp-main {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.reveal-stamp .stamp-rule {
    width: 46px;
    height: 1px;
    background: rgba(227,162,74,0.5);
}

/* avviso = direzione, non scusa */
.reveal-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(227,162,74,0.09);
    border: 1px solid rgba(227,162,74,0.28);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.95rem;
    margin: 1.6rem 0 1.2rem;
    font-size: 0.85rem;
    color: #EAD9B8;
    line-height: 1.5;
}

.reveal-warning-icon { flex-shrink: 0; }
.reveal-warning strong { color: #F6E8C9; }

/* la lastra col token inciso */
.reveal-token-box {
    background: var(--ink-raised);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    padding: 1.15rem 1.15rem 1.05rem;
    margin-bottom: 0.9rem;
}

.reveal-token-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--on-ink-mut);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.7rem;
}

.reveal-token-value {
    font-family: var(--font-mono);
    font-size: 0.98rem;
    color: var(--paper-token);
    word-break: break-all;
    line-height: 1.7;
    margin-bottom: 1rem;
    user-select: all;
    -webkit-user-select: all;
}

.btn-copy-token {
    width: 100%;
    background: rgba(227,162,74,0.12);
    color: var(--brass-bright);
    border: 1px solid rgba(227,162,74,0.4);
    padding: 0.68rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-copy-token:hover {
    background: rgba(227,162,74,0.2);
    border-color: var(--brass-bright);
    color: #F6E8C9;
}

.btn-copy-token.copied {
    background: rgba(31,122,90,0.22);
    border-color: rgba(31,122,90,0.6);
    color: #86E3BF;
}

/* credenziali app (shop/key/secret) per compilare le env in un colpo */
.reveal-creds {
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reveal-creds-title {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--on-ink-mut);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.reveal-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.reveal-cred-info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    flex: 1;
}

.reveal-cred-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--on-ink-mut);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.reveal-cred-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--on-ink);
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
}

.btn-copy-field {
    flex-shrink: 0;
    background: rgba(227,162,74,0.12);
    color: var(--brass-bright);
    border: 1px solid rgba(227,162,74,0.4);
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-sans);
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-copy-field:hover {
    background: rgba(227,162,74,0.2);
    border-color: var(--brass-bright);
    color: #F6E8C9;
}

.btn-copy-field.copied {
    background: rgba(31,122,90,0.22);
    border-color: rgba(31,122,90,0.6);
    color: #86E3BF;
}

/* seriale = orario di rilascio + id (mono) */
.reveal-serial {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--on-ink-mut);
    margin-bottom: 1.2rem;
}

.reveal-scope {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.95rem;
    margin-bottom: 1.4rem;
}

.reveal-scope-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--on-ink-mut);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
}

.reveal-scope-value {
    font-size: 0.8rem;
    color: var(--on-ink);
    word-break: break-all;
    font-family: var(--font-mono);
    line-height: 1.6;
}

.reveal-actions { justify-content: stretch; }

.reveal-section .btn-secondary {
    width: 100%;
    border-color: rgba(255,255,255,0.16);
    color: var(--on-ink);
    background: transparent;
}

.reveal-section .btn-secondary:hover {
    border-color: rgba(227,162,74,0.5);
    color: #fff;
    background: rgba(227,162,74,0.08);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 280px;
    max-width: 400px;
    z-index: 1000;
    animation: toastIn 0.25s cubic-bezier(0.34,1.4,0.5,1);
}

.toast.hidden { display: none; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--brass); }
.toast.warning { border-left: 3px solid var(--warning); background: #FBF3E4; }
.toast.warning .toast-message { color: #6B4E12; }

.toast-icon { font-size: 1.05rem; flex-shrink: 0; }

.toast-message {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

@keyframes toastIn {
    from { transform: translateY(10px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Fallback: se il viewport è troppo basso, riattiva lo scroll del main
   invece di tagliare il contenuto (form lungo su schermi corti). */
@media (max-height: 720px) {
    .layout { height: auto; min-height: 100vh; overflow: visible; }
    .main { justify-content: flex-start; overflow: visible; padding-top: 2.5rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .layout { flex-direction: column; height: auto; overflow: visible; }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 0.9rem 1.1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .sidebar-logo { flex: 1; }
    .sidebar-title { font-size: 0.86rem; }
    .sidebar-tagline, .sidebar-note, .sidebar-spacer { display: none; }

    .sidebar-user {
        border-top: none;
        padding-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .sidebar-user-name { display: none; }
    .sidebar-logout-btn { width: auto; white-space: nowrap; }

    .main { padding: 1.75rem 1rem 3rem; justify-content: flex-start; overflow: visible; }
    .card { padding: 1.5rem 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: 1; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    #submitBtn { width: 100%; }

    .reveal-stamp {
        top: 1.25rem; right: 1.25rem;
        width: 74px; height: 74px;
    }
    .reveal-stamp .stamp-main { font-size: 0.7rem; }

    .toast { left: 1rem; right: 1rem; min-width: unset; max-width: unset; bottom: 1rem; }
}

/* ===== MOTION OFF ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
