:root {
  --ink: #2a3a34;
  --muted: rgba(42, 58, 52, .6);
  --canvas: #eef3f0;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --line: rgba(42, 58, 52, .09);
  --shadow: 0 1px 2px rgba(42,58,52,.04), 0 8px 24px rgba(42,58,52,.06);
  --accent: #5a8a6a;
  --accent-soft: #e8f0ea;
  --accent-dark: #3d6a52;
  --success: #5a8a6a;
  --danger: #c2553f;
  --warning: #b08a3e;
  font-family: "IBM Plex Sans", "Microsoft YaHei", "微软雅黑", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  margin: 0; min-width: 320px; min-height: 100vh;
  background: url("assets/bg-photo.jpg") center / cover no-repeat fixed, var(--canvas);
  color: var(--ink);
}
body::before { content: ""; position: fixed; inset: 0; background: rgba(255,255,255,.62); pointer-events: none; z-index: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 30%, white); outline-offset: 2px; }

.app-shell { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 204px; padding: 32px 16px 24px; color: #f5f2ec; display: flex; flex-direction: column; z-index: 6; border-right: 1px solid rgba(255,255,255,.12); background: url("assets/bg-photo.jpg") center / cover no-repeat fixed; }
.sidebar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,38,.62) 0%, rgba(20,30,48,.55) 55%, rgba(10,16,28,.70) 100%); z-index: -1; }
.brand { display: block; padding: 0 12px 40px; }
.brand strong { display: block; letter-spacing: .16em; font-size: 16px; color: #fff; font-weight: 400; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.brand small { display: block; color: rgba(255,255,255,.6); font-size: 10px; margin-top: 6px; letter-spacing: .28em; }
.main-nav { display: grid; gap: 4px; margin-bottom: 22px; }
.nav-item { position: relative; border: 0; border-radius: 10px; display: flex; align-items: center; width: 100%; gap: 10px; padding: 12px 14px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.05); font-size: 13px; letter-spacing: .06em; text-align: left; transition: .16s ease; border: 1px solid rgba(255,255,255,.08); }
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 500; border-color: rgba(255,255,255,.22); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 20px; background: #d8c9b4; border-radius: 0 3px 3px 0; }
.nav-item > span:first-child { font-size: 13px; }
.nav-item i, .nav-item b { font-style: normal; font-weight: 500; margin-left: auto; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .08em; }
.nav-item b { display: none; min-width: 18px; padding: 2px 5px; text-align: center; border-radius: 999px; background: var(--danger); color: white; }
/* 次导航(想法/提醒): 与主导航明显区分——更小、无边框、顶部有分隔线 */
.secondary-nav { margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.secondary-nav .nav-item { background: transparent; border: 0; padding: 9px 14px; color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .1em; }
.secondary-nav .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.secondary-nav .nav-item.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 500; }
.sidebar-tip { border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 14px; margin: auto 5px 0; background: rgba(255,255,255,.08); }
.sidebar-tip span { color: #e8ddcd; font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.sidebar-tip p { margin: 7px 0 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.7; }

.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 58px; padding: 0 clamp(28px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent; background: rgba(248,246,241,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 4; }
.crumb { display: grid; gap: 2px; }
.crumb span { color: var(--muted); font-size: 13px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.crumb strong { font-size: 13px; font-weight: 600; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.quiet-btn, .bell-button { position: relative; border: 1px solid var(--line); height: 35px; border-radius: 10px; background: var(--surface); color: var(--muted); padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.quiet-btn:hover, .bell-button:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.bell-button { justify-content: center; width: 38px; padding: 0; font-size: 15px; }
.bell-button em { position: absolute; display: none; min-width: 16px; height: 16px; padding: 0 4px; place-items: center; right: -6px; top: -7px; border-radius: 999px; background: var(--danger); border: 2px solid white; color: white; font-size: 9px; font-style: normal; font-weight: 700; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 13px; background: var(--accent); }
.mobile-brand, .mobile-nav { display: none; }

.page-heading { padding: 64px clamp(28px, 5vw, 72px) 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading .eyebrow { color: var(--accent); letter-spacing: .22em; font-size: 11px; font-weight: 500; text-transform: uppercase; }
.page-heading h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: .04em; line-height: 1.15; font-weight: 300; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.page-heading p { color: var(--muted); margin: 0; font-size: 14px; letter-spacing: .12em; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill { color: #3d6a52; background: var(--accent-soft); padding: 7px 13px; border-radius: 999px; font-size: 13px; white-space: nowrap; font-weight: 600; }

.dashboard { padding: 0 clamp(28px, 5vw, 72px) 60px; max-width: 1560px; }
.overview-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 20px; margin-bottom: 36px; }
.overview-card { min-height: 132px; border-radius: 18px; padding: 26px 28px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.6); box-shadow: none; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.overview-card.hero { color: var(--ink); border: 0; position: relative; overflow: hidden; background: rgba(241,236,228,.78); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.overview-card.hero::after { content: ""; position: absolute; right: -30px; bottom: -80px; height: 200px; width: 200px; background: radial-gradient(circle, rgba(90,138,106,.12) 0 25%, transparent 26% 45%, rgba(90,138,106,.06) 46% 50%, transparent 51%); }
.overview-card .metric { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.overview-card.hero .metric { color: var(--muted); }
.overview-card h3 { margin: 12px 0 6px; font-size: 26px; line-height: 1.22; letter-spacing: -.03em; }
.overview-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.overview-card.hero p { color: var(--muted); max-width: 85%; }
.metric-row { display: flex; gap: 10px; align-items: baseline; margin: 10px 0 8px; }
.metric-row strong { font-size: 32px; letter-spacing: -.05em; }
.metric-row span { color: var(--success); font-size: 12px; font-weight: 600; }

.section-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 46px 0 22px; }
.section-bar h2 { margin: 0; font-size: 18px; letter-spacing: .1em; font-weight: 400; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.section-bar .section-note { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: .08em; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
/* 今日任务区 */
.work-today { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 20px; margin-bottom: 20px; }
.today-hero { border-radius: 18px; padding: 26px 28px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left; width: 100%; color: inherit; font: inherit; }
.today-hero.clickable { cursor: pointer; transition: .16s ease; }
.today-hero.clickable:hover { background: rgba(255,255,255,.92); border-color: rgba(90,138,106,.25); transform: translateY(-1px); }
.today-hero.clickable:active { transform: translateY(0); }
.today-hero.done { background: rgba(236,242,233,.85); cursor: pointer; transition: .16s ease; }
.today-hero.done:hover { background: rgba(255,255,255,.95); border-color: rgba(90,138,106,.25); }
.today-hint { font-size: 11px; color: var(--accent-dark); margin-top: 2px; }
.today-data { font-size: 12.5px; color: var(--ink); line-height: 1.7; }
.today-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.today-summary { margin: 0; font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-note { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 3px; letter-spacing: .02em; }
/* 日历 */
.calendar-card { border-radius: 20px; padding: 22px 24px; background: linear-gradient(180deg, rgba(255,253,248,.72), rgba(255,255,255,.58)); border: 1.5px solid rgba(90,138,106,.18); backdrop-filter: blur(14px); margin-bottom: 8px; box-shadow: 0 6px 28px rgba(42,58,52,.08); }
.calendar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(90,138,106,.16); }
.calendar-head strong { font-size: 20px; font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.calendar-head span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.cal-sticker { font-size: 16px; display: inline-block; }
.cal-deco { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; font-size: 13px; opacity: .55; }
.cal-deco span { display: inline-block; animation: floaty 3.2s ease-in-out infinite; }
.cal-deco span:nth-child(2) { animation-delay: .4s; }
.cal-deco span:nth-child(3) { animation-delay: .8s; }
.cal-deco span:nth-child(4) { animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-weekday { text-align: center; font-size: 12px; color: #5a7a6a; padding: 4px 0; letter-spacing: .12em; font-weight: 600; background: rgba(96,144,192,.12); border-radius: 8px; margin-bottom: 4px; }
.cal-weekday.we { color: #3d6a52; background: rgba(72,96,48,.14); }
.cal-cell { border: 1px solid rgba(96,144,192,.18); border-radius: 11px; min-height: 76px; padding: 6px 7px; background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; cursor: pointer; transition: .16s ease; text-align: left; position: relative; }
.cal-cell:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(72,96,48,.15); }
.cal-cell.empty { background: transparent; cursor: default; border: 0; }
.cal-cell.today { background: linear-gradient(150deg, rgba(96,144,192,.30), rgba(72,96,48,.14)); }
.cal-cell.has-events { background: rgba(255,255,255,.75); }
.cal-day { font-size: 13.5px; color: #3d5a4a; font-weight: 600; }
.cal-cell.today .cal-day { color: #1d4a6a; }
.cal-event { display: block; font-size: 11.5px; color: #2f5a4a; background: rgba(72,96,48,.15); border-radius: 7px; padding: 2px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; font-weight: 500; }
.cal-event.sport { background: rgba(72,120,72,.18); color: #2f5a35; }
.cal-event.dine { background: rgba(96,144,192,.18); color: #1d4a6a; }
.cal-event.show { background: rgba(120,144,192,.18); color: #2f4a6a; }
.cal-event.other { background: rgba(96,120,80,.15); color: #3d5a3a; }
.cal-icons { font-size: 12px; line-height: 1.2; }
/* 日期事件管理弹窗 */
.day-events-list { display: grid; gap: 10px; margin-bottom: 18px; }
.day-event-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(90,138,106,.06); border: 1px solid rgba(90,138,106,.10); }
.day-event-icon { font-size: 20px; }
.day-event-info { flex: 1; min-width: 0; }
.day-event-info strong { font-size: 14px; color: var(--ink); display: block; }
.day-event-info p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.day-event-actions { display: flex; gap: 6px; }
.today-label { font-size: 11px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.today-hero strong { font-size: 26px; font-weight: 400; letter-spacing: .02em; color: var(--ink); }
.today-hero p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.today-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.today-stat { border-radius: 16px; padding: 20px 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.today-stat span { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.today-stat strong { font-size: 22px; font-weight: 400; color: var(--ink); letter-spacing: .02em; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.module-card { min-width: 0; overflow: hidden; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.6); box-shadow: none; border-radius: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.module-card.wide { grid-column: span 2; }
.card-head { display: flex; gap: 12px; padding: 22px 24px 16px; align-items: center; }
.module-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); font-size: 17px; flex: 0 0 auto; }
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 14px; letter-spacing: .06em; margin: 1px 0 5px; font-weight: 500; }
.card-title p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; letter-spacing: .05em; margin: 0; }
.icon-button { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--accent); font-size: 18px; line-height: 1; }
.icon-button:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.card-content { border-top: 1px solid rgba(42,58,52,.08); }
.record-list { display: grid; }
.record-row { display: flex; align-items: center; gap: 10px; padding: 12px 17px; min-width: 0; border-bottom: 1px solid rgba(42,58,52,.08); }
.record-row.is-today { background: linear-gradient(90deg, rgba(96,144,192,.28), rgba(96,144,192,.10)); }
.record-row.is-today .record-title { color: #1d4a6a; font-weight: 600; }
.record-row:last-child { border-bottom: 0; }
.record-row:hover { background: rgba(42,58,52,.04); }
.record-main { flex: 1; min-width: 0; }
.record-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: .03em; }
.record-meta { color: var(--muted); font-size: 12px; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 400; letter-spacing: .04em; }
.record-actions { display: flex; opacity: 0; transition: .15s; }
.record-row:hover .record-actions, .record-row:focus-within .record-actions { opacity: 1; }
.mini-button { border: 0; padding: 4px 5px; background: transparent; color: #8b877b; font-size: 13px; }
.mini-button:hover { color: var(--accent); }
.mini-button.danger:hover { color: var(--danger); }
.empty-state { padding: 26px 20px 29px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state span { display: block; font-size: 21px; margin-bottom: 6px; }
.card-footer { padding: 10px 17px; border-top: 1px solid rgba(42,58,52,.08); }
.text-button { padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 600; }

.badge { display: inline-block; flex: 0 0 auto; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 7px; color: rgba(42,58,52,.58); background: rgba(42,58,52,.04); border-radius: 999px; font-size: 10px; }
.badge.done, .badge.已完成, .badge.已发, .badge.已用 { background: rgba(90,138,106,.12); color: #3d6a52; }
.badge.priority-高, .badge.爆了, .badge.紧急 { background: rgba(217,96,79,.14); color: #c2554a; }
.badge.priority-中, .badge.待写, .badge.待用 { background: rgba(224,166,60,.16); color: #a87d2d; }
.check-button { width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid #3a4a66; background: rgba(255,255,255,.55); border-radius: 7px; color: white; display: grid; place-items: center; font-size: 11px; }
.check-button.complete { border-color: var(--success); background: var(--success); }

.calendar-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 15px 17px; }
.calendar-day { padding: 8px 4px; min-height: 62px; text-align: center; border-radius: 10px; background: rgba(42,58,52,.04); color: var(--muted); font-size: 10px; }
.calendar-day.today { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.calendar-day strong { display: block; color: var(--ink); font-size: 14px; margin: 3px 0; }
.calendar-day.today strong { color: var(--accent-dark); }
.day-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 1px; background: var(--accent); }
.quick-template { margin: 0 17px 14px; padding: 12px; border-radius: 11px; background: linear-gradient(120deg, rgba(90,138,106,.08), rgba(255,255,255,.5)); color: rgba(42,58,52,.58); font-size: 12px; line-height: 1.6; }
.quick-template strong { color: var(--accent-dark); }
.suggestion-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 17px 15px; }
.suggestion { color: var(--accent-dark); padding: 5px 8px; border-radius: 8px; background: var(--accent-soft); border: 0; font-size: 11px; text-align: left; }
.suggestion:hover { background: var(--accent); color: #fff; }
.chart-wrap { padding: 16px 18px 12px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.chart-title span { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 6px; }
.chart { display: flex; align-items: flex-end; gap: 10px; min-height: 130px; padding-top: 18px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; position: relative; }
.chart-val { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.chart-bar { display: block; width: 70%; max-width: 34px; min-height: 4px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, rgba(90,138,106,.85), rgba(90,138,106,.55)); }
.chart-col.today .chart-bar { background: linear-gradient(180deg, rgba(96,144,192,.95), rgba(96,144,192,.6)); }
.chart-col.max .chart-bar { background: linear-gradient(180deg, rgba(196,130,58,.9), rgba(196,130,58,.55)); }
.chart-col span { font-size: 10px; color: var(--muted); }
.chart-col em { font-style: normal; font-size: 10px; color: rgba(42,58,52,.5); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.legend-today { color: #1d4a6a; }
.legend-max { color: #8a5a1e; }
.chart-empty { padding: 16px 18px 0; color: var(--muted); font-size: 12px; }

.idea-card { padding: 0 17px 15px; }
.idea-goal { margin: 0 0 10px; padding: 10px; border-radius: 10px; color: rgba(42,58,52,.58); background: rgba(42,58,52,.04); font-size: 12px; line-height: 1.55; }
.idea-goal strong { color: var(--ink); }
.steps { display: grid; gap: 7px; }
.steps-editor { margin-top: 20px; }
.steps-editor .section-bar { margin: 0 0 10px; }
#ideaStepsEditor { display: grid; gap: 10px; }
.idea-step-editor { display: grid; grid-template-columns: minmax(0, 1fr) 116px 158px auto; align-items: end; gap: 9px; padding: 11px; border: 1px solid rgba(42,58,52,.14); border-radius: 11px; background: rgba(42,58,52,.04); }
.idea-step-editor .remove-step { padding: 9px 5px; }
.step-row { display: flex; align-items: center; gap: 8px; color: rgba(42,58,52,.58); font-size: 12px; }
.step-row .step-text { flex: 1; }
.step-row.is-done .step-text { color: #5a6c88; text-decoration: line-through; }
.priority { padding: 2px 5px; border-radius: 5px; background: rgba(42,58,52,.04); color: rgba(42,58,52,.58); font-size: 9px; }
.priority.high { color: #c2554a; background: rgba(217,96,79,.14); }

.reminder-tabs { display: flex; gap: 7px; margin-bottom: 15px; }
.filter-tab { padding: 7px 11px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); border-radius: 9px; font-size: 12px; }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.reminder-layout { display: grid; grid-template-columns: 1fr 320px; gap: 17px; }
.reminder-card { min-height: 360px; }
.reminder-time { color: var(--accent); font-size: 11px; font-weight: 700; min-width: 87px; }
.reminder-time.overdue { color: var(--danger); }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: 0 0 auto; }
.guide-card { padding: 22px; background: rgba(42,58,52,.04); color: var(--ink); border: 1px solid var(--line); }
.guide-card h3 { margin: 12px 0 7px; font-size: 17px; }
.guide-card p { margin: 0; color: rgba(42,58,52,.58); font-size: 12px; line-height: 1.8; }
.guide-card .button { margin-top: 17px; background: var(--accent); color: #04121a; }

.button { border: 0; border-radius: 10px; padding: 9px 13px; font-size: 12px; font-weight: 650; transition: .18s ease; }
.button.primary { background: var(--accent); color: #fff; font-weight: 600; box-shadow: none; }
.button.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button.ghost { color: rgba(42,58,52,.58); border: 1px solid var(--line); background: var(--surface); }
.button.ghost:hover { color: var(--accent); border-color: var(--accent); }
.button.danger { color: var(--danger); background: rgba(217,96,79,.10); border: 1px solid rgba(255, 93, 108, .25); }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 16, .72); backdrop-filter: blur(6px); }
.modal-backdrop.hidden, .toast.hidden { display: none; }
.modal { max-height: min(760px, 93vh); overflow: auto; width: min(640px, 100%); border-radius: 20px; background: #ffffff; box-shadow: 0 0 0 1px rgba(42,58,52,.12), 0 24px 70px rgba(0, 0, 0, .6); }
.modal-header { padding: 22px 23px 17px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.modal-header h2, .alert-modal h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.icon-close { border: 0; width: 31px; height: 31px; display: grid; place-items: center; color: rgba(42,58,52,.58); background: rgba(42,58,52,.04); border-radius: 9px; font-size: 22px; line-height: 1; }
.record-form { padding: 19px 23px 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: rgba(42,58,52,.58); font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(42,58,52,.14); border-radius: 9px; color: var(--ink); padding: 9px 10px; background: rgba(255,255,255,.55); font-size: 13px; transition: .15s; }
.field textarea { min-height: 80px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.checkbox-field { display: flex; align-items: center; gap: 8px; padding-top: 26px; }
.field.checkbox-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-hint { margin: 14px 0 0; padding: 10px 11px; color: rgba(42,58,52,.58); background: rgba(42,58,52,.04); border-radius: 9px; font-size: 11px; line-height: 1.6; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.alert-modal { width: min(390px, 100%); padding: 28px; border-radius: 22px; text-align: center; background: #ffffff; box-shadow: 0 0 0 1px rgba(42,58,52,.12), 0 24px 70px rgba(0, 0, 0, .6); }
.alert-icon { width: 48px; height: 48px; margin: 0 auto 13px; display: grid; place-items: center; background: rgba(90,138,106,.10); border-radius: 15px; font-size: 22px; }
.alert-modal p { margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.alert-actions { display: flex; justify-content: center; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 40; max-width: calc(100vw - 30px); transform: translateX(-50%); padding: 10px 14px; border-radius: 10px; color: #fff; background: #2a3a34; box-shadow: 0 8px 25px rgba(42,58,52,.25); font-size: 12px; font-weight: 500; }

.theme-life { --accent: #5a8a6a; --accent-dark: #3d6a52; --accent-soft: rgba(90,138,106,.12); }
.theme-study { --accent: #5a8a6a; --accent-dark: #3d6a52; --accent-soft: rgba(90,138,106,.12); }
.theme-ideas { --accent: #5a8a6a; --accent-dark: #3d6a52; --accent-soft: rgba(90,138,106,.12); }
.theme-reminders { --accent: #5a8a6a; --accent-dark: #3d6a52; --accent-soft: rgba(90,138,106,.12); }

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: 1.2fr 1fr; }
  .overview-card:last-child { grid-column: span 2; }
  .reminder-layout { grid-template-columns: 1fr; }
  .guide-card { min-height: unset; }
}
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { width: 100%; }
  .topbar { height: 61px; padding: 0 16px; }
  .mobile-brand { display: grid; place-items: center; height: 33px; width: 33px; border: 0; color: #04121a; background: var(--accent); border-radius: 10px; font-size: 17px; }
  .crumb { margin-left: 9px; margin-right: auto; }
  .crumb span { font-size: 10px; }
  .crumb strong { font-size: 11px; }
  .topbar-actions { gap: 7px; }
  .quiet-btn { width: 33px; padding: 0; justify-content: center; }
  .desktop-only, .avatar { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; padding: 24px 17px 18px; gap: 13px; }
  .page-heading h1 { font-size: 27px; }
  .heading-actions { justify-content: flex-start; }
  .dashboard { padding: 0 17px 28px; }
  .overview-grid, .module-grid { grid-template-columns: 1fr; gap: 13px; }
  .overview-card:last-child, .module-card.wide { grid-column: span 1; }
  .overview-card { min-height: 120px; }
  .section-bar { margin-top: 23px; }
  .section-bar .section-note { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; height: 63px; padding: 5px 6px 4px; background: rgba(18, 26, 43, .94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; align-content: center; gap: 2px; color: #6b7a6e; border: 0; background: transparent; font-size: 10px; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: var(--accent); font-weight: 700; }
  .record-actions { opacity: 1; }
  .record-row { padding: 11px 13px; }
  .record-meta { max-width: 180px; }
  .calendar-strip { padding: 12px; gap: 3px; }
  .calendar-day { min-height: 56px; padding: 7px 2px; }
  .calendar-day strong { font-size: 12px; }
  .reminder-time { min-width: 70px; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { border-radius: 18px 18px 12px 12px; max-height: 92vh; }
  .modal-header { padding: 18px 18px 14px; }
  .record-form { padding: 16px 18px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .field.full { grid-column: auto; }
  .field.checkbox-field { padding-top: 0; }
  .idea-step-editor { grid-template-columns: 1fr 1fr; }
  .idea-step-editor .field.full { grid-column: 1 / -1; }
  .idea-step-editor .remove-step { justify-self: end; }
}
@media (max-width: 390px) {
  .page-heading p { font-size: 12px; }
  .status-pill { font-size: 11px; }
  .heading-actions .button { padding: 8px 10px; }
}
