:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #171918; background: #f7f5f1; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 10px; background: #1d523e; color: white; padding: 12px 17px; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
.loading, .empty { padding: 32px; color: #69716b; text-align: center; }
.guest-card { max-width: 440px; min-height: 620px; margin: 32px auto; padding: 34px 30px 28px; border-radius: 22px; background: #181a19; color: white; box-shadow: 0 22px 70px #17201926; display: flex; flex-direction: column; }
.brand, .staff-brand { letter-spacing: .13em; font-size: 13px; font-weight: 700; }
.eyebrow { margin: 40px 0 12px; letter-spacing: .14em; font-size: 10px; font-weight: 700; color: #aeb8b0; }
.guest-card h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); line-height: 1.13; letter-spacing: -.04em; font-weight: 400; }
.guest-card h1 strong { font-weight: 800; }
.stamps { margin-top: 52px; display: flex; gap: 7px; }
.stamp, .gift-stamp { height: 48px; flex: 1; border: 1px solid #656c67; border-radius: 12px; display: grid; place-items: center; color: #8e9690; font-size: 15px; }
.stamp.filled { background: #f2f0e9; border-color: #f2f0e9; color: #1d523e; font-weight: 800; }
.gift-stamp { color: #e8d2a7; }
.progress { margin-top: 28px; display: flex; gap: 18px; align-items: center; }
.progress strong { font-size: 32px; letter-spacing: -.05em; white-space: nowrap; }
.progress span { line-height: 1.4; color: #e8ebe7; }
.hint { color: #69716b; line-height: 1.5; }
.guest-card .hint { margin-top: 30px; color: #afb8b0; }
.pilot-warning { margin: 20px 0 0; padding: 12px 14px; border: 1px solid #8f9690; border-radius: 9px; color: #f2f0e9; font-size: 12px; line-height: 1.5; }
.scan-status { margin-top: 30px; padding: 15px 17px; border-radius: 12px; background: #29342d; display: grid; gap: 8px; }
.scan-status b { font-size: 25px; letter-spacing: .14em; }
.scan-status small { color: #c7d4c9; line-height: 1.4; }
.scan-status b { color: white; }
.card-footer { margin-top: auto; padding-top: 32px; letter-spacing: .12em; color: #858d86; font-size: 10px; }
.staff-shell { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.staff-brand span { font-weight: 400; letter-spacing: normal; color: #69716b; }
.staff-heading { margin: 34px 0 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.staff-heading .eyebrow, .activation .eyebrow { margin: 0 0 10px; color: #356f55; }
.staff-heading h1, .activation h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.staff-warning { margin-bottom: 24px; border-color: #c5c9c2; color: #424b43; }
.refresh { background: transparent; color: #1d523e; border: 1px solid #bac9bf; }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.panel { background: white; border: 1px solid #e7e6e1; border-radius: 17px; padding: 22px; }
.panel h2 { margin: 0 0 8px; font-size: 18px; }
.panel p { line-height: 1.5; }
.gift-simulation, .refund-reviews { margin-top: 18px; }
.simulation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.orders { display: grid; gap: 12px; margin-top: 21px; }
.order { border: 1px solid #e8e9e4; border-radius: 12px; padding: 16px; }
.order-heading { display: flex; justify-content: space-between; gap: 12px; }
.order-heading span, .subtle { color: #69716b; }
.order p { margin: 10px 0 15px; line-height: 1.5; }
.done { color: #1d523e; font-weight: 700; }
.order form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.scan-check { display: grid; gap: 4px; color: #4e554f; font-size: 13px; }
.scan-check b { color: #1d523e; font-size: 19px; letter-spacing: .1em; }
.qr-panel img { max-width: 100%; display: block; margin: 15px auto; }
.activation { max-width: 520px; margin: 70px auto 0; }
.activation p { color: #616962; }
form label { display: grid; gap: 7px; font-size: 13px; color: #4e554f; }
.activation form { display: grid; gap: 16px; margin-top: 25px; }
input, select { padding: 11px 12px; border: 1px solid #cdd3cd; border-radius: 9px; background: white; color: #171918; min-width: 180px; }
select { appearance: none; min-height: 46px; padding-inline: 16px 44px; border-color: #7b877f; text-align: center; text-align-last: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231d523e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.refund-reviews form { display: grid; gap: 14px; max-width: 640px; margin-top: 16px; }
.refund-reviews input, .refund-reviews select { min-width: 0; width: 100%; }
.refund-reviews button { justify-self: start; min-height: 46px; }
@media (forced-colors: active) { select { appearance: auto; background-image: none; } }
#notice { position: fixed; z-index: 10; left: 50%; bottom: 24px; max-width: min(90vw, 420px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 13px 18px; border-radius: 10px; background: #1d523e; color: white; box-shadow: 0 12px 35px #0003; transition: opacity .2s, transform .2s; }
#notice.visible { opacity: 1; transform: translate(-50%, 0); }
#notice.error { background: #8a352e; }
@media (max-width: 680px) {
  .guest-card { min-height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
  .staff-shell { padding: 22px 16px 60px; }
  .staff-heading { align-items: start; }
  .staff-heading h1 { font-size: 25px; }
  .staff-grid { grid-template-columns: 1fr; }
  .qr-panel { order: -1; }
  .qr-panel img { width: 160px; }
  .activation { margin-top: 40px; }
}

.guest-card > [data-create-card] { margin-top: 32px; }
.guest-card button { background: #f2f0e9; color: #1d523e; min-height: 44px; }
.card-recovery { margin-top: 24px; padding-top: 16px; border-top: 1px solid #656c67; color: #e8ebe7; font-size: 14px; }
.card-recovery summary { cursor: pointer; min-height: 44px; padding-block: 12px; line-height: 1.4; }
.card-recovery form { display: grid; gap: 12px; margin-top: 16px; }
.card-recovery label { color: #e8ebe7; }
.card-recovery input { width: 100%; min-width: 0; }
.card-recovery output { display: block; overflow-wrap: anywhere; margin-top: 12px; line-height: 1.5; }
.card-recovery :focus-visible { outline: 3px solid #e8d2a7; outline-offset: 3px; }
