:root{
  --bg: oklch(96.8% 0.02 350);
  --surface: oklch(99.6% 0.004 350);
  --surface-2: oklch(98.1% 0.012 350);
  --fg: oklch(27% 0.028 340);
  --muted: oklch(48% 0.050 345);
  --border: oklch(90% 0.032 350);
  --accent: oklch(57% 0.16 358);
  --accent-deep: color-mix(in oklch, var(--accent) 68%, var(--fg));
  --accent-soft: color-mix(in oklch, var(--accent) 13%, var(--surface));
  --accent-line: color-mix(in oklch, var(--accent) 28%, var(--surface));
  --ok: oklch(62% 0.12 152);
  --ok-ink: color-mix(in oklch, var(--ok) 58%, var(--fg));
  --warn: oklch(78% 0.13 80);
  --warn-ink: color-mix(in oklch, var(--warn) 46%, var(--fg));
  --danger: oklch(60% 0.18 22);
  --info: oklch(66% 0.11 245);
  --teal: oklch(68% 0.10 195);
  --island: oklch(19% 0.012 340);
  --shadow: 0 18px 40px -22px color-mix(in oklch, var(--fg) 45%, transparent);
  --shadow-soft: 0 8px 22px -16px color-mix(in oklch, var(--fg) 55%, transparent);

  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r-card: 20px;
  --r-btn: 14px;
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:15px; line-height:1.5;
  color:var(--fg);
  background:
    radial-gradient(110% 70% at 12% -6%, color-mix(in oklch, var(--accent) 20%, var(--bg)), transparent 58%),
    radial-gradient(120% 85% at 108% 108%, color-mix(in oklch, var(--accent) 13%, var(--bg)), transparent 55%),
    var(--bg);
  display:flex; align-items:center; justify-content:center;
  padding:26px 16px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button{font:inherit; color:inherit; cursor:pointer; border:0; background:none}
a{color:inherit; text-decoration:none}
img{display:block; max-width:100%}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:6px}
.num{font-family:var(--font-mono); font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.tiny{font-size:11.5px}
.hidden{display:none !important}

/* ─── phone shell ─────────────────────────────────────────────── */
.phone{
  position:relative;
  width:390px; height:844px;
  background:var(--bg);
  border-radius:46px;
  border:1px solid var(--border);
  box-shadow:var(--shadow), 0 1px 0 color-mix(in oklch, var(--surface) 70%, transparent) inset;
  overflow:hidden;
  display:flex; flex-direction:column;
}
.island,.statusbar{display:none!important}
.statusbar svg{width:17px; height:17px}
.statusbar .sb-r{display:flex; align-items:center; gap:6px}
.viewport{flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; position:relative; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain}
.viewport::-webkit-scrollbar{display:none}
.screen{display:none}
.screen.active{display:block; animation:fade .22s ease}
@keyframes fade{from{opacity:0; transform:translateY(6px)}to{opacity:1; transform:none}}

/* ─── appbar ──────────────────────────────────────────────────── */
.appbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; gap:10px;
  min-height:52px; padding:calc(8px + env(safe-area-inset-top,0px)) calc(14px + env(safe-area-inset-right,0px)) 10px calc(14px + env(safe-area-inset-left,0px));
  background:color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
.appbar h1{font-family:var(--font-display); font-size:19px; font-weight:800; letter-spacing:-.2px; flex:1}
@font-face{font-family:"Xiaomizhou Hand";src:url("assets/store-name.woff2?v=4") format("woff2"),url("assets/store-name.ttf?v=4") format("truetype");font-style:normal;font-weight:400;font-display:swap}
.brand-wordmark{display:inline-flex;align-items:baseline;max-width:100%;white-space:pre;vertical-align:baseline;line-height:1.35}
.brand-custom{display:inline-block;font-family:"Xiaomizhou Hand",var(--font-display);font-size:38px;font-weight:400;font-style:normal;line-height:.82;letter-spacing:-.055em;text-transform:none}
.brand-base{display:inline-block;font-family:var(--font-display);font-size:20px;font-weight:800;line-height:1.35;letter-spacing:-.02em;text-transform:none}
.appbar h1 .brand-wordmark{display:flex}
.appbar h1 .brand-custom{font-size:38px}
.appbar h1 .brand-base{font-size:19px}
.brand-wordmark.auth-brand{margin:0 0 6px}
.brand-wordmark.auth-brand .brand-custom{font-size:32px}
.brand-wordmark.auth-brand .brand-base{font-size:16px}
.brand-wordmark-card .brand-custom{font-size:38px}
.brand-wordmark-card .brand-base{font-size:20px}
.appbar .sub{font-size:11.5px; color:var(--muted); font-weight:600}
.iconbtn{width:44px; height:44px; border-radius:14px; display:grid; place-items:center; color:var(--fg); flex:none; transition:background .15s ease}
.iconbtn:hover{background:var(--accent-soft)}
.iconbtn svg{width:21px; height:21px}
.appbar-plain{background:transparent; backdrop-filter:none}

/* ─── layout helpers ──────────────────────────────────────────── */
.body{padding:2px calc(14px + env(safe-area-inset-right,0px)) 30px calc(14px + env(safe-area-inset-left,0px)); display:flex; flex-direction:column; gap:14px}
.body.tight{gap:10px}
.row{display:flex; align-items:center; gap:10px}
.between{display:flex; align-items:center; justify-content:space-between; gap:10px}
.grow{flex:1; min-width:0}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.sec-title{display:flex; align-items:center; justify-content:space-between; gap:8px; margin:6px 2px 0}
.sec-title h2{font-size:15px; font-weight:800; letter-spacing:-.1px}
.sec-title a{font-size:12.5px; color:var(--accent-deep); font-weight:600; display:inline-flex; align-items:center; gap:2px}
.sec-title a svg{width:14px; height:14px}
.ellipsis{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.divider{height:1px; background:var(--border); border:0; margin:2px 0}

/* ─── card ────────────────────────────────────────────────────── */
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); padding:15px; box-shadow:var(--shadow-soft)}
.card.flat{box-shadow:none}
.card.pad0{padding:0; overflow:hidden}
.card-hero{position:relative; overflow:hidden; border-color:var(--accent-line); padding:17px}
.card-hero::before{content:""; position:absolute; inset:0; background:linear-gradient(180deg, color-mix(in oklch, var(--surface) 72%, transparent), color-mix(in oklch, var(--surface) 93%, transparent))}
.card-hero>*{position:relative; z-index:1}
.hero-welcome{background-image:url("assets/bg-bows.jpg"); background-size:cover; background-position:center 42%}
.hero-member{background-image:url("assets/card-member.jpg"); background-size:cover; background-position:center 78%; border-color:var(--accent-line)}
.hero-plain{background-image:url("assets/bg-drive.jpg"); background-size:cover; background-position:center 58%}

