:root[data-theme="c"] {
  --bg:#fff; --paper:#fff; --ink:#111; --muted:#616161; --line:#e7e7e7; --soft:#f2f2f2;
  --accent:#111; --accent-ink:#fff; --danger:#b4231a;
  --head:#111; --head-ink:#fff; --head-muted:#bcbcbc;
  --amber:#ffb000; --amber-soft:#fff3d1; --amber-ink:#765000; --free:#e9e9e9;
}
:root[data-theme="c"][data-color-scheme="dark"] {
  --bg:#0d0d0d; --paper:#0d0d0d; --ink:#f2f2f2; --muted:#b4b4b4; --line:#292929; --soft:#222;
  --accent:#f2f2f2; --accent-ink:#111; --danger:#ff8a80;
  --head:#1c1c1c; --head-muted:#aaa; --amber-soft:#3a2c08; --amber-ink:#ffcf5c; --free:#2e2e2e;
}
[data-theme="c"] .top{padding-top:env(safe-area-inset-top);background:var(--head);color:var(--head-ink)}
[data-theme="c"] .theme-heading{display:flex;align-items:center;padding-top:4px}
[data-theme="c"] .date-nav{flex:1}
[data-theme="c"] .date-nav button,[data-theme="c"] .toolbar button{padding:0;border:0;background:transparent}
[data-theme="c"] :is(#previous,#next){color:var(--head-muted)}
[data-theme="c"] #choose-date{padding-inline:1px;text-align:left;white-space:nowrap;min-width:0}
[data-theme="c"] #date-title{font-size:26px;font-weight:800;letter-spacing:-.55px}
[data-theme="c"] #year-title{font-size:17px;font-weight:620;margin-left:4px;color:var(--head-muted)}
[data-theme="c"] .toolbar{display:flex;margin-left:auto}
[data-theme="c"] .toolbar svg{vertical-align:middle;width:22px;height:22px}
[data-theme="c"] :is(#today,#open-day-menu,.toolbar span,.table-head,.day-foot){display:none}
[data-theme="c"] #theme-summary{color:var(--head-muted);font-size:17px;padding:2px 16px 11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-theme="c"] #theme-summary b{color:var(--head-ink)}
[data-theme="c"] #theme-summary i{color:var(--amber);font-style:normal}
[data-theme="c"] .schedule-overview{padding:12px 16px 6px;border-bottom:1px solid var(--line);background:var(--bg)}
[data-theme="c"] #theme-overview{position:sticky;top:var(--header-height,80px);z-index:1}
[data-theme="c"] .schedule-cells{height:30px}
[data-theme="c"] .schedule-cells i{background:var(--free);border-radius:3px}
[data-theme="c"] .schedule-cells .is-booked{background:var(--ink)}
[data-theme="c"] .schedule-cells .joins-previous{border-radius:0}
[data-theme="c"] .schedule-cells .is-pending{background:repeating-linear-gradient(-45deg,var(--muted) 0 2px,transparent 2px 5px);outline:1px solid var(--muted);outline-offset:-1px}
[data-theme="c"] .schedule-cells .is-current{background:var(--amber);outline:0;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--amber)}
[data-theme="c"] .schedule-scale{font-size:13px}
[data-theme="c"] .schedule-scale span:last-child{transform:translateX(-18%)}
[data-theme="c"] #day-rows{padding-inline:env(safe-area-inset-left) env(safe-area-inset-right);padding-bottom:30px}
[data-theme="c"] .board-booking{display:grid;grid-template-columns:85px minmax(0,1fr);gap:2px;padding:10px 14px 10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--bg);position:relative}
[data-theme="c"] .board-booking.long-booking::before{content:"";position:absolute;inset:10px auto 10px 0;width:5px;border-radius:0 3px 3px 0;background:var(--ink)}
[data-theme="c"] .board-booking.next-booking{background:var(--amber-soft)}
[data-theme="c"] .board-time{padding-left:16px;font-variant-numeric:tabular-nums}
[data-theme="c"] .board-time b{display:block;font-size:21px;font-weight:800;line-height:1.1}
[data-theme="c"] .board-time small{display:block;font-size:14px;color:var(--muted);margin-top:3px}
[data-theme="c"] .board-person{min-width:0}
[data-theme="c"] .booking-project{font-weight:720}
[data-theme="c"] .booking-project.pending{border:1.5px dashed var(--muted);border-radius:5px;padding-inline:5px;color:var(--muted)}
[data-theme="c"] .booking-gender{font-size:15px;border:1px solid var(--ink);border-radius:4px;padding:0 4px}
[data-theme="c"] .booking-detail{margin-top:3px}
[data-theme="c"] .next-tag{font-size:13px;font-weight:800;color:var(--amber-ink);border:1px solid var(--amber);border-radius:5px;white-space:nowrap;margin-left:auto;padding-inline:4px}
[data-theme="c"] .board-gap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 14px 6px 16px;min-height:56px;border-bottom:1px solid var(--line)}
[data-theme="c"] .board-gap-label{width:62px;font-size:17px;color:var(--muted)}
[data-theme="c"] .board-gap button{width:auto;min-width:76px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:4px;background:var(--soft);border:0;border-radius:9px;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
[data-theme="c"] .board-plus{font-weight:500;color:var(--muted)}
[data-theme="c"] .board-gap button.now{background:var(--amber-soft);box-shadow:inset 0 0 0 2px var(--amber)}
[data-theme="c"] .board-nowline{display:flex;align-items:center;gap:8px;padding-left:12px;height:32px;border-bottom:1px solid var(--line)}
[data-theme="c"] .board-nowline b{background:var(--amber);color:#111;padding:2px 8px;border-radius:6px;font-size:14px}
[data-theme="c"] .board-nowline::after{content:"";flex:1;border-top:2px solid var(--amber)}
[data-theme="c"] #editor{width:min(100%,540px);max-width:100%;border-radius:16px 16px 0 0}
[data-theme="c"] #editor::backdrop{background:#0008}
[data-theme="c"] #editor .sheet-head{align-items:center;background:var(--head);color:var(--head-ink);padding:12px 8px 12px 18px}
[data-theme="c"] #editor .sheet-head>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
[data-theme="c"] #edit-title{font-size:24px;font-variant-numeric:tabular-nums}
[data-theme="c"] #edit-time,[data-theme="c"] #editor .sheet-head button{color:var(--head-muted)}
[data-theme="c"] #editor .sheet-head button{border:0;background:none}
[data-theme="c"] .editor-fields{display:grid;grid-template-columns:minmax(144px,1fr) minmax(0,1.4fr);gap:9px 12px;padding-top:8px}
[data-theme="c"] .editor-fields>*{grid-column:1/-1}
[data-theme="c"] #field-gender{grid-column:1}
[data-theme="c"] #field-duration{grid-column:2}
[data-theme="c"] :is(.editor-field>label,.editor-field>legend,.editor-label,.field-heading label){color:var(--muted)}
[data-theme="c"] :is(#custom-project,.duration-rail-label){display:none}
[data-theme="c"] .editor-fields .segmented{gap:4px}
[data-theme="c"] .duration-paper-label{font-size:0}
[data-theme="c"] .duration-paper-label::after{content:"时长";font-size:17px}
[data-theme="c"] #quick-projects,[data-theme="c"] #duration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
[data-theme="c"] #duration-grid{gap:4px}
[data-theme="c"] :is(#quick-projects,#duration-grid) button,[data-theme="c"] .editor-fields .segmented label{background:var(--soft);border:none;border-radius:10px;min-height:50px;font-size:17px;font-weight:700;padding:3px;overflow:hidden}
[data-theme="c"] #duration-grid button{white-space:nowrap;text-overflow:ellipsis}
[data-theme="c"] :is(#quick-projects,#duration-grid) button.selected,[data-theme="c"] .editor-fields .segmented label:has(input:checked){background:var(--ink);color:var(--bg)}
[data-theme="c"] .editor-fields :is(input:not([type=radio]),textarea){border-width:2px;border-radius:10px;min-height:54px;font-size:17px}
[data-theme="c"] .editor-fields #contact{font-size:19px;font-weight:700}
[data-theme="c"] #editor .sheet-actions{border:0}
[data-theme="c"] #save-appointment{background:var(--accent);color:var(--accent-ink);border:0;min-height:56px;font-size:19px;border-radius:12px}
[data-theme="c"] #customer-suggestions button{min-height:52px;background:var(--amber-soft);display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;font-size:16px}
[data-theme="c"] #customer-suggestions .apply-customer{padding:8px;background:var(--ink);color:var(--bg);border-radius:7px;flex:none}
@media(max-width:380px){[data-theme="c"] #date-title{font-size:24px}[data-theme="c"] #year-title{font-size:16px}}
