:root {
    color-scheme: light;
    --ink: #25332c;
    --muted: #66736c;
    --paper: #fffdf8;
    --canvas: #f3f0e7;
    --line: #dcd9cf;
    --green: #345c48;
    --green-deep: #234332;
    --sage: #dfe8dc;
    --wood: #b8865b;
    --clay: #d99a77;
    --danger: #9b4039;
    --shadow: 0 22px 60px rgba(50, 63, 54, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
    background: var(--canvas);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 3%, rgba(234, 217, 183, 0.62), transparent 28rem),
        radial-gradient(circle at 94% 32%, rgba(223, 232, 220, 0.72), transparent 32rem),
        var(--canvas);
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(220, 217, 207, 0.9);
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 760;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    color: white;
    background: var(--green);
    box-shadow: 0 8px 22px rgba(52, 92, 72, 0.24);
}

.product-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.product-nav a,
.text-link {
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

.product-nav a:hover,
.text-link:hover { color: var(--green-deep); }

.credits-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--sage);
}

.credits-nav span { color: var(--green-deep); font-weight: 850; }

#app {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 80px;
    outline: none;
}

.panel {
    border: 1px solid rgba(220, 217, 207, 0.92);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow);
}

.public-login { min-height: 40px; padding-inline: 16px !important; color: white !important; }

.home-view { display: grid; gap: clamp(54px, 8vw, 92px); }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
    align-items: center;
    min-height: 610px;
    gap: clamp(38px, 7vw, 92px);
}

.home-copy h1 {
    max-width: 760px;
    margin: 18px 0 24px;
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.home-actions { display: flex; flex-wrap: wrap; margin-top: 34px; gap: 12px; }

.home-proof {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.room-composition {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(220, 217, 207, 0.95);
    border-radius: 46% 46% 28px 28px;
    background: #e8e4d7;
    box-shadow: var(--shadow);
}

.room-wall { position: absolute; inset: 0 0 31%; background: #f7f2e8; }
.room-floor {
    position: absolute;
    inset: 69% 0 0;
    background: repeating-linear-gradient(104deg, #c7986c 0 3px, #b98659 3px 34px);
}

.room-window {
    position: absolute;
    top: 19%;
    right: 12%;
    width: 36%;
    height: 44%;
    border: 9px solid #fffdf8;
    background: linear-gradient(150deg, #bdd3ce, #e6d9bd);
    box-shadow: 0 14px 28px rgba(52, 66, 57, 0.14);
}

.room-window::before,
.room-window::after { content: ""; position: absolute; background: #fffdf8; }
.room-window::before { inset: 0 auto 0 48%; width: 6px; }
.room-window::after { inset: 48% 0 auto; height: 6px; }

.room-art {
    position: absolute;
    top: 25%;
    left: 14%;
    width: 20%;
    aspect-ratio: 0.76;
    border: 7px solid #fffdf8;
    background: linear-gradient(135deg, var(--clay), var(--sage));
    box-shadow: 0 12px 25px rgba(52, 66, 57, 0.12);
}

.room-sofa {
    position: absolute;
    z-index: 2;
    right: 11%;
    bottom: 18%;
    width: 64%;
    height: 24%;
    border-radius: 32px 32px 16px 16px;
    background: var(--green);
    box-shadow: 0 18px 32px rgba(35, 67, 50, 0.25);
}

.room-sofa span { position: absolute; top: 15%; width: 40%; height: 50%; border-radius: 18px; background: #416d56; }
.room-sofa span:first-child { left: 7%; }
.room-sofa span:last-child { right: 7%; }

.room-table {
    position: absolute;
    z-index: 3;
    bottom: 9%;
    left: 9%;
    width: 37%;
    height: 8%;
    border-radius: 50%;
    background: #9f7049;
    box-shadow: 0 15px 0 -9px #70492f;
}

.room-composition > p {
    position: absolute;
    z-index: 4;
    top: 8%;
    left: 9%;
    margin: 0;
    color: var(--green-deep);
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.45;
}

.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.capability-card { padding: 30px; box-shadow: 0 15px 38px rgba(50, 63, 54, 0.07); }
.capability-card > span { color: var(--wood); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.14em; }
.capability-card h2 { margin: 20px 0 10px; font-size: 1.35rem; }
.capability-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.home-delivery-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 54px);
    gap: 24px;
    border-radius: 28px;
    color: white;
    background: var(--green-deep);
}

.home-delivery-strip .eyebrow { color: #dab28d; }
.home-delivery-strip h2 { max-width: 720px; margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
.home-delivery-strip .button { flex: 0 0 auto; border-color: rgba(255, 255, 255, 0.38); color: white; background: transparent; }

.delivery-heading { align-items: start; }
.delivery-publish-status { margin: 0; padding: 14px 18px; border-radius: 14px; color: var(--green-deep); background: var(--sage); font-weight: 700; }
.delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.delivery-card { display: grid; align-content: start; padding: clamp(24px, 4vw, 38px); gap: 24px; }
.delivery-card > p { margin: 0; color: var(--muted); line-height: 1.65; }
.delivery-card-heading { display: flex; align-items: center; gap: 16px; }
.delivery-card-heading h2 { margin: 0; font-size: 1.55rem; }
.delivery-card-heading .eyebrow { margin-bottom: 3px; }

.platform-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 17px;
    color: white;
    background: var(--green);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.delivery-metadata { display: grid; margin: 0; gap: 0; }
.delivery-metadata > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); padding: 12px 0; gap: 12px; border-top: 1px solid var(--line); }
.delivery-metadata dt { color: var(--muted); font-size: 0.82rem; }
.delivery-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; }
.delivery-action { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 20px; }
.delivery-action .button { width: 100%; }
.delivery-action .helper { margin: 12px 0 0; font-size: 0.82rem; }
.delivery-qr { width: 132px; height: 132px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; image-rendering: pixelated; }
.standalone-notice { padding: 12px 14px; border-radius: 12px; color: var(--green-deep); background: var(--sage); font-weight: 750; }

.iphone-steps { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; }
.iphone-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); line-height: 1.5; }
.iphone-steps strong { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--wood); font-size: 0.8rem; }
.delivery-boundary { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 20px 24px; gap: 16px; border-left: 4px solid var(--wood); border-radius: 0 16px 16px 0; background: rgba(255, 253, 248, 0.7); }
.delivery-boundary p { margin: 0; color: var(--muted); line-height: 1.6; }

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    min-height: calc(100vh - 124px);
    gap: clamp(38px, 7vw, 96px);
}