/* ─── buttons ─────────────────────────────────────────────────── */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 18px; border-radius:var(--r-btn); border:1px solid transparent; font-size:14.5px; font-weight:700; letter-spacing:-.1px; transition:background .15s ease, border-color .15s ease, transform .06s ease}
.btn:active{transform:translateY(1px)}
.btn svg{width:18px; height:18px}
.btn-primary{background:var(--accent); color:var(--surface)}
.btn-primary:hover{background:color-mix(in oklch, var(--accent) 84%, var(--fg))}
.btn-soft{background:var(--accent-soft); color:var(--accent-deep); border-color:var(--accent-line)}
.btn-soft:hover{background:color-mix(in oklch, var(--accent) 20%, var(--surface))}
.btn-outline{background:var(--surface); color:var(--fg); border-color:var(--border)}
.btn-outline:hover{border-color:color-mix(in oklch, var(--border) 55%, var(--fg))}
.btn-danger{background:var(--surface); color:color-mix(in oklch, var(--danger) 82%, var(--fg)); border-color:color-mix(in oklch, var(--danger) 32%, var(--surface))}
.btn-danger:hover{background:color-mix(in oklch, var(--danger) 12%, var(--surface))}
.btn-block{width:100%}
.btn-sm{min-height:44px; padding:0 13px; font-size:13px; border-radius:11px}
.btn-row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.link{color:var(--accent-deep); font-weight:700; font-size:13.5px}

