:root {
    --p: #9c27b0;
    --pd: #7b1fa2;
    --ink: #0f172a;
    --mut: #64748b;
    --line: #e2e8f0;
    --bg: #f6f7f9;
    --blue: #1e40af;
    --amber: #b45309;
    --blue-bg: #eff4ff;
    --amber-bg: #fff7ea;
    --p-bg: #faf0fc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset,
legend {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

fieldset {
    border: 0;
    min-width: 0;
}

a {
    color: var(--blue);
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 50;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}

.skip:focus {
    top: 8px;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.ic {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
}

.top-in {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.2px;
    min-height: 36px;
}

.brand-tag {
    display: inline-block;
    padding: 2px 9px;
    background: var(--p);
    color: #fff;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--p), 0 2px 5px rgba(15, 23, 42, 0.25);
    transform: rotate(-4deg);
    font-size: 15px;
    letter-spacing: 1px;
}

.pill {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--mut);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.upd-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 0;
    background: var(--pd);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.upd-bar:hover,
.upd-bar:active {
    background: #6a1b9a;
}

.upd-bar:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: -3px;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 14px 12px 48px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.card > h2,
.card > h1 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card > h1 {
    font-size: 22px;
    letter-spacing: -0.3px;
}

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 2px solid var(--blue);
    border-radius: 14px;
    background: var(--blue-bg);
    color: var(--ink);
    font-weight: 600;
}

.notice .ic {
    color: var(--blue);
    margin-top: 1px;
}

.box-ink {
    border: 2px solid var(--ink);
}

.box-blue {
    border: 2px solid var(--blue);
    background: var(--blue-bg);
}

.box-amber {
    border: 2px dashed var(--amber);
    background: var(--amber-bg);
    border-radius: 14px;
    padding: 14px;
}

.card.box-amber {
    border-radius: 16px;
    padding: 16px;
}

.box-amber-soft {
    border-left: 4px solid var(--amber);
    background: var(--amber-bg);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    color: var(--ink);
}

.box-amber p,
.box-blue p,
.box-ink p {
    margin-bottom: 12px;
}

.box-amber p:last-child,
.box-blue p:last-child,
.box-ink p:last-child {
    margin-bottom: 0;
}

.msg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.msg-head h2,
.msg-head h3 {
    font-size: 17px;
    font-weight: 800;
}

.msg-head .ic {
    width: 26px;
    height: 26px;
}

.box-amber .msg-head .ic {
    color: var(--amber);
}

.box-blue .msg-head .ic {
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    padding: 4px;
}

.card {
    scroll-margin-top: 72px;
}

body.embed .card {
    scroll-margin-top: 12px;
}

.card.intro {
    padding: 14px 16px 2px;
}

.card.intro > h1 {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.intro-price {
    color: var(--pd);
}

.intro-size {
    font-weight: 700;
}

.more {
    margin-top: 10px;
    border-top: 1px solid var(--line);
}

.more > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    color: var(--blue);
    font-size: 14.5px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}

.more > summary::-webkit-details-marker {
    display: none;
}

.more > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -3px 0 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.more[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.more-body {
    display: grid;
    gap: 10px;
    padding: 0 0 14px;
    color: #334155;
    font-size: 14px;
}

#moreDpi {
    color: var(--ink);
    font-weight: 600;
}

.more-types strong {
    color: var(--ink);
}

.tips,
.press-mini {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 14px;
}

.tips li,
.press-mini li {
    position: relative;
    padding-left: 18px;
}

.tips li::before,
.press-mini li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--p);
    transform: rotate(45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-p {
    background: var(--p);
    border-color: var(--p);
    color: #fff;
}

.btn-p:hover:not(:disabled),
.btn-p:active:not(:disabled) {
    background: var(--pd);
    border-color: var(--pd);
}

.btn-o {
    background: #fff;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-o:hover:not(:disabled) {
    background: var(--bg);
}

.btn-soft {
    background: var(--p-bg);
    border-color: var(--p);
    color: var(--pd);
}

.btn-soft:hover:not(:disabled) {
    background: #f3e0f8;
}

.btn-t {
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.btn-wide {
    width: 100%;
}

.pin-change {
    margin-left: 8px;
    padding: 2px 2px;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.btn-sm {
    font-size: 14.5px;
    padding: 8px 14px;
}

.btn-pay {
    min-height: 54px;
    font-size: 18px;
    margin-top: 14px;
}

.btn-x {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 14px;
    font-weight: 600;
    gap: 3px;
    padding: 4px 6px;
    margin: -4px -6px -4px 0;
    white-space: nowrap;
}

.btn-x .ic {
    width: 16px;
    height: 16px;
}

.stack {
    display: grid;
    gap: 10px;
}

.hint {
    color: var(--mut);
    font-size: 13.5px;
    margin-top: 8px;
}

.center {
    text-align: center;
}

.rows {
    display: grid;
    gap: 10px;
}

.rows:not(:empty) {
    margin-bottom: 12px;
}

.row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.row .thumb {
    width: 48px;
    height: 82px;
    min-height: 0;
    border: 0;
    border-radius: 6px;
    background: #f1f5f9;
}

.row .thumb img {
    max-width: 100%;
    max-height: 100%;
    outline: 1px solid #94a3b8;
    outline-offset: -1px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.row .thumb .ic {
    width: 22px;
    height: 22px;
}

.rhead {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.rhead .fname {
    flex: 1 1 auto;
    min-width: 0;
}

.row .fsize {
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
}

.row .ptext {
    font-size: 13px;
}

.row progress {
    margin-top: 8px;
}

.rctl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: 8px;
}

.copies {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copies-lab {
    font-size: 13.5px;
    font-weight: 700;
}

.lprice {
    margin-left: auto;
    font-size: 15.5px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.15s;
}

.lprice.busy {
    opacity: 0.45;
}

.rbg {
    margin: 6px 0 0;
    color: var(--mut);
    font-size: 13px;
    line-height: 1.35;
}

.notebox {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.notebox .field {
    margin-bottom: 10px;
}

.noterow {
    position: relative;
}

.noterow.with-mic input {
    padding-right: 58px;
}

.voiceslot {
    position: absolute;
    top: 50%;
    right: 4px;
    display: flex;
    transform: translateY(-50%);
}

.voiceslot:empty {
    display: none;
}

.mic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid var(--p);
    border-radius: 50%;
    background: var(--p-bg);
    color: var(--pd);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mic-btn:hover {
    background: #f3e0f8;
}

.mic-btn:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 2px;
}

.mic-btn .ic {
    width: 20px;
    height: 20px;
}

.req {
    margin-left: 3px;
    color: #dc2626;
    font-weight: 800;
}

.more-types {
    display: grid;
    gap: 6px;
}

.voicebox .vrow {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.voicebox .vrow .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.voicebox .vplay {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
}

.voicebox .vtime {
    flex: 1 1 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.voicebox progress {
    flex: 0 0 72px;
}

.voicebox .vdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc2626;
    animation: vblink 1s steps(2, start) infinite;
}

@keyframes vblink {
    to {
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voicebox .vdot {
        animation: none;
    }
}

.nhint {
    margin: 8px 0 0;
}

.row[data-status="rejected"],
.row[data-status="failed"] {
    border: 2px solid var(--ink);
}

.thumb {
    width: 64px;
    min-height: 109px;
    align-self: start;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
}

.thumb img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 164px;
    object-fit: contain;
}

.thumb .ic {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 6px;
}

.info {
    min-width: 0;
}

.extra {
    grid-column: 1 / -1;
    min-width: 0;
}

.row .extra > * {
    margin-top: 10px;
}

.fname {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsize {
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

progress {
    display: block;
    width: 100%;
    height: 12px;
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
    color: var(--blue);
    accent-color: var(--blue);
    -webkit-appearance: none;
    appearance: none;
}

progress::-webkit-progress-bar {
    background: var(--line);
    border-radius: 999px;
}

progress::-webkit-progress-value {
    background: var(--blue);
    border-radius: 999px;
}

progress::-moz-progress-bar {
    background: var(--blue);
    border-radius: 999px;
}

progress:indeterminate {
    background: repeating-linear-gradient(135deg, var(--blue) 0 10px, #93b0f5 10px 20px);
    background-size: 200% 100%;
    animation: slide 1.2s linear infinite;
}

progress:indeterminate::-webkit-progress-bar {
    background: transparent;
}

progress:indeterminate::-moz-progress-bar {
    background: transparent;
}

@keyframes slide {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -56px 0;
    }
}

.ptext {
    margin-top: 5px;
    font-size: 13.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.chip .ic {
    width: 18px;
    height: 18px;
}

.msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.msg .ic {
    margin-top: 1px;
    width: 18px;
    height: 18px;
}

.msg-warn {
    background: var(--amber-bg);
    border: 1px dashed var(--amber);
}

.msg-warn .ic {
    color: var(--amber);
}

.msg-bad {
    background: #f1f5f9;
    border: 0;
    font-weight: 600;
}

.ract {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.copies-fixed {
    font-weight: 700;
}

.stepper {
    display: inline-flex;
    align-items: stretch;
}

.st-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
}

.st-btn:first-child {
    border-radius: 12px 0 0 12px;
}

.st-btn:last-child {
    border-radius: 0 12px 12px 0;
}

.copies-in {
    width: 62px;
    min-height: 40px;
    border: 2px solid var(--ink);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    text-align: center;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    -moz-appearance: textfield;
    appearance: textfield;
}

.copies-in::-webkit-outer-spin-button,
.copies-in::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.copies-in:focus-visible {
    position: relative;
    z-index: 1;
}

.copies-note {
    margin-top: 6px;
    padding-left: 8px;
    border-left: 3px solid var(--ink);
    font-size: 13.5px;
    font-weight: 700;
}

.dtypes {
    margin-bottom: 14px;
}

.dt-legend {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 14px;
}

.dt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    background: var(--blue-bg);
    border: 1px solid #c7d6fb;
    border-radius: 14px;
}

.dt-grid.dt-one {
    grid-template-columns: minmax(0, 1fr);
}

.dt-cell {
    position: relative;
    min-width: 0;
}

.dt-in {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.dt-tile {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    min-height: 50px;
    padding: 6px 8px 6px 9px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 11px;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.dt-tile:hover {
    border-color: #64748b;
}

.dt-ic {
    display: flex;
    flex: 0 0 22px;
    color: #475569;
}

.dt-ic .ic {
    width: 22px;
    height: 22px;
}

.dt-tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.dt-nm {
    font-size: 13.5px;
    font-weight: 700;
}

.dt-ht {
    margin-top: 1px;
    color: var(--mut);
    font-size: 11.5px;
    font-weight: 500;
}

.dt-chip {
    position: absolute;
    top: -5px;
    right: -4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

.dt-chip .ic {
    width: 12px;
    height: 12px;
}

.dt-in:checked + .dt-tile {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.dt-in:checked + .dt-tile .dt-ic {
    color: #fff;
}

.dt-in:checked + .dt-tile .dt-ht {
    color: #cbd5e1;
}

.dt-in:checked + .dt-tile .dt-chip {
    display: flex;
}

.dt-in:focus-visible + .dt-tile {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.dt-in:disabled + .dt-tile {
    cursor: not-allowed;
    border-style: dashed;
    background: #f8fafc;
}

.dt-soon .dt-ic,
.dt-soon .dt-nm {
    color: #94a3b8;
}

.dt-soon .dt-ht {
    color: #64748b;
    font-style: italic;
}

.dt-in:disabled + .dt-no {
    border-color: var(--amber);
    background: var(--amber-bg);
}

.dt-no .dt-nm {
    color: #475569;
}

.dt-no .dt-ht {
    color: var(--ink);
    font-weight: 700;
}

fieldset:disabled .dt-in:checked + .dt-tile {
    background: #475569;
    border-color: #475569;
    border-style: solid;
}

.dt-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

.dt-note .ic {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--amber);
}

.pickup {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background: var(--blue-bg);
}

.pickup-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mut);
}

.pickup-head .ic {
    width: 18px;
    height: 18px;
    color: var(--blue);
}

.pickup-text {
    white-space: pre-line;
    font-weight: 700;
}

.pickup .hint {
    margin-top: 6px;
}

.pickup-acts {
    margin-top: 8px;
}

.party {
    margin-bottom: 16px;
    padding: 12px 14px 2px;
    border: 2px solid var(--blue);
    border-radius: 12px;
    background: var(--blue-bg);
}

.party-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.party-head .ic {
    width: 18px;
    height: 18px;
    color: var(--blue);
}

.party-note {
    margin-bottom: 12px;
}

.party .field input,
.party .field select {
    background: #fff;
}

.party-to {
    margin-bottom: 12px;
    padding-top: 2px;
}

.party-to .hint {
    margin-top: 2px;
}

.bloc {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.bloc-head {
    margin-bottom: 10px;
    font-weight: 700;
}

.bloc-saved {
    padding-left: 10px;
    border-left: 3px solid var(--blue);
}

.bloc-ok {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--blue);
}

.bloc-ok .ic {
    width: 18px;
    height: 18px;
}

.bloc-point {
    margin-top: 2px;
    font-size: 13.5px;
    color: var(--mut);
}

.bloc-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 0;
}

.bloc-place {
    margin-top: 4px;
    font-weight: 600;
}

.bloc-or {
    margin: 10px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--mut);
}

.bloc .field {
    margin-bottom: 10px;
}

.bloc .hint {
    margin-bottom: 10px;
}

.msheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--ink);
}

.msheet::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.msheet-in {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 10px 12px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.msheet-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.msheet-title {
    flex: 1;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.msheet-x {
    flex: none;
}

.mfind {
    position: relative;
    z-index: 5;
}

.msheet-find {
    display: flex;
    gap: 8px;
}

.msheet-find input {
    flex: 1;
    min-width: 0;
}

.msheet-find-btn {
    flex: none;
}

.mres {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 34vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.mres li + li {
    border-top: 1px solid var(--line);
}

.mres button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mres button:hover,
.mres button:focus-visible,
.mres button.on {
    background: var(--p-bg);
}

.mres button.on {
    box-shadow: inset 4px 0 0 var(--p);
}

.mres-name {
    display: block;
    font-weight: 700;
}

.mres-sub {
    display: block;
    overflow: hidden;
    font-size: 13px;
    color: var(--mut);
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 700px) {
    .mres {
        max-height: 50vh;
    }
}

.mmsg {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--mut);
}

.mmsg-warn {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--amber-bg);
    color: var(--amber);
    font-weight: 600;
}

.mcanvas {
    isolation: isolate;
    flex: 1;
    min-height: 180px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
}

.leaflet-container {
    font: inherit;
    background: var(--bg);
}

.leaflet-container a {
    color: var(--blue);
}

.msheet-foot {
    flex: none;
    padding-top: 10px;
}

.mplace {
    margin-top: 8px;
    font-weight: 700;
}

.mpoint {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--mut);
}

.mfar {
    color: var(--amber);
    font-weight: 700;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.opt {
    font-weight: 500;
    color: var(--mut);
}

.field input,
.field select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1.5px solid #94a3b8;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    text-overflow: ellipsis;
}

.field input.bad,
.field select.bad {
    border: 2.5px solid var(--ink);
    background-color: var(--amber-bg);
}

fieldset:disabled input,
fieldset:disabled select {
    background-color: #f1f5f9;
    color: #475569;
    border-style: dashed;
}

.err {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
}

.err .ic {
    width: 18px;
    height: 18px;
    color: var(--amber);
    margin-top: 1px;
}

.err-big {
    margin-top: 12px;
    padding: 10px 12px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--amber-bg);
}

.two {
    display: grid;
    gap: 0;
}

.sum {
    display: grid;
    gap: 8px;
    transition: opacity 0.15s;
}

.sum.busy {
    opacity: 0.45;
}

.sum-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-variant-numeric: tabular-nums;
}

.sum-line > span:last-child {
    font-weight: 700;
    white-space: nowrap;
}

.sum-line small {
    display: block;
    color: var(--mut);
    font-size: 12.5px;
    font-weight: 500;
}

.sum-wait > span:last-child {
    color: var(--mut);
}

.sum-total {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 19px;
    font-weight: 800;
}

.sum-total > span:last-child {
    font-weight: 800;
}

#pendingBox {
    margin-top: 14px;
}

#pendingBox .hint {
    margin-top: 10px;
    margin-bottom: 0;
}

#resumeNote .btn {
    margin-top: 10px;
}

.sum-note {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.card .box-amber.sum-note {
    padding: 10px 12px;
    border-radius: 12px;
}

.sum-note p {
    margin-bottom: 6px;
}

.sum-note-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.sum-note-head .ic {
    width: 18px;
    height: 18px;
}

.box-amber .sum-note-head .ic {
    color: var(--amber);
}

.sum-note .btn {
    margin-top: 2px;
}

.shipc progress {
    margin-top: 4px;
}

.ship-list {
    display: grid;
    gap: 10px;
}

.ship-opt {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
    min-height: 60px;
    padding: 10px 12px;
    border: 1.5px solid #94a3b8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.ship-opt.on {
    border: 2.5px solid var(--ink);
    background: var(--blue-bg);
}

.ship-opt input {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--blue);
}

.ship-name {
    font-weight: 800;
}

.ship-price {
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ship-days {
    grid-column: 2 / span 2;
    color: var(--mut);
    font-size: 13px;
}

body.embed .top,
body.embed .skip {
    display: none;
}

body.embed .upd-bar {
    position: sticky;
    top: 0;
    z-index: 25;
}

.paybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.12);
}

.paybar-in {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.paybar-text {
    min-width: 0;
    line-height: 1.25;
}

.paybar-label {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.paybar-total {
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.paybar-why {
    font-size: 14px;
    font-weight: 700;
}

.paybar-btn {
    flex: 0 0 auto;
    min-width: 104px;
    padding: 8px 18px;
}

@media (min-width: 641px) {
    body > .paybar {
        display: none !important;
    }
}

@media (max-width: 640px) {
    body.with-bar main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 419px) {
    .copies-lab {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}

.mine {
    display: grid;
    gap: 8px;
}

.mine-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
}

.mine-link:hover {
    background: var(--bg);
}

.mine-no {
    font-weight: 800;
}

.mine-meta {
    grid-column: 1;
    color: var(--mut);
    font-size: 13px;
}

.mine-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mine-foot {
    margin: 10px 0 0;
    text-align: center;
}

.pop {
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.pop::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.pop-fallback {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 15vh;
    z-index: 60;
    margin: 0 auto;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.6);
}

.pop-in {
    padding: 22px 18px 14px;
    text-align: center;
}

.pop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--amber-bg);
    color: var(--ink);
}

.pop-icon .ic {
    width: 30px;
    height: 30px;
}

.pop h2 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 10px;
}

#popBody p {
    margin-bottom: 10px;
}