.auth-intro h1 {
    max-width: 720px;
    margin: 24px 0 20px;
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: clamp(2.7rem, 6.2vw, 5.7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.lead,
.page-heading p,
.helper { color: var(--muted); line-height: 1.75; }
.lead { max-width: 580px; font-size: 1.08rem; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--wood);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-on-light { margin-bottom: 60px; }
.material-swatch { display: flex; margin-top: 42px; gap: 10px; }

.material-swatch span {
    width: 54px;
    height: 12px;
    border-radius: 999px;
    background: var(--wood);
}

.material-swatch span:nth-child(2) { width: 80px; background: var(--sage); }
.material-swatch span:nth-child(3) { width: 34px; background: var(--clay); }
.auth-card { padding: clamp(28px, 4vw, 46px); }
.auth-card h2, .task-state h2 { margin: 0; font-size: 1.55rem; }
.stack-form { display: grid; margin-top: 30px; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 740; }
.field small { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

input,
select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
.upload-zone:focus-within {
    outline: 3px solid rgba(52, 92, 72, 0.28);
    outline-offset: 2px;
    border-color: var(--green);
}

.button-row, .task-actions, .pagination { display: flex; align-items: center; gap: 12px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
}

.button:disabled { cursor: wait; opacity: 0.62; }

.button-primary {
    color: white;
    background: var(--green);
    box-shadow: 0 10px 24px rgba(52, 92, 72, 0.20);
}

.button-primary:hover:not(:disabled) { background: var(--green-deep); }
.button-secondary { border-color: var(--line); color: var(--ink); background: var(--paper); }
.button-quiet { min-height: 40px; padding-inline: 12px; color: var(--muted); background: transparent; }
.button-wide { width: 100%; }

.cost-note {
    margin: -8px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
}

.inline-message {
    min-height: 1.5em;
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.5;
}

.inline-message[data-kind="error"] { color: var(--danger); }
.inline-message[data-kind="success"] { color: var(--green); }
.photo-status { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; }
.photo-status[data-kind="error"] { color: var(--danger); }
.upload-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-shell { display: grid; gap: 30px; }

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.page-heading h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.page-heading p { max-width: 680px; margin: 12px 0 0; }

.step-label,
.status-chip {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--green-deep);
    background: var(--sage);
    font-size: 0.82rem;
    font-weight: 780;
}

.create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    gap: 24px;
}

.upload-card, .options-card, .task-state, .recharge-state {
    padding: clamp(22px, 3vw, 34px);
}

.upload-zone {
    display: grid;
    min-height: 220px;
    padding: 34px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1.5px dashed #abb6ad;
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(223, 232, 220, 0.30);
    cursor: pointer;
}

.upload-zone strong { color: var(--ink); }

.upload-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: var(--green);
    font-size: 1.7rem;
}

