:root{font-family:Noto Sans Thai,Thonburi,Tahoma,system-ui,sans-serif;color:#253732;background:#f5f7f8;font-synthesis:none;font-size:16px;--ink:#173c32;--green:#197453;--lime:#caf489;--muted:#77847f;--line:#e7ece9;--surface:#fff;--radius:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #82b253;outline-offset:3px}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}input,select,textarea{width:100%;border:1px solid #dbe3de;border-radius:9px;padding:11px 13px;color:#253732;background:#fff;min-height:45px}input::placeholder,textarea::placeholder{color:#88958f}textarea{resize:vertical}label{display:flex;flex-direction:column;gap:8px;font-size:.875rem;font-weight:500}small{display:block;font-size:.75rem;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid #dce5df;border-radius:9px;background:#fff;color:var(--ink);font-size:.875rem;font-weight:600;white-space:nowrap}.button:hover{background:#f1f6ef}.button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.button.primary:hover{background:#245b46}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;background:transparent;color:inherit;border:0;border-radius:9px}.icon-button:hover{background:#edf3ef}.icon-button.bordered{border:1px solid #dce5df;background:#fff;width:44px;height:44px}.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--green);font-size:.875rem;font-weight:600;padding:5px 0}.text-button:hover{text-decoration:underline}.text-button.muted{color:#849087;font-weight:400}.eyebrow{display:block;letter-spacing:.14em;font-size:.75rem;color:#658276;font-weight:650;margin-bottom:9px}.brand{display:flex;align-items:center;gap:11px;font-family:Arial,sans-serif;font-size:1.8rem;line-height:1;font-weight:700;letter-spacing:-1px}.brand-mark{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:var(--lime);color:#214938}.brand-light{font-weight:400}.brand small{color:inherit;opacity:.55;font-size:.5rem;letter-spacing:1.8px;margin-top:8px}.shell{display:flex;min-height:100vh}.sidebar{width:230px;position:fixed;inset:0 auto 0 0;padding:33px 20px 0;background:#122b28;color:#e5eee8;display:flex;flex-direction:column;z-index:10}.sidebar .brand{margin:0 2px 49px}.nav-label{color:#97ada4;font-size:.75rem;padding:0 13px;margin-bottom:14px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.sidebar nav button{border:0;background:transparent;color:#a5bcb1;display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px;border-radius:9px;font-size:.875rem;min-height:48px}.sidebar nav button:hover{background:#1c3a33}.sidebar nav button.active{background:#c8eea2;color:#1f3f2e;font-weight:600}.sidebar nav button svg:last-child:not(:first-child){margin-left:auto}.nav-count{margin-left:auto;border-radius:5px;padding:0 7px;font-size:.75rem;background:#ffffff15}.sidebar-bottom{margin-top:auto}.manual-note{margin:25px 5px;padding:16px 11px;border:1px solid #ffffff13;border-radius:10px;font-size:.75rem;color:#c5d6cb}.manual-note p{margin-top:8px;color:#8da49a;line-height:1.7;padding-left:16px}.live-dot{width:7px;height:7px;background:#9dda74;border-radius:50%;display:inline-block;margin-right:8px}.profile{border-top:1px solid #ffffff15;display:flex;align-items:center;gap:10px;padding:22px 0}.profile strong{font-size:.875rem;font-weight:500;display:block;max-width:94px;overflow:hidden;text-overflow:ellipsis}.profile small{color:#93aaa0}.profile .icon-button{margin-left:auto;width:30px;color:#9bb1a7}.profile .icon-button:hover{background:#27493d}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#e9f0e6;color:#557145;border:1px solid #dce8d6;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:.875rem;font-weight:600}.profile .avatar{background:#385449;border-color:#486151;color:#d6e8c4}.workspace{margin-left:230px;min-width:0;flex:1}.topbar{height:75px;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:#91a097}.topbar>span{display:flex;align-items:center;gap:12px}.topbar strong{font-weight:500;color:#5f7369}.topbar .top-status{color:#627c68;gap:0;background:#f4f8ef;padding:6px 11px;border-radius:6px;font-size:.75rem}.content{padding:32px 38px 0;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading h1{font-size:1.8rem;letter-spacing:-.6px;line-height:1.4;font-weight:650}.page-heading p{font-size:.875rem;color:#7b8880;margin-top:7px}.heading-actions{display:flex;gap:9px;align-items:center}.date-control input{font-size:.875rem;padding:10px 12px;width:151px;height:44px;min-height:44px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{padding:21px 21px 19px;border-radius:var(--radius);border:1px solid var(--line);background:#fff;min-width:0}.stat-title{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:.875rem;color:#6d7b72}.stat-icon{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:9px;background:#f1f5ee;color:#668053}.stat-icon svg{width:18px;height:18px}.stat.green .stat-icon{background:#eaf6ee;color:#218059}.stat.orange .stat-icon{background:#fff1e7;color:#c7814e}.stat-number{font-family:Arial,Noto Sans Thai,sans-serif;font-size:clamp(1.45rem,2vw,2.15rem);font-weight:600;letter-spacing:-1px;white-space:nowrap;margin-top:13px;line-height:1.5;overflow-wrap:anywhere}.stat-number>span{font-size:1.2rem;font-weight:400;color:#8c9d92;margin-right:7px}.stat-number small{display:inline-block;font-family:Noto Sans Thai,sans-serif;font-size:.875rem;font-weight:400;letter-spacing:0;margin-left:9px}.stat p{font-size:.75rem;margin-top:10px;color:#89928c}.stat.dark{background:#173f34;border-color:#173f34;color:#eff8ea;position:relative}.stat.dark .stat-title{color:#b7cdbf}.stat.dark .stat-icon{background:#ffffff13;color:#c9eea3}.stat.dark .stat-number>span{color:#b4cba9}.stat.dark p{color:#a7bfb0}.middle-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(270px,1fr);gap:23px;margin-bottom:24px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 23px 17px}.panel-heading h2{font-size:1rem;font-weight:600}.panel-heading p{font-size:.75rem;color:#8b958e;margin-top:5px}.legend{display:flex;gap:13px;font-size:.75rem;color:#819087}.legend span{display:flex;align-items:center;gap:6px;white-space:nowrap}.legend i,.kind-dot{display:inline-block;width:8px;height:8px;border-radius:3px}.in-dot{background:#699b65}.out-dot{background:#d4dfbd}.chart{height:200px;padding:12px 23px 22px;display:flex;gap:18px}.chart-scale{font-family:Arial,sans-serif;font-size:.75rem;color:#9ca79f;display:flex;flex-direction:column;justify-content:space-between;width:58px;padding-bottom:23px;text-align:right}.chart-plot{flex:1;position:relative;min-width:0}.chart-lines{position:absolute;top:0;right:0;bottom:24px;left:0;display:flex;flex-direction:column;justify-content:space-between}.chart-lines i{width:100%;border-top:1px dashed #e6ece5}.chart-bars{position:relative;display:flex;justify-content:space-around;gap:7px;height:100%}.chart-day{display:flex;flex-direction:column;align-items:center;width:12%;gap:9px;font-size:.75rem;color:#8a978c;white-space:nowrap}.bar-pair{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:5px;height:calc(100% - 25px);width:100%;border-radius:5px}.bar{width:21px;max-width:35%;border-radius:4px 4px 0 0;min-height:2px;z-index:1}.bar.in{background:#719b61}.bar.out{background:#d6e2bd}.current-day{color:#3e6e39;font-weight:600}.chart-tip{display:none;position:absolute;z-index:4;bottom:35%;left:50%;transform:translate(-50%);background:#163b31;color:#fff;border-radius:8px;padding:9px 12px;font-size:.75rem;box-shadow:0 5px 15px #122b2820}.bar-pair:hover .chart-tip,.bar-pair:focus-visible .chart-tip{display:block}.chart-zero{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:6px 13px;color:#89998d;font-size:.875rem;white-space:nowrap;pointer-events:none}.breakdown .panel-heading{padding-bottom:10px}.breakdown .panel-heading svg{color:#91a191}.breakdown-row{display:flex;align-items:center;justify-content:space-between;padding:8px 23px;font-size:.875rem}.breakdown-row>span{display:flex;align-items:center;gap:10px;color:#7a897e}.breakdown-row strong{font-family:Arial,sans-serif;font-weight:500}.kind-dot.deposit{background:#638d54}.kind-dot.withdrawal{background:#d89665}.kind-dot.income{background:#91b58b}.kind-dot.expense{background:#ddc392}.profit-row{border-top:1px dashed #dfe7de;margin:10px 23px 0;padding-top:13px;display:flex;justify-content:space-between;font-size:.875rem}.profit-row strong{font-family:Arial,sans-serif;color:#386a35}.footnote{font-size:.75rem;color:#929c93;margin:8px 23px 19px}.count{display:inline-block;background:#f0f4ec;border:1px solid #e4eadd;border-radius:6px;padding:0 7px;font-size:.75rem;color:#7a8b6b;margin-left:5px}.search{position:relative;display:flex;flex-direction:row;align-items:center;gap:8px;border:1px solid #e5eae5;border-radius:8px;padding:0 11px;max-width:260px;min-width:0;color:#8d9a90}.search input{border:0;min-height:35px;padding:7px 0;font-size:.75rem;min-width:0;background:transparent}.search:focus-within{outline:2px solid #a6c78e}.search input:focus-visible{outline:none}.filter-row{display:flex;align-items:center;gap:7px;padding:0 23px 17px}.filter-row button{border:1px solid transparent;background:transparent;color:#839083;padding:6px 13px;border-radius:6px;font-size:.875rem;min-height:34px}.filter-row button.selected{background:#edf4e7;color:#52753b;border-color:#e3ecd9;font-weight:600}.filter-row button:hover{background:#f2f6ef}.filter-row>span{margin-left:auto;color:#97a092;font-size:.75rem}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#f8faf7;color:#8c988d;font-size:.75rem}th{font-weight:400;padding:12px 19px;border-top:1px solid #edf0e9;border-bottom:1px solid #edf0e9}td{padding:16px 19px;border-bottom:1px solid #edf1eb;font-size:.875rem}th:first-child,td:first-child{padding-left:23px}th:last-child,td:last-child{padding-right:23px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}.person,.person-button{display:flex;align-items:center;gap:10px;text-align:left}.person-button{border:0;background:transparent;padding:0;color:inherit}.person-button:hover strong{color:var(--green);text-decoration:underline}.person strong,.person-button strong{font-weight:500;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:block}.person small,.person-button small{font-family:Arial,sans-serif;font-size:.75rem;margin-top:4px}.note-cell{white-space:normal;min-width:120px;max-width:250px;overflow-wrap:anywhere;color:#859080}.note-cell small{font-size:.75rem;margin-top:4px}.align-right{text-align:right}.amount{font-family:Arial,sans-serif;font-weight:600;font-size:.875rem}.positive{color:#478052}.negative{color:#bc8755}.badge{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;padding:4px 10px;border-radius:6px;white-space:nowrap}.badge.deposit,.badge.green{background:#edf5e8;color:#5f8251}.badge.withdrawal{background:#fdf1e5;color:#bf8b56}.badge.income{background:#eaf3f0;color:#468771}.badge.expense{background:#fbefeb;color:#b77763}.badge.neutral{background:#f0f3ee;color:#73846b}.status{display:inline-flex;align-items:center;gap:6px;color:#7e9870;font-size:.75rem}.status i{width:5px;height:5px;background:#8daa72;border-radius:50%}.status.void{color:#93958c}.status.void i{background:#aca99f}.void-row .amount{text-decoration:line-through;opacity:.6}.table-footer{padding:13px 23px;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;font-size:.75rem;color:#929e92}.empty{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;text-align:center;gap:8px}.empty-icon{display:grid;place-items:center;width:55px;height:55px;border:1px solid #e3eade;background:#f5f8f0;color:#849b71;border-radius:16px;margin-bottom:5px}.empty h3{font-size:.9375rem;font-weight:550}.empty p{font-size:.875rem;color:#8c988b;max-width:360px}.empty>.button,.empty>.text-button{margin-top:8px}.page-footer{display:flex;justify-content:space-between;gap:20px;font-size:.75rem;color:#9aa59b;padding:22px 0}.page-footer>span:first-child{font-family:Arial,sans-serif}.modal{padding:25px;border:1px solid #dce5da;border-radius:18px;width:480px;max-width:calc(100vw - 28px);max-height:90dvh;color:#263d30;box-shadow:0 24px 100px #112c3040}.modal::backdrop{background:#102a2866;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal h2{font-size:1.2rem;font-weight:600}.modal form,.login form{display:flex;flex-direction:column;gap:17px}.modal fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}.form-hint{font-size:.75rem;color:#83907d;line-height:1.7}.checkbox-label{flex-direction:row;align-items:center}.checkbox-label input{width:18px;min-height:18px;accent-color:var(--green)}.error{background:#fff0ea;color:#a14b2b;border:1px solid #efd6c9;border-radius:8px;padding:11px 14px;font-size:.875rem;margin-bottom:12px}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%);background:#193c2f;color:#e0f4d2;border:1px solid #3d6046;border-radius:11px;box-shadow:0 6px 30px #193c2f25;padding:13px 20px;display:flex;align-items:center;gap:10px;font-size:.875rem;z-index:50;max-width:90vw}.no-results{padding:30px;text-align:center;color:var(--muted)}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:#173c32}.boot p{font-size:.875rem;color:#7d8f83}.login{display:grid;grid-template-columns:45% 55%;min-height:100dvh;background:#fff}.login-story{padding:50px 60px;background:#122f29;color:#eff8e7;display:flex;flex-direction:column;justify-content:space-between;gap:60px;overflow:hidden}.login-story .eyebrow{color:#9ebd8a;font-size:.75rem;letter-spacing:.18em}.login-story h1{font-size:clamp(2.5rem,4vw,4.3rem);line-height:1.4;letter-spacing:-1.5px;font-weight:550;margin:20px 0}.login-story p{color:#a6beb1;font-size:1rem;line-height:1.9}.login-foot{display:flex;align-items:center;gap:9px;color:#a3bba7;font-size:.875rem}.story-line{display:flex;height:130px;gap:15px;align-items:flex-end;margin-top:38px;opacity:.65}.story-line span{width:28px;border-radius:6px 6px 0 0;background:#b8dc8d;height:30%}.story-line span:nth-child(2){height:48%;background:#698b60}.story-line span:nth-child(3){height:39%}.story-line span:nth-child(4){height:72%;background:#698b60}.story-line span:nth-child(5){height:63%}.story-line span:nth-child(6){height:88%;background:#698b60}.story-line span:nth-child(7){height:100%}.login-form{display:flex;align-items:center;justify-content:center;padding:45px}.login-card{width:100%;max-width:390px}.login-card h2{font-size:1.85rem;font-weight:650;margin:19px 0 9px}.login-card>p{font-size:.875rem;color:#7d8d81;line-height:1.8}.login form{margin-top:30px}.login form .button{width:100%;margin-top:8px}.login-note{text-align:center;margin-top:24px;font-size:.75rem!important}@media(min-width:1600px){.content{padding-top:45px}.stats{gap:23px}.stat{padding:25px}.chart{height:230px}}@media(max-width:1200px){.sidebar{width:205px;padding:28px 16px 0}.workspace{margin-left:205px}.content{padding:26px 24px 0}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:17px 14px}.stat-number{font-size:1.6rem}.stat-title{font-size:.875rem}.stat p{font-size:.75rem}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.middle-grid{gap:16px}.legend{gap:8px}.panel-heading{padding-left:18px;padding-right:18px}.login-story{padding:40px}.chart-scale{width:43px}.chart{gap:12px}}@media(max-width:960px){.sidebar{width:180px}.sidebar .brand{font-size:1.5rem;gap:8px}.brand-mark{width:36px;height:36px}.brand small{font-size:.375rem}.workspace{margin-left:180px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-number{font-size:1.85rem}.stat p{font-size:.75rem}.middle-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:1.5rem}.heading-actions{max-width:225px}.breakdown{display:grid;grid-template-columns:1fr 1fr}.breakdown .panel-heading,.profit-row,.footnote{grid-column:1/-1}.chart{height:220px}.login-story{padding:32px}.login-form{padding:30px}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;width:auto;padding:17px 18px;background:#122b28}.sidebar .brand{margin:0 0 18px;font-size:1.5rem}.sidebar .brand small{font-size:.5rem}.sidebar .brand-mark{width:37px;height:37px}.nav-label,.manual-note{display:none}.sidebar nav{flex-direction:row;gap:7px}.sidebar nav button{justify-content:center;gap:7px;padding:9px 10px;min-height:40px;font-size:.875rem;white-space:nowrap}.sidebar nav button svg{width:17px}.sidebar nav button svg:last-child:not(:first-child){display:none}.nav-count{display:none}.sidebar-bottom{position:absolute;right:16px;top:15px}.profile{padding:0;border:0;gap:8px}.profile .avatar{display:none}.profile strong{max-width:100px;font-size:.75rem}.profile small{font-size:.75rem}.workspace{margin-left:0}.topbar{height:48px;padding:0 18px;font-size:.75rem}.topbar .top-status{font-size:.75rem;padding:4px 7px}.content{padding:23px 17px 0}.page-heading{flex-wrap:wrap;gap:17px;margin-bottom:20px}.page-heading h1{font-size:1.65rem}.page-heading .eyebrow{font-size:.75rem;margin-bottom:5px}.heading-actions{width:100%;max-width:none;justify-content:flex-start}.heading-actions>.primary{margin-left:auto}.date-control input{width:141px}.stats{gap:10px;margin-bottom:17px}.stat{padding:15px 13px}.stat-title{font-size:.75rem}.stat-icon{width:26px;height:26px}.stat-icon svg{width:15px;height:15px}.stat-number{font-size:clamp(1.25rem,5vw,1.85rem);letter-spacing:-.6px;margin-top:12px}.stat-number>span{font-size:.9375rem;margin-right:4px}.stat-number small{font-size:.75rem;margin-left:6px}.stat p{font-size:.75rem;line-height:1.7;margin-top:6px}.middle-grid{gap:17px;margin-bottom:17px}.panel-heading{padding:18px 15px 14px;flex-wrap:wrap}.panel-heading h2{font-size:.9375rem}.legend{font-size:.75rem}.chart{padding:10px 16px 18px;height:185px;gap:9px}.chart-scale{font-size:.75rem;width:44px}.chart-day{font-size:.75rem}.bar-pair{gap:3px}.chart-zero{font-size:.75rem}.breakdown-row{padding:8px 16px;font-size:.75rem;gap:10px}.profit-row{margin-left:16px;margin-right:16px}.footnote{margin-left:16px}.search{max-width:none;width:100%}.filter-row{padding:0 15px 14px;gap:3px}.filter-row button{font-size:.75rem;padding:6px 9px}.filter-row>span{display:none}.table-footer{padding:12px 15px;font-size:.75rem;align-items:flex-start}.page-footer{font-size:.75rem;gap:12px;flex-wrap:wrap}.toast{left:50%;font-size:.875rem;width:max-content}.login{display:block}.login-story{padding:24px;gap:27px}.login-story>div:nth-child(2){display:none}.login-foot{display:none}.login-form{padding:35px 24px}.login-card h2{font-size:1.65rem}.modal{padding:20px}.form-grid{gap:8px}td{padding:14px 16px}.empty{min-height:225px}.empty p{font-size:.75rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.member-actions{display:flex;gap:18px}.credit-panel{padding:18px;margin-bottom:22px}.credit-panel .panel-heading{padding:0 0 16px}.credit-balance{font-size:1.6rem;color:var(--green);overflow-wrap:anywhere}.credit-panel>.text-button{margin-bottom:16px}.credit-panel fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:16px;min-width:0}.credit-history{margin-top:18px;font-size:.875rem}.credit-history summary{cursor:pointer}.credit-history ul{list-style:none;padding:0;margin:12px 0 0}.credit-history li{padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.credit-history p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.credit-success{color:var(--green);margin-bottom:12px}.modal .credit-panel{border:0;padding:0;margin:0}.live-page{display:flex;flex-direction:column;gap:20px}.live-controls{padding:22px}.live-controls .panel-heading{padding:0 0 20px}.live-controls h2{display:flex;align-items:center;gap:9px}.live-group{display:flex;align-items:flex-end;gap:12px;margin-bottom:15px}.live-group label{flex:1;min-width:0}.live-round-heading{display:flex;align-items:center;gap:12px;margin-top:22px}.live-round-heading h3{font-size:1.35rem}.live-group-id{overflow-wrap:anywhere;margin-top:8px}.live-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.live-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.live-result{display:flex;flex-direction:column;align-items:center;gap:12px;border:2px solid #dce5df;border-radius:16px;padding:25px 12px;background:#fff;color:var(--ink)}.live-result strong{font-size:2.7rem;line-height:1.3}.live-result span,.live-result small{font-size:.85rem}.live-result.dragon{background:#eef6f0}.live-result.tiger{background:#fff4e8}.live-result.pair{background:#edf1fb}.live-result.tie{background:#f4eef9}.live-result.selected{border-color:var(--green);box-shadow:0 0 0 3px #19745320}.live-result:disabled{cursor:default;opacity:.65}.live-confirm{padding:22px;display:flex;flex-direction:column;gap:15px}.live-confirm p{font-size:.875rem;line-height:1.8}.live-confirm .live-actions{margin-top:0}@media(max-width:700px){.sidebar nav{flex-wrap:wrap}.sidebar nav button{width:auto;flex:1}.live-results{grid-template-columns:repeat(2,minmax(0,1fr))}.live-group{flex-direction:column;align-items:stretch}.live-result{padding:20px 10px}.live-controls{padding:16px}}.login-switch{display:block;margin:22px auto 0;text-align:center;line-height:1.7}.line-settings{padding:24px;max-width:850px}.line-settings .panel-heading{padding:0 0 22px;gap:14px;flex-wrap:wrap}.line-settings fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:18px;min-width:0}.line-settings fieldset>.button{align-self:flex-start}.line-settings input,.line-settings textarea{width:100%;min-width:0}.webhook-box{display:flex;align-items:flex-end;gap:12px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.webhook-box label{flex:1;min-width:0}.connection-steps{padding-left:22px;margin:24px 0 0;font-size:.875rem;line-height:1.9}.connection-steps li{padding:4px 0}.connection-steps a{color:var(--green)}@media(max-width:700px){.line-settings{padding:18px}.webhook-box{flex-direction:column;align-items:stretch}.sidebar nav{overflow-wrap:anywhere}}.live-workspace{background:#080f20;color:#eee9dc;--ink:#eee9dc;--muted:#a7b2c6;--line:#29354b;--green:#efcf83;--surface:#111d32}.live-workspace .topbar{background:#0c1527;border-color:#29354b;color:#a7b2c6}.live-workspace .topbar strong,.live-workspace .page-heading h1{color:#fff0c5}.live-workspace .eyebrow{color:#d4b568}.live-workspace .page-heading p{color:#a7b2c6}.live-workspace .icon-button.bordered{background:#17243a;border-color:#46506a;color:#efcf83}.live-page{gap:22px}.live-page .panel{background:#111d32;border:1px solid #303e54;box-shadow:0 8px 30px #0002;border-radius:18px;overflow:hidden}.live-page .panel-heading{border-color:#303e54}.live-page h2,.live-page h3{color:#fff0c5}.live-page .form-hint,.live-page .panel-heading p,.live-page .no-results{color:#aab7cc}.live-page .panel-heading p{margin-top:7px}.live-page .live-controls{padding:28px;background:radial-gradient(ellipse at 95% 0,#614b242e,transparent 60%),linear-gradient(125deg,#14243d,#0b1426);border-color:#74603a;position:relative}.live-controls:before{content:"";position:absolute;top:0;left:28px;right:28px;height:2px;background:linear-gradient(90deg,transparent,#f3d68b,transparent)}.live-page select,.live-page textarea{background:#0a1427;color:#edf1f8;border-color:#465371}.live-page .button{background:#17243a;border-color:#58617a;color:#f3e4be}.live-page .button:hover:not(:disabled){background:#263750}.live-page .button.primary{background:linear-gradient(130deg,#ffe8ad,#cf9e44);border-color:#f0d594;color:#1b2030;box-shadow:0 4px 16px #dbad3820}.live-page .button.primary:hover:not(:disabled){background:#ffe8ad}.live-page .button:disabled{cursor:not-allowed}.live-page .live-group .button{min-height:48px;padding-inline:28px}.live-page .live-round-heading{border-top:1px solid #344057;padding-top:23px}.live-page .live-round-heading h3{font-size:2rem;color:#f5d48a}.live-page .badge.green{background:#133c36;color:#a1efd0;border:1px solid #276653}.live-page .badge.neutral{background:#27324b;color:#d3ddef}.live-page .live-actions .button{min-height:46px}.live-page .error{background:#3d2230;color:#ffd1d1;border-color:#804253}.live-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.live-overview>div{border:1px solid #324058;background:linear-gradient(125deg,#18273e,#101b2e);border-radius:15px;padding:20px 24px;display:flex;flex-direction:column;gap:10px}.live-overview span{font-size:.82rem;color:#abb9ce}.live-overview strong{font-size:1.8rem;color:#ffe4a3;overflow-wrap:anywhere}.live-overview small{display:inline;font-size:.78rem;font-weight:400;color:#aab7cc}.live-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}.live-section-title h2{font-size:1.1rem}.live-section-title span{font-size:.78rem;color:#aab7cc}.live-page .live-result{display:block;padding:0;text-align:left;background:#122036;border:1px solid #3b4d67;border-radius:18px;overflow:hidden;color:#f3f5fa;position:relative;transition:transform .18s,border-color .18s,box-shadow .18s}.live-result-art{height:160px;overflow:hidden;position:relative}.live-result-art:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(transparent 45%,#122036)}.live-result-art img{width:100%;height:auto;display:block;margin-top:-6%}.live-result-body{padding:0 20px 22px;position:relative}.live-page .live-result strong{display:block;font-size:2.1rem;line-height:1.5;letter-spacing:0;margin-bottom:4px}.live-page .live-result span{display:block;font-size:.8rem;color:#b9c7da}.live-page .live-result small{margin-top:18px;color:#aebbd0;font-size:.72rem}.live-result b{display:block;font-size:1.35rem;margin-top:4px;overflow-wrap:anywhere}.live-result em{font-size:.7rem;font-weight:400;font-style:normal;color:#b9c7da}.live-page .live-result.dragon strong{color:#8ed9ff}.live-page .live-result.tiger strong{color:#ff9d9d}.live-page .live-result.tie strong{color:#99e8bf}.live-page .live-result.pair strong{color:#ffe298}.live-page .live-result:disabled{opacity:1;cursor:not-allowed}.live-page .live-result:not(:disabled):hover{transform:translateY(-4px);border-color:#f0ce80;box-shadow:0 8px 25px #0005}.live-page .live-result.selected{border-color:#ffdf8d;box-shadow:0 0 0 3px #eabe5045}.live-page .live-confirm{border-color:#c2a15b}.live-page .live-confirm p{color:#c3cee0}.live-page table th{background:#16253c;color:#b7c5db;border-color:#304058}.live-page table td{color:#e2e9f5;border-color:#27364b}.live-page table tbody tr:hover{background:#192941}.live-page .count{background:#2c3b51;color:#ffe3a4}.live-page .text-button{color:#efcf83}.live-page button:focus-visible{outline-color:#f8d78b}@media(max-width:900px){.live-results{grid-template-columns:repeat(2,minmax(0,1fr))}.live-result-art{height:180px}.live-overview>div{padding:17px}.live-overview strong{font-size:1.4rem}}@media(max-width:520px){.live-page .live-controls{padding:18px}.live-overview{grid-template-columns:1fr;gap:8px}.live-overview>div{flex-direction:row;align-items:center;justify-content:space-between;padding:13px 16px}.live-section-title{align-items:flex-start;flex-direction:column}.live-result-art{height:115px}.live-result-body{padding:0 14px 16px}.live-page .live-result strong{font-size:1.75rem}.live-result b{font-size:1.1rem}.live-results{gap:10px}.live-page .live-actions .button{white-space:normal;width:100%}.live-page .live-round-heading{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.live-page .live-result{transition:none}}.line-settings.slip-history{max-width:none}.slip-history table{width:100%;min-width:850px;table-layout:fixed}.slip-history th:nth-child(1){width:16%}.slip-history th:nth-child(2){width:29%}.slip-history th:nth-child(3){width:12%}.slip-history th:nth-child(4){width:28%}.slip-history th:nth-child(5){width:15%}.slip-history td{white-space:normal;overflow-wrap:anywhere}.bank-image-preview{margin-top:24px;padding-top:24px;border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;gap:12px}.bank-image-preview img{display:block;width:100%;max-width:420px;height:auto;border-radius:12px}.instruction-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.instruction-actions .form-hint{flex-basis:100%}:root{color-scheme:dark;color:#e6edf7;background:#080f1d;--ink:#f3e5bd;--green:#e9c978;--lime:#efd591;--muted:#a8b6c9;--line:#2a3b50;--surface:#101f32;--radius:16px;--gold:#e9c978}body{background:#080f1d}h1,h2,h3{color:#f6df9f}small,.form-hint{color:#a8b6c9}a{color:#eed38e}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline-color:#f4d58c}input,select,textarea{background:#091729;border-color:#3a4d67;color:#edf3ff}input::placeholder,textarea::placeholder{color:#92a3ba}input:disabled,select:disabled,textarea:disabled{opacity:.65}button:disabled{cursor:not-allowed}.button,.icon-button.bordered{background:#182a41;border-color:#41516b;color:#f0dfb4}.button:hover,.icon-button:hover{background:#253b56}.button.primary{background:linear-gradient(125deg,#ffe5a1,#cba04e);border-color:#f3d280;color:#162031;box-shadow:0 4px 16px #d6ac3515}.button.primary:hover{background:#ffe4a1}.text-button{color:#eed18a}.text-button.muted{color:#aebbd0}.eyebrow{color:#d5b66d}.error{background:#3b2030;border-color:#81404b;color:#ffd6d9}.toast{background:#132d2a;border-color:#427969;color:#d5f8ea}.boot{color:#f0d188}.boot p{color:#a8b6c9}.sidebar{width:260px;padding:0 15px;background:linear-gradient(180deg,#081323,#0b192b);border-right:1px solid #8b7039;overflow-y:auto;scrollbar-width:thin}.sidebar-hero{margin:0 -15px 18px;padding:168px 20px 20px;position:relative;background:linear-gradient(180deg,transparent 30%,#081323 82%),url(/artwork/tiger-dragon-c.jpg) center top/100% auto no-repeat;text-align:center;flex-shrink:0}.sidebar .brand{margin:0;justify-content:center;color:#f8da8d;font-size:2rem;gap:0}.sidebar .brand-mark{display:none}.brand small{font-size:.48rem;letter-spacing:1.5px;color:#b9c7d5}.sidebar-hero>p{font-size:.7rem;color:#dac58d;margin-top:12px}.sidebar .nav-label{color:#96a9bf;margin-bottom:9px}.sidebar nav{gap:8px}.sidebar nav button{min-height:50px;border:1px solid transparent;border-radius:12px;color:#d1dcec;font-size:.92rem;padding:12px 14px;flex-shrink:0}.sidebar nav button svg{flex-shrink:0;color:#aabacf}.sidebar nav button:hover{background:#192c43;color:#fff0c8}.sidebar nav button.active{background:linear-gradient(110deg,#a8863525,#17253a);border-color:#e5c16c;color:#ffe5a2;box-shadow:inset 0 0 18px #d0a1420d,0 0 12px #e4bb4310}.sidebar nav button.active svg{color:#f1d485}.nav-count{background:#273b50;color:#d7e3f3}.sidebar-bottom{padding-top:22px}.manual-note{margin:10px 0 16px;background:#101f30;border-color:#2a4051;color:#c9d9e9}.manual-note p{color:#9baec4}.live-dot{background:#6ddeab}.profile{border-top-color:#826e42;flex-wrap:wrap;padding:17px 4px;column-gap:10px;row-gap:14px}.profile strong{max-width:155px;color:#f3ecd9}.profile small{color:#a7b8ce}.profile .avatar,.avatar{background:#1d3148;color:#eacb81;border-color:#716346}.profile .icon-button{width:100%;height:38px;justify-content:flex-start;gap:12px;margin:0;padding:7px;color:#b5c5d8}.profile .icon-button:hover{background:#21364c}.logout-label{font-size:.82rem}.workspace{margin-left:260px;background:radial-gradient(ellipse at 95% 0,#1c355a45,transparent 55%),#080f1d;color:#e6edf7}.topbar,.live-workspace .topbar{background:#0b1627;border-color:#2a3b50;color:#a7b9d0}.topbar strong{color:#e9d59e}.topbar .top-status{background:#12312d;color:#afe6ca;border:1px solid #285446}.page-heading p{color:#a6b6cb}.content{padding-bottom:10px}.panel,.stat{background:linear-gradient(125deg,#12243a,#0e1c2f);border-color:#30455d;box-shadow:0 8px 25px #0002}.stat-title{color:#b7c7da}.stat-icon{background:#293749;color:#f2d183}.stat.green .stat-icon{background:#153b32;color:#82e2b5}.stat.orange .stat-icon{background:#3d2932;color:#f59ba4}.stat-number{color:#f6df9f;white-space:normal}.stat-number>span{color:#c3b994}.stat p{color:#a2b5cb}.stat.dark{background:radial-gradient(ellipse at 100% 0,#846d2730,transparent 70%),#13253a;border-color:#a58948;color:#f6df9f}.stat.dark .stat-title,.stat.dark p{color:#bdc9da}.stat.dark .stat-icon{color:#f4d58c;background:#5a4c2d55}.stat.dark .stat-number>span{color:#d4c38e}.panel-heading p,.legend{color:#a9b9cd}.chart-scale,.chart-day{color:#9eb1c9}.chart-lines i{border-color:#2c4158}.bar.in,.in-dot{background:#6bd3a5}.bar.out,.out-dot{background:#e87e89}.current-day{color:#f4d68c}.chart-tip{background:#22334b;border:1px solid #5b7290;color:#f4f7fd}.chart-zero{background:#112237;color:#c4d2e4}.breakdown .panel-heading svg{color:#d4bc7c}.breakdown-row>span{color:#b2c3d7}.breakdown-row strong{color:#edf1f7}.profit-row{border-color:#40516a}.profit-row strong{color:#efd289}.footnote,.page-footer,.table-footer{color:#9dafc5}.kind-dot.deposit,.kind-dot.income{background:#6bd3a5}.kind-dot.withdrawal,.kind-dot.expense{background:#e87e89}.count{background:#22364d;border-color:#415570;color:#eed18a}.search{border-color:#3d516a;background:#0c192c;color:#aabdd4}.search:focus-within{outline-color:#e9c978}.search input{color:#e6edf7}.filter-row{flex-wrap:wrap;row-gap:10px}.filter-row button{color:#aebfd4;min-height:40px}.filter-row button.selected{background:#493f2866;border-color:#a88b4d;color:#ffe3a0}.filter-row button:hover{background:#21364b}.filter-row>span{color:#9caec3}.filter-row[aria-label=แหล่งข้อมูล]{padding-left:0;padding-right:0}.table-wrap{scrollbar-color:#465873 #102035}thead{background:#182b42;color:#b3c5dc}th{border-color:#31465f}td{border-color:#263b52;color:#dfe8f6}tbody tr:hover{background:#19304a}.note-cell{color:#afc0d7}.positive{color:#7edfb0}.negative{color:#f0939e}.badge.deposit,.badge.green,.badge.income{background:#123a31;color:#91e7ba}.badge.withdrawal,.badge.expense{background:#432734;color:#ffb2ba}.badge.neutral{background:#26384d;color:#c6d5e7}.status{color:#91d2b3}.status i{background:#7cceaa}.status.void{color:#abb7c8}.status.void i{background:#7a8ba3}.empty-icon{background:#1d3147;border-color:#455d76;color:#e6c87e}.empty p{color:#a7b8cd}.no-results{color:#a9bbd1}.modal{background:#101f33;color:#e5edf8;border-color:#a78a49;box-shadow:0 24px 100px #0008}.modal::backdrop{background:#020814b3}.modal .form-hint{color:#aebdd2}.credit-balance,.credit-success{color:#f0d389}.checkbox-label input{accent-color:#e6c678}.connection-steps a{color:#f1d388}.line-settings{max-width:960px}.webhook-box{border-color:#3c4e65}.login{background:#091423;color:#e7edf7;grid-template-columns:50% 50%}.login-story{position:relative;isolation:isolate;background:#081323;padding:45px 50px;gap:50px;justify-content:space-between;border-right:1px solid #76643e}.login-art{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:linear-gradient(180deg,#08132300 25%,#081323d9 58%,#081323 85%),url(/artwork/tiger-dragon-c.jpg) center top/100% auto no-repeat;opacity:.9}.login-story>.brand{color:#ffe19a;text-shadow:0 2px 14px #000}.login-story>div:not(.login-art):not(.brand){margin-top:220px}.login-story .eyebrow{color:#e7c87f}.login-story h1{color:#ffe4a6;font-size:clamp(2.3rem,4vw,4rem)}.login-story p,.login-foot{color:#b8c9df}.login-form{background:radial-gradient(ellipse at 80% 0,#23345355,transparent 65%)}.login-card{max-width:420px}.login-card h2{color:#ffe2a0}.login-card>p{color:#a9bdd4}.brand-mark{background:#f0d28a;color:#14253b}.login-switch{color:#efcf83}@media(max-height:800px)and (min-width:701px){.sidebar-hero{padding-top:116px;margin-bottom:8px;background-position:center -20px}.sidebar nav{gap:3px}.sidebar nav button{min-height:45px}.sidebar-bottom{padding-top:12px}.manual-note{margin:4px 0 12px;padding:10px}.profile{padding:12px 4px;row-gap:6px}}@media(max-width:1200px)and (min-width:701px){.sidebar{width:235px}.workspace{margin-left:235px}.sidebar nav button{font-size:.85rem;padding-inline:10px}.sidebar-hero{padding-top:150px}.sidebar .brand{font-size:1.8rem}}@media(max-width:700px){.sidebar{position:relative;width:100%;padding:0 16px 16px;overflow:visible;border-right:0;border-bottom:1px solid #806938}.sidebar-hero{margin:0 -16px 12px;padding:100px 18px 17px;text-align:left;background-size:cover;background-position:center 28%}.sidebar .brand{justify-content:flex-start;font-size:1.65rem}.sidebar .brand small{font-size:.43rem}.sidebar-hero>p{margin-top:9px}.sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sidebar nav button{width:100%;justify-content:flex-start;min-height:46px;font-size:.85rem;padding:10px 12px;white-space:normal}.sidebar nav button:last-child:nth-child(odd){grid-column:1/-1}.sidebar-bottom{position:static;padding:0;margin-top:14px}.profile{flex-wrap:nowrap;border-top:1px solid #47506a;padding:12px 0 0}.profile .avatar{display:flex;width:32px;height:32px}.profile strong{max-width:125px}.profile .icon-button{width:auto;margin-left:auto;padding:7px;flex-shrink:0}.logout-label{font-size:.75rem}.workspace{margin-left:0}.topbar{padding-inline:17px}.filter-row>span{width:100%;margin-left:0}.filter-row button{padding-inline:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-number{font-size:clamp(1rem,4.6vw,1.7rem)}.page-footer{flex-wrap:wrap;gap:8px}.login{grid-template-columns:1fr}.login-story{display:flex;min-height:230px;padding:24px;gap:20px;border-right:0;border-bottom:1px solid #76643e}.login-art{background-size:cover;background-position:center 30%;background-image:linear-gradient(90deg,#081323bb,#08132333),url(/artwork/tiger-dragon-c.jpg)}.login-story>div:not(.login-art):not(.brand){margin-top:5px}.login-story h1{font-size:1.7rem;line-height:1.3;margin:7px 0}.login-story p,.login-story .eyebrow{font-size:.78rem}.login-foot{display:none}.login-form{padding:30px 22px 40px}.login-card h2{font-size:1.65rem}.toast{left:50%}}
