:root {
    color-scheme: light;
    --ink: #302b33;
    --muted: #77717b;
    --line: #e9e4ea;
    --surface: #ffffff;
    --canvas: #fbf9fc;
    --primary: #dc6f8e;
    --primary-hover: #c85c7c;
    --secondary: #6686bf;
    --accent: #d58a55;
    --danger: #b94b58;
    --success: #4f8b74;
    --shadow: 0 18px 50px rgba(66, 48, 66, 0.09);
    --soft-shadow: 0 8px 24px rgba(66, 48, 66, 0.06);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    isolation: isolate;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 190px;
    height: 250px;
    border: 1px solid rgba(220, 111, 142, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .52);
    pointer-events: none;
    animation: background-drift 10s ease-in-out infinite alternate;
}
body::before { top: 130px; left: -92px; transform: rotate(16deg); }
body::after { right: -84px; bottom: 80px; border-color: rgba(102, 134, 191, .2); transform: rotate(-13deg); animation-delay: -4s; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

@keyframes background-drift {
    from { translate: 0 0; }
    to { translate: 0 14px; }
}
@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pane-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes result-in {
    from { opacity: 0; transform: scale(.98); }
    to { opacity: 1; transform: scale(1); }
}

.site-header {
    min-height: 70px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(233, 228, 234, .88);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 18px rgba(70, 48, 68, .035);
}
.site-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: white;
    font-weight: 850;
    box-shadow: 0 7px 18px rgba(220, 111, 142, .24);
}
.secure-label { color: var(--muted); font-size: 13px; }
.secure-label::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--secondary); }