.preview-frame { margin-top: 18px; }

.preview-frame img {
    width: 100%;
    max-height: 520px;
    border-radius: 18px;
    object-fit: contain;
    background: #e9e7e0;
}

.preview-frame p { margin: 10px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.options-card { display: grid; align-content: start; gap: 24px; }
.options-card > div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }

.sequence {
    display: grid;
    width: 30px;
    height: 30px;
    margin-top: 27px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-deep);
    background: var(--sage);
    font-weight: 800;
}

.compact-heading { align-items: center; }
.task-state, .recharge-state { display: flex; align-items: center; gap: 22px; }
.task-state p, .recharge-state p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }

.progress-orb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 7px solid var(--sage);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1.1s linear infinite;
}

.progress-orb[data-state="success"] { border: 0; background: var(--green); animation: none; }

.progress-orb[data-state="success"]::after {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: white;
    content: "✓";
    font-size: 1.5rem;
}

.progress-orb[data-state="failed"] { border: 0; background: #f2d9d5; animation: none; }

.progress-orb[data-state="failed"]::after {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--danger);
    content: "!";
    font-weight: 900;
}

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

.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.image-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.image-stage { display: grid; min-height: 360px; place-items: center; background: #e9e7e0; }
.image-stage img { width: 100%; height: 100%; max-height: 680px; object-fit: contain; }

.image-card figcaption {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    gap: 10px;
    font-weight: 700;
}

.image-card figcaption span {
    color: var(--wood);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.disclaimer {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 20px 22px;
    gap: 18px;
    border: 1px solid #dfc899;
    border-radius: 18px;
    background: #fff8e9;
}

.disclaimer strong { color: #795a28; }
.disclaimer p { margin: 0; color: #66563c; line-height: 1.7; }
.history-list { display: grid; gap: 12px; }

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
    align-items: center;
    width: 100%;
    min-height: 86px;
    padding: 18px 20px;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    text-align: left;
    background: var(--paper);
    box-shadow: 0 8px 25px rgba(50, 63, 54, 0.05);
    cursor: pointer;
}

.history-item:hover { border-color: #aebcaf; transform: translateY(-1px); }
.history-primary { display: grid; gap: 5px; }
.history-primary strong { font-size: 1rem; }
.history-secondary, .history-time { color: var(--muted); font-size: 0.88rem; }

.history-status {
    justify-self: end;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--green-deep);
    background: var(--sage);
    font-size: 0.78rem;
    font-weight: 800;
}

.history-status[data-status="FAILED"] { color: var(--danger); background: #f2d9d5; }

.empty-state {
    padding: 52px 24px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 253, 248, 0.72);
}

.pagination { justify-content: center; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.catalog-card {
    display: grid;
    align-content: start;
    padding: clamp(24px, 3vw, 34px);
    gap: 16px;
}

.catalog-card h2 { margin: 0; font-size: 1.35rem; }
.catalog-card p { min-height: 3em; margin: 0; color: var(--muted); line-height: 1.65; }
.catalog-card .button { justify-self: start; }
.catalog-meta { color: var(--wood); font-weight: 800; }

.availability-note {
    justify-self: start;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: #ece9e0;
    font-size: 0.88rem;
    font-weight: 750;
}

.credits-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    padding: clamp(26px, 4vw, 44px);
    gap: 16px;
}

.credits-summary span, .credits-summary small { color: var(--muted); font-weight: 700; }
.credits-summary strong {
    justify-self: end;
    color: var(--green-deep);
    font-family: "Songti SC", "STSong", Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 0.85;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 20px;
}

.section-heading h2 { margin: 0; }
.ledger-list { display: grid; gap: 10px; }
.ledger-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 18px 20px;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.ledger-identity { display: grid; gap: 5px; }
.ledger-identity small, .ledger-balance { color: var(--muted); }
.ledger-delta { min-width: 44px; text-align: right; font-size: 1.12rem; }
.ledger-delta[data-direction="credit"] { color: var(--green); }
.ledger-delta[data-direction="debit"] { color: var(--danger); }

.recharge-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.recharge-option {
    display: grid;
    padding: 28px;
    gap: 18px;
}

.recharge-option strong { font-size: 1.45rem; }
.recharge-option span { color: var(--wood); font-size: 1.1rem; font-weight: 800; }

.toast {
    position: fixed;
    z-index: 20;
    right: 20px;
    bottom: 20px;
    max-width: min(420px, calc(100% - 40px));
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    background: var(--green-deep);
    box-shadow: var(--shadow);
    line-height: 1.5;
}

.toast[data-kind="error"] { background: #74332e; }

@media (max-width: 820px) {
    #app { padding-top: 28px; }
    .home-hero, .auth-layout, .create-grid, .comparison, .recharge-options, .catalog-grid,
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    .home-hero { min-height: auto; }
    .room-composition { min-height: 420px; }
    .capability-grid { grid-template-columns: 1fr; }
    .auth-layout { min-height: auto; gap: 36px; }
    .auth-intro h1 { font-size: clamp(2.55rem, 12vw, 4.6rem); }
    .brand-on-light { margin-bottom: 42px; }
    .create-grid { gap: 18px; }
    .comparison { gap: 16px; }
    .image-stage { min-height: 260px; }
    .history-item { grid-template-columns: minmax(0, 1fr) auto; }
    .history-secondary, .history-time { grid-column: 1 / -1; }
    .ledger-item { grid-template-columns: minmax(0, 1fr) auto; }
    .ledger-balance { grid-column: 1; }
    .ledger-delta { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
    .header-inner { width: min(100% - 24px, 1120px); min-height: 64px; }
    .brand > span:last-child { display: none; }
    .brand-on-light > span:last-child { display: inline; }
    .product-nav { gap: 0; }
    .product-nav a, .button-quiet { padding-inline: 7px; font-size: 0.78rem; }
    .public-nav a:first-child { display: none; }
    .public-login { min-height: 38px; padding-inline: 10px !important; }
    #app { width: min(100% - 24px, 1120px); padding-bottom: 56px; }
    .home-view { gap: 46px; }
    .home-hero { gap: 32px; }
    .home-copy h1 { font-size: clamp(2.65rem, 13.4vw, 4rem); }
    .home-actions { align-items: stretch; flex-direction: column; }
    .home-actions .button { width: 100%; }
    .room-composition { min-height: 350px; border-radius: 34% 34% 22px 22px; }
    .capability-card { padding: 24px; }
    .home-delivery-strip { align-items: stretch; flex-direction: column; }
    .delivery-card { padding: 22px; border-radius: 20px; }
    .delivery-action { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
    .delivery-qr { width: 104px; height: 104px; }
    .delivery-metadata > div { grid-template-columns: 1fr; gap: 5px; }
    .delivery-boundary { grid-template-columns: 1fr; }
    .auth-card, .upload-card, .options-card, .task-state, .recharge-state {
        padding: 22px;
        border-radius: 20px;
    }
    .page-heading { align-items: start; flex-direction: column; gap: 16px; }
    .page-heading h1 { font-size: 2.45rem; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .upload-zone { min-height: 190px; padding: 24px 16px; }
    .task-state, .recharge-state { align-items: flex-start; }
    .image-stage { min-height: 220px; }
    .disclaimer { grid-template-columns: 1fr; gap: 8px; }
    .task-actions { align-items: stretch; flex-direction: column; }
    .history-item { padding: 16px; gap: 10px; }
    .pagination { justify-content: space-between; }
    .credits-summary { grid-template-columns: 1fr auto; }
    .credits-summary strong { grid-column: 1; grid-row: 2; justify-self: start; }
    .credits-summary small { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.designer-delivery-form { display: grid; gap: 18px; margin-block: 24px; }
.designer-delivery-form[hidden] { display: none; }
#designer-inputs { margin-block: 24px; }
#designer-source-image, #designer-local-preview, #designer-delivered-image {
    width: 100%; max-height: 600px; object-fit: contain;
}
@media (max-width: 560px) { .product-nav { flex-wrap: wrap; justify-content: flex-end; } }
