:root {
  --bg: #f8f4f8;
  --paper: #fffdfd;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #fffefe;
  --ink: #303648;
  --ink-soft: #535b70;
  --muted: #969aab;
  --muted-2: #b3b5c2;
  --line: rgba(99, 104, 132, 0.1);
  --pink: #f1a4bf;
  --pink-deep: #df7e9f;
  --pink-soft: #ffe9f1;
  --blue: #9bc6ef;
  --blue-deep: #6fa5d8;
  --blue-soft: #e9f4ff;
  --mint: #bfe5d3;
  --mint-soft: #ebf8f1;
  --peach: #ffd6c7;
  --cream: #fff7e7;
  --violet: #b3a6dd;
  --danger: #d87586;
  --shadow: 0 24px 80px rgba(102, 112, 148, 0.11);
  --shadow-soft: 0 12px 36px rgba(102, 112, 148, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --sidebar: 236px;
  --ease: cubic-bezier(.2, .85, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mascot { fill: none; stroke: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.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; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(133, 177, 227, 0.52); outline-offset: 3px; }

.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ambient::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 5% 4%, rgba(255, 216, 231, 0.72), transparent 28%), radial-gradient(circle at 95% 10%, rgba(211, 233, 255, 0.72), transparent 30%), radial-gradient(circle at 78% 92%, rgba(255, 227, 213, 0.5), transparent 26%), linear-gradient(145deg, #fbf7fa 0%, #f6f3f8 50%, #f7f6fb 100%); }
.ambient-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .55; }
.orb-pink { width: 360px; height: 360px; left: -160px; top: 28%; background: rgba(254, 215, 230, .65); }
.orb-blue { width: 420px; height: 420px; right: -220px; top: 18%; background: rgba(207, 231, 255, .68); }
.orb-cream { width: 300px; height: 300px; right: 28%; bottom: -220px; background: rgba(255, 235, 209, .52); }
.ambient-grain { position: absolute; inset: 0; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }

.app-shell { width: min(1540px, calc(100% - 32px)); min-height: calc(100vh - 32px); margin: 16px auto; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: rgba(255, 255, 255, .56); border: 1px solid rgba(255, 255, 255, .84); border-radius: 34px; box-shadow: 0 30px 100px rgba(84, 91, 121, .12); backdrop-filter: blur(24px); overflow: hidden; }
.sidebar { display: flex; flex-direction: column; padding: 28px 20px 20px; border-right: 1px solid rgba(108, 113, 139, .08); background: linear-gradient(180deg, rgba(255, 251, 253, .82), rgba(250, 250, 255, .66)); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 26px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #f4a9c2, #d6b9eb 52%, #9cc9ef); box-shadow: 0 9px 22px rgba(218, 150, 184, .3), inset 0 1px 1px rgba(255, 255, 255, .65); }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 1.65; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-family: "STKaiti", "KaiTi", "PingFang SC", serif; font-size: 20px; letter-spacing: .6px; font-weight: 700; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.new-task-button { width: 100%; min-height: 52px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border-radius: 17px; color: #fff; text-align: left; background: linear-gradient(135deg, #e995b4, #dba6d1 56%, #9ec7ec); box-shadow: 0 13px 28px rgba(205, 141, 170, .26), inset 0 1px 0 rgba(255, 255, 255, .42); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.new-task-button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(205, 141, 170, .32); }
.new-task-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .2); }
.new-task-icon svg { width: 17px; height: 17px; }
.new-task-button > span:nth-child(2) { font-size: 14px; font-weight: 650; }
.new-task-button kbd { margin-left: auto; padding: 3px 7px; color: rgba(255, 255, 255, .72); font: 10px/1.3 inherit; border: 1px solid rgba(255, 255, 255, .25); border-radius: 7px; }
.side-nav { margin-top: 29px; }
.nav-label { margin: 0 10px 10px; color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-item { width: 100%; height: 45px; margin-bottom: 4px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 14px; background: transparent; color: #777e90; font-size: 13.5px; font-weight: 560; text-align: left; transition: color .2s, background .2s, transform .2s; }
.nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, .7); transform: translateX(2px); }
.nav-item.active { color: #b96f8c; background: linear-gradient(90deg, rgba(255, 226, 237, .92), rgba(242, 239, 255, .72)); box-shadow: inset 0 0 0 1px rgba(240, 173, 200, .12); }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-item span { flex: 1; }
.nav-item small { min-width: 22px; padding: 2px 7px; color: var(--muted); font-size: 10px; text-align: center; border-radius: 99px; background: rgba(255, 255, 255, .72); }
.nav-dot { flex: 0 0 auto !important; width: 6px !important; height: 6px !important; border-radius: 99px; background: var(--pink); box-shadow: 0 0 0 4px rgba(241, 164, 191, .15); }
.nav-item .beta { flex: 0 0 auto; padding: 2px 6px; color: #8786ad; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .5px; border-radius: 99px; background: #eeecfb; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.sidebar-note { position: relative; margin: 0 2px 16px; padding: 18px 16px 16px; border-radius: 20px; overflow: hidden; background: linear-gradient(145deg, rgba(255, 232, 242, .88), rgba(235, 243, 255, .86)); border: 1px solid rgba(255, 255, 255, .8); }
.sidebar-note::after { content: ""; position: absolute; width: 68px; height: 68px; right: -20px; bottom: -30px; border-radius: 50%; background: rgba(255, 255, 255, .48); }
.tiny-star { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; color: #d992ad; border-radius: 9px; background: rgba(255, 255, 255, .64); }
.tiny-star svg { width: 14px; height: 14px; }
.sidebar-note p { margin: 0 0 7px; color: #666a7d; font-family: "STKaiti", "KaiTi", serif; font-size: 13px; line-height: 1.75; }
.sidebar-note > span:last-child { color: var(--muted); font-size: 10px; }
.profile-card { width: 100%; padding: 8px 6px; display: flex; align-items: center; gap: 10px; border-radius: 16px; background: transparent; text-align: left; }
.profile-card:hover { background: rgba(255, 255, 255, .65); }
.profile-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: #a96d87; font-size: 14px; font-weight: 700; border-radius: 13px; background: linear-gradient(145deg, #ffe6ee, #e2efff); border: 1px solid #fff; }
.profile-copy { display: flex; flex-direction: column; min-width: 0; }
.profile-copy strong { font-size: 12.5px; }
.profile-copy small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card > svg { width: 13px; height: 13px; margin-left: auto; color: var(--muted-2); }
.main { min-width: 0; padding: 27px 34px 23px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.date-block { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.date-block svg { width: 15px; height: 15px; color: #b8a4b2; }
.date-block i { width: 3px; height: 3px; border-radius: 50%; background: #d6d4dd; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.notify-pill { height: 35px; padding: 0 13px; display: flex; align-items: center; gap: 7px; color: #6f7488; font-size: 11px; font-weight: 600; border: 1px solid rgba(115, 120, 146, .09); border-radius: 99px; background: rgba(255, 255, 255, .62); }
.notify-pill:hover { background: #fff; }
.notify-pill svg { width: 14px; height: 14px; color: #a78f9c; }
.notify-dot { width: 6px; height: 6px; border-radius: 50%; background: #d8d6df; }
.notify-pill.active .notify-dot { background: #7fcaaa; box-shadow: 0 0 0 4px rgba(127, 202, 170, .12); }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; color: #8d8c9e; border: 1px solid rgba(115, 120, 146, .09); border-radius: 12px; background: rgba(255, 255, 255, .62); transition: transform .2s, background .2s; }
.icon-button:hover { transform: rotate(8deg); background: #fff; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button.mini { width: 28px; height: 28px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.icon-button.glass { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .2); }
.welcome { margin-top: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 5px; color: #8e8b9e; font-size: 11.5px; letter-spacing: .2px; }
.eyebrow-dot { padding: 0 4px; color: #d2abb9; }
.welcome h1 { margin: 0; color: #333849; font-family: "STKaiti", "KaiTi", "PingFang SC", serif; font-size: clamp(25px, 2.6vw, 35px); font-weight: 700; letter-spacing: 1px; }
.flower-mark { display: inline-block; margin-left: 7px; color: #eab0c5; font-family: serif; font-size: .66em; transform: translateY(-3px) rotate(10deg); animation: flowerTurn 8s linear infinite; }
@keyframes flowerTurn { to { transform: translateY(-3px) rotate(370deg); } }
.mood-pill { height: 35px; padding: 0 11px 0 8px; display: flex; align-items: center; gap: 7px; color: #7f768a; font-size: 11px; border-radius: 99px; background: rgba(255, 255, 255, .56); border: 1px solid rgba(255, 255, 255, .9); }
.mood-pill > span:first-child { width: 23px; height: 23px; display: grid; place-items: center; color: #b2748e; font-size: 13px; border-radius: 50%; background: #ffe7ef; }
.mood-pill svg { width: 11px; height: 11px; transform: rotate(90deg); color: #b5aeb9; }
.hero-card { position: relative; min-height: 260px; margin-top: 18px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; border-radius: 30px; background: radial-gradient(circle at 86% 24%, rgba(255, 255, 255, .6), transparent 21%), linear-gradient(120deg, #ffe5ed 0%, #f8e6f2 38%, #e2f0ff 100%); border: 1px solid rgba(255, 255, 255, .82); box-shadow: 0 22px 54px rgba(176, 148, 175, .12); }
.hero-card::before { content: ""; position: absolute; width: 310px; height: 310px; right: 13%; top: -220px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.hero-card::after { content: ""; position: absolute; width: 160px; height: 160px; left: -90px; bottom: -100px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-label { width: fit-content; display: flex; align-items: center; gap: 6px; padding: 5px 10px; color: #9b7284; font-size: 10px; font-weight: 600; border-radius: 99px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .65); }
.hero-label svg { width: 12px; height: 12px; color: #c587a1; }
.hero-label b { color: #c97698; font-weight: 750; }
.hero-copy h2 { margin: 13px 0 10px; color: #3b4054; font-family: "STKaiti", "KaiTi", "PingFang SC", serif; font-size: clamp(24px, 2.55vw, 34px); line-height: 1.42; letter-spacing: .6px; font-weight: 700; }
.hero-copy h2 em { color: #c77f9b; font-style: normal; position: relative; }
.hero-copy h2 em::after { content: ""; position: absolute; left: 0; right: -2px; bottom: 1px; height: 7px; z-index: -1; border-radius: 99px; background: rgba(255, 255, 255, .62); }
.hero-copy p { max-width: 500px; margin: 0; color: #858090; font-size: 11.5px; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; }
.primary-button, .ghost-button { min-height: 41px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 13px; font-size: 11.5px; font-weight: 650; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s; }
.primary-button { color: #fff; background: linear-gradient(135deg, #e590b0, #d89fc9 60%, #9fc6ea); box-shadow: 0 10px 22px rgba(199, 131, 162, .24), inset 0 1px 0 rgba(255, 255, 255, .4); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(199, 131, 162, .3); }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.ghost-button { color: #716d7c; background: rgba(255, 255, 255, .56); border: 1px solid rgba(255, 255, 255, .9); }
.ghost-button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .86); }
.primary-button svg, .ghost-button svg { width: 15px; height: 15px; }
.focus-button-icon { display: grid; place-items: center; width: 22px; height: 22px; color: #98b7d3; border-radius: 8px; background: #e8f3fd; }
.focus-button-icon svg { width: 11px; height: 11px; fill: currentColor; }
.hero-art { position: relative; align-self: stretch; flex: 0 0 390px; min-height: 196px; }
.art-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.orbit-one { width: 290px; height: 290px; right: -10px; top: -55px; }
.orbit-two { width: 210px; height: 210px; right: 35px; top: -15px; border-style: dashed; opacity: .75; }
.art-spark { position: absolute; color: rgba(255, 255, 255, .9); font-family: serif; }
.spark-one { top: 6px; right: 44px; font-size: 26px; animation: softFloat 4s ease-in-out infinite; }
.spark-two { right: 6px; top: 85px; font-size: 16px; animation: softFloat 5s ease-in-out -1s infinite; }
.art-cloud { position: absolute; height: 27px; border-radius: 99px; background: rgba(255, 255, 255, .34); filter: blur(1px); }
.art-cloud::before, .art-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.art-cloud::before { width: 42px; height: 42px; left: 18px; top: -20px; }
.art-cloud::after { width: 28px; height: 28px; left: 60px; top: -11px; }
.cloud-one { width: 115px; height: 27px; left: 0; bottom: 8px; }
.cloud-two { width: 86px; height: 20px; right: 22px; top: 6px; opacity: .7; transform: scale(.8); }
.hero-note { position: absolute; border-radius: 20px; box-shadow: 0 15px 36px rgba(124, 113, 145, .13); border: 1px solid rgba(255, 255, 255, .84); }
.note-back { width: 140px; height: 143px; right: 178px; top: 31px; padding: 18px; color: #9a8794; background: rgba(255, 249, 232, .82); transform: rotate(-9deg); }
.note-back span { font-size: 8px; font-weight: 800; letter-spacing: 1.6px; }
.note-back strong { display: block; margin: 15px 0 20px; color: #8e7d84; font-family: "STKaiti", "KaiTi", serif; font-size: 22px; }
.note-back i { display: block; width: 80%; height: 3px; margin: 7px 0; border-radius: 99px; background: rgba(155, 139, 142, .14); }
.note-front { width: 177px; height: 176px; right: 54px; top: 18px; padding: 19px 18px; color: #615e71; background: rgba(255, 255, 255, .79); transform: rotate(5deg); backdrop-filter: blur(8px); }
.note-top { display: flex; align-items: center; justify-content: space-between; }
.note-top span { color: #c594a9; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.note-top b { color: #b7a3b3; font-family: "Georgia", serif; font-size: 21px; font-weight: 500; }
.note-front > strong { display: block; margin-top: 14px; color: #626274; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; line-height: 1.45; }
.note-front p { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; color: #a49ba7; font-size: 8.5px; }
.note-front p svg { width: 10px; height: 10px; }
.note-heart { position: absolute; right: 17px; bottom: 16px; color: #ebb2c6; font-size: 17px; }
.hero-clock { position: absolute; width: 92px; height: 92px; right: 2px; bottom: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #8eaac4; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 13px 32px rgba(105, 137, 169, .14); backdrop-filter: blur(9px); transform: rotate(-4deg); }
.hero-clock::before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(143, 176, 207, .28); border-radius: 50%; }
.hero-clock svg { width: 15px; height: 15px; }
.hero-clock span { margin-top: 1px; color: #9b9aa8; font-size: 7px; letter-spacing: 1px; }
.hero-clock strong { color: #718aa3; font: 600 14px/1.2 "Avenir Next", sans-serif; letter-spacing: .5px; }
.art-caption { position: absolute; right: 100px; bottom: 3px; color: rgba(133, 126, 147, .56); font: italic 8px/1 "Georgia", serif; letter-spacing: .5px; }
@keyframes softFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(6deg); } }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(270px, .78fr); gap: 18px; margin-top: 18px; align-items: start; }
.card { background: rgba(255, 255, 255, .73); border: 1px solid rgba(255, 255, 255, .92); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); backdrop-filter: blur(15px); }
.agenda-card { min-width: 0; padding: 25px 24px 19px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-heading.compact { align-items: flex-start; }
.section-kicker { color: #b8a1ac; font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.card-heading h2 { margin: 4px 0 0; color: #3a3f51; font-family: "STKaiti", "KaiTi", "PingFang SC", serif; font-size: 21px; font-weight: 700; letter-spacing: .4px; }
#taskCountBadge { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 6px; vertical-align: 3px; color: #bc7894; font-family: "Avenir Next", sans-serif; font-size: 9px; border-radius: 99px; background: #ffe8f0; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.text-button { padding: 5px; color: #9994a5; background: transparent; font-size: 10px; transition: color .2s; }
.text-button:hover { color: #c57b98; }
.text-button.danger { color: #c48290; }
.small-add-button { width: 30px; height: 30px; display: grid; place-items: center; color: #b27e92; border-radius: 10px; background: #fff0f5; }
.small-add-button svg { width: 16px; height: 16px; }
.small-add-button:hover { background: #ffe5ef; }
.filter-row { margin-top: 18px; display: flex; align-items: center; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter-chip { height: 29px; padding: 0 11px; color: #9b97a5; font-size: 10px; border-radius: 99px; background: transparent; transition: background .2s, color .2s; }
.filter-chip:hover { background: #faf5f8; color: #777181; }
.filter-chip.active { color: #a86b85; background: #ffe9f1; }
.filter-chip span { margin-left: 3px; color: #c8a2b0; font-size: 8px; }
.filter-spacer { flex: 1; }
.sort-button { display: flex; align-items: center; gap: 4px; padding: 5px; color: #aaa4af; font-size: 9px; background: transparent; }
.sort-button svg { width: 11px; height: 11px; }
.task-list { margin-top: 7px; }
.task-item { position: relative; min-height: 81px; padding: 13px 8px 13px 0; display: grid; grid-template-columns: 53px 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px dashed rgba(112, 116, 143, .1); transition: background .22s, transform .22s, opacity .22s; animation: taskIn .38s var(--ease) both; }
@keyframes taskIn { from { opacity: 0; transform: translateY(7px); } }
.task-item:hover { background: rgba(255, 255, 255, .55); border-radius: 15px; transform: translateX(2px); }
.task-item:last-child { border-bottom: 0; }
.task-time-block { position: relative; align-self: stretch; display: flex; align-items: flex-start; padding-top: 5px; }
.task-time-block::after { content: ""; position: absolute; left: 48px; top: 7px; bottom: -26px; width: 1px; background: linear-gradient(#e9dce3, transparent); }
.task-item:last-child .task-time-block::after { display: none; }
.task-time-block strong { color: #686778; font: 600 11px/1.2 "Avenir Next", sans-serif; letter-spacing: .2px; }
.task-time-block span { position: absolute; left: 45px; top: 23px; width: 7px; height: 7px; border: 2px solid #f7eef3; border-radius: 50%; background: #d6b2c1; }
.task-item.priority-medium .task-time-block span { background: #a9c8e5; }
.task-item.priority-low .task-time-block span { background: #b8dccc; }
.task-check { width: 23px; height: 23px; display: grid; place-items: center; border: 1.5px solid #dfd8df; border-radius: 50%; background: #fff; transition: background .2s, border-color .2s, transform .2s; }
.task-check:hover { transform: scale(1.1); border-color: #e2a9bd; }
.task-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.65); transition: opacity .2s, transform .2s; }
.task-item.done .task-check { background: linear-gradient(135deg, #efb0c7, #b7ccec); border-color: transparent; }
.task-item.done .task-check svg { opacity: 1; transform: scale(1); }
.task-main { min-width: 0; }
.task-title-row { display: flex; align-items: center; gap: 7px; }
.task-main h3 { min-width: 0; margin: 0; color: #46495a; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12.5px; font-weight: 620; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.task-item.done .task-main h3 { color: #a9a4ad; text-decoration: line-through; text-decoration-color: #d8c8d1; }
.priority-badge { flex: 0 0 auto; padding: 2px 6px; font-size: 7.5px; font-weight: 700; border-radius: 99px; }
.priority-badge.high { color: #c87391; background: #ffe7ef; }
.priority-badge.medium { color: #819bb9; background: #eaf4ff; }
.priority-badge.low { color: #7eaa93; background: #eaf7f0; }
.task-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; color: #aaa4ad; font-size: 9px; }
.task-meta span { display: flex; align-items: center; gap: 4px; }
.task-meta svg { width: 10px; height: 10px; }
.task-meta .alarm-on { color: #c28ca1; }
.task-note-preview { max-width: 280px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s; }
.task-item:hover .task-actions, .task-actions:focus-within { opacity: 1; transform: translateX(0); }
.task-action { width: 27px; height: 27px; display: grid; place-items: center; color: #aaa4ae; border-radius: 9px; background: transparent; }
.task-action:hover { color: #b7718d; background: #fff0f5; }
.task-action.delete:hover { color: #d47789; background: #fff0f1; }
.task-action svg { width: 13px; height: 13px; }
.empty-state { padding: 30px 20px 24px; text-align: center; }
.empty-mascot { display: block; width: 98px; height: 110px; margin: -6px auto 5px; opacity: .88; }
.empty-mascot svg { width: 100%; height: 100%; }
.empty-state strong { display: block; color: #636173; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; }
.empty-state p { margin: 5px 0 8px; color: #aaa5af; font-size: 10px; }
.inline-add { width: 100%; min-height: 39px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #b0a8b2; font-size: 10px; border: 1px dashed rgba(190, 168, 181, .28); border-radius: 13px; background: rgba(255, 255, 255, .26); transition: color .2s, background .2s, border-color .2s; }
.inline-add:hover { color: #b87792; border-color: #edc9d6; background: #fff7fa; }
.inline-add span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: #f9eaf0; }
.inline-add svg { width: 12px; height: 12px; }
.right-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.progress-card { padding: 21px 21px 19px; }
.progress-wrap { position: relative; width: 144px; height: 144px; margin: 12px auto 4px; display: grid; place-items: center; }
.progress-ring { width: 136px; height: 136px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: #f3eef2; }
.ring-value { stroke: #e8a8c1; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 218; transition: stroke-dashoffset .7s var(--ease); filter: drop-shadow(0 3px 6px rgba(219, 137, 166, .24)); }
.progress-center { position: absolute; display: flex; flex-direction: column; align-items: center; }
.progress-center strong { color: #6c687b; font: 600 27px/1 "Avenir Next", serif; }
.progress-center span { margin-top: 5px; color: #ada7b0; font-size: 8px; }
.progress-copy { margin: 6px 0 13px; color: #8f8b99; font-family: "STKaiti", "KaiTi", serif; font-size: 12px; line-height: 1.65; text-align: center; }
.progress-stats { display: flex; align-items: center; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--line); }
.progress-stats div { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.progress-stats strong { color: #6c6879; font: 600 13px/1.2 "Avenir Next", sans-serif; }
.progress-stats span { margin-top: 3px; color: #aca6af; font-size: 8px; }
.progress-stats i { width: 1px; height: 22px; background: var(--line); }
.next-alarm-card { position: relative; padding: 20px 21px 17px; overflow: hidden; background: linear-gradient(150deg, rgba(255, 250, 252, .88), rgba(244, 249, 255, .82)); }
.next-alarm-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -42px; top: 37px; border: 1px dashed rgba(169, 197, 225, .28); border-radius: 50%; }
.next-alarm-top { display: flex; align-items: center; justify-content: space-between; }
.alarm-art { width: 31px; height: 31px; display: grid; place-items: center; color: #c1889f; border-radius: 11px; background: #fff; box-shadow: 0 6px 16px rgba(156, 146, 174, .1); }
.alarm-art svg { width: 15px; height: 15px; }
.live-chip { display: inline-flex; align-items: center; gap: 5px; color: #b1a8b1; font-size: 7px; font-weight: 800; letter-spacing: 1.25px; }
.live-chip i { width: 5px; height: 5px; border-radius: 50%; background: #89c7aa; box-shadow: 0 0 0 3px rgba(137, 199, 170, .12); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 50% { opacity: .45; } }
.next-label { margin: 15px 0 3px; color: #b2a5ac; font-size: 8px; }
.next-alarm-card h3 { max-width: 86%; margin: 0; color: #5b586b; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-time-row { display: flex; align-items: baseline; gap: 9px; margin-top: 6px; }
.next-time-row strong { color: #be7f99; font: 600 24px/1 "Avenir Next", sans-serif; letter-spacing: .5px; }
.next-time-row span { color: #aca4ae; font-size: 8.5px; }
.alarm-action { width: 100%; height: 33px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #a68d9a; font-size: 9px; border-radius: 10px; background: rgba(255, 255, 255, .68); border: 1px solid rgba(255, 255, 255, .9); }
.alarm-action:hover { color: #bd7896; background: #fff; }
.alarm-action svg { width: 12px; height: 12px; }
.companion-mini { position: relative; min-height: 196px; padding: 20px 21px; overflow: hidden; background: linear-gradient(140deg, rgba(255, 236, 243, .94), rgba(231, 243, 255, .9)); }
.companion-mini-bg { position: absolute; width: 150px; height: 150px; right: -42px; bottom: -40px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.companion-mini-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfcbd5; border: 2px solid rgba(255, 255, 255, .85); }
.online-dot.active { background: #86c8a7; box-shadow: 0 0 0 4px rgba(134, 200, 167, .12); }
.companion-mini h2 { position: relative; margin: 10px 0 6px; color: #646071; font-family: "STKaiti", "KaiTi", serif; font-size: 18px; line-height: 1.4; }
.companion-mini p { position: relative; width: 63%; margin: 0; color: #99929e; font-size: 8.5px; line-height: 1.7; }
.companion-cta { position: relative; display: flex; align-items: center; gap: 4px; margin-top: 13px; padding: 0; color: #a8738a; font-size: 9px; font-weight: 650; background: transparent; }
.companion-cta svg { width: 11px; height: 11px; transition: transform .2s; }
.companion-cta:hover svg { transform: translateX(3px); }
.mini-mascot { position: absolute; width: 105px; height: 122px; right: -4px; bottom: -4px; transform: rotate(4deg); filter: drop-shadow(0 13px 17px rgba(152, 129, 151, .14)); }
.mini-mascot svg { width: 100%; height: 100%; }
.mascot-heart { position: absolute; top: 32px; right: 8px; color: #ed9db9; font-size: 13px; animation: heartBeat 2.3s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.17); opacity: 1; } }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 0 4px; color: #b5afb8; font-size: 8.5px; }
.app-footer span { display: flex; align-items: center; gap: 5px; }
.app-footer svg { width: 11px; height: 11px; }
.mobile-nav { display: none; }
.companion-dock { position: fixed; right: 0; bottom: 34px; z-index: 90; width: 205px; display: flex; flex-direction: column; align-items: flex-end; filter: drop-shadow(0 16px 30px rgba(107, 105, 136, .15)); animation: dockIn .55s var(--ease) both; }
@keyframes dockIn { from { opacity: 0; transform: translateX(30px); } }
.dock-close { position: absolute; right: 25px; top: -15px; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; color: #a199a7; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(90, 88, 112, .12); }
.dock-close svg { width: 11px; height: 11px; }
.dock-bubble { width: 198px; margin-right: 8px; padding: 11px 13px; color: #6f6b7d; border-radius: 15px 15px 4px 15px; background: rgba(255, 255, 255, .92); border: 1px solid #fff; box-shadow: 0 8px 24px rgba(94, 96, 129, .1); backdrop-filter: blur(14px); }
.dock-bubble strong { display: block; margin-bottom: 2px; color: #9d7083; font-family: "STKaiti", "KaiTi", serif; font-size: 13px; }
.dock-bubble p { margin: 0; font-size: 9px; line-height: 1.5; }
.dock-character { position: relative; width: 116px; height: 132px; margin-right: -13px; overflow: visible; background: transparent; transform-origin: 65% 0; animation: dockSwing 4.2s ease-in-out infinite; }
.dock-character:hover { animation-play-state: paused; transform: rotate(-3deg) translateX(-5px); }
@keyframes dockSwing { 0%, 100% { transform: rotate(1.5deg); } 50% { transform: rotate(-2.5deg); } }
.dock-cartoon, .dock-photo { display: block; width: 116px; height: 132px; }
.dock-cartoon svg { width: 100%; height: 100%; }
.dock-photo { position: relative; overflow: hidden; border: 5px solid rgba(255, 255, 255, .9); border-radius: 52% 48% 45% 55% / 40% 42% 58% 60%; background: linear-gradient(145deg, #ffe6ef, #dceeff); box-shadow: 0 12px 30px rgba(92, 101, 139, .18); }
.dock-photo img { width: 100%; height: 100%; object-fit: cover; }
.dock-heart { position: absolute; right: 18px; top: 36px; color: #ee98b7; font-size: 15px; animation: heartBeat 2.3s ease-in-out infinite; }

.modal-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: visibility .3s, opacity .3s; }
.modal-layer.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43, 45, 62, .32); backdrop-filter: blur(9px); }
.modal-card { position: relative; width: min(100%, 590px); max-height: min(90vh, 800px); overflow-y: auto; padding: 30px; border-radius: 28px; background: #fffdfd; box-shadow: 0 35px 100px rgba(55, 57, 82, .24); transform: translateY(18px) scale(.98); transition: transform .35s var(--ease); scrollbar-width: thin; scrollbar-color: #eadde5 transparent; }
.modal-layer.open .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; right: 18px; top: 18px; width: 31px; height: 31px; display: grid; place-items: center; color: #9d97a3; border-radius: 10px; background: #f9f5f7; }
.modal-close:hover { background: #f4eaee; }
.modal-close svg { width: 14px; height: 14px; }
.modal-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.modal-heading.simple { margin-bottom: 14px; }
.modal-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #c27e99; border-radius: 14px; background: linear-gradient(145deg, #ffe6ef, #edf4ff); }
.modal-icon svg { width: 19px; height: 19px; }
.modal-heading h2, .companion-modal-hero h2, .settings-card h2 { margin: 3px 0 0; color: #444657; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; }
form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > span, .priority-field legend { color: #898493; font-size: 9.5px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select, .input-with-icon { width: 100%; color: #555567; font-size: 12px; border: 1px solid #ebe4e9; border-radius: 12px; background: #fdfafb; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-field input, .form-field textarea, .form-field select { padding: 11px 12px; }
.form-field textarea { resize: vertical; min-height: 63px; line-height: 1.6; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #c5bec4; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: #edbdce; background: #fff; box-shadow: 0 0 0 4px rgba(242, 183, 205, .11); }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; color: #b8a1ae; transform: translateY(-50%); pointer-events: none; }
.input-with-icon input { padding-left: 33px; border: 0; background: transparent; }
.priority-field { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; border: 0; }
.priority-field legend { grid-column: 1 / -1; margin-bottom: 6px; }
.priority-option input, .character-option input { position: absolute; opacity: 0; pointer-events: none; }
.priority-option span { height: 35px; display: flex; align-items: center; gap: 6px; justify-content: center; color: #9d96a2; font-size: 9.5px; border: 1px solid #eee7eb; border-radius: 10px; background: #fdfafb; cursor: pointer; transition: all .2s; }
.priority-option span i { width: 6px; height: 6px; border-radius: 50%; background: #ddd6dc; }
.priority-option.high span i { background: #edabc1; }
.priority-option.medium span i { background: #a8c8e7; }
.priority-option.low span i { background: #acd8c1; }
.priority-option input:checked + span { color: #776b75; border-color: #efc5d3; background: #fff1f6; box-shadow: 0 5px 12px rgba(223, 166, 187, .1); }
.alarm-switch-row { display: flex; align-items: center; gap: 11px; padding: 12px 13px; cursor: pointer; border-radius: 14px; background: #fbf7fa; border: 1px solid #f2eaf0; }
.alarm-switch-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #bc879c; border-radius: 10px; background: #ffeaf2; }
.alarm-switch-icon svg { width: 14px; height: 14px; }
.alarm-switch-copy { display: flex; flex-direction: column; flex: 1; }
.alarm-switch-copy strong { color: #666273; font-size: 10.5px; }
.alarm-switch-copy small { color: #aaa3ab; font-size: 8px; }
.alarm-switch-row input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 36px; height: 20px; flex: 0 0 auto; border-radius: 99px; background: #e3dde3; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(83, 82, 103, .16); transition: transform .22s var(--ease); }
.alarm-switch-row input:checked + .switch-ui { background: linear-gradient(90deg, #eaa2bc, #b8cceb); }
.alarm-switch-row input:checked + .switch-ui::after { transform: translateX(16px); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 3px; }
.full-width { width: 100%; }
.companion-modal-card { width: min(100%, 610px); }
.companion-modal-hero { display: grid; grid-template-columns: 115px 1fr; gap: 14px; align-items: center; padding-right: 25px; }
.companion-modal-hero p { margin: 7px 0 0; color: #99929d; font-size: 10px; line-height: 1.75; }
.consent-mascot { width: 115px; height: 125px; margin: -15px 0 -8px -12px; filter: drop-shadow(0 10px 15px rgba(141, 120, 145, .13)); }
.consent-mascot svg { width: 100%; height: 100%; }
.consent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 17px; }
.consent-list > div { padding: 12px 11px; border-radius: 14px; background: #fbf8fa; border: 1px solid #f3ebf0; }
.consent-list > div > span { width: 27px; height: 27px; display: grid; place-items: center; color: #ae8394; border-radius: 9px; background: #ffeaf2; }
.consent-list svg { width: 13px; height: 13px; }
.consent-list p { margin: 9px 0 0; }
.consent-list strong { display: block; color: #706b7c; font-size: 9.5px; }
.consent-list small { display: block; margin-top: 3px; color: #aaa3aa; font-size: 8px; line-height: 1.55; }
.character-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 13px; padding: 0; border: 0; }
.character-choice legend { grid-column: 1 / -1; margin-bottom: 6px; color: #898493; font-size: 9.5px; font-weight: 600; }
.character-option { display: flex; align-items: center; gap: 9px; padding: 9px; cursor: pointer; border: 1px solid #eee6eb; border-radius: 14px; background: #fdfafb; transition: all .2s; }
.character-option:has(input:checked) { border-color: #edbdce; background: #fff4f8; box-shadow: 0 7px 17px rgba(223, 166, 187, .1); }
.character-preview { width: 45px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 13px; }
.cartoon-preview { background: linear-gradient(145deg, #ffe7ef, #e7f3ff); }
.cartoon-preview svg { width: 53px; height: 57px; margin-top: 5px; }
.real-preview { color: #9bb6d1; background: linear-gradient(145deg, #eaf4ff, #f5eaff); }
.real-preview svg { width: 20px; height: 20px; }
.character-option > span:last-child { display: flex; flex-direction: column; }
.character-option strong { color: #6f6978; font-size: 10px; }
.character-option small { margin-top: 2px; color: #aaa2aa; font-size: 8px; }
.photo-upload { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px; border: 1px dashed #e7d7de; border-radius: 13px; background: #fcf9fb; }
.upload-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: #a6788b; font-size: 8.5px; border-radius: 8px; background: #ffeaf2; cursor: pointer; }
.upload-button svg { width: 12px; height: 12px; }
.upload-button input { display: none; }
.photo-upload > span { color: #aaa2a9; font-size: 8px; }
.consent-check { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; color: #88818c; font-size: 8.5px; line-height: 1.65; cursor: pointer; }
.consent-check input { position: absolute; opacity: 0; pointer-events: none; }
.custom-checkbox { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; color: #fff; border: 1px solid #ded5dd; border-radius: 6px; background: #fff; transition: all .2s; }
.custom-checkbox svg { width: 11px; height: 11px; opacity: 0; }
.consent-check input:checked + .custom-checkbox { border-color: #e9a4bd; background: linear-gradient(145deg, #eaa1bb, #b4caea); }
.consent-check input:checked + .custom-checkbox svg { opacity: 1; }
.capability-note { display: flex; gap: 6px; align-items: flex-start; margin: 11px 0 0; color: #b0a8b0; font-size: 8px; line-height: 1.6; }
.capability-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.settings-card { width: min(100%, 570px); }
.setting-list { margin-top: 14px; border: 1px solid #f0e9ed; border-radius: 17px; overflow: hidden; }
.setting-row { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-bottom: 1px solid #f3edf0; background: #fffdfd; }
.setting-row:last-child { border-bottom: 0; }
.setting-icon { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
.setting-icon svg { width: 14px; height: 14px; }
.setting-icon.pink { color: #ba7d94; background: #ffeaf2; }
.setting-icon.blue { color: #7ea2c2; background: #eaf4ff; }
.setting-icon.mint { color: #7fa992; background: #ebf8f1; }
.setting-icon.peach { color: #bb8a77; background: #fff0e9; }
.setting-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setting-row strong { color: #6e6978; font-size: 10.5px; }
.setting-row small { margin-top: 2px; color: #aaa3ab; font-size: 8px; }
.setting-button { padding: 6px 9px; color: #a37588; font-size: 8.5px; border-radius: 8px; background: #fff0f5; }
.setting-button:hover { background: #ffe5ef; }
.toggle { position: relative; width: 36px; height: 20px; flex: 0 0 auto; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #e3dde3; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(83, 82, 103, .16); transition: transform .22s var(--ease); }
.toggle input:checked + span { background: linear-gradient(90deg, #eaa2bc, #b8cceb); }
.toggle input:checked + span::after { transform: translateX(16px); }
.settings-note { display: flex; gap: 10px; margin-top: 14px; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #fff5f8, #f3f8ff); }
.settings-note > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #a58da0; }
.settings-note p { margin: 0; }
.settings-note strong { display: block; color: #777081; font-size: 9.5px; }
.settings-note span { display: block; margin-top: 3px; color: #a49da7; font-size: 8px; line-height: 1.7; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.settings-footer span { color: #bbb4bb; font-size: 8px; }
.alarm-layer { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; background: rgba(52, 48, 65, .36); backdrop-filter: blur(12px); transition: visibility .3s, opacity .3s; }
.alarm-layer.open { visibility: visible; opacity: 1; }
.alarm-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 219, 233, .75), rgba(215, 235, 255, .35) 44%, transparent 68%); animation: alarmGlow 2.1s ease-in-out infinite; }
@keyframes alarmGlow { 50% { transform: scale(1.08); opacity: .75; } }
.alarm-card { position: relative; width: min(100%, 440px); padding: 29px 28px 25px; text-align: center; border-radius: 30px; background: linear-gradient(155deg, #fffafd, #f9fbff); box-shadow: 0 35px 100px rgba(52, 47, 70, .3); transform: scale(.94); transition: transform .35s var(--ease); overflow: hidden; }
.alarm-layer.open .alarm-card { transform: scale(1); }
.alarm-rings { position: absolute; width: 280px; height: 280px; left: 50%; top: 30px; border: 1px solid rgba(232, 166, 192, .18); border-radius: 50%; transform: translateX(-50%); animation: alarmRing 2.3s ease-out infinite; }
.ring-b { animation-delay: 1.15s; }
@keyframes alarmRing { 0% { transform: translateX(-50%) scale(.75); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(-50%) scale(1.18); opacity: 0; } }
.alarm-character { position: relative; width: 105px; height: 113px; margin: -20px auto -5px; filter: drop-shadow(0 12px 18px rgba(138, 113, 139, .15)); animation: characterWake 2s ease-in-out infinite; }
.alarm-character svg { width: 100%; height: 100%; }
@keyframes characterWake { 50% { transform: translateY(-4px) rotate(-2deg); } }
.alarm-live { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; color: #b2768e; font-size: 8px; font-weight: 700; border-radius: 99px; background: #ffeaf2; }
.alarm-live i { width: 5px; height: 5px; border-radius: 50%; background: #e88daa; animation: pulseDot 1.2s infinite; }
.alarm-clock { margin-top: 9px; color: #bf7e99; font: 600 42px/1.2 "Avenir Next", sans-serif; letter-spacing: 1.5px; }
.alarm-card h2 { margin: 8px 0 6px; color: #515061; font-family: "STKaiti", "KaiTi", serif; font-size: 23px; }
.alarm-card > p { max-width: 300px; margin: 0 auto; color: #9a939e; font-size: 10px; line-height: 1.7; }
.alarm-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; margin-top: 21px; }
.alarm-actions .primary-button, .alarm-actions .ghost-button { min-height: 44px; padding: 0 12px; font-size: 9.5px; }
.alarm-dismiss { margin-top: 13px; padding: 5px; color: #aba4ac; font-size: 9px; background: transparent; }
.exit-preview { position: fixed; inset: 0; z-index: 250; padding: 30px; display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at 20% 15%, #53445c, transparent 45%), radial-gradient(circle at 80% 80%, #2c4b61, transparent 46%), #1c1c28; overflow: hidden; }
.exit-preview::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 0.7px, transparent 0.7px); background-size: 18px 18px; }
.exit-preview-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; }
.exit-preview-top h2 { margin: 8px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 28px; }
.exit-preview .live-chip { color: rgba(255, 255, 255, .6); }
.exit-preview-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.exit-time { font: 300 clamp(70px, 14vw, 130px)/1 "Avenir Next", sans-serif; letter-spacing: -4px; color: rgba(255, 255, 255, .9); }
.exit-preview-stage > p { margin: 9px 0 4px; font-family: "STKaiti", "KaiTi", serif; font-size: 21px; }
.exit-preview-stage > span { color: rgba(255, 255, 255, .46); font-size: 10px; }
.exit-companion { position: absolute; right: 2%; top: 27%; display: flex; align-items: flex-start; gap: 3px; }
.exit-bubble { margin-top: 39px; padding: 15px 17px; color: #646075; border-radius: 18px 18px 5px 18px; background: rgba(255, 249, 252, .94); box-shadow: 0 20px 60px rgba(0, 0, 0, .22); animation: bubbleIn .8s .2s var(--ease) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(20px); } }
.exit-bubble strong { display: block; margin-bottom: 3px; color: #a46e84; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; }
.exit-bubble span { display: block; max-width: 150px; color: #8f8793; font-size: 8.5px; }
.exit-character { width: 156px; height: 174px; margin-right: -38px; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .24)); animation: exitSwing 4.5s ease-in-out infinite; transform-origin: 50% 0; }
.exit-character svg { width: 100%; height: 100%; }
@keyframes exitSwing { 0%, 100% { transform: rotate(1.5deg); } 50% { transform: rotate(-2deg); } }
.exit-edge { position: absolute; right: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.exit-preview-bottom { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.exit-preview-bottom p { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, .43); font-size: 9px; }
.exit-preview-bottom svg { width: 13px; height: 13px; }
.exit-preview-bottom .primary-button { flex: 0 0 auto; }
.glass { color: #fff; }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 30px; display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: min(420px, calc(100% - 40px)); padding: 11px 15px; color: #676273; border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 50px rgba(73, 76, 105, .18); backdrop-filter: blur(16px); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast > span { color: #d88ba8; font-size: 15px; }
.toast p { margin: 0; font-size: 10px; line-height: 1.5; }

@media (max-width: 1260px) {
  :root { --sidebar: 218px; }
  .main { padding-left: 25px; padding-right: 25px; }
  .hero-copy h2 { font-size: 29px; }
  .hero-art { flex-basis: 345px; transform: scale(.94); transform-origin: right center; }
  .hero-copy p { max-width: 430px; }
}
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 25px 12px 18px; align-items: center; }
  .brand { margin: 0 0 24px; }
  .brand-copy, .new-task-button > span:nth-child(2), .new-task-button kbd, .nav-label, .nav-item span:not(.beta), .nav-item small, .nav-dot, .sidebar-note, .profile-copy, .profile-card > svg { display: none; }
  .new-task-button { width: 52px; justify-content: center; padding: 8px; }
  .new-task-icon { width: 34px; height: 34px; }
  .side-nav { width: 100%; margin-top: 18px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item .beta { display: none; }
  .nav-item svg { width: 19px; height: 19px; }
  .profile-card { justify-content: center; padding: 6px; }
}
@media (max-width: 980px) {
  .app-shell { display: block; width: min(100% - 20px, 850px); margin: 10px auto 92px; border-radius: 28px; min-height: calc(100vh - 110px); }
  .sidebar { display: none; }
  .main { padding: 20px 22px 22px; }
  .mobile-nav { position: fixed; z-index: 120; left: 50%; bottom: max(13px, env(safe-area-inset-bottom)); width: min(430px, calc(100% - 26px)); height: 65px; padding: 7px 11px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; background: rgba(255, 255, 255, .87); box-shadow: 0 15px 45px rgba(89, 91, 119, .18); backdrop-filter: blur(18px); transform: translateX(-50%); }
  .mobile-nav button { height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a7a0aa; font-size: 8px; border-radius: 14px; background: transparent; }
  .mobile-nav button.active { color: #b97590; background: #fff0f5; }
  .mobile-nav svg { width: 18px; height: 18px; }
  .mobile-nav .mobile-add { width: 46px; height: 46px; margin: -23px auto 0; color: #fff; border-radius: 15px; background: linear-gradient(145deg, #eaa1bc, #b7cdec); box-shadow: 0 9px 22px rgba(204, 144, 173, .3); }
  .mobile-nav .mobile-add svg { width: 21px; height: 21px; }
  .mobile-nav .mobile-add span { display: none; }
  .companion-dock { bottom: 88px; }
}
@media (max-width: 820px) {
  .hero-art { flex-basis: 310px; opacity: .92; transform: scale(.88); }
  .content-grid { grid-template-columns: 1fr; }
  .right-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .companion-mini { grid-column: 1 / -1; min-height: 180px; }
  .mini-mascot { right: 16px; }
  .companion-mini p { width: 62%; }
}
@media (max-width: 680px) {
  .app-shell { width: calc(100% - 12px); margin-top: 6px; border-radius: 24px; }
  .main { padding: 17px 14px 20px; }
  .topbar { min-height: 32px; }
  .date-block { font-size: 9.5px; gap: 5px; }
  .date-block svg { width: 13px; height: 13px; }
  .notify-pill { position: relative; width: 34px; height: 34px; padding: 0; justify-content: center; }
  .notify-pill #notifyLabel { display: none; }
  .notify-pill .notify-dot { position: absolute; margin: -21px -20px 0 0; }
  .welcome { margin-top: 18px; align-items: flex-start; }
  .eyebrow { font-size: 9px; }
  .welcome h1 { font-size: 24px; }
  .mood-pill { height: 32px; }
  .mood-pill #moodText, .mood-pill > svg { display: none; }
  .hero-card { min-height: 248px; margin-top: 13px; padding: 24px 20px; display: block; }
  .hero-copy { max-width: 100%; }
  .hero-copy h2 { margin-top: 12px; font-size: 26px; }
  .hero-copy p { max-width: 92%; font-size: 10px; }
  .hero-actions { margin-top: 18px; }
  .hero-art { position: absolute; inset: 0; opacity: .17; pointer-events: none; transform: none; }
  .hero-art .hero-note, .hero-art .hero-clock, .hero-art .art-caption { display: none; }
  .orbit-one { width: 300px; height: 300px; right: -95px; top: 10px; }
  .orbit-two { right: -48px; top: 45px; }
  .content-grid { margin-top: 14px; gap: 13px; }
  .agenda-card { padding: 20px 14px 15px; }
  .filter-row { overflow-x: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .sort-button { display: none; }
  .task-item { grid-template-columns: 43px 25px minmax(0, 1fr) auto; gap: 8px; min-height: 78px; padding-right: 0; }
  .task-time-block::after { left: 38px; }
  .task-time-block span { left: 35px; }
  .task-time-block strong { font-size: 9.5px; }
  .priority-badge { display: none; }
  .task-main h3 { font-size: 11.5px; }
  .task-note-preview { max-width: 150px; }
  .task-actions { opacity: 1; transform: none; }
  .task-action.delete { display: none; }
  .right-rail { grid-template-columns: 1fr; }
  .progress-card, .next-alarm-card { min-height: auto; }
  .companion-mini { min-height: 172px; }
  .app-footer { display: none; }
  .modal-card { padding: 24px 18px; border-radius: 24px; max-height: 88vh; }
  .modal-heading h2, .companion-modal-hero h2, .settings-card h2 { font-size: 21px; }
  .form-row { grid-template-columns: 1fr; }
  .priority-field { grid-template-columns: 1fr; }
  .priority-option span { justify-content: flex-start; padding-left: 13px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .companion-modal-hero { grid-template-columns: 90px 1fr; gap: 8px; padding-right: 15px; }
  .consent-mascot { width: 96px; height: 106px; margin-left: -12px; }
  .consent-list { grid-template-columns: 1fr; }
  .consent-list > div { display: flex; align-items: center; gap: 9px; }
  .consent-list p { margin: 0; }
  .character-choice { grid-template-columns: 1fr 1fr; }
  .alarm-card { padding: 26px 18px 22px; }
  .alarm-clock { font-size: 37px; }
  .alarm-actions { grid-template-columns: 1fr; }
  .exit-preview { padding: 20px 16px; }
  .exit-preview-top h2 { font-size: 24px; }
  .exit-companion { right: -26px; top: 23%; }
  .exit-bubble { padding: 12px 14px; }
  .exit-character { width: 135px; height: 151px; }
  .exit-preview-bottom { flex-direction: column; }
  .exit-preview-bottom .primary-button { width: 100%; }
  .companion-dock { width: 175px; bottom: 87px; }
  .dock-bubble { width: 168px; }
  .dock-character { width: 102px; height: 117px; }
  .dock-cartoon, .dock-photo { width: 102px; height: 117px; }
  .toast { bottom: 91px; }
}
@media (max-width: 390px) {
  .hero-copy h2 { font-size: 23px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions button { flex: 1; white-space: nowrap; }
  .welcome h1 { font-size: 22px; }
  .character-choice { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Daily week navigator */
.week-strip {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  background: rgba(255,255,255,.52); box-shadow: 0 8px 25px rgba(95,103,140,.05);
}
.week-main { flex: 1; min-width: 0; }
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; padding: 0 3px; }
.week-head strong { color: #8e8797; font-size: 9px; letter-spacing: .4px; font-weight: 650; }
.today-jump { padding: 2px 6px; color: #bd7b96; font-size: 8px; border-radius: 99px; background: #ffe9f1; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day {
  position: relative; min-height: 42px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #97909f; border-radius: 11px; background: transparent; transition: .2s var(--ease);
}
.week-day:hover { color: #b16f8b; background: rgba(255,239,245,.7); }
.week-day span { font-size: 7.5px; }
.week-day strong { margin-top: 1px; font: 650 13px/1.2 "Avenir Next", sans-serif; }
.week-day i { position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: #d5c3cc; }
.week-day.has-task i { background: #e7a0ba; }
.week-day.today strong { color: #bd7592; }
.week-day.selected { color: #fff; background: linear-gradient(145deg, #e9a1bb, #bacdeb); box-shadow: 0 7px 15px rgba(205,142,171,.2); }
.week-day.selected strong, .week-day.selected span { color: #fff; }
.week-day.selected i { background: #fff; }
.week-arrow { width: 27px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; color: #b6acb6; border-radius: 9px; background: rgba(255,255,255,.65); }
.week-arrow:hover { color: #bb7894; background: #fff; }
.week-arrow svg { width: 11px; height: 11px; transform: rotate(180deg); }
.week-arrow.next svg { transform: none; }
.repeat-badge { color: #9bb4ca !important; }
@media (max-width: 680px) {
  .week-strip { margin-top: 12px; padding: 8px 6px; gap: 4px; border-radius: 15px; }
  .week-arrow { width: 23px; height: 30px; }
  .week-head { margin-bottom: 3px; }
  .week-day { min-height: 39px; }
  .week-day strong { font-size: 12px; }
}

/* ===== User request refinements ===== */
body { font-size: 16px; }
.auth-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 26px; overflow: hidden; background: radial-gradient(circle at 12% 12%, #ffe0eb, transparent 34%), radial-gradient(circle at 88% 86%, #dceeff, transparent 38%), linear-gradient(145deg, #fbf7fa, #f4f3f9); }
body.authenticated .auth-screen { display: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.auth-orb-a { width: 420px; height: 420px; left: -190px; top: 20%; background: #ffd5e5; }
.auth-orb-b { width: 480px; height: 480px; right: -250px; bottom: -150px; background: #d3e9ff; }
.auth-shell { position: relative; width: min(100%, 980px); min-height: 570px; display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; border-radius: 36px; border: 1px solid rgba(255,255,255,.92); background: rgba(255,255,255,.58); box-shadow: 0 36px 100px rgba(83,93,130,.16); backdrop-filter: blur(24px); }
.auth-copy { position: relative; padding: 45px 48px; background: linear-gradient(145deg, rgba(255,229,239,.9), rgba(232,243,255,.86)); overflow: hidden; }
.auth-copy::after { content: ""; position: absolute; width: 330px; height: 330px; right: -120px; bottom: -170px; border: 1px dashed rgba(255,255,255,.72); border-radius: 50%; }
.auth-brand { margin: 0 0 60px; }
.auth-copy h1 { margin: 18px 0 16px; color: #3b4054; font-family: "STKaiti", "KaiTi", serif; font-size: 46px; line-height: 1.35; letter-spacing: 1px; }
.auth-copy h1 em { color: #c57998; font-style: normal; }
.auth-copy > p { max-width: 400px; margin: 0; color: #827e8d; font-size: 14px; line-height: 1.9; }
.auth-mascot { position: absolute; right: 26px; bottom: -10px; width: 245px; height: 270px; filter: drop-shadow(0 20px 28px rgba(135,119,145,.16)); }
.auth-mascot svg { width: 100%; height: 100%; }
.auth-mascot span { position: absolute; left: -16px; bottom: 58px; padding: 7px 11px; color: #9d7585; font-size: 11px; border-radius: 12px 12px 3px 12px; background: rgba(255,255,255,.8); box-shadow: 0 8px 20px rgba(110,102,130,.1); }
.auth-card { align-self: center; margin: 35px; padding: 38px 34px; border-radius: 28px; background: rgba(255,253,254,.94); box-shadow: 0 20px 60px rgba(92,91,120,.12); }
.auth-hello { display: inline-block; padding: 5px 10px; color: #bd7895; font-size: 11px; border-radius: 99px; background: #ffe9f1; }
.auth-card h2 { margin: 15px 0 8px; color: #464658; font-family: "STKaiti", "KaiTi", serif; font-size: 28px; }
.auth-card > p { margin: 0 0 22px; color: #99929e; font-size: 12px; line-height: 1.7; }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.auth-field span { color: #827d8d; font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; height: 48px; padding: 0 14px; color: #555565; font-size: 15px; border: 1px solid #ebdfe6; border-radius: 14px; background: #fdf9fb; }
.auth-field input:focus { outline: none; border-color: #e8a9c1; box-shadow: 0 0 0 4px rgba(236,165,192,.13); }
.auth-avatar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-avatar-preview { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; color: #ae7189; font-size: 18px; font-weight: 700; border-radius: 18px; background: linear-gradient(145deg,#ffe5ee,#e5f1ff); border: 2px solid #fff; box-shadow: 0 7px 18px rgba(120,110,140,.12); }
.auth-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.auth-avatar-row small { color: #aca5ae; font-size: 9px; }
.auth-submit { height: 50px; font-size: 14px; }
.auth-privacy { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 13px 0 0 !important; color: #aaa3ac !important; font-size: 9px !important; }
.auth-privacy svg { width: 12px; height: 12px; }

.mood-pill { height: 45px; padding: 0 14px 0 8px; gap: 9px; font-size: 13px; }
.mood-pill > span:first-child { width: 34px; height: 34px; font-size: 19px; }
.mood-pill svg { width: 13px; height: 13px; }
.task-main h3 { font-size: 15px; line-height: 1.55; }
.task-meta { margin-top: 7px; font-size: 10.5px; gap: 11px; }
.task-meta svg { width: 12px; height: 12px; }
.task-item { min-height: 91px; }
.task-time-block strong { font-size: 12.5px; }
.priority-badge { font-size: 8.5px; padding: 3px 7px; }
.filter-chip { height: 32px; font-size: 11px; }
.card-heading h2 { font-size: 23px; }
.section-kicker { font-size: 9px; }
.primary-button, .ghost-button { min-height: 44px; font-size: 12.5px; }
.nav-item { font-size: 14.5px; }
.profile-copy strong { font-size: 14px; }
.brand-copy strong { font-size: 21px; }
.eyebrow { font-size: 12.5px; }
.week-day span { font-size: 9px; }
.week-day strong { font-size: 15px; }
.today-jump { font-size: 9px; }
.next-alarm-card h3 { font-size: 18px; }
.alarm-action { font-size: 10px; }
.progress-copy { font-size: 13px; }
.setting-row strong { font-size: 12px; }
.setting-row small { font-size: 9.5px; }

.companion-dock { right: 18px; bottom: 28px; width: 238px; overflow: visible; }
.dock-bubble { width: 220px; margin-right: 10px; }
.dock-character { width: 142px; height: 160px; margin-right: 0; overflow: visible; }
.dock-cartoon, .dock-photo { width: 142px; height: 160px; }
.dock-cartoon svg { width: 100%; height: 100%; overflow: visible; }
.dock-close { right: 34px; }
.dock-heart { right: 25px; top: 44px; }

.alarm-close { position: absolute; right: 17px; top: 17px; z-index: 4; width: 34px; height: 34px; display: grid; place-items: center; color: #9c929d; border-radius: 11px; background: rgba(255,255,255,.72); }
.alarm-close:hover { color: #c16f8c; background: #fff0f5; }
.alarm-close svg { width: 15px; height: 15px; }
.mini-select { max-width: 118px; padding: 7px 8px; color: #9d6f82; font-size: 9.5px; border: 1px solid #f0e1e8; border-radius: 9px; background: #fff4f8; }
.volume-range { width: 108px; accent-color: #df91ae; }
.upload-audio { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.upload-audio svg { width: 11px; height: 11px; }
.upload-audio input { display: none; }

.my-card { width: min(100%, 620px); }
.my-profile { display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "avatar nickname save" "upload nickname save"; gap: 7px 13px; align-items: center; padding: 18px; border-radius: 20px; background: linear-gradient(145deg,#fff2f7,#f1f8ff); }
.my-avatar { grid-area: avatar; width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; color: #b16f88; font-size: 24px; font-weight: 700; border: 3px solid #fff; border-radius: 25px; background: linear-gradient(145deg,#ffe6ef,#dfeeff); box-shadow: 0 10px 24px rgba(111,105,137,.12); }
.my-avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-avatar img:not([src]), .my-avatar img[src=""] { display: none; }
.small-upload { grid-area: upload; justify-self: start; }
.my-nickname { grid-area: nickname; display: flex; flex-direction: column; gap: 5px; }
.my-nickname span { color: #8f8797; font-size: 10px; }
.my-nickname input { height: 40px; padding: 0 11px; color: #5f5a6c; font-size: 14px; border: 1px solid #eadfe6; border-radius: 11px; background: #fff; }
.mini-save { grid-area: save; min-height: 38px; padding: 0 14px; font-size: 11px; }
.my-section { margin-top: 14px; padding: 15px; border: 1px solid #f0e8ed; border-radius: 17px; background: #fffdfd; }
.my-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.my-section-head span { color: #706b7b; font-size: 12px; font-weight: 650; }
.my-section-head small { color: #aaa3ac; font-size: 9px; }
.font-size-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 11px; }
.font-size-options button { height: 38px; color: #99919e; font-size: 12px; border: 1px solid #eee5ea; border-radius: 11px; background: #fdfafb; }
.font-size-options button.active { color: #b36f8b; border-color: #edbfd0; background: #fff0f5; }
.companion-in-mine { position: relative; min-height: 126px; display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; overflow: hidden; background: linear-gradient(145deg,#ffeef4,#edf7ff); }
.my-companion-visual { width: 92px; height: 104px; }
.my-companion-visual svg { width: 100%; height: 100%; }
.companion-in-mine h3 { margin: 4px 0; color: #646071; font-family: "STKaiti","KaiTi",serif; font-size: 20px; }
.companion-in-mine p { margin: 0; color: #99919d; font-size: 10px; line-height: 1.6; }
.quick-links { padding: 6px; }
.quick-links button { width: 100%; min-height: 58px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; color: #766f80; text-align: left; border-radius: 12px; background: transparent; }
.quick-links button:hover { background: #fbf5f8; }
.quick-links button > svg:first-child { width: 20px; height: 20px; color: #bd8299; }
.quick-links button > svg:last-child { width: 13px; height: 13px; margin-left: auto; color: #b5adb7; }
.quick-links button span { display: flex; flex-direction: column; }
.quick-links strong { font-size: 11px; }
.quick-links small { margin-top: 2px; color: #aaa3ab; font-size: 9px; }
.logout-button { display: block; margin: 15px auto 2px; font-size: 11px; }

.focus-intro { margin: -8px 0 15px; color: #98919d; font-size: 11px; line-height: 1.7; }
.focus-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 13px; }
.focus-presets button { height: 38px; color: #9c929e; font-size: 10.5px; border: 1px solid #eee5ea; border-radius: 10px; background: #fdfafb; }
.focus-presets button.active { color: #b36f8b; border-color: #edbfd0; background: #fff0f5; }
.focus-custom { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 13px; border-radius: 13px; background: #fbf7fa; }
.focus-custom span { flex: 1; color: #7f7889; font-size: 11px; }
.focus-custom input { width: 86px; height: 38px; padding: 0 10px; font-size: 14px; border: 1px solid #eadfe6; border-radius: 10px; background: #fff; }
.focus-boundary { display: flex; gap: 9px; padding: 12px; margin-bottom: 14px; border-radius: 13px; background: #f4f8ff; }
.focus-boundary > svg { width: 17px; height: 17px; flex: 0 0 auto; color: #8aa9c5; }
.focus-boundary p { margin: 0; }
.focus-boundary strong { display: block; color: #74808e; font-size: 10px; }
.focus-boundary span { display: block; margin-top: 3px; color: #9ca5af; font-size: 8.5px; line-height: 1.6; }
.focus-lock { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 38%, #67546f, transparent 42%), radial-gradient(circle at 18% 80%, #2f5068, transparent 42%), #1c1b27; overflow: hidden; }
.focus-lock-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(249,173,201,.28), transparent 65%); animation: alarmGlow 4s ease-in-out infinite; }
.focus-lock .live-chip { position: relative; color: rgba(255,255,255,.62); }
.focus-lock-ring { position: relative; width: 188px; height: 188px; margin: 25px 0 13px; display: grid; place-items: center; }
.focus-lock-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-lock-ring circle { fill: none; stroke-width: 7; }
.focus-track { stroke: rgba(255,255,255,.14); }
.focus-progress { stroke: #f3b4ca; stroke-linecap: round; stroke-dasharray: 477.52; stroke-dashoffset: 0; filter: drop-shadow(0 0 9px rgba(243,180,202,.55)); transition: stroke-dashoffset .5s linear; }
.focus-lock-ring strong { color: rgba(255,255,255,.94); font: 300 46px/1 "Avenir Next",sans-serif; letter-spacing: 1px; }
.focus-lock h2 { position: relative; margin: 5px 0 8px; font-family: "STKaiti","KaiTi",serif; font-size: 30px; }
.focus-lock > p { position: relative; max-width: 320px; margin: 0; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.8; }
.focus-abort { position: relative; margin-top: 26px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.focus-lock-note { position: absolute; bottom: 28px; color: rgba(255,255,255,.35); font-size: 9px; }

/* User-selectable text scale */
body[data-font-size="normal"] .task-main h3 { font-size: 14px; }
body[data-font-size="normal"] .task-meta { font-size: 9.5px; }
body[data-font-size="xlarge"] .task-main h3 { font-size: 17px; }
body[data-font-size="xlarge"] .task-meta { font-size: 12px; }
body[data-font-size="xlarge"] .nav-item, body[data-font-size="xlarge"] .mobile-nav button { font-size: 15.5px; }
body[data-font-size="xlarge"] .card-heading h2 { font-size: 25px; }
body[data-font-size="xlarge"] .primary-button, body[data-font-size="xlarge"] .ghost-button { font-size: 14px; }

@media (max-width: 980px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .app-shell { height: calc(100dvh - 92px); min-height: 0; overflow: hidden; }
  .main { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
  .topbar { flex: 0 0 auto; }
  .weekly, .week-strip, .welcome, .hero-card, .content-grid { flex-shrink: 0; }
  body[data-mobile-view="today"] .content-grid { display: none; }
  body[data-mobile-view="tasks"] .welcome,
  body[data-mobile-view="tasks"] .week-strip,
  body[data-mobile-view="tasks"] .hero-card,
  body[data-mobile-view="tasks"] .right-rail,
  body[data-mobile-view="tasks"] .app-footer,
  body[data-mobile-view="alarms"] .welcome,
  body[data-mobile-view="alarms"] .week-strip,
  body[data-mobile-view="alarms"] .hero-card,
  body[data-mobile-view="alarms"] .agenda-card,
  body[data-mobile-view="alarms"] .app-footer { display: none; }
  body[data-mobile-view="tasks"] .content-grid,
  body[data-mobile-view="alarms"] .content-grid { flex: 1; min-height: 0; display: block; margin-top: 8px; overflow: hidden; }
  body[data-mobile-view="tasks"] .agenda-card { height: 100%; display: flex; flex-direction: column; }
  body[data-mobile-view="tasks"] .task-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body[data-mobile-view="alarms"] .right-rail { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  body[data-mobile-view="alarms"] .companion-mini { display: none; }
  .auth-screen { padding: 10px; overflow-y: auto; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; width: min(100%, 520px); border-radius: 28px; }
  .auth-copy { min-height: 210px; padding: 28px 25px; }
  .auth-brand { margin-bottom: 22px; }
  .auth-copy h1 { font-size: 30px; margin-top: 12px; }
  .auth-copy > p { max-width: 62%; font-size: 11px; }
  .auth-mascot { width: 145px; height: 160px; right: 10px; bottom: -10px; }
  .auth-mascot span { display: none; }
  .auth-card { margin: 0; padding: 25px 22px; border-radius: 0 0 28px 28px; }
  .my-profile { grid-template-columns: 64px 1fr auto; }
  .my-avatar { width: 64px; height: 64px; }
  .companion-in-mine { grid-template-columns: 74px 1fr; }
  .my-companion-visual { width: 74px; height: 86px; }
  .companion-in-mine .setting-button { grid-column: 2; justify-self: start; }
  .focus-presets { grid-template-columns: repeat(2,1fr); }
  .companion-dock { right: 8px; width: 210px; bottom: 88px; }
  .dock-character, .dock-cartoon, .dock-photo { width: 126px; height: 143px; }
  .dock-bubble { width: 190px; }
}
@media (max-width: 680px) {
  .mood-pill > span:first-child { width: 30px; height: 30px; font-size: 17px; }
  .task-main h3 { font-size: 15px; }
  .task-meta { font-size: 10px; }
  .my-card { max-height: 88vh; overflow-y: auto; }
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (max-width: 980px) {
  .main { padding-bottom: 8px !important; }
  .topbar { margin-bottom: 2px; }
  .welcome { margin-top: 10px; }
  .hero-card { margin-top: 10px; }
  body[data-mobile-view="today"] .app-footer { display: none; }
  body[data-mobile-view="tasks"] .topbar { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
}

/* Mobile page consistency and full text scaling */
body[data-font-size="normal"] { --font-scale: .96; }
body[data-font-size="large"] { --font-scale: 1.08; }
body[data-font-size="xlarge"] { --font-scale: 1.2; }
body[data-font-size] :where(.welcome h1, .hero-copy h2, .hero-copy p, .hero-label, .card-heading h2, .section-kicker, .filter-chip, .task-main h3, .task-meta, .task-time-block strong, .priority-badge, .next-alarm-card h3, .next-time-row strong, .progress-copy, .progress-center strong, .mood-pill, .week-day span, .week-day strong, .setting-row strong, .setting-row small, .form-field > span, .form-field input, .form-field textarea, .form-field select, .modal-heading h2, .alarm-card h2, .alarm-card > p, .auth-card h2, .auth-card > p, .my-section-head span, .my-section-head small, .font-size-options button, .companion-in-mine h3, .companion-in-mine p, .quick-links strong, .quick-links small) { }
body[data-font-size] .welcome h1 { font-size: calc(29px * var(--font-scale)); }
body[data-font-size] .hero-copy h2 { font-size: calc(28px * var(--font-scale)); }
body[data-font-size] .hero-copy p { font-size: calc(12px * var(--font-scale)); }
body[data-font-size] .hero-label { font-size: calc(10.5px * var(--font-scale)); }
body[data-font-size] .card-heading h2 { font-size: calc(21px * var(--font-scale)); }
body[data-font-size] .section-kicker { font-size: calc(8.5px * var(--font-scale)); }
body[data-font-size] .filter-chip { font-size: calc(10.5px * var(--font-scale)); }
body[data-font-size] .task-main h3 { font-size: calc(14px * var(--font-scale)); }
body[data-font-size] .task-meta { font-size: calc(10px * var(--font-scale)); }
body[data-font-size] .task-time-block strong { font-size: calc(11.5px * var(--font-scale)); }
body[data-font-size] .priority-badge { font-size: calc(8px * var(--font-scale)); }
body[data-font-size] .next-alarm-card h3 { font-size: calc(17px * var(--font-scale)); }
body[data-font-size] .next-time-row strong { font-size: calc(23px * var(--font-scale)); }
body[data-font-size] .progress-copy { font-size: calc(12px * var(--font-scale)); }
body[data-font-size] .progress-center strong { font-size: calc(26px * var(--font-scale)); }
body[data-font-size] .mood-pill { font-size: calc(12px * var(--font-scale)); }
body[data-font-size] .week-day span { font-size: calc(8px * var(--font-scale)); }
body[data-font-size] .week-day strong { font-size: calc(14px * var(--font-scale)); }
body[data-font-size] .setting-row strong { font-size: calc(11px * var(--font-scale)); }
body[data-font-size] .setting-row small { font-size: calc(8.5px * var(--font-scale)); }
body[data-font-size] .form-field > span { font-size: calc(9.5px * var(--font-scale)); }
body[data-font-size] .form-field input,
body[data-font-size] .form-field textarea,
body[data-font-size] .form-field select { font-size: calc(12px * var(--font-scale)); }
body[data-font-size] .modal-heading h2 { font-size: calc(23px * var(--font-scale)); }
body[data-font-size] .alarm-card h2 { font-size: calc(22px * var(--font-scale)); }
body[data-font-size] .alarm-card > p { font-size: calc(10px * var(--font-scale)); }
body[data-font-size] .font-size-options button { font-size: calc(11.5px * var(--font-scale)); }
body[data-font-size] .quick-links strong { font-size: calc(11px * var(--font-scale)); }
body[data-font-size] .quick-links small { font-size: calc(9px * var(--font-scale)); }

@media (max-width: 980px) {
  #myModal.modal-layer {
    position: fixed; inset: 0 6px 76px 6px; z-index: 110 !important; padding: 0;
    display: grid; place-items: stretch; background: transparent; backdrop-filter: none;
  }
  #myModal .modal-backdrop { display: none; }
  #myModal .my-card {
    width: 100%; height: 100%; max-height: none; margin: 0; padding: 17px 14px 10px;
    display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
    border: 1px solid rgba(255,255,255,.92); box-shadow: 0 22px 60px rgba(80,88,123,.16);
  }
  #myModal .modal-heading { flex: 0 0 auto; margin-bottom: 9px; }
  #myModal .modal-close { right: 14px; top: 13px; }
  #myModal .my-profile { flex: 0 0 auto; grid-template-columns: 62px 1fr auto; grid-template-areas: "avatar nickname save" "upload nickname save"; padding: 11px; }
  #myModal .my-avatar { width: 62px; height: 62px; border-radius: 20px; }
  #myModal .my-nickname input { height: 36px; }
  #myModal .my-section { flex: 0 0 auto; margin-top: 8px; padding: 10px; }
  #myModal .my-section-head small { display: none; }
  #myModal .font-size-options { margin-top: 7px; }
  #myModal .font-size-options button { height: 34px; }
  #myModal .companion-in-mine { min-height: 92px; grid-template-columns: 66px 1fr auto; }
  #myModal .my-companion-visual { width: 66px; height: 78px; }
  #myModal .companion-in-mine h3 { margin: 2px 0; font-size: 18px; }
  #myModal .companion-in-mine .setting-button { grid-column: auto; justify-self: end; }
  #myModal .quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  #myModal .quick-links button { min-height: 48px; padding: 7px; }
  #myModal .quick-links button > svg:last-child { display: none; }
  #myModal .logout-button { margin-top: auto; }
  body[data-mobile-view="alarms"] .content-grid { overflow: visible !important; }
  body[data-mobile-view="alarms"] .right-rail {
    height: auto; max-height: 100%; overflow-y: auto !important; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-right: 2px;
  }
  body[data-mobile-view="alarms"] .main { overflow: hidden; }
}
.alarm-list-card { padding: 16px 18px; }
.alarm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.alarm-list-head h2 { font-size: calc(18px * var(--font-scale, 1)); }
.alarm-list-head h2 span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; color: #bd7895; font-size: 9px; border-radius: 99px; background: #ffe9f1; }
.alarm-list-rows { display: flex; flex-direction: column; gap: 4px; }
.alarm-list-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 5px; border-bottom: 1px dashed var(--line); }
.alarm-list-row:last-child { border-bottom: 0; }
.alarm-list-row strong { color: #bc7894; font: 650 11px/1.2 "Avenir Next",sans-serif; }
.alarm-list-row span { min-width: 0; color: #77717e; font-size: calc(10px * var(--font-scale, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm-list-row small { color: #aaa3ac; font-size: 8px; }
.alarm-list-empty { padding: 14px 4px; color: #aaa3ac; font-size: 9px; text-align: center; }
@media (max-width: 980px) { body[data-mobile-view="alarms"] .right-rail { padding-bottom: 12px; } }

@media (max-width: 980px) {
  body[data-mobile-view="alarms"] .right-rail > .card { flex: 0 0 auto; }
}
