: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;
}

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;
}

.intro-extra {
    color: #334155;
    font-size: 14px;
}

.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;
}

.more-body > p:first-child {
    color: var(--ink);
    font-weight: 600;
}

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

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

.tips 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 {
    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-t {
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.btn-wide {
    width: 100%;
}

.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;
}

.lockline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

.lockline .ic {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
}

.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;
}

.rnote {
    margin-top: 8px;
}

.chip-note {
    margin: 0;
    min-height: 32px;
    padding: 3px 10px 3px 7px;
    border: 1.5px dashed var(--amber);
    background: var(--amber-bg);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.chip-note .ic {
    color: var(--amber);
}

.chip-note::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.chip-note[aria-expanded="true"]::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.notes > .msg:first-child {
    margin-top: 0;
}

.notes > .msg + .msg {
    margin-top: 8px;
}

.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;
}

.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;
}

.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) {
    .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;
}

.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-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;
}

.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}}
