:root{color:#30201b;background:#f8d7bc;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;--primary:#D62418;--primary-dark:#BC1E14;--text:#30201B;--muted:#6F554B;--border:#E8C9B5;--surface:#FFF9F1;--danger:#98170F}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%;background:#f8d7bc}body{min-height:100svh}button,input{font:inherit}button{min-height:44px}button:focus-visible,input:focus-visible{outline:3px solid rgba(214,36,24,.32);outline-offset:2px}.app-shell,.auth-panel{width:min(100%,480px);margin:0 auto;min-height:100dvh;background-image:url(/assets/brand/shenergy-food-contest-inner.jpg);background-size:100% auto;background-position:top center;background-repeat:no-repeat;padding-bottom:28px}.auth-shell{min-height:100dvh;background-image:url(/assets/brand/shenergy-food-contest-home.jpg);background-size:100% auto;background-position:top center;background-repeat:no-repeat}.auth-panel{background:none;padding-top:430px}.page-header{min-height:64px;padding:14px 20px;display:flex;justify-content:space-between;align-items:center}.brand{font-size:16px;font-weight:750;color:#221412}.account{margin-top:4px;color:var(--muted);font-size:12px}.text-button,.round-back-button{border:0;background:transparent;color:var(--primary);cursor:pointer;font-weight:700}.auth-panel form h1,.intro-section h1,.result-heading h1,.round-selection-heading h1{margin:0;color:#221412;font-size:27px;line-height:1.3}.auth-panel form p,.intro-section p,.result-heading p,.round-selection-heading p{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.65}.auth-panel form{margin:0 20px;padding:20px;border-radius:18px;background:#fffdf8f0}.field-label{display:block;margin-bottom:8px;font-size:14px;font-weight:700}.name-field,.admin-password{width:100%;height:52px;border:1px solid var(--border);border-radius:12px;background:#fffdf8}.name-field{display:flex;align-items:center;overflow:hidden}.name-field span{padding:0 14px;border-right:1px solid var(--border);color:var(--muted)}.name-field input{flex:1;min-width:0;height:100%;border:0;outline:0;padding:0 14px;background:transparent;font-size:16px}.primary-button,.secondary-button,.reset-button{border-radius:12px;font-size:15px;font-weight:750;cursor:pointer;padding:0 18px}.primary-button{color:#fff;background:var(--primary);border:1px solid var(--primary)}.primary-button:hover:not(:disabled){background:var(--primary-dark)}.secondary-button{color:var(--primary);background:var(--surface);border:1px solid var(--primary)}.primary-button:disabled,.secondary-button:disabled,.reset-button:disabled{background:#ead1cc;border-color:#ead1cc;color:#96766f;cursor:not-allowed}.full-width{width:100%;margin-top:18px}.test-note{margin:14px 20px 0;text-align:center;color:#92776c;font-size:12px}.error-banner,.success-banner{margin:0 20px 16px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.5}.error-banner{border:1px solid #E5A9A1;background:#fff0ed;color:#98170f}.success-banner{background:#f0f8ee;color:#356b38}.round-selection-heading{margin:300px 20px 18px;padding:20px;border-radius:18px;background:#fffdf8f0}.round-selection-list{padding:0 20px;display:grid;gap:12px}.round-selection-button{width:100%;padding:16px;display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:14px;background:#fffdf8f5;color:#221412;text-align:left;cursor:pointer}.round-selection-button:hover:not(:disabled){border-color:var(--primary)}.round-index{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fbe2d9;color:var(--primary);font-weight:800}.round-selection-copy{flex:1}.round-selection-copy strong,.round-selection-copy small{display:block}.round-selection-copy strong{font-size:19px}.round-selection-copy small{margin-top:4px;color:var(--primary);font-size:12px}.round-selection-note,.readonly-note,.admin-tip{margin:18px 20px;padding:14px 16px;border-radius:12px;background:#fffdf8db;color:var(--muted);font-size:13px;line-height:1.5}.round-back-button{width:100%;padding:0 20px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--border);text-align:left}.intro-section{margin:18px 20px;padding:20px;border-radius:18px;background:#fffdf8f2}.intro-section h1{font-size:23px}.vote-status{margin-top:18px;display:flex;gap:10px}.vote-status span{flex:1;padding:12px;border-radius:10px;background:#fbe8d9;color:var(--muted);font-size:13px}.vote-status strong{color:var(--primary);font-size:19px}.candidate-list{margin:0 20px;border-radius:14px;overflow:hidden}.candidate-row{min-height:104px;padding:16px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--border);background:#fffdf8f7}.candidate-row.selected{box-shadow:inset 4px 0 var(--primary);background:#fff8f2}.candidate-number{color:#92776c;font-size:13px;font-weight:800}.candidate-copy{min-width:0}.candidate-copy h2,.result-row h2{margin:0;font-size:16px;color:#221412}.candidate-copy p,.result-row p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.stepper{display:grid;grid-template-columns:38px 28px 38px;align-items:center;gap:2px}.stepper button{width:38px;height:38px;border:1px solid var(--primary);border-radius:10px;background:var(--surface);color:var(--primary);font-size:23px}.stepper button:disabled{border-color:#ead1cc;color:#96766f;background:#ead1cc}.stepper output{text-align:center;font-weight:800}.submit-bar{position:sticky;bottom:0;z-index:5;margin-top:14px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);background:#fff9f1f7;box-shadow:0 -5px 18px #7837231f}.submit-bar strong,.submit-bar span{display:block}.submit-bar strong{font-size:13px}.submit-bar span{margin-top:3px;color:var(--muted);font-size:11px}.submit-button{min-width:112px}.modal-backdrop{position:fixed;inset:0;z-index:20;padding:20px;display:grid;place-items:center;background:#22141285}.modal{width:min(100%,420px);padding:24px;border-radius:18px;background:#fffdf8;box-shadow:0 24px 60px #22141240}.modal h2{margin:0;font-size:20px}.modal p{margin:12px 0 22px;color:var(--muted);font-size:14px;line-height:1.6}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.result-heading{text-align:center;margin:22px 20px;padding:24px;border-radius:18px;background:#fffdf8f2}.success-mark{width:52px;height:52px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%;background:#fbe2d9;color:var(--primary);font-size:28px;font-weight:800}.result-summary,.result-list{margin:0 20px;border-radius:14px;background:#fffdf8f5}.result-summary{padding:18px;display:flex;justify-content:space-between}.result-summary strong,.result-row>strong{color:var(--primary);font-size:20px}.result-list{border:1px solid var(--border);overflow:hidden}.result-row{padding:18px;display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border)}.result-row:last-child{border:0}.submitted-time{margin:16px 20px;color:var(--muted);font-size:12px}.admin-shell{width:min(100%,900px);min-height:100dvh;margin:0 auto;background:#f8d7bc}.admin-shell .page-header{background:#fff9f1;border-bottom:1px solid var(--border)}.admin-login,.admin-content{margin:20px;padding:24px;border-radius:18px;background:#fff9f1}.admin-login h1,.admin-content h1{margin:0;font-size:26px}.admin-login>p,.admin-content>p{color:var(--muted);font-size:14px;line-height:1.6}.admin-login form{max-width:420px}.allowlist-panel{margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}.allowlist-add,.allowlist-search{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:16px 0}.allowlist-add .field-label,.allowlist-search .field-label{width:100%}.allowlist-add .admin-password,.allowlist-search .admin-password{flex:1 1 220px}.admin-round-row{min-height:96px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--border);border-radius:14px;margin:14px 0;background:#fffdf8}.admin-round-row h2{margin:0 0 8px;font-size:17px}.admin-round-actions{min-width:160px;display:grid;gap:9px}.admin-round-actions button{width:100%}.status-label{font-size:12px;font-weight:700}.status-label.open{color:#356b38}.status-label.closed{color:var(--muted)}.reset-button{min-height:40px;border:1px solid #C47A70;background:var(--surface);color:#98170f}.destructive-button{background:#98170f}.center-screen{min-height:100dvh;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--muted)}.spinner{width:30px;height:30px;border:3px solid #EAD1CC;border-top-color:var(--primary);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.allowlist-table{display:grid;gap:10px}.allowlist-row{display:grid;grid-template-columns:minmax(9rem,1.5fr) repeat(3,minmax(5rem,1fr)) auto;gap:10px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:12px;background:#fffdf8}@media(max-width:700px){.candidate-row{grid-template-columns:26px minmax(0,1fr)}.stepper{grid-column:2;margin-top:2px}.admin-round-row{align-items:stretch;flex-direction:column}.admin-round-actions{width:100%}.allowlist-row{grid-template-columns:1fr 1fr}.auth-panel{padding-top:390px}.round-selection-heading{margin-top:230px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation-duration:.01ms!important}}:root{--header-align:flex-end}.page-header{justify-content:var(--header-align);gap:12px}.header-spacer{flex:1;min-height:38px}.header-account{text-align:right}.success-mark{width:max-content;min-height:36px;height:auto;padding:7px 14px;border:1px solid #E5A9A1;border-radius:999px;font-size:14px}.auth-panel{padding-top:clamp(285px,88vw,425px)}.auth-panel form{margin:0 3%;padding:18px;border-radius:16px}.auth-panel form h1{margin:0;color:#221412;font-size:24px;line-height:1.3}.auth-panel form>p:not(.test-note){margin:8px 0 14px;color:var(--muted);font-size:13px;line-height:1.5}.auth-panel form .error-banner{margin:0 0 12px}.auth-panel form .test-note{margin:12px 0 0}.admin-shell .page-header{justify-content:space-between}.admin-shell .page-header .header-spacer{display:none}@media(max-width:700px){.admin-shell .page-header{display:grid;grid-template-columns:1fr auto;align-items:start}.admin-shell .page-header>div:first-child{min-width:0}.admin-shell .brand{line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.admin-shell .account{line-height:1.4}.admin-shell .admin-link{grid-column:1/-1;justify-self:start;padding-left:0}}html,body,#root{overflow-x:hidden}body{overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}.app-shell,.candidate-list,.candidate-row,.submit-bar{touch-action:pan-y}.page-header{display:grid;grid-template-columns:minmax(132px,1fr) minmax(0,auto);align-items:start;gap:12px;min-height:92px}.header-spacer{min-width:132px}.header-controls{display:grid;justify-items:end;gap:8px;min-width:0}.header-account-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:44px}.header-account{min-width:0;text-align:right}.header-back-button{min-height:44px;padding:0 14px;border:1px solid rgba(214,36,24,.45);border-radius:999px;background:#fffdf8c7;color:var(--primary);font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer}.round-selection-heading{margin-top:clamp(72px,10svh,92px)}.round-back-button{display:none}.vote-totals-panel{margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}.admin-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.admin-section-heading h2{margin:0;font-size:20px}.admin-section-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.vote-totals-table{margin-top:16px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fffdf8}.vote-totals-row{display:grid;grid-template-columns:minmax(140px,1.5fr) repeat(3,minmax(72px,1fr));align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border);font-size:14px}.vote-totals-row:last-child{border-bottom:0}.vote-totals-header{background:#fbe8d9;color:var(--muted);font-size:12px;font-weight:750}.vote-totals-row span:not(:first-child),.vote-totals-row .vote-total{text-align:center}.vote-work{display:grid;gap:3px;min-width:0}.vote-work small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.vote-total{color:var(--primary)}.allowlist-row{grid-template-columns:minmax(9rem,1fr) auto}@media(max-width:700px){.admin-section-heading{align-items:stretch;flex-direction:column}.admin-section-heading button{width:100%}.vote-totals-table{overflow-x:auto}.vote-totals-row{min-width:480px}.allowlist-row{grid-template-columns:1fr auto}}.vote-rule-copy{font-weight:750;color:var(--primary)!important;line-height:1.7!important}.candidate-list{margin:0 16px;border-radius:0;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.candidate-row{min-height:96px;padding:10px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:12px;background:#fffdf8f7}.candidate-row.selected{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary),inset 0 0 14px #d6241817;background:#fff8f2}.candidate-copy{min-width:0;flex:1;display:flex;align-items:flex-start;overflow:hidden}.candidate-copy h2{display:block;min-width:0;width:100%;overflow:hidden;margin:0;color:#221412;font-size:15px;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}.stepper{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;margin-top:auto}.stepper button{width:44px;height:44px;border:1px solid var(--primary);border-radius:10px;background:var(--surface);color:var(--primary);font-size:22px}.result-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 20px;background:transparent;border:0;border-radius:0;overflow:visible}.result-grid .result-row{min-height:68px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:12px;background:#fffdf8f7}.result-grid .result-row h2{min-width:0;overflow:hidden;text-overflow:ellipsis;margin:0;color:#221412;font-size:17px;line-height:1.2;white-space:nowrap}.result-grid .result-row>strong{color:var(--primary);font-size:18px;white-space:nowrap}@media(max-width:360px){.result-grid{margin-left:16px;margin-right:16px}.result-grid .result-row{padding-left:12px;padding-right:12px}.result-grid .result-row h2{font-size:16px}.result-grid .result-row>strong{font-size:17px}}@media(max-width:700px){.candidate-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:16px;margin-right:16px;gap:8px}.candidate-row{grid-template-columns:none;min-height:96px;padding:10px;gap:8px}.stepper{grid-column:auto;margin-top:auto;width:100%;grid-template-columns:44px minmax(0,1fr) 44px}.stepper button{width:44px;height:44px}}
