:root{--forest:#263f35;--gold:#b78b50;--ink:#24302b;--paper:#f3f0e8;--card:#fffdf8;--line:#ded8cd;--muted:#65716b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Inter,system-ui,sans-serif}header{height:74px;padding:0 clamp(20px,5vw,72px);background:var(--forest);color:#fff;display:flex;align-items:center;justify-content:space-between}header strong{font:26px Georgia,serif}header span{color:#d9e2de}main{max-width:1160px;margin:auto;padding:54px 24px 80px}.intro{margin-bottom:34px}.eyebrow{color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.13em}h1,h2{font-family:Georgia,serif;font-weight:500}h1{font-size:clamp(38px,6vw,64px);line-height:1.03;margin:8px 0 16px}.layout{display:grid;grid-template-columns:1fr .85fr;gap:30px;align-items:start}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 18px 55px rgba(38,63,53,.1)}label{display:grid;gap:7px;font-weight:700;margin:0 0 17px}input,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 13px;font:inherit;background:#fff}textarea{min-height:92px;resize:vertical}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check{display:flex;align-items:flex-start;font-weight:400;color:var(--muted)}.check input{width:auto;margin-top:5px}button{width:100%;border:0;border-radius:11px;padding:15px;background:var(--forest);color:#fff;font-weight:800;font-size:16px;cursor:pointer}.voucher{aspect-ratio:1.58;border-radius:20px;padding:30px;color:#fff;background:radial-gradient(circle at 82% 15%,rgba(221,181,122,.36),transparent 28%),linear-gradient(145deg,#1f382f,#315848);box-shadow:0 24px 60px rgba(31,56,47,.25);display:flex;flex-direction:column;justify-content:space-between}.voucher strong{font:22px Georgia,serif}.voucher p{color:#dbe4e0}.amount{font:58px Georgia,serif;color:#f0ca92}.voucher blockquote{margin:8px 0;font:italic 17px Georgia,serif;max-width:78%}.voucher-foot{display:flex;justify-content:space-between;align-items:end;color:#dbe4e0}.qr{display:grid;place-items:center;background:#fff;color:#172a23;width:58px;height:58px;font-size:42px}.error{padding:14px 16px;border-radius:10px;background:#f8e5e3;color:#8b3029;margin-bottom:18px}.success-page{max-width:720px}.success-page .card{margin-top:8vh}.login-wrap{max-width:520px}.login-card{margin-top:6vh}.login-card h1{font-size:42px}.back-link{display:block;text-align:center;margin-top:18px;color:var(--forest)}.admin-main{max-width:1380px}.admin-heading,.table-title{display:flex;justify-content:space-between;align-items:end;gap:20px}.admin-heading h1{margin-bottom:0}.shop-link,.button-secondary{display:inline-flex;width:auto;text-decoration:none;border:1px solid rgba(255,255,255,.5);border-radius:9px;padding:9px 14px;color:inherit;background:transparent;font-weight:700}.shop-link{color:var(--forest);border-color:var(--forest)}.logout-form{margin:0}.logout-form button{font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:34px 0}.stat{display:grid;gap:8px}.stat span,.table-title span{color:var(--muted)}.stat strong{font:34px Georgia,serif}.admin-table-card{padding:0;overflow:hidden}.table-title{padding:24px 28px}.table-title h2{margin:3px 0 0}.table-title p{margin:0}.empty-state{padding:0 28px 28px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{text-align:left;padding:14px 18px;border-top:1px solid var(--line);vertical-align:top}th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:#f8f5ee}td small{display:block;color:var(--muted);margin-top:3px}.voucher-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.status{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e2ece7;color:#28503e;font-size:13px;font-weight:800}.status-redeemed,.status-expired{background:#eceae5;color:#5d625f}.status-blocked,.status-refunded{background:#f7e4e1;color:#8b3029}.notice{margin-top:24px;padding:14px 16px;border-radius:10px;background:#e2ece7;color:#28503e}.search-form{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:10px;align-items:start;padding:0 28px 24px}.search-form label{margin:0}.search-form button{width:auto;padding:12px 22px}.search-form a{padding:12px;color:var(--forest)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.voucher-code{font-weight:800;color:var(--forest)}.detail-main{max-width:1220px}.back-link-inline{display:inline-block;margin-bottom:24px;color:var(--forest);font-weight:700}.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.detail-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(30px,5vw,54px)}.detail-grid{display:grid;grid-template-columns:.8fr 1fr 1fr;gap:18px;margin:30px 0}.balance-card{display:flex;flex-direction:column;justify-content:center;background:var(--forest);color:#fff}.balance-card span,.balance-card small{color:#d9e2de}.balance-card strong{font:42px Georgia,serif;margin:8px 0}.detail-card h2{margin-top:0}.detail-card dl{margin:0}.detail-card dl div{padding:10px 0;border-top:1px solid var(--line)}.detail-card dt{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.detail-card dd{margin:3px 0 0}.small-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}.history-card{padding:0;overflow:hidden}.history-card table{min-width:1000px}@media(max-width:820px){.layout{grid-template-columns:1fr}.two{grid-template-columns:1fr}.voucher{padding:22px}.amount{font-size:46px}header span{display:none}.stats{grid-template-columns:1fr}.admin-heading{align-items:start;flex-direction:column}.table-title span{display:none}.search-form{grid-template-columns:1fr}.search-form button{width:100%}.detail-grid{grid-template-columns:1fr}.detail-heading{align-items:flex-start;flex-direction:column}}

.brand-header{height:auto;min-height:116px;justify-content:center;padding:30px 24px}.brand-header a{display:block;line-height:0}.brand-header img{display:block;width:clamp(210px,35vw,320px);height:auto}.voucher-logo{width:180px;max-width:75%;height:auto;display:block}.site-footer{background:var(--forest);color:#fff;padding:36px 24px}.footer-inner{max-width:1112px;margin:auto;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:24px}.site-footer a{color:#fff;text-underline-offset:4px}.site-footer p,.site-footer small{color:#d9e2de}.footer-contact,.site-footer nav{display:flex;flex-direction:column;gap:10px}.site-footer .withdrawal-link{border:1px solid #c7d2cb;border-radius:8px;padding:10px 14px;text-align:center;text-decoration:none;font-weight:700}.footer-inner small{grid-column:1/-1}.purchase-info{font-size:14px;color:var(--muted)}.counter-main{max-width:720px}.counter-code{font:700 clamp(24px,5vw,42px)/1.3 monospace;letter-spacing:.04em;overflow-wrap:anywhere}.counter-hint{font-size:18px}.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.form-actions button{width:auto}.withdrawal-copy{white-space:pre-wrap}.counter-form input[type=checkbox]{width:auto}.counter-form .check{display:flex}.source-label{font-size:12px;color:var(--muted)}@media(max-width:650px){.brand-header{min-height:100px;padding:24px}.footer-inner{grid-template-columns:1fr}.counter-main{padding:30px 16px}.counter-code{letter-spacing:0}.form-actions button{width:100%}}

.admin-toolbar{max-width:1380px;margin:0 auto;padding:16px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-toolbar>a{color:var(--forest);font-size:14px;font-weight:700;text-decoration:none}.admin-toolbar .button-secondary{color:var(--forest);border-color:var(--line);background:var(--card);font-size:14px;padding:8px 14px}.admin-toolbar .button-secondary:hover{border-color:var(--forest)}

.voucher-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 28px 12px}.voucher-tabs a{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:10px 14px;text-decoration:none;color:var(--forest);font-weight:700}.voucher-tabs a[aria-current=page]{background:var(--forest);border-color:var(--forest);color:white}.voucher-tabs span{font-size:12px;padding:2px 7px;border-radius:20px;background:rgba(128,128,128,.12)}.archive-explanation{margin:0;padding:0 28px 16px;color:var(--muted);font-size:14px}

.voucher-statistics{margin:32px 0}.statistics-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.statistics-heading h2{margin:0;font-size:26px}.statistics-heading>span,.stat small,.statistics-details small{font-size:12px;color:var(--muted)}.stats-four{grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0}.stats-four .stat{padding:22px;align-content:start}.stats-four .stat strong{font-size:clamp(24px,2.6vw,34px);overflow-wrap:anywhere}.statistics-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 28px;padding:22px}.statistics-details>div{display:grid;gap:4px}.statistics-details span{font-size:14px;color:var(--muted)}.statistics-details strong{font-size:20px}.statistics-details small{line-height:1.4}@media(max-width:1000px){.stats-four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.stats-four,.statistics-details{grid-template-columns:1fr}.statistics-heading{display:block}.statistics-heading>span{display:block;margin-top:6px}}

.admin-toolbar{justify-content:flex-end}.admin-heading h1{font-size:clamp(30px,4vw,42px);line-height:1.15}.admin-heading .eyebrow{margin-bottom:6px}

.admin-body button,.admin-body .shop-link,.admin-toolbar button,.voucher-tabs a{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}.admin-body button:hover{background:#3b5d4e}.admin-body .shop-link:hover,.admin-toolbar .button-secondary:hover{background:var(--forest);border-color:var(--forest);color:#fff}.voucher-tabs a:hover{background:#e7e3d8}.voucher-tabs a[aria-current=page]:hover{background:#3b5d4e}.admin-body button:focus-visible,.admin-body a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.admin-body .danger-button:hover{background:#72261f}.admin-body button:disabled{opacity:.55;cursor:default}.statistics-filters{margin-top:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px}.statistics-filters label{margin:0}.statistics-filters select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;color:var(--ink)}.statistics-filters p{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px}.statistics-filters button{align-self:end}.statistics-note{color:var(--muted);font-size:13px}.validity-card{margin:24px 0}.admin-table-card{margin-top:28px}@media(max-width:650px){.statistics-filters{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.admin-body button,.admin-body .shop-link,.admin-toolbar button,.voucher-tabs a{transition:none}}

.statistics-filters [hidden]{display:none}

.delivery-choice{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0}.delivery-choice legend{font-weight:700;padding:0 6px}.delivery-choice input[type=radio]{width:auto;flex-shrink:0;margin-top:6px}.delivery-choice label[hidden]{display:none}

.receipt-status{font-size:13px;color:#7b7468;white-space:nowrap}.receipt-confirmed{color:#287343;font-weight:700}

[hidden]{display:none!important}.arrangement-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.arrangement-option{display:flex;flex-direction:row;align-items:center;gap:10px;border:1px solid #ded8cd;border-radius:10px;padding:16px;margin:0;cursor:pointer}.arrangement-option:has(input:checked){border-color:#263f35;background:#f3f0e8}.arrangement-option input{width:auto;margin:0}.preview-arrangement{font-size:20px;color:#d2a45f;margin:0 0 12px}@media(max-width:600px){.arrangement-options{grid-template-columns:1fr}}

/* Keep the shop within narrow phone viewports and wrap personal content. */
.layout>*,#voucherForm fieldset,.arrangement-option span{min-width:0}.voucher p,.voucher blockquote,.voucher b{overflow-wrap:anywhere}@media(max-width:480px){.layout{grid-template-columns:minmax(0,1fr)}#voucherForm{padding:20px}.voucher{padding:24px}.delivery-choice legend{max-width:100%}}

.amount-input-wrap{position:relative}.amount-input-wrap input:not(:placeholder-shown){padding-right:76px}.amount-currency{position:absolute;right:34px;top:50%;transform:translateY(-50%);color:var(--ink);font-weight:400;pointer-events:none}