.nw {
    white-space: nowrap;
}

.pop-small {
    color: var(--mut);
    font-size: 13.5px;
}

.pop-btns {
    display: grid;
    gap: 4px;
    margin-top: 16px;
}

.hero {
    text-align: center;
    padding: 22px 16px;
}

.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
}

.hero-icon.hollow {
    background: #fff;
    color: var(--ink);
    border: 3px solid var(--ink);
}

.hero-icon.amber {
    background: var(--amber-bg);
    color: var(--amber);
    border: 3px dashed var(--amber);
}

.hero-icon .ic {
    width: 34px;
    height: 34px;
}

.hero h1 {
    display: block;
    text-align: center;
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.hero-no {
    display: inline-block;
    margin: 10px 0 8px;
    padding: 5px 14px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.hero p {
    color: #334155;
}

.hero .btn {
    margin-top: 14px;
}

.steps {
    display: grid;
    gap: 0;
}

.steps li {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding-bottom: 18px;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 0;
    border-left: 3px dotted #94a3b8;
}

.steps li.done::before {
    border-left: 3px solid var(--blue);
}

.steps li:last-child::before {
    display: none;
}

.dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
    color: var(--mut);
}

.dot .ic {
    width: 19px;
    height: 19px;
}

.steps li.done .dot {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.steps li.now .dot {
    box-shadow: 0 0 0 4px #c7d6fb;
}

.st-name {
    font-weight: 700;
    color: var(--mut);
    padding-top: 7px;
    line-height: 1.25;
}

.steps li.done .st-name {
    color: var(--ink);
}

.steps li.now .st-name {
    font-weight: 800;
    font-size: 16px;
}

.st-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    vertical-align: 2px;
}

.st-when {
    color: var(--mut);
    font-size: 13px;
    font-weight: 500;
    display: block;
}

.st-sub {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ship {
    display: grid;
    gap: 10px;
}

.kv {
    display: grid;
    gap: 2px;
}

.kv dt {
    color: var(--mut);
    font-size: 13px;
    font-weight: 600;
}

.kv dd {
    margin: 0;
    font-weight: 700;
}

dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

#shipBox dl {
    margin-bottom: 14px;
}

.awb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.awb-no {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.drop-track {
    display: grid;
    gap: 10px;
}

.drop-track-head {
    font-weight: 700;
}

.drop-track-url {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.drop-never {
    margin-top: 4px;
}

.ofiles {
    display: grid;
    gap: 10px;
}

.ofile {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.ofile .thumb {
    width: 48px;
    min-height: 82px;
}

.ofile .thumb img {
    max-height: 150px;
}

.ofile .pk-pic {
    display: block;
    width: 48px;
    height: auto;
}

.ofile-size {
    color: var(--mut);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.ofile-copies {
    font-weight: 800;
    white-space: nowrap;
    padding: 3px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
}

.otot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.otot .hint {
    margin-top: 0;
}

.otot .inv {
    margin-top: 14px;
}

.otot .inv .hint {
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.gstf {
    margin-top: 6px;
}

#f_gstin {
    text-transform: uppercase;
}

.foot {
    text-align: center;
    color: var(--mut);
    font-size: 13px;
    margin-top: 6px;
}

.foot .btn {
    margin-bottom: 10px;
}

.test-banner {
    padding: 14px;
    margin-bottom: 14px;
    border: 3px dashed var(--amber);
    border-radius: 14px;
    background: repeating-linear-gradient(135deg, #fff7ea 0 14px, #fde6bf 14px 28px);
    color: var(--ink);
    text-align: center;
    font-weight: 800;
}

.test-banner strong {
    display: block;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--amber);
}

.amount {
    text-align: center;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

.amount-for {
    text-align: center;
    color: var(--mut);
    margin-bottom: 18px;
}

@media (min-width: 560px) {
    main {
        padding: 22px 16px 64px;
    }

    .card {
        padding: 22px;
    }

    .two {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .dt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dt-grid.dt-one {
        grid-template-columns: minmax(0, 1fr);
    }

    .row {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 14px;
        padding: 12px;
    }

    .row .thumb {
        width: 56px;
        height: 96px;
    }

    .card.intro {
        padding: 18px 22px 4px;
    }

    .pop-in {
        padding: 28px 26px 18px;
    }

    .stack.pair {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    progress:indeterminate {
        animation: none;
    }

    .sum {
        transition: none;
    }
}
.boot-note{margin:12px 0;padding:12px 14px;border:1px dashed var(--amber,#b45309);border-radius:12px;background:#fffbeb;color:#0f172a;font-size:15px;line-height:1.45;visibility:hidden;animation:bootNoteShow 0s linear 4s forwards}
.boot-note a{color:#1e40af;font-weight:700}
body.ready .boot-note{display:none}
@keyframes bootNoteShow{to{visibility:visible}}

.test-banner{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:#111;color:#ffd400;font:700 13px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:center}

.legal {
    max-width: 600px;
    margin: -32px auto 0;
    padding: 0 16px 28px;
    color: var(--mut);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.legal a {
    color: var(--mut);
    text-decoration: underline;
}

.legal-links {
    margin-top: 8px;
    font-size: 13px;
}

.legal-links a {
    display: inline-block;
    padding: 4px 0;
}

.top-link {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
}

.top-link:hover,
.top-link:focus-visible {
    text-decoration: underline;
}

.doc-card > h1 {
    margin-bottom: 4px;
}

.doc-card h2 {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    margin: 18px 0 6px;
}

.doc-card p {
    margin: 0 0 8px;
}

.doc-card a {
    color: var(--blue);
    font-weight: 600;
}

.doc-date {
    color: var(--mut);
    font-size: 13px;
}

.doc-lead {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--blue-bg);
    border: 1px solid #c7d6fb;
    font-weight: 600;
}

.doc-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 8px;
}

.doc-list li {
    margin: 4px 0;
}

.doc-table-wrap {
    overflow-x: auto;
    margin: 8px 0 10px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.doc-table th,
.doc-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.doc-table th {
    font-weight: 700;
    color: var(--mut);
    font-size: 13px;
}

.doc-table td + td,
.doc-table th + th {
    text-align: right;
    white-space: nowrap;
}

.doc-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0;
}

.doc-facts dt {
    color: var(--mut);
}

.doc-facts dd {
    margin: 0;
    font-weight: 600;
}

.doc-back {
    text-align: center;
    margin: 4px 0 16px;
}

.pay-terms {
    margin: 8px 0 12px;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.45;
}

.pay-terms a {
    color: var(--blue);
    font-weight: 700;
}

.more-press {
    display: grid;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.more-press-head {
    color: var(--ink);
    font-weight: 800;
}

.more-press-link a,
.press-more a {
    color: var(--blue);
    font-weight: 700;
}

.press-steps {
    list-style: decimal;
}

.press-box .doc-table-wrap {
    margin-top: 0;
}

.press-box .press-steps {
    padding-left: 20px;
    margin: 0 0 8px;
}

.press-box .press-steps li {
    margin: 4px 0;
}

.trk {
    margin: 14px 0 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.trk-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--blue);
}

.trk-head.ok {
    color: #166534;
}

.trk-head .ic {
    width: 22px;
    height: 22px;
    flex: none;
}

.trk-meta,
.trk-eta {
    margin: 4px 0 0;
    color: var(--mut);
}

.trk-eta b {
    color: var(--ink);
}

.trk-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin: 14px 0 6px;
    padding: 0;
    list-style: none;
}

.trk-bar li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.trk-bar li::before {
    content: "";
    position: absolute;
    top: 11px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #cbd5e1;
    z-index: 0;
}

.trk-bar li:first-child::before {
    display: none;
}

.trk-bar li.done::before {
    background: var(--blue);
}

.trk-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
    color: #fff;
}

.trk-dot .ic {
    width: 14px;
    height: 14px;
}

.trk-bar li.done .trk-dot {
    background: var(--blue);
    border-color: var(--blue);
}

.trk-bar li.now .trk-dot {
    box-shadow: 0 0 0 4px #c7d6fb;
}

.trk-name {
    font-size: 11px;
    line-height: 1.2;
    color: var(--mut);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.trk-bar li.done .trk-name {
    color: var(--ink);
    font-weight: 700;
}

.trk-list {
    margin: 12px 0 4px;
    padding: 0 0 0 4px;
    list-style: none;
}

.trk-list li {
    position: relative;
    padding: 0 0 14px 20px;
    border-left: 2px solid var(--line);
}

.trk-list li:last-child {
    padding-bottom: 2px;
}

.trk-list li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.trk-list li.top::before {
    background: var(--blue);
    box-shadow: 0 0 0 3px #c7d6fb;
}

.trk-list p {
    margin: 0;
}

.trk-what {
    font-weight: 700;
}

.trk-tag {
    font-size: 12.5px;
    color: var(--mut);
}

.trk-where {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ink);
}

.trk-where .ic {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--mut);
}

.trk-when {
    font-size: 12.5px;
    color: var(--mut);
}

.trk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--mut);
}

.mine-card {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.mine-card .mine-link {
    border: 0;
}

.mine-st {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blue-bg);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mine-st.ok {
    background: #dcfce7;
    color: #166534;
}

.mine-act {
    display: flex;
    gap: 8px;
    padding: 0 12px 10px;
}

.hero-bill {
    margin: 14px 0 0;
}

.thumb-btn {
    position: relative;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.thumb-btn:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 2px;
}

.thumb-zoom {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
    color: var(--ink);
    pointer-events: none;
}

.thumb .thumb-zoom .ic {
    width: 13px;
    height: 13px;
    background: none;
    border-radius: 0;
}

.pv {
    width: calc(100% - 24px);
    max-width: 640px;
    max-height: calc(100% - 24px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.pv::backdrop {
    background: rgba(15, 23, 42, 0.7);
}

.pv-fallback {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    z-index: 70;
    margin: 0 auto;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.7);
}

.pv-in {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px 16px 18px;
}

.pv-x {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pv-x:hover {
    background: var(--line);
}

.pv-x:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 2px;
}

.pv-x .ic {
    width: 22px;
    height: 22px;
}

.pv-name {
    min-height: 36px;
    margin: 0 52px 6px 0;
    padding-top: 10px;
    color: var(--mut);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-head {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-height: 36px;
    margin: 0 52px 6px 0;
    padding-top: 6px;
}

.pv-title {
    display: flex;
    flex: 1 1 160px;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pv-head .pv-name {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.pv-count {
    flex: 0 0 auto;
    color: var(--mut);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pv-nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--p);
    border-radius: 50%;
    background: var(--p-bg);
    color: var(--pd);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pv-nav[hidden] {
    display: none;
}

.pv-nav:hover:not(:disabled) {
    background: #f3e0f8;
}

.pv-nav:disabled {
    border-color: var(--line);
    background: #fff;
    color: #cbd5e1;
    cursor: default;
}

.pv-nav:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 2px;
}

.pv-nav .ic {
    width: 20px;
    height: 20px;
}

.pv-next .ic {
    transform: rotate(180deg);
}

.pv-modes {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1.5px solid var(--p);
    border-radius: 999px;
}

.pv-modes[hidden] {
    display: none;
}

.pv-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 13px;
    border: 0;
    background: #fff;
    color: var(--pd);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pv-mode[aria-pressed="true"] {
    background: var(--p);
    color: #fff;
}

.pv-mode .ic {
    width: 14px;
    height: 14px;
}

.pv-mode:focus-visible {
    outline: 3px solid var(--pd);
    outline-offset: -3px;
}

.pv-pic.pv-can-zoom {
    cursor: zoom-in;
}

.pv-zoom .pv-dw {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    box-shadow: -40px 0 0 #fff;
}

.pv-zoom .pv-dh span {
    position: sticky;
    top: 50%;
    right: auto;
    display: block;
    width: 16px;
    margin-left: 14px;
    padding: 5px 0;
    line-height: 16px;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.pv-wait {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(240px, calc(100% - 110px));
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.16);
    transform: translate(-50%, -50%);
}

.pv-busy .pv-wait,
.pv-failed .pv-wait {
    display: flex;
}

.pv-busy .pv-wait {
    opacity: 0;
    animation: pv-wait-in 0.15s ease-out 0.12s forwards;
}

.pv-spin {
    width: 34px;
    height: 34px;
    border: 4px solid #ead7f3;
    border-top-color: var(--p);
    border-radius: 50%;
    animation: pv-spin 0.8s linear infinite;
}

.pv-failed .pv-spin {
    display: none;
}

@keyframes pv-wait-in {
    to {
        opacity: 1;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .pv-spin {
        animation-duration: 2.4s;
    }
}

.pv-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pv-fig {
    display: grid;
    grid-template-columns: 34px var(--pw, 240px);
    grid-template-rows: 30px var(--ph, 320px);
    margin: 0 auto;
}

.pv-fig.pv-short {
    grid-template-columns: 76px var(--pw, 240px);
}

.pv-dim {
    position: relative;
    color: var(--mut);
}

.pv-dim span {
    position: absolute;
    z-index: 1;
    padding: 0 6px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pv-dw {
    grid-column: 2;
    grid-row: 1;
}

.pv-dw::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 12px;
    border-left: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.pv-dw::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    border-top: 1.5px solid currentColor;
}

.pv-dw span {
    left: 50%;
    top: 16px;
    transform: translate(-50%, -50%);
}

.pv-dh {
    grid-column: 1;
    grid-row: 2;
}

.pv-dh::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 6px;
    width: 12px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.pv-dh::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    border-left: 1.5px solid currentColor;
}

.pv-dh span {
    right: 12px;
    top: var(--hy, 50%);
    transform: translate(50%, -50%) rotate(-90deg);
}

.pv-short .pv-dh span {
    right: 22px;
    top: 50%;
    padding: 0 2px 0 0;
    transform: translateY(-50%);
}

.pv-pic {
    grid-column: 2;
    grid-row: 2;
    width: var(--pw, 240px);
    height: var(--ph, 320px);
    outline: 1px solid #94a3b8;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
}

.pv-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.pick-hint {
    margin: 6px 4px 0;
    color: var(--mut);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

#designPicker {
    margin-top: 12px;
}

.packbox {
    margin: 14px 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.pack-title {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 800;
}

.pack-fig {
    --pc: 34px;
    --cw: 236px;
    margin: 0 0 10px;
}

.pack-cap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 8px;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pack-cap span:first-child {
    white-space: nowrap;
}

.pack-price {
    font-weight: 800;
    white-space: nowrap;
}

.pack-dw {
    width: var(--cw);
    height: 30px;
    margin-left: var(--pc);
}

.pack-fig .pv-dim span {
    background: var(--bg);
}

.pack-frame {
    position: relative;
}

.pack-view {
    display: block;
    width: 100%;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.pack-grid {
    display: grid;
    grid-template-columns: var(--pc) var(--cw);
}

.pack-dh {
    grid-column: 1;
    grid-row: 1;
}

.pack-dh .pack-hl {
    position: sticky;
    top: 50%;
    display: block;
    width: 16px;
    margin-left: calc(var(--pc) - 20px);
    padding: 5px 0;
    line-height: 16px;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.pack-short .pack-dh .pack-hl {
    position: absolute;
    top: 50%;
    right: 20px;
    width: auto;
    margin: 0;
    padding: 0 2px 0 0;
    line-height: 1;
    writing-mode: horizontal-tb;
    transform: translateY(-50%);
}

.pack-canvas {
    display: block;
    outline: 1px solid #94a3b8;
    outline-offset: -1px;
}

.pack-more {
    display: none;
    position: absolute;
    left: var(--pc);
    bottom: 0;
    width: var(--cw);
    height: 72px;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 70%);
    pointer-events: none;
    transition: opacity 0.2s;
}

.pack-scrolls .pack-more {
    display: flex;
}

.pack-scrolls.pack-end .pack-more {
    opacity: 0;
}

.pack-more-in {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pack-down {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg);
}

.pm-short,
.pm-open,
.pack-zoom,
.pack-narrow .pm-long {
    display: none;
}

.pack-narrow .pm-short {
    display: inline;
}

.pack-hint {
    margin: 2px 0 0;
    font-size: 12.5px;
}

.dctl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.dctl .copies {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dctl .st-btn {
    width: 38px;
}

.dctl .copies-in {
    width: 54px;
}

.row.is-design .thumb {
    height: 64px;
}

.row.is-design .copies-lab {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
}

.dnote {
    margin-top: 2px;
    color: var(--mut);
    font-size: 13px;
    font-weight: 600;
}

.dmoved {
    margin: 6px 0 0;
    font-size: 13px;
}

.row.row-new {
    animation: row-new 1.8s ease-out 1;
}

@keyframes row-new {
    0% {
        background: var(--p-bg);
        box-shadow: 0 0 0 3px var(--p);
    }
    70% {
        background: var(--p-bg);
        box-shadow: 0 0 0 3px var(--p);
    }
    100% {
        background: #fff;
        box-shadow: 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .row.row-new {
        animation: none;
        box-shadow: 0 0 0 3px var(--p);
    }
}

.side[hidden] {
    display: none;
}

@media (min-width: 1024px) {
    main,
    .top-in {
        max-width: 1120px;
    }

    #main > .card,
    #main > .notice {
        margin-right: 424px;
    }

    #orderForm.two {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 400px;
        column-gap: 24px;
        align-items: start;
    }

    #orderForm.two > section {
        grid-column: 1;
    }

    #orderForm.two > .side {
        grid-column: 2;
        grid-row: 1 / span 20;
        position: sticky;
        top: 76px;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 4px;
    }

    #orderForm.two > .side::-webkit-scrollbar {
        width: 12px;
    }

    #orderForm.two > .side::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #e2e8f0;
    }

    #orderForm.two > .side::-webkit-scrollbar-thumb {
        min-height: 48px;
        border: 3px solid #e2e8f0;
        border-radius: 999px;
        background: #64748b;
    }

    #orderForm.two > .side::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }

    @supports not selector(::-webkit-scrollbar) {
        #orderForm.two > .side {
            scrollbar-color: #64748b #e2e8f0;
        }
    }

    .side .paybar {
        position: sticky;
        left: auto;
        right: auto;
        bottom: 0;
        z-index: 3;
        margin-top: 12px;
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.16);
    }

    .side .paybar-in {
        max-width: none;
    }

    .side .pack-view {
        max-height: 300px;
        overflow: hidden;
        overscroll-behavior: auto;
    }

    .side .pack-more .pack-down,
    .side .pack-more .pm-long,
    .side .pack-more .pm-short {
        display: none;
    }

    .side .pack-more .pack-zoom {
        display: block;
        width: 14px;
        height: 14px;
    }

    .side .pack-more .pm-open {
        display: inline;
    }

    body.embed #orderForm.two > .side {
        top: 16px;
        max-height: calc(100vh - 32px);
    }

    .side .packbox {
        margin: 0 0 16px;
        padding: 18px;
        border-radius: 16px;
        background: #fff;
    }

    .side .card {
        margin-bottom: 0;
    }
}

.gal {
    margin-top: 12px;
}

.gal-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mut);
}

.gal-row {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.gal-row > li {
    flex: none;
    scroll-snap-align: start;
}

.gal-row > li[hidden] {
    display: none;
}

.gal-th {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
}

.gal-th img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-th:hover {
    border-color: var(--p);
}

.gal-th:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 2px;
}

.gal-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.66);
    color: #fff;
}

