:root{font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;color:#e8edf6;background:#0c0f17;font-size:14px;--panel:#151a25;--line:#2b3241;--muted:#909aaf;--mint:#b9f77b;--purple:#aa9bff;--red:#ff9b9b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer;border:1px solid var(--line);background:#242c3b;color:#eef2fa;border-radius:9px;padding:10px 16px;font-weight:600}button:hover{filter:brightness(1.15)}button:disabled{opacity:.45;cursor:wait}.primary{background:var(--mint);border-color:var(--mint);color:#172011}.secondary{background:#30294b;border-color:#544576;color:#d9ceff}.danger{color:var(--red);background:#352128;border-color:#6b3542}.small{padding:7px 11px;font-size:12px}.ghost{background:transparent}.tag{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:#252c3b;color:#b6c1d6;font-size:11px;letter-spacing:.03em}.tag.green{background:#263923;color:#b9f77b}.tag.purple{background:#302847;color:#cbbfff}.tag.red{background:#3d262c;color:#ffabab}.muted{color:var(--muted)}.eyebrow{color:var(--mint);font-size:11px;letter-spacing:.16em;font-weight:700}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:#11151e;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 28px}.brand-icon{width:40px;height:44px;background:var(--mint);color:#1e2c17;display:grid;place-items:center;font-size:24px;font-weight:900;clip-path:polygon(50% 0,96% 20%,88% 76%,50% 100%,12% 76%,4% 20%)}.brand b{font-size:19px;letter-spacing:3px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:1px;margin-top:5px}.nav-label{padding:18px 12px 10px;color:#6f7b90;font-size:10px;letter-spacing:.12em}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 15px;margin:3px 0;background:transparent;border:0;color:#9da8bd;text-align:left;font-weight:500}.nav-item.active{background:#2b3528;color:var(--mint)}.nav-item span{font-size:16px;width:18px;text-align:center}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.sidebar-bottom a{display:block;margin:13px 0;color:#abb5c8;font-size:12px}.sidebar-bottom p{font-size:11px;color:#657188;line-height:1.8}.main{min-width:0;padding:30px 38px 60px;max-width:1650px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.topbar h1{font-size:26px;margin:8px 0;letter-spacing:1px}.topbar p{margin:6px 0;color:var(--muted);font-size:12px}.top-actions{display:flex;gap:8px;align-items:center}.top-actions select{max-width:130px}.notice{padding:13px 17px;border:1px solid #3a3650;background:#211e30;border-radius:10px;color:#bdb0dd;line-height:1.8;margin-bottom:22px;font-size:12px}.notice strong{color:#e0d1ff}.grid{display:grid;gap:20px}.cols2{grid-template-columns:1.1fr 1fr}.cols3{grid-template-columns:repeat(3,1fr)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.metric{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:21px}.metric label{color:var(--muted);font-size:12px}.metric .value{font-size:31px;margin:12px 0 8px;letter-spacing:-1px;font-variant-numeric:tabular-nums;font-weight:650}.metric small{color:#758399;font-size:11px}.metric.highlight{background:linear-gradient(135deg,#293925,#17231e);border-color:#435b36}.metric.highlight .value{color:var(--mint)}.panel{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:23px;min-width:0}.panel-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px}.panel h2{font-size:16px;margin:0}.panel h3{font-size:14px;margin:0 0 16px}.panel p{color:var(--muted);line-height:1.8;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.field label{font-size:12px;color:#a6b0c2}.field.full{grid-column:1/-1}input,select,textarea{width:100%;padding:11px 12px;background:#0e131d;border:1px solid #343c4f;color:#e6ebf4;border-radius:8px;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--mint);outline:1px solid var(--mint)}input[type=checkbox]{width:16px;height:16px;accent-color:var(--mint)}input[type=date]{color-scheme:dark}.check{display:flex;gap:10px;align-items:flex-start;color:#b6bfd1;line-height:1.8;font-size:12px;margin:14px 0 22px}.check input{flex-shrink:0;margin-top:4px}.inline{display:flex;gap:10px;align-items:center}.stack{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.wide{width:100%}.divider{border:0;border-top:1px solid var(--line);margin:22px 0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{color:#7f8da6;font-weight:500;text-align:left;padding:12px 14px;background:#10151f}td{padding:15px 14px;border-bottom:1px solid #272e3d}tr:last-child td{border-bottom:0}td small{display:block;color:#78869d;margin-top:6px}td.code{font-family:Consolas,monospace;font-size:11px;max-width:210px;overflow:hidden;text-overflow:ellipsis}.amount{font-variant-numeric:tabular-nums}.positive{color:var(--mint)}.negative{color:var(--red)}.empty{text-align:center;padding:40px 20px;color:#7f8da6;border:1px dashed #303b4d;border-radius:10px;line-height:2}.result{border:1px solid #405e37;background:#1c2b20;padding:18px;border-radius:12px;margin-top:20px;overflow-wrap:anywhere}.result h3{color:var(--mint);margin-top:0}.result code{font-size:12px}.qr{width:190px;height:190px;border-radius:10px;display:block;background:white;padding:6px;margin:16px auto}.flow{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:24px 0}.flow div{padding:14px 10px;background:#1a2130;border-radius:9px;font-size:12px;line-height:1.8;color:#a9b5cb}.flow b{display:block;color:var(--mint);font-size:10px;letter-spacing:.1em}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.project-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px}.project-card .number{color:#627189;font-family:Consolas,monospace;font-size:11px;margin-bottom:15px}.project-card h3{margin:0 0 12px;font-size:16px}.bar{height:7px;border-radius:4px;background:#283044;overflow:hidden;margin-top:10px}.bar span{display:block;height:100%;background:var(--purple)}.progress-list{display:grid;gap:22px}.progress-label{display:flex;justify-content:space-between;font-size:12px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 22px;border:1px solid #536044;border-radius:10px;background:#263321;z-index:1000;display:none;max-width:90vw;box-shadow:0 10px 35px #0006}#toast.error{background:#442731;border-color:#7a3e50}dialog{background:#171d29;color:#e8edf6;border:1px solid #424c62;border-radius:16px;padding:25px;max-width:650px;width:calc(100% - 36px);box-shadow:0 30px 100px #0009}dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}dialog .close{float:right}dialog h2{font-size:19px;margin:4px 0 20px}dialog p{color:var(--muted);line-height:1.8}dialog code{overflow-wrap:anywhere;display:block;font-size:12px;line-height:1.8}.landing{max-width:1080px;margin:0 auto;padding:50px 30px 70px}.landing .brand{padding:0}.landing-head{display:flex;justify-content:space-between;align-items:center}.hero{padding:68px 0 38px;position:relative}.hero h1{font-size:clamp(34px,4.6vw,58px);font-weight:700;letter-spacing:-1.5px;line-height:1.3;margin:20px 0}.hero h1 em{font-style:normal;color:var(--mint)}.hero p{color:#9aa8bf;line-height:1.9;max-width:630px}.portal{display:block;padding:28px;border-radius:15px;background:var(--panel);border:1px solid var(--line)}.portal:hover{border-color:#718951;transform:translateY(-3px)}.portal .icon{font-size:24px;margin-bottom:24px;color:var(--mint)}.portal h2{font-size:20px;margin:0 0 12px}.portal p{font-size:12px;color:var(--muted);line-height:1.8;min-height:44px}.portal .go{display:block;margin-top:25px;color:var(--mint);font-size:12px}.mobile-shell{max-width:460px;margin:0 auto;background:#10151f;min-height:100vh;padding-bottom:86px;border-inline:1px solid #2b3241}.mobile-top{padding:24px 24px 12px;display:flex;justify-content:space-between;align-items:center}.mobile-top .brand{padding:0}.mobile-content{padding:20px}.mobile-content h1{font-size:26px;line-height:1.45}.visitor-card{position:relative;padding:26px;border-radius:20px;margin:22px 0;background:linear-gradient(135deg,#c4f990,#a8d7aa 55%,#8bc7b3);color:#18352b;overflow:hidden}.visitor-card:after{content:'A';position:absolute;right:-5px;top:-35px;opacity:.08;font-size:250px;font-family:Georgia,serif;pointer-events:none}.visitor-card .balance{font-size:66px;line-height:1.2;letter-spacing:-4px;font-weight:700;margin:28px 0 8px}.visitor-card .balance small{font-size:15px;letter-spacing:0;margin-left:9px}.visitor-card p{color:#38584a;font-size:11px}.visitor-card button{background:#1c3b2e;color:#daf6cc;border:0;position:relative;z-index:1;margin-top:16px}.visitor-card .tag{background:#23423220;color:#244332}.mobile-nav{position:fixed;bottom:0;width:min(460px,100%);display:flex;justify-content:space-around;background:#141b28ed;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:10px 14px 14px;z-index:20}.mobile-nav button{border:0;background:transparent;color:#8694aa;font-weight:500;display:flex;flex-direction:column;gap:6px;align-items:center;font-size:11px}.mobile-nav button.active{color:var(--mint)}.mobile-nav button span{font-size:19px}.history-item{display:flex;justify-content:space-between;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);gap:14px}.history-item b{font-size:13px;line-height:1.7}.history-item small{display:block;color:#7d8ca5;font-size:11px;margin-top:5px}.history-item strong{font-size:20px;white-space:nowrap}.visitor-projects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.visitor-projects .project-card{padding:18px}.visitor-projects .project-card h3{font-size:14px}.role-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.role-list article{padding:20px;background:#1b2231;border-radius:10px}.role-list h3{color:var(--mint)}.subtle{font-size:11px;color:#6f8098;line-height:1.8}.loading{min-height:65vh;display:grid;place-items:center;color:var(--muted)}.search{max-width:320px}.selection-summary{background:#222c22;border:1px solid #41513a;border-radius:10px;padding:20px;margin:5px 0 20px}.selection-summary strong{font-size:24px;color:var(--mint)}.selection-summary small{color:#a2b994}.split{display:flex;justify-content:space-between;gap:15px;align-items:center}.audit-details{max-width:420px;white-space:normal;overflow-wrap:anywhere;color:#8f9db4;line-height:1.7}
.main{margin:0 auto}button{white-space:nowrap}.inline>button{flex-shrink:0}.inline>input{flex:1}
@media(max-width:1100px){.main{padding:25px 24px}.shell{grid-template-columns:195px 1fr}.cols2{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:repeat(2,1fr)}.top-actions{flex-wrap:wrap;justify-content:flex-end}.flow{grid-template-columns:repeat(3,1fr)}}@media(max-width:720px){.shell{display:block}.sidebar{height:auto;position:relative;padding:16px;display:block}.sidebar .brand{padding:0 0 15px}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-item{white-space:nowrap;flex-shrink:0;width:auto;padding:10px}.main{padding:20px 16px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{justify-content:flex-start}.topbar h1{font-size:23px}.form-grid{grid-template-columns:1fr}.cols3{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr 1fr}.flow{grid-template-columns:1fr}.landing{padding:28px 20px}.hero{padding:45px 0 24px}.panel{padding:18px}.metric{padding:17px}.metric .value{font-size:27px}.role-list{grid-template-columns:1fr}}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(340px,.85fr);gap:20px;align-items:start}.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.pos-product{background:#1d2634;border:1px solid #344256;text-align:left;display:flex;flex-direction:column;gap:9px;min-width:0;white-space:normal;min-height:160px}.pos-product-icon{display:grid;place-items:center;background:#304435;border-radius:10px;width:38px;height:38px;font-size:20px}.pos-product-name{font-size:15px;font-weight:700}.pos-product-meta{font-size:11px;color:#aab5c7}.pos-product strong{font-size:18px;color:var(--mint)}.pos-add{font-size:11px;color:#bcd8a7;margin-top:auto}.pos-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.pos-line small{display:block;color:var(--muted);margin-top:6px}.pos-qty{display:flex;align-items:center;gap:9px}.pos-qty button{padding:5px 9px}.pos-total{display:flex;align-items:end;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line)}.pos-total small{display:block;color:var(--muted);margin-top:5px}.pos-total strong{font-size:30px;color:var(--mint)}.pos-payment-title{font-weight:700;margin:20px 0 10px}.pos-payments{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.pos-payments label{min-width:0}.pos-payments input{position:absolute;width:1px;height:1px;opacity:0}.pos-payments span{display:block;text-align:center;padding:13px 6px;border:1px solid #3b4658;border-radius:9px;cursor:pointer;font-size:12px}.pos-payments input:checked+span{border-color:var(--mint);background:#253624;color:var(--mint)}.pos-payments input:focus-visible+span{outline:2px solid var(--mint)}.pos-change{margin:-8px 0 16px}.pos-scan{padding:12px;border:1px solid #7b6940;border-radius:9px;background:#332e20;color:#f3dba5;font-size:12px;line-height:1.7;margin-bottom:16px}.pos-submit{padding:15px;font-size:15px}@media(max-width:1100px){.pos-layout{grid-template-columns:1fr}}@media(max-width:480px){.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-line{grid-template-columns:minmax(0,1fr) auto}.pos-line>strong{grid-column:2;text-align:right}.pos-checkout .empty{padding:25px 10px}}

/* 收银工作台：高频操作在首屏，金额和库存保持高对比。 */
.pos-shell{--mint:#7ce9ed;--line:#283b59;background:#080f20}.pos-shell .sidebar{background:#0b1426;border-right:1px solid #243955}.pos-shell .sidebar .nav-item.active{background:linear-gradient(100deg,#17435c,#20355f);color:#a2f9f5;border:1px solid #37738a}.pos-shell .main{background:radial-gradient(ellipse at 70% -15%,#19316a 0,transparent 48%),#0b1223}.pos-shell .topbar .eyebrow{color:#72dce6}.pos-shell .notice{background:#182a47;border-color:#345073;color:#d7e8ff}.pos-workspace{max-width:1600px;margin:auto}.pos-quick{display:flex;align-items:stretch;gap:10px;margin-bottom:18px}.pos-quick-label{display:flex;align-items:center;white-space:nowrap;color:#99aecd;font-size:12px;font-weight:700;padding-right:4px}.pos-quick button{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;padding:12px;background:linear-gradient(130deg,#182942,#15213a);border:1px solid #334f70;border-radius:12px;color:#eff7ff}.pos-quick button:hover{border-color:#72dce6;background:#203654}.pos-quick button b{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:10px;background:#29486c;color:#9cf3f1;font-size:19px}.pos-quick button span{display:block;flex:1;font-weight:700}.pos-quick button small{display:block;color:#9eafc9;font-size:11px;font-weight:400;margin-top:3px}.pos-quick button i{color:#7fc1d3;font-style:normal}.pos-shell .pos-layout{grid-template-columns:minmax(0,1.35fr) minmax(310px,.78fr);gap:16px}.pos-shell .pos-catalog,.pos-shell .pos-checkout{background:#121e33;border:1px solid #29415e;border-radius:16px;box-shadow:0 14px 38px #02091640}.pos-catalog-head,.pos-order-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-catalog-head h2,.pos-order-head h2{font-size:21px;color:#f4f9ff;margin:7px 0}.pos-catalog-head p{color:#a0b0c8;font-size:12px;margin:0}.pos-eyebrow{color:#81e5e8;font-size:10px;font-weight:700;letter-spacing:.14em}.pos-count{border:1px solid #365977;background:#192e48;border-radius:20px;color:#b4d7e6;padding:6px 10px;font-size:11px;white-space:nowrap}.pos-search-wrap{display:flex;align-items:center;gap:8px;background:#0c182a;border:1px solid #304966;border-radius:10px;margin:20px 0 12px;padding:0 13px}.pos-search-wrap:focus-within{border-color:#65dce2;box-shadow:0 0 0 3px #5bc4de28}.pos-search-wrap span{font-size:24px;color:#8cd8e0}.pos-search-wrap input{padding:12px 0;background:transparent;border:0;outline:0;width:100%;color:#fff;box-shadow:none}.pos-categories{display:flex;gap:8px;overflow:auto;padding:1px 1px 12px}.pos-categories button{border:1px solid #344b68;background:#18263b;color:#c6d3e5;border-radius:9px;font-size:12px;padding:8px 13px;white-space:nowrap}.pos-categories button.active{background:#4ed3df;color:#062439;border-color:#4ed3df;font-weight:700}.pos-shell .pos-products{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}.pos-shell .pos-product{background:linear-gradient(145deg,#20314c,#17253b);border:1px solid #35516c;border-radius:12px;padding:13px;min-height:152px;gap:6px}.pos-shell .pos-product:hover:not(:disabled){border-color:#73dde7;transform:translateY(-2px);box-shadow:0 7px 22px #30c8dd1c}.pos-shell .pos-product[hidden]{display:none}.pos-product-top,.pos-product-bottom{display:flex;justify-content:space-between;align-items:center;gap:5px;width:100%}.pos-shell .pos-product-icon{background:#344c68;color:#a5eaf3;width:37px;height:37px}.pos-stock{font-size:10px;color:#b2c4d7}.pos-stock.soldout{color:#e4b9b9}.pos-shell .pos-product-name{margin-top:7px;color:#f5faff;font-size:14px}.pos-shell .pos-product-meta{color:#a8b9cc}.pos-product-bottom{margin-top:auto}.pos-shell .pos-product strong{font-size:17px;color:#a1f2ed}.pos-shell .pos-add{display:grid;place-items:center;margin:0;width:26px;height:26px;border-radius:8px;background:#345c78;color:#c4ffff;font-size:20px}.pos-filter-empty{padding:35px 10px;text-align:center;color:#b5c6dc}.pos-catalog-foot{font-size:11px;color:#8da6c4;margin:20px 0 0}.pos-checkout{position:sticky;top:16px}.pos-order-head h2 small{display:inline-block;font-size:11px;color:#a3e5ed;margin-left:5px}.pos-lines{min-height:180px;max-height:330px;overflow:auto}.pos-cart-empty{height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9aabc2}.pos-cart-empty span{font-size:29px;color:#7dcbd8}.pos-cart-empty strong{color:#d5e7f7;font-size:13px}.pos-cart-empty small{font-size:11px}.pos-shell .pos-line{border-color:#2b405b}.pos-shell .pos-qty button{background:#243951;border:1px solid #49627c;color:#edfdff;border-radius:7px}.pos-shell .pos-total{border-color:#2b405b}.pos-shell .pos-total strong{color:#8cf1ea}.pos-payment-title span{float:right;color:#99adc8;font-size:11px;font-weight:400}.pos-shell .pos-payments span{background:#14233a;color:#d6e4f5;border-color:#3a506a;font-weight:700}.pos-shell .pos-payments input:checked+span{background:#16485a;color:#b4ffff;border-color:#6ae8e8}.pos-payments small{font-size:10px;color:#bdcde0}.pos-shell .pos-submit{background:linear-gradient(110deg,#65e6e6,#77afff);color:#092135;border:0;border-radius:10px;font-size:15px;font-weight:800;box-shadow:0 7px 22px #55dcea30}.pos-submit span{float:right}.pos-shell .pos-submit:disabled{opacity:.42}.pos-shell [hidden]{display:none!important}@media(max-width:850px){.pos-shell .pos-layout{grid-template-columns:1fr}.pos-checkout{position:static}.pos-quick-label{display:none}}@media(max-width:560px){.pos-quick{gap:5px}.pos-quick button{padding:9px 6px;gap:5px}.pos-quick button b{width:26px;height:26px;font-size:14px}.pos-quick button span{font-size:11px}.pos-quick button small,.pos-quick button i{display:none}.pos-shell .pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-catalog-head h2,.pos-order-head h2{font-size:18px}}
.analytics-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.analytics-filter label{display:flex;flex-direction:column;gap:6px;color:#aab7ca;font-size:12px}.analytics-filter input{min-width:150px}.analytics-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 18px}.analytics-intro h2{margin:8px 0;font-size:20px}.analytics-intro p{color:#9baabd;margin:0;font-size:13px}.analytics-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-note{padding:14px 16px;border:1px solid #4d4672;background:#282339;border-radius:12px;color:#d9d2eb;line-height:1.7;font-size:13px;margin:0 0 20px}.analytics-section{margin-top:20px}.analytics-chart{display:flex;align-items:end;gap:8px;overflow-x:auto;min-height:190px;padding:12px 2px 5px}.analytics-bar-col{display:flex;align-items:center;flex-direction:column;gap:6px;flex:1;min-width:46px;font-size:10px;color:#aab7ca}.analytics-bar-col>span{font-size:10px;white-space:nowrap}.analytics-bar-track{height:115px;width:100%;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #405167}.analytics-bar-track i{display:block;max-width:27px;width:70%;border-radius:5px 5px 0 0;background:linear-gradient(0deg,#65bb62,#bcf97b)}.analytics-bar-track i.negative{background:#f38a79}.analytics-balance strong{font-size:35px;color:#bcf97b}.analytics-balance p{margin:7px 0 0}.analytics-chart small{color:#9baabd}@media(max-width:800px){.analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-filter label{flex:1;min-width:130px}.analytics-filter input{width:100%;min-width:0}}@media(max-width:430px){.analytics-metrics{grid-template-columns:1fr 1fr}.analytics-intro{align-items:flex-start;flex-direction:column}.analytics-filter button{flex:1}}
/* Keep totals and checkout accessible on common shorter POS monitors. */
@media (min-width:851px) and (max-height:800px){
  .pos-shell .main{padding-top:16px}
  .pos-shell .topbar{margin-bottom:14px}
  .pos-shell .notice{padding:8px 14px;margin-bottom:12px}
  .pos-shell .pos-quick{margin-bottom:12px}
  .pos-shell .pos-checkout{padding:16px}
  .pos-shell .pos-lines{min-height:75px;max-height:175px}
  .pos-shell .pos-cart-empty{height:70px;gap:1px}
  .pos-shell .pos-total{padding:12px 0}
}
/* Staff account management */
.account-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:12px 0 22px}.account-check{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #394256;border-radius:8px;background:#101722;color:#d5deed;font-size:12px}.account-check input{margin:0;flex:none}.button-link{display:inline-flex;padding:11px 16px;border-radius:9px;font-weight:700}

/* 门店与收银工作台：延续乐园的夜空蓝、紫与暖金视觉。 */
.shell{--mint:#f4cc79;--purple:#b7a2ff;--line:#46518a;--panel:#202a59;background:#10183b}
.shell .sidebar{background:linear-gradient(180deg,#171e48,#11183a);border-color:#3c4777}
.shell .sidebar .brand{border-bottom:1px solid #3e4a7c;margin-bottom:12px}
.shell .brand-icon{background:linear-gradient(140deg,#fcdf9e,#b98639);color:#192147;box-shadow:0 0 20px #f4c36d44}
.shell .nav-label,.shell .eyebrow{color:#b6c3ed}
.shell .sidebar .nav-item{color:#d4dcf8;border:1px solid transparent;border-radius:9px}
.shell .sidebar .nav-item:hover{background:#28356b;border-color:#5d69a5}
.shell .sidebar .nav-item.active{background:linear-gradient(110deg,#f6d38c,#b78a50);border-color:#ffdf9b;color:#202345;box-shadow:0 3px 18px #edba6955}
.shell .main{background:radial-gradient(ellipse at 80% 0,#333d86 0,transparent 37%),#10183b}
.shell .topbar{position:relative;border:1px solid #4d5b98;border-radius:14px;padding:22px 25px;background:linear-gradient(90deg,#202b61f5,#27356acc),url('/adventure-hero-blue.png') center 42%/cover;box-shadow:inset 0 1px #ffffff20}
.shell .topbar h1{color:#fff8e7}.shell .topbar p{color:#d4dafa}
.shell .notice{background:#222d5c;border-color:#5463a2;color:#dbe5ff}.shell .notice strong{color:#ffdb92}
.shell .panel,.shell .metric,.shell .project-card{background:linear-gradient(145deg,#273568,#1a2350);border-color:#4c5b98;box-shadow:inset 0 1px #ffffff0c}
.shell .panel h2,.shell .panel h3{color:#f9f4e6}.shell .metric label,.shell .panel p{color:#c4cdea}
.shell .metric .value,.shell .metric.highlight .value{color:#ffda8c}.shell .metric.highlight{background:linear-gradient(145deg,#454178,#252d64);border-color:#8b79b4}
.shell input,.shell select,.shell textarea{background:#141d44;border-color:#5969a2;color:#fff}.shell input:focus,.shell select:focus{border-color:#f1cf83;outline-color:#f1cf83}
.shell th{background:#303c75;color:#d8e1ff}.shell td{border-color:#455181}.shell .account-check,.shell .role-list article{background:#1a2451;border-color:#50609a}
.shell button.primary,.shell .primary{background:linear-gradient(115deg,#ffdf9b,#d3a15a);border-color:#fce2aa;color:#202040}
.shell .positive{color:#f5d184}.shell .empty{color:#b8c5e6;border-color:#52629a}.shell .result{background:#263b48;border-color:#809669}.shell .result h3{color:#e8da98}
.shell .analytics-bar-track i{background:linear-gradient(#dfc6ff,#8b6ce2)}.shell .analytics-balance strong{color:#ffdb92}
.member-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 20px}.member-heading h2{margin:6px 0;font-size:23px}.member-heading p{color:#c4cdea;margin:0;line-height:1.7;font-size:13px}.member-count{white-space:nowrap;padding:9px 15px;border:1px solid #9e8d8b;background:#473e5f;border-radius:20px;color:#ffe0a2;font-size:13px}
.pos-shell .main{background:radial-gradient(ellipse at 80% 0,#333d86 0,transparent 37%),#10183b}.pos-shell .sidebar{background:linear-gradient(180deg,#171e48,#11183a)}
.pos-shell .sidebar .nav-item.active{background:linear-gradient(110deg,#f6d38c,#b78a50);border-color:#ffdf9b;color:#202345}
.pos-shell .pos-catalog,.pos-shell .pos-checkout{background:linear-gradient(145deg,#273568,#1a2350);border-color:#5263a2}
.pos-shell .pos-quick button,.pos-shell .pos-product{background:linear-gradient(145deg,#34427c,#222e61);border-color:#6070ae}.pos-shell .pos-quick button:hover,.pos-shell .pos-product:hover:not(:disabled){border-color:#ffdc95}
.pos-shell .pos-product strong,.pos-shell .pos-total strong,.pos-shell .pos-eyebrow{color:#ffdc95}.pos-shell .pos-product-icon,.pos-quick button b{background:#46538a;color:#ffdb95}
.pos-shell .pos-categories button.active,.pos-shell .pos-submit{background:linear-gradient(115deg,#ffdf9b,#d3a15a);border-color:#ffdf9b;color:#202040}
.pos-shell .pos-payments input:checked+span{background:#49405f;color:#ffe4ab;border-color:#f5d184}
@media(max-width:720px){.shell .topbar{padding:18px}.member-heading{align-items:flex-start;flex-direction:column}}

/* 老板数据看板：所有数字均来自门店汇总，不使用预填目标或虚构数据。 */
.dashboard{max-width:1680px;margin:0 auto}
.dash-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:4px 0 18px}
.dash-heading span{color:#b5a8f7;font-size:10px;font-weight:700;letter-spacing:.15em}
.dash-heading h2{font-size:23px;color:#fff8ea;margin:7px 0 5px}
.dash-heading p{color:#abb9e0;font-size:12px;margin:0}
.dash-live{display:flex;align-items:center;gap:6px;color:#b8c6e8;font-size:11px;white-space:nowrap}
.dash-live i{width:7px;height:7px;border-radius:50%;background:#6ae1b6;box-shadow:0 0 10px #75e4c1}
.dash-live small{color:#8e9cc6}
.dash-controls{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:17px}
.dash-quick-group{display:flex;gap:6px;padding:5px;border:1px solid #46558b;background:#17224f;border-radius:10px}
.dash-quick-group .dash-quick{border:0;border-radius:7px;background:transparent;color:#c5d0ed;padding:8px 13px}
.dash-quick-group .dash-quick.is-active{background:#f5d18d;color:#202746;font-weight:700}
.dash-dates{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.dash-dates label{display:flex;flex-direction:column;gap:5px;color:#abb9dd;font-size:11px}
.dash-dates input{max-width:150px;padding:8px 10px;font-size:12px}
.dash-dates>span{padding-bottom:9px;color:#a8b4d7}
.dash-dates button{padding:8px 14px}
.dash-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}
.dash-stat{min-width:0;display:flex;flex-direction:column;gap:11px;padding:15px 14px;border:1px solid #4c5b98;border-radius:12px;background:linear-gradient(145deg,#303d78,#202a5a);box-shadow:inset 0 1px #fff1}
.dash-stat.is-gold{background:linear-gradient(135deg,#514679,#2c3065);border-color:#8d78a7}
.dash-stat-top{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#c7d1ee;font-size:12px}
.dash-stat-top i{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#ffffff13;color:#ffdb93;font-size:16px;font-style:normal}
.dash-stat>strong{overflow-wrap:anywhere;color:#ffe0a0;font-size:22px;line-height:1.05;font-variant-numeric:tabular-nums}
.dash-stat>strong small{color:#dddaf0;font-size:12px;font-weight:500}
.dash-stat>small{color:#aab7d8;font-size:10px;line-height:1.5}
.dash-notice{padding:11px 14px;border:1px solid #625c85;border-radius:10px;background:#3d3456;color:#e4dded;font-size:12px;line-height:1.65;margin-bottom:14px}
.dash-notice strong{color:#ffdc9e;margin-right:7px}
.dash-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:14px}
.dash-main-column,.dash-side-column{display:flex;min-width:0;flex-direction:column;gap:14px}
.dash-panel{min-width:0;padding:18px;border:1px solid #4c5b98;border-radius:13px;background:linear-gradient(145deg,#273568,#1a2350);box-shadow:inset 0 1px #fff1}
.dash-panel-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:13px}
.dash-panel-title h2{margin:0;color:#fff6e5;font-size:15px}
.dash-panel-title p{margin:6px 0 0;color:#a7b6dc;font-size:11px;line-height:1.5}
.dash-chart-scroll{overflow-x:auto;overflow-y:hidden}
.dash-trend{display:block;width:100%;height:225px;overflow:visible}
.dash-grid-line{stroke:#7180b3;stroke-opacity:.22;stroke-dasharray:3 5}.dash-zero-line{stroke:#a9b7e0;stroke-opacity:.72}
.dash-axis{fill:#b2bedf;font-size:10px}.dash-bar-positive{fill:url(#dash-bar-gradient)}.dash-bar-negative{fill:#f08e90}
.dash-caption{color:#a8b5d7;font-size:10px;line-height:1.6;margin:5px 0 0}
.dash-empty{display:flex;align-items:center;justify-content:center;min-height:108px;border:1px dashed #536195;border-radius:9px;color:#b0bddf;font-size:12px}
.dash-mix{display:flex;align-items:center;gap:22px;padding:7px 2px}
.dash-donut{display:grid;place-items:center;flex:none;width:150px;height:150px;border-radius:50%}
.dash-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:106px;height:106px;border-radius:50%;background:#202a59}
.dash-donut strong{color:#ffdda0;font-size:25px;line-height:1}.dash-donut span{color:#bec9e6;font-size:11px}
.dash-legend{flex:1;list-style:none;margin:0;padding:0;min-width:0}
.dash-legend li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;color:#ced6ee;font-size:11px;border-bottom:1px solid #4a568330}
.dash-legend li:last-child{border:0}.dash-legend li>span:last-child{white-space:nowrap}.dash-legend b{font-weight:500;color:#a9b7da;margin-left:4px}
.dash-legend-name{display:flex;align-items:center;gap:7px}.dash-legend-name i{width:9px;height:9px;border-radius:3px;flex:none}
.dash-ranking{display:flex;flex-direction:column;gap:13px;padding:4px 0}
.dash-rank-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;color:#dce3f7;font-size:12px}
.dash-rank-label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dash-rank-label strong{color:#f7dfaa;font-size:11px;white-space:nowrap}
.dash-rank-label em{display:inline-block;width:23px;font-size:10px;color:#9daecc;font-style:normal}
.dash-track{height:6px;overflow:hidden;border-radius:9px;background:#44517d}.dash-track i{display:block;height:100%;border-radius:9px}
.dash-layout-bottom{margin-top:14px}.dash-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dash-detail>div{padding:13px 10px;border:1px solid #46558a;border-radius:9px;background:#18234c}
.dash-detail span{display:block;color:#aebcdf;font-size:11px}.dash-detail strong{display:block;color:#ffe0a0;font-size:21px;margin-top:8px}.dash-detail small{font-size:11px;color:#c7d3e9;font-weight:400}
.dash-detail-link{margin-top:13px;color:#ffda91;background:transparent;border:0;padding:8px 0}.dash-detail-link:hover{color:#fff1cb}
@media(max-width:1350px){.dash-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.dash-layout{grid-template-columns:1fr}.dash-main-column,.dash-side-column{display:contents}.dash-panel{min-width:0}.dash-heading{align-items:start;flex-direction:column}.dash-live{white-space:normal}}
@media(max-width:620px){.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-controls{align-items:stretch;flex-direction:column}.dash-quick-group{justify-content:space-around}.dash-quick-group .dash-quick{flex:1}.dash-dates label{flex:1;min-width:120px}.dash-dates input{max-width:none;width:100%}.dash-mix{gap:12px}.dash-donut{width:124px;height:124px}.dash-donut>div{width:88px;height:88px}.dash-detail strong{font-size:17px}}

.member-search-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.member-search-bar label{font-weight:700;white-space:nowrap}.member-search-bar input{flex:1;min-width:190px;max-width:420px}.member-search-bar span{color:#bec9e9;font-size:12px}tr[data-member-search][hidden],#member-search-empty[hidden]{display:none!important}

.media-section{margin:16px 0}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:14px}.media-form{display:flex;flex-direction:column;gap:8px;padding:12px;background:#18234c;border:1px solid #4d5b91;border-radius:11px;min-width:0}.media-form>strong{color:#fff7e7}.media-form>small{font-size:11px;color:#bbc7e5}.media-preview{display:grid;place-items:center;height:125px;border-radius:8px;overflow:hidden;background:#111a3b;color:#a9b9df;font-size:12px}.media-preview img{width:100%;height:100%;object-fit:cover}.media-form input[type=file]{width:100%;min-width:0;font-size:11px;padding:7px}.media-actions{display:flex;flex-wrap:wrap;gap:6px}.media-actions button{flex:1;white-space:nowrap;font-size:12px;padding:8px 10px}.pos-product-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

.brand-icon img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.pos-shell .pos-product.has-photo .pos-product-icon{width:64px;height:64px}.pos-shell .pos-product.has-photo{min-height:170px}

/* Compact, readable controls for daily work on desktop and phone. */
.shell .sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.shell .topbar{background:#202b57;box-shadow:none;border-color:#44527b}
.shell .panel,.shell .metric,.shell .project-card{background:#202b50;box-shadow:none;border-color:#414f78}
.mobile-console-nav{display:none}
.calculation-summary{padding:12px 14px;margin:14px 0;border:1px solid #62749f;border-radius:9px;background:#18264d;color:#f2f6ff;font-size:13px;line-height:1.6;font-weight:600}
.calculation-summary.is-warning{border-color:#df9a80;background:#422d3b;color:#ffe1d5}
.demo-disclosure{margin-bottom:18px;border:1px solid #4c5b86;border-radius:12px;background:#1a254a;overflow:hidden}
.demo-disclosure>summary{padding:14px 18px;cursor:pointer;color:#c9d3ed;font-size:13px;font-weight:600}
.demo-disclosure>.panel{border:0;border-top:1px solid #4c5b86;border-radius:0}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffda8c;outline-offset:2px}
@media(max-width:720px){
  .shell .sidebar nav{overflow-x:auto;overflow-y:hidden}
  .admin-shell .sidebar{padding:14px 16px}
  .admin-shell .sidebar .brand{padding:0}
  .admin-shell .sidebar nav{display:none}
  .mobile-console-nav{display:block;margin:0 0 16px;padding:13px 15px;border:1px solid #465783;border-radius:10px;background:#1b2850}
  .mobile-console-nav label{display:block;margin-bottom:7px;color:#c4cfea;font-size:12px}
  .mobile-console-nav select{min-height:44px;font-size:16px}
  .shell .topbar{margin-bottom:16px}
  .top-actions,.dash-dates{flex-wrap:wrap}
  .table-wrap{overscroll-behavior-x:contain}
  .shell input:not([type=checkbox]),.shell select,.shell textarea{font-size:16px}
}
.staff-shell{font-size:16px}.staff-shell .sidebar{padding:16px 14px}.staff-shell .sidebar .brand{padding-bottom:12px}.staff-shell .nav-label{padding:8px 12px}.staff-shell .nav-item{min-height:48px;font-size:18px;padding:9px 12px}.staff-shell .sidebar-bottom{padding-top:6px}.staff-shell .sidebar-bottom a,.staff-shell .sidebar-bottom p{font-size:13px}.staff-shell .main{padding:24px 28px 48px}.staff-shell .topbar{margin-bottom:18px}.staff-shell .panel h2{font-size:21px}.staff-shell .panel h3{font-size:19px}.staff-shell .panel p,.staff-shell .field label,.staff-shell .notice,.staff-shell .check{font-size:16px;line-height:1.55}.staff-shell .panel p,.staff-shell .field label{color:#d4def2}.staff-shell input:not([type=checkbox]):not([type=radio]),.staff-shell select,.staff-shell textarea{min-height:48px;font-size:17px}.staff-shell button{min-height:48px;font-size:16px}.staff-shell .nav-item{font-size:18px}.staff-shell table{font-size:16px}.staff-shell th{color:#c5d2e9}.staff-shell td.code,.staff-shell td small{font-size:14px}.staff-shell .pos-product-name{font-size:18px}.staff-shell .pos-product strong{font-size:21px}.staff-shell .pos-total strong{font-size:30px}.staff-shell .pos-submit{font-size:19px}.staff-shell .tag{font-size:14px}.staff-shell .camera-actions{display:flex;gap:8px;flex-wrap:wrap}.staff-shell video{width:min(100%,480px);margin-top:12px;border-radius:10px;background:#000}.staff-shell video[hidden]{display:none}.member-avatar-preview{width:100px;height:100px;object-fit:cover;border-radius:50%;margin:10px 0}.staff-workspace{max-width:800px}.staff-records{margin-top:20px}
@media(max-width:720px){.staff-shell .main{padding:14px 12px 34px}.staff-shell .sidebar{padding:12px}.staff-shell .sidebar nav{display:none}.staff-shell .mobile-console-nav label{font-size:16px}.staff-shell .grid.cols2{grid-template-columns:1fr}.staff-shell .inline{flex-wrap:wrap}.staff-shell .inline input{flex:1 1 180px}.staff-shell .form-grid{grid-template-columns:1fr}.staff-shell .pos-quick{display:flex;flex-wrap:wrap}.staff-shell .pos-quick button{flex:1 1 140px}.staff-shell .pos-quick button span{font-size:15px}.staff-shell .sidebar-bottom{display:none}}
@media(min-width:721px){
  .staff-shell .sidebar{padding:8px 12px}
  .staff-shell .sidebar .brand{padding:0 6px 6px;margin-bottom:4px}
  .staff-shell .nav-label{padding:2px 10px 4px}
  .staff-shell .nav-item{margin:1px 0;min-height:48px}
  .staff-shell .sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .staff-shell .sidebar-bottom{flex:0 0 auto;margin-top:2px;padding:0}
  .staff-shell .sidebar-bottom .tag,.staff-shell .sidebar-bottom p,.staff-shell .sidebar-bottom a[href="/visitor"]{display:none}
  .staff-shell .sidebar-bottom a{display:flex;align-items:center;min-height:48px;margin:0;padding:4px 8px;font-size:13px}
}

/* Member portrait control: clear placeholder and a single primary camera action. */
.staff-shell .member-photo{display:flex;flex-direction:column;align-items:center;gap:10px;width:180px;max-width:100%}
.staff-shell .member-photo-frame{position:relative;width:168px;max-width:100%;aspect-ratio:1;background:#f1f2f4;border:1px dashed #aab1ba;border-radius:4px;overflow:hidden}
.staff-shell .member-photo-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#aeb4bd}
.staff-shell .member-photo-placeholder svg{width:48px;height:48px;fill:currentColor}
.staff-shell .member-photo-frame video,.staff-shell .member-photo-image{position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:0;object-fit:cover}
.staff-shell .member-photo-hint{font-size:14px;color:#d4def2}
.staff-shell .member-photo-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.staff-shell .member-photo-button{background:#00a974;border-color:#00a974;color:#fff;min-width:92px}
.staff-shell .member-photo [hidden]{display:none!important}

/* Cashier records and refund controls */
.staff-shell .pos-recent .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.staff-shell .pos-recent td{vertical-align:middle}
.staff-shell .pos-recent td strong{font-size:18px}
.staff-shell .panel-head{gap:12px;align-items:center}
.staff-shell .inline{gap:10px;align-items:center}
.staff-shell .stack{gap:10px;align-items:center;flex-wrap:wrap}
#modal .refund-item{display:grid;gap:10px;margin:14px 0;padding:14px;border:1px solid #53638b;border-radius:10px}
#modal .refund-item label:not(.check){display:grid;gap:6px}
#modal .refund-item input[type=number]{min-height:48px;font-size:17px}
#modal .refund-item .check,#modal #retail-refund-form>.check{font-size:16px;line-height:1.5}
#modal #retail-refund-form button{min-height:48px;font-size:17px}
@media(max-width:720px){.staff-shell .pos-recent .panel-head button{width:100%}.staff-shell .panel{padding:16px}.staff-shell .panel-head{flex-wrap:wrap}}

/* Disabled actions are unavailable, not a loading state. */
.staff-shell button:disabled{cursor:not-allowed}
.staff-shell #card-sale-form .pos-payments span{min-height:48px;display:grid;place-items:center;font-size:16px;line-height:1.35}
