:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#203b34;background:#f3f5f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:940px;margin:auto;padding:32px 24px}header,.brand,.section-title,.hero-bottom,.record-head,.record-bottom,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}header{margin-bottom:28px}.brand{justify-content:start}.logo{display:grid;place-items:center;width:48px;height:48px;background:#e0e9de;border-radius:16px;font-size:28px}h1{font-size:26px;margin:0 0 3px}small,.hint{color:#78847b;font-size:12px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dce3da;border-radius:10px;padding:10px 14px;background:#fff;color:#29473c;min-height:44px}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a6be76;outline-offset:2px}.primary{background:#cfed89;border-color:#cfed89;color:#233f2d;font-weight:650}.hero{padding:28px 30px;border-radius:22px;background:#153f36;color:#fff;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;border:1px solid #ffffff12;border-radius:50%;width:250px;height:250px;right:-60px;top:-75px;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2px;color:#bbd1c5}.hero p{font-size:14px;margin:25px 0 8px;color:#d5e1d9}.hero p span{margin-left:8px;font-size:11px;opacity:.65}.hero h2{font-size:44px;letter-spacing:-1px;margin:0 0 24px;font-weight:600;font-variant-numeric:tabular-nums}.hero-bottom{font-size:12px;color:#d3e4d7;border-top:1px solid #ffffff20;padding-top:16px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0 26px}.metrics article{background:#fff;border:1px solid #e4e8df;border-radius:14px;padding:18px}.metrics strong{display:block;margin-top:10px;font-size:21px;overflow-wrap:anywhere}.panel{background:#fff;border:1px solid #e4e8df;border-radius:18px;padding:22px;margin-bottom:20px}.section-title h2{font-size:17px;margin:0}.section-title h2 small{font-weight:400}.chart{display:flex;gap:12px;margin-top:24px;align-items:end;min-height:132px}.bar-column{flex:1;text-align:center;min-width:0;font-size:11px;color:#758176}.bar-track{height:72px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #e5eade;margin:8px 0}.bar{width:55%;max-width:44px;border-radius:5px 5px 0 0;background:#b6d58d;min-height:2px}.bar.loss{background:#dcac96}.bar-column b{font-size:11px;font-weight:500;white-space:nowrap}.filters{display:flex;gap:8px;margin:20px 0 14px}.filters input:first-child{flex:1;min-width:0}.filters input[type=month]{width:160px}input,select,textarea{border:1px solid #dde3d9;background:#fafbf8;border-radius:9px;padding:12px;width:100%;color:#263e33;min-height:44px}.tabs{display:flex;gap:6px;margin-bottom:8px;overflow:auto}.tabs button{border:0;background:transparent;color:#7b857b;white-space:nowrap}.tabs button.active{color:#244b36;background:#edf3e5;font-weight:600}.record{padding:19px 0;border-bottom:1px solid #eef0e9}.record:last-child{border:0}.record h3{font-size:15px;margin:8px 0;overflow-wrap:anywhere}.record-meta,.record-bottom{font-size:12px;color:#7d867d}.badge{font-size:11px;padding:4px 8px;border-radius:6px;background:#eff2ea;color:#667c5c}.badge.pending{background:#fbf2df;color:#987b3a}.record-amount{font-size:17px;font-weight:600;color:#334c3a}.loss-text{color:#a56c55}.record-bottom{margin-top:12px}.record-bottom button{min-height:36px;padding:6px 10px;font-size:12px}.note{font-size:12px;color:#7c8378;white-space:pre-wrap;overflow-wrap:anywhere}.empty{text-align:center;padding:35px 10px;color:#7b887c}.empty span{font-size:30px;display:block;margin-bottom:12px}footer{text-align:center;color:#8b9488;font-size:11px;padding:12px 0 28px}dialog{border:0;border-radius:20px;padding:24px;width:calc(100% - 28px);max-width:470px;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#10251c88;backdrop-filter:blur(3px)}label{display:block;font-size:13px;margin-top:18px}label input,label select,label textarea{margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.save{width:100%;margin-top:10px}.error{color:#a54736;font-size:13px}.hint{line-height:1.7}.wide{display:block;width:100%;margin:12px 0}.import-label{border:1px dashed #bbcab0;padding:14px;border-radius:10px}.danger{background:#a54736;color:white;border:0}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#203c31;color:white;padding:12px 20px;border-radius:12px;font-size:13px;display:none;z-index:10;max-width:90%;width:max-content}@media(max-width:600px){main{padding:20px 16px}header{margin-bottom:22px}.hero{padding:24px}.hero h2{font-size:38px}.metrics{gap:8px}.metrics article{padding:14px 10px}.metrics strong{font-size:16px}.metrics small{font-size:11px}.panel{padding:18px 14px}.filters{flex-wrap:wrap}.filters input:first-child{flex-basis:100%}.filters input[type=month]{flex:1}.section-title>small{font-size:10px}.record-head{align-items:flex-start}.record-bottom{align-items:start}.record-bottom>div{display:flex;gap:5px}.chart{gap:5px}.bar-column b{font-size:10px}}

[hidden]{display:none!important}
.smart-actions{display:flex;align-items:center;gap:14px;margin:-10px 0 22px}.smart-actions button{border-color:#c2d4ae;background:#edf3e5;font-weight:600}.smart-actions span{font-size:12px;color:#7b887b}.ticket-section{border:1px solid #dce4d6;background:#f6f8f1;border-radius:12px;padding:14px;margin-top:18px}.check-label{display:flex;align-items:flex-start;gap:8px;line-height:1.6;margin-top:8px}.check-label input{width:20px;min-height:20px;height:20px;margin:0;flex-shrink:0}.leg-card{background:#fff;border:1px solid #dde5d6;border-radius:10px;padding:12px;margin:14px 0}.leg-card label{margin-top:12px;font-size:12px}.leg-card .form-grid{gap:8px}.leg-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px}.leg-heading button{min-height:32px;font-size:12px;padding:5px 8px}.match-candidates{margin-top:12px}.match-candidates button{display:block;width:100%;text-align:left;white-space:normal;font-size:12px;margin:6px 0;line-height:1.6}.match-candidates .chosen{border-color:#6f9542;background:#f1f7e7}.result-message{white-space:pre-wrap;line-height:1.7}.warning{background:#fff3d9;padding:10px;border-radius:8px;color:#8a672d}#ticketPreview{width:100%;max-height:240px;object-fit:contain;margin-top:16px;background:#eff1e9;border-radius:8px}button:disabled{opacity:.5;cursor:wait}dialog{max-width:520px}#prizeResult{white-space:pre-wrap}#ocrWarnings p{margin:8px 0}@media(max-width:600px){.smart-actions{align-items:flex-start;flex-direction:column;gap:8px}.ticket-section{padding:10px}.leg-card{padding:10px}dialog{padding:20px 16px}}

.smart-actions>a{font-size:12px;color:#315943;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}

.phone-ready{background:#eaf0df;border:1px solid #d6e2c8;border-radius:16px;padding:16px;margin:0 0 20px}.phone-ready>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.phone-ready small{font-size:11px}.phone-buttons{display:flex;gap:8px;margin-top:12px}.phone-buttons button{flex:1;background:#fffdf6;font-size:13px}.phone-ready p{margin-bottom:0}.hint li{margin:10px 0}#ocrStatus{overflow-wrap:anywhere}
