/* Poster-led festival: one illustration, one wheel, one purchase form. */
:root {
  --vivo: var(--festival-blue); --violet: var(--festival-violet);
  --ink: var(--festival-ink); --muted: var(--festival-muted);
  --line: #e4e4f1; --back: #f2f3fb; --danger: #b93249;
}
* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #eaeafa; font: 400 16px/1.6 var(--font-body); font-synthesis: none; font-kerning: normal; font-feature-settings: "kern" 1, "palt" 1; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #415fff; outline-offset: 4px; }
.customer-view { width: min(100%, 480px); min-height: 100svh; margin: 0 auto; overflow: hidden; padding-bottom: max(20px, env(safe-area-inset-bottom)); background: var(--festival-mist); box-shadow: 0 0 80px #30216714; }
.festival-scene { position: relative; padding-bottom: 28px; background: #575ce8 url('/visuals/festival-background.webp') center top / 100% 100% no-repeat; }
.celebration-hero { position: relative; padding: max(22px, env(safe-area-inset-top)) 26px 12px; text-align: center; color: white; background: linear-gradient(180deg,#183bbb70,#3542b900); }
.celebration-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.celebration-brand, .admin-logo, .wheel-hub span, .field-position, .stat strong { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.celebration-brand, .admin-logo, .wheel-hub span { letter-spacing: .025em; font-variant-ligatures: none; }
.celebration-brand { margin: 0; font-size: 31px; line-height: 1; font-weight: 750; }
.celebration-topbar > span { padding: 4px 12px; border: 1px solid #ffffff80; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .12em; background: #2636a375; }
.hero-message { margin: 25px auto 0; padding: 10px 0 12px; border-radius: 22px; background: radial-gradient(ellipse, #262d907d, #262d9038 64%, transparent 76%); }
.celebration-hero h1, .stage-heading h2, .wheel-label, .entry h2, .result-card h2, .admin-header h1, .login-card h2, .panel-title h2 { font-family: var(--font-display); }
.celebration-hero h1 { margin: 0; font-size: clamp(35px,10.5vw,49px); line-height: 1.24; letter-spacing: .075em; font-weight: 750; color: #fff0be; text-shadow: 0 2px 0 #543792, 0 4px 15px #202473b3; }
.celebration-copy { margin: 10px 0 0; font-size: 14px; font-weight: 450; letter-spacing: .09em; text-shadow: 0 2px 6px #172874; }
.draw-stage { position: relative; isolation: isolate; width: calc(100% - 36px); margin: 0 auto; padding: 18px 12px 20px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 38%,#6b65ff 0,#3b3bc8 36%,#24227f 70%,#19175c 100%); border: 1px solid #ffe7a5b8; border-radius: 30px; box-shadow: 0 0 0 4px #8cdfff4d, 0 18px 35px #17206d66, inset 0 1px 0 #ffffff70; }
.draw-stage::before { content: ''; position: absolute; z-index: -2; inset: 48px -22% 86px; opacity: .55; background: repeating-conic-gradient(from -8deg at 50% 44%,#ffffff24 0deg 7deg,transparent 7deg 20deg,#ffe29d24 20deg 24deg,transparent 24deg 38deg); mask-image: radial-gradient(ellipse at 50% 44%,transparent 0 25%,#000 58%,transparent 79%); -webkit-mask-image: radial-gradient(ellipse at 50% 44%,transparent 0 25%,#000 58%,transparent 79%); animation: stage-rays 24s linear infinite; pointer-events: none; }
.draw-stage::after { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 8% 19%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 91% 25%,#ffe4a0 0 2px,transparent 3px),radial-gradient(circle at 8% 63%,#d9f5ff 0 2px,transparent 3px),radial-gradient(circle at 91% 67%,#fff 0 1.5px,transparent 2.5px),radial-gradient(circle at 21% 82%,#ffe4a0 0 1.5px,transparent 2.5px),radial-gradient(circle at 78% 87%,#d9f5ff 0 1.5px,transparent 2.5px); filter: drop-shadow(0 0 6px #fff); opacity: .9; pointer-events: none; }
.stage-heading, .wheel-wrap, .spin-status, .prize-list { position: relative; z-index: 1; }
.stage-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; gap: 8px; }
.stage-heading h2 { margin: 0; color: #fff1bd; font-size: 13px; font-weight: 650; letter-spacing: .11em; text-shadow: 0 2px 8px #12124f; }
.stage-heading a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; color: white; background: #ffffff17; border: 1px solid #ffffff42; border-radius: 999px; font-size: 12px; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff29; }
.wheel-wrap { position: relative; width: min(100%, 334px); margin: 16px auto 0; padding: 12px; }
.wheel-wrap::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: repeating-conic-gradient(from 0deg,#dff8ff00 0 8deg,#dff8ff52 8deg 10deg,#dff8ff00 10deg 23deg,#ffe3a352 23deg 25deg,#ffe3a300 25deg 38deg); box-shadow: 0 0 36px #7acfff75; animation: halo-turn 18s linear infinite; }
.wheel-rim { position: relative; padding: 14px; border: 3px solid #fff7d6; border-radius: 50%; background: linear-gradient(140deg,#fff6c8,#e6aa3c 46%,#fff0a9 73%,#c98a27); box-shadow: 0 0 0 4px #a5a1ff, 0 0 0 8px #ffffff24, 0 8px 0 #4a3c9d, 0 19px 32px #08083f8a, 0 0 34px #c6f3ff6b; }
.wheel { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid #5b4da6; border-radius: 50%; background: conic-gradient(#c9d6ff 0 90deg,#ffedb9 90deg 180deg,#d9f5ff 180deg 270deg,#e6dafa 270deg); transition: transform 3.7s cubic-bezier(.12,.67,.13,1); }
.wheel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 20px #7163c329; pointer-events: none; }
.wheel-label { position: absolute; display: flex; align-items: center; justify-content: center; z-index: 2; width: 31%; height: 48px; font-size: var(--wheel-font,14px); font-weight: 650; line-height: 1.35; white-space: pre-line; letter-spacing: .045em; text-align: center; }
.pointer { position: absolute; z-index: 6; top: -3px; left: 50%; width: 28px; height: 38px; background: linear-gradient(#fff9dc,#f2bd4a); clip-path: polygon(0 0,100% 0,100% 40%,50% 100%,0 40%); filter: drop-shadow(0 4px 4px #16134d80); transform: translateX(-50%); }
.wheel-hub { position: absolute; z-index: 5; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 70px; height: 70px; transform: translate(-50%,-50%); border: 5px solid #fff4cc; border-radius: 50%; color: white; background: linear-gradient(145deg,#526ce7,#7351c9); box-shadow: 0 3px 12px #483d9950; }
.wheel-hub span { font-size: 18px; font-weight: 700; line-height: 1; }
.wheel-hub small { font-size: 9px; line-height: 1.2; color: #fff0c2; letter-spacing: .1em; }
.rim-lights { position: absolute; z-index: 4; inset: 0; border-radius: 50%; pointer-events: none; }
.rim-lights i { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); width: 8px; height: 8px; border: 1px solid #fff8d2; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff4b0,0 0 14px #fff; transform: translate(-50%,-50%); animation: glow 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.12s); }
.rim-lights i:nth-child(even) { background: #c9f5ff; box-shadow: 0 0 8px #b8f2ff,0 0 14px #fff; }
.rim-lights i:nth-child(1) { --x: 0%; --y: -48%; }
.rim-lights i:nth-child(2) { --x: 24%; --y: -41.5%; }
.rim-lights i:nth-child(3) { --x: 41.5%; --y: -24%; }
.rim-lights i:nth-child(4) { --x: 48%; --y: 0%; }
.rim-lights i:nth-child(5) { --x: 41.5%; --y: 24%; }
.rim-lights i:nth-child(6) { --x: 24%; --y: 41.5%; }
.rim-lights i:nth-child(7) { --x: 0%; --y: 48%; }
.rim-lights i:nth-child(8) { --x: -24%; --y: 41.5%; }
.rim-lights i:nth-child(9) { --x: -41.5%; --y: 24%; }
.rim-lights i:nth-child(10) { --x: -48%; --y: 0%; }
.rim-lights i:nth-child(11) { --x: -41.5%; --y: -24%; }
.rim-lights i:nth-child(12) { --x: -24%; --y: -41.5%; }
.spin-status { min-height: 22px; margin: 18px 0 13px; color: #e7ecff; font-size: 12px; text-shadow: 0 2px 8px #111052; }
.prize-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; padding-top: 13px; border-top: 1px solid #ffffff2e; }
.prize-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; color: #f7f7ff; background: #ffffff17; border: 1px solid #ffffff3d; border-radius: 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 #ffffff24; backdrop-filter: blur(4px); }
.prize-chip i { flex: 0 0 7px; width: 7px; height: 7px; background: var(--prize-color); border: 1px solid #77749b55; border-radius: 50%; }
.entry { width: calc(100% - 36px); margin: 20px auto 0; padding: 23px 21px 20px; border: 1px solid #e3dff3; border-radius: 26px; background: white; box-shadow: 0 9px 28px #3c2b7c08; scroll-margin-top: 16px; }
.entry-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .045em; }
.entry-star { color: #c29339; font-size: 25px; line-height: 1; }
.entry-note { margin: 6px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.field { display: block; min-width: 0; }
.field span { display: block; margin-bottom: 7px; color: #444663; font-size: 13px; font-weight: 600; letter-spacing: .015em; }
.field input, .field select { width: 100%; min-height: 49px; min-width: 0; padding: 0 11px; border: 1px solid #e0dfec; border-radius: 10px; outline: 0; color: #252849; background: #f8f8fd; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #7d8092; }
.field input:focus, .field select:focus { border-color: var(--vivo); box-shadow: 0 0 0 3px #415fff14; }
.slide-control { --slide: 0%; position: relative; height: 60px; margin-top: 22px; overflow: hidden; color: white; background: linear-gradient(105deg,#4762e6,#7953db); border: 1px solid #5761db; border-radius: 16px; box-shadow: 0 6px 15px #6256c526; }
.slide-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--slide) + 28px); background: #ffffff16; }
.slide-label { position: absolute; inset: 0 12px 0 62px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 650; letter-spacing: .045em; pointer-events: none; }
.slide-control.sliding .slide-label { opacity: .65; }
.draw-slider { position: absolute; inset: 0; width: 100%; height: 58px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; }
.draw-slider::-webkit-slider-runnable-track { height: 58px; background: transparent; }
.draw-slider::-webkit-slider-thumb { width: 50px; height: 50px; margin-top: 4px; appearance: none; -webkit-appearance: none; border: 3px solid white; border-radius: 12px; background: #ffe4a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='m10 7 7 7-7 7' fill='none' stroke='%23534aac' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; box-shadow: 0 3px 8px #33337730; }
.draw-slider::-moz-range-track { height: 58px; background: transparent; }
.draw-slider::-moz-range-thumb { width: 46px; height: 46px; border: 3px solid white; border-radius: 12px; background: #ffe4a0; }
.slide-control.busy { opacity: .8; }
.form-error { margin: 8px 0 0; color: var(--danger); font-size: 12px; line-height: 1.6; }
.form-error:empty { display: none; }
.privacy { margin: 12px 0 0; color: #74768a; font-size: 11px; line-height: 1.7; }
.activity-rules { margin-top: 17px; padding-top: 13px; border-top: 1px solid #ededf5; color: #656985; font-size: 12px; }
.activity-rules summary { cursor: pointer; min-height: 28px; }
.activity-rules p { margin: 8px 0 0; line-height: 1.9; }
.customer-footer { padding: 18px 18px 0; color: #74768a; font-size: 14px; line-height: 1.7; text-align: center; }
.result-mask { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: #171743b8; backdrop-filter: blur(6px); }
.result-mask.show { display: flex; }
.result-card { position: relative; z-index: 2; width: min(100%,360px); padding: 31px 24px 25px; text-align: center; border: 2px solid white; border-radius: 28px; background: linear-gradient(#faf8ff,white); box-shadow: 0 0 0 5px #d0c4ff35,0 25px 60px #1812484d; animation: result-in .3s ease-out; }
.result-orbit { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 17px; border: 5px solid #eee7ff; border-radius: 50%; color: #6954b8; background: #e1d9ff; font-size: 27px; }
.result-card.win .result-orbit { background: #ffe4a0; color: #89641d; }
.result-card .kicker { margin: 0; color: #676a86; font-size: 12px; }
.result-card h2 { margin: 10px 0; font-size: 27px; line-height: 1.4; overflow-wrap: anywhere; }
.result-card .message { margin: 0; color: #656985; font-size: 14px; line-height: 1.8; }
.result-code { margin-top: 20px; padding: 13px; border: 1px dashed #c5bbe7; border-radius: 10px; color: #4b4870; background: #f4f1fc; font: 500 13px/1.7 var(--font-body); overflow-wrap: anywhere; }
.result-button { width: 100%; min-height: 49px; margin-top: 22px; border: 0; border-radius: 12px; color: white; background: linear-gradient(110deg,var(--vivo),var(--violet)); font-weight: 600; }
.confetti-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; top: -24px; width: 9px; height: 14px; background: var(--color); animation: confetti-fall var(--duration) linear var(--delay) forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift),110vh) rotate(600deg); opacity: .2; } }
@keyframes result-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: .65; } to { opacity: 1; box-shadow: 0 0 11px #fff2be; } }
@keyframes halo-turn { to { transform: rotate(360deg); } }
@keyframes stage-rays { to { transform: rotate(-360deg) scale(1.04); } }
@media (max-width: 360px) {
  .celebration-hero { padding-right: 20px; padding-left: 20px; }
  .entry { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .slide-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel { transition-duration: .01s; }
  .draw-stage::before, .wheel-wrap::before, .rim-lights i, .result-card, .confetti { animation: none; }
}

/* Administration retains its existing controls and status colors. */
    .admin-view { min-height: 100vh; padding: max(24px, env(safe-area-inset-top)) 18px 40px; background: var(--back); }
    .admin-shell { width: min(100%, 1020px); margin: 0 auto; }
    .admin-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
    .admin-logo { color: var(--vivo); font-size: 25px; font-weight: 800; letter-spacing: .04em; }
    .admin-header h1 { margin: 4px 0 0; font-size: 22px; }
    .text-button { padding: 9px 13px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
    .login-card { width: min(100%, 390px); margin: 12vh auto 0; padding: 28px; background: white; border-radius: 18px; box-shadow: 0 15px 45px rgba(35,47,90,.1); }
    .login-card h2 { margin: 0 0 7px; }
    .login-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
    .admin-login-field { display: grid; gap: 6px; margin-top: 12px; color: #62697a; font-size: 12px; font-weight: 700; }
    .admin-login-field:first-child { margin-top: 0; }
    .login-card input { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
    .login-card input[readonly] { color: #304dd8; background: #f1f4ff; border-color: #d8e0ff; font-weight: 700; cursor: default; }
    .login-card button { width: 100%; min-height: 50px; margin-top: 13px; color: white; background: var(--vivo); border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
    .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
    .stat { padding: 18px; background: white; border-radius: 15px; }
    .stat span { color: var(--muted); font-size: 12px; }
    .stat strong { display: block; margin-top: 5px; color: var(--vivo); font-size: 29px; }
    .panel { margin-top: 15px; padding: 20px; background: white; border-radius: 16px; }
    .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .panel-title h2 { margin: 0; font-size: 17px; }
    .admin-actions { display: flex; align-items: center; gap: 9px; }
    .export-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; color: white; background: linear-gradient(105deg, var(--vivo), var(--violet)); border: 0; border-radius: 10px; box-shadow: 0 7px 18px rgba(65,95,255,.22); font-weight: 700; cursor: pointer; }
    .export-button::before { content: "↓"; display: grid; width: 20px; height: 20px; place-items: center; color: var(--vivo); background: white; border-radius: 6px; font-size: 15px; line-height: 1; }
    .export-button:disabled { opacity: .62; cursor: wait; box-shadow: none; }
    .inventory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .inventory-item { padding: 14px; background: #f6f7fb; border-radius: 11px; }
    .inventory-item span { display: block; min-height: 35px; color: var(--muted); font-size: 11px; }
    .inventory-item strong { font-size: 20px; }
    .table-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 12px; }
    th, td { padding: 12px 9px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
    th { color: var(--muted); font-weight: 500; }
    .badge { display: inline-block; padding: 4px 7px; color: var(--vivo); background: #eef0ff; border-radius: 6px; }
    .empty { padding: 28px; color: var(--muted); text-align: center; }

    .admin-logo { font-size: 25px; font-weight: 700; }
    .admin-view, .admin-view input { color: #20243a; }
    .admin-view .text-button { color: #20243a; }
    .admin-view .export-button, .admin-view .login-card button { color: #fff; }
    .admin-view .login-card p, .admin-view .stat span, .admin-view th, .admin-view .inventory-item span, .admin-view .empty { color: #5e6575; }
    .panel-copy { margin: 5px 0 0; color: #6a7080; font-size: 12px; line-height: 1.6; }
    .probability-total { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; color: #1f6b50; background: #eaf8f1; border: 1px solid #bde8d4; border-radius: 999px; font-size: 12px; font-weight: 800; }
    .probability-total.invalid { color: #a52f42; background: #fff0f2; border-color: #f3c1c9; }
    .prize-editor { display: grid; gap: 10px; }
    .prize-ticket { display: grid; grid-template-columns: minmax(180px, 1.4fr) 110px minmax(170px, .9fr) auto; gap: 12px; align-items: end; padding: 15px; background: linear-gradient(135deg, #f7f8ff, #f3f6ff); border: 1px solid #e1e6ff; border-left: 5px solid var(--vivo); border-radius: 14px; }
    .prize-ticket.none-ticket { border-left-color: #8d94a5; background: #f7f8fa; }
    .admin-field { display: grid; gap: 6px; color: #62697a; font-size: 11px; font-weight: 700; }
    .admin-field input, .admin-field select, .admin-field textarea { width: 100%; min-height: 42px; padding: 0 11px; color: #20243a; background: white; border: 1px solid #dfe3ee; border-radius: 9px; outline: 0; font: inherit; }
.admin-field textarea { min-height: 78px; padding-top: 9px; padding-bottom: 9px; line-height: 1.55; resize: vertical; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: var(--vivo); box-shadow: 0 0 0 3px rgba(65,95,255,.1); }
.admin-field input[readonly] { color: #555b78; background: #eef0f8; cursor: default; }
.admin-field select:disabled { color: #555b78; background: #eef0f8; cursor: not-allowed; }
    .stock-readout { min-height: 42px; padding: 7px 10px; color: #3b4150; background: white; border: 1px solid #e2e5ed; border-radius: 9px; font-size: 12px; line-height: 1.35; }
    .stock-readout strong { display: block; color: #20243a; font-size: 15px; }
    .restock-box { display: flex; gap: 7px; }
    .restock-box input { min-width: 0; }
    .mini-button, .danger-button, .secondary-button, .primary-button { min-height: 40px; padding: 0 13px; border-radius: 9px; font-weight: 700; cursor: pointer; }
    .mini-button, .secondary-button { color: #34415b; background: white; border: 1px solid #dce1ec; }
    .primary-button { color: white; background: linear-gradient(105deg, var(--vivo), var(--violet)); border: 0; box-shadow: 0 7px 18px rgba(65,95,255,.18); }
    .danger-button { color: #b42e43; background: #fff1f3; border: 1px solid #f2c6cd; }
    .mini-button:disabled, .danger-button:disabled, .secondary-button:disabled, .primary-button:disabled { opacity: .55; cursor: not-allowed; }
    .prize-form-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; }
    .save-note { color: #707789; font-size: 11px; }
    .add-prize { margin-top: 18px; padding-top: 17px; border-top: 1px dashed #d9deeb; }
    .add-prize h3 { margin: 0 0 12px; font-size: 14px; }
    .add-prize-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr auto; gap: 10px; align-items: end; }
    .form-field-editor { display: grid; gap: 10px; }
    .form-field-row { display: grid; grid-template-columns: 38px minmax(150px, .8fr) minmax(130px, .55fr) minmax(210px, 1.1fr) auto; gap: 11px; align-items: end; padding: 14px; background: linear-gradient(135deg, #f8f8ff, #f3f6ff); border: 1px solid #e1e5f7; border-radius: 14px; }
    .form-field-options { grid-column: 2 / -1; grid-row: 2; }
    .field-position { align-self: center; color: #a4a9bd; font-family: var(--font-brand); font-size: 18px; font-weight: 700; }
    .form-field-actions { grid-column: 5; grid-row: 1; display: flex; align-items: center; gap: 6px; min-height: 42px; }
    .form-field-actions .mini-button { width: 38px; padding: 0; }
    .form-field-actions .danger-button { white-space: nowrap; }
    .field-kind { padding: 4px 7px; color: #565d79; background: #e8ebf7; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
    .record-code { color: #4d5670; font-family: var(--font-latin); font-size: 11px; letter-spacing: .02em; }
    .status-legend { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 13px; color: #646b7a; font-size: 11px; }
    .status-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .status-legend i { width: 10px; height: 10px; border-radius: 50%; }
    .status-legend .valid-dot { background: #6fc89f; }
    .status-legend .invalid-dot { background: #ed8998; }
    .record-row.valid { background: #effaf5; }
    .record-row.invalid { background: #fff0f2; color: #874953; }
    .record-row.invalid td { border-bottom-color: #f3d4d9; }
    .status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
    .status-badge.valid { color: #176648; background: #d9f3e6; }
    .status-badge.invalid { color: #a32d40; background: #ffdce2; }
    .row-action { min-height: 32px; padding: 0 10px; color: #a52f42; background: rgba(255,255,255,.75); border: 1px solid #efbdc5; border-radius: 8px; cursor: pointer; }
    .record-check { width: 17px; height: 17px; accent-color: var(--vivo); }
    .batch-button { min-height: 38px; padding: 0 12px; color: #a52f42; background: #fff0f2; border: 1px solid #efbdc5; border-radius: 9px; font-weight: 700; cursor: pointer; }
    .batch-button:disabled { opacity: .45; cursor: not-allowed; }
    .admin-toast { position: fixed; z-index: 60; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); max-width: min(360px, calc(100% - 40px)); padding: 13px 16px; color: white; background: #24304d; border-radius: 11px; box-shadow: 0 14px 35px rgba(23,30,55,.24); font-size: 13px; transform: translateY(18px); opacity: 0; pointer-events: none; transition: .2s ease; }
    .admin-toast.show { transform: translateY(0); opacity: 1; }
    .confirm-mask { position: fixed; z-index: 70; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(22,27,46,.58); backdrop-filter: blur(5px); }
    .confirm-mask.show { display: flex; }
    .confirm-card { width: min(100%, 390px); padding: 24px; background: white; border-radius: 18px; box-shadow: 0 24px 60px rgba(22,27,46,.25); }
    .confirm-card h2 { margin: 0; font-size: 20px; }
    .confirm-card p { margin: 10px 0 20px; color: #676e7e; font-size: 13px; line-height: 1.7; }
    .confirm-actions { display: flex; justify-content: flex-end; gap: 9px; }
    @media (max-width: 820px) {
      .prize-ticket { grid-template-columns: 1fr 100px; }
      .prize-ticket .restock-field { grid-column: 1 / -1; }
      .prize-ticket .danger-button { justify-self: end; }
      .add-prize-grid { grid-template-columns: 1fr 1fr; }
      .add-prize-grid .admin-field:first-child { grid-column: 1 / -1; }
      .add-prize-grid .primary-button { grid-column: 1 / -1; }
      .form-field-row { grid-template-columns: 34px 1fr 1fr; }
      .form-field-prompt-wrap, .form-field-options { grid-column: 2 / -1; grid-row: auto; }
      .form-field-actions { grid-column: 2 / -1; grid-row: auto; justify-content: flex-end; }
    }
    @media (max-width: 640px) {
      .stats { grid-template-columns: 1fr 1fr; }
      .stat:last-child { grid-column: auto; }
      .prize-ticket { grid-template-columns: 1fr; }
      .prize-ticket .restock-field { grid-column: auto; }
      .prize-ticket .danger-button { width: 100%; justify-self: stretch; }
      .prize-form-actions { align-items: stretch; flex-direction: column; }
      .prize-form-actions .primary-button { width: 100%; }
      .admin-actions { flex-wrap: wrap; }
      .records-title .admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
      .records-title .admin-actions > span { grid-column: 1 / -1; }
      .records-title .export-button, .records-title .batch-button { justify-content: center; }
      .restock-box { display: grid; grid-template-columns: 1fr auto; }
      .restock-box .stock-readout { grid-column: 1 / -1; }
      .form-config-panel .panel-title { align-items: flex-start; flex-direction: column; }
      .form-field-row { grid-template-columns: 28px 1fr; }
      .form-field-row .admin-field, .form-field-actions { grid-column: 2; grid-row: auto; }
      .form-field-actions { justify-content: flex-start; flex-wrap: wrap; }
    }