/* ─── stat grid ───────────────────────────────────────────────── */
.stat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden}
.stat{background:var(--surface); padding:13px 14px}
.stat .k{font-size:12px; color:var(--muted); font-weight:600}
.stat .v{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-size:23px; font-weight:800; letter-spacing:-.5px; margin-top:3px}
.stat .v small{font-size:12px; font-weight:700; color:var(--muted); margin-left:2px}
.stat-grid.cols-4{grid-template-columns:repeat(2,1fr)}

/* ─── money ───────────────────────────────────────────────────── */
.money{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:800; letter-spacing:-.4px}
.m-ok{color:var(--ok-ink)}
.m-warn{color:var(--warn-ink)}
.m-danger{color:color-mix(in oklch, var(--danger) 80%, var(--fg))}
.m-dim{color:var(--muted)}
.kv{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; font-size:14px}
.kv+.kv{border-top:1px dashed var(--border)}
.kv .k{color:var(--muted)}
.kv .k strong{color:var(--fg); font-weight:700}
.kv.total{border-top:1px solid var(--fg); border-top-style:solid; margin-top:4px; padding-top:12px; font-size:15.5px}
.kv.total .k{color:var(--fg); font-weight:800}
.kv .v{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:700}
.kv .v.big{font-size:20px; font-weight:800}

/* ─── list ────────────────────────────────────────────────────── */
.list{display:flex; flex-direction:column}
.li{display:flex; align-items:center; gap:12px; padding:12px 2px; border-top:1px solid var(--border); transition:background .15s ease}
.list>.li:first-child{border-top:0}
.li.tap{cursor:pointer}
.li.tap:hover{background:var(--accent-soft); border-radius:12px}
.avatar{width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none; box-shadow:0 0 0 1.5px var(--accent-line); background:var(--surface-2)}
.avatar.lg{width:62px; height:62px}
.avatar.sm{width:34px; height:34px}
.avatar.xs{width:24px; height:24px; box-shadow:0 0 0 1px var(--border)}
.li-body{flex:1; min-width:0}
.li-title{font-weight:700; font-size:14.5px; letter-spacing:-.1px}
.li-sub{font-size:12px; color:var(--muted); margin-top:2px}
.li-tail{text-align:right; flex:none}
.li-tail .t1{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:800; font-size:14.5px}
.li-tail .t2{font-size:11px; color:var(--muted); margin-top:2px}
.li-chev{color:var(--muted); flex:none}
.li-chev svg{width:17px; height:17px}

/* ─── chip / badge ────────────────────────────────────────────── */
.chip{--s:var(--muted); display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; font-size:11px; font-weight:700; background:color-mix(in oklch, var(--s) 15%, var(--surface)); border:1px solid color-mix(in oklch, var(--s) 30%, var(--surface)); color:var(--fg); white-space:nowrap}
.chip::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--s); flex:none}
.chip.pending{--s:var(--warn)}
.chip.confirmed{--s:var(--info)}
.chip.arrived{--s:var(--teal)}
.chip.serving{--s:var(--accent)}
.chip.done{--s:var(--ok)}
.chip.cancel{--s:var(--muted)}
.chip.noshow{--s:var(--danger)}
.chip.paid{--s:var(--ok); background:color-mix(in oklch, var(--ok) 13%, var(--surface))}
.chip.owed{--s:var(--warn)}
.chip.plain{background:var(--surface-2); border-color:var(--border)}
.tagline{display:flex; gap:6px; flex-wrap:wrap}
.tag{font-size:11px; padding:3px 9px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); color:var(--muted); font-weight:600}

/* ─── segment control ─────────────────────────────────────────── */
.seg{display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:none; min-height:44px; padding:0 15px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--muted); font-size:13px; font-weight:700; transition:background .15s ease, color .15s ease, border-color .15s ease}
.seg button:hover{color:var(--fg); border-color:color-mix(in oklch, var(--border) 45%, var(--fg))}
.seg button[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:var(--surface)}
.seg.wrap{flex-wrap:wrap; overflow:visible}

