:root {
    --darkblue: #003B5E;
    --darkblue-hover: #00567f;
    --blue: #55B7F0;
    --blue2: #1A6694;
    --graphite: #101921;
    --bg: #EEEEF2;
    --card: #ffffff;
    --panel: #F6F8FB;
    --line: #D9E0EA;
    --line-soft: #E5EAF1;
    --ink: #101921;
    --muted: #5A6570;
    --tint: #EAF4FB;
    --tint-line: #B9DAEE;
    --sun: #FFAC00;
    --green: #30BF6E;
    --red: #F7483B;
    --r-card: 22px;
    --r-inner: 14px;
    --r-btn: 13px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* ---------- header ---------- */
.topbar { background: #fff; border-bottom: 1px solid #E3E6ED; }
.topbar-in {
    max-width: 720px; margin: 0 auto; padding: 14px 18px;
    display: flex; align-items: center; gap: 15px;
}
.topbar-in img { height: 34px; width: auto; display: block; }
.topbar-in .logo-partner { height: 20px; margin-left: auto; flex-shrink: 0; }
@media (max-width: 520px) {
    .topbar-in { gap: 11px; padding: 12px 16px; }
    .topbar-in img { height: 26px; }
    .topbar-in .logo-partner { height: 12px; }
    .topbar .sep { height: 30px; }
    .topbar h1 { font-size: .92rem; }
    .topbar p { font-size: .74rem; }
}
.topbar .sep { width: 1px; height: 36px; background: #E3E6ED; }
.topbar h1 { font-size: 1.02rem; margin: 0; line-height: 1.25; font-weight: 700; color: var(--darkblue); }
.topbar p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.demo-pill {
    margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
    color: #9A6B00; background: #FFF4DC; border: 1px solid #F2D592; border-radius: 999px;
    padding: 4px 10px; white-space: nowrap;
}

/* ---------- progress ---------- */
.progress { max-width: 720px; margin: 0 auto; width: 100%; padding: 18px 18px 4px; }
.progress-labels { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.progress-labels .step-count { color: var(--darkblue); font-weight: 700; font-size: .95rem; }
.progress-labels .step-name { color: var(--blue2); font-weight: 700; font-size: .95rem; }
.track { height: 8px; border-radius: 99px; background: #DDE2EB; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--darkblue), var(--blue2)); transition: width .45s cubic-bezier(.5,0,.2,1); }
.dots { display: flex; justify-content: space-between; margin-top: 12px; }
.dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: #E2E7EF; color: #8B96A3; font-weight: 700; font-size: .88rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid transparent; padding: 0; cursor: default; font-family: inherit;
}
.dot.done { background: var(--darkblue); color: #fff; cursor: pointer; }
.dot.done svg { width: 15px; height: 15px; }
.dot.cur { background: #fff; border-color: var(--darkblue); color: var(--darkblue); box-shadow: 0 0 0 4px rgba(0, 59, 94, .12); }

.resume-note { max-width: 720px; margin: 12px auto 0; padding: 0 18px; width: 100%; }
.resume-note > div {
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    font-size: .84rem; border-radius: 12px; padding: 9px 14px;
    display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.resume-note .ic { width: 17px; height: 17px; color: var(--green); }
.resume-note a { color: var(--blue2); font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* ---------- card ---------- */
main { flex: 1; width: 100%; }
.wrap { max-width: 720px; margin: 14px auto 26px; padding: 0 14px; width: 100%; }
.card {
    background: var(--card);
    border: 1px solid #E4E7EE;
    border-radius: var(--r-card);
    padding: 26px 22px 24px;
    box-shadow: 0 14px 40px rgba(16, 25, 33, .07);
    animation: cardIn .35s ease;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.h-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.card h2 { margin: 0 0 10px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; color: var(--darkblue); }
.card .lead { margin: 0 0 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.badge {
    flex: 0 0 auto; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--darkblue);
    background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}

.note { display: flex; gap: 10px; border-radius: 13px; padding: 13px 14px; font-size: .9rem; line-height: 1.45; margin: 0 0 18px; }
.note .ic { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.note-warn { background: #FFF5E0; border: 1px solid #FFD57A; color: #6B4600; }
.note-warn .ic { color: #FFAC00; }
.note-warn b { color: #4A3000; }
.note-info { background: var(--tint); border: 1px solid var(--tint-line); color: #123F5E; }
.note-info .ic { color: var(--blue2); }

/* ---------- tiles / chips ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.tile {
    background: #fff; border: 2px solid var(--line); border-radius: 16px;
    padding: 22px 10px 18px; text-align: center; cursor: pointer; color: var(--ink);
    font-family: inherit; font-size: 1.05rem; font-weight: 700; transition: border-color .15s, background .15s, transform .06s;
}
.tile .ic { width: 34px; height: 34px; color: var(--blue2); margin-bottom: 10px; }
.tile small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 6px; line-height: 1.35; }
.tile:active { transform: scale(.985); }
.tile.sel { border-color: var(--darkblue); background: var(--tint); box-shadow: 0 0 0 4px rgba(0, 59, 94, .08); }
.tile.sel .ic { color: var(--darkblue); }

.tile-wide { grid-template-columns: 1fr; }
.tile-h { display: flex; align-items: center; gap: 14px; text-align: left; padding: 15px 16px; }
.tile-h .ic { margin: 0; flex: 0 0 auto; }
.tile-h .t-txt b { display: block; font-size: 1rem; }
.tile-h .t-txt small { margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 2px; }
.chip {
    background: #fff; color: var(--ink); border: 1.5px solid var(--line);
    font-family: inherit; font-size: .88rem; font-weight: 600; border-radius: 999px;
    padding: 9px 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    transition: border-color .15s, background .15s;
}
.chip .ic { width: 17px; height: 17px; color: var(--blue2); }
.chip.sel { border-color: var(--darkblue); background: var(--tint); color: var(--darkblue); }

.field-label { font-size: .92rem; font-weight: 700; margin: 20px 0 9px; display: flex; align-items: center; gap: 8px; color: var(--darkblue); }
.field-label .ic { width: 19px; height: 19px; color: var(--blue2); }
.field-label small { font-weight: 400; color: var(--muted); }

/* ---------- rooms ---------- */
.room-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 15px 15px 16px; margin-bottom: 13px; }
.room-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.room-num {
    width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: var(--darkblue);
    color: #fff; font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center;
}
.select-wrap { position: relative; flex: 1; }
.select-wrap select {
    width: 100%; appearance: none; -webkit-appearance: none; background: #fff;
    border: 1.5px solid var(--line); color: var(--ink); font-family: inherit; font-weight: 600;
    font-size: .95rem; border-radius: 11px; padding: 11px 38px 11px 13px; outline: none;
}
.select-wrap select:focus { border-color: var(--darkblue); }
.select-wrap .ic { position: absolute; right: 11px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%) rotate(90deg); color: var(--muted); pointer-events: none; }
.icon-btn {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line);
    background: #fff; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--red); border-color: #F4B1AC; }

.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-btn {
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    color: var(--muted); font-family: inherit; padding: 10px 4px; cursor: pointer; text-align: center;
    transition: border-color .15s, background .15s;
}
.size-btn b { display: block; color: var(--ink); font-size: .88rem; }
.size-btn span { font-size: .72rem; }
.size-btn.sel { border-color: var(--darkblue); background: var(--tint); }
.size-btn.sel b, .size-btn.sel span { color: var(--darkblue); }

.inline-input { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.inline-input .in-wrap { flex: 1; }

.room-kw { margin-top: 12px; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.room-kw .ic { width: 16px; height: 16px; color: var(--sun); }
.room-kw b { color: var(--darkblue); }

.add-room {
    width: 100%; background: transparent; border: 2px dashed #BFCBD9; color: var(--blue2);
    font-family: inherit; font-weight: 700; font-size: .95rem; border-radius: 14px; padding: 15px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; margin: 2px 0 4px;
}
.add-room .ic { width: 19px; height: 19px; }
.add-room:hover { border-color: var(--blue2); background: var(--tint); }
.add-room:disabled { opacity: .45; cursor: default; background: transparent; }

/* ---------- estimate box ---------- */
.estimate {
    display: flex; gap: 13px; align-items: center; background: var(--tint);
    border: 1.5px solid var(--tint-line); border-radius: 14px; padding: 15px 16px; margin-top: 18px;
}
.estimate .ic { width: 26px; height: 26px; color: var(--sun); flex: 0 0 auto; }
.estimate .e-label { font-size: .72rem; letter-spacing: .09em; font-weight: 700; color: var(--blue2); text-transform: uppercase; }
.estimate .e-value { font-size: 1.25rem; font-weight: 700; margin-top: 2px; color: var(--darkblue); }
.estimate .e-value small { font-weight: 500; color: var(--muted); font-size: .85rem; }

/* ---------- inputs ---------- */
.in-wrap { position: relative; }
input[type=text], input[type=tel], input[type=email], input[type=number], textarea {
    width: 100%; background: #fff; border: 1.5px solid var(--line); color: var(--ink);
    font-family: inherit; font-size: 1rem; border-radius: 12px; padding: 13px 14px; outline: none;
    transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--darkblue); }
input::placeholder, textarea::placeholder { color: #A6AFBA; }
.in-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.has-suffix input { padding-right: 76px; }
textarea { resize: vertical; min-height: 84px; }
.f-err { display: none; color: #C4362B; font-size: .8rem; margin-top: 6px; }
.invalid input { border-color: var(--red); }
.invalid .f-err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.f-lab { display: block; font-size: .84rem; font-weight: 600; color: var(--muted); margin: 0 0 7px 2px; }
.f-lab b { color: var(--ink); }

.hint { font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.hint b { color: var(--darkblue); }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 6px; }
.stepper button {
    width: 40px; height: 40px; border-radius: 9px; border: none; background: var(--tint);
    color: var(--darkblue); font-size: 1.35rem; font-weight: 700; cursor: pointer; font-family: inherit; line-height: 1;
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--darkblue); }

/* ---------- photo stage ---------- */
.stage { position: relative; border-radius: var(--r-inner); overflow: hidden; background: #101921; box-shadow: 0 10px 26px rgba(16, 25, 33, .22); }
.stage canvas.base { display: block; width: 100%; height: auto; touch-action: none; }
.stage canvas.ink { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage-cap { text-align: center; color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 11px 4px 0; }
.stage-cap b { color: var(--darkblue); }
.stage-cap .ic { width: 16px; height: 16px; color: var(--blue2); }

.shoot-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 11px; margin-top: 16px; }
.slider-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: .84rem; }
.slider-row input[type=range] { flex: 1; accent-color: var(--darkblue); height: 22px; }

.tips { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.tips div { display: flex; gap: 10px; font-size: .87rem; color: var(--muted); line-height: 1.45; padding: 5px 0; }
.tips .ic { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }

.chosen-bar {
    display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: 13px; padding: 11px 14px; margin-bottom: 15px; font-size: .9rem; color: var(--muted);
}
.chosen-bar .ic { width: 19px; height: 19px; color: var(--blue2); flex: 0 0 auto; }
.chosen-bar b { color: var(--darkblue); }
.chosen-bar .nowrap { white-space: nowrap; }
.chosen-bar a { margin-left: auto; color: var(--blue2); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #EDF0F5; border: 1px solid var(--line-soft); border-radius: 13px; padding: 4px; margin-bottom: 15px; }
.seg button {
    border: none; background: transparent; color: var(--muted); font-family: inherit; font-weight: 700;
    font-size: .88rem; padding: 11px 6px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.seg button .ic { width: 16px; height: 16px; }
.seg button.sel { background: var(--darkblue); color: #fff; }

.tool-row { display: flex; gap: 10px; margin-top: 13px; }
.tool-row .btn-ghost { flex: 1; }

/* ---------- thumbs ---------- */
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
    position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 8px; border: none;
    background: rgba(16, 25, 33, .72); color: #fff; cursor: pointer; font-size: .95rem; line-height: 1;
}
.thumb-add {
    aspect-ratio: 1; border-radius: 12px; border: 2px dashed #BFCBD9; background: transparent;
    color: var(--blue2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-family: inherit; font-size: .72rem; font-weight: 700;
}
.thumb-add .ic { width: 20px; height: 20px; }
.thumb-add:hover { border-color: var(--blue2); background: var(--tint); }

/* ---------- buttons ---------- */
.btn { width: 100%; border: none; border-radius: var(--r-btn); font-family: inherit; font-weight: 700; font-size: 1.02rem;
    padding: 16px 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .15s, transform .06s, opacity .15s; }
.btn:active { transform: scale(.99); }
.btn .ic { width: 19px; height: 19px; }
.btn-primary { background: var(--darkblue); color: #fff; box-shadow: 0 8px 20px rgba(0, 59, 94, .25); }
.btn-primary:hover { background: var(--darkblue-hover); }
.btn-primary:disabled { background: #AEB9C4; box-shadow: none; cursor: default; }
.btn-ghost { background: #fff; color: var(--darkblue); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--darkblue); }
.btn-sub { margin-top: 16px; }
.under-btn { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 12px; }

.back-row { margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue2); font-weight: 700; font-size: .95rem; cursor: pointer; background: none; border: none; font-family: inherit; padding: 4px 2px; }
.back-link .ic { width: 17px; height: 17px; }

/* ---------- consent ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--darkblue); flex: 0 0 auto; }
.consent span { color: var(--muted); line-height: 1.5; }
.consent.invalid-c span { color: var(--red); }

/* ---------- summary ---------- */
.sum-sec { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 15px; padding: 14px 16px; margin-bottom: 12px; }
.sum-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .95rem; margin-bottom: 9px; color: var(--darkblue); }
.sum-head .ic { width: 18px; height: 18px; color: var(--blue2); }
.sum-head a { margin-left: auto; font-size: .8rem; color: var(--blue2); cursor: pointer; font-weight: 700; text-decoration: none; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 4px 0; color: var(--muted); }
.sum-row b { color: var(--ink); font-weight: 600; text-align: right; }
.sum-photos { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.sum-photos img { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.price-box { background: linear-gradient(135deg, var(--tint), #F3FAFF 60%); border: 1.5px solid var(--tint-line); border-radius: 16px; padding: 18px 18px 15px; margin: 18px 0 6px; }
.price-box .e-label { font-size: .72rem; letter-spacing: .09em; font-weight: 700; color: var(--blue2); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.price-box .e-label .ic { width: 15px; height: 15px; color: var(--sun); }
.price-main { font-size: 1.5rem; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.01em; color: var(--darkblue); }
.price-rows { margin-top: 12px; border-top: 1px dashed var(--tint-line); padding-top: 10px; }
.price-rows .sum-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
details.brk { margin-top: 10px; }
details.brk summary { cursor: pointer; color: var(--blue2); font-size: .86rem; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 6px; }
details.brk summary::-webkit-details-marker { display: none; }
details.brk summary .ic { width: 15px; height: 15px; transition: transform .2s; transform: rotate(90deg); }
details.brk[open] summary .ic { transform: rotate(-90deg); }

/* ---------- success ---------- */
.success { text-align: center; padding: 18px 4px 6px; }
.success .ring {
    width: 92px; height: 92px; margin: 6px auto 20px; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #5FD98F, var(--green) 70%); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(48, 191, 110, .35); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.success .ring svg { width: 44px; height: 44px; color: #fff; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 1.6rem; margin: 0 0 10px; }
.success p { color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0 auto 14px; max-width: 44ch; }
.success p b { color: var(--darkblue); }
pre.payload {
    text-align: left; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px;
    font-size: .72rem; line-height: 1.5; padding: 13px; overflow: auto; max-height: 320px; color: #23445C;
}

/* ---------- footer ---------- */
footer { text-align: center; padding: 6px 22px 30px; color: #79828C; font-size: .8rem; line-height: 1.6; }
footer .demo-line { color: #98A0A9; font-size: .74rem; margin-top: 5px; }
footer a { color: var(--blue2); cursor: pointer; text-decoration: underline; }

.ic { display: inline-block; vertical-align: middle; }
.spin { width: 19px; height: 19px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .card { padding: 22px 16px 20px; border-radius: 18px; }
    .card h2 { font-size: 1.34rem; }
    .dots .dot { width: 30px; height: 30px; font-size: .8rem; }
    .form-grid { grid-template-columns: 1fr; }
    .size-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar h1 { font-size: .95rem; }
    .topbar-in img { height: 28px; }
    .demo-pill { display: none; }
    /* ikona vlevo, text otázky i nápověda (na vlastním řádku) ve sloupci vedle ní */
    .field-label { display: grid; grid-template-columns: 19px 1fr; column-gap: 8px; align-items: start; }
    .field-label .ic { margin-top: 1px; }
    .field-label small { grid-column: 2; margin-top: 2px; }
}

/* ===== stavové prvky portálu (nahrávání fotek, hlášky, číslo poptávky) ===== */
.upload-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 130%);
    background: var(--darkblue);
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: .93rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 10px 28px rgba(0, 59, 94, .28);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 90;
    pointer-events: none;
}
.upload-banner.show { transform: translate(-50%, 0); opacity: 1; }

.toast-note {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 130%);
    max-width: min(520px, calc(100vw - 32px));
    background: var(--graphite);
    color: #fff;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: .93rem;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(16, 25, 33, .3);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 95;
}
.toast-note.show { transform: translate(-50%, 0); opacity: 1; }
.toast-note.err { background: var(--red); }

.code-box {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: var(--tint);
    border: 1px solid var(--tint-line);
    border-radius: var(--r-inner);
    padding: 12px 24px;
    margin: 4px 0 20px;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue2);
}
.code-box b {
    font-size: 1.45rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--darkblue);
}

