/* Weekly Review — a calm academic weekly dashboard */
:root {
  --bg: #f6f4ef;
  --bg-soft: #f1efe8;
  --surface: #fffefb;
  --surface-2: #f7f5ef;
  --surface-3: #f1eee5;
  --ink: #202c27;
  --ink-soft: #44524b;
  --muted: #78827c;
  --muted-2: #9aa29c;
  --line: #e5e1d7;
  --line-strong: #d7d2c6;
  --green: #28594a;
  --green-deep: #1d4438;
  --green-soft: #e8f0ea;
  --green-wash: #f2f6f1;
  --gold: #9b783e;
  --gold-soft: #f4ecdc;
  --rust: #a45d48;
  --rust-soft: #f6e9e3;
  --blue: #4f718f;
  --danger: #a14f47;
  --danger-soft: #f8e9e6;
  --shadow-card: 0 1px 2px rgba(34, 46, 39, .03), 0 12px 34px rgba(34, 46, 39, .045);
  --shadow-float: 0 20px 60px rgba(27, 38, 32, .16), 0 4px 16px rgba(27, 38, 32, .08);
  --radius-card: 17px;
  --radius-small: 10px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: "Segoe UI", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(900px 460px at 85% -8%, rgba(213, 205, 185, .22), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: #d8e4dc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.is-hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
body.modal-open { overflow: hidden; }
.reflect-section { scroll-margin-top: 88px; }
.fatal-error { max-width: 680px; margin: 50px auto; padding: 30px; }
.fatal-error h1 { margin: 6px 0 9px; font-family: var(--font-serif); font-size: 28px; font-weight: 500; }
.fatal-error p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.fatal-error pre { margin-top: 15px; padding: 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 10px; white-space: pre-wrap; }

/* ------------------------------------------------------------------ */
/* Shell and sidebar                                                   */
/* ------------------------------------------------------------------ */

.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f2f0e9 0%, #eeece4 100%);
  border-right: 1px solid var(--line);
  z-index: 50;
  overflow: hidden;
}
.sidebar-brand { padding: 25px 20px 21px; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: var(--green-deep);
  color: #f6f1e2;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  flex: 0 0 auto;
}
.brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-copy strong { font-family: var(--font-serif); font-size: 17px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand-copy span { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
.sidebar-nav-wrap { padding: 3px 13px 0; flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.sidebar-label {
  padding: 8px 11px 9px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.primary-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #59655e;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.nav-link:hover { background: rgba(255, 254, 250, .58); color: var(--ink); }
.nav-link.is-active {
  background: var(--surface);
  border-color: #e2ded4;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(37, 48, 41, .035), 0 7px 18px rgba(37, 48, 41, .035);
}
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green);
}
.nav-link.is-active .nav-icon { color: var(--green); }
.nav-icon { width: 20px; display: inline-flex; justify-content: center; color: #7c857f; flex: 0 0 auto; }
.nav-label { font-size: 13.3px; font-weight: 550; letter-spacing: .005em; }
.nav-kicker { margin-left: auto; color: #a5aaa5; font-size: 8.5px; text-transform: uppercase; letter-spacing: .11em; }
.nav-link.is-active .nav-kicker { color: #9ca49e; }
.sidebar-week { padding: 14px 14px 0; flex: 0 0 auto; }
.sidebar-week-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, .5);
  color: var(--ink-soft);
  transition: background .16s ease, border-color .16s ease;
}
.sidebar-week-card:hover { background: var(--surface); border-color: var(--line-strong); }
.sidebar-week-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 4px; }
.sidebar-week-kicker { font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-week-card strong { font-family: var(--font-serif); font-size: 16px; font-weight: 500; color: var(--ink); }
.sidebar-week-card > span:not(.sidebar-week-top):not(.sidebar-week-stats) { color: var(--muted); font-size: 10.5px; }
.sidebar-week-stats { margin-top: 6px; padding-top: 7px; border-top: 1px dashed #dedacf; font-size: 10px; color: var(--green); }
.sidebar-footer { flex: 0 0 auto; padding: 14px 22px 22px; }
.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .1em;
  color: #7d6338;
  background: #efe4d0;
}
.mode-badge-local { color: #7b847e; background: rgba(255, 255, 255, .42); letter-spacing: .08em; }
.sidebar-data-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 13px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #68746d;
  font-size: 12px;
  text-align: left;
}
.sidebar-data-link:hover { color: var(--green); }
.sidebar-data-link .nav-icon { width: 18px; }
.sidebar-note { margin-top: 6px; color: #99a09b; font-size: 9.7px; line-height: 1.65; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(25, 35, 30, .36);
  backdrop-filter: blur(2px);
}

/* ------------------------------------------------------------------ */
/* Main layout and chrome                                              */
/* ------------------------------------------------------------------ */

.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.demo-banner { background: #f2e6cf; border-bottom: 1px solid #e6d6ba; color: #68522f; }
.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1430px;
  width: 100%;
  margin: 0 auto;
  padding: 9px 36px;
  font-size: 11.8px;
  min-height: 39px;
}
.demo-banner-inner p { flex: 1; }
.demo-banner-inner strong { font-weight: 650; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(123, 93, 46, .23);
  background: rgba(255, 250, 240, .58);
  color: #765b31;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
}
.btn-demo-exit {
  flex: 0 0 auto;
  height: 27px;
  padding: 0 9px;
  border: 1px solid #ccb996;
  border-radius: 6px;
  background: transparent;
  color: #6c5430;
  font-size: 10.5px;
  font-weight: 600;
}
.btn-demo-exit:hover { background: rgba(255, 255, 255, .35); }
.storage-banner { background: var(--danger-soft); border-bottom: 1px solid #eccfc9; color: #763b34; }
.storage-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1430px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 36px;
  font-size: 11.8px;
}
.storage-banner-inner p { flex: 1; }
.storage-banner-inner strong { font-weight: 700; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 10px 36px;
  border-bottom: 1px solid rgba(220, 216, 205, .8);
  background: rgba(246, 244, 239, .88);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}
.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1358px;
  min-height: 46px;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-menu-button { display: none !important; }
.header-route { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.header-kicker { color: var(--muted-2); font-size: 8px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; line-height: 1.2; }
.header-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.header-page-title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.header-mode-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 17px;
  padding: 0 5px;
  border-radius: 3px;
  background: #efe3cc;
  color: #7e6338;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}
.header-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10.6px;
  white-space: nowrap;
  padding: 0 3px;
}
.save-dot { width: 5px; height: 5px; border-radius: 50%; background: #8fa99a; flex: 0 0 auto; }
.save-saving .save-dot { background: #b5945d; animation: pulse-soft 1.1s ease infinite; }
.save-error .save-dot { background: var(--danger); }
.save-error .save-label { color: var(--danger); }
@keyframes pulse-soft { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.week-switcher {
  display: flex;
  align-items: stretch;
  height: 37px;
  background: rgba(255, 254, 250, .8);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
}
.week-arrow {
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.week-arrow:hover { background: var(--surface-2); color: var(--ink); }
.week-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  white-space: nowrap;
}
.week-pill:hover { background: var(--surface-2); }
.week-pill-title { font-size: 11.8px; font-weight: 650; }
.week-pill-range { color: var(--muted); font-size: 10.3px; }
.btn-header-export { height: 35px; padding: 0 11px; }
.header-data-btn { width: 34px; height: 34px; border: 1px solid transparent; }
.header-data-btn:hover { border-color: var(--line); background: var(--surface); }
.main-view {
  width: 100%;
  max-width: 1430px;
  margin: 0 auto;
  padding: 31px 36px 48px;
  flex: 1 0 auto;
}
.view-week, .view-dashboard, .view-goals, .view-history { animation: page-enter .28s ease both; }
@keyframes page-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1430px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 36px 25px;
  color: #979e99;
  font-size: 10.2px;
  letter-spacing: .015em;
}
.boot-loading {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}
.boot-mark { font-family: var(--font-serif); font-size: 31px; color: var(--green); }

/* ------------------------------------------------------------------ */
/* Common components                                                   */
/* ------------------------------------------------------------------ */

.eyebrow {
  color: var(--green);
  font-size: 9.3px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.35;
}
.mini-label {
  display: inline-block;
  color: var(--muted);
  font-size: 8.8px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12.3px;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { color: #fbfaf5; background: var(--green); border-color: var(--green); box-shadow: 0 2px 6px rgba(40, 89, 74, .14); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-secondary { color: var(--ink-soft); background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--ink); border-color: #bdb8aa; background: #fffcf6; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-small { height: 33px; padding: 0 11px; font-size: 11.4px; border-radius: 8px; }
.btn-tiny { height: 28px; padding: 0 9px; font-size: 10.5px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8e423b; border-color: #8e423b; }
.btn-hero {
  height: 39px;
  background: #f1e9d7;
  border-color: #f1e9d7;
  color: #213a31;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.btn-hero:hover { background: #fbf5e7; border-color: #fbf5e7; }
.btn-hero-ghost { height: 39px; background: rgba(255, 255, 255, .035); border-color: rgba(245, 241, 228, .26); color: #e8e2d2; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(245, 241, 228, .46); }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-button:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #ecd7d2; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11.4px;
  font-weight: 600;
  white-space: nowrap;
}
.text-link:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { opacity: .75; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 23px 24px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.card-head h2 { margin-top: 3px; font-family: var(--font-serif); font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }
.card-head-meta { color: var(--muted); font-size: 10.5px; white-space: nowrap; padding-top: 5px; }
.card-lede { color: var(--muted); font-size: 11.7px; line-height: 1.7; }
.card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin: 2px 0 24px; }
.page-head-copy { max-width: 760px; min-width: 0; }
.page-head h1 { margin: 5px 0 7px; font-family: var(--font-serif); font-size: 36px; line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.page-desc { color: var(--muted); font-size: 12.5px; line-height: 1.72; max-width: 690px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.page-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10.4px;
  line-height: 1.65;
}
.page-footnote > p, .page-footnote:not(.goal-footnote) { display: flex; align-items: center; gap: 6px; }
.page-foot-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 10.5px; }
.page-foot-actions a { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 600; }
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11.4px;
  font-weight: 650;
  letter-spacing: .005em;
}
.field-label > span { color: var(--muted-2); font-size: 9.5px; font-weight: 500; }
.field-hint { color: var(--muted); font-size: 10.2px; }
.field-help {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.1px;
  line-height: 1.65;
}
.field-help strong { color: var(--ink-soft); font-weight: 650; }
.text-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fdfcf8;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12.4px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.text-input::placeholder { color: #aeb4ae; }
.text-input:hover { border-color: #c7c1b4; }
.text-input:focus { outline: none; border-color: #7c9a8d; background: #fff; box-shadow: 0 0 0 3px rgba(40, 89, 74, .08); }
.textarea-small { font-size: 11.8px; padding: 9px 11px; }
.select-input {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}
.empty-state {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: #fbfaf6;
}
.empty-state-compact { padding: 14px; }
.empty-state h3 { font-size: 12.4px; font-weight: 650; }
.empty-state p { color: var(--muted); font-size: 10.7px; line-height: 1.65; margin-top: 3px; }
.empty-state > .btn { margin-left: auto; flex: 0 0 auto; }
.empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: #7d897f;
  flex: 0 0 auto;
}
.data-note { display: flex; gap: 6px; color: var(--muted); font-size: 10px; }
.pill-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-pill, .priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 9.4px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.status-completed { color: #2f6653; background: #edf4ef; }
.status-partial { color: #80663b; background: #f7f0e3; }
.status-not_started { color: #748079; background: #f1f2ee; }
.priority-pill { display: inline-flex; height: 19px; padding: 0 6px; border-radius: 4px; font-family: var(--font-sans); font-size: 8.8px; letter-spacing: .04em; }
.priority-p0 { color: #9a543f; background: var(--rust-soft); }
.priority-p1 { color: #86672f; background: var(--gold-soft); }
.priority-p2 { color: #647268; background: #edf1ed; }
.priority-full { font-weight: 500; opacity: .8; }
.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  color: #66736c;
  background: var(--surface-2);
  font-size: 9.2px;
  white-space: nowrap;
}
.domain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--domain-color, #6a7b71);
  flex: 0 0 auto;
}
.delta { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.delta-up { color: #477c65; }
.delta-down { color: #a06452; }
.delta-flat, .delta-muted { color: var(--muted-2); }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  min-width: 220px;
  max-width: 370px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #d9d4c9;
  border-radius: 10px;
  background: #2b3b33;
  color: #f8f4e9;
  box-shadow: var(--shadow-float);
  font-size: 11.4px;
  line-height: 1.6;
  animation: toast-in .2s ease both;
  pointer-events: auto;
}
.toast.is-out { animation: toast-out .22s ease both; }
.toast .icon { margin-top: 1px; color: #d8c79f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(4px); } }
.noscript-warning { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 30px; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Dashboard                                                          */
/* ------------------------------------------------------------------ */

.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  padding: 34px 34px 22px;
  color: #f5f0e2;
  background:
    radial-gradient(780px 380px at 92% -24%, rgba(207, 193, 158, .19), transparent 65%),
    radial-gradient(480px 320px at 3% 120%, rgba(110, 143, 122, .14), transparent 70%),
    linear-gradient(124deg, #254338 0%, #1d372e 58%, #1b3129 100%);
  box-shadow: 0 16px 44px rgba(28, 48, 39, .14);
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -80px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(240, 232, 210, .08);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 0 70px rgba(240, 232, 210, .022), 0 0 0 140px rgba(240, 232, 210, .014);
}
.hero-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.hero-copy { max-width: 700px; min-width: 0; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(237, 231, 213, .6);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-eyebrow > span { display: inline-block; width: 22px; height: 1px; background: rgba(238, 228, 205, .42); }
.hero-card h1 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(43px, 4.3vw, 61px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
  color: #f7f2e3;
}
.hero-card h1 span { color: #e5d6b4; font-style: italic; }
.hero-date { color: rgba(238, 233, 218, .61); font-size: 11.2px; letter-spacing: .015em; }
.hero-date-sep { margin: 0 5px; opacity: .5; }
.hero-lede { margin: 19px 0 23px; max-width: 560px; color: rgba(245, 241, 229, .82); font-size: 13px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-progress-wrap { flex: 0 0 190px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 4px; }
.hero-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    #e0d3b5 0 calc(var(--complete) * 1%),
    #8fae9d calc(var(--complete) * 1%) calc(var(--progress) * 1%),
    rgba(245, 240, 227, .12) calc(var(--progress) * 1%) 100%
  );
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero-ring.is-empty { background: conic-gradient(rgba(245, 240, 227, .12) 0 100%); }
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 227, .12);
  pointer-events: none;
}
.hero-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #20382f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, .12);
}
.hero-ring-inner strong { font-family: var(--font-serif); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.hero-ring-inner span { margin-top: 5px; color: rgba(240, 234, 218, .47); font-size: 8.4px; letter-spacing: .06em; text-align: center; max-width: 80px; line-height: 1.4; }
.hero-ring-legend { display: flex; flex-direction: column; gap: 4px; color: rgba(239, 233, 218, .56); font-size: 9.4px; }
.hero-ring-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b9b6a8; flex: 0 0 auto; }
.legend-done { background: #e0d3b5; }
.legend-partial { background: #8fae9d; }
.legend-empty { background: #dfddd4; }
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 233, 219, .11);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-stat-label { color: rgba(239, 233, 218, .51); font-size: 9.6px; letter-spacing: .02em; }
.hero-stat-label em { font-style: normal; color: rgba(239, 233, 218, .3); font-size: 8.4px; }
.hero-stat strong { color: #f5efe0; font-family: var(--font-serif); font-size: 27px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.hero-stat-sub { color: rgba(239, 233, 218, .39); font-size: 9.5px; min-height: 15px; }
.hero-stat-sub .delta-up, .hero-stat-sub .delta-down { color: rgba(231, 225, 207, .72); }
.hero-stat-sub .delta-muted { color: rgba(239, 233, 218, .3); }
.hero-compare {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px dashed rgba(239, 233, 218, .09);
  color: rgba(239, 233, 218, .47);
  font-size: 9.3px;
}
.hero-compare-label { letter-spacing: .07em; color: rgba(239, 233, 218, .34); margin-right: 3px; }
.hero-compare > span:not(.hero-compare-label) { padding-right: 9px; border-right: 1px solid rgba(239, 233, 218, .1); }
.hero-compare > span:last-child { border-right: 0; }
.hero-compare .delta-up, .hero-compare .delta-down { color: #cdd8c7; }
.hero-compare-muted { color: rgba(239, 233, 218, .37) !important; }
.hero-actions + .btn { margin-top: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 17px; margin-top: 17px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.dashboard-grid > .card { min-width: 0; }
.dashboard-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10.3px;
}
.dashboard-tip .icon { color: #8f9b93; }

.start-card { padding: 27px 28px; }
.start-card h2 { margin: 3px 0 7px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.card-dismiss { position: absolute; top: 14px; right: 14px; }
.start-card .card-lede { max-width: 640px; font-size: 12px; }
.start-steps { list-style: none; padding: 0; margin: 21px 0 22px; border-top: 1px solid var(--line); }
.start-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.start-steps li > span { padding-top: 1px; color: #b5aa90; font-family: var(--font-serif); font-size: 17px; }
.start-steps strong { display: block; font-size: 12.4px; font-weight: 650; margin-bottom: 3px; }
.start-steps p { color: var(--muted); font-size: 10.7px; line-height: 1.65; }
.start-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.start-storage-note { align-items: flex-start; }
.start-storage-note .icon { margin-top: 2px; flex: 0 0 auto; }
.rhythm-card { background: linear-gradient(160deg, #fbfaf5, #f4f1e8); display: flex; flex-direction: column; }
.rhythm-list { margin-top: 13px; display: flex; flex-direction: column; }
.rhythm-item { display: grid; grid-template-columns: 38px 1fr; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rhythm-item:last-child { border-bottom: 0; }
.rhythm-day { height: 21px; padding-top: 0; color: var(--green); font-size: 9px; font-weight: 650; letter-spacing: .05em; }
.rhythm-item strong { display: block; font-size: 11.5px; font-weight: 650; }
.rhythm-item p { margin-top: 3px; color: var(--muted); font-size: 10.3px; line-height: 1.6; }
.rhythm-footnote { display: flex; gap: 9px; margin-top: auto; padding-top: 16px; color: #687970; }
.rhythm-footnote .icon { color: #829d8d; flex: 0 0 auto; }
.rhythm-footnote p { font-family: var(--font-serif); color: #5e6c64; font-size: 11.7px; line-height: 1.65; }

.card-head h2 + p { margin-top: 5px; }
.focus-card .card-lede, .kickoff-card .card-lede { margin-bottom: 9px; }
.focus-list { margin-top: 3px; }
.focus-row { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.focus-row:first-child { border-top: 0; }
.status-toggle, .task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  border: 1px solid #cfd5ce;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  padding: 0;
  transition: background .15s ease, border-color .15s ease;
}
.status-toggle:hover, .task-check:hover { border-color: #7f9a8c; background: #f3f7f3; }
.status-toggle-partial, .task-check-partial { border-color: #b99b61; background: conic-gradient(#b28e4e 0 50%, #fbf7ed 50% 100%); }
.toggle-half { display: none; }
.status-toggle-completed, .task-check-completed { background: var(--green); border-color: var(--green); }
.focus-main { min-width: 0; }
.focus-index { color: #a2a9a3; font-family: var(--font-serif); font-size: 10.5px; letter-spacing: .03em; }
.focus-index span { margin-left: 5px; font-family: var(--font-sans); font-size: 8.4px; letter-spacing: .04em; }
.focus-main h3 { margin: 2px 0 3px; font-size: 13.2px; font-weight: 650; line-height: 1.5; }
.focus-detail { color: var(--muted); font-size: 10.3px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.focus-row.is-complete .focus-main h3 { color: #7f8b84; }
.focus-row.is-complete .focus-detail { color: #a5aba6; }
.focus-side { padding-top: 16px; }
.focus-card .card-foot { justify-content: flex-start; }
.kickoff-card .card-lede { margin-bottom: 14px; }
.leftover-list { display: flex; flex-direction: column; }
.leftover-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.leftover-row:first-child { border-top: 0; }
.leftover-main { min-width: 0; }
.leftover-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.leftover-title-line strong { font-size: 11.8px; font-weight: 620; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leftover-main p { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 9.7px; }
.carried-note { display: inline-flex; align-items: center; gap: 3px; color: #74857b; font-size: 9.5px; white-space: nowrap; }
.kickoff-help { margin-top: 13px; }
.kickoff-empty { display: flex; align-items: flex-start; gap: 9px; padding: 14px; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.kickoff-empty .icon { color: #8d9e92; flex: 0 0 auto; }
.kickoff-empty p { font-size: 10.8px; line-height: 1.7; }
.kickoff-positive .icon { color: #6f9a7e; }
.kickoff-card .card-foot { justify-content: flex-start; }
.domain-card .card-head { margin-bottom: 17px; }
.domain-bars { display: flex; flex-direction: column; gap: 1px; }
.domain-bar-row { padding: 9px 0; border-top: 1px solid #f0ede5; }
.domain-bar-row:first-child { border-top: 0; }
.domain-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.domain-bar-name { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11.1px; font-weight: 600; }
.domain-bar-count { color: var(--muted); font-size: 9.7px; white-space: nowrap; }
.domain-track { position: relative; height: 6px; width: 100%; background: #f0eee7; border-radius: 99px; overflow: hidden; display: flex; }
.domain-track.is-empty { background: #f5f3ed; }
.domain-fill-done { display: block; height: 100%; background: var(--domain-color); opacity: .85; transition: width .4s ease; }
.domain-fill-partial { display: block; height: 100%; background: var(--domain-color); opacity: .3; transition: width .4s ease; }
.domain-bar-detail { display: block; margin-top: 4px; color: #98a09a; font-size: 9.2px; text-align: right; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 9.5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.domain-legend { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.effort-card .card-head { margin-bottom: 14px; }
.effort-field { margin-top: 1px; }
.hours-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  max-width: 170px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fdfcf8;
  padding: 0 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hours-input-wrap:focus-within { border-color: #7c9a8d; box-shadow: 0 0 0 3px rgba(40, 89, 74, .08); }
.hours-input { width: 70px; border: 0; outline: 0; background: transparent; padding: 8px 0; font-family: var(--font-serif); font-size: 19px; color: var(--ink); }
.hours-input::placeholder { font-family: var(--font-sans); font-size: 11px; color: #aeb4ae; }
.hours-input-wrap > span { color: var(--muted); font-size: 10.5px; }
.effort-divider { height: 1px; background: var(--line); margin: 16px 0; }
.rating-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rating-block-head .field-hint { text-align: right; }
.rating-control { margin-top: 10px; }
.rating-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 28px; align-items: center; gap: 8px; min-height: 29px; }
.rating-name { color: var(--ink-soft); font-size: 10.5px; white-space: nowrap; }
.rating-buttons { display: flex; gap: 4px; }
.rating-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #dfdcd4;
  border-radius: 50%;
  background: #fbfaf6;
  color: #9ca49e;
  font-size: 8.5px;
  line-height: 1;
  transition: background .13s ease, border-color .13s ease, color .13s ease, transform .13s ease;
}
.rating-dot:hover { border-color: #9cb3a6; color: var(--green); transform: translateY(-1px); }
.rating-dot.is-filled { background: #dfeae2; border-color: #b9cfc1; color: #527464; }
.rating-dot.is-selected { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 2px #f9f7f1, 0 0 0 3px rgba(40, 89, 74, .25); }
.rating-dot span { pointer-events: none; }
.rating-value { color: #9aa39d; font-size: 9.2px; text-align: right; }
.rating-span-labels { display: grid; grid-template-columns: 72px minmax(0, 1fr) 28px; gap: 8px; margin-top: 3px; color: #a4aaa5; font-size: 8.3px; }
.rating-span-labels span:first-child { grid-column: 1; }
.rating-span-labels span:last-child { grid-column: 2; text-align: right; }
.effort-card .textarea-small { min-height: 58px; margin-top: 7px; resize: vertical; }
.achievement-list { padding: 0; margin: 5px 0 0; list-style: none; }
.achievement-list li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.achievement-list li:first-child { border-top: 0; }
.achievement-list li > span { width: 5px; height: 5px; border-radius: 50%; background: #b1925a; margin-top: 7px; flex: 0 0 auto; }
.achievement-list p { color: var(--ink-soft); font-size: 11.8px; line-height: 1.65; }
.completed-mini { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.completed-mini-title { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 9.4px; font-weight: 650; letter-spacing: .04em; }
.completed-mini-title span { color: #a4aca6; font-weight: 500; }
.completed-mini-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; color: #68766e; font-size: 10.2px; }
.completed-mini-row .icon { color: #7b9c88; flex: 0 0 auto; }
.completed-mini-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.completed-mini-row > em { margin-left: auto; color: #a5aca6; font-size: 8.7px; font-style: normal; white-space: nowrap; }
.self-praise { margin: 15px 0 0; padding: 11px 14px; border-left: 2px solid #b8a477; background: #fbf8f0; border-radius: 0 7px 7px 0; font-family: var(--font-serif); color: #5b635c; font-size: 12.2px; line-height: 1.65; }
.self-praise cite { display: block; margin-top: 5px; color: #9a9f99; font-family: var(--font-sans); font-size: 8.6px; font-style: normal; letter-spacing: .03em; }
.minimum-card { background: linear-gradient(155deg, #fcfbf6, #f3f5ee); border-color: #dfe5d9; display: flex; flex-direction: column; }
.minimum-head { display: flex; align-items: flex-start; gap: 11px; }
.minimum-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e7eee3; color: #6d8c76; flex: 0 0 auto; }
.minimum-head h2 { margin-top: 2px; font-family: var(--font-serif); font-size: 19px; line-height: 1.28; font-weight: 500; }
.minimum-card .card-lede { margin-top: 12px; }
.minimum-input { margin-top: 12px; min-height: 78px; background: rgba(255, 255, 255, .6); border-color: #d6dfd0; font-family: var(--font-serif); font-size: 12.4px; }
.minimum-foot { display: flex; gap: 7px; margin-top: auto; padding-top: 15px; color: #839187; }
.minimum-foot .icon { flex: 0 0 auto; color: #8aa08b; margin-top: 1px; }
.minimum-foot p { font-size: 10.2px; line-height: 1.65; }
.view-tasks .mini-summary-strip,
.mini-summary-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin: -3px 0 17px; padding: 0 2px; color: var(--muted); font-size: 10.2px; }
.mini-summary-item em { margin-right: 2px; color: var(--ink-soft); font-family: var(--font-serif); font-size: 17px; font-style: normal; }
.mini-summary-sep { height: 15px; width: 1px; background: var(--line-strong); }
.mini-summary-muted { color: #9ba29d; }

/* ------------------------------------------------------------------ */
/* Tasks                                                              */
/* ------------------------------------------------------------------ */

.callout { display: flex; align-items: flex-start; gap: 12px; border-radius: 13px; padding: 15px 17px; border: 1px solid; }
.callout-warning { background: #fcf6ec; border-color: #eadcc1; color: #725c36; }
.callout > .icon { flex: 0 0 auto; margin-top: 1px; color: #a58143; }
.callout strong { display: block; font-size: 12.2px; font-weight: 650; margin-bottom: 4px; }
.callout p { font-size: 10.8px; line-height: 1.7; color: #85704b; }
.task-page-warning { margin-bottom: 16px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px;
  margin-bottom: 17px;
  background: rgba(255, 254, 250, .7);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.search-box { position: relative; display: flex; align-items: center; flex: 1 1 210px; min-width: 180px; max-width: 290px; color: #99a19a; }
.search-box > .icon { position: absolute; left: 10px; pointer-events: none; }
.search-box input {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fbfaf6;
  font-size: 11.3px;
}
.search-box input::placeholder { color: #a9b0aa; }
.search-box input:focus { border-color: #9bb0a4; background: #fff; box-shadow: 0 0 0 3px rgba(40, 89, 74, .06); }
.search-clear { position: absolute; right: 3px; width: 24px; height: 24px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.filter-group + .filter-group { border-left: 1px solid var(--line); padding-left: 9px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #79837d;
  font-size: 10px;
  white-space: nowrap;
}
.filter-chip span { color: #a9aea9; font-size: 8.8px; }
.filter-chip:hover { background: var(--surface-2); color: var(--ink-soft); }
.filter-chip.is-active { background: #edf2ed; border-color: #d2dfd5; color: var(--green); font-weight: 650; }
.filter-chip.is-active span { color: #6e897c; }
.filter-reset { margin-left: auto; }
.task-results { display: flex; flex-direction: column; gap: 16px; }
.domain-group { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-card); }
.domain-group-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 19px; background: #faf8f3; border-bottom: 1px solid var(--line); }
.domain-group-title { display: flex; align-items: center; gap: 10px; }
.domain-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: var(--domain-soft);
  color: var(--domain-color);
  flex: 0 0 auto;
}
.domain-group-title h2 { font-family: var(--font-serif); font-size: 16.5px; font-weight: 500; line-height: 1.25; }
.domain-group-title p { color: #9aa19b; font-size: 8.8px; line-height: 1.4; margin-top: 2px; }
.domain-group-stat { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9.4px; white-space: nowrap; }
.domain-group-stat strong { color: var(--ink-soft); font-weight: 650; }
.mini-track { width: 55px; height: 4px; background: #ece9e1; border-radius: 99px; overflow: hidden; }
.mini-track i { display: block; height: 100%; background: var(--domain-color); opacity: .65; border-radius: 99px; }
.task-list { display: flex; flex-direction: column; }
.task-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 18px 19px; border-top: 1px solid #efede6; }
.task-row:first-child { border-top: 0; }
.task-row.task-completed { background: #fcfcf8; }
.task-check { margin-top: 2px; width: 20px; height: 20px; }
.task-check-completed { background: var(--green); border-color: var(--green); }
.task-main { min-width: 0; }
.task-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.task-title { font-size: 13.4px; font-weight: 650; line-height: 1.5; }
.task-completed .task-title { color: #7a867e; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 9.4px; }
.task-meta-muted { display: inline-flex; align-items: center; gap: 3px; color: #939b95; }
.task-warning-chip { display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px; border-radius: 4px; color: #986442; background: #fbf0e6; font-size: 8.9px; white-space: nowrap; }
.task-targets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 10px 12px; margin-top: 10px; border-radius: 7px; background: #fbfaf6; border: 1px solid #f0ede6; }
.task-target-block span { display: block; margin-bottom: 3px; color: #a0a7a1; font-size: 8.6px; letter-spacing: .02em; }
.task-target-block p { color: #58665e; font-size: 10.5px; line-height: 1.65; white-space: pre-wrap; }
.task-target-block p:empty { color: var(--muted-2); }
.actual-block p { color: #43574c; }
.task-starter, .task-notes, .task-lineage { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; color: #829088; font-size: 9.8px; line-height: 1.65; }
.task-starter .icon { color: #8ea495; margin-top: 2px; }
.task-notes .icon { margin-top: 2px; }
.task-lineage { margin-top: 7px; color: #9ba39c; font-size: 9px; }
.task-lineage .icon { margin-top: 2px; }
.task-starter strong { color: #65746b; font-weight: 650; }
.task-reassess-callout { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; padding: 10px 11px; border: 1px solid #eddfca; border-radius: 7px; background: #fdf8ef; color: #7e6641; }
.task-reassess-callout > .icon { flex: 0 0 auto; margin-top: 1px; color: #b18a4b; }
.task-reassess-callout > div { flex: 1; min-width: 0; }
.task-reassess-callout strong { display: block; font-size: 10.3px; font-weight: 650; }
.task-reassess-callout p { margin-top: 2px; color: #89734e; font-size: 9.5px; line-height: 1.65; }
.task-reassess-callout .btn { flex: 0 0 auto; align-self: center; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 1px; }
.status-select {
  appearance: none;
  -webkit-appearance: none;
  height: 26px;
  padding: 0 23px 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2378837a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  font-size: 9.4px;
  font-weight: 650;
  cursor: pointer;
}
.status-select-completed { color: #2f6653; background-color: #edf4ef; }
.status-select-partial { color: #80663b; background-color: #f7f0e3; }
.status-select-not_started { color: #748079; background-color: #f1f2ee; }
.status-select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.task-actions { display: flex; gap: 1px; }
.task-actions .icon-button { width: 27px; height: 27px; }
.filter-empty { margin-top: 4px; }
.page-footnote .page-foot-actions { display: flex; align-items: center; gap: 14px; }
.page-footnote.page-footnote-simple { justify-content: flex-start; align-items: flex-start; gap: 6px; }
.page-footnote.page-footnote-simple .icon { flex: 0 0 auto; margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Reflection                                                         */
/* ------------------------------------------------------------------ */

.reflection-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 18px; align-items: start; }
.reflection-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reflection-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.reflect-section { padding: 0; overflow: hidden; }
.reflect-section-head { display: flex; gap: 14px; padding: 21px 24px 18px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.section-letter {
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d4c6;
  border-radius: 50%;
  color: #8d7d5a;
  font-family: var(--font-serif);
  font-size: 19px;
  flex: 0 0 auto;
}
.section-letter-leaf { color: #78917f; border-color: #d4dfd4; background: #f3f6ef; }
.reflect-section-head h2 { margin: 2px 0 3px; font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.25; }
.reflect-section-head p:not(.eyebrow) { color: var(--muted); font-size: 10.7px; line-height: 1.65; }
.reflect-section-body { padding: 21px 24px 24px; }
.reflect-question { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed #e6e2d9; }
.reflect-question:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.question-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.question-title > span { color: #b5a786; font-family: var(--font-serif); font-size: 11px; }
.question-title h3 { font-size: 12.8px; font-weight: 650; line-height: 1.5; }
.question-desc { margin: -1px 0 11px 21px; color: var(--muted); font-size: 10.4px; line-height: 1.65; }
.achievement-inputs { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.achievement-input-row { display: flex; align-items: flex-start; gap: 8px; }
.achievement-number { width: 23px; padding-top: 9px; color: #b3a888; font-family: var(--font-serif); font-size: 10px; flex: 0 0 auto; }
.achievement-input-row .text-input { flex: 1; }
.reflect-field { margin-top: 15px; }
.reflect-field .field-help { margin-left: 1px; }
.reflect-question .reflect-field { margin-top: 13px; }
.incomplete-reference { border: 1px solid #ece8dd; border-radius: 8px; background: #fcfbf7; padding: 5px 11px; }
.incomplete-ref-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #f0ede4; }
.incomplete-ref-row:first-child { border-top: 0; }
.incomplete-ref-row > span:not(.status-pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #58665d; font-size: 10.7px; }
.incomplete-ref-row em { margin-left: auto; color: #9ba29c; font-size: 8.8px; font-style: normal; white-space: nowrap; }
.incomplete-empty { padding: 8px 0; color: #909892; font-size: 10.4px; line-height: 1.7; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; }
.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid #e5e1d7;
  border-radius: 99px;
  background: #fbfaf6;
  color: #7a847d;
  font-size: 9.8px;
  transition: background .13s ease, border-color .13s ease, color .13s ease;
}
.reason-chip:hover { border-color: #c5d2c7; color: var(--green); }
.reason-chip.is-selected { background: #edf3ee; border-color: #bfd2c4; color: #366452; font-weight: 600; }
.rating-panel { background: #fbfaf6; border: 1px solid #efebe2; border-radius: 10px; padding: 12px 14px 8px; }
.rating-panel .rating-control { margin-top: 2px; }
.rating-panel .rating-row { min-height: 36px; grid-template-columns: 88px minmax(0, 1fr) 34px; }
.rating-panel .rating-dot { width: 26px; height: 26px; font-size: 9px; }
.rating-panel .rating-name { font-size: 11.3px; }
.reflection-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 4px 2px 0; }
.reflection-bottom-actions > p { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.reflection-bottom-actions > div { display: flex; gap: 7px; }
.reflection-bottom-actions .btn { height: 36px; font-size: 11.5px; }
.minimum-softnote { display: flex; gap: 6px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e0ddd3; color: #7f8c83; font-size: 10.3px; line-height: 1.7; }
.minimum-softnote .icon { flex: 0 0 auto; color: #7f9a84; margin-top: 1px; }
.reflect-status-card { padding: 19px; }
.reflect-progress-head { display: flex; align-items: center; gap: 12px; }
.reflect-progress-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(#3f745e 0 calc(var(--pct) * 1%), #e7ece6 calc(var(--pct) * 1%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
}
.reflect-progress-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.reflect-progress-ring span { position: relative; z-index: 1; color: var(--green); font-family: var(--font-serif); font-size: 17px; }
.reflect-progress-head h2 { font-family: var(--font-serif); font-size: 16px; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.reflect-progress-head p:not(.eyebrow) { margin-top: 3px; color: var(--muted); font-size: 9.7px; line-height: 1.55; }
.reflect-mini-nav { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line); }
.reflect-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border: 0; border-bottom: 1px solid #f0ede6; background: transparent; color: #77837b; font-size: 10.4px; text-align: left; }
.reflect-nav-link:hover { color: var(--green); }
.reflect-nav-link span { color: #adb3ae; }
.autosave-hint { display: flex; align-items: center; gap: 5px; margin-top: 11px; color: #8b978f; font-size: 9.2px; }
.autosave-hint .icon { color: #87a08f; }
.reflect-complete-card { padding: 20px; }
.reviewed-mark { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: 8px; }
.reviewed-mark-empty { background: var(--surface-2); color: #a2aaa3; }
.reflect-complete-card h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.reflect-complete-card > p { margin-top: 5px; color: var(--muted); font-size: 10.4px; line-height: 1.7; }
.reflect-complete-card .btn { margin-top: 13px; }
.reflect-card-links { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.reflect-card-links a, .reflect-card-links button { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 10.2px; font-weight: 600; text-align: left; }
.reflect-card-links a:hover, .reflect-card-links button:hover { text-decoration: underline; text-underline-offset: 3px; }
.reflect-quote { display: flex; gap: 8px; padding: 2px 6px; color: #87948b; }
.reflect-quote .icon { flex: 0 0 auto; margin-top: 2px; color: #9bae9d; }
.reflect-quote p { font-family: var(--font-serif); font-size: 11.2px; line-height: 1.7; }

/* ------------------------------------------------------------------ */
/* Planning                                                           */
/* ------------------------------------------------------------------ */

.plan-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.plan-overview-main { min-width: 0; }
.plan-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.plan-overview-head h2 { margin-top: 3px; font-family: var(--font-serif); font-size: 21px; font-weight: 500; line-height: 1.3; }
.plan-overview-head h2 span { color: var(--muted); font-family: var(--font-sans); font-size: 10px; font-weight: 400; white-space: nowrap; }
.plan-status-pill { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 5px; background: var(--surface-2); color: #8c948e; font-size: 9px; white-space: nowrap; }
.plan-status-pill.has-plan { color: #4f7461; background: #edf3ee; }
.plan-limits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan-limit { display: flex; flex-direction: column; gap: 2px; }
.plan-limit span { color: var(--muted); font-size: 8.9px; white-space: nowrap; }
.plan-limit strong { font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.plan-limit strong em { color: #a6ada7; font-family: var(--font-sans); font-size: 9px; font-style: normal; }
.plan-principle { display: flex; gap: 10px; align-items: flex-start; padding: 15px; border-radius: 11px; background: #f0f4ee; align-self: stretch; }
.plan-principle .icon { flex: 0 0 auto; color: #7c9783; margin-top: 1px; }
.plan-principle strong { font-size: 11.2px; font-weight: 650; color: #4e6758; }
.plan-principle p { margin-top: 4px; color: #7c8e82; font-size: 10px; line-height: 1.65; }
.plan-reflection-cue {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  margin-bottom: 15px;
  border: 1px solid #e4e0d5;
  border-radius: 11px;
  background: #faf8f2;
}
.plan-reflection-cue.is-soft { background: #fbfaf6; }
.plan-cue-mark { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #8d9b8f; background: #eef1e9; flex: 0 0 auto; }
.plan-cue-main { flex: 1; min-width: 0; }
.plan-cue-main p { margin-top: 2px; color: #627068; font-size: 10.5px; line-height: 1.65; }
.plan-cue-main p strong { color: #465a4d; font-weight: 650; }
.plan-carryover { margin-bottom: 15px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
.plan-carryover.is-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.plan-carryover.is-empty p { color: var(--muted); font-size: 10.4px; }
.plan-carryover-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.plan-carryover-head h2 { margin-top: 2px; font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.plan-carryover-head > p { color: var(--muted); font-size: 9.7px; }
.carryover-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.carryover-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #ede9df; border-radius: 8px; background: var(--surface); }
.carryover-item-main { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.carryover-item-main > div { min-width: 0; }
.carryover-item-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #56645b; font-size: 10.2px; font-weight: 600; }
.carryover-item-main p { color: #9ba29c; font-size: 8.7px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.plan-lane { border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; overflow: hidden; }
.lane-p0 { border-top: 2px solid var(--rust); }
.lane-p1 { border-top: 2px solid #b29156; }
.lane-p2 { border-top: 2px solid #859a8b; }
.plan-lane-head { display: flex; justify-content: space-between; gap: 9px; padding: 15px 16px 13px; }
.lane-heading { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.lane-priority { display: inline-flex; align-items: center; justify-content: center; height: 21px; padding: 0 6px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .03em; flex: 0 0 auto; }
.lane-p0 .lane-priority { color: #9a543f; background: var(--rust-soft); }
.lane-p1 .lane-priority { color: #86672f; background: var(--gold-soft); }
.lane-p2 .lane-priority { color: #647268; background: #edf1ed; }
.lane-heading h2 { font-family: var(--font-serif); font-size: 17px; font-weight: 500; line-height: 1.25; }
.lane-heading p { color: #9aa19b; font-size: 8.8px; line-height: 1.55; margin-top: 2px; }
.lane-count { color: #a0a7a1; font-family: var(--font-serif); font-size: 12px; white-space: nowrap; }
.plan-lane-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 11px; }
.plan-task { padding: 13px; border: 1px solid #e8e4da; border-radius: 10px; background: var(--surface); }
.plan-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-task-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.plan-task-actions { display: flex; flex: 0 0 auto; margin: -5px -6px 0 0; }
.plan-task-actions .icon-button { width: 24px; height: 24px; }
.plan-task h3 { margin-top: 7px; color: #35453c; font-size: 12.2px; font-weight: 650; line-height: 1.55; }
.plan-task-target { margin-top: 4px; color: #8b948e; font-size: 9.6px; line-height: 1.6; }
.plan-task-starter { display: flex; align-items: flex-start; gap: 5px; margin-top: 9px; padding: 7px 8px; border-radius: 6px; background: #f3f7f2; color: #5f7868; }
.plan-task-starter > .icon { flex: 0 0 auto; margin-top: 1px; color: #7f9988; }
.plan-task-starter span { display: block; color: #8a9a8e; font-size: 8.2px; letter-spacing: .01em; }
.plan-task-starter p { margin-top: 1px; color: #5e7365; font-size: 9.5px; line-height: 1.55; }
.plan-task-starter.is-missing { width: 100%; border: 1px dashed #d9e1d8; background: transparent; color: #8ca092; font-size: 8.8px; text-align: left; }
.plan-task-starter.is-missing:hover { border-color: #b8cabb; background: #f5f8f4; }
.plan-task-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.plan-task-muted { color: #a0a7a1; font-size: 8.5px; }
.plan-task-muted::before { content: "·"; margin-right: 5px; }
.add-plan-task {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 34px;
  border: 1px dashed #d7d3c8;
  border-radius: 8px;
  background: transparent;
  color: #8b958e;
  font-size: 9.7px;
}
.add-plan-task:hover { border-color: #a6b8ab; background: #f4f7f2; color: var(--green); }
.lane-empty { padding: 14px 9px 12px; text-align: center; color: #9aa39c; }
.lane-empty .icon { color: #b7c1b8; margin-bottom: 5px; }
.lane-empty p { font-size: 9.3px; line-height: 1.6; }
.lane-full-note { display: flex; align-items: flex-start; justify-content: center; gap: 4px; padding: 7px 2px 1px; color: #9b9f91; font-size: 8.7px; line-height: 1.5; text-align: center; }
.plan-check { margin-top: 17px; }
.plan-check .card-head { margin-bottom: 13px; }
.plan-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-check-item { display: flex; align-items: flex-start; gap: 7px; padding: 11px; border-radius: 8px; background: #fbfaf6; border: 1px solid #efebe2; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #98a29b; background: #f1f0e9; }
.plan-check-item.is-ok .check-icon { color: #5f8971; background: #eaf1ea; }
.plan-check-item strong { display: block; color: #637068; font-size: 10.2px; font-weight: 650; }
.plan-check-item p { color: #9aa29b; font-size: 9.3px; line-height: 1.6; margin-top: 2px; }
.plan-check-foot { display: flex; gap: 5px; margin-top: 12px; color: #9aa19b; font-size: 9.5px; }

/* ------------------------------------------------------------------ */
/* Goals                                                              */
/* ------------------------------------------------------------------ */

.goal-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.goal-filter-scroll { display: flex; flex-wrap: wrap; gap: 4px; }
.goal-local-note { display: flex; align-items: center; gap: 4px; color: #a2a9a3; font-size: 9.3px; white-space: nowrap; }
.goals-empty-card { padding: 36px; text-align: center; max-width: 790px; margin: 12px auto 0; }
.goals-empty-mark { width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #769181; background: #edf2ec; }
.goals-empty-card h2 { margin: 5px 0 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.goals-empty-card > p:not(.eyebrow) { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 11.6px; line-height: 1.75; }
.goal-empty-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.goal-category-suggestion { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 7px; background: #fbfaf6; color: #68776e; font-size: 10px; }
.goal-category-suggestion > span { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--goal-color); background: var(--goal-soft); }
.goal-category-suggestion:hover { border-color: var(--goal-color); background: var(--surface); }
.goals-empty-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 21px; }
.goals-empty-actions p { color: #a0a7a1; font-size: 9.6px; }
.goal-groups { display: flex; flex-direction: column; gap: 23px; }
.goal-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; padding: 0 2px; }
.goal-group-title { display: flex; align-items: center; gap: 7px; }
.goal-group-title h2 { font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.goal-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 17px; padding: 0 4px; border-radius: 4px; background: #f0eee8; color: #969e98; font-size: 8.5px; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.goal-grid-all { gap: 15px; }
.page-footnote.goal-footnote { justify-content: flex-start; align-items: flex-start; gap: 6px; }
.goal-card {
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--goal-color);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.goal-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.goal-category { color: var(--goal-color); background: var(--goal-soft); padding: 3px 7px; border-radius: 4px; font-size: 8.6px; font-weight: 650; }
.goal-deadline { display: inline-flex; align-items: center; gap: 3px; color: #959e97; font-size: 8.5px; white-space: nowrap; padding-top: 3px; }
.goal-deadline.is-past { color: #a26f56; }
.goal-card h2 { margin: 10px 0 13px; color: #2c3d33; font-family: var(--font-serif); font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.goal-stage { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed #e9e5dc; }
.goal-field-label { color: #9ca49d; font-size: 8.8px; letter-spacing: .015em; }
.goal-stage p { color: #5e6b63; font-size: 10.6px; line-height: 1.6; }
.goal-latest-progress { padding: 11px 0; border-bottom: 1px dashed #e9e5dc; }
.goal-progress-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.goal-progress-side { display: inline-flex; align-items: center; gap: 2px; }
.goal-progress-date { color: #a6ada7; font-size: 8.6px; font-variant-numeric: tabular-nums; }
.goal-latest-delete { width: 18px; height: 18px; color: #aab1ab; opacity: .7; }
.goal-latest-delete:hover { color: var(--danger); opacity: 1; }
.goal-latest-progress p { color: #67756c; font-size: 10.4px; line-height: 1.7; }
.goal-latest-progress p.is-empty { color: #a0a7a1; font-style: italic; }
.goal-next-action { margin-top: 11px; padding: 9px 10px; border-radius: 7px; background: #f7f6ef; border: 1px solid #efebe1; }
.goal-next-action > span { display: flex; align-items: center; gap: 4px; color: #8c978f; font-size: 8.7px; }
.goal-next-action p { margin-top: 4px; color: #52635a; font-size: 10.2px; line-height: 1.65; }
.goal-history { margin-top: 10px; }
.goal-history summary { cursor: pointer; color: #929b94; font-size: 9px; list-style: none; }
.goal-history summary::-webkit-details-marker { display: none; }
.goal-history summary::before { content: "+"; margin-right: 4px; color: #a9b0aa; }
.goal-history[open] summary::before { content: "−"; }
.goal-history summary:hover { color: var(--green); }
.goal-history-list { display: flex; flex-direction: column; margin-top: 6px; border-left: 1px solid #e8e4da; padding-left: 9px; }
.goal-history-row { display: flex; gap: 7px; align-items: flex-start; padding: 4px 0; }
.goal-history-row > span { flex: 0 0 auto; color: #a8aea8; font-size: 8.2px; padding-top: 2px; }
.goal-history-row > p { flex: 1; color: #7f8982; font-size: 9.4px; line-height: 1.55; }
.goal-history-row .icon-button { width: 19px; height: 19px; opacity: .6; }
.goal-actions { display: flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 14px; }
.goal-actions .btn { margin-right: auto; }
.goal-footnote { margin-top: 20px; }

/* ------------------------------------------------------------------ */
/* History & analytics                                                */
/* ------------------------------------------------------------------ */

.month-nav { display: flex; align-items: center; gap: 5px; }
.month-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.month-input-wrap input { border: 0; outline: 0; background: transparent; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.month-current-btn { margin-left: 3px; font-size: 10px; }
.month-review { padding: 25px 26px; margin-bottom: 18px; }
.month-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.month-review-head h2 { margin: 3px 0 5px; font-family: var(--font-serif); font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.month-review-head p:not(.eyebrow) { color: var(--muted); font-size: 10.6px; line-height: 1.65; }
.auto-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; background: #f3ede0; color: #8a6f3a; font-size: 8.5px; font-weight: 650; white-space: nowrap; }
.auto-chip-quiet { background: rgba(255, 255, 255, .55); color: #947a47; font-size: 8px; }
.sample-warning { display: flex; align-items: flex-start; gap: 5px; margin-top: 11px; padding: 8px 10px; border-radius: 6px; background: #fcf8ef; border: 1px solid #f0e6d1; color: #8f774b; font-size: 9.6px; line-height: 1.65; }
.sample-warning .icon { flex: 0 0 auto; margin-top: 1px; }
.month-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 19px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month-stat { padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.month-stat:first-child { border-left: 0; padding-left: 0; }
.month-stat span { color: var(--muted); font-size: 9.2px; }
.month-stat strong { display: block; margin: 3px 0 2px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-stat p { color: #9aa19c; font-size: 8.7px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-stat-accent strong { color: var(--green); }
.month-summary-columns { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 22px; }
.month-summary-col { min-width: 0; }
.summary-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.summary-number { color: #b5aa90; font-family: var(--font-serif); font-size: 10px; }
.summary-col-head h3 { font-size: 11.4px; font-weight: 700; color: #4e5d54; }
.month-achievements { list-style: none; margin: 0; padding: 0; }
.month-achievements li { position: relative; padding: 6px 0 6px 12px; color: #65736a; font-size: 10.1px; line-height: 1.6; border-top: 1px solid #f1eee7; }
.month-achievements li:first-child { border-top: 0; }
.month-achievements li::before { content: ""; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #b59864; }
.month-achievements li span { display: block; color: #a5aca6; font-size: 8.2px; margin-top: 1px; }
.summary-source { margin-bottom: 5px; color: #9ca39d; font-size: 9.2px; line-height: 1.6; }
.month-task-results { margin: 0; padding-left: 15px; color: #68766d; font-size: 10px; line-height: 1.7; }
.month-task-results li { margin-bottom: 2px; }
.summary-empty { color: #a0a7a1; font-size: 9.8px; line-height: 1.7; font-style: italic; }
.reason-bars { display: flex; flex-direction: column; gap: 6px; }
.reason-bar-row { display: grid; grid-template-columns: 78px 1fr 17px; align-items: center; gap: 7px; color: #727f76; font-size: 9.4px; }
.reason-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reason-bar-track { height: 5px; border-radius: 99px; background: #f1eee6; overflow: hidden; }
.reason-bar-track i { display: block; height: 100%; background: #b9a074; opacity: .8; border-radius: 99px; }
.reason-bar-row em { color: #9aa19b; font-size: 8.7px; font-style: normal; text-align: right; }
.month-delay-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 11px; padding-top: 9px; border-top: 1px dashed #e9e5dc; color: #9aa19b; font-size: 8.7px; }
.month-delay-summary strong { color: #6f7d74; font-weight: 650; }
.month-delay-summary em { margin-left: auto; font-style: normal; color: #a49e91; }
.auto-suggestion-box { padding: 9px 10px; border-radius: 7px; background: #fbf7ee; border: 1px solid #f0e7d6; }
.auto-suggestion-box p { margin-top: 5px; color: #807257; font-size: 9.6px; line-height: 1.7; }
.auto-suggestion-box p + p { border-top: 1px solid #f0e8d9; padding-top: 5px; }
.month-direction { margin-top: 18px; padding: 13px 14px; border-radius: 9px; background: #f8f7f2; border: 1px solid #edeae1; }
.month-direction-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.month-direction-head h3 { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: #536258; }
.month-direction-head > span { display: flex; align-items: center; gap: 3px; color: #a4aba5; font-size: 8.4px; }
.month-direction .text-input { background: var(--surface); font-size: 11.5px; }
.month-review-foot { display: flex; align-items: flex-start; gap: 5px; margin-top: 12px; color: #9ba39c; font-size: 9.2px; line-height: 1.65; }
.analytics-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 25px 1px 13px; }
.analytics-head h2 { margin: 3px 0 4px; font-family: var(--font-serif); font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.analytics-head p:not(.eyebrow) { color: var(--muted); font-size: 10.2px; line-height: 1.6; }
.data-scope-chip { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; color: #8e9790; background: rgba(255, 254, 250, .6); font-size: 8.7px; white-space: nowrap; }
.charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.chart-card { padding: 20px 21px 17px; min-width: 0; }
.chart-card .card-head { margin-bottom: 8px; }
.chart-card .card-head h2 { font-size: 18px; }
.chart-sample { color: #9da49e; font-size: 8.8px; background: #f6f4ee; padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.chart-figure { margin: 6px 0 2px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #ece9e1; stroke-width: 1; }
.chart-grid-mid { stroke: #e2ded4; stroke-dasharray: 3 3; }
.chart-axis { fill: #98a19a; font-family: var(--font-sans); font-size: 13.5px; }
.chart-x-label { font-size: 12px; }
.chart-bar-bg { fill: #f7f5ef; }
.chart-bar-complete { fill: #356851; opacity: .88; transition: opacity .15s ease; }
.chart-bar-group:hover .chart-bar-complete { opacity: 1; }
.chart-value { fill: #5d6c63; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; }
.chart-value-small { font-size: 11.5px; fill: #849087; }
.chart-empty-tick { stroke: #d9d4c8; stroke-width: 1.5; }
.chart-empty-label { fill: #adb4ae; font-family: var(--font-sans); font-size: 10px; }
.chart-line { fill: none; stroke: #3c745e; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chart-point-halo { fill: #3c745e; opacity: .1; }
.chart-point-dot { fill: #3c745e; stroke: #fffefb; stroke-width: 1.5; }
.chart-stack-segment { opacity: .78; }
.chart-stack-group:hover .chart-stack-segment { opacity: 1; }
.chart-legend-top { margin: 9px 0 1px; padding: 0 2px; gap: 10px; }
.chart-legend-top span { font-size: 8.6px; }
.chart-legend-top i { width: 6px; height: 6px; border-radius: 2px; display: inline-block; }
.chart-caption { margin-top: 7px; padding-top: 8px; border-top: 1px solid #f1eee7; color: #9ba29c; font-size: 8.7px; line-height: 1.6; }
.chart-data-details { margin-top: 7px; }
.chart-data-details summary { color: #939d95; font-size: 8.6px; cursor: pointer; }
.chart-data-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding-left: 7px; border-left: 1px solid #e9e5dc; }
.chart-data-list div { display: flex; gap: 8px; font-size: 8.5px; }
.chart-data-list span { color: #8f9891; min-width: 24px; }
.chart-data-list p { color: #6d796f; }
.delay-bars { display: flex; flex-direction: column; gap: 10px; margin: 17px 0 12px; }
.delay-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 35px; gap: 9px; align-items: center; }
.delay-label { display: inline-flex; align-items: center; gap: 5px; color: #6b786f; font-size: 9.4px; white-space: nowrap; }
.delay-track { height: 7px; background: #f4f1e9; border-radius: 99px; overflow: hidden; }
.delay-fill { display: block; height: 100%; border-radius: 99px; background: var(--domain-color); opacity: .7; }
.delay-value { color: #929a94; font-size: 8.7px; text-align: right; }
.delay-task-list { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #ece8df; }
.delay-task-list p { display: flex; align-items: center; gap: 5px; color: #7f8a82; font-size: 9.2px; line-height: 1.6; }
.delay-task-list p > span { flex: 0 0 auto; }
.delay-task-list em { margin-left: auto; color: #a7ada7; font-style: normal; font-size: 8.2px; white-space: nowrap; }
.history-list-card { margin-top: 15px; padding: 20px 22px; }
.history-list-card .card-head { margin-bottom: 10px; }
.history-week-list { display: flex; flex-direction: column; }
.history-week-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid #efede6; }
.history-week-row:first-child { border-top: 0; }
.history-week-main { flex: 1; display: grid; grid-template-columns: 5px 138px 64px 1fr 92px 24px; align-items: center; gap: 11px; min-width: 0; padding: 12px 3px; border: 0; background: transparent; text-align: left; border-radius: 6px; }
.history-week-main:hover { background: #fbfaf6; }
.history-week-marker { width: 4px; height: 25px; border-radius: 99px; background: #d1d7cf; }
.history-week-date { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.history-week-date span { color: #3f5046; font-family: var(--font-serif); font-size: 14px; }
.history-week-date small { color: #9ba29c; font-size: 8.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-status { justify-self: start; display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; background: #f2f0ea; color: #929a94; font-size: 8.2px; white-space: nowrap; }
.history-status.is-reviewed { color: #50745f; background: #edf3ee; }
.history-week-stats { color: #77837b; font-size: 9.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-week-rating { color: #9ca39d; font-size: 8.8px; white-space: nowrap; }
.history-open { color: #a4aba5; display: flex; justify-content: flex-end; }
.history-week-main:hover .history-open { color: var(--green); }
.history-export { flex: 0 0 auto; margin-right: 2px; }
.history-empty { max-width: 780px; margin: 20px auto 0; padding: 42px; text-align: center; }
.history-empty-mark { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eff2ed; color: #7b9482; }
.history-empty h2 { margin: 5px 0 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.history-empty p:not(.eyebrow) { max-width: 555px; margin: 0 auto 18px; color: var(--muted); font-size: 11.4px; line-height: 1.75; }
.data-scope-chip + .chart-sample { margin-left: 5px; }

/* ------------------------------------------------------------------ */
/* Modals and forms                                                   */
/* ------------------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 45px 20px 35px;
  background: rgba(26, 37, 31, .43);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlay-in .16s ease both;
}
.modal-overlay.is-closing { animation: overlay-out .16s ease both; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out { to { opacity: 0; } }
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 590px;
  background: #fffdf9;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  animation: modal-in .2s cubic-bezier(.2, .8, .25, 1) both;
  margin: auto;
}
.modal-wide { max-width: 750px; }
.modal-narrow { max-width: 465px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head-copy { min-width: 0; }
.modal-kicker { color: var(--green); font-size: 8.8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.modal-head h2 { margin: 4px 0 4px; font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1.22; letter-spacing: -.018em; }
.modal-subtitle { color: var(--muted); font-size: 10.8px; line-height: 1.65; }
.modal-close { flex: 0 0 auto; margin: -4px -7px 0 0; }
.modal-body { padding: 19px 24px 22px; max-height: min(66vh, 690px); overflow-y: auto; }
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: #d8d3c8; border-radius: 10px; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: #fcfaf5;
  border-radius: 0 0 16px 16px;
}
.modal-foot .btn-danger { margin-right: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.form-field { min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #5a685f; font-size: 10.7px; font-weight: 650; }
.form-label small { color: #9ea69f; font-size: 8.8px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 11.7px;
  line-height: 1.6;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.form-input, .form-select { height: 36px; }
.form-textarea { resize: vertical; min-height: 62px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #839d8e; background: #fff; box-shadow: 0 0 0 3px rgba(40, 89, 74, .07); }
.form-input::placeholder, .form-textarea::placeholder { color: #b0b6b0; }
.form-help { margin-top: 4px; color: #9da49e; font-size: 9.1px; line-height: 1.55; }
.form-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #6e7a72; font-size: 9.5px; font-weight: 650; letter-spacing: .04em; }
.priority-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.priority-choice { position: relative; display: block; cursor: pointer; }
.priority-choice input { position: absolute; opacity: 0; pointer-events: none; }
.priority-choice-inner { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; border: 1px solid #e6e2d8; border-radius: 7px; background: #fbfaf6; transition: border-color .13s ease, background .13s ease; }
.priority-choice-inner strong { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #66736b; }
.priority-choice-inner em { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border-radius: 3px; font-style: normal; font-size: 8px; font-weight: 700; }
.priority-choice-inner span { color: #9ca39d; font-size: 8.3px; line-height: 1.45; }
.priority-choice input:checked + .priority-choice-inner { border-color: #a8c0b1; background: #f1f6f1; box-shadow: 0 0 0 1px #b8cabd inset; }
.priority-choice input:focus-visible + .priority-choice-inner { outline: 2px solid var(--green); outline-offset: 1px; }
.priority-choice.is-disabled { cursor: not-allowed; opacity: .55; }
.priority-choice.is-disabled .priority-choice-inner { background: #f5f3ed; }
.priority-choice.is-disabled input { cursor: not-allowed; }
.priority-choice-inner .cap-pill { align-self: flex-start; margin-top: 3px; color: #9ca39c; font-size: 8px; }
.priority-choice-inner strong .cap-pill { margin: 0 0 0 auto; }
.form-context { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 10.3px; }
.priority-choice[data-priority="P0"] em { color: #9a543f; background: #f5e6e0; }
.priority-choice[data-priority="P1"] em { color: #86672f; background: #f5eddd; }
.priority-choice[data-priority="P2"] em { color: #647268; background: #e9eee9; }
.cap-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 3px; background: #f2f0e9; color: #9ba29b; font-size: 8.2px; font-weight: 500; }
.modal-error { display: flex; align-items: flex-start; gap: 6px; margin-top: 13px; padding: 9px 10px; border-radius: 6px; background: var(--danger-soft); border: 1px solid #ecd5d0; color: #8d4d43; font-size: 10.2px; line-height: 1.6; }
.modal-success-note { display: flex; align-items: flex-start; gap: 7px; padding: 10px 11px; margin-bottom: 14px; border-radius: 7px; background: #f2f6f0; border: 1px solid #dfe9dd; color: #5c7665; font-size: 10.3px; line-height: 1.65; }
.task-form-details { margin-top: 12px; }
.task-form-details summary { cursor: pointer; color: #8a948d; font-size: 9.3px; }
.task-form-details summary:hover { color: var(--green); }
.task-form-details[open] summary { margin-bottom: 11px; }
.carry-warning { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; margin-bottom: 14px; border-radius: 7px; background: #fdf7ed; border: 1px solid #ecdfc8; color: #826a42; font-size: 10px; line-height: 1.65; }
.carry-warning .icon { flex: 0 0 auto; color: #ae8849; margin-top: 1px; }
.carry-warning strong { display: block; font-size: 10.6px; margin-bottom: 2px; }
.export-options { display: flex; flex-direction: column; gap: 7px; }
.export-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #eae6dd;
  border-radius: 9px;
  background: #fbfaf6;
  text-align: left;
  transition: border-color .14s ease, background .14s ease;
}
.export-option:hover { border-color: #c3d0c5; background: #fff; }
.export-option-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: #edf2ed; color: #5c806c; flex: 0 0 auto; }
.export-option-copy { min-width: 0; flex: 1; }
.export-option-copy strong { display: block; font-size: 11.3px; color: #4b5b51; }
.export-option-copy p { color: #98a099; font-size: 9.2px; line-height: 1.55; margin-top: 2px; }
.export-option > .icon { color: #aab1ab; flex: 0 0 auto; }
.export-meta { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: #9ca49d; font-size: 9.2px; line-height: 1.65; }
.data-section { padding: 13px 0; border-top: 1px solid var(--line); }
.data-section:first-child { border-top: 0; padding-top: 0; }
.data-section h3 { font-size: 11.3px; font-weight: 700; color: #536159; }
.data-section p { margin-top: 5px; color: #879189; font-size: 9.9px; line-height: 1.7; }
.data-section-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.storage-status { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; margin-top: 9px; border-radius: 6px; background: #faf7ef; border: 1px solid #eee7d9; color: #7c725e; font-size: 9.4px; line-height: 1.6; }
.storage-status.is-good { color: #5e7464; background: #f3f7f1; border-color: #e1eadd; }
.storage-status .icon { flex: 0 0 auto; margin-top: 1px; }
.data-meta-list { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; }
.data-meta-list div { display: flex; justify-content: space-between; gap: 15px; color: #8f9991; font-size: 9.3px; }
.data-meta-list strong { color: #69766e; font-weight: 600; text-align: right; }
.confirm-copy { color: #6f7b73; font-size: 11.5px; line-height: 1.75; }
.confirm-copy strong { color: #48584e; }
.confirm-copy ul { margin: 8px 0 0; padding-left: 18px; }
.confirm-copy li { margin-bottom: 3px; }
.danger-note { color: #9b6256; }
.import-file-label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 74px; border: 1px dashed #d6d1c5; border-radius: 8px; background: #fbfaf6; color: #87928a; font-size: 10.4px; cursor: pointer; }
.import-file-label:hover { border-color: #a8bcac; color: var(--green); background: #fbfdf9; }
.import-file-label input { display: none; }
.jump-week-form { display: flex; flex-direction: column; gap: 12px; }
.jump-week-date { font-family: var(--font-serif); font-size: 16px; }
.week-jump-preview { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf6; }
.week-jump-preview strong { font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.week-jump-preview span { color: var(--muted); font-size: 10px; }
.week-jump-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.muted-divider { height: 1px; background: var(--line); margin: 12px 0; }
.goal-progress-form-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1280px) {
  :root { --sidebar-w: 232px; }
  .main-view { padding-left: 28px; padding-right: 28px; }
  .app-header { padding-left: 28px; padding-right: 28px; }
  .demo-banner-inner, .storage-banner-inner { padding-left: 28px; padding-right: 28px; }
  .app-footer { padding-left: 28px; padding-right: 28px; }
  .hero-card { padding-left: 29px; padding-right: 29px; }
  .month-stat { padding-left: 10px; padding-right: 10px; }
  .month-summary-columns { gap: 17px; }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 250px; }
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    transform: translateX(-102%);
    transition: transform .22s cubic-bezier(.2, .8, .25, 1);
    box-shadow: 20px 0 46px rgba(25, 36, 30, .12);
  }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  body.mobile-nav-open .sidebar-backdrop { display: block; }
  .mobile-menu-button { display: inline-flex !important; }
  .header-page-title { font-size: 16px; }
  .hero-copy { max-width: 640px; }
  .hero-card { padding: 31px 29px 20px; }
  .hero-card h1 { font-size: 52px; }
  .main-view { padding: 26px 27px 38px; }
  .app-header { padding: 10px 27px; }
  .demo-banner-inner, .storage-banner-inner { padding-left: 27px; padding-right: 27px; }
  .app-footer { padding-left: 27px; padding-right: 27px; }
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-board { gap: 11px; }
}

@media (max-width: 900px) {
  .hero-main { gap: 22px; }
  .hero-progress-wrap { flex: 0 0 160px; }
  .hero-ring { width: 108px; height: 108px; }
  .hero-stats { gap: 12px; }
  .span-7, .span-5 { grid-column: span 12; }
  .start-card, .rhythm-card { grid-column: span 12; }
  .dashboard-grid { gap: 14px; }
  .reflection-layout { grid-template-columns: minmax(0, 1fr); }
  .reflection-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reflect-quote { grid-column: 1 / -1; }
  .reflection-aside .reflect-complete-card { grid-column: 2; grid-row: 1; }
  .reflection-aside .reflect-status-card { grid-column: 1; grid-row: 1; }
  .reflect-quote { display: none; }
  .plan-overview { grid-template-columns: 1fr; }
  .plan-principle { align-self: auto; }
  .plan-board { grid-template-columns: 1fr; gap: 11px; }
  .plan-lane { display: flex; flex-direction: column; }
  .plan-lane-head { padding-bottom: 11px; }
  .plan-lane-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .plan-lane-body > .lane-empty, .plan-lane-body > .lane-full-note { grid-column: 1 / -1; }
  .plan-lane-body > .add-plan-task { grid-column: 1 / -1; }
  .carryover-items { grid-template-columns: 1fr; }
  .plan-check-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .month-stats { grid-template-columns: repeat(3, 1fr); }
  .month-stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .month-stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .month-summary-columns { grid-template-columns: 1fr 1fr; }
  .month-summary-col:nth-child(3) { grid-column: 1 / -1; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 33px; }
  .hero-date { font-size: 10.7px; }
  .history-week-main { grid-template-columns: 5px 128px 60px 1fr 80px 22px; gap: 8px; }
  .week-pill-range { display: none; }
}

@media (max-width: 720px) {
  .main-view { padding: 22px 18px 36px; }
  .app-header { padding: 9px 18px; min-height: 62px; }
  .app-header-inner { gap: 10px; }
  .header-kicker { display: none; }
  .header-page-title { font-size: 15px; }
  .header-actions { gap: 5px; }
  .save-indicator { padding: 0 1px; }
  .save-label { display: none; }
  .week-arrow { width: 26px; }
  .week-pill { padding: 0 8px; }
  .week-pill .icon { display: none; }
  .week-pill-title { font-size: 10.8px; }
  .btn-header-export { width: 33px; padding: 0; }
  .btn-header-export span { display: none; }
  .week-switcher { height: 33px; }
  .header-data-btn { width: 31px; height: 31px; }
  .app-footer { padding: 17px 18px 22px; display: block; line-height: 1.8; }
  .app-footer span { display: block; }
  .demo-banner-inner { padding: 9px 17px; flex-wrap: wrap; gap: 7px; font-size: 10.5px; }
  .demo-banner-inner p { flex-basis: calc(100% - 110px); }
  .btn-demo-exit { margin-left: auto; }
  .storage-banner-inner { padding: 10px 17px; flex-wrap: wrap; }
  .storage-banner-inner .btn { margin-left: 26px; }
  .page-head { display: block; margin-bottom: 18px; }
  .page-head h1 { font-size: 29px; }
  .page-desc { font-size: 11.5px; }
  .page-actions { margin-top: 13px; flex-wrap: wrap; }
  .page-actions .btn { height: 35px; font-size: 11.4px; }
  .hero-card { border-radius: 17px; padding: 23px 20px 18px; }
  .hero-main { display: block; }
  .hero-card h1 { font-size: 45px; margin-top: 9px; }
  .hero-lede { font-size: 12.3px; margin: 14px 0 18px; max-width: none; }
  .hero-progress-wrap { flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; padding-top: 20px; }
  .hero-ring { width: 88px; height: 88px; padding: 5px; }
  .hero-ring-inner strong { font-size: 21px; }
  .hero-ring-inner span { font-size: 7.4px; margin-top: 3px; }
  .hero-ring-legend { flex-direction: row; gap: 11px; font-size: 9px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 13px; margin-top: 20px; padding-top: 16px; }
  .hero-stat strong { font-size: 23px; }
  .hero-compare { font-size: 8.7px; line-height: 1.9; }
  .hero-compare > span { padding-right: 6px; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { height: 35px; font-size: 11.2px; padding: 0 11px; }
  .dashboard-grid { margin-top: 13px; gap: 12px; }
  .card { border-radius: 14px; padding: 19px 17px; }
  .card-head h2 { font-size: 19px; }
  .card-head { gap: 9px; }
  .card-head-meta { font-size: 9.5px; }
  .start-card { padding: 22px 19px; }
  .start-card h2 { font-size: 21px; }
  .start-steps li { grid-template-columns: 29px 1fr; }
  .start-steps strong { font-size: 11.7px; }
  .start-steps p { font-size: 10.1px; }
  .rhythm-footnote { margin-top: 9px; }
  .focus-row { grid-template-columns: 22px minmax(0, 1fr); gap: 9px; }
  .focus-side { display: none; }
  .focus-main h3 { font-size: 12.7px; }
  .leftover-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .leftover-row .btn { margin-left: 0; }
  .leftover-main { width: 100%; }
  .effort-card .rating-row { grid-template-columns: 68px minmax(0, 1fr) 27px; gap: 5px; }
  .rating-dot { width: 23px; height: 23px; }
  .rating-buttons { gap: 3px; }
  .task-targets { grid-template-columns: 1fr; gap: 9px; }
  .filter-bar { gap: 7px; padding: 9px; }
  .search-box { flex: 1 1 100%; max-width: none; }
  .filter-group + .filter-group { border-left: 0; padding-left: 0; }
  .filter-status-group { padding-top: 5px; border-top: 1px solid var(--line); width: 100%; }
  .filter-reset { margin-left: 0; }
  .task-row { grid-template-columns: 21px minmax(0, 1fr); padding: 15px 13px; gap: 9px; }
  .task-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-top: 2px; }
  .task-actions { margin-left: auto; }
  .task-title { font-size: 12.7px; }
  .task-targets { gap: 7px; padding: 8px 10px; }
  .task-reassess-callout { flex-wrap: wrap; }
  .task-reassess-callout > div { flex-basis: calc(100% - 25px); }
  .task-reassess-callout .btn { margin-left: 24px; }
  .domain-group-head { padding: 12px 13px; }
  .domain-group-title p { display: none; }
  .domain-group-stat { font-size: 8.5px; gap: 5px; }
  .mini-track { width: 38px; }
  .mini-summary-strip { gap: 9px; }
  .mini-summary-item em { font-size: 15px; }
  .mini-summary-sep { display: none; }
  .mini-summary-muted { flex-basis: 100%; }
  .callout { padding: 12px 13px; gap: 8px; }
  .callout strong { font-size: 11.3px; }
  .callout p { font-size: 10px; }
  .page-footnote { display: block; }
  .page-foot-actions { margin-top: 9px; flex-wrap: wrap; gap: 8px; }
  .page-footnote + .page-foot-actions { margin-top: 7px; }
  .reflection-aside { display: flex; gap: 12px; }
  .reflection-aside .reflect-complete-card { order: 2; }
  .reflection-aside .reflect-status-card { order: 1; }
  .reflect-section-head { padding: 17px 17px 14px; gap: 10px; }
  .section-letter { width: 31px; height: 31px; font-size: 16px; }
  .reflect-section-head h2 { font-size: 19px; }
  .reflect-section-body { padding: 17px; }
  .question-title { align-items: flex-start; }
  .question-title h3 { font-size: 12.1px; }
  .rating-panel { padding: 10px 10px 7px; }
  .rating-panel .rating-row { grid-template-columns: 70px minmax(0, 1fr) 30px; gap: 5px; }
  .rating-panel .rating-dot { width: 24px; height: 24px; }
  .reflection-bottom-actions { display: block; }
  .reflection-bottom-actions > div { margin-top: 10px; display: flex; flex-wrap: wrap; }
  .reflection-bottom-actions > p { font-size: 9.5px; }
  .reflect-status-card { padding: 17px; }
  .reflect-complete-card { padding: 17px; }
  .plan-overview { padding: 16px; }
  .plan-overview-head { display: block; }
  .plan-status-pill { margin-top: 7px; }
  .plan-limits { grid-template-columns: repeat(2, 1fr); gap: 9px 8px; }
  .plan-limit strong { font-size: 18px; }
  .plan-principle { margin-top: 0; }
  .plan-reflection-cue { align-items: flex-start; flex-wrap: wrap; padding: 10px 12px; }
  .plan-cue-main { flex-basis: calc(100% - 43px); }
  .plan-reflection-cue > .text-link { margin-left: 41px; }
  .plan-carryover { padding: 14px 13px; }
  .plan-carryover.is-empty { display: block; }
  .plan-carryover.is-empty p { margin-top: 5px; }
  .plan-carryover-head { display: block; }
  .plan-carryover-head > p { margin-top: 4px; }
  .plan-lane-body { display: flex; }
  .plan-check .card-head { margin-bottom: 10px; }
  .goal-filter-bar { display: block; margin-bottom: 16px; }
  .goal-local-note { margin-top: 7px; }
  .goals-empty-card { padding: 24px 18px; }
  .goals-empty-card h2 { font-size: 21px; }
  .goal-empty-categories { gap: 5px; }
  .goal-category-suggestion { font-size: 9.3px; padding-right: 8px; }
  .goal-group-head { margin-bottom: 8px; }
  .goal-card { padding: 16px; }
  .goal-card h2 { font-size: 17px; }
  .goal-card-top { gap: 5px; }
  .goal-deadline { font-size: 7.8px; }
  .month-nav { margin-top: 11px; }
  .month-input-wrap input { font-size: 10.5px; }
  .month-current-btn { font-size: 9px; }
  .month-review { padding: 18px 16px; }
  .month-review-head { display: block; }
  .month-review-head h2 { font-size: 22px; }
  .auto-chip { margin-top: 8px; }
  .month-stats { grid-template-columns: repeat(2, 1fr); }
  .month-stat { padding: 10px 8px; }
  .month-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .month-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .month-stat:nth-child(4) { padding-left: 8px; }
  .month-stat strong { font-size: 18px; }
  .month-summary-columns { grid-template-columns: 1fr; gap: 18px; }
  .month-summary-col:nth-child(3) { grid-column: auto; }
  .month-direction { padding: 12px; }
  .month-direction-head { display: block; }
  .month-direction-head > span { margin-top: 4px; }
  .analytics-head { display: block; margin-top: 21px; }
  .data-scope-chip { margin-top: 8px; }
  .chart-card { padding: 16px 14px 14px; }
  .chart-card .card-head h2 { font-size: 17px; }
  .chart-svg { min-width: 0; }
  .history-list-card { padding: 16px 13px; }
  .history-week-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 2px; }
  .history-week-marker { height: 18px; }
  .history-week-date { flex-direction: row; align-items: baseline; gap: 5px; width: auto; }
  .history-week-date span { font-size: 13px; }
  .history-week-date small { font-size: 8.2px; }
  .history-week-stats { margin-left: auto; font-size: 8.8px; }
  .history-week-rating { font-size: 8.4px; }
  .history-open { margin-left: 2px; }
  .history-week-main { position: relative; padding-right: 19px; }
  .history-open { position: absolute; right: 0; top: 11px; }
  .history-week-row { gap: 0; }
  .history-export { width: 27px; height: 27px; }
  .history-status { order: 3; }
  .history-week-rating { order: 4; }
  .history-week-stats { order: 2; }
  .history-open { order: 5; }
  .page-head .month-nav { margin-top: 0; }
  .modal-overlay { padding: 18px 11px 22px; }
  .modal-sheet { max-width: none; border-radius: 14px; }
  .modal-head { padding: 18px 16px 13px; }
  .modal-head h2 { font-size: 20px; }
  .modal-body { padding: 15px 16px 18px; max-height: 68vh; }
  .modal-foot { padding: 12px 16px 15px; border-radius: 0 0 14px 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 11px; }
  .form-field-full { grid-column: auto; }
  .priority-options { grid-template-columns: 1fr; }
  .priority-choice-inner { padding: 7px 8px; }
  .priority-choice-inner span { display: none; }
  .toast-root { right: 12px; left: 12px; bottom: 12px; }
  .toast { max-width: none; width: 100%; }
}

@media (max-width: 430px) {
  .header-actions .save-indicator { display: none; }
  .header-route { max-width: 130px; }
  .header-page-title { overflow: hidden; text-overflow: ellipsis; }
  .header-mode-badge { font-size: 7.5px; padding: 0 4px; height: 16px; }
  .hero-card h1 { font-size: 40px; }
  .hero-stats { gap: 8px 12px; }
  .hero-stat-label { font-size: 8.7px; }
  .hero-stat strong { font-size: 21px; }
  .hero-stat-sub { font-size: 8.8px; }
  .btn-demo-exit { font-size: 9.4px; }
  .demo-banner-inner p { flex-basis: 100%; order: 3; }
  .demo-badge { order: 1; }
  .btn-demo-exit { order: 2; }
  .summary-item { font-size: 9px; }
  .rating-block-head { display: block; }
  .rating-block-head .field-hint { text-align: left; margin-top: 3px; display: block; }
  .effort-card .rating-row { grid-template-columns: 62px minmax(0, 1fr) 25px; }
  .rating-value { font-size: 8.2px; }
  .plan-overview-head h2 { font-size: 18px; }
  .plan-overview-head h2 span { display: block; margin-top: 3px; }
  .month-stat strong { font-size: 16px; }
  .goal-deadline { white-space: normal; text-align: right; line-height: 1.4; }
  .data-scope-chip { display: none; }
  .history-week-main { grid-template-columns: none; display: flex; }
  .history-status { display: none; }
  .filter-status-group .filter-chip { font-size: 9.2px; padding: 0 6px; }
  .goal-category { font-size: 8px; }
}

@media (max-width: 360px) {
  .app-header { padding-left: 12px; padding-right: 12px; }
  .app-header-inner { gap: 7px; }
  .header-left { gap: 7px; }
  .header-actions { gap: 2px; }
  .header-data-btn { display: none; }
  .header-route { max-width: 136px; }
  .header-page-title { font-size: 14px; }
  .week-arrow { width: 23px; }
  .week-pill { padding: 0 6px; }
  .btn-header-export { width: 30px; height: 31px; }
  .week-switcher { height: 31px; }
  .main-view { padding-left: 14px; padding-right: 14px; }
  .hero-card { padding-left: 17px; padding-right: 17px; }
  .card { padding-left: 15px; padding-right: 15px; }
  .goal-deadline { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