/* ─── form ────────────────────────────────────────────────────── */
.field{display:flex; flex-direction:column; gap:7px}
.field>label{font-size:12.5px; color:var(--muted); font-weight:700}
.input,.textarea,.select{width:100%; min-height:46px; padding:11px 14px; border:1px solid var(--border); border-radius:13px; background:var(--surface); color:var(--fg); font:inherit; font-size:14.5px; transition:border-color .15s ease, box-shadow .15s ease}
.textarea{min-height:84px; resize:vertical; line-height:1.55}
.input::placeholder,.textarea::placeholder{color:color-mix(in oklch, var(--muted) 70%, var(--surface))}
.input:focus,.textarea:focus,.select:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.picker{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:11px 14px; border:1px solid var(--border); border-radius:13px; background:var(--surface); font-size:14.5px; width:100%; text-align:left}
.picker:hover{border-color:var(--accent-line)}
.picker .ph{color:color-mix(in oklch, var(--muted) 78%, var(--surface))}
.picker svg{width:17px; height:17px; color:var(--muted)}
.switch{width:52px; height:44px; position:relative; flex:none; background:transparent}
.switch::before{content:""; position:absolute; left:2px; top:7px; width:48px; height:30px; border-radius:999px; background:color-mix(in oklch, var(--muted) 30%, var(--surface)); transition:background .18s ease}
.switch span{position:absolute; top:11px; left:5px; width:22px; height:22px; border-radius:50%; background:var(--surface); box-shadow:var(--shadow-soft); transition:transform .18s ease}
.switch[aria-checked="true"]::before{background:var(--accent)}
.switch[aria-checked="true"] span{transform:translateX(20px)}

/* ─── callout ─────────────────────────────────────────────────── */
.callout{--s:var(--warn); display:flex; gap:10px; padding:11px 13px; border-radius:14px; background:color-mix(in oklch, var(--s) 14%, var(--surface)); border:1px solid color-mix(in oklch, var(--s) 32%, var(--surface))}
.callout svg{width:18px; height:18px; flex:none; color:var(--warn-ink); margin-top:1px}
.callout p{font-size:12.5px; line-height:1.5}
.callout.pink{--s:var(--accent)}
.callout.ok{--s:var(--ok)}
.callout.ok svg{color:var(--ok-ink)}
.callout strong{font-weight:800}

/* ─── quick actions ───────────────────────────────────────────── */
.quick{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.qa{display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 6px; border-radius:16px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-soft); transition:border-color .15s ease, transform .06s ease}
.qa:hover{border-color:var(--accent-line)}
.qa:active{transform:translateY(1px)}
.qa .qa-ico{width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-deep)}
.qa .qa-ico svg{width:20px; height:20px}
.qa span{font-size:12.5px; font-weight:700}

/* ─── appointment card ────────────────────────────────────────── */
.appt{border:1px solid var(--border); border-radius:16px; padding:12px 13px; background:var(--surface); box-shadow:var(--shadow-soft); transition:border-color .15s ease}
.appt.tap{cursor:pointer}
.appt.tap:hover{border-color:var(--accent-line)}
.appt .a-top{display:flex; align-items:center; gap:9px}
.appt .a-time{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-weight:800; font-size:13.5px}
.appt .a-name{font-weight:800; font-size:14.5px}
.appt .a-meta{font-size:12px; color:var(--muted); margin-top:5px; display:flex; gap:8px; flex-wrap:wrap}
.appt .a-meta .svc{color:var(--fg); font-weight:600}
.appt.served{opacity:.72}
.tl-row{display:grid; grid-template-columns:46px 1fr; gap:10px; align-items:start}
.tl-time{font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--muted); padding-top:13px; text-align:right}

