.auth { max-width: 440px; margin: 0 auto; padding: 28px 20px 40px; }
.auth-hero h1 { margin: 18px 0 18px; font-size: 28px; line-height: 1.25; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; }
.brand img { width: 1em; height: auto; border-radius: 0; display: block; flex: 0 0 auto; }
.auth-card { padding: 16px; }
.auth-card .seg { margin-bottom: 16px; }
.auth-btn { margin-top: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 0; min-height: 28px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.auth-tip { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--ink-4); }
.link { color: var(--brand); font-size: 13px; font-weight: 700; background: none; border: 0; padding: 0; }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(76px + var(--safe-bottom)); }
.shell.no-top .page { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.shell.no-top .page.page-top { padding-top: 0; }
.page.has-fab { padding-bottom: 96px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 18px 8px; position: sticky; top: 0; background: var(--top); backdrop-filter: blur(10px); z-index: 5; }
.top-kicker { font-size: 12px; color: var(--ink-4); font-weight: 700; }
.topbar h1 { margin: 0; font-size: 26px; }
.text-btn { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.text-btn.danger { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.text-btn.ok { color: #2F6BFF; background: #E8EFFF; border-color: transparent; }
.page { padding: 8px 16px 24px; }
.shell.no-top .page.notes { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.note-search { margin: 0 0 16px; }
.note-search input { display: block; width: 100%; height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; -webkit-appearance: none; appearance: none; }
.note-search input:focus { border-color: var(--brand); outline: none; }
.note-card { margin: 0 0 14px; padding: 18px 18px 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.note-project { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; width: 100%; overflow: hidden; padding: 0; text-align: left; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.note-tags span { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 26px; }
.note-span { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.note-span span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-4); }
.note-span b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.note-when { display: flex; flex-wrap: wrap; gap: .35em; margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.note-when span { display: inline; font-size: 12px; font-weight: 600; color: inherit; }
.note-when .note-holiday { color: #E8892A; font-weight: 700; }
.note-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.note-mid b { margin-top: 0; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: 0; color: var(--ink-2); }
.note-span i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-4); }
.note-span > div:last-child { text-align: right; }
.note-span > div:last-child .note-when { justify-content: flex-end; }
.note-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 6px; }
.note-actions button { height: 36px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.note-actions .note-del { color: var(--bad); }
.stick { position: sticky; top: 0; z-index: 4; margin-left: -16px; margin-right: -16px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; background: var(--bg); }
.dates { display: flex; gap: 8px; margin-bottom: 0; padding-bottom: 14px; }
.dates button { flex: 1; height: 44px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); font-weight: 800; color: var(--ink-3); font-size: 16px; }
.dates button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dates em { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-style: normal; font-size: 12px; font-weight: 800; line-height: 18px; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.dates button.on em { background: #fff; color: var(--brand); }
.dates .seek, .done-nav .seek, .find .seek { flex: 0 0 44px; width: 44px; padding: 0; background: var(--card); color: var(--ink-2); box-shadow: var(--shadow); }
.seek { display: inline-flex; align-items: center; justify-content: center; }
.seek svg { width: 18px; height: 18px; }
.find { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; }
.find input { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; -webkit-appearance: none; appearance: none; }
.find input:focus { border-color: var(--brand); outline: none; }
.task.late-card { border-color: #E4C49A; background: #FFFCF8; box-shadow: 0 0 0 1px rgba(199, 119, 0, .16), var(--shadow); }
.task-marks { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-shrink: 1; min-width: 0; max-width: 68%; }
.task-over, .task-took { font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-over { color: var(--warn); }
.task-took { color: var(--ink-3); }
.todo { position: relative; display: flex; align-items: stretch; padding: 0; margin-bottom: 12px; overflow: hidden; }
.todo-side { position: relative; width: 96px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 6px; text-align: center; background: linear-gradient(180deg, var(--brand-soft), var(--soft)); }
.week-corner { position: absolute; top: 3px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800; line-height: 1; color: var(--brand); white-space: nowrap; pointer-events: none; }
.week-mark { color: #2F6BFF; }
.side-time { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.6px; color: var(--brand); font-variant-numeric: tabular-nums; }
.side-day { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.side-status { margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 11px; font-weight: 800; color: var(--ink-3); }
.go { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.task.st1 .go { background: var(--brand); }
.todo-main { min-width: 0; flex: 1; padding: 12px 12px 10px; display: flex; flex-direction: column; }
.todo-head { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.todo-no { width: 20px; height: 20px; margin-top: 2px; border-radius: 7px; background: var(--soft); color: var(--ink-3); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.todo-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; width: 100%; min-width: 0; overflow: hidden; padding: 0; text-align: left; font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.dialog-view { position: relative; text-align: left; }
.dialog-view .dialog-x { position: absolute; top: 14px; right: 14px; }
.dialog-view .dialog-title { padding: 0 40px; text-align: center; }
.dialog-view .dialog-desc { max-height: 46vh; overflow-y: auto; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.7; text-align: left; word-break: break-word; }
.ricon { margin-right: 4px; }
.plan-line { margin-top: 8px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.plan-line b { color: var(--ink); font-weight: 800; }
.todo-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--ink-4); font-size: 12px; }
.who-box { display: inline-flex; align-items: center; max-width: 100%; height: 28px; padding: 0 12px; border-radius: 999px; border: 0; font-size: 12px; font-weight: 800; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-box.ask { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 14px -8px rgba(255, 77, 28, .75); }
.who-box.sent { background: var(--ok-soft); color: var(--ok); }
.who-box.from { background: #E8EFFF; color: #2F6BFF; }
.pic-mark { display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; color: var(--ink-3); }
.pic-mark svg { width: 16px; height: 16px; display: block; }
.pic-block { margin-top: 14px; }
.pic-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pic-tile, .pic-add { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.pic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(22, 19, 15, .62); color: #fff; font-size: 14px; line-height: 20px; }
.pic-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.pic-add svg { width: 20px; height: 20px; }
.pic-add:disabled { opacity: .55; }
.pic-file { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dialog-pics { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 36vh; overflow: auto; }
.dialog-pics img { width: 100%; border-radius: 12px; display: block; }
.todo-meta .bad { color: var(--bad); }
.todo-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2px; margin-top: auto; padding-top: 8px; }
.todo-foot button { height: 28px; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.day-head { margin: 18px 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-4); }
.task { margin: 0 0 14px; padding: 16px 16px 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.task-top { display: flex; align-items: center; gap: 10px; }
.task-no { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 8px; background: var(--soft); color: var(--ink-4); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.task-clock { min-width: 0; flex: 1; }
.task-clock b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.task-when { display: flex; flex-wrap: wrap; gap: .35em; margin-top: 3px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.task-when span { display: inline; font-size: 12px; font-weight: 600; color: inherit; }
.task-when .task-holiday { color: #E8892A; font-weight: 700; }
.task-state { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--ink-3); font-size: 12px; font-weight: 700; line-height: 26px; flex-shrink: 0; }
.task.st1 .task-state { background: var(--brand-soft); color: var(--brand); }
.task-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; width: 100%; margin-top: 14px; overflow: hidden; padding: 0; text-align: left; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.task-plan { margin-top: 10px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.task-plan b { color: var(--ink); font-weight: 700; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-4); font-size: 12px; }
.task-meta .who-box { max-width: 100%; }
.task-late { color: var(--warn); font-weight: 700; }
.task-meta .bad { color: var(--bad); font-weight: 700; }
.task-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 4px; }
.task-actions button { height: 36px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.task-actions .task-del { color: var(--bad); }
.task-actions .go { height: 34px; margin: 0; padding: 0 14px; }
.task-actions .switch { position: relative; width: 36px; height: 22px; padding: 0; border-radius: 999px; background: #DDD6CB; transition: background .2s; flex-shrink: 0; }
.task-actions .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .2s; }
.task-actions .switch.on { background: var(--brand); }
.task-actions .switch.on::after { transform: translateX(14px); }
.task-report { margin-right: auto; padding-left: 2px; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.done-card .task-state.early { background: var(--ok-soft); color: var(--ok); }
.done-card .task-state.late { background: var(--warn-soft); color: var(--warn); }
.done-card .task-state.ontime { background: var(--soft); color: var(--ink-2); }
.done-card.skip { opacity: .55; }
.done-head { padding-bottom: 4px; }
.done-nav { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; }
.nav-btn, .done-label { height: 44px; border-radius: 14px; background: var(--chip); border: 1px solid var(--line); font-weight: 800; }
.nav-btn { width: 36px; flex: 0 0 36px; font-size: 22px; color: var(--ink-2); }
.done-nav .seek, .find .seek { height: 44px; border: 1px solid var(--line); border-radius: 14px; }
.nav-btn:disabled { opacity: .35; }
.done-label { flex: 1; display: block; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 44px; color: var(--ink); }
.done-nav .today-btn { flex: 0 0 auto; width: auto; height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 800; }
.report-ico { flex: 0 0 auto; height: 44px; padding: 0 11px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; white-space: nowrap; }
.done-card.skip { opacity: .58; }
.done-card .todo-foot { justify-content: space-between; align-items: center; }
.todo-foot .switch { position: relative; width: 23px; height: 14px; padding: 0; border-radius: 999px; background: #DDD6CB; transition: background .2s; flex-shrink: 0; }
.todo-foot .switch::after { content: ""; position: absolute; top: 1.5px; left: 1.5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: transform .2s; }
.todo-foot .switch.on { background: var(--brand); }
.todo-foot .switch.on::after { transform: translateX(9px); }
.done-card .todo-side.early { background: linear-gradient(180deg, var(--ok-soft), var(--soft)); }
.done-card .todo-side.early .side-time,
.done-card .todo-side.early .side-status { color: var(--ok); }
.done-card .todo-side.late { background: linear-gradient(180deg, var(--warn-soft), var(--soft)); }
.done-card .todo-side.late .side-time,
.done-card .todo-side.late .side-status { color: var(--warn); }
.pace { margin-top: 8px; padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.pace.early { background: var(--ok-soft); color: var(--ok); }
.pace.late { background: var(--warn-soft); color: var(--warn); }
.pace.ontime { background: var(--soft); color: var(--ink-2); }
.when-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.when-card span { display: block; font-size: 12px; color: var(--ink-4); font-weight: 700; }
.when-card b { display: block; font-size: 18px; margin-top: 2px; }
.when-card em { font-style: normal; color: var(--brand); font-weight: 800; }
.quick { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--chip-bg); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.quick button.on { background: var(--ink); color: #fff; }
.assign-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.assign-row .field-label { margin: 0; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); text-align: left; }
.pick-row em { font-style: normal; color: var(--brand); font-weight: 800; flex-shrink: 0; }
.pick-row .who-box { min-width: 0; }
.assign-empty { margin-top: 8px; }
.assign-hint { color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; }
.assign-hint.lack { color: var(--lack); }
.sheet.float {
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  max-height: none;
  border-radius: 22px;
  padding-bottom: 0;
  animation: dialog-in .26s cubic-bezier(.2, .9, .3, 1.1);
}
.assign-body { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.assign-todo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 12px; }
.assign-pin { margin-bottom: 12px; flex-shrink: 0; }
.assign-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.assign-kicker { margin-bottom: 6px; font-size: 12px; font-weight: 800; color: var(--brand); }
.assign-list { display: flex; flex-direction: column; gap: 8px; }
.assign-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.assign-pin .assign-person { background: var(--brand-soft); border-color: transparent; }
.assign-go { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.assign-go.cancel { background: var(--chip); color: var(--ink-2); }
.assign-go.lack, .assign-go:disabled { background: var(--lack-bg); color: var(--lack); }
.assign-go.cancel:disabled { opacity: .6; }
.btn-lack { color: var(--lack); background: var(--lack-bg); box-shadow: none; }
.btn-lack[disabled] { opacity: 1; }
.wheel-preview { position: relative; text-align: center; padding-bottom: 2px; }
.wheel-preview span { display: block; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.wheel-preview b { font-size: 36px; line-height: 1.15; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.wheels { position: relative; display: flex; height: 220px; margin-top: 4px; }
.wheel { flex: 1; min-width: 0; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; position: relative; z-index: 1; scrollbar-width: none; overscroll-behavior: contain; }
.wheel::-webkit-scrollbar { display: none; }
.wheel button { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; scroll-snap-align: center; scroll-snap-stop: always; font-size: 16px; font-weight: 700; color: var(--ink-4); background: transparent; }
.wheel button.on { color: var(--ink); font-size: 18px; font-weight: 800; }
.wheel-pad { height: 88px; flex-shrink: 0; }
.wheel-mark { position: absolute; left: 6px; right: 6px; top: 88px; height: 44px; border-radius: 12px; background: var(--brand-soft); z-index: 0; pointer-events: none; }
.wheel-fade { position: absolute; left: 0; right: 0; height: 72px; z-index: 2; pointer-events: none; }
.wheel-fade.top { top: 0; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); }
.wheel-fade.bot { bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.wheel-names { display: flex; margin-top: 2px; color: var(--ink-4); font-size: 12px; font-weight: 700; }
.wheel-names span { flex: 1; text-align: center; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 10px; }
.theme-row > span { font-weight: 800; }
.theme-icons { margin: 0; flex: 0 0 auto; }
.theme-icons button { width: 42px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.theme-icons svg { width: 18px; height: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-flex; align-items: center; height: 34px; border-radius: 999px; background: var(--chip-bg); color: var(--ink-3); }
.tag-chip.on { background: var(--ink); color: #fff; }
.tag-chip button { height: 34px; padding: 0 4px 0 12px; background: transparent; color: inherit; font-size: 13px; font-weight: 700; }
.tag-x { width: 28px; padding: 0 10px 0 2px !important; font-size: 16px; line-height: 1; opacity: .7; }
.tag-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tag-add .input-wrap { flex: 1; }
.sheet-hold { visibility: hidden; pointer-events: none; }
.when-sheet {
  z-index: 902;
  max-height: calc(100vh - 8px);
  max-height: calc(var(--vvh, 100dvh) - 8px);
  bottom: var(--vv-bottom, 0px);
}
.when-sheet .sheet-head,
.when-sheet .sheet-foot { flex-shrink: 0; }
.when-sheet .sheet-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; padding-bottom: 8px; }
.when-summary { display: flex; align-items: center; gap: 10px; min-height: 32px; flex-shrink: 0; }
.when-summary b { font-size: 16px; font-weight: 800; }
.when-summary span { font-size: 22px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.when-summary .cal-today { margin-left: auto; flex-shrink: 0; }
.cal { margin-top: 10px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 8px 8px 4px; border: 1px solid #E6E0D8; border-radius: 16px; background: #fff; }
.time-box { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: end; flex-shrink: 0; margin-top: 12px; padding: 8px 10px 10px; border-radius: 18px; background: #F6F3EE; }
.time-col > span { display: block; margin-bottom: 2px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-4); }
.time-box .wheels { height: 132px; margin: 0; }
.time-box .wheel { height: 132px; }
.time-box .wheel-pad { height: 44px; }
.time-box .wheel button { height: 44px; font-size: 20px; font-variant-numeric: tabular-nums; }
.time-box .wheel button.on { font-size: 22px; }
.time-box .wheel-mark { top: 44px; left: 8px; right: 8px; height: 44px; border-radius: 12px; background: #fff; }
.time-box .wheel-fade { height: 22px; }
.time-box .wheel-fade.top { background: linear-gradient(#F6F3EE, rgba(246, 243, 238, 0)); }
.time-box .wheel-fade.bot { background: linear-gradient(rgba(246, 243, 238, 0), #F6F3EE); }
.time-colon { height: 132px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; line-height: 1; }
.cal-week { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 2px 0 8px; border-bottom: 1px solid var(--line); background: #fff; text-align: center; font-size: 12px; font-weight: 700; color: #9A9288; }
.cal-week span:nth-child(6),
.cal-week span:nth-child(7) { color: #D4654A; }
.cal-today { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; }
.cal-scroll { flex: 1 1 auto; height: auto; min-height: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; }
.cal-scroll.tall { max-height: none; }
.cal-month h3 { margin: 16px 0 4px; text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--ink-2); }
.cal-month:first-child h3 { margin-top: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { min-width: 0; height: 46px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; }
.cal-day b { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; line-height: 1; color: var(--ink); }
.cal-day i { max-width: 40px; height: 12px; margin-top: -1px; overflow: hidden; font-style: normal; font-size: 9px; line-height: 12px; font-weight: 700; color: #D4654A; white-space: nowrap; }
.cal-day.today b { color: var(--brand); background: var(--brand-soft); }
.cal-day.on b { background: var(--brand); color: #fff; }
.cal-day.on i { color: var(--brand); }
.cal-day.off b { color: #D5D0C8; font-weight: 600; }
.cal-day.off i { color: #E4DFD8; }
.cal-day.blank { visibility: hidden; }
.fab { position: fixed; z-index: 30; right: max(18px, calc(50vw - 222px)); bottom: calc(84px + var(--safe-bottom)); width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 32px; line-height: 52px; box-shadow: 0 12px 24px -8px rgba(255,77,28,.75); }
.tabbar { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: var(--bar); border-top: 1px solid var(--line); padding-bottom: var(--safe-bottom); backdrop-filter: blur(12px); }
.tabbar button { flex: 1; height: 58px; color: var(--ink-4); }
.tabbar button b { display: block; font-size: 15px; line-height: 1.2; }
.tabbar button span { font-size: 11px; }
.tabbar button.on { color: var(--brand); }
.me-card, .menu, .person, .block, .wallet { padding: 16px; margin-bottom: 10px; }
.me-card, .person, .menu { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.person-main { flex: 1; min-width: 0; }
.person-main b, .person-main .todo-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .text-btn { flex-shrink: 0; }
.req-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.friend-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.person-main .friend-name b { display: block; flex: 0 1 auto; min-width: 0; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-alias { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.friend-name .text-btn { height: 24px; padding: 0 8px; flex-shrink: 0; }
.friend-picks { margin-top: 10px; }
.pick-friend { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; margin-top: 6px; padding: 0 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.pick-friend span { color: var(--ink-4); }
.req-reason { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; white-space: normal; }
.menu b, .menu em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 13px; }
.avatar { width: 48px; height: 48px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.avatar.sm { width: 40px; height: 40px; border-radius: 14px; font-size: 16px; }
.wallet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-top > div { min-width: 0; }
.wallet span { color: var(--ink-4); font-size: 13px; }
.wallet b { display: block; font-size: 40px; line-height: 1.2; }
.wallet p, .hint { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.rule-btn { flex-shrink: 0; height: 28px; margin-top: 2px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.wx-line { display: flex; align-items: center; margin-top: 2px; white-space: nowrap; }
.wx-line .wx-copy { vertical-align: 0; }
.wx-name { font-style: normal; font-weight: 800; color: var(--ink); }
.wx-copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 2px; border-radius: 8px; color: var(--brand); vertical-align: -8px; }
.wx-copy svg { width: 16px; height: 16px; }
.rule-formula { padding: 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 700; text-align: center; font-size: 14px; }
.price-table { width: 100%; margin: 12px 0 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.price-table th { padding: 10px 12px; background: var(--soft); color: var(--ink-3); font-weight: 700; text-align: left; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
.price-table td.num { color: var(--brand); font-weight: 800; }
.rule-notes { margin: 14px 0 0; padding-left: 18px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.logout { margin-top: 18px; }
.close-account { margin-top: 8px; color: var(--bad); }
textarea, .report { width: 100%; border: 0; border-radius: 14px; background: var(--soft); padding: 12px 14px; resize: none; min-height: 84px; }
.report { min-height: 180px; }
.report-sheet { max-height: calc(var(--vvh, 100dvh) - 12px); }
.report-sheet .sheet-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.report-sheet .report { height: auto; min-height: 0; overflow: visible; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.75; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chips button { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--chip-bg); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.chips button.on { background: var(--ink); color: #fff; }
.field-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row .field-label { margin-bottom: 6px; }
.text-clear { height: 28px; margin-top: 6px; padding: 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-4); }
.voice-field { position: relative; }
.voice-field textarea { display: block; min-height: 156px; padding: 14px 14px 44px; }
.voice-bar { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.voice-lang { height: 26px; max-width: 96px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.polish-btn { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.polish-btn:disabled { opacity: .55; }
.polish-result { min-height: 96px; padding: 14px; border-radius: 14px; background: var(--soft); font-size: 16px; font-weight: 700; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.mic-btn { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #2f6bff; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(47, 107, 255, .35); flex-shrink: 0; transition: transform .15s ease, background .2s ease; }
.mic-btn:active { transform: scale(.94); }
.mic-btn svg { width: 13px; height: 13px; }
.mic-btn.on { background: #ff4d5e; box-shadow: 0 6px 14px rgba(255, 77, 94, .38); }
.mic-btn.on::before,
.mic-btn.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff4d5e; animation: mic-ripple 1.8s ease-out infinite; }
.mic-btn.on::after { animation-delay: .9s; }
@keyframes mic-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.85); opacity: 0; } }
.voice-hint { margin: 8px 0 0; }
html[data-theme="dark"] .voice-lang { background: #2A2622; color: var(--ink-2); }

:root {
  --top: rgba(255, 255, 255, .96);
  --bar: rgba(255, 255, 255, .96);
  --chip: #fff;
  --chip-bg: #F3F4F6;
}
html[data-theme="light"] {
  color-scheme: light;
  color-scheme: only light;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --soft: #F4F5F7;
  --line: #E6E8EC;
  --top: #FFFFFF;
  --bar: #FFFFFF;
  --chip: #FFFFFF;
  --chip-bg: #F3F4F6;
  --lack: #8E8880;
  --lack-bg: #E4E0DA;
  background-color: #FFFFFF;
}
html[data-theme="light"] body,
html[data-theme="light"] .shell,
html[data-theme="light"] .auth {
  background-color: #FFFFFF;
}
html[data-theme="dark"] {
  color-scheme: dark;
  color-scheme: only dark;
  background-color: #12110F;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .shell,
html[data-theme="dark"] .auth {
  background-color: #12110F;
}
html[data-theme="dark"] {
  --bg: #12110F;
  --card: #1C1A17;
  --ink: #F6F3EE;
  --ink-2: #E7E0D6;
  --ink-3: #B7AFA3;
  --ink-4: #8C847A;
  --line: #2E2A26;
  --soft: #24211D;
  --brand-soft: #3A241C;
  --ok-soft: #163224;
  --bad: #FF6B63;
  --bad-soft: #3A1C1A;
  --warn-soft: #3A2C14;
  --top: rgba(18, 17, 15, .92);
  --bar: rgba(22, 20, 18, .96);
  --chip: #1C1A17;
  --chip-bg: #2A2622;
  --lack: #C8BFB6;
  --lack-bg: #2A2622;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 40px -24px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .week-mark { color: #8FB4FF; }
html[data-theme="dark"] .text-btn.ok { color: #8FB4FF; background: #1C2A44; }
html[data-theme="dark"] .who-box.from { background: #1C2A44; color: #8FB4FF; }
html[data-theme="dark"] .note-when .note-holiday { color: #F0A45A; }
html[data-theme="dark"] .cal { border-color: #3A342C; background: #161411; }
html[data-theme="dark"] .cal-week { background: #161411; }
html[data-theme="dark"] .cal-day.off b { color: #5C564E; }
html[data-theme="dark"] .cal-day.off i { color: #3E3934; }
html[data-theme="dark"] .time-box { background: #24211D; }
html[data-theme="dark"] .time-box .wheel-mark { background: #2E2A26; }
html[data-theme="dark"] .time-box .wheel-fade.top { background: linear-gradient(#24211D, rgba(36, 33, 29, 0)); }
html[data-theme="dark"] .time-box .wheel-fade.bot { background: linear-gradient(rgba(36, 33, 29, 0), #24211D); }
html[data-theme="dark"] .cal-today { background: #3A241C; }
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .dialog { background: #1C1A17; color: var(--ink); }
html[data-theme="dark"] .seg,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .sheet-close,
html[data-theme="dark"] .input-wrap { background: #2A2622; }
html[data-theme="dark"] .seg button.on { background: #3A342C; color: var(--ink); }
html[data-theme="dark"] .btn-dark { background: #F6F3EE; color: #16130F; }
html[data-theme="dark"] .dates em { background: #3A241C; color: #FF8A5C; }
html[data-theme="dark"] .dates button.on em { background: #fff; color: #FF4D1C; }
html[data-theme="dark"] .dates button.on,
html[data-theme="dark"] .quick button.on,
html[data-theme="dark"] .chips button.on,
html[data-theme="dark"] .tag-chip.on { background: #F6F3EE; color: #16130F; }
html[data-theme="dark"] .done-nav .today-btn { background: transparent; color: var(--brand); }
html[data-theme="dark"] .task.late-card { border-color: #6A4E28; background: #241C14; box-shadow: 0 0 0 1px rgba(227, 177, 90, .2), var(--shadow); }
html[data-theme="dark"] .task-over { color: #E3B15A; }
html[data-theme="dark"] .task-when .task-holiday { color: #F0A45A; }
html[data-theme="dark"] .task-actions .switch { background: #3A342C; }
html[data-theme="dark"] .task-actions .switch.on { background: var(--brand); }
html[data-theme="dark"] .go { background: #F6F3EE; color: #16130F; }
html[data-theme="dark"] .task.st1 .go { background: var(--brand); color: #fff; }
html[data-theme="dark"] .wheel-fade.top { background: linear-gradient(#1C1A17, rgba(28, 26, 23, 0)); }
html[data-theme="dark"] .wheel-fade.bot { background: linear-gradient(rgba(28, 26, 23, 0), #1C1A17); }
html[data-theme="dark"] textarea,
html[data-theme="dark"] .report { background: #24211D; color: var(--ink); }
