:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #232521;
  background: #f4f2ec;
  --canvas: #f4f2ec;
  --surface: #fdfcf8;
  --raised: #ebe8df;
  --ink: #232521;
  --muted: #5c6258;
  --line: #dedbd0;
  --accent: #255647;
  --accent-ink: #ffffff;
  --accent-soft: #e0ebe3;
  --warning: #9b4327;
  --radius: 15px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-underline-offset: .2em; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--accent-ink); background: var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.icon { display: block; flex: none; }
.layout { min-height: 100dvh; }
.rail {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 70px; padding: 0 max(28px, calc((100vw - 1180px)/2));
  background: #f8f6f0; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-size: .92rem; font-weight: 680; letter-spacing: -.02em; }
.brand .icon { color: var(--accent); }
.rail-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.voice-button { color: var(--accent); background: var(--accent-soft); }
.navigation { display: flex; gap: 6px; }
.nav-link { display: flex; gap: 8px; align-items: center; min-height: 45px; padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 620; }
.nav-link:hover { background: var(--raised); color: var(--ink); }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-panel {
  position: absolute; inset: calc(100% + 8px) 0 auto auto; z-index: 4;
  display: grid; min-inline-size: 170px; padding: 5px;
  border: 1px solid #c8d7e7; border-radius: 13px;
  background: var(--surface); box-shadow: 0 8px 25px -8px #203d6450;
}
.nav-more:not([open]) > .nav-more-panel { display: none; }
.nav-more-panel :is(a, button) {
  display: flex; align-items: center; gap: 9px; min-block-size: 44px;
  padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink); font-size: .87rem; text-align: start; text-decoration: none;
}
.nav-more-panel :is(a, button):hover { background: var(--raised); }
.nav-more-panel .icon { color: var(--muted); }
@media (max-width: 640px) {
  .nav-more-panel { inset: auto 0 calc(100% + 10px) auto; max-block-size: calc(100dvh - 90px - env(safe-area-inset-bottom)); overflow: auto; }
}
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-today-calendar { border: 0; }
.body { min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 48px 28px 64px; }
.page.compact { max-width: 920px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 27px; }
.page-head h1 { font-size: 3.25rem; line-height: .98; letter-spacing: -.04em; font-weight: 760; overflow-wrap: anywhere; }
.today-head h1 { font-size: 4.6rem; }
.page-date { max-width: 66ch; margin-top: 10px; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.button, .icon-button {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent;
  font-size: .86rem; font-weight: 680; text-decoration: none; white-space: nowrap;
}
.button:hover, .icon-button:hover { background: var(--raised); border-color: #a2aa9c; }
.button:active, .icon-button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #326a56; }
.button.small { padding-inline: 10px; font-size: .8rem; }
.icon-button { width: 44px; padding: 0; border-color: transparent; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 36px; align-items: start; }
.agenda { min-width: 0; }
.day-cell {
  display: grid; justify-items: center; align-content: center; gap: 4px;
  position: relative; min-width: 0; min-height: 59px; padding: 0 0 6px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
}
.day-cell:hover { background: var(--raised); }
.day-cell span { color: var(--muted); font-size: .72rem; line-height: 1; }
.day-cell strong { font-size: 1.14rem; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 700; }
.day-cell.current-day { border-color: #8a9f8d; }
.day-cell.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day-cell.selected span { color: #e6f2e9; }
.day-cell i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; }
.day-cell .has-task { background: var(--accent); }
.day-cell.selected .has-task { background: var(--accent-ink); }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: 1.34rem; line-height: 1.22; font-weight: 720; letter-spacing: -.027em; }
.section-meta, .progress-caption { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.section-meta { white-space: nowrap; }
.warning { color: var(--warning); }
.day-section { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 21px; }
.day-section .section-head { margin-bottom: 0; }
.day-section h2 { font-size: 1.01rem; }
.day-empty { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.day-section.has-scheduled { display: block; }
.day-section.has-scheduled .section-head { margin-bottom: 10px; }
.day-progress { width: min(128px, 46%); display: grid; justify-items: end; gap: 5px; }
.focus-section { margin-top: 34px; }
.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.focus-item {
  display: grid; align-content: start; min-width: 0; padding: 14px;
  border: 1px solid #dcd8cc; border-radius: var(--radius); background: #fcfaf4;
}
.focus-item:focus-within, .focus-item:hover { border-color: #a4b6a6; }
.focus-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 45px;
  text-decoration: none; color: var(--accent);
}
.focus-link strong { font-size: .89rem; font-weight: 730; color: var(--ink); overflow-wrap: anywhere; }
.focus-link:hover strong { text-decoration: underline; }
.project-badge, .area-icon, .all-projects-icon {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  color: var(--accent); background: var(--accent-soft); border-radius: 10px;
}
.project-badge.heat { color: #965132; background: #f2e2d6; }
.project-badge.signal { color: #316050; background: #e0ede5; }
.focus-step { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: 14px; }
.focus-step > div { min-width: 0; }
.focus-title { font-size: 1.08rem; font-weight: 650; line-height: 1.27; letter-spacing: -.02em; overflow-wrap: anywhere; }
.focus-date { display: block; margin-top: 6px; color: #67675a; font-size: .75rem; }
.focus-accept { color: var(--accent); background: var(--accent-soft); border-color: #c9dbce; }
.focus-progress { display: grid; gap: 6px; padding-top: 12px; }
.focus-task { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 45px; margin-top: 9px; padding: 4px 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
.focus-task:hover { color: var(--accent); }
.focus-task span { overflow-wrap: anywhere; }
.focus-task small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.territories { margin-top: 26px; }
.territory-map { overflow: hidden; border: 1px solid #d8dacd; border-radius: var(--radius); background: #e9ece0; }
.territory-atlas { display: block; width: 100%; height: 143px; background: #e9ece0; }
.atlas-dot { fill: #89988c; opacity: .55; }
.atlas-route { fill: none; stroke: #7a8c7f; stroke-width: .8; stroke-dasharray: 2 3; }
.atlas-markings { fill: none; stroke: #829283; stroke-width: .85; }
.territory-island.heat { --cell: #e6d5c6; --edge: #987d64; --claimed: #ae6547; --claim-edge: #8e452b; }
.territory-island.signal { --cell: #cfddd0; --edge: #809487; --claimed: #4a8369; --claim-edge: #315f4d; }
.territory-cell { fill: var(--cell); stroke: var(--edge); stroke-width: 1; stroke-linejoin: round; opacity: .58; }
.territory-cell.available, .territory-cell.claimed { opacity: 1; }
.territory-cell.claimed { fill: var(--claimed); stroke: var(--claim-edge); }
.territory-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d8dacd; }
.territory-label { display: grid; align-content: start; gap: 4px; min-height: 56px; padding: 9px 10px; text-decoration: none; }
.territory-label + .territory-label { border-left: 1px solid #d8dacd; }
.territory-label:hover { background: #dce6d8; }
.territory-label:focus-visible { outline-offset: -3px; }
.territory-name { display: flex; align-items: center; gap: 5px; color: #634933; font-size: .79rem; }
.territory-name strong { min-width: 0; overflow-wrap: anywhere; }
.territory-name .icon:last-child { margin-left: auto; }
.territory-label.signal .territory-name { color: #365847; }
.territory-count, .territory-limit { font-size: .73rem; color: #556558; font-variant-numeric: tabular-nums; }
.territory-rule { margin-top: 8px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.territory-trophy { display: inline-flex; align-items: center; justify-self: start; gap: 6px; margin-top: 3px; color: #704329; font-size: .77rem; font-weight: 700; }
.trophy-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #caad93; border-radius: 8px; background: #f4e1cf; }
.territory-trophy.signal { color: #325d49; }
.territory-trophy.signal .trophy-icon { border-color: #a2bda9; background: #dceadd; }
.project-trophy { margin-top: 10px; }
.rows { border-top: 1px solid var(--line); }
.task-row, .suggestion-row { display: flex; align-items: center; min-height: 61px; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.check-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: var(--accent-ink); border-radius: 9px; }
.check-button::before { content: ''; position: absolute; inset: 11px; border: 1.5px solid #8b978a; border-radius: 7px; }
.check-button:hover { background: var(--accent-soft); }
.check-button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); }
.check-button .icon { position: relative; }
.check-button[aria-busy="true"]::before { border-style: dashed; border-color: var(--accent); }
.task-text, .suggestion-text { display: grid; gap: 4px; flex: 1; min-width: 0; padding: 5px 0; text-align: left; background: transparent; border: 0; text-decoration: none; }
.task-text:hover .task-name, a.suggestion-text:hover .task-name { text-decoration: underline; }
.task-name { font-weight: 640; line-height: 1.32; font-size: .93rem; overflow-wrap: anywhere; }
.is-done .task-name { text-decoration: line-through; color: var(--muted); }
.task-meta, .project-text small, .area-label small { color: var(--muted); font-size: .76rem; line-height: 1.28; }
.suggestion-row .button { color: var(--accent); }
.overview { display: grid; gap: 12px; }
.areas-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.areas-panel .section-head { margin-bottom: 7px; }
.areas-panel .section-head h2 { font-size: 1rem; }
.area-rows li + li { border-top: 1px solid var(--line); }
.area-rows a { display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 5px 3px; text-decoration: none; }
.area-rows a:hover, .project-row:hover, .all-projects:hover { background: var(--raised); }
.area-label { display: grid; gap: 3px; flex: 1; font-size: .88rem; font-weight: 630; }
.area-label small { font-weight: 500; }
.area-icon, .all-projects-icon { width: 32px; height: 32px; }
.all-projects { display: flex; align-items: center; gap: 9px; min-height: 60px; padding: 10px 12px; text-decoration: none; border-radius: 11px; }
.all-projects span:nth-child(2) { display: grid; gap: 3px; flex: 1; font-size: .85rem; }
.all-projects small { font-size: .74rem; color: var(--muted); }
.project-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-bottom: 14px; }
.search { display: flex; align-items: center; flex: 1 1 220px; gap: 8px; min-height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.search input { min-width: 0; width: 100%; padding: 10px 2px; border: 0; background: transparent; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input:focus { outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 44px; padding: 7px 11px; border: 1px solid var(--line); background: transparent; border-radius: 9px; font-size: .81rem; font-weight: 640; }
.filter:hover { background: var(--raised); }
.filter.selected { color: var(--accent); background: var(--accent-soft); border-color: #afc7b7; }
.project-row { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 7px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.project-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.project-text strong { font-size: .94rem; overflow-wrap: anywhere; }
.row-progress { display: grid; gap: 4px; min-width: 82px; text-align: right; }
.muted { color: var(--muted); font-size: .77rem; }
progress { width: 100%; height: 5px; border: 0; border-radius: 6px; background: #d5ddd2; accent-color: var(--accent); }
progress::-webkit-progress-bar { border-radius: 6px; background: #d5ddd2; }
progress::-webkit-progress-value { border-radius: 6px; background: var(--accent); }
progress::-moz-progress-bar { border-radius: 6px; background: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--muted); font-size: .84rem; font-weight: 630; text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.project-head { margin-top: 12px; }
.project-identity { display: grid; align-items: start; gap: 14px; min-width: 0; }
.project-identity .project-badge { width: 50px; height: 50px; }
.project-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-block: 1px solid var(--line); font-size: .87rem; font-weight: 650; }
.project-progress > div { display: grid; justify-items: end; gap: 5px; width: min(42%, 176px); }
.empty { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 13px; background: var(--surface); border-radius: 12px; }
.empty-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--accent); background: var(--accent-soft); border-radius: 9px; }
.empty strong { font-size: .92rem; }
.empty p { margin-top: 4px; color: var(--muted); font-size: .82rem; line-height: 1.42; }
.reference { margin-top: 26px; border-top: 1px solid var(--line); }
.reference summary { padding: 14px 2px; font-size: .88rem; font-weight: 650; }
.reference dl, .reference .sources { display: grid; gap: 5px; margin-bottom: 13px; color: var(--muted); font-size: .83rem; line-height: 1.44; }
.reference dt { color: var(--ink); font-weight: 660; }
.reference dd { margin-bottom: 6px; }
.reference a { display: inline-block; min-height: 44px; padding-top: 9px; color: var(--accent); font-size: .83rem; }
.source-path { margin-top: 3px; }
.startup { max-width: 460px; padding: 25px; margin: 10vh auto; }
.startup h1 { font-size: 1.7rem; }
.startup p { margin: 12px 0; }
.access-form { display: grid; gap: 8px; margin-top: 20px; }
.access-form label { font-weight: 650; }
.access-form input { min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); font-size: 1rem; }
.access-form [role="alert"]:empty { display: none; }
.access-form button { justify-self: start; margin-top: 6px; }
dialog {
  width: min(100% - 26px, 520px); max-height: min(90dvh, 850px); padding: 0;
  border: 1px solid #d8d5cb; border-radius: 16px; background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: #24282066; }
.editor-inner { padding: 20px; }
.editor-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 14px; }
.editor-head h2 { padding-top: 5px; font-size: 1.65rem; letter-spacing: -.032em; }
.editor-head p { margin-top: 4px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
#task-form { display: grid; gap: 12px; }
#task-form label, .sources label { display: grid; gap: 5px; font-size: .81rem; font-weight: 650; }
#task-form input, #task-form select, #task-form textarea, .source-path {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
  border: 1px solid #d3d4c8; border-radius: 8px; background: var(--canvas); caret-color: var(--accent); font-size: 1rem;
}
#task-form textarea { resize: vertical; }
#task-form input::placeholder, #task-form textarea::placeholder, .search input::placeholder { color: var(--muted); }
.source-path { font-size: .8rem; }
.editor-actions { display: flex; justify-content: space-between; gap: 10px; }
.form-error, .button.danger { color: var(--warning); }
.form-error { font-size: .84rem; }
.editor-children { margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); }
.editor-children h3 { font-size: 1rem; }
.editor-motivation, .motivation-item { border: 1px solid #d9d6c9; border-radius: 12px; background: #f4f0e6; }
.editor-motivation summary, .motivation-item summary { display: flex; min-height: 45px; align-items: center; gap: 9px; padding: 8px 11px; list-style: none; color: #39483d; font-size: .87rem; font-weight: 650; }
.editor-motivation summary::-webkit-details-marker, .motivation-item summary::-webkit-details-marker { display: none; }
.editor-motivation summary .icon:last-child, .motivation-item summary .icon:last-child { margin-left: auto; }
.editor-motivation[open] summary .icon:last-child, .motivation-item[open] summary .icon:last-child { transform: rotate(90deg); }
.editor-motivation-fields { display: grid; gap: 10px; padding: 4px 11px 11px; }
.earned-label { color: #3b6952; font-size: .78rem; }
.motivation-item { margin-top: 8px; padding: 0 11px 9px; }
.motivation-item summary { padding-inline: 0; }
.motivation-item .rows { margin-top: 9px; }
.motivation-symbol { display: grid; place-items: center; flex: none; width: 35px; height: 35px; color: #355847; border-radius: 9px; background: #e2ebe1; }
.motivation-title { display: grid; flex: 1; min-width: 0; gap: 3px; overflow-wrap: anywhere; text-align: left; }
.motivation-title small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.earned-rewards { display: grid; gap: 6px; margin-top: 9px; }
.earned-rewards summary { min-height: 44px; padding-block: 12px; color: var(--muted); font-size: .84rem; }
.reward-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid #d9d6c9; border-radius: 11px; background: #f4f0e6; color: var(--ink); text-align: left; }
.reward-row:hover { background: var(--raised); }
.parent-link { margin-top: 8px; padding: 0; border: 0; background: transparent; }
.notice {
  position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px); padding: 12px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 650;
}
.notice[data-completion=""]:not([data-error="true"]) { background: #e0ebe3; color: #254637; }
.notice { pointer-events: none; display: flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.notice-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 8px; color: #ffffff; background: #42745c; }
.notice[data-completion="reward"] { background: #2c5745; color: #ffffff; border: 1px solid #386b56; }
.notice[data-error="true"] { background: #873e31; color: #fff4ef; }
.territory-wave { pointer-events: none; fill: none; stroke: var(--claim-edge); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
@media (max-width: 1020px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
  .focus-step { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .rail { gap: 10px; }
  .nav-link { padding-inline: 8px; }
}
@media (max-width: 800px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .overview { display: none; }
}
@media (641px <= width <= 825px) {
  .rail { flex-wrap: wrap; column-gap: 14px; row-gap: 0; padding-block: 9px; }
  .rail .navigation { order: 1; flex: 1 0 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .rail { position: static; min-height: 54px; padding: max(6px, env(safe-area-inset-top)) 17px 6px; background: transparent; border-bottom: 0; }
  .brand { font-size: .79rem; letter-spacing: -.01em; }
  .brand .icon { width: 19px; height: 19px; }
  .navigation {
    position: fixed; z-index: 3; inset: auto 12px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px; padding: 5px 10px;
    border: 1px solid #dedbd0; border-radius: 21px; background: #fffdf8; box-shadow: 0 7px 24px #34383016;
  }
  .nav-link { justify-content: center; flex-direction: column; min-height: 53px; gap: 4px; padding: 5px 3px; font-size: .71rem; }
  .page { padding: 13px 16px calc(91px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-size: 2.28rem; }
  .today-head h1 { font-size: 3rem; }
  .page-date { margin-top: 6px; font-size: .84rem; }
  .head-actions { flex-wrap: wrap; justify-content: flex-end; }
  .day-cell { min-height: 54px; }
  .day-cell strong { font-size: 1rem; }
  .week-step { width: 30px; }
  .section { margin-top: 24px; }
  .section-head h2 { font-size: 1.23rem; }
  .day-section h2 { font-size: .98rem; }
  .day-section { margin-top: 15px; }
  .day-empty { font-size: .78rem; }
  .focus-section { margin-top: 25px; }
  .focus-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .focus-item { padding: 10px 12px 11px; }
  .focus-link { min-height: 44px; }
  .focus-step { flex-wrap: nowrap; margin-top: 6px; }
  .focus-title { font-size: 1rem; }
  .focus-date { margin-top: 4px; }
  .focus-accept { padding-inline: 9px; }
  .territories { margin-top: 23px; }
  .territory-atlas { height: auto; }
  .task-row, .suggestion-row { min-height: 57px; gap: 6px; }
  .notice { bottom: calc(73px + env(safe-area-inset-bottom)); }
  dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - 15px); margin: 0; border-radius: 16px 16px 0 0; }
  .editor-inner { padding: 15px 16px calc(16px + env(safe-area-inset-bottom)); }
  .search input { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav-link, .check-button, .day-cell, .filter, .focus-item { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
  .check-button.just-completed .icon { animation: mark-done 160ms var(--ease-out); }
  .territory-cell.new-territory { transform-box: fill-box; transform-origin: center; animation: claim-territory 240ms var(--ease-out); }
  .territory-trophy.new-trophy { animation: claim-territory 260ms var(--ease-out); }
  .territory-wave { animation: territory-wave 270ms var(--ease-out) both; }
  .notice-icon.reveal, .reward-row.just-rewarded .motivation-symbol { animation: reward-reveal 260ms var(--ease-out); }
  @keyframes mark-done { from { transform: scale(.92); opacity: .65; } to { transform: scale(1); opacity: 1; } }
  @keyframes claim-territory { from { transform: scale(.93); opacity: .25; } to { transform: scale(1); opacity: 1; } }
  @keyframes territory-wave { from { transform: scale(.97); opacity: .82; } to { transform: scale(1.54); opacity: 0; } }
  @keyframes reward-reveal { from { transform: scale(.9) rotate(-9deg); opacity: .32; } to { transform: scale(1) rotate(0); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .territory-wave { display: none; }
}

.goals-page { max-width: 1050px; }
.goals-page .page-head { margin-bottom: 25px; }
.goals-page .page-head h1 { font-size: 4.4rem; }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.goal-card, .goal-hero { --field: #edeee7; --goal-ink: #395340; }
.goal-finance { --object-ratio: 385 / 470; }
.goal-travel { --field: #e1e9ed; --goal-ink: #214e66; --object-ratio: 1120 / 460; }
.goal-family { --field: #f0e8e0; --goal-ink: #794b37; --object-ratio: 470 / 464; }
.goal-health { --field: #ebe8f0; --goal-ink: #5b4876; --object-ratio: 470 / 290; }
.goal-card {
  display: grid; grid-template-rows: auto 160px 1fr; min-width: 0; padding: 16px 18px 18px;
  border-radius: 18px; background: var(--field); text-decoration: none;
}
.goal-card.goal-travel { grid-column: 1 / -1; grid-row: 1; grid-template: auto 1fr / minmax(180px, .48fr) minmax(0, 1fr); min-height: 266px; padding: 20px 22px; gap: 0 18px; }
.goal-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 34px; }
.goal-card.goal-travel .goal-card-top { grid-column: 1 / -1; }
.goal-value { color: var(--goal-ink); font-size: .79rem; line-height: 1.1; }
.goal-value.measured { font-size: 1.6rem; font-variant-numeric: tabular-nums; font-weight: 680; letter-spacing: -.035em; }
.goal-open { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #ffffff85; color: var(--goal-ink); }
.goal-card:hover .goal-open { background: #ffffff; }
.goal-card-copy { align-self: start; min-width: 0; padding-top: 7px; }
.goal-card.goal-travel .goal-card-copy { grid-column: 1; grid-row: 2; align-self: end; }
.goal-card.goal-travel .goal-icon { grid-column: 2; grid-row: 2; }
.goal-card h2 { font-size: 1.22rem; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.goal-card.goal-travel h2 { font-size: 1.72rem; }
.goal-card p { margin-top: 5px; color: #525951; font-size: .82rem; line-height: 1.3; }
.goal-evidence { display: block; margin-top: 7px; color: var(--goal-ink); font-size: .76rem; font-variant-numeric: tabular-nums; }
.goal-card-progress { display: grid; gap: 4px; margin-top: 12px; }
.goal-card-progress strong { font-size: 1.42rem; color: var(--goal-ink); font-variant-numeric: tabular-nums; }
.goal-card-progress small { color: var(--muted); font-size: .81rem; font-variant-numeric: tabular-nums; }
.goal-icon { display: grid; place-items: center; min-width: 0; min-height: 0; }
.goal-object { position: relative; display: block; width: min(100%, 148px); aspect-ratio: var(--object-ratio, 1); }
.goal-travel .goal-object { width: min(100%, 525px); }
.goal-icon img { display: block; width: 100%; height: 100%; object-fit: fill; }
.goal-base { position: absolute; inset: 0; filter: grayscale(1) contrast(.86) brightness(1.14); }
.goal-fill { position: absolute; inset: 0; clip-path: inset(100% 0 0); }
.goal-hero { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 7px; padding: 23px; border-radius: 18px; background: var(--field); }
.goal-hero .goal-icon { min-height: 174px; }
.goal-hero .goal-finance .goal-object { width: min(100%, 128px); }
.goal-hero h1 { font-size: 2.8rem; line-height: .99; letter-spacing: -.04em; text-wrap: balance; }
.goal-milestones { display: grid; gap: 8px; margin: 19px 0 0; padding: 13px 16px 13px 32px; border-radius: 12px; background: var(--surface); list-style: disc; color: var(--muted); font-size: .91rem; line-height: 1.4; }
.goal-note { margin: 8px 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.44; }
.goals-index { max-width: 790px; }
.wish-entry { display: block; overflow: hidden; border-radius: 17px; background: var(--surface); color: var(--ink); text-decoration: none; }
.wish-entry:hover { background: #e8eee6; }
.wish-entry strong, .wish-entry small { display: block; }
.wish-entry .wish-photo { aspect-ratio: 1.55; border-radius: 0; }
.wish-entry .wish-photo img { height: 100%; object-fit: cover; object-position: center 29%; }
.wish-entry-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px 15px; }
.wish-entry strong { font-size: 1.26rem; letter-spacing: -.025em; }
.wish-entry small { margin-top: 4px; font-size: .83rem; color: var(--muted); }
.wish-entry-caption > .icon { color: var(--accent); }
.goal-directory { margin-top: 18px; border-block: 1px solid var(--line); }
.goal-directory li + li { border-top: 1px solid var(--line); }
.goal-directory-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 67px; padding: 7px 3px; text-decoration: none; }
.goal-directory-link:hover { background: var(--surface); }
.goal-directory-link .goal-icon { width: 40px; height: 40px; background: #e9e7dd; border-radius: 10px; }
.goal-directory-link .goal-object { width: 26px; }
.goal-directory-copy strong, .goal-directory-copy small { display: block; }
.goal-directory-copy strong { font-size: .96rem; }
.goal-directory-copy small { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.32; }
.goal-directory-status { color: var(--accent); font-size: .72rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goal-directory-link > .icon { color: var(--muted); }
.wish-board { margin: 12px 0 29px; }
.wish-board > h1 { margin-bottom: 19px; font-size: 2.65rem; line-height: 1.04; letter-spacing: -.038em; }
.wish-board > h1:focus { outline: none; }
.travel-page { max-width: 790px; }
.travel-summary { margin-top: 8px; padding: 7px 0 0; }
.travel-summary h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.travel-summary .goal-card-progress strong { font-size: 1rem; }
.wish-grid { display: grid; gap: 20px; }
.wish-card { min-width: 0; }
.wish-card + .wish-card { padding-top: 20px; border-top: 1px solid var(--line); }
.wish-photo { position: relative; display: block; overflow: hidden; border-radius: 15px; background: #e9e6dc; }
.wish-photo span { display: block; min-width: 0; }
.wish-photo .wish-base { height: 100%; }
.wish-photo img { display: block; width: 100%; height: auto; }
.wish-base { filter: grayscale(1); }
.wish-body { padding: 10px 0 0; }
.wish-body h3 { font-size: 1.39rem; line-height: 1.12; letter-spacing: -.027em; }
.wish-card--kama .wish-body h3 { font-size: 1.64rem; }
.wish-actions { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.wish-meta, .wish-stage { margin-top: 4px; color: var(--muted); font-size: .79rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.wish-stage { color: var(--accent); font-weight: 620; }
.wish-add { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 11px; background: #e7ede6; color: var(--accent); font-size: .79rem; font-weight: 650; white-space: nowrap; }
.wish-add:hover { background: var(--accent-soft); }
.wish-steps summary { min-height: 44px; padding: 12px 0; font-size: .85rem; font-weight: 650; cursor: pointer; }
.editor-comments ul:not(:empty) { display: grid; gap: 8px; margin: 4px 0 12px; }
.editor-comments li { padding: 9px 11px; border-radius: 9px; background: var(--canvas); }
.editor-comments time { color: var(--muted); font-size: .77rem; }
.editor-comments li p { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
#task-comment-form { display: grid; justify-items: start; gap: 8px; }
#task-comment-form label { width: 100%; display: grid; gap: 5px; font-size: .81rem; font-weight: 650; }
#task-comment-form textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #d3d4c8; border-radius: 8px; background: var(--canvas); font-size: 1rem; }
@media (max-width: 640px) {
  .wish-board > h1 { font-size: 2.08rem; margin-bottom: 15px; }
  .wish-grid { gap: 18px; }
  .wish-card + .wish-card { padding-top: 18px; }
  .wish-card--kama .wish-body h3 { font-size: 1.35rem; }
  .wish-card--paris .wish-body h3 { font-size: 1.24rem; }
}
.goal-completed { margin-top: 12px; }
#income-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
#income-form label { flex: 1 1 145px; min-width: 0; display: grid; gap: 5px; font-size: .82rem; font-weight: 650; }
#income-form input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d3d4c8; border-radius: 8px; background: var(--canvas); font-size: 1rem; }
#income-form .form-error { flex: 1 0 100%; }
@media (max-width: 640px) {
  .goals-page { padding-inline: 14px; }
  .goals-page .page-head { margin-bottom: 14px; }
  .goals-page .page-head h1 { font-size: 3rem; }
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .goal-card { grid-template-rows: auto 83px 1fr; padding: 9px 10px 12px; }
  .goal-card h2 { font-size: 1.03rem; }
  .goal-card p { font-size: .74rem; }
  .goal-card .goal-object { width: min(100%, 93px); }
  .goal-card .goal-finance .goal-object { width: min(100%, 66px); }
  .goal-card .goal-family .goal-object { width: min(100%, 80px); }
  .goal-card.goal-travel { grid-template: auto auto auto / minmax(0, 1fr); min-height: 0; padding: 10px 13px 13px; }
  .goal-card.goal-travel .goal-icon { grid-row: 2; grid-column: 1; padding: 2px 0 7px; }
  .goal-card.goal-travel .goal-object { width: 100%; }
  .goal-card.goal-travel .goal-card-copy { grid-row: 3; }
  .goal-card.goal-travel h2 { font-size: 1.25rem; text-wrap: initial; }
  .goal-card.goal-health { grid-column: 1 / -1; grid-template: auto auto / 112px minmax(0, 1fr); gap: 0 10px; align-items: center; }
  .goal-card.goal-health .goal-card-top { grid-column: 1 / -1; }
  .goal-card.goal-health .goal-card-copy { align-self: center; }
  .goal-hero { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 14px; }
  .goal-hero .goal-icon { min-height: 0; }
  .goal-hero h1 { font-size: 2.15rem; }
  .goal-hero .goal-object { width: min(44%, 135px); }
  .goal-hero.goal-travel .goal-object { width: 100%; }
  .page-head .button.primary { padding-inline: 10px; }
}

@media (max-width: 640px) {
  .rail { padding-inline: 18px; }
  .goals-page, .today-page { padding-inline: 18px; }
  .goals-index .page-head h1 { font-size: 2.63rem; }
  .goal-directory-link { gap: 7px; }
}

.today-page .focus-item { background: #edece3; border-color: transparent; border-radius: 17px; }
.today-page .focus-item:has(.project-badge.heat) { background: #f0e8e0; }
.today-page .focus-item:has(.project-badge.signal) { background: #e1e9ed; }
.today-page .focus-item:hover, .today-page .focus-item:focus-within { border-color: #a4b6a6; }

.today-page { max-width: 790px; }
.today-page .page-date { font-variant-numeric: tabular-nums; }
.daily-agenda .task-name { font-size: 1rem; font-weight: 650; }
.daily-agenda .check-button::before { border-radius: 50%; }
.daily-agenda .task-text:hover .task-name { text-decoration-thickness: 1px; }
.day-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; color: #545a51; font-size: .8rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.day-goal { display: inline-flex; align-items: center; gap: 4px; color: #255647; font-weight: 650; }
.day-budget { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; padding: 12px 0; border-block: 1px solid var(--line); }
.day-budget h2 { font-size: .94rem; }
.day-budget p { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.day-budget .budget-balance { color: #255647; font-weight: 650; }
.day-budget .budget-balance.warning { color: var(--warning); }
.budget-button { border-radius: 12px; background: #fdfcf8; }
.day-backlog { margin-top: 9px; }
.day-backlog summary { min-height: 44px; padding: 11px 0; font-size: .89rem; font-weight: 650; }
.day-backlog summary span { margin-left: 5px; color: var(--muted); }
.day-review { overflow: hidden; border-radius: 17px; background: var(--surface); }
.review-cover { display: flex; align-items: end; min-height: 187px; padding: 20px; color: #fffdf8; background: linear-gradient(90deg, #201a13df 0%, #201a13aa 42%, #201a1326 100%), url('/review.webp') center 58% / cover, #69503e; }
.review-cover span { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.review-cover h2 { max-width: 12ch; font-size: 2.25rem; line-height: 1.01; letter-spacing: -.034em; }
.review-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; border-bottom: 1px solid #ebe8df; }
.review-counts > div { display: grid; gap: 6px; min-width: 0; padding: 0 16px; }
.review-counts > div + div { border-left: 1px solid #ebe8df; }
.review-counts dt { color: var(--muted); font-size: .83rem; }
.review-counts dd { font-size: 1.85rem; font-weight: 690; letter-spacing: -.032em; font-variant-numeric: tabular-nums; }
.review-counts dd span { color: var(--muted); font-size: 1rem; font-weight: 560; letter-spacing: 0; }
.review-open { padding: 15px 16px; }
.review-open h3 { margin-bottom: 5px; font-size: .98rem; }
.review-open li { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 55px; padding: 4px 0; font-size: .9rem; }
.review-open li + li { border-top: 1px solid #ebe8df; }
.review-open .button { color: #255647; }
#capacity-form { display: grid; gap: 12px; }
#capacity-form label { display: grid; gap: 5px; font-size: .81rem; font-weight: 650; }
#capacity-form input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d3d4c8; border-radius: 8px; background: var(--canvas); font-size: 1rem; }
@media (max-width: 640px) {
  .navigation { gap: 3px; padding-inline: 5px; border-radius: 22px; }
  .navigation .nav-link { border-radius: 17px; }
  .today-page .today-head { align-items: center; margin-bottom: 9px; }
  .daily-agenda .task-name { font-size: .93rem; }
  .review-cover { min-height: 162px; padding: 14px 16px; }
  .review-cover h2 { font-size: 1.85rem; }
}
.day-calendar {
  background: linear-gradient(139deg, #2e4562, #23334c);
  color: #f5f9ff;
  border-radius: 18px;
  padding: 2px 8px 8px;
}
.calendar-head, .calendar-arrows { display: flex; align-items: center; }
.calendar-head { justify-content: space-between; gap: 4px; }
.calendar-arrows { flex: none; }
.week-scroll {
  display: flex; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 11px;
}
.week-scroll::-webkit-scrollbar { display: none; }
.week-days {
  display: grid; flex: 0 0 100%; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px; scroll-snap-align: start; scroll-snap-stop: always; user-select: none;
}
.week-days .day-cell { min-height: 48px; color: #f4faff; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .week-days .day-cell:not(.selected):hover { background: #ffffff26; }
}
.day-calendar .day-cell span { color: #d4e1f3; }
.day-calendar .day-cell.selected span { color: #345371; }
.day-calendar .day-cell.selected { color: #17314f; background: #e0ecff; border-color: transparent; box-shadow: inset 0 1px #fff; }
.day-calendar .day-cell.current-day:not(.selected) { border-color: #bedbff91; }
.day-calendar .day-cell i.has-task { background: #a1ecd6; }
.day-calendar .day-cell.selected i.has-task { background: #21634e; }
.day-calendar :focus-visible { outline-color: #c4e0fb; outline-offset: -3px; }
[data-swipe-days] { touch-action: pan-y pinch-zoom; }
.date-arrows { display: flex; gap: 3px; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; text-align: center; }
.month-grid > span { color: var(--muted); font-size: .84rem; padding-block: 4px; }
.month-grid .day-cell { min-height: 44px; padding: 0; display: grid; place-items: center; }
.month-grid .day-cell[aria-pressed="true"] { background: #dce9f9; color: #19375c; }
.day-reward-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: #645126; font-size: .82rem; line-height: 1.45; }
.day-reward-note .icon { margin-top: 1px; }
.day-reward-note small { display: block; margin-top: 3px; font-size: .76rem; }
.day-reward-note[data-unlocked="true"] { color: #1e5b4a; }
.day-review .review-extra { padding: 11px 18px 15px; border-top: 1px solid var(--line); }
.review-extra h3 { font-size: .97rem; margin-bottom: 5px; }
.review-extra li { padding: 5px 0; }
.review-extra li small, .review-extra p { display: block; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.goal-map > h2 { margin-bottom: 12px; }
.goal-directions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.goal-directions .button { flex: 1 1 29%; min-width: 0; align-items: flex-start; flex-direction: column; text-align: left; white-space: normal; overflow-wrap: anywhere; gap: 2px; padding: 7px 8px; font-size: .78rem; }
.goal-directions .button[aria-pressed="true"] { color: #164d41; background: #dcefe8; border-color: #accbbf; }
.goal-directions small, .direction-steps small { display: block; font-weight: 520; color: var(--muted); }
.goal-direction { padding: 13px 15px; border-radius: 15px; background: var(--surface); }
.direction-outcomes { display: grid; gap: 9px; color: #263e5d; }
.direction-outcomes > div + div { border-top: 1px solid var(--line); padding-top: 9px; color: #254f42; }
.direction-outcomes strong { font-size: .76rem; }
.direction-outcomes p { margin-top: 2px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.direction-steps { margin-top: 9px; }
.direction-steps li { display: flex; align-items: flex-start; gap: 9px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.direction-steps .icon { color: #28735d; }
.direction-steps small { margin-top: 3px; }
.direction-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 11px; }
.direction-actions .button { white-space: normal; }
.day-goal { display: inline-flex; gap: 4px; align-items: center; color: #245e50; font-weight: 630; }

:root {
  color: #17253b;
  background: #edf2fa;
  --canvas: #edf2fa;
  --surface: #fbfcff;
  --ink: #17253b;
  --muted: #4d5b70;
  --line: #cfd9e7;
  --raised: #e2ebf7;
  --accent: #244d83;
  --accent-soft: #dce9fa;
  --glass: linear-gradient(154deg,#ffffffc9,#d5e3f5b3);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px #9db8de4a, 0 6px 16px -7px #24466a62;
}
body { background: linear-gradient(132deg,#f6f8ff 4%,#e7f0f9 66%,#edf1f9); }
.rail { background: #f7faff; }
.brand .icon { color: var(--accent); }
.nav-link { border-radius: 999px; }
.nav-link.active { background: #dbe8fa; box-shadow: inset 0 1px #ffffffb3; }
.layout .button, .editor-inner .button, .date-arrows .icon-button {
  border-radius: 999px;
  border-color: #abc1dc87;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  color: #244566;
}
.layout .button:hover, .editor-inner .button:hover, .date-arrows .icon-button:hover { background: #e1ecfb; }
.layout .button.primary, .editor-inner .button.primary {
  color: #fff;
  border-color: #2e5289;
  background: linear-gradient(158deg,#426ca7,#254b83 76%,#1f4477);
  box-shadow: inset 0 1px #c7deff89, inset 0 -1px #143362, 0 7px 17px -8px #1a4277a6;
}
.layout .button.primary:hover, .editor-inner .button.primary:hover { background: #315b99; }
.layout .button:active, .editor-inner .button:active, .date-arrows .icon-button:active { box-shadow: inset 0 2px 4px #20365133; }
.editor-inner .button.danger { color: var(--warning); }
.layout .calendar-head .button, .layout .calendar-head .week-step {
  color: #f6faff; background: transparent; border: 1px solid transparent; box-shadow: none;
}
.layout .calendar-head .button:hover, .layout .calendar-head .week-step:hover { background: #ffffff23; }
.calendar-head .month-toggle { padding-inline: 6px; gap: 5px; }
.calendar-head .calendar-today { padding-inline: 5px; }
.layout .goal-directions .button { border-radius: 14px; }
.layout .goal-directions .button[aria-pressed="true"] { color: #164d41; background: #dcefe8; border-color: #95bcad; }
dialog { background: var(--surface); border-color: #c2d0e2; box-shadow: 0 19px 50px #1e355754; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .rail { background: #f5f9ffd1; -webkit-backdrop-filter: blur(19px) saturate(1.42); backdrop-filter: blur(19px) saturate(1.42); }
}
@media (max-width: 640px) {
  .rail { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rail .navigation {
    inset-inline: max(11px, env(safe-area-inset-left)) max(11px, env(safe-area-inset-right));
    border-radius: 30px; border: 1px solid #b1c4deab; background: #f1f7ff;
    box-shadow: inset 0 1px 1px #fff, 0 9px 28px -7px #213e6662;
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .rail .navigation { background: #edf6fccc; -webkit-backdrop-filter: blur(20px) saturate(1.55); backdrop-filter: blur(20px) saturate(1.55); }
  }
  .rail .navigation .nav-link { border-radius: 23px; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #edf4fc; }
  .rail, .rail .navigation { background: #f3f7fc; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.today-page .today-head { align-items: center; margin-bottom: 13px; }
.today-page .today-head h1 { font-size: clamp(2.05rem, 7.5vw, 3.5rem); font-weight: 730; line-height: 1.02; overflow-wrap: normal; }
.today-heading-calendar { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; letter-spacing: inherit; }
.today-heading-calendar svg { color: var(--accent); }
.today-head .page-date { margin-top: 5px; }
.today-head .primary { min-width: 46px; }
.daily-agenda { margin-top: 14px; }
.daily-agenda .section-head { margin-bottom: 3px; }
.daily-agenda .section-head h2 { font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.today-meter {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.today-meter .progress-track { height: 4px; }
.layout .day-view-button { gap: 5px; background: #f9fcff70; border-color: #b2c4dc; box-shadow: none; }
.review-toolbar { display: flex; justify-content: flex-end; margin-block: 10px 6px; }
.daily-agenda .rows { margin-top: 9px; border: 0; border-radius: 13px; background: var(--surface); }
.daily-agenda .task-row { min-height: 56px; padding: 0; gap: 3px; border: 0; background: transparent; }
.daily-agenda .task-row + .task-row { border-top: 1px solid var(--line); }
.daily-agenda .task-text { position: relative; min-height: 53px; padding: 6px 28px 6px 1px; }
.daily-agenda .task-text > .icon { position: absolute; top: calc(50% - 7px); right: 3px; color: #526177; }
.daily-agenda .check-button::before { border-color: var(--task-color); background: var(--task-tint); }
.daily-agenda .check-button[aria-pressed="true"]::before { background: var(--task-color); }
.daily-routine-row { --task-color: #755589; --task-tint: #eee7f4; }
.daily-goal-row { --task-color: #287060; --task-tint: #dff0ea; }
.progress-track { display: block; height: 5px; border-radius: 5px; overflow: hidden; background: #cfddeb; }
.progress-track > span { display: block; width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, #397c81, #2d635d); }
.daily-agenda .day-empty { padding-block: 9px; }
.goal-directory .progress-track { max-width: 180px; height: 4px; margin-top: 5px; }
.goal-hero .progress-track, .travel-summary .progress-track { max-width: 260px; margin-top: 8px; }
.all-goal-tasks summary { padding-block: 12px; min-height: 44px; font-weight: 650; }
.all-goal-tasks summary span { margin-left: 4px; color: var(--muted); }
#wish-board-heading { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .rail-actions .voice-button { min-inline-size: 44px; padding-inline: 10px; }
  .today-head .primary span { display: none; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .today-head .primary { padding-inline: 0; border-radius: 15px; }
  .today-head [data-swipe-days] { flex: 1; }
  .calendar-head .week-step { width: 39px; }
}
@media (max-width: 335px) {
  .day-calendar { padding-inline: 6px; }
  .week-days { gap: 1px; }
  .calendar-head .month-toggle .icon:first-child { display: none; }
  .calendar-head .week-step { width: 32px; }
}

#editor:has(.task-sheet) {
  --task-sheet-height: min(90dvh, 850px);
  width: min(100% - 26px, 560px);
  max-block-size: var(--task-sheet-height);
  overflow: hidden;
  border-radius: 21px;
}
.task-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-block-size: calc(var(--task-sheet-height) - 2px);
  min-inline-size: 0;
  padding: 0;
}
.task-sheet > .editor-head {
  align-items: center;
  margin: 0;
  padding: 13px 18px 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #f1f6fc;
}
.task-sheet .editor-head h2 { padding: 0; font-size: 1.42rem; line-height: 1.18; }
.task-sheet .editor-head h2:focus { outline: none; }
.task-sheet .editor-head p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
}
.task-sheet .editor-head .icon-button { flex: none; border-radius: 50%; background: #e5eef8; }
.task-sheet-body {
  min-block-size: 0;
  min-inline-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 12px;
  padding: 17px 22px 21px;
}
#task-form, #task-comment-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
:is(#task-form, #task-comment-form, #task-progress-form, .editor-motivation-fields) label {
  min-inline-size: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  color: #344863;
  font-weight: 640;
}
:is(#task-form, .editor-motivation-fields) :is(input, select, textarea), #task-comment-form textarea, #task-progress-form input {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 46px;
  padding: 9px 11px;
  border: 1px solid #c4d2e5;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
#task-form input:is([type="date"], [type="time"]) {
  -webkit-appearance: none;
  appearance: none;
}
#task-form input::-webkit-date-and-time-value {
  margin: 0;
  min-block-size: 1.35em;
  text-align: start;
}
#task-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 31px;
  background-image: linear-gradient(45deg, transparent 50%, #4c6585 50%), linear-gradient(135deg, #4c6585 50%, transparent 50%);
  background-position: right 17px center, right 12px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
#task-form textarea, #task-comment-form textarea { resize: vertical; }
.task-textarea-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
#task-form .task-autosize, .task-textarea-sizer {
  grid-area: 1 / 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#task-form .task-title-wrap .task-autosize, .task-title-wrap .task-textarea-sizer { font-size: 1.06rem; font-weight: 630; }
.task-textarea-sizer { padding: 9px 11px; border: 1px solid transparent; visibility: hidden; }
#task-form .task-autosize { overflow: hidden; resize: none; }
.task-options { min-inline-size: 0; border-block-start: 1px solid var(--line); }
.task-options > summary {
  display: flex; align-items: center; gap: 9px; min-block-size: 44px;
  color: #344863; font-size: .87rem; font-weight: 650; list-style: none;
}
.task-options > summary::-webkit-details-marker { display: none; }
.task-options > summary small { min-width: 0; margin-inline-start: auto; color: var(--muted); font-size: .8rem; text-align: end; overflow-wrap: anywhere; }
.task-options > summary .icon { margin-inline-start: auto; }
.task-options > summary small + .icon { margin-inline-start: 0; }
.task-options[open] > summary .icon { transform: rotate(180deg); }
.task-goal-fields { display: grid; gap: 10px; margin-block-start: 11px; }
.task-extra { margin-block-start: 10px; }
.task-progress { margin-bottom: 14px; border-block-start: 0; border-block-end: 1px solid var(--line); }
.task-progress > summary small { font-variant-numeric: tabular-nums; }
#task-progress-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding-block: 2px 12px; }
#task-progress-form .form-error { grid-column: 1 / -1; }
.task-timing { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.task-move-reason { margin-top: 11px; }
.task-sheet .editor-motivation, .task-sheet .editor-comments { border: 1px solid var(--line); border-radius: 12px; background: #f3f7fc; }
.task-sheet .editor-comments { margin-top: 13px; padding: 0 11px; }
.task-sheet :is(.editor-motivation, .editor-comments) summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 46px;
  color: #344c69;
  font-size: .87rem;
  font-weight: 650;
  list-style: none;
}
.task-sheet .editor-comments summary::-webkit-details-marker { display: none; }
.task-sheet .editor-comments summary .icon:last-child { margin-left: auto; }
.task-sheet .editor-comments[open] summary .icon:last-child { transform: rotate(90deg); }
.task-sheet #task-comment-form { padding-block: 1px 11px; }
.task-management { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.task-management .parent-link { margin: 0; }
.task-management .button.danger { margin-left: auto; border-color: transparent; background: transparent; box-shadow: none; }
.task-sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 11px 22px;
  border-top: 1px solid var(--line);
  background: #f1f6fc;
}
.task-sheet-actions .form-error { grid-column: 1 / -1; overflow-wrap: anywhere; }
.task-sheet-actions .button { min-inline-size: 0; min-block-size: 46px; }
@media (max-width: 640px) {
  #editor:has(.task-sheet) {
    --task-sheet-height: calc(var(--task-viewport-height, 100dvh) - max(10px, env(safe-area-inset-top)));
    inset-block-end: var(--task-viewport-bottom, 0px);
    width: 100%;
    border-radius: 19px 19px 0 0;
  }
  .task-sheet > .editor-head { padding-inline: 16px; }
  .task-sheet-body, .task-sheet-actions { padding-inline: 16px; }
  .task-sheet-actions { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .task-timing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-date { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
  .task-timing { grid-template-columns: minmax(0, 1fr); }
}

.campaign-page { max-width: 790px; }
#planner-campaign, #campaign-week-plan, .campaign-year { scroll-margin-block-start: calc(var(--campaign-rail-height, 70px) + 8px); }
.campaign-avatar {
  display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0;
  padding: 3px 0; border: 0; background: transparent; color: #244566;
  font-size: .75rem; font-weight: 660; line-height: 1.18; text-align: center; text-decoration: none;
}
.campaign-portrait {
  position: relative; z-index: 1; display: grid; place-items: center; overflow: hidden;
  width: 49px; height: 49px; border-radius: 50%; border: 1px solid #b9cce2; background: #edf4fc;
}
.campaign-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
[data-branch="houseboat"] .campaign-portrait img,
[data-branch="finance"] .campaign-portrait img { object-fit: cover; }
.campaign-avatar[aria-current="true"] .campaign-portrait { outline: 2px solid #437099; outline-offset: 2px; border-color: transparent; }
.campaign-avatar[aria-current="true"] { color: #173e6c; }
@media (hover: hover) and (pointer: fine) {
  .campaign-avatar:hover .campaign-portrait { border-color: #426d96; }
}
.campaign-overview-page { max-width: 1360px; }
.roadmap-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.roadmap-header h1 { color: #183553; font-size: clamp(1.65rem, 4vw, 2.4rem); letter-spacing: -.025em; }
.roadmap-header p { margin-top: 5px; color: #435d78; font-size: .82rem; }
.roadmap-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.roadmap-controls .button { min-height: 44px; white-space: nowrap; }
.roadmap-zoom { display: flex; gap: 3px; }
.roadmap-zoom .button { min-width: 44px; padding-inline: 8px; justify-content: center; }
.roadmap-zoom [data-id="reset"] { min-width: 52px; font-variant-numeric: tabular-nums; }
.roadmap-zoom .button:disabled { opacity: .55; }
.roadmap-viewport {
  position: relative; overflow: auto; min-width: 0;
  height: clamp(272px, calc(100vh - 240px), 726px);
  height: clamp(272px, calc(100dvh - 240px), 726px);
  border: 1px solid #b7c9de; border-radius: 16px; background: #e9f1fa;
  overscroll-behavior: contain; touch-action: none; overflow-anchor: none;
  cursor: grab; user-select: none; -webkit-user-select: none; scrollbar-color: #7e99b6 #e9f1fa;
}
.roadmap-viewport[data-dragging], .roadmap-viewport[data-dragging] * { cursor: grabbing; }
.roadmap-viewport:focus-visible, .roadmap-node:focus-visible { outline: 2px solid #244f7e; outline-offset: -2px; }
.roadmap-bed { position: relative; min-width: 100%; min-height: 100%; overflow: hidden; }
.roadmap-canvas {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--map-scale, 1));
  background: radial-gradient(circle, #9eb4cb 0.8px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 86% 49%, #d2e2f2, transparent 46%),
    radial-gradient(ellipse at 4% 48%, #d9e6f5, transparent 38%), #edf4fb;
}
.roadmap-lines { position: absolute; inset: 0; pointer-events: none; }
.roadmap-edge { color: var(--roadmap-branch); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roadmap-long > path:first-child { stroke-dasharray: 4 5; stroke-width: 1.35; }
.roadmap-viewport [data-branch="health"], .task-map-options [data-branch="health"] { --roadmap-branch: #26746c; }
.roadmap-viewport [data-branch="family"], .task-map-options [data-branch="family"] { --roadmap-branch: #8a4e79; }
.roadmap-viewport [data-branch="finance"], .task-map-options [data-branch="finance"] { --roadmap-branch: #885622; }
.roadmap-viewport [data-branch="own-projects"], .task-map-options [data-branch="own-projects"] { --roadmap-branch: #3b609d; }
.roadmap-node {
  position: absolute; top: calc(var(--node-y) - var(--node-radius)); left: var(--node-x);
  z-index: 1; transform: translateX(-50%); width: 142px; padding: 0 4px 4px;
  gap: 5px; color: #213d5c; font-size: .85rem; overflow-wrap: anywhere;
}
.roadmap-node .campaign-portrait {
  width: calc(var(--node-radius) * 2); height: calc(var(--node-radius) * 2);
  border: 2px solid var(--roadmap-branch, #486f9b); color: var(--roadmap-branch, #315d8c);
  background: #f6faff; box-shadow: 0 7px 13px -9px #233f64a0;
}
.roadmap-node .campaign-portrait img { object-fit: cover; -webkit-user-drag: none; }
.roadmap-label, .roadmap-node > small { padding: 1px 4px; border-radius: 3px; background: #edf4fb; }
.roadmap-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.roadmap-direction .roadmap-label, .roadmap-today .roadmap-label { font-size: .92rem; font-weight: 730; }
.roadmap-direction .roadmap-label { font-size: .84rem; white-space: nowrap; }
.roadmap-node .roadmap-date {
  align-content: center; gap: 2px; color: #234c73; background: #f5faff;
  font-variant-numeric: tabular-nums;
}
.roadmap-date strong { font-size: 1.6rem; line-height: 1; font-weight: 730; }
.roadmap-date small { color: #435d78; font-size: .78rem; line-height: 1.1; }
.roadmap-node > small { color: #415b77; font-size: .74rem; line-height: 1.15; }
.roadmap-node[data-draft] .campaign-portrait { border-style: dashed; box-shadow: none; }
.roadmap-node[data-done] .campaign-portrait { background: #e0f4e9; border-color: #327354; color: #245c42; }
.roadmap-node > .roadmap-done { color: #245c42; }
.roadmap-shared .campaign-portrait { --roadmap-branch: #53658c; }
.roadmap-shared .roadmap-label { -webkit-line-clamp: 3; }
.roadmap-shared > .roadmap-shared-label { color: #344f71; }
.roadmap-finish .roadmap-label { font-size: 1.4rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.roadmap-vision {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  width: 300px; text-align: center; color: #2b4866; font-size: .85rem; line-height: 1.45;
  padding: 7px; background: #e7f0f9; border-radius: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .roadmap-node .campaign-portrait { transition: transform 150ms var(--ease-out); }
  .roadmap-node:active .campaign-portrait { transform: scale(.96); }
}
@media (max-width: 640px) {
  .roadmap-header { display: grid; gap: 7px; margin-bottom: 9px; }
  .roadmap-header p { display: none; }
  .roadmap-controls { gap: 4px; }
  .roadmap-controls .button { padding-inline: 8px; font-size: .77rem; }
}
.task-map-branches { border: 0; min-width: 0; padding: 0; margin: 14px 0 0; }
.task-map-branches legend { padding: 0; color: #304c6a; font-weight: 660; font-size: .85rem; }
.task-map-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.task-map-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
.task-map-options input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--roadmap-branch, #315d8c); }
.task-map-options span { overflow-wrap: anywhere; }

.campaign-plan { margin-top: 13px; }
.campaign-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #294d72; font-size: .87rem; font-weight: 650; text-decoration: none; }
.campaign-back:hover { text-decoration: underline; }
.campaign-plan-head, .campaign-plan-period { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.campaign-plan-head h1 { color: #183553; font-size: 1.4rem; line-height: 1.14; letter-spacing: -.025em; }
.campaign-branch-description { max-width: 53ch; margin-top: 6px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.campaign-plan-head:has(.campaign-branch-description) { align-items: flex-start; }
.campaign-preview {
  position: relative;
  flex: none;
  inline-size: clamp(80px, 21vw, 106px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  border: 1px solid #b9cce2;
  border-radius: 11px;
  background: #edf4fc;
}
.campaign-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.campaign-preview-icon {
  position: absolute;
  inset-block-end: 4px;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #183553d9;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .campaign-preview:hover { border-color: #426d96; }
}
.campaign-plan-period { margin-top: 10px; }
.campaign-week-date {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 3px;
  border: 0; background: transparent; color: #2b4a6d; text-align: left; font-size: .87rem;
}
.campaign-week-date small { display: block; margin-top: 2px; color: var(--muted); font-size: .73rem; }
.campaign-week-date .campaign-week-dot { width: 36px; height: 36px; }
.campaign-task-head { margin-top: 8px; }
.campaign-task-head h3 { font-size: 1.02rem; line-height: 1.25; }
.campaign-plan .rows .task-row[data-highlighted-task] { background: #e3edf9; border-radius: 8px; }
.campaign-income { margin-top: 13px; }
.campaign-income-progress {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px;
  margin-block-start: 13px; max-width: 410px; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums;
}
.campaign-income .income-panel { margin-top: 20px; }
.campaign-backlog { margin-top: 8px; }
.campaign-backlog li { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .87rem; }
.campaign-backlog li span { overflow-wrap: anywhere; }
.campaign-path { margin-top: 18px; }
.campaign-path > .campaign-year:first-of-type { margin-top: 3px; }
.campaign-year { position: relative; min-width: 0; }
.campaign-year + .campaign-year::before {
  content: ''; position: absolute; pointer-events: none; left: 24px; top: -13px; height: 24px; border-left: 1px solid #b6c9de;
}
.campaign-year summary {
  display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 10px;
  min-height: 59px; padding: 2px 6px 2px 0; color: #344e6c; font-size: .88rem; font-weight: 600; list-style: none;
}
.campaign-year summary::-webkit-details-marker { display: none; }
.campaign-year[open] summary > .icon { transform: rotate(180deg); }
.campaign-year-dot {
  z-index: 1; display: grid; place-items: center; width: 49px; height: 49px;
  border: 1px solid #bacde2; border-radius: 50%; background: #f4f8fe; color: #244566;
  font-size: .88rem; font-variant-numeric: tabular-nums;
}
.campaign-year-dot[data-current="true"] { background: #dae9fa; border-color: #83a7ce; }
.campaign-week-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(44px,1fr)); gap: 1px;
  margin: 3px 0 11px 24px; padding: 5px 0 5px 10px; border-left: 1px solid #b6c9de;
}
.campaign-week { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; text-decoration: none; }
.campaign-week-dot {
  display: inline-grid; place-items: center; width: 33px; height: 33px;
  flex: none; border: 1px solid #bfcfe1; border-radius: 50%; background: #f2f6fb; color: #38506c;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.campaign-week[aria-current="date"] .campaign-week-dot { outline: 2px solid #345e8a; outline-offset: 2px; }
.campaign-week[data-current="true"] .campaign-week-dot { border-color: #345e8a; }
.campaign-week-dot[data-score="green"] { background: #d1eddf; color: #165440; border-color: #76aa93; }
.campaign-week-dot[data-score="yellow"] { background: #fff1b6; color: #634e10; border-color: #c1ab53; }
.campaign-week-dot[data-score="amber"] { background: #ffe2ab; color: #693d0b; border-color: #cc9c58; }
.campaign-week-dot[data-score="orange"] { background: #ffcfb1; color: #713318; border-color: #cf967e; }
.campaign-week-dot[data-score="red"] { background: #f8d0d5; color: #7a293a; border-color: #cc8a9a; }
.campaign-photo img { display: block; width: 100%; max-height: min(62dvh, 550px); object-fit: contain; border-radius: 12px; }
.campaign-photo p { margin-top: 12px; color: #344e6c; font-size: .93rem; line-height: 1.5; }
#editor:has(.campaign-photo) { width: min(100% - 24px, 710px); }

@media (max-width: 640px) {
  .campaign-layout .rail { position: sticky; background: #f1f6fc; border-bottom: 1px solid var(--line); }
  #editor:has(.campaign-photo) { width: 100%; }
}

.today-page .daily-agenda { margin-top: 7px; }
.today-done { margin-top: 10px; }
.today-done > summary { padding-inline: 3px; }
.daily-agenda .today-done .rows { margin-top: 0; }