/* ─── calendar ────────────────────────────────────────────────── */
.cal{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; padding:5px; margin:0 -10px; border-radius:16px; background:var(--surface-2); border:1px solid var(--border); overflow:hidden}
.cal .dow{text-align:center; font-size:11.5px; color:var(--muted); padding:7px 0; border-radius:10px; background:var(--surface); font-weight:800}
.cal .day{position:relative; aspect-ratio:1/1; min-width:0; display:grid; place-items:center; border-radius:12px; border:1px solid var(--border); background:var(--surface); font-size:13.5px; font-weight:800}
.cal .day.empty{border-color:transparent; background:transparent}
.cal .day .n{font-family:var(--font-mono); font-variant-numeric:tabular-nums}
.cal .day .cnt{position:absolute; right:2px; top:2px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:var(--accent); color:var(--surface); font-size:9px; font-weight:850; display:grid; place-items:center}
.cal .day.has{border-color:var(--accent-line); background:var(--accent-soft)}
.cal .day.today{background:var(--accent); border-color:var(--accent); color:var(--surface); box-shadow:inset 0 0 0 1px color-mix(in oklch,var(--surface) 45%,transparent)}
.cal .day.today .cnt{background:var(--surface); color:var(--accent-deep)}
.cal .day.sel{border-color:var(--accent); box-shadow:inset 0 0 0 2px color-mix(in oklch,var(--accent) 28%,transparent)}
.cal .day.sel.today{color:var(--surface)}

/* ─── chart ───────────────────────────────────────────────────── */
.chart{display:flex; align-items:flex-end; justify-content:space-between; gap:8px; height:132px; margin-top:6px}
.chart .col{flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end}
.chart .bars{display:flex; align-items:flex-end; gap:3px; width:100%; height:100%; justify-content:center}
.chart .b{width:9px; border-radius:6px 6px 3px 3px}
.chart .b.rev{background:var(--accent)}
.chart .b.exp{background:color-mix(in oklch, var(--warn) 72%, var(--surface))}
.chart .x{font-size:10px; font-family:var(--font-mono); color:var(--muted)}
.legend{display:flex; gap:14px; font-size:11.5px; color:var(--muted)}
.legend i{width:9px; height:9px; border-radius:3px; display:inline-block; margin-right:5px; vertical-align:-1px}
.progress{height:9px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); overflow:hidden}
.progress>i{display:block; height:100%; background:var(--accent); border-radius:999px}
.rank{display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--border)}
.rank:first-child{border-top:0}
.rank .idx{width:22px; height:22px; border-radius:8px; display:grid; place-items:center; font-family:var(--font-mono); font-size:11.5px; font-weight:800; background:var(--surface-2); color:var(--muted); flex:none}
.rank.top .idx{background:var(--accent-soft); color:var(--accent-deep)}
.rank .bar{height:6px; border-radius:999px; background:var(--accent-soft); margin-top:6px; overflow:hidden}
.rank .bar i{display:block; height:100%; background:var(--accent); border-radius:999px}
.meter{display:grid; grid-template-columns:1fr auto; gap:4px 10px; align-items:center}

/* ─── empty ───────────────────────────────────────────────────── */
.empty{display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:26px 18px}
.empty img{width:132px; height:132px; object-fit:cover; border-radius:24px}
.empty h3{font-size:15px; font-weight:800}
.empty p{font-size:12.5px; color:var(--muted); max-width:24ch}

