:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#19382f;background:#f2f6f3;font-synthesis:none;--green:#087a5e;--muted:#71857b;--line:#e0e9e3}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ffbd5c;outline-offset:3px}input,select,textarea{display:block;width:100%;border:1px solid #d6e2d9;border-radius:12px;background:#fff;color:#183c2e;padding:13px 14px;margin:7px 0 17px;font-size:16px}input:focus,select:focus,textarea:focus{outline:2px solid #8bceba;border-color:#087a5e}label{font-size:14px;font-weight:600}h1,h2,h3,p{margin-top:0}p{line-height:1.7}h2{font-size:19px}h3{font-size:17px}a{color:inherit}.app-shell{max-width:860px;margin:auto;min-height:100dvh}.brandbar{display:flex;align-items:center;gap:12px;padding:20px 24px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;margin-right:auto;font-size:20px;font-weight:800}.brand small{font-size:12px;color:var(--muted);display:block;font-weight:500;margin-top:1px}main{padding:0 24px 22px}.text-button{padding:8px;background:none;border:0;color:var(--green);white-space:nowrap;font-weight:600}.intro{padding:40px 8px 28px;position:relative}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--green);font-weight:700}.intro h1{font-size:35px;line-height:1.35;letter-spacing:-1px;margin:16px 0}.intro p{font-size:14px;color:var(--muted);margin-bottom:0}.intro-shapes{position:absolute;right:10px;top:70px;display:flex;gap:7px;transform:rotate(-9deg);opacity:.9}.intro-shapes span{width:46px;height:56px;border-radius:16px;background:#e2ede2;display:grid;place-items:center;font-size:23px;color:#65836b}.intro-shapes span:first-child{background:#f7d88d;color:#97631b;margin-top:30px}.intro-shapes span:last-child{margin-top:42px;background:#cfebe4}.login-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 15px 35px #23452b07;margin-bottom:20px}.identity-switch,.tabs{display:flex;background:#f0f5f1;border-radius:14px;padding:5px;gap:5px;margin-bottom:24px}.identity-switch button,.tabs button{flex:1;min-height:43px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:700}.identity-switch button.active,.tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #24442c12}.button{border:0;border-radius:12px;min-height:48px;padding:13px 20px;font-weight:700}.primary{background:var(--green);color:white}.wide{width:100%}.link-button{background:none;border:0;color:var(--green);padding:10px 0;text-align:left;font-weight:600}.muted{font-size:13px;color:var(--muted)}#login-help{margin:18px 0 0}.welcome{display:flex;align-items:center;justify-content:space-between;padding:28px 0 20px}.welcome h1{font-size:26px;margin:12px 0 6px}.welcome p{margin:0;color:var(--muted);font-size:13px}.pill{background:#dfede5;border-radius:30px;padding:5px 10px;font-size:11px;letter-spacing:1px;color:var(--green)}.member-card{background:linear-gradient(120deg,#075a49,#0c8763);border-radius:22px;color:white;padding:23px;box-shadow:0 10px 25px #075a4924;overflow:hidden;position:relative}.member-card:after{content:"";position:absolute;border:1px solid #ffffff15;width:240px;height:240px;border-radius:50%;top:-120px;right:-80px;pointer-events:none}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;font-size:13px;letter-spacing:1px}.member-card .text-button{color:#d3f2e3;font-size:12px;padding:2px}.member-card strong{display:block;font-size:20px}.card-number{display:block;color:#c5e7d9;font-size:13px;letter-spacing:2px;margin-top:7px;word-break:break-all}.card-totals{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid #ffffff20;margin-top:23px;padding-top:20px}.card-totals small{display:block;color:#c5e7d9;font-size:12px;margin-bottom:6px}.card-totals b{font-size:24px;letter-spacing:-.5px;word-break:break-all}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:23px 0}.action-grid button{background:none;border:0;font-size:12px;padding:4px 0;color:#365348}.action-grid span{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 10px;border-radius:15px;background:#e2eee7;color:var(--green);font-size:23px;font-weight:700}.action-grid button:nth-child(2) span{background:#fff0d7;color:#a77933}.action-grid button:nth-child(3) span{background:#e6eafb;color:#6278ae}.action-grid button:nth-child(4) span{background:#e4f2ed;color:var(--green)}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:21px;margin:17px 0}.panel h2{margin-bottom:15px}.panel p:last-child{margin-bottom:0}.profile{margin:0}.profile div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #edf2ee;font-size:13px}.profile dt{color:var(--muted);flex-shrink:0}.profile dd{margin:0;text-align:right;word-break:break-word}.list{display:grid;gap:10px;margin:18px 0}.list article{border:1px solid var(--line);background:white;border-radius:15px;padding:17px;display:flex;gap:15px;align-items:center}.list article>div:first-child{flex:1;min-width:0}.list article b{display:block;margin-bottom:5px;font-size:14px;overflow-wrap:anywhere}.list small{display:block;color:var(--muted);font-size:12px;line-height:1.6}.list .value{color:var(--green);white-space:nowrap;font-size:16px}.list .negative{color:#b56d4b}.list button{border:1px solid #d9e8df;border-radius:9px;background:#eff7f2;color:var(--green);padding:9px 12px;flex-shrink:0}.list .cancel{color:#a1513f;background:#fef6f1;border-color:#efdcd3}.empty{padding:35px 15px;text-align:center;color:var(--muted);font-size:14px}.view-title{font-size:23px;margin:12px 0 20px}.form-row{display:grid;grid-template-columns:2fr 1fr;gap:12px}#bottom-nav{position:sticky;bottom:10px;margin-top:28px;display:flex;border:1px solid #dfe8e1;border-radius:19px;background:#fffffff0;box-shadow:0 5px 30px #274b3410;backdrop-filter:blur(10px);padding:7px;gap:3px;padding-bottom:max(7px,env(safe-area-inset-bottom))}#bottom-nav button{flex:1;min-height:49px;border:0;border-radius:13px;background:none;color:var(--muted);font-size:12px}#bottom-nav button.active{color:var(--green);background:#e9f3ec;font-weight:700}#notice:empty{display:none}#notice{margin-top:16px;background:#fff3da;color:#805b23;border:1px solid #edd9ac;border-radius:12px;padding:12px 15px;font-size:13px;line-height:1.7}#notice.error{background:#fff0ed;border-color:#eaccc5;color:#9d4736}footer{text-align:center;color:#83978a;font-size:11px;padding:12px 20px 22px}footer span{display:block;margin-top:6px}dialog{max-width:calc(100vw - 32px);width:420px;border:1px solid #dce7df;border-radius:22px;padding:24px;color:#19382f;box-shadow:0 20px 100px #173d2c40}dialog::backdrop{background:#173d2c70;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.dialog-heading h2{margin:0}.close{border:0;background:#eff3f0;border-radius:10px;width:34px;height:34px;font-size:24px;color:#698276}#qr-image{display:flex;justify-content:center;padding:15px;background:#fff}#qr-image svg{max-width:100%;height:auto}.qr-code-text{text-align:center;overflow-wrap:anywhere;font-weight:700;margin:14px 0}[hidden]{display:none!important}@media(min-width:650px){#login-screen{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center;padding:30px 0}.intro{padding-left:0}.intro h1{font-size:36px}.intro-shapes{position:static;margin-top:25px}.login-card{margin:15px 0}.member-card{padding:30px}.card-totals b{font-size:29px}.welcome{padding-top:35px}.action-grid span{width:55px;height:55px}.action-grid button{font-size:14px}.list{grid-template-columns:1fr 1fr}#ledger-list,#reservation-list,#commission-list{grid-template-columns:1fr}#bottom-nav{position:static;max-width:550px;margin:30px auto 0}}@media(max-width:380px){main{padding-left:16px;padding-right:16px}.brandbar{padding:16px}.intro h1{font-size:30px}.intro-shapes{right:0;opacity:.5}.login-card{padding:19px}.card-totals b{font-size:21px}}
.secondary{margin-top:15px;background:#e4f2ea;color:#087a5e;border:1px solid #c4ddcf}.consent{display:flex;align-items:flex-start;gap:9px;line-height:1.7;margin:10px 0 17px;font-size:12px;font-weight:500}.consent input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;padding:0}.social-login{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);margin:20px 0 8px;padding-top:18px}.social-login>button{flex:1;min-height:44px;background:#f0f5f1;color:#506c60;border:1px solid #d6e2d9;border-radius:10px;font-size:12px}.social-login>.consent,.social-login>p{width:100%;margin-bottom:0}.social-login>button:disabled{opacity:.75;cursor:not-allowed}
.live-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.live-table-heading p,[data-table-live-note]{font-size:12px;color:#60796f}.live-table-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px;margin:16px 0}.live-table{display:grid;gap:5px;text-align:left;padding:14px;border:1px solid #cadbd3;border-radius:15px;background:#f4faf7;color:#174b3e;min-height:94px}.live-table strong{font-size:19px}.live-table small{font-size:11px;color:#60796f}.live-table.dining{background:#fff5e4;border-color:#ead5aa;color:#815c14}.live-table.awaiting_clear{background:#f3f0fa;border-color:#dbd0ed;color:#6a4c91}.live-table:focus-visible{outline:3px solid #07836c;outline-offset:2px}
/* Translated decorative labels stay within the rotated tiles on narrow screens. */
.intro-shapes span{min-width:0;overflow-wrap:anywhere;overflow:hidden}
/* Language flags have a fixed icon box, including SVG flags. */
[data-locale-mount]{align-items:center;gap:8px;flex-wrap:wrap}
[data-locale-mount] .locale-flag{flex:0 0 24px;width:24px;height:18px;object-fit:contain;border-radius:3px}
[data-locale-mount] .locale-select{width:auto;max-width:200px;margin:0;min-height:36px;padding:8px 10px}
