:root {
  color-scheme: light;
  --ink: #202120;
  --muted: #636563;
  --quiet: #737673;
  --rule: #dedfdd;
  --soft: #f5f5f3;
  --paper: #fff;
  --glass: rgba(255,255,255,.88);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box }
html,body,.stage,.phone { margin:0; height:100%; }
.phone { position:relative; isolation:isolate; height:100dvh; overflow:hidden }
button,input,textarea,select { font:inherit; color:inherit }
button { border:0; background:transparent; cursor:pointer; touch-action:manipulation }
button:disabled { cursor:default; opacity:.54 }
button:focus-visible,a:focus-visible,[role=button]:focus-visible { outline:2px solid #494a49; outline-offset:3px }
button:active:not(:disabled),[role=button]:active { background-color:#eaeae8 }
[hidden] { display:none!important }
.screen { height:100%; overflow:auto; overscroll-behavior:contain; padding: max(18px,env(safe-area-inset-top)) 24px calc(100px + env(safe-area-inset-bottom)); }
.canvas { width:min(100%,1100px); margin:auto }
.brandmark { display:inline-flex; gap:9px; align-items:center; font-family:Georgia,"Times New Roman",serif; font-size:24px; letter-spacing:-1.3px; line-height:1; }
.brandmark img { width:30px; height:30px; border:1px solid #dedfdd; border-radius:9px }
.topbar,.hd,.sectionhead,.secrow,.linkhead,.weekswitch,.weektools,.navbrand { display:flex; align-items:center; justify-content:space-between; gap:12px }
.topbar { min-height:46px; margin-bottom:26px }
.demo-state { margin-right:auto; color:var(--quiet); font-size:11px; }
.sectionhead h2.sec-t { margin:0; }
.secretfield { position:relative; }
.secretfield input { padding-right:58px }
.secretfield button { position:absolute; inset:1px 4px 1px auto; min-width:48px; font-size:13px; color:var(--muted); }
.searchlaunch,.quietaction,.mini,.back,.close-sheet { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border-radius:10px; font-size:13px; color:var(--muted) }
.icon { width:20px; height:20px; flex:none; display:inline-block; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round }
.searchlaunch { min-width:44px; background:var(--soft); padding:0 13px }
.hd { align-items:flex-end; margin:0 0 24px }
h1,h2,h3,p { margin:0 }
.hd h1,.lock h1 { font-size:32px; line-height:1.12; letter-spacing:-.045em; font-weight:600 }
.hd .sub { margin-top:8px; color:var(--muted); font-size:14px; line-height:1.5 }
.sectionhead,.sec-t,.linkhead { margin:25px 0 8px }
.sectionhead h2,.sec-t,.linkhead span { font-size:16px; line-height:1.4; font-weight:630 }
.sectionhead .icon,.quietaction .icon,.mini .icon { width:16px; height:16px }
.weektools { gap:0 }
.weektools button { width:44px; height:44px; border-radius:50% }
.weektools .icon { width:17px; height:17px }
.weekstrip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; padding:7px 0 16px; border-bottom:1px solid var(--rule) }
.weekstrip button { display:grid; justify-items:center; gap:5px; padding:4px 0; border-radius:12px }
.weekstrip small { color:var(--quiet); font-size:11px; line-height:1.4 }
.weekstrip strong { display:grid; place-items:center; font-size:18px; font-weight:520; font-variant-numeric:tabular-nums; width:35px; height:35px; border-radius:50% }
.weekstrip [aria-pressed=true] strong { background:var(--ink);color:#fff }
.weekstrip [aria-current=date] small { color:var(--ink);font-weight:700 }
.agenda-row,.row,.recordrow,.tile,.feedrow { display:flex; align-items:center; width:100%; gap:13px; min-width:0; min-height:54px; padding:12px 0; text-align:left; border-bottom:1px solid #ebebe9 }
.agenda-row { min-height:58px; }
.agenda-row time { font-size:14px; font-variant-numeric:tabular-nums; min-width:44px; color:var(--muted) }
.agenda-row .t { padding-left:12px; border-left:2px solid #cecfcc }
.t { flex:1; min-width:0 }
.t b,.tile b { display:block; font-weight:540; font-size:15px; line-height:1.52; overflow-wrap:anywhere }
.t span,.tile small { display:block; font-size:12px; color:var(--muted); line-height:1.45; overflow-wrap:anywhere }
.t span:empty { display:none }
.chev,.endcount { color:var(--quiet); font-size:14px; margin-left:auto }
.chev { font-size:19px }
.capture,.search { display:flex; gap:9px; align-items:center; padding:5px 8px 5px 15px; border-radius:16px; border:1px solid var(--rule); background:var(--soft); }
.capture { margin-top:15px }
.capture>.icon { width:17px; color:var(--muted) }
.capture input,.search input { width:100%; min-width:0; font-size:16px; padding:9px 0; background:none; border:0; outline:0 }
.capture:focus-within,.search:focus-within { border-color:#858783 }
.capture button { flex:none; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; }
.capture button .icon { border-radius:50%; background:#242524; color:white; width:30px; height:30px; padding:6px }
.search { margin-bottom:18px }
.search button { min-width:44px; min-height:44px; white-space:nowrap; color:var(--muted);font-size:13px }
.panels section { min-width:0 }
.recordrow .record-icon,.tile .record-icon,.pickgrid .record-icon { display:grid; place-items:center; width:35px; height:35px; flex:none; border:1px solid #e7e8e5; border-radius:11px; background:#fafaf9; color:#484b48 }
.thin { margin:22px 0 0; font-size:12px; color:var(--muted); min-height:44px; text-align:left }
.empty { padding:22px 0; color:var(--quiet);font-size:14px; line-height:1.65 }
.empty .mini { text-decoration:underline }
.emptyaction { border:1px dashed var(--rule); border-radius:12px; padding:17px; display:flex; align-items:center; justify-content:space-between; gap:8px }
.grid { display:grid; gap:0 28px }
.tile { min-height:66px; }
.note,.feedstate { font-size:13px; color:var(--muted); line-height:1.65; margin:9px 0; overflow-wrap:anywhere }
.feedrow { align-items:center; }
.feedrow .feedopen { min-width:0; flex:1; text-align:left; padding:2px 0; }
.feedrow b { font-weight:540; line-height:1.6; display:block; overflow-wrap:anywhere }
.feedrow small { display:block; color:var(--muted); line-height:1.6; margin-top:3px }
.feedrow .mini { width:44px; flex:none }
.filters,.topics,.chips,.convert { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 }
.filters button,.topics button,.convert button,.chip { background:var(--soft); border-radius:10px; min-height:36px; padding:7px 12px; font-size:13px }
.filters button.on,.topics [aria-pressed=true] { background:var(--ink); color:#fff }
mark { color:inherit; background:#dcddd9; border-radius:3px }
.fab { position:absolute; z-index:6; bottom:calc(83px + env(safe-area-inset-bottom)); right:22px; width:48px; height:48px; align-items:center; justify-content:center; color:white; background:#222322; border-radius:50%; font-size:27px }
.sheet-wrap { position:absolute; inset:0; display:none; z-index:12 }
.sheet-wrap.on { display:block }
.scrim { position:absolute; inset:0; background:rgba(25,26,25,.24) }
.sheet { position:absolute; inset:auto 0 0; max-height:90%; max-height:90dvh; overflow:auto; overscroll-behavior:contain; background:#fff; border-radius:25px 25px 0 0; padding:16px 24px calc(24px + env(safe-area-inset-bottom)); animation:sheet-in .17s ease-out }
@keyframes sheet-in { from{transform:translateY(10px); opacity:.82} }
.grab { width:82px; height:26px; margin:-11px auto 6px; display:grid; place-items:center; touch-action:none; cursor:grab }
.grab::after { content:""; width:32px; height:4px; background:#d4d5d2; border-radius:9px }
.sheet h2 { font-size:23px; font-weight:600; margin:5px 40px 18px 0; overflow-wrap:anywhere }
.sheet:focus { outline:0 }
.close-sheet { position:absolute; right:14px; top:16px; width:44px; }
.sheet label {display:block; color:var(--muted);font-size:13px; margin:13px 0 5px}
.sheet input,.sheet textarea,.sheet select,.lockinput { width:100%; border:1px solid #d9dad7; border-radius:12px; padding:12px 14px; font:inherit; font-size:16px; background:#fafaf9; min-height:46px }
.sheet textarea { min-height:94px; resize:vertical }
.btn { display:block; width:100%; padding:12px; min-height:46px; background:#242524; color:#fff; border-radius:12px; margin-top:12px; font-weight:570 }
.btn:active:not(:disabled) {background:#414241}
.btn.ghost,.btn.danger { background:var(--soft);color:var(--ink) }
.btn.danger { text-decoration:underline; text-underline-offset:3px }
.linkhead button,.chip button { min-height:36px; font-size:13px }
.chip {display:inline-flex; align-items:center; gap:5px; padding:2px 9px; max-width:100%}
.chip span { overflow-wrap:anywhere }
.chip b { cursor:pointer }
.reader .readtype {display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);margin:6px 0 10px}
.reader dl {margin:12px 0 20px}
.reader dl div {display:grid;grid-template-columns:5em minmax(0,1fr);gap:10px;border-bottom:1px solid var(--rule);padding:10px 0;font-size:14px;line-height:1.5}
.reader dt,.reader summary {color:var(--muted)}
.reader dd {margin:0;overflow-wrap:anywhere}
.reader .readtext {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:16px}
.reader summary {cursor:pointer;min-height:44px;padding:12px 0;font-size:14px}
.reader .chip {max-width:100%;overflow-wrap:anywhere}
.pickgrid {display:grid;gap:3px}
.pickgrid button { display:flex; align-items:center; gap:13px; padding:9px; text-align:left; border-bottom:1px solid var(--rule) }
.pickgrid b {font-size:15px}.pickgrid span span {font-size:13px;color:var(--muted)}
.tag { font-size:12px; color:#474947; background:var(--soft); padding:5px 8px; border-radius:7px }
.toast { position:absolute; z-index:25; left:50%; bottom:calc(84px + env(safe-area-inset-bottom)); transform:translateX(-50%); padding:10px 15px; border-radius:12px; background:#242524; color:white; opacity:0; pointer-events:none; font-size:13px; text-align:center }
.toast.on {opacity:1}
.screen.locked { display:grid; place-items:center; padding:32px 24px }
.lock { width:min(100%,364px); margin:auto; }
.lock .brand {margin:0 0 35px}
.lock h1 {font-size:32px;margin-bottom:12px}
.lock p {color:var(--muted); font-size:15px; line-height:1.65; margin-bottom:20px}
.lockinput {margin:0 0 10px}
.lock .btn {margin-top:4px}
.lock .err:not(:empty) {margin:12px 0; font-size:14px; font-weight:600}
.code {font:17px/1.8 ui-monospace,monospace; text-align:center; background:var(--soft); border-radius:14px; padding:14px; overflow-wrap:anywhere}
.demo-link {display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:13px; text-underline-offset:4px}
.visually-hidden { position:absolute!important; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.next-event { display:flex; align-items:center; gap:17px; width:100%; padding:16px 18px; margin:15px 0 5px; border-radius:18px; text-align:left; border:1px solid var(--rule); background:var(--paper) }
.next-event>.icon,.event-list .agenda-row>.icon { width:15px; height:15px; color:var(--quiet); margin-left:auto; }
.day-overview {display:grid;gap:12px;margin:0 0 12px}
.day-overview .next-event,.day-overview .capture {margin:0}
.date-leaf { width:54px; height:62px; flex:none; display:inline-flex; flex-direction:column; align-items:stretch; text-align:center; border:1px solid var(--rule); border-radius:11px; overflow:hidden; background:white; }
.date-leaf>span { color:#454744; background:var(--soft); padding:2px 0; border-bottom:1px solid var(--rule); font-size:11px; font-weight:600; }
.date-leaf>strong { margin:auto; font-variant-numeric:tabular-nums; font-size:26px; letter-spacing:-.05em; line-height:1; font-weight:540; }
.next-copy { min-width:0; display:grid; gap:3px }
.next-copy>small,.next-copy>span { color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere }
.next-copy>strong { font-size:18px; font-weight:620; line-height:1.45; overflow-wrap:anywhere }
.weekstrip button::after { content:""; width:4px; height:4px; border-radius:50%; }
.weekstrip [data-has-events=true]::after { background:#767974 }
.archive-link { margin-top:6px }
.event-scopes { display:inline-flex; background:var(--soft); padding:3px; border:1px solid #e7e8e5; border-radius:14px; gap:2px; margin-bottom:12px; }
.event-scopes button { padding:0 14px; min-height:40px; font-size:14px; border-radius:10px; color:var(--muted) }
.event-scopes [aria-pressed=true] { background:#fff; color:var(--ink); box-shadow:0 1px 4px #0001; font-weight:600 }
.event-group { margin:20px 0 26px }
.event-group h2 { font-size:15px; font-weight:650; margin-bottom:5px; }
.event-facts {display:grid; gap:12px; margin:17px 0 23px; padding-block:16px; border-block:1px solid var(--rule)}
.event-facts>div { display:flex; align-items:center; gap:14px }
.event-facts>div>.icon { width:38px; padding:0 8px; color:var(--muted) }
.event-facts .date-leaf { width:38px; height:44px; border-radius:7px }
.event-facts .date-leaf>span { font-size:9px; padding:0 }
.event-facts .date-leaf>strong { font-size:19px }
.event-facts div>strong,.event-facts div>span:not(.date-leaf) {display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.event-facts div>span:not(.date-leaf) {color:var(--muted)}
.new-type { display:inline-flex; align-items:center; gap:5px; min-height:44px; border-radius:12px; padding:0 12px; font-size:14px; background:var(--soft) }
.new-type .icon {width:15px}
.nav-compose .icon {background:var(--ink);color:#fff;border-radius:50%;width:24px;height:24px;padding:4px}
.nav-compose {gap:2px}
.composer textarea { min-height:130px; resize:vertical; padding:10px 0; border:0; background:transparent; font-size:17px; line-height:1.6 }
.composer-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--rule);padding-top:12px}
.composer-tools .btn {width:auto;padding-inline:20px;margin:0}
@media(min-width:920px) {
  .day-overview {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(32px,5vw,85px);align-items:center;margin-bottom:22px}
  .day-overview .capture {margin:0}
  .nav-compose {gap:14px}
}
@media(min-width:680px) {
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .sheet { left:50%; right:auto; bottom:50%; transform:translate(-50%,50%); width:min(500px,90%); border-radius:22px; padding:25px 28px; animation:none }
  .grab {display:none}
}
@media(min-width:920px) {
  .screen:not(.locked) { margin-left:202px; padding:35px clamp(35px,5vw,90px) 70px }
  .topbar {margin:0 0 13px; justify-content:flex-end}
  .topbar .brandmark {display:none}
  .demo-state {margin-right:0}
  .hd {margin-bottom:26px}
  .panels {display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); column-gap:clamp(32px,5vw,85px); align-items:start}
  .sectionhead {margin-top:18px}
  .capture {margin:16px 0 20px}
  .fab {bottom:30px; right:40px}
  .toast {bottom:32px;}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Shared floating dock and system typography. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  --ink:#191919;--muted:#595959;--quiet:#666;--rule:#e4e4e4;--soft:#f6f6f6;
}
.brandmark {gap:7px;font-family:inherit;font-size:24px;font-weight:550;letter-spacing:-.065em}
.brandmark img {border:0;border-radius:0;width:29px;height:33px}
.topbar,.lock .brand {display:flex;align-items:center;justify-content:space-between;gap:12px}
.topbar .brandmark {display:inline-flex}
.topbar {border-bottom:1px solid var(--rule);padding-bottom:12px;margin:0 0 30px}
.top-actions {display:flex;align-items:center;gap:9px;margin-left:auto}
.language-switch {min-width:44px;min-height:44px;padding:0 7px;color:var(--muted);font-size:13px;border-radius:22px}
.searchlaunch {background:transparent;padding:0 6px}
.searchlaunch .icon {width:15px;height:15px}
.hd h1,.lock h1 {font-size:clamp(33px,4.3vw,50px);font-weight:560;line-height:1.15;letter-spacing:-.055em}
.hd .sub {margin-top:5px;font-size:14px;font-weight:400}
.sectionhead h2,.sec-t,.linkhead span,.sheet h2,.event-group h2 {font-weight:590}
.weektools button {font-size:13px}
.weekstrip strong,.date-leaf>strong {font-weight:480}
.weekstrip [aria-pressed=true] strong {background:#333}
.next-event {border-radius:17px;background:#fcfcfc;box-shadow:none;gap:13px;padding:14px 16px}
.date-leaf {border:none;background:transparent;border-radius:0;width:42px;height:48px;justify-content:center;gap:3px}
.date-leaf>span {border:0;background:transparent;color:var(--muted);line-height:1.2}
.date-leaf>strong {margin:0}
.capture {background:white;border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:0;gap:3px}
.capture:focus-within {border-color:var(--muted)}
.capture button .icon {width:25px;height:25px;background:#ededed;color:var(--ink)}
.agenda-row .t {border:0;padding-left:0}
.t b,.tile b,.feedrow b {font-weight:550}
.recordrow .chev,.tile>.icon,.agenda-row .chev,.event-list .agenda-row>.icon {display:none}
.tile {min-height:72px}
.endcount {font-variant-numeric:tabular-nums}
/* The lens bends only the rim. Text sits above the sampling layer and stays sharp. */
.optics-defs {position:absolute;pointer-events:none;overflow:hidden}
.phone::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 115% 112% at -5% -42%, transparent 74%,#fff8 75.4%,#70707021 76.2%,#a5a5a514 77.7%,transparent 81%),
    radial-gradient(ellipse 114% 75% at 90% -44%, transparent 76%,#f4f4f4 85%,#fafafa 90%,transparent 97%),
    radial-gradient(ellipse 95% 72% at -30% 102%, transparent 53%,#f9f9f9 67%,#f2f2f2 73%,#fff 77%,transparent 81%),#fff;
}
.tabs {
  --slot:0;--dock-pad:5px;position:absolute;z-index:5;inset:auto auto max(15px,env(safe-area-inset-bottom)) 50%;
  transform:translateX(-50%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  width:min(370px,calc(100% - 24px));padding:var(--dock-pad);gap:0;border:0;border-radius:50px;
  background:transparent;box-shadow:0 7px 19px -8px #0003,0 0 0 1px #0000000d;
  touch-action:pan-y;user-select:none;-webkit-user-select:none;isolation:isolate;
}
.tabs::after,.tabs::before,.tab::before,.collections .tile::before,.pickgrid button::before {
  content:"";position:absolute;pointer-events:none;border-radius:inherit;
  background-color:transparent;
}
.tabs::after,.tab::before,.collections .tile::before,.pickgrid button::before {
  inset:0;z-index:-1;
  background-image:linear-gradient(155deg,#ffffff4d,transparent 19%,transparent 83%,#ffffff70);
  box-shadow:inset 0 1.25px 1px #fff,inset 1px 0 1.5px #ffffffcd,
    inset -1px 0 1.5px #00000020,inset 0 -1.5px 2px #00000029;
  -webkit-backdrop-filter:blur(.65px);backdrop-filter:blur(.65px);
}
@supports (backdrop-filter:url(#liquid-edge)){
  .tabs::after,.tabs::before,.tab::before,.collections .tile::before,.pickgrid button::before {backdrop-filter:url(#liquid-edge) blur(.4px)}
}
.tabs::after {z-index:-2}
.tabs::before {
  z-index:-1;top:var(--dock-pad);bottom:var(--dock-pad);left:var(--dock-pad);
  width:calc((100% - 2 * var(--dock-pad)) / 5);border-radius:40px;
  transform:translateX(calc(var(--slot) * 100%));transition:transform 310ms cubic-bezier(.2,.85,.22,1.09);
  background:linear-gradient(161deg,#ffffff75,transparent 30% 70%,#27272712 89%,#fff8 98%);
  box-shadow:inset 0 2px 2px #fff,inset 0 -2px 2.5px #00000040,0 1px 5px #00000017;
}
.tabs.dragging::before {transition:none;scale:1 1.04}
.tab,.tab.on,.tab:last-child {
  position:relative;min-height:45px;min-width:0;margin:0;padding:0 2px;display:flex;align-items:center;
  justify-content:center;flex-direction:row;border-radius:40px;background:transparent;color:#474747;
  font-size:13px;font-weight:500;line-height:1;letter-spacing:-.015em;
}
.tab::before {display:none}
.tab.on,.tabs.dragging .tab.preview-tab {color:#0c0c0c;font-weight:660}
.tabs.dragging .tab.on:not(.preview-tab){color:#474747;font-weight:500}
.tab:active:not(:disabled),.collections .tile:active:not(:disabled),.pickgrid button:active:not(:disabled){background:transparent}
.nav-compose .icon {background:none;color:var(--ink);width:21px;height:21px;padding:0;stroke-width:1.5}
.compose-label {display:none}
.tab:focus-visible {outline-offset:-2px}
.hd h1,.sectionhead h2,.sheet h2,.lock h1 {
  position:relative;width:fit-content;max-width:100%;padding-bottom:.16em;
}
.hd h1::after,.sectionhead h2::after,.sheet h2::after,.lock h1::after {
  content:"";position:absolute;left:.02em;bottom:.015em;width:min(100%,2.4em);height:clamp(3px,.11em,6px);
  border-radius:60% 40% 55% 45% / 75%;pointer-events:none;
  background:linear-gradient(180deg,#2727276e,#1c1c1cd1 58%,#4444448c);
  box-shadow:inset 0 1px 1px #ffffff70,0 1.5px 2px #00000014;
}
.collections {
  position:relative;display:grid;grid-template-columns:1fr;gap:12px;max-width:920px;margin-top:28px;
}
.collections .tile,.pickgrid button {
  display:flex;align-items:center;justify-content:space-between;gap:10px;isolation:isolate;position:relative;
  min-height:70px;padding:12px 24px 12px 16px;background:transparent;border:0;border-radius:24px;text-align:start;
  box-shadow:0 0 0 1px #0000000d,0 4px 9px -6px #00000036;
  transition:transform .18s ease,box-shadow .18s ease;
}
.collections .tile:active:not(:disabled),.pickgrid button:active:not(:disabled){transform:scale(.988)}
.collections .tile::before,.pickgrid button::before{
  box-shadow:inset 0 1.5px 1.5px #fff,inset 1px 0 2px #ffffffcc,inset -1px 0 1.5px #00000019,inset 0 -2px 2px #0000002b;
}
.collection-label,.tile .collection-label,.pickgrid .collection-label{
  position:relative;display:inline-block;width:fit-content;max-width:100%;isolation:isolate;
  font-size:16px;font-weight:520;letter-spacing:.025em;line-height:1.4;color:#fff;
  padding:6px 13px 7px;border-radius:12px;overflow-wrap:anywhere;
}
.collection-label::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(157deg,rgba(26,26,26,.73),rgba(24,24,24,.87) 69%,rgba(37,37,37,.78));
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  box-shadow:inset 0 1px 1px #ffffff85,inset 0 -1px 1px #0006,0 2px 3px #0000001c;
}
.collections .endcount {min-width:2ch;text-align:end;color:#515151;font-size:15px;font-weight:460}
.pickgrid {gap:8px}
.pickgrid button {min-height:48px;padding:7px 14px}
.pickgrid .collection-label {font-size:14px;padding:4px 11px}
@media(min-width:680px){
  .collections {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;}
  .collections .tile {min-height:89px;padding-inline:20px 26px;border-radius:30px}
  .collection-label,.tile .collection-label {font-size:18px}
}
@media(hover:hover){
  .collections .tile:hover,.pickgrid button:hover{transform:translateY(-1px);box-shadow:0 0 0 1px #00000016,0 6px 14px -7px #0003}
}


.screen:not(.locked){margin-left:0;padding-bottom:calc(94px + env(safe-area-inset-bottom))}
.next-event,.capture,.search,.event-scopes,.new-type,.sheet,.lockinput,.sheet input,.sheet select,.sheet textarea,
.sheet .btn.ghost,.sheet .btn.danger,.screen .btn.ghost,.screen .btn.danger {
  background-color:transparent;
  border-color:#15151512;
  box-shadow:inset 0 1px 1.3px #fffe,inset 0 -1.5px 2px #0000001a,0 3px 9px -7px #0003;
}
.next-event,.search,.event-scopes,.new-type {
  -webkit-backdrop-filter:blur(.7px);backdrop-filter:blur(.7px);
}
.capture {padding-inline:14px 6px;border:1px solid #15151512;border-radius:22px}
.capture:focus-within,.search:focus-within{border-color:#6060607d}
.scrim {background:rgba(245,245,245,.28);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sheet {
  border:1px solid #fff9;
  background-image:linear-gradient(145deg,#ffffff63,transparent 28%,transparent 75%,#ffffff59);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:inset 0 1px 2px white,inset -1px -1px 2px #0002,0 18px 62px #0003;
}
.composer textarea {box-shadow:none}
.sheet .secretfield input {padding-right:64px}
.sheet {animation:mobile-sheet-in 230ms cubic-bezier(.2,.74,.25,1)}
.scrim {animation:scrim-in 180ms ease-out}
@keyframes mobile-sheet-in {from{transform:translateY(22px);opacity:.72}}
@keyframes scrim-in {from{opacity:0}}
.intro {position:fixed;inset:0;z-index:40;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;width:100%;height:100%;border:0;cursor:pointer;animation:intro-out 1000ms both}
.intro img {animation:star-arrives 620ms cubic-bezier(.16,.8,.2,1) both}
.intro span {font-size:23px;font-weight:520;letter-spacing:-.055em;animation:name-arrives 500ms 100ms both}
@keyframes star-arrives {from{opacity:0;transform:translateY(5px) scale(.8) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes name-arrives {from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes intro-out {0%,65%{opacity:1}100%{opacity:0}}
@media(min-width:680px){
  .sheet {animation:desktop-sheet-in 200ms ease-out}
  @keyframes desktop-sheet-in {from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
}
@media(min-width:920px){
  .phone {--rail-left:clamp(24px,4vw,75px);--rail-width:clamp(138px,12vw,176px)}
  .screen:not(.locked){padding:28px clamp(32px,5vw,96px) 80px calc(var(--rail-left) + var(--rail-width) + clamp(35px,5vw,88px))}
  .canvas {max-width:1140px}
  .topbar {margin-bottom:38px}
  .demo-state {margin-right:auto}
  .hd {margin-bottom:30px}
  .day-overview {margin-bottom:24px}
  .tabs {--rail-gap:10px;--rail-row:48px;inset:clamp(10px,calc(100dvh - 300px),132px) auto auto var(--rail-left);transform:none;width:var(--rail-width);
    padding:0;grid-template-columns:1fr;grid-auto-rows:var(--rail-row);gap:var(--rail-gap);box-shadow:none;touch-action:pan-x;}
  .tabs::after {display:none}
  .tab::before {display:block}
  .tabs::before {inset:0 0 auto;width:100%;height:var(--rail-row);
    transform:translateY(calc(var(--slot) * (var(--rail-row) + var(--rail-gap))));}
  .tabs .tab {justify-content:flex-start;gap:9px;padding:0 24px;font-size:15px}
  .tabs .on::after {content:"";position:absolute;right:17px;width:5px;height:5px;border-radius:50%;background:currentColor}
  .tabs.dragging .on::after{opacity:0}
  .compose-label {display:inline}
  .nav-compose .icon {width:16px;height:16px}
  .toast {bottom:32px}
}
@media(max-width:370px){.topbar{gap:6px}.top-actions{gap:0}.demo-state{max-width:67px}.screen{padding-inline:17px}.tab{font-size:12px}}
@media(prefers-reduced-transparency:reduce){
  .phone::before{background:#fff}
  .scrim{background:#e7e7e7;backdrop-filter:none;-webkit-backdrop-filter:none}
  .next-event,.search,.capture,.sheet,.event-scopes,.new-type,.sheet input,.sheet textarea,.sheet select,.lockinput {background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
  .tabs::after,.tabs::before,.tab::before,.collections .tile::before,.pickgrid button::before {backdrop-filter:none;-webkit-backdrop-filter:none;background:#fafafa}
  .tabs::before{z-index:0;background:#e8e8e8}.tabs .tab{z-index:1}.tabs .on::before{background:#e8e8e8}
  .collection-label::before {background:#353535;backdrop-filter:none}
}
/* ══ 液态玻璃 v2：需要底光才有东西可折射 ══ */
.phone::before{
  background:
    radial-gradient(ellipse 115% 112% at -5% -42%, transparent 74%,#fff8 75.4%,#70707021 76.2%,#a5a5a514 77.7%,transparent 81%),
    radial-gradient(ellipse 114% 75% at 90% -44%, transparent 76%,#f4f4f4 85%,#fafafa 90%,transparent 97%),
    radial-gradient(ellipse 95% 72% at -30% 102%, transparent 53%,#f9f9f9 67%,#f2f2f2 73%,#fff 77%,transparent 81%),
    radial-gradient(ellipse 62% 42% at 10% 6%, #ffd9c766 0%, transparent 64%),
    radial-gradient(ellipse 55% 38% at 94% 10%, #d3e2ff5c 0%, transparent 62%),
    radial-gradient(ellipse 74% 40% at 52% 103%, #d9f2e45c 0%, transparent 66%),
    #fff;
}

/* 底部胶囊：外层玻璃 */
.tabs::after{
  background-image:linear-gradient(157deg,#ffffffb3,#ffffff3b 44%,#ffffff96);
  -webkit-backdrop-filter:blur(26px) saturate(185%);
  backdrop-filter:blur(26px) saturate(185%);
  box-shadow:inset 0 1.5px 1px #fff,inset 1px 0 2px #ffffffd6,inset -1px 0 2px #00000017,
    inset 0 -2px 3px #00000021,0 12px 30px -14px #12161b59,0 0 0 1px #00000010;
}

/* 选中项的「透镜」胶囊 */
.tabs::before{
  background:linear-gradient(158deg,#ffffffe6,#ffffff5e 48%,#ffffffd9 96%);
  box-shadow:inset 0 2px 2px #fff,inset 0 -2px 2.5px #00000033,0 3px 12px -4px #0000002e;
}
@supports (backdrop-filter:url(#liquid-edge)){
  .tabs::before{-webkit-backdrop-filter:url(#liquid-edge) blur(9px) saturate(180%);backdrop-filter:url(#liquid-edge) blur(9px) saturate(180%)}
}

/* 圆形新建键：深色玻璃 */
.fab{
  background:radial-gradient(ellipse at 32% 22%,#4a4b4a,#1b1c1b 72%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:inset 0 1.5px 1px #ffffff59,inset 0 -2px 3px #00000059,0 10px 26px -12px #00000073;
}

/* 抽屉与轻提示 */
.sheet{
  background:linear-gradient(180deg,#fdfdfccc,#f8f8f6e0);
  -webkit-backdrop-filter:blur(32px) saturate(180%);backdrop-filter:blur(32px) saturate(180%);
  box-shadow:inset 0 1.5px 0 #ffffffe6,0 -18px 50px -20px #0000003d;
}
.toast{
  background:#1f201fbf;-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);
  box-shadow:inset 0 1px 0 #ffffff2e,0 12px 30px -14px #00000066;
}

/* 桌面侧栏版同样处理 */
.tabs::before{transition:transform 310ms cubic-bezier(.2,.85,.22,1.09),box-shadow 200ms ease}

@media(prefers-reduced-transparency:reduce){
  .phone::before{background:#fff}
  .tabs::after{background-image:none;background:#f3f3f1;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 0 0 1px #00000012}
  .tabs::before{background:#e6e6e4;backdrop-filter:none;-webkit-backdrop-filter:none}
  .fab{background:#222322}
  .sheet{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
  .toast{background:#242524;backdrop-filter:none;-webkit-backdrop-filter:none}
}

@media(prefers-reduced-motion:reduce){.intro{display:none}}