/* ─── tabbar ──────────────────────────────────────────────────── */
.tabbar{flex:none; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:6px calc(8px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(8px + env(safe-area-inset-left,0px)); background:color-mix(in oklch, var(--surface) 90%, transparent); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-top:1px solid var(--border)}
.tab{display:flex; flex-direction:column; align-items:center; gap:3px; min-height:52px; justify-content:center; border-radius:14px; color:var(--muted); font-size:10.5px; font-weight:700; transition:color .15s ease, background .15s ease}
.tab:hover{color:var(--fg)}
.tab svg{width:22px; height:22px}
.tab.active{color:var(--accent-deep); background:var(--accent-soft)}
.phone.no-tabbar .tabbar{display:none}

/* ─── fab ─────────────────────────────────────────────────────── */
.fab{position:fixed; right:calc(50vw - 195px + 16px); bottom:88px; z-index:40; width:56px; height:56px; border-radius:50%; background:var(--accent); color:var(--surface); display:none; place-items:center; box-shadow:0 14px 26px -10px color-mix(in oklch, var(--accent) 70%, transparent); transition:background .15s ease, transform .08s ease}
.fab.show{display:grid}
.fab:hover{background:color-mix(in oklch, var(--accent) 84%, var(--fg))}
.fab:active{transform:scale(.96)}
.fab svg{width:25px; height:25px}
.phone.no-tabbar .fab{bottom:22px}

/* ─── sheets ──────────────────────────────────────────────────── */
.mask{position:absolute; inset:0; z-index:70; background:color-mix(in oklch, var(--fg) 44%, transparent); opacity:0; pointer-events:none; transition:opacity .22s ease}
.mask.show{opacity:1; pointer-events:auto}
.sheet{position:absolute; left:0; right:0; bottom:0; z-index:80; background:var(--surface); border-radius:26px 26px 0 0; padding:10px 16px calc(16px + env(safe-area-inset-bottom)); transform:translateY(105%); visibility:hidden; pointer-events:none; transition:transform .3s cubic-bezier(.2,.85,.25,1), visibility .3s; max-height:86%; overflow-y:auto; scrollbar-width:none}
.sheet::-webkit-scrollbar{display:none}
.sheet.show{transform:translateY(0); visibility:visible; pointer-events:auto}
.sheet-handle{width:42px; height:4px; border-radius:2px; background:var(--border); margin:2px auto 14px}
.sheet h3{font-size:16px; font-weight:800; margin-bottom:3px}
.sheet .sheet-sub{font-size:12.5px; color:var(--muted); margin-bottom:12px}
.opt{display:flex; align-items:center; gap:12px; padding:12px 2px; border-top:1px solid var(--border); cursor:pointer}
.sheet .opt:first-of-type{border-top:0}
.opt:hover{background:var(--accent-soft); border-radius:12px}
.opt .tick{width:22px; height:22px; border-radius:50%; border:1.6px solid var(--border); flex:none; display:grid; place-items:center; color:transparent}
.opt[aria-pressed="true"] .tick{background:var(--accent); border-color:var(--accent); color:var(--surface)}
.opt .tick svg{width:13px; height:13px}

/* ─── misc ────────────────────────────────────────────────────── */
.big-money{font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-size:34px; font-weight:800; letter-spacing:-1.2px; line-height:1.05}
.big-money small{font-size:16px; font-weight:800; margin-right:1px}
.calline{display:flex; align-items:baseline; gap:6px}
.warnline{font-size:12px; color:var(--warn-ink); font-weight:700; display:flex; align-items:center; gap:5px}
.warnline svg{width:14px; height:14px}
.toast-wrap{position:absolute; left:50%; top:calc(58px + env(safe-area-inset-top,0px)); z-index:130; width:min(calc(100% - 28px), 350px); transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; pointer-events:none}
.toast{display:flex; align-items:center; gap:9px; padding:11px 13px; border-radius:14px; background:color-mix(in oklch, var(--fg) 94%, transparent); color:var(--surface); box-shadow:var(--shadow); font-size:13px; font-weight:700; animation:toast-in .22s ease; backdrop-filter:blur(12px)}
.toast::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--ok); flex:none}
.toast.error::before{background:var(--danger)}
.toast.warn::before{background:var(--warn)}
@keyframes toast-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.qty{display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:11px; overflow:hidden; background:var(--surface)}
.qty button{width:44px; height:44px; font-size:18px; font-weight:700}
.qty input{width:44px; height:44px; border:0; border-inline:1px solid var(--border); text-align:center; background:var(--surface); color:var(--fg); font:inherit}
.checkout-item{padding:12px 0;border-top:1px dashed var(--border)}
.checkout-item:first-child{border-top:0;padding-top:0}
[data-remove-item]{min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center}
.btn:disabled{opacity:.58; cursor:not-allowed; transform:none}
@media (min-width:461px) and (max-height:920px){
  body{padding:10px 16px}
  .phone{height:calc(100dvh - 20px); min-height:600px}
}
@media (max-width:460px){
  body{padding:0}
  .fab{right:16px}
  .phone{width:100vw; height:100vh; height:100dvh; border-radius:0; border:0}
  .island{display:none}
  .statusbar{height:env(safe-area-inset-top,26px); min-height:26px; padding-inline:20px}
}
@media (orientation:landscape) and (max-height:500px){
  body{padding:0}
  .fab{right:16px}
  .phone{width:100vw; height:100vh; height:100dvh; min-height:0; border-radius:0; border:0}
}