.checkout-shell { width: min(960px, calc(100% - 32px)); margin: 56px auto 78px; animation: page-enter .45s ease-out; }
.checkout-heading { text-align: center; margin-bottom: 38px; }
.checkout-heading h1 { margin: 9px 0 11px; font-size: 42px; line-height: 1.18; }
.checkout-heading p:last-child { margin: 0; color: var(--muted); }
.eyebrow, .pane-kicker { color: var(--primary); font-size: 12px; font-weight: 850; }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 26px; }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; color: #9b949e; font-weight: 700; transition: color .25s; }
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 58px); right: calc(-50% + 58px); top: 17px; height: 2px; background: var(--line); transition: background .3s; }
.step-number { width: 36px; height: 36px; border: 2px solid #d8d2da; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); z-index: 1; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.step.active { color: var(--ink); }
.step.active .step-number { border-color: var(--primary); background: var(--primary); color: white; transform: scale(1.06); box-shadow: 0 7px 18px rgba(220, 111, 142, .22); }
.step.complete .step-number { border-color: var(--secondary); color: white; background: var(--secondary); }
.step.complete::after { background: var(--secondary); }
.step-name { position: relative; z-index: 1; padding: 0 6px; background: var(--canvas); }

.panel { border: 1px solid rgba(233, 228, 234, .96); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.checkout-panel { position: relative; min-height: 410px; padding: 46px; }
.step-pane { display: none; }
.step-pane.active { display: block; animation: pane-in .3s ease-out; }
.pane-title { margin-bottom: 28px; }
.pane-title h2 { margin: 7px 0 9px; font-size: 25px; }
.pane-title p { margin: 0; color: var(--muted); line-height: 1.7; }
.stack-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-weight: 750; font-size: 13px; }
.field input, .field textarea, .field select,
.setting-row input, .setting-row textarea {
    width: 100%;
    border: 1px solid #d8d2da;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    padding: 13px 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea, .setting-row textarea { resize: vertical; line-height: 1.58; font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; }
.field input:focus, .field textarea:focus, .field select:focus,
.setting-row input:focus, .setting-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(220, 111, 142, .1); background: #fffdfd; }

.button { min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 10px 18px; cursor: pointer; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .16s, background .16s, border-color .16s, box-shadow .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .58; cursor: wait; }
.button.primary { background: var(--primary); color: white; box-shadow: 0 8px 18px rgba(220, 111, 142, .2); }
.button.primary:hover:not(:disabled) { background: var(--primary-hover); box-shadow: 0 10px 22px rgba(220, 111, 142, .27); }
.button.secondary { background: #eef3fb; border-color: #d5dfef; color: #506fa8; }
.button.ghost { border-color: #d8d2da; background: white; color: var(--ink); }
.button.ghost:hover:not(:disabled) { border-color: #bdb4c0; background: #fdfbfe; }
.button.danger { background: #fff; border-color: #ebc6cb; color: var(--danger); }
.button.small { min-height: 35px; padding: 6px 12px; font-size: 12px; }
.button-row { display: flex; justify-content: space-between; gap: 12px; }
.card-action-stack { display: grid; gap: 10px; }

.helper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 25px; }
.helper-link { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-decoration: none; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.helper-link:hover { transform: translateY(-2px); border-color: #e8bac8; background: #fffafb; box-shadow: var(--soft-shadow); }
.helper-index { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fbe9ef; color: var(--primary); font-weight: 850; }
.helper-link:nth-child(2) .helper-index { background: #eaf0fa; color: var(--secondary); }
.helper-link strong, .helper-link small { display: block; overflow-wrap: anywhere; }
.helper-link small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.external-label { color: var(--muted); font-size: 11px; white-space: nowrap; }

.query-result { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #eadfe4; border-radius: 8px; background: #fffafb; animation: result-in .25s ease-out; }
.query-result > div { padding: 17px 18px; min-width: 0; }
.query-result > div + div { border-left: 1px solid #eadfe4; }
.query-result span:not(.status-badge) { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.query-result strong { display: block; overflow-wrap: anywhere; }
.account-summary { margin: 0; border-top: 1px solid var(--line); }
.account-summary > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-summary dt { color: var(--muted); }
.account-summary dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.plan-badge, .status-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 10px; font-size: 14px; font-weight: 850; background: #eaf0fa; color: #506fa8; }
.status-badge.success { background: #e8f2ee; color: #3f7561; }
.status-badge.failed { background: #fbeaec; color: var(--danger); }
.status-badge.processing { background: #fff0e7; color: #a96739; }
.toast { position: fixed; left: 50%; bottom: 24px; max-width: min(460px, calc(100% - 30px)); transform: translate(-50%, 20px); padding: 13px 17px; border-radius: 7px; color: white; background: var(--danger); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; box-shadow: var(--soft-shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: var(--success); }
.site-footer { padding: 0 20px 34px; text-align: center; color: var(--muted); font-size: 12px; }

.install-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.install-shell { width: min(720px, 100%); animation: page-enter .4s ease-out; }
.install-panel { padding: 38px; }
.install-panel h1 { margin: 10px 0; font-size: 28px; }
.muted { color: var(--muted); line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field-wide { grid-column: 1 / -1; }
.alert { padding: 12px 14px; border-radius: 7px; margin: 18px 0; }
.alert-error { color: var(--danger); background: #fbeaec; border: 1px solid #efcbd0; }
.alert-success { color: #3f7561; background: #e8f2ee; border: 1px solid #c8dfd6; }
.alert-warning { color: #72572c; background: #fff7e8; border: 1px solid #edd9ad; }

dialog { width: min(720px, calc(100% - 30px)); border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: white; box-shadow: 0 28px 90px rgba(54, 39, 54, .25); animation: result-in .22s ease-out; }
dialog::backdrop { background: rgba(45, 38, 47, .48); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 5px 0 0; font-size: 20px; }
.modal-body { padding: 22px; }
.modal-body pre { max-height: 55vh; overflow: auto; padding: 16px; background: #f8f6f9; border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 0 22px 22px; }

/* Admin */
.admin-body { background: #faf9fb; }
.admin-header { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255, 255, 255, .95); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 5px 18px rgba(69, 50, 67, .035); }
.admin-header .brand-mark { background: var(--primary); }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.admin-nav { padding: 24px 14px; background: rgba(255, 255, 255, .9); border-right: 1px solid var(--line); }
.admin-nav a { display: block; padding: 11px 13px; margin-bottom: 5px; border-radius: 7px; color: #5f5962; text-decoration: none; font-weight: 700; transition: background .16s, color .16s, transform .16s; }
.admin-nav a:hover { transform: translateX(2px); background: #fbf2f5; color: var(--primary-hover); }
.admin-nav a.active { background: #f9eaf0; color: var(--primary-hover); }
.admin-main { padding: 30px; min-width: 0; animation: page-enter .35s ease-out; }
.admin-titlebar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.admin-titlebar h1 { margin: 0 0 6px; font-size: 27px; }
.admin-titlebar p { margin: 0; color: var(--muted); }
.admin-panel { padding: 22px; margin-bottom: 20px; box-shadow: var(--soft-shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--soft-shadow); }
.stat:nth-child(2) { border-top: 3px solid #e5a06e; }
.stat:nth-child(3) { border-top: 3px solid #76a58f; }
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 8px; font-size: 27px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 1040px; }
.data-table th { padding: 11px 10px; text-align: left; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 14px 10px; border-bottom: 1px solid #f0edf1; vertical-align: top; font-size: 14px; }
.data-table tr:last-child td { border-bottom: 0; }
.order-list-table { min-width: 1080px; }
.cell-primary { font-weight: 750; font-size: 14px; }
.cell-secondary { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; overflow-wrap: anywhere; }
.note-preview { display: -webkit-box; max-width: 230px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.55; overflow-wrap: anywhere; }
.order-form { display: grid; gap: 7px; min-width: 190px; }
.order-form select, .order-form textarea { border: 1px solid #d8d2da; border-radius: 6px; padding: 7px 8px; width: 100%; background: white; }
.order-form textarea { resize: vertical; min-height: 58px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-form input, .filter-form select { min-height: 40px; padding: 8px 10px; border: 1px solid #d8d2da; border-radius: 7px; background: white; }
.generated-box textarea { width: 100%; min-height: 190px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; font-family: Consolas, monospace; line-height: 1.6; }
.batch-cards-content { width: 100%; min-height: 420px; max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: #f8f6f9; }
.batch-card-row { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.batch-card-row:last-child { border-bottom: 0; }
.batch-card-row code { color: var(--ink); font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; overflow-wrap: anywhere; }
.batch-card-status { flex: 0 0 auto; color: var(--muted); font-size: 14px; font-weight: 800; }
.batch-card-status.used { color: var(--success); }
.batch-card-status.disabled { color: var(--danger); }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-heading { margin: 0 0 16px; font-size: 18px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-panel { width: min(420px, 100%); padding: 34px; animation: page-enter .4s ease-out; }
.login-panel h1 { margin: 16px 0 6px; }
.logout-form { margin: 0; }
.logout-button { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 8px; }

.order-detail-modal { width: min(920px, calc(100% - 30px)); }
.order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.detail-item { min-height: 82px; padding: 15px 16px; background: #fff; }
.detail-item span:first-child { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.detail-item strong { display: block; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-item .plan-badge, .detail-item .status-badge { font-size: 14px; }
.detail-input-item { display: block; }
.detail-input-item input { width: 100%; min-height: 38px; border: 1px solid #d8d2da; border-radius: 7px; padding: 8px 10px; color: var(--ink); background: #fff; outline: none; font-size: 14px; }
.detail-input-item input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(220, 111, 142, .1); }
.detail-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fdfbfd; }
.detail-editor .field { grid-template-rows: auto 120px; }
.detail-editor select, .detail-editor textarea { height: 120px; min-height: 120px; }
.detail-editor textarea { resize: none; }
.detail-editor-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.detail-editor-actions .inline-result { margin: 0 auto 0 0; }
.detail-session-box { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.detail-session-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.detail-session-head strong, .detail-session-head span { display: block; }
.detail-session-head span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.detail-session-box pre { max-height: 360px; margin: 16px 0 12px; overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #f8f6f9; white-space: pre-wrap; overflow-wrap: anywhere; }

.settings-menu { display: grid; gap: 12px; }
.setting-group { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--soft-shadow); overflow: hidden; }
.setting-group-summary { min-height: 76px; padding: 17px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; transition: background .18s; }
.setting-group-summary::-webkit-details-marker { display: none; }
.setting-group-summary:hover { background: #fffafb; }
.setting-group-summary strong, .setting-group-summary small { display: block; }
.setting-group-summary strong { font-size: 17px; }
.setting-group-summary small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.setting-group-action { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-hover); font-size: 13px; font-weight: 800; white-space: nowrap; }
.setting-group-action::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.setting-group[open] .setting-group-action::after { transform: rotate(-135deg); }
.setting-group-body { border-top: 1px solid var(--line); animation: pane-in .22s ease-out; }
.setting-group-toolbar { display: flex; justify-content: flex-end; padding: 16px 22px; border-bottom: 1px solid #f0edf1; background: #fdfbfd; }
.setting-section { padding: 0; overflow: hidden; }
.setting-section > .section-heading, .setting-section > .section-title-row { padding: 20px 22px 16px; margin: 0; }
.setting-list { border-top: 1px solid var(--line); }
.setting-row { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(280px, 1.4fr) minmax(94px, auto); align-items: center; gap: 22px; padding: 17px 22px; border-bottom: 1px solid #f0edf1; }
.setting-row:last-child { border-bottom: 0; }
.setting-copy strong, .setting-copy small { display: block; }
.setting-copy strong { font-size: 14px; }
.setting-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.setting-row-tall { align-items: start; }
.save-state { justify-self: end; color: var(--muted); font-size: 12px; text-align: right; }
.save-state.saving, .save-state.pending { color: var(--accent); }
.save-state.saved { color: var(--success); }
.save-state.error { color: var(--danger); max-width: 180px; }
.template-variables { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 20px; }
.template-variables code { padding: 6px 9px; border: 1px solid #dce3ef; border-radius: 6px; background: #f1f5fb; color: #506fa8; font-size: 12px; cursor: text; }
.inline-result { margin: 0 22px 20px; padding: 11px 13px; border-radius: 7px; font-size: 13px; }
.inline-result.success { color: #3f7561; background: #e8f2ee; border: 1px solid #c8dfd6; }
.inline-result.error { color: var(--danger); background: #fbeaec; border: 1px solid #efcbd0; }

@media (max-width: 900px) {
    .setting-row { grid-template-columns: 1fr; gap: 10px; }
    .save-state { justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
    body::before, body::after { opacity: .55; }
    .checkout-shell { margin-top: 36px; }
    .checkout-heading h1 { font-size: 32px; }
    .checkout-panel { padding: 28px 20px; }
    .step { display: grid; justify-items: center; gap: 6px; text-align: center; }
    .step:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px); top: 17px; }
    .step-name { font-size: 12px; }
    .helper-grid, .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .button-row { flex-direction: column-reverse; }
    .button-row .button { width: 100%; }
    .query-result { grid-template-columns: 1fr; }
    .query-result > div + div { border-left: 0; border-top: 1px solid #eadfe4; }
    .account-summary > div { grid-template-columns: 1fr; gap: 7px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { display: flex; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-nav a { white-space: nowrap; margin: 0 4px 0 0; }
    .admin-nav a:hover { transform: none; }
    .admin-main { padding: 20px 14px; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-titlebar { align-items: stretch; flex-direction: column; }
    .section-title-row { align-items: stretch; flex-direction: column; }
    .section-title-row .button { width: 100%; }
    .setting-group-summary { min-height: 70px; padding: 15px 18px; }
    .setting-group-summary strong { font-size: 16px; }
    .setting-group-toolbar .button { width: 100%; }
    .modal-head { align-items: flex-start; }
    .order-detail-grid, .detail-editor { grid-template-columns: 1fr; }
    .detail-editor-actions { grid-column: auto; align-items: stretch; flex-direction: column; }
    .detail-editor-actions .button { width: 100%; }
    .detail-session-head { align-items: stretch; flex-direction: column; }
    .detail-session-head .button { width: 100%; }
}

@media (max-width: 460px) {
    .site-header { padding: 0 16px; }
    .secure-label { display: none; }
    .checkout-shell { width: min(100% - 20px, 960px); }
    .checkout-heading h1 { font-size: 28px; }
    .step-name { max-width: 78px; }
    .install-panel { padding: 26px 20px; }
    .admin-header { padding: 0 14px; }
    .modal-head { flex-direction: column; }
    .modal-head .button { width: 100%; }
    .modal-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
