:root {
    --navy: #0b2b4b;
    --navy-2: #123f69;
    --blue: #0879e8;
    --blue-dark: #0568ca;
    --sky: #e9f4ff;
    --green: #08783e;
    --green-bg: #e7f7ef;
    --ink: #17212b;
    --muted: #667687;
    --line: #dce4eb;
    --surface: #ffffff;
    --canvas: #f2f5f8;
    --shadow: 0 20px 55px rgba(16, 42, 67, .12);
    --radius: 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { min-height: 100svh; }
.topbar {
    position: sticky; top: 0; z-index: 30; min-height: 70px; padding: 10px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark, .voucher-brand-mark {
    flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: #fff; background: linear-gradient(145deg, #0c3156, #0879e8); font-weight: 800; font-size: 12px; letter-spacing: -.04em;
    box-shadow: 0 7px 17px rgba(8, 121, 232, .2);
}
.brand > span:last-child, .voucher-brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.save-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.save-state i { width: 7px; height: 7px; border-radius: 99px; background: #f0a415; }
.save-state.saved i { background: #12a05c; }

.button, .icon-button, .history-button {
    border: 0; border-radius: 11px; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover, .icon-button:hover, .history-button:hover { transform: translateY(-1px); }
.button:active, .icon-button:active, .history-button:active { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .history-button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(8,121,232,.22); outline-offset: 2px; }
.button { min-height: 43px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 9px 22px rgba(8, 121, 232, .22); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--navy); background: #fff; border: 1px solid #cfd9e3; }
.button-secondary:hover, .button-ghost:hover { background: #f3f7fa; }
.button-ghost { min-height: 38px; color: var(--navy); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button-full { width: 100%; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); background: transparent; font-size: 22px; }

.workspace { display: grid; grid-template-columns: minmax(380px, 495px) minmax(580px, 1fr); min-height: calc(100svh - 70px); }
.editor-panel { padding: 34px 36px 80px; background: #fff; border-right: 1px solid var(--line); }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.editor-heading h1 { margin: 0; color: var(--navy); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.045em; }
.history-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; color: var(--muted); background: #f4f7fa; font-size: 12px; }

#voucherForm { display: flex; flex-direction: column; gap: 16px; }
.form-section { margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-section legend { padding: 0 8px 0 0; color: var(--navy); font-size: 13px; font-weight: 800; }
.form-section legend span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 7px; color: var(--blue); background: var(--sky); font-size: 11px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #3f4f5f; font-size: 12px; line-height: 1.35; font-weight: 700; }
.field > span em { color: #e04b52; font-style: normal; }
.field > span small { color: #8a98a6; font-weight: 500; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 45px; padding: 11px 12px; color: var(--ink); background: #fbfcfd; border: 1px solid #d5dee7; border-radius: 10px; outline: none; transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { min-height: 70px; line-height: 1.45; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a1aeb9; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,121,232,.1); }
.field-hint { color: #8796a5; font-size: 10px; line-height: 1.4; }
.optional-fields { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.optional-fields summary { padding: 16px 18px; list-style: none; color: var(--navy); background: #f7f9fb; cursor: pointer; font-size: 13px; font-weight: 800; }
.optional-fields summary::-webkit-details-marker { display: none; }
.optional-fields summary::after { content: "+"; float: right; color: var(--blue); font-size: 20px; line-height: .7; }
.optional-fields[open] summary::after { content: "−"; }
.optional-fields .form-section { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.editor-actions { position: sticky; bottom: 14px; z-index: 10; display: flex; gap: 10px; padding: 12px; margin: 6px -12px 0; border: 1px solid rgba(220,228,235,.9); border-radius: 15px; background: rgba(255,255,255,.92); backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(28,54,78,.12); }
.editor-actions .button-primary { flex: 1; }

.preview-panel { min-width: 0; padding: 24px 30px 70px; background: radial-gradient(circle at 100% 0, rgba(8,121,232,.08), transparent 32%), var(--canvas); }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
.device-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.7); }
.device-switcher button { width: 30px; height: 27px; padding: 0; display: grid; place-items: center; color: #82909d; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.device-switcher button.active { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(10,42,70,.1); }
.voucher-stage { transition: max-width .3s ease; }
.voucher-stage.mobile-mode { max-width: 430px; margin: 0 auto; }

.voucher { width: 100%; max-width: 760px; margin: 0 auto; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid #d8e0e8; border-radius: 17px; box-shadow: var(--shadow); }
.voucher-header { min-height: 73px; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: var(--navy); }
.voucher-brand { display: flex; align-items: center; gap: 10px; }
.voucher-brand-mark { width: 39px; height: 39px; border-radius: 11px; background: rgba(255,255,255,.13); box-shadow: none; }
.voucher-brand b { font-size: 15px; letter-spacing: -.02em; }
.voucher-brand small { margin-top: 2px; color: rgba(255,255,255,.66); font-size: 9px; }
.confirmation-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #dff8eb; background: rgba(27,153,90,.22); border: 1px solid rgba(116,230,169,.23); border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.confirmation-badge i { width: 7px; height: 7px; border-radius: 99px; background: #58d991; box-shadow: 0 0 0 3px rgba(88,217,145,.12); }
.confirmation-badge.cancelled { color: #ffe4e5; background: rgba(216,57,66,.24); }
.confirmation-badge.cancelled i { background: #ff7b82; }

.voucher-hero { position: relative; min-height: 225px; padding: 34px 28px 27px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(130deg, #0a3155 0%, #10588d 58%, #138ed2 100%); background-size: cover; background-position: center; }
.voucher-hero::before, .voucher-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.voucher-hero::before { width: 380px; height: 380px; right: -130px; top: -210px; }
.voucher-hero::after { width: 230px; height: 230px; right: 70px; bottom: -180px; }
.voucher-hero.has-photo { min-height: 260px; }
.voucher-hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.voucher-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,27,47,.88), rgba(4,32,56,.55) 58%, rgba(4,32,56,.25)); }
.voucher-hero-copy, .voucher-number { position: relative; z-index: 2; }
.voucher-hero-copy { max-width: 540px; }
.voucher-hero-copy > p { margin: 0 0 10px; color: #9fd5ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.voucher-hero-copy h1, .voucher-hero-copy h2 { margin: 0; max-width: 580px; color: #fff; font-size: clamp(24px, 4vw, 37px); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.voucher-hero-copy > span { display: block; margin-top: 11px; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.45; }
.voucher-number { padding: 9px 12px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(3,25,44,.26); backdrop-filter: blur(8px); }
.voucher-number span { color: rgba(255,255,255,.57); font-size: 9px; }
.voucher-number strong { font-size: 11px; letter-spacing: .04em; }

.voucher-body { padding: 28px; }
.guest-welcome { padding: 0 3px 25px; border-bottom: 1px solid var(--line); }
.guest-welcome p { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.guest-welcome h2, .guest-welcome h3 { margin: 0; color: var(--navy); font-size: clamp(20px, 3vw, 28px); line-height: 1.15; letter-spacing: -.035em; }
.guest-welcome span { display: block; max-width: 600px; margin-top: 9px; color: #6d7c8b; font-size: 11px; line-height: 1.55; }

.stay-card { margin: 23px 0; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; border: 1px solid #cde5fb; border-radius: 14px; background: #f4faff; }
.date-block > small { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.date-block > div { margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.date-block > div > strong { color: var(--navy); font-size: 37px; line-height: .95; letter-spacing: -.06em; }
.date-block > div > span { display: flex; flex-direction: column; }
.date-block > div b { color: var(--navy); font-size: 12px; text-transform: capitalize; }
.date-block > div em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; text-transform: capitalize; }
.date-block > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.date-block-out { text-align: right; }
.date-block-out > div { flex-direction: row-reverse; }
.stay-duration { position: relative; min-width: 102px; padding: 9px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; text-align: center; }
.stay-duration::before, .stay-duration::after { content: ""; position: absolute; top: 50%; width: 28px; height: 1px; background: #b8d8f2; }
.stay-duration::before { right: 100%; }
.stay-duration::after { left: 100%; }
.moon-icon { color: var(--blue); font-size: 21px; line-height: .9; }

.details-card, .notice-card { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.details-card h3, .details-card h4 { margin: 0; padding: 16px 18px; color: var(--navy); background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-row { min-height: 45px; padding: 11px 18px; display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 20px; align-items: start; border-bottom: 1px solid #edf1f4; font-size: 11px; line-height: 1.4; }
.detail-row:last-child { border-bottom: 0; }
.detail-row > span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.detail-row > strong { color: #2b3946; text-align: right; }
.detail-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; color: var(--blue); background: var(--sky); border-radius: 6px; font-size: 10px; font-style: normal; }
.payment-ok { color: var(--green) !important; }

.location-card { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.location-copy { min-width: 0; padding: 20px; }
.location-copy h3, .location-copy h4 { margin: 0; color: var(--navy); font-size: 15px; }
.location-copy > p:not(.eyebrow) { margin: 7px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.location-copy > a { display: block; width: fit-content; margin-top: 6px; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.location-copy > span { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.map-placeholder { position: relative; min-height: 160px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy); background-color: #e6eef2; background-image: linear-gradient(38deg, transparent 46%, rgba(91,126,145,.17) 47%, rgba(91,126,145,.17) 50%, transparent 51%), linear-gradient(-32deg, transparent 46%, rgba(91,126,145,.12) 47%, rgba(91,126,145,.12) 50%, transparent 51%); background-size: 38px 38px, 54px 54px; text-decoration: none; }
.map-placeholder::before, .map-placeholder::after { content: ""; position: absolute; background: rgba(255,255,255,.58); border-radius: 99px; }
.map-placeholder::before { width: 150%; height: 7px; transform: rotate(-18deg); }
.map-placeholder::after { width: 7px; height: 150%; transform: rotate(26deg); }
.map-placeholder > * { position: relative; z-index: 2; }
.map-placeholder iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: transparent; }
.map-placeholder iframe:not([src]), .map-placeholder iframe[src=""] { display: none; }
.map-open-link { position: absolute; z-index: 4; right: 9px; bottom: 9px; padding: 7px 9px; color: var(--navy); background: rgba(255,255,255,.94); border-radius: 7px; box-shadow: 0 4px 14px rgba(9,39,63,.15); font-size: 8px; font-weight: 800; text-decoration: none; }
.map-placeholder iframe[src] ~ .map-fallback { display: none; }
.map-pin { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: var(--blue); border: 5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(5,63,110,.22); font-size: 0; }
.map-placeholder b { margin-top: 9px; font-size: 11px; }
.map-placeholder small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.notice-card { padding: 16px 18px; display: flex; gap: 12px; background: #fffaf0; border-color: #f3dfb5; }
.notice-icon { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; color: #9a6412; background: #ffeac1; border-radius: 7px; font-size: 11px; font-weight: 900; }
.notice-card h3, .notice-card h4 { margin: 1px 0 5px; color: #6d4a16; font-size: 11px; }
.notice-card p { margin: 0; color: #80663d; font-size: 9px; line-height: 1.55; }
.voucher-footer { margin-top: 26px; padding: 20px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.voucher-footer > div:first-child { display: flex; flex-direction: column; }
.voucher-footer b { color: var(--navy); font-size: 10px; }
.voucher-footer span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.voucher-qr { position: relative; width: 44px; height: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.voucher-qr > span { margin: 0; background: var(--navy); }
.voucher-qr > span:nth-child(3) { grid-column: 1 / -1; height: 7px; }
.voucher-qr small { position: absolute; inset: 12px; display: grid; place-items: center; color: var(--blue); background: #fff; font-size: 7px; font-weight: 900; }

.share-panel { max-width: 760px; margin: 14px auto 0; padding: 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #bfe7d0; border-radius: 14px; background: #effbf4; }
.share-panel > div { min-width: 0; margin-right: auto; display: flex; flex-direction: column; }
.share-panel span { color: var(--green); font-size: 10px; font-weight: 800; }
.share-panel strong { margin-top: 3px; max-width: 310px; overflow: hidden; color: #527061; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

dialog { color: var(--ink); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 28px 80px rgba(4,29,51,.28); }
dialog::backdrop { background: rgba(5,28,48,.52); backdrop-filter: blur(6px); }
.login-dialog { width: min(420px, calc(100% - 30px)); padding: 0; }
.login-dialog form { padding: 30px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 25px; }
.login-brand > div { display: flex; flex-direction: column; }
.login-brand b { color: var(--navy); }
.login-brand small { color: var(--muted); font-size: 10px; }
.login-dialog h2 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.035em; }
.login-dialog > form > p:not(.form-error) { margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-error { min-height: 18px; margin: 9px 0; color: #c73740; font-size: 11px; }
.history-dialog { width: min(720px, calc(100% - 30px)); max-height: min(760px, calc(100svh - 30px)); padding: 0; }
.history-header { position: sticky; top: 0; z-index: 2; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.history-header h2 { margin: 0; color: var(--navy); font-size: 23px; }
.history-list { padding: 14px; overflow: auto; }
.history-item { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid #edf1f4; border-radius: 12px; }
.history-item:hover { background: #f7fafe; }
.history-item h3 { margin: 0; color: var(--navy); font-size: 14px; }
.history-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.history-item-actions { display: flex; align-items: center; gap: 6px; }
.history-item-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.empty-state { padding: 45px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); padding: 11px 16px; color: #fff; background: #142c42; border-radius: 10px; box-shadow: 0 12px 30px rgba(4,29,51,.25); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #bb3840; }

.public-page { min-height: 100svh; padding: 0 22px 50px; background: radial-gradient(circle at 100% 0, rgba(8,121,232,.13), transparent 25%), #edf2f6; }
.public-toolbar { max-width: 900px; min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-toolbar > div { display: flex; gap: 9px; }
.public-voucher-wrap { max-width: 900px; margin: 0 auto; }
.public-voucher { max-width: 900px; }
.public-voucher .voucher-header { min-height: 82px; padding-inline: 30px; }
.public-voucher .voucher-hero { min-height: 280px; padding: 42px 35px 31px; }
.public-voucher .voucher-body { padding: 34px; }
.public-footnote { margin: 16px 0; color: var(--muted); font-size: 10px; text-align: center; }
.not-found { max-width: 460px; min-height: 80svh; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found h1 { margin: 22px 0 5px; color: var(--navy); font-size: 30px; }
.not-found p { color: var(--muted); line-height: 1.6; }
.embed-mode .topbar { display: none; }
.embed-mode .workspace { min-height: 100svh; }

@media (max-width: 1100px) {
    .workspace { grid-template-columns: minmax(350px, 440px) minmax(500px, 1fr); }
    .editor-panel { padding-inline: 25px; }
    .preview-panel { padding-inline: 22px; }
}

@media (max-width: 900px) {
    .topbar { padding-inline: 18px; }
    .workspace { display: block; }
    .editor-panel { padding: 28px max(18px, 5vw) 35px; border-right: 0; }
    .preview-panel { padding: 25px max(14px, 4vw) 65px; border-top: 1px solid var(--line); }
    .editor-actions { position: static; }
}

@media (max-width: 620px) {
    .topbar { min-height: 62px; padding: 8px 13px; }
    .brand small, .topbar .save-state, .topbar .button-ghost { display: none; }
    .brand-mark { width: 38px; height: 38px; }
    .editor-panel { padding: 23px 14px 30px; }
    .editor-heading { align-items: center; margin-bottom: 19px; }
    .editor-heading h1 { font-size: 27px; }
    .history-button { width: 40px; height: 40px; justify-content: center; font-size: 0; }
    .history-button svg { font-size: 17px; }
    .form-section { grid-template-columns: 1fr; padding: 16px; gap: 13px; }
    .field-wide { grid-column: auto; }
    .editor-actions { display: grid; grid-template-columns: 1fr; margin-inline: 0; }
    .preview-panel { padding-inline: 10px; }
    .preview-toolbar { padding-inline: 4px; }
    .voucher { border-radius: 13px; }
    .voucher-header { min-height: 66px; padding: 11px 15px; }
    .voucher-brand-mark { width: 35px; height: 35px; }
    .voucher-brand small { display: none; }
    .confirmation-badge { max-width: 150px; font-size: 8px; text-align: center; white-space: normal; }
    .voucher-hero, .public-voucher .voucher-hero { min-height: 220px; padding: 27px 19px 21px; }
    .voucher-hero-copy h1, .voucher-hero-copy h2 { font-size: 27px; }
    .voucher-number { flex-direction: column; align-items: flex-start; gap: 3px; }
    .voucher-body, .public-voucher .voucher-body { padding: 21px 16px; }
    .stay-card { padding: 16px 12px; grid-template-columns: 1fr 1fr; gap: 14px; }
    .stay-duration { grid-column: 1 / -1; grid-row: 2; min-width: 0; flex-direction: row; justify-content: center; }
    .stay-duration::before, .stay-duration::after { width: 55px; }
    .date-block > div > strong { font-size: 32px; }
    .detail-row { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding-inline: 13px; }
    .location-card { grid-template-columns: 1fr; }
    .map-placeholder { min-height: 135px; }
    .voucher-footer { align-items: flex-end; }
    .share-panel { flex-wrap: wrap; }
    .share-panel > div { width: 100%; }
    .share-panel .button { flex: 1; }
    .public-page { padding-inline: 10px; }
    .public-toolbar { min-height: 72px; }
    .public-toolbar .brand > span:last-child { display: none; }
    .public-toolbar .button { min-height: 39px; padding-inline: 11px; font-size: 11px; }
    .public-voucher .voucher-header { padding-inline: 15px; }
    .history-item { grid-template-columns: 1fr; }
}

@page { size: A4; margin: 9mm; }
@media print {
    :root { --shadow: none; }
    html, body, .public-page, .constructor-page { min-width: 0; background: #fff !important; }
    body { padding: 0 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .no-print, dialog, .toast, .editor-panel { display: none !important; }
    .workspace, .preview-panel, .voucher-stage, .public-voucher-wrap { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; background: #fff; }
    .voucher { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .voucher-header { min-height: 15mm; padding: 3mm 5mm; }
    .voucher-hero, .public-voucher .voucher-hero { min-height: 44mm; padding: 7mm 6mm 5mm; }
    .voucher-hero-copy h1, .voucher-hero-copy h2 { font-size: 22pt; }
    .voucher-body, .public-voucher .voucher-body { padding: 5mm 6mm; }
    .guest-welcome { padding-bottom: 4mm; }
    .stay-card { margin: 4mm 0; padding: 4mm 5mm; break-inside: avoid; }
    .details-card, .location-card, .notice-card { margin-top: 4mm; break-inside: avoid; }
    .location-card { grid-template-columns: 1.2fr .8fr; }
    .map-placeholder { min-height: 30mm; }
    .voucher-footer { margin-top: 4mm; padding-top: 4mm; }
    a { text-decoration: none; }
}