/* functional app additions */
.route-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-list{display:flex;flex-direction:column;gap:8px}
.sheet-form{display:flex;flex-direction:column;gap:12px}
.money-large{font-size:26px}
.timeline-empty{margin:10px 0}
.empty.compact{padding:18px 12px}
.empty.compact img{width:96px;height:96px;border-radius:20px}
.cal .day{cursor:pointer}
.source-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;background:var(--surface-2);font-size:12px;color:var(--muted)}
.mini-list{display:flex;flex-direction:column;gap:10px}
.modal-list{display:flex;flex-direction:column}
.check-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--border)}
.check-line:first-child{border-top:0}
.selected-row{background:var(--accent-soft);border-radius:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

[data-action="remove-order-item"]{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.check-line{cursor:pointer}
.check-line input[type="checkbox"],.card input[type="checkbox"]{accent-color:var(--accent);width:20px;height:20px;flex:none}

.service-entry{padding:12px;border:1px solid var(--border);border-radius:15px;background:var(--surface-2)}
.service-entry+.service-entry{margin-top:0}

.auth-shell{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) calc(24px + env(safe-area-inset-left,0px));background:radial-gradient(110% 80% at 10% 0,color-mix(in oklch,var(--accent) 24%,var(--bg)),transparent 58%),radial-gradient(120% 90% at 110% 110%,color-mix(in oklch,var(--accent) 16%,var(--bg)),transparent 60%),var(--bg)}
.auth-card{width:min(100%,390px);padding:26px;background:color-mix(in oklch,var(--surface) 94%,transparent);border:1px solid var(--accent-line);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.auth-logo{width:82px;height:82px;object-fit:cover;border-radius:24px;border:1px solid var(--accent-line);box-shadow:var(--shadow-soft);margin-bottom:16px}
.auth-title{font-size:24px;font-weight:850;letter-spacing:-.6px}
.auth-sub{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.6}
.auth-form{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.auth-note{margin-top:14px;padding:11px 12px;border-radius:14px;background:var(--accent-soft);color:var(--muted);font-size:12px;line-height:1.55}
.auth-error{padding:10px 12px;border-radius:12px;background:color-mix(in oklch,var(--danger) 12%,var(--surface));color:color-mix(in oklch,var(--danger) 78%,var(--fg));font-size:12.5px;font-weight:700}
.auth-logout{color:color-mix(in oklch,var(--danger) 82%,var(--fg))}
@media(max-width:460px){.auth-shell{padding:18px}.auth-card{padding:22px;border-radius:24px}}

/* Workbench background from D:\工作图片\背景.jpg */
.phone{background-color:var(--bg);background-image:linear-gradient(color-mix(in oklch,var(--surface) 78%,transparent),color-mix(in oklch,var(--surface) 88%,transparent)),url("assets/workbench-background.jpg");background-size:cover;background-position:center;background-repeat:no-repeat}
.viewport{background:transparent}

/* Bottom navigation artwork from D:\工作图片\hello Kitty美甲工作台 */
.tab.has-bottom-art{position:relative;isolation:isolate;overflow:visible;background:transparent!important;border:0;box-shadow:none;color:color-mix(in oklch,var(--fg) 88%,#472533);padding:36px 2px 2px;gap:0;min-height:58px;justify-content:flex-end;transition:transform .14s ease}
.tab.has-bottom-art::before{content:"";position:absolute;left:50%;top:1px;width:38px;height:36px;z-index:0;transform:translateX(-50%);background-image:var(--bottom-button-image);background-size:contain;background-position:center;background-repeat:no-repeat;background-color:transparent;mix-blend-mode:multiply;mask-image:radial-gradient(circle at 50% 50%,#000 64%,transparent 80%);-webkit-mask-image:radial-gradient(circle at 50% 50%,#000 64%,transparent 80%);transition:transform .14s ease}
.tab.has-bottom-art::after{display:none}
.tab.has-bottom-art svg{display:none}
.tab.has-bottom-art span{opacity:1;pointer-events:none;position:relative;z-index:2;font-size:10.5px;line-height:1.1;color:inherit;text-shadow:0 1px 0 rgba(255,255,255,.85)}
.tab.has-bottom-art.active{transform:none;filter:none;color:var(--accent-deep)}
.tab.has-bottom-art.active span{font-weight:850}
.tab.has-bottom-art:active::before{transform:translateX(-50%) scale(.91)}

.avatar-picker{position:relative;display:inline-flex;flex:none;border-radius:50%;cursor:pointer}
.avatar-picker::after{content:"点击更换";position:absolute;left:0;right:0;bottom:0;padding:5px 2px;border-radius:0 0 50% 50%;background:color-mix(in oklch,var(--fg) 72%,transparent);color:var(--surface);font-size:9px;text-align:center;font-weight:700;opacity:0;transition:opacity .16s ease}
.avatar-picker:hover::after,.avatar-picker:focus-within::after{opacity:1}
.avatar-picker .avatar-change{position:absolute;inset:auto auto 2px 50%;transform:translateX(-50%);color:var(--surface);font-size:10px;font-weight:800;text-shadow:0 1px 3px rgba(0,0,0,.7);opacity:0;transition:opacity .16s ease}
.avatar-picker:hover .avatar-change,.avatar-picker:focus-within .avatar-change{opacity:1}

.auth-brand{font-size:13px;font-weight:850;color:var(--accent-deep);letter-spacing:.2px;margin-bottom:5px}






/* appointment style references */
.note-text{white-space:pre-wrap;line-height:1.65;color:var(--fg)}
.style-upload>label{font-weight:700;font-size:13px}
.style-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.style-photo{position:relative;display:block;aspect-ratio:3/4;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:var(--surface-2)}
.style-photo img{width:100%;height:100%;object-fit:cover}
.style-photo button{position:absolute;right:5px;top:5px;width:28px;height:28px;border-radius:50%;background:color-mix(in oklch,var(--fg) 84%,transparent);color:var(--surface);font-size:18px;line-height:1;display:grid;place-items:center}

/* quick action sheet */
.sheet-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.sheet-title-row h3{margin:0}
.sheet-title-row .sheet-sub{margin:3px 0 0}
.quick-actions{gap:8px}
.quick-actions .opt{gap:10px;padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);margin:0}
.quick-actions .opt:hover{background:var(--accent-soft);border-color:var(--accent-line)}
.quick-actions .qa-ico{width:34px;height:34px;border-radius:10px;flex:none}
.quick-actions .qa-ico svg{width:17px;height:17px}
.quick-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:1px}
.quick-copy .li-title{font-size:14px;font-weight:800;line-height:1.25}
.quick-copy .li-sub{font-size:11.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-actions .li-chev{display:grid;place-items:center;width:20px;height:20px;color:var(--muted);flex:none}
.quick-actions .li-chev svg{width:16px;height:16px}

/* expense receipt */
.receipt-preview{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.receipt-preview img{width:76px;height:76px;object-fit:cover;border-radius:10px;border:1px solid var(--border);flex:none}
.receipt-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.receipt-copy .li-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* calendar background only: D:\工作图片\hello Kitty美甲工作台\无敌背景.jpg */
.calendar-bg{background-image:linear-gradient(rgba(255,255,255,.38),rgba(255,255,255,.48)),url("assets/calendar-background.jpg");background-size:cover;background-position:center;background-repeat:no-repeat}
.calendar-bg .cal{background:rgba(255,255,255,.68)}

.account-list .li{align-items:flex-start}.account-list .li-tail{max-width:58%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.account-list .li-tail .btn{margin-left:0!important}