.gal-play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.gal-dur {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.74);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 16px;
}

.gal-more-btn {
    background: var(--p-bg);
    border-color: var(--p);
    color: var(--pd);
    font-size: 16px;
    font-weight: 800;
}

@media (min-width: 700px) {
    .gal-row {
        overflow: hidden;
        margin: 0;
        padding: 2px 0 10px;
    }

    .gal-th {
        width: 72px;
        height: 72px;
    }
}

html.gv-lock {
    overflow: hidden;
}

.gv {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0b0d12;
    color: #fff;
    overflow: hidden;
}

.gv[open] {
    display: flex;
    flex-direction: column;
}

.gv::backdrop {
    background: #0b0d12;
}

.gv-fallback {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.gv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
}

.gv-count {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    font-variant-numeric: tabular-nums;
}

.gv-x,
.gv-nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.gv-x svg,
.gv-nav svg {
    width: 22px;
    height: 22px;
}

.gv-x:hover,
.gv-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gv-x:focus-visible,
.gv-nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.gv-mid {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.gv-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0 8px;
    overflow: hidden;
    touch-action: none;
}

.gv-media {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.gv-media[hidden] {
    display: none;
}

.gv-img {
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.18s ease-out;
}

.gv-img.is-zoom {
    transform: scale(2.5);
    cursor: grab;
}

.gv-img.is-drag {
    transition: none;
    cursor: grabbing;
}

.gv-video {
    background: #000;
}

.gv-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    margin-top: -22px;
}

.gv-prev {
    left: max(8px, env(safe-area-inset-left));
}

.gv-next {
    right: max(8px, env(safe-area-inset-right));
}

.gv-nav:disabled,
.gv-zoomed .gv-nav {
    opacity: 0;
    pointer-events: none;
}

.gv-foot {
    min-height: 64px;
    padding: 10px 16px max(14px, env(safe-area-inset-bottom));
    text-align: center;
}

.gv-cap {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.gv-hint {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.68);
}

.gv-wait {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    pointer-events: none;
}

.gv-busy .gv-wait {
    display: grid;
}

.gv-wait .pv-spin {
    border-color: rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
}

@media (max-width: 520px) {
    .gv-nav {
        width: 38px;
        height: 38px;
        margin-top: -19px;
        background: rgba(15, 23, 42, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gv-img {
        transition: none;
    }
}
