/* Günce'nin defter sayfalarında ortak kâğıt, mürekkep ve tarih düzeni. */
:root {
  --base:#f7f4ed; --card:#fffdf8; --side:#fbf9f2; --ink:#24382f; --muted:#56665c; --line:#d9ded2;
  --paper-tint:#e8eee4; --binding:#496c51; --chapter-ink:#294636;
}
body {background:var(--base)}
body:is([data-section=ailem],[data-section=health],[data-section=family]) {--paper-tint:#e2eeea;--binding:#3c746b;--chapter-ink:#244f49}
body:is([data-section=food],[data-section=shopping],[data-section=house]) {--paper-tint:#f4e6d9;--binding:#a55d40;--chapter-ink:#653b2b}
body:is([data-section=notes],[data-section=special]) {--paper-tint:#efe9ec;--binding:#89627b;--chapter-ink:#563f50}
body[data-section=money] {--paper-tint:#e9ebdc;--binding:#70784a;--chapter-ink:#3f4c34}
#bar {background:#fffdf8ed;border-bottom-color:var(--line)}
:is(.chapter.journal-chapter,.calendar-cover,.diary-cover,.hh-cover) {
  background:var(--paper-tint);color:var(--chapter-ink);border:1px solid color-mix(in srgb,var(--binding) 23%,var(--card));
  border-top:4px solid var(--binding);border-radius:18px 18px 6px 6px;box-shadow:none;
  padding:clamp(20px,3vw,34px);min-height:0;
}
.journal-chapter,.calendar-cover {min-height:128px}
.journal-chapter .chaptertext {max-width:72%;padding:0}
:is(.journal-chapter .chaptertext,.calendar-cover,.hh-cover,.diary-cover) h1 {
  font:500 clamp(34px,4.2vw,54px)/1.06 var(--serif);color:inherit;letter-spacing:-.045em;margin:0;
}
.journal-chapter p,.hh-cover p {color:var(--chapter-ink);font-size:14px;max-width:58ch;margin:8px 0 0}
.chapter-symbol {margin-left:auto;align-self:flex-end;color:var(--binding);opacity:.75}
.calendar-cover::before {display:none}
.calendar-cover>div>span {color:var(--binding);margin-bottom:7px}
body[data-section=travel] .journal-chapter {background:#25433e url('assets/seyahat.webp') center 56%/cover;color:#fffdf5;isolation:isolate;min-height:175px;border-color:#547571}
body[data-section=travel] .journal-chapter::before {content:"";position:absolute;inset:0;background:linear-gradient(90deg,#102f30ed,#173f40b0 58%,#12332e10);z-index:-1}
body[data-section=travel] .journal-chapter :is(h1,p){color:#fffdf7}
body[data-section=travel] .chapter-symbol {display:none}
:is(.panel,.hh-panel,.hh-notice,.dish-card,.note-card) {border-color:var(--line);background-color:var(--card);box-shadow:0 2px 7px #39432e06}
.panel,.hh-panel {border-radius:14px}
.panelhead h2,.day-list h2,.family-today h2,.hh-toolbar h2 {font:520 clamp(21px,2.5vw,30px)/1.12 var(--serif);letter-spacing:-.035em}
body .diary-cover .weekline p,.diary-cover .home-date-link,.diary-cover .dateday span {color:#405747}
.diary-cover .home-date-link {font-weight:550}
.diary-cover .weeklydays {max-width:650px;border-top:1px solid #c6d2c4;gap:4px}
.diary-cover .dateday {color:#274337;border:1px solid transparent;min-height:54px}
.diary-cover .dateday b {font:650 clamp(17px,2vw,22px)/1.15 var(--sans)}
.diary-cover .dateday:hover:not(.picked) {background:#d6e3d3}
.diary-cover .dateday.picked,.week-mobile-day[aria-pressed=true],.menu-daypicker button.active {background:#2e503e;color:white}
.diary-cover .dateday.picked span {color:#f7faf3}
.diary-cover .dateday.isnow,.week-mobile-day.is-today,.menu-daypicker [aria-current=date] {border:1.5px solid #387250}
.diary-cover .dateday.isnow.picked {box-shadow:inset 0 0 0 2px #d5e5ce}
:is(.weektools,.weeknav,.hh-week,.date-tools),.diary-cover .weektools {background:#fbfbf5;color:#2f4a3a;border:1px solid #c0ccbd;border-radius:12px;padding:2px}
.diary-cover .weektools button,.hh-week .iconbtn {color:#2e4a38}
.diary-cover .weektools button:hover {background:#dce6d7}
:is(.weeknav,.weektools,.date-tools,.hh-week) button {min-height:40px}
.diary-cover .dateday:focus-visible,.diary-cover button:focus-visible {outline:3px solid #12645b;outline-offset:-3px}
.day-list>header {padding-bottom:10px;border-bottom:1px solid var(--line)}
.day-list .day-empty {padding-block:12px}
.day-task {min-height:48px;gap:9px}
.day-task .task-clock {flex:0 1 7em;font-size:12px;line-height:1.25;color:#4c6254;font-variant-numeric:tabular-nums}
.home-diary .day-task .recordbody {flex-direction:column;align-items:flex-start;gap:1px}
.home-expense {min-height:48px}
.home-expense>b,.statgrid b,.weight-change,.charthead,.local-times dd {font-variant-numeric:tabular-nums}
.day-total {display:block;color:var(--green);margin-top:4px}
.hh-page {--hh-ink:#295951;--hh-tint:#e3ede8;--hh-edge:#cfdcd3}
.hh-cover-icon {background:#30645d}
.hh-unread {display:inline-flex;align-items:center;gap:6px;min-height:42px;color:#255b54;font-weight:650}
.family-today {margin:17px 0 14px;border:1px solid var(--hh-edge);border-radius:13px;background:var(--card);padding:clamp(15px,2.5vw,24px)}
.family-today header,.pocket-week header {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.family-today h2,.pocket-week h3 {margin:0}
.family-today header time {color:var(--muted);font-size:13px}
.family-today>div {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.family-highlight {display:flex;align-items:center;gap:9px;text-align:left;min-width:0;padding:8px 12px;border-inline-start:1px solid var(--line)}
.family-highlight:first-child {border:0;padding-inline-start:0}
.family-symbol {display:grid;place-items:center;flex:none;width:34px;height:38px;background:#e6efea;color:var(--hh-ink);border-radius:9px}
.family-highlight>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.family-highlight small,.family-highlight em {font:500 12px/1.35 var(--sans);color:var(--muted)}
.family-highlight strong {font-size:15px;overflow-wrap:anywhere}
.hh-person:nth-child(3n+2) .hh-person-glyph {background:#f4e6d9;color:#754431}
.hh-person:nth-child(3n) .hh-person-glyph {background:#ebe5ef;color:#624966}
.hh-nav {background:#e7ede6}
.hh-shortcut-icon,.hh-check[aria-pressed=true] {color:var(--hh-ink)}
.hh-check[aria-pressed=true] {color:white}
.pocket-week {display:none}
.calendar-book .calcell.today>b {outline:1.5px solid #49745b;outline-offset:-1px}
.calendar-book .calcell.pick>b {background:#2d513e;color:#fff}
.calendar-book .cal-preview {border-radius:4px;background:#deeadf;color:#264b35}
.dish-visual {aspect-ratio:3/2;overflow:hidden}
.dish-visual :is(img,.recipe-placeholder) {width:100%;height:100%;object-fit:cover}
.dish-card {overflow:hidden;border-radius:13px}
.dish-copy {padding:14px}
.dish-copy h3 {font-family:var(--serif);margin-block:4px 7px}
.dish-meta {color:#655146;font-variant-numeric:tabular-nums}
.dish-actions .btn.solid,body[data-section=food] .kitchen-tools .solid {background:#804b35;color:#fff}
.mealchip:has(img){display:grid;grid-template-columns:34px minmax(0,1fr);gap:2px 6px;text-align:left}
.mealchip img {width:34px;height:36px;border-radius:5px;object-fit:cover;grid-row:span 2}
.mealchip strong {overflow-wrap:anywhere}
.collection-empty {background:color-mix(in srgb,var(--paper-tint) 56%,var(--card));border-radius:12px}
.record-highlight,.collection-summary,.exercise-summary,.backup-overview,.weight-summary,.trip-filter {background:var(--paper-tint);border-left:3px solid var(--binding);border-radius:3px 10px 10px 3px}
.journal-spending ul {display:grid;gap:11px;list-style:none;padding:0;margin:16px 0 0}
.journal-spending li>div:first-child {display:flex;justify-content:space-between;gap:10px;font-size:13px;font-variant-numeric:tabular-nums}
.category-track {height:6px;margin-top:5px;background:#e4e6db;border-radius:20px;overflow:hidden}
.category-track i {display:block;height:100%;border-radius:inherit}
.monthly-budget .statgrid>div:first-child {background:#e8eddd;border-left:3px solid #748152}
.note-cards {align-items:stretch}.note-card {border-top:3px solid #b197ac}
.settings-sections [aria-current],.hh-tab.selected {box-shadow:inset 0 -2px #193e3726}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #19706b;outline-offset:2px}
@media(max-width:750px) {
 .family-today>div {grid-template-columns:1fr;gap:0}
 .family-highlight,.family-highlight:first-child {padding:9px 0;border:0}
 .family-highlight+.family-highlight {border-top:1px solid var(--line)}
 .hh-nav {display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-padding:4px}
 .hh-tab {flex:none;min-height:44px}
 .pocket-week {display:block;margin:8px 0 20px}
 .pocket-week .week-mobile-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
 .week-desktop {display:none}
 .pocket-week header {margin:15px 0 6px}.pocket-week header h3 {font:550 20px/1.2 var(--serif)}
 .pocket-week .timeline-entry {display:flex;gap:10px;align-items:center;background:none;border:0;border-bottom:1px solid var(--line);padding:9px 0;min-height:45px}
 .pocket-week .entry-title {flex:1;text-align:left;min-width:0;overflow-wrap:anywhere}
 .pocket-week .entry-title time {display:block;font:600 12px var(--sans);color:var(--muted)}
 .pocket-week details {margin-block:12px}.pocket-week summary {padding:8px 0;cursor:pointer}
 .pocket-week .week-mobile-day {display:grid;place-items:center;min-height:46px;padding:4px 0;border-radius:8px;background:#eeeee5;font-size:11px}
 .pocket-week .week-mobile-day[aria-pressed=true] {background:#2e503e;color:white}
 .pocket-week .week-mobile-day b {font-size:15px}
 .journal-chapter .chaptertext {max-width:100%}
 .journal-chapter .chapter-symbol {display:none}
 .home-diary .day-lists {grid-template-columns:1fr}
 .family-today header time {font-size:12px}
}
@media(max-width:500px) {
 :is(.chapter.journal-chapter,.calendar-cover,.diary-cover,.hh-cover) {padding:16px}
 :is(.journal-chapter .chaptertext,.calendar-cover,.hh-cover,.diary-cover) h1 {font-size:33px}
 .calendar-cover>div {max-width:100%}
 .home-dates .weekline {align-items:flex-start;gap:6px;flex-wrap:wrap}
 .diary-cover .weektools button {min-width:35px;min-height:40px}
 .diary-cover .weeklydays {margin-top:12px;padding-top:8px}
 .hh-page .hh-cover {gap:10px}
 .hh-cover-pin {margin-left:0}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
@media print {.pocket-week {display:none}.week-desktop {display:block}.journal-chapter,.calendar-cover,.diary-cover {color:black;background:white}.category-track,.category-track i {print-color-adjust:exact}}


@media screen and (max-width:700px) {
  #modal:has(#dayTaskForm,#dayOverview) {
    position:fixed;inset:max(12px,env(safe-area-inset-top)) 0 auto;margin:0 auto;
    max-height:calc(100dvh - 32px);overflow-y:auto;
  }
}

.language-setting,.language-setting h2,.language-options{display:flex;align-items:center;gap:.65rem}
.language-setting{justify-content:space-between;flex-wrap:wrap}
.language-setting h2{margin:0}
.language-options{gap:.2rem;padding:.2rem;border:1px solid var(--line,#d4ded6);border-radius:.8rem}
.language-options button{font:inherit;font-weight:600;color:inherit;background:transparent;border:0;border-radius:.55rem;min-height:44px;padding:.5rem .85rem;cursor:pointer}
.language-options button[aria-pressed=true]{background:#254c3f;color:white}
.language-options button:focus-visible{outline:2px solid #ad714b;outline-offset:2px}
.calendar-month .calgrid{grid-template-columns:clamp(34px,7vw,44px) repeat(7,minmax(0,1fr))}
.calendar-month .weekarrow{width:100%;min-width:0;min-height:44px}
.slot-add{font:inherit;font-size:.72rem;color:var(--ink);background:transparent;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:.2em}.schedule input:placeholder-shown+.slot-add{display:none}
button.trend-row{width:100%;border:0;background:transparent;text-align:start;color:inherit;font:inherit;cursor:pointer}.trend-row:focus-visible,.slot-add:focus-visible{outline:2px solid currentColor}
.template-download{margin:12px 0}.device-extras{padding-block:8px}.device-extras label{display:block}

/* Calendar countdowns */
.countdown-panel .panelhead{gap:12px;flex-wrap:wrap}
.countdown-list{display:grid;gap:10px;padding:0;margin:0;list-style:none}
.countdown-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(10px,2vw,22px);padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.countdown-badge{display:grid;align-content:center;justify-items:center;min-width:76px;min-height:70px;padding:8px;background:#e8eee5;color:#2f503d;border-radius:9px;font-variant-numeric:tabular-nums}
.countdown-badge strong{font:600 clamp(25px,3vw,34px)/1.1 var(--serif)}
.countdown-badge small{font-size:12px;line-height:1.35}
.countdown-today .countdown-badge{background:#f3e2d9;color:#693a2e}
.countdown-caption h3{font:600 18px/1.3 var(--serif);margin:0 0 4px;overflow-wrap:anywhere}
.countdown-caption time,.countdown-empty{color:var(--muted);font-size:14px}
.countdown-empty{padding:12px 0;margin:0}
.countdown-actions{display:flex;align-items:center;gap:6px}
.countdown-past .countdown-badge{background:#efeee9;color:#525b53}
@media(max-width:540px){
  .countdown-card{column-gap:10px;padding:10px}
  .countdown-badge{min-width:65px}
}
@media print{.countdown-actions,.countdown-panel .actions{display:none}}

/* Record actions: the colored face is smaller than the touch target. */
.iconbtn {align-items:center; padding:0}
.iconbtn.glyph-action {
  --glyph-ink:#30594a;
  --glyph-face:#e5eee6;
  --glyph-hover:#d5e6d9;
  --glyph-edge:#c6d9ca;
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:6px;
  width:44px;
  height:44px;
  padding:0;
  color:var(--glyph-ink);
  background:transparent;
  border:0;
  border-radius:12px;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.iconbtn.glyph-trash {
  --glyph-ink:#883f50;
  --glyph-face:#f6e9eb;
  --glyph-hover:#f0dade;
  --glyph-edge:#e9ccd3;
}
.glyph-action::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:4px;
  border-radius:10px;
  background:var(--glyph-face);
  box-shadow:inset 0 0 0 1px var(--glyph-edge);
}
.glyph-action > .icon {display:block;width:20px;height:20px;stroke-width:1.7}
.iconbtn.with-caption {width:auto;padding-inline:16px}
.glyph-caption {font:600 13px/1 var(--sans)}
@media (hover:hover) {
  .iconbtn.glyph-action:hover {background:transparent;color:var(--glyph-ink)}
  .glyph-action:hover::before {background:var(--glyph-hover)}
}
.glyph-action:active::before {background:var(--glyph-hover);inset:5px}
.iconbtn.glyph-action:focus-visible {outline:2px solid var(--glyph-ink);outline-offset:0}
@media (prefers-reduced-motion:no-preference) {
  .glyph-action::before {transition:background-color .15s ease,inset .12s ease}
}
.planned-meal .iconbtn.meal-edit {position:absolute;inset:0 0 auto auto}
.planned-meal:has(.meal-edit) .mealchip {padding-right:46px}
.item-editor {grid-template-columns:minmax(95px,1.6fr) minmax(52px,.6fr) minmax(78px,.9fr) minmax(82px,1fr) 44px}
.dish-actions {flex-wrap:wrap}
@media(max-width:620px) {
  .countdown-actions {gap:0}
  .countdown-actions .with-caption {width:44px;padding:0}
  .countdown-actions .glyph-caption {display:none}
  .item-editor {grid-template-columns:minmax(40px,1fr) minmax(52px,1fr) minmax(58px,1.3fr) 44px}
}
@media(forced-colors:active) {
  .iconbtn.glyph-action {color:ButtonText}
  .glyph-action::before {border:1px solid ButtonText}
  .iconbtn.glyph-action:focus-visible {outline-color:Highlight}
}
.btn.btn-remove,.btn.btn-edit {display:inline-flex;align-items:center;column-gap:7px;border-radius:10px}
.btn.btn-remove {color:#803e4c;border-color:#e4cbd1;background:#fbf3f4}
.btn.btn-edit:not(.solid) {color:#30594a;border-color:#c6d9ca;background:#eff5ef}
@media(hover:hover) {
  .btn.btn-remove:hover {background:#f3e1e5;border-color:#d2a9b3}
  .btn.btn-edit:not(.solid):hover {background:#deebdf;border-color:#aac5b1}
}

.day-lists > .day-list:only-child {grid-column:1 / -1}
.day-list-actions {display:flex;align-items:center;gap:4px}
.day-list-actions .iconbtn {width:44px;height:44px;background:transparent;border:0;color:#53695d}
.day-list-actions .iconbtn:hover {background:#eef2eb}
.home-card-settings h2 {margin:0 0 8px}
.home-card-choice {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.home-card-choice input {width:19px;height:19px;flex:none;accent-color:var(--green)}
.home-card-choice:has(:disabled) {cursor:default;color:var(--muted)}
@media print {.day-list-actions {display:none}}

#walking-panel{display:grid;gap:1rem}
#walking-panel .panel{margin:0}
#walking-panel header,.walk-tools,.walk-switch{display:flex;align-items:center;justify-content:space-between;gap:.55rem;flex-wrap:wrap}
.walk-summary{background:linear-gradient(125deg,#f3f7ed,#fffdf7 64%)}
.walk-summary h2,.walk-summary p,.walk-chart h3{margin:.3rem 0 .65rem}
.walk-summary small{display:block;margin-top:.8rem;color:#485e51}
.walk-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.walk-totals>div{border:1px solid #d6dfd3;background:#fafcf6;border-radius:16px;padding:clamp(.7rem,2vw,1.3rem);display:grid;gap:.4rem;color:#294738}
.walk-totals strong{font-size:clamp(1.6rem,5vw,2.7rem);font-variant-numeric:tabular-nums;line-height:1.1}
.walk-goal,.walk-tools,.walk-switch{justify-content:flex-start}.walk-goal{display:flex;align-items:center;gap:.6rem}.walk-summary progress{display:block;width:100%;height:.65rem;accent-color:#347859;margin:.6rem 0}
.walk-chart .walk-switch{margin:.45rem 0}.walk-switch .btn[aria-pressed=true]{color:white;background:#315d4b;border-color:#315d4b}
.walk-scroll{overflow-x:auto;overscroll-behavior-x:contain;margin:1rem 0 .6rem;padding-bottom:.25rem}
.walk-bars{display:grid;gap:3px;grid-template-columns:repeat(var(--walk-count),minmax(30px,1fr));background:repeating-linear-gradient(to top,transparent 0,transparent 31px,#e5ebe2 32px,transparent 33px)}
.walk-bar{border:0;background:transparent;padding:3px 2px;color:#40554a;cursor:pointer;min-height:112px;display:grid;gap:5px;justify-items:center}
.walk-bar[aria-pressed=true]{background:#e8f1e6;border-radius:8px;color:#1e4d34}.walk-bar:focus-visible{outline:2px solid #315d4b;outline-offset:-2px}
.walk-track{width:min(45%,24px);height:86px;display:flex;align-items:flex-end;justify-content:center}
.walk-track i{display:block;width:100%;border-radius:5px 5px 2px 2px;background:linear-gradient(#7ca67c,#397759)}
.walk-track .walk-gap{height:2px;background:none;border-top:2px dashed #7f9084}

/* Notebook navigation */
@media screen {
  .chapterbar .viewtabs,.hh-nav,.settings-sections{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;padding:0;
    background:transparent;border:0;box-shadow:none;overflow:visible}
  .chapterbar .viewtabs a,.hh-nav .hh-tab,.settings-sections a{
    display:inline-flex;align-items:center;justify-content:flex-start;gap:.55rem;min-width:0;min-height:44px;padding:.5rem .75rem;
    border:1px solid #cfd9cb;border-radius:11px;color:#354b40;background:#fbfcf6;font:600 .91rem/1.22 var(--sans);
    text-align:start;text-decoration:none;box-shadow:0 1px 2px #19291b0a;white-space:normal}
  .chapterbar .viewtabs a .icon,.hh-nav .hh-tab .icon,.settings-sections a .icon{flex:none;color:#4b7059}
  .chapterbar .viewtabs a:hover,.hh-nav .hh-tab:hover,.settings-sections a:hover{background:#ecf2e8;border-color:#8fa792}
  .chapterbar .viewtabs a[aria-current],.hh-nav .hh-tab[aria-current],.settings-sections a[aria-current]{color:#fffaf0;background:#315542;border-color:#315542}
  :is(.viewtabs,.hh-nav,.settings-sections) [aria-current] .icon{color:inherit!important}
  :is(.viewtabs,.hh-nav,.settings-sections)>:focus-visible{outline:2px solid #8a6327;outline-offset:2px}
  .sectionlist{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:8px}
  .sectionlist .reslink{margin:0;padding:10px;border:1px solid #d4dccf;border-radius:12px;background:#fbfcf6;min-width:0}
}
@media screen and (max-width:650px){
  .chapterbar,.calendar-nav.chapterbar{flex-wrap:wrap;gap:8px}
  .chapterbar .viewtabs,.settings-sections,.hh-nav{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
  .chapterbar .viewtabs a,.settings-sections a,.hh-nav .hh-tab{width:100%;white-space:normal;font-size:.93rem}
  .chapterbar .printbtn{margin-inline-start:auto}
}

/* Daily task checklists */
.subtask-editor{margin:8px 0 12px}
.subtask-fields{display:grid;gap:6px}
.subtask-input{display:grid;grid-template-columns:13px minmax(0,1fr) 40px;gap:6px;align-items:center}
.subtask-input input{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #c8d3c5;border-radius:9px;font:inherit;background:#fffef9;color:#263c30}
.subtask-branch{display:block;width:10px;height:13px;border-left:1.5px solid #a2b79e;border-bottom:1.5px solid #a2b79e;border-radius:0 0 0 5px}
.subtask-input button,.subtask-add{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;color:#355b44;background:transparent;border:0;cursor:pointer}
.subtask-add{font:650 .94rem var(--sans);padding:5px 8px}
.subtask-input button:hover,.subtask-add:hover{border-radius:8px;background:#edf2e7}
.task-group{border-bottom:1px solid var(--line);padding-bottom:5px}
.task-group>.record{border-bottom:0}
.task-children{padding:2px 0 5px;margin:0 0 2px 13px;border-inline-start:2px solid #dce5d5}
.subtask-progress,.subtask-check{padding-inline:12px}
.subtask-progress{display:flex;align-items:center;gap:8px;margin:1px 0 3px;color:#4d6553;font:650 .84rem var(--sans)}
.subtask-progress b{padding:2px 6px;border-radius:6px;background:#ecf1e5;font-variant-numeric:tabular-nums}
.task-children ul{display:grid;list-style:none;margin:0;padding:0}
.subtask-check{display:flex;gap:9px;align-items:center;min-height:40px;width:100%;text-align:start;overflow-wrap:anywhere;
  border:0;border-radius:8px;background:transparent;color:#334d3c;font:500 .96rem/1.35 var(--sans);cursor:pointer}
.subtask-check:hover{background:#eff3e9}
.subtask-tick{display:grid;place-items:center;flex:0 0 18px;height:18px;border:1.5px solid #819782;border-radius:6px}
.subtask-check[aria-pressed=true] .subtask-tick{background:#41674c;border-color:#41674c;color:white}
.subtask-check[aria-pressed=true]>span:last-child{color:#586958;text-decoration:line-through}
@media(max-width:700px){.subtask-check,.subtask-add,.subtask-input button{min-height:44px}.subtask-input input{font-size:16px}}

.home-diary .undated-card .recordbody {flex:1;min-width:0;overflow-wrap:anywhere}
.undated-move {display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:44px;padding:4px 6px;color:#315b48;font:600 .84rem/1.2 var(--sans)}
.undated-move:hover,.undated-move:focus-visible {background:#edf2e7;border-radius:8px}
#undated-completed {margin-top:.65rem;border-top:1px solid var(--line)}
#undated-completed summary {cursor:pointer;min-height:44px;align-content:center;font:600 .9rem var(--sans);color:#46614d}
#undated-completed summary b {margin-inline-start:.25rem;font-variant-numeric:tabular-nums}
.undated-card + .day-list {grid-column:1/-1}

.public-links,.admin-tabs,.contact-layout {display:flex;gap:12px;flex-wrap:wrap}
.public-links a {display:inline-flex;align-items:center;min-height:42px;color:var(--green);text-underline-offset:3px}
#foot {flex-wrap:wrap}
.public-title h1 {margin:0;font:500 clamp(32px,4.5vw,56px)/1.07 var(--serif);letter-spacing:-.035em}
.public-title p {color:#40594b;line-height:1.6}
.contact-layout h2 {font:550 24px/1.14 var(--serif);margin:10px 0}

.meet-page {display:grid;gap:clamp(24px,4vw,52px);color:var(--ink);padding-bottom:12px}
.meet-page h1,.meet-page h2,.meet-example-title {margin:0;font-family:var(--serif);font-weight:550;letter-spacing:-.035em;text-wrap:balance}
.meet-page h1 {font-size:clamp(2.35rem,5vw,4.6rem);line-height:1.02}
.meet-page h2 {font-size:clamp(1.7rem,3.3vw,2.8rem);line-height:1.12}
.meet-page p {margin:0;line-height:1.6}
.meet-cover {display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);border:1px solid #d6dccd;border-radius:22px;overflow:hidden;background:#eaf0e5}
.meet-cover-copy {padding:clamp(24px,4vw,50px);align-self:center}
.meet-actions {display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px}
.meet-cover-copy p {max-width:54ch;color:#384e40;margin:16px 0 21px}
.meet-cover img {width:100%;height:100%;min-height:235px;object-fit:cover;object-position:center}
.meet-family {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(20px,4vw,52px);align-items:start}
.meet-family-copy>p,.meet-account p {margin-top:10px;max-width:65ch;color:#435449}
.meet-steps {margin:18px 0 8px;padding-left:1.65rem}
.meet-steps li {padding:8px 0 8px 5px}
.meet-steps li::marker {font-family:var(--serif);font-weight:650;color:#805039}
.meet-steps p,.meet-feature p {margin-top:3px;color:#46564b}
.meet-page .meet-link,.meet-feature h3 a {display:inline-flex;align-items:center;gap:8px;color:#244e41;text-underline-offset:4px}
.meet-page .meet-link {min-height:44px;font-weight:700}
.meet-page a:focus-visible {outline:3px solid #a04f2a;outline-offset:3px}
.meet-page svg {flex:none}
.meet-example {background:#25493e;color:#fffdf4;border-radius:18px;padding:clamp(20px,3vw,32px);box-shadow:inset 0 3px #d9b77b}
.meet-example h3 {font:650 .87rem/1.4 var(--sans);margin:0;color:#f1d7a4}
.meet-example .meet-example-title {font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.12;margin:5px 0 16px}
.meet-example ul {list-style:none;margin:0;padding:0}
.meet-example li {display:flex;align-items:center;gap:14px;border-top:1px solid #547267;padding:11px 0}
.meet-example li>svg {color:#f0d6a2}
.meet-example small,.meet-example strong {display:block}
.meet-example small {color:#d9e7d9;font-size:.8rem}
.meet-example strong {font-weight:580}
.meet-example .meet-private {display:flex;gap:10px;align-items:flex-start;margin-top:9px;padding-top:14px;border-top:1px solid #779084;font-size:.87rem;color:#f1f2e9}
.meet-private svg {margin-top:3px}
.meet-features {margin-top:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.meet-feature {border:1px solid var(--line);border-radius:15px;padding:clamp(16px,2vw,25px);background:var(--card)}
.meet-icon {display:inline-grid;place-items:center;background:#e9efe5;color:#385744;border-radius:10px;width:40px;height:40px}
.meet-feature:nth-child(3n+2) .meet-icon {background:#f4e9dc;color:#824e30}
.meet-feature:nth-child(3n) .meet-icon {background:#eae9f1;color:#615475}
.meet-feature h3 {font:650 1.12rem/1.3 var(--sans);margin:10px 0 3px}
.meet-feature h3 a {min-height:44px;text-decoration:none}
.meet-feature h3 a:hover {text-decoration:underline}
.meet-account {display:flex;gap:20px;justify-content:space-between;align-items:center;border-block:1px solid var(--line);padding:clamp(20px,3vw,32px) 0}
.meet-account-links {display:grid;justify-items:start;flex-shrink:0}
.meet-page .btn {display:inline-flex;justify-content:center;align-items:center;min-height:44px;gap:8px;text-decoration:none}
@media(max-width:1000px){.meet-features{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.meet-family,.meet-cover{grid-template-columns:1fr}.meet-cover img{height:clamp(140px,29vw,220px);min-height:0}.meet-account{align-items:flex-start;flex-direction:column}.meet-account-links{display:flex;gap:18px;align-items:center;flex-wrap:wrap}}
@media(max-width:530px){.meet-features{grid-template-columns:1fr}.meet-feature{display:grid;column-gap:12px;grid-template-columns:auto minmax(0,1fr);align-items:start}.meet-feature h3{margin:0}.meet-feature p{grid-column:2}.meet-icon{margin-top:2px}}
.public-title {margin:15px 0 24px}
.contact-layout {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(200px,1fr);align-items:start}
.contact-layout .panel {min-width:0;margin:0}
.contact-layout .field {margin-bottom:14px}
.contact-aside a {overflow-wrap:anywhere;color:var(--green);text-underline-offset:3px}
.contact-layout button[type=submit] {min-height:44px;gap:7px}
.admin-tabs {margin:14px 0}
.admin-tabs a,.inbox-filter button {padding:5px 12px;border-radius:8px;text-decoration:none}
.admin-tabs [aria-current],.inbox-filter [aria-pressed=true] {color:#fffaf0;background:#315542}
.admin-tabs b {margin-left:6px}
.contact-item {border-top:1px solid var(--line);padding:9px 0;overflow-wrap:anywhere}
.contact-item summary {cursor:pointer;min-height:42px;padding:6px 0}
.contact-item small {display:block;color:var(--muted);margin-left:1em}
.contact-item p {white-space:pre-wrap}
@media(max-width:700px){.contact-layout {grid-template-columns:1fr}}

.contact-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#e4ede5;border:1px solid #c1d1c5;border-radius:16px;padding:clamp(18px,3vw,32px)}
.contact-heading p {margin-bottom:0}
.contact-heading>span {display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:50%;color:#365d49;background:#f8faf2}
.contact-topics {border:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;min-width:0}
.contact-topics legend {padding:0 0 7px;font-weight:600}
.contact-topic {position:relative;cursor:pointer}
.contact-topic input {position:absolute;width:1px;height:1px;opacity:0}
.contact-topic span {display:flex;align-items:center;gap:6px;padding:8px 12px;min-height:44px;border:1px solid #bccbbb;border-radius:10px;color:#335341}
.contact-topic input:checked+span {background:#355945;color:#fff;border-color:#355945}
.contact-topic input:focus-visible+span {outline:3px solid #9b702a;outline-offset:2px}
.contact-note {display:flex;justify-content:space-between;align-items:start;gap:10px;color:#536459}
#contact-count {white-space:nowrap;font-variant-numeric:tabular-nums}
.contact-aside hr {border:0;border-top:1px solid var(--line);margin:18px 0}
.reply-original,.reply-history li p {white-space:pre-wrap;overflow-wrap:anywhere}
.reply-original {margin:6px 0 18px;border-inline-start:3px solid #91ad99;padding:8px 12px;background:#f2f5ed;max-height:10rem;overflow:auto}
.reply-recipient strong {overflow-wrap:anywhere}
.reply-history ol {padding:0;list-style:none}
.reply-history li {border-top:1px solid var(--line);padding:10px 0}
.reply-history small {margin-inline-start:8px;color:var(--muted)}
.reply-history h3 {margin-top:22px}
@media(max-width:450px){.contact-heading>span {width:42px;height:42px}.contact-heading svg {width:24px}.contact-topic span {padding-inline:8px}}

#contactForm [data-contact-discard]{margin-inline-start:.45rem}
.device-setup section+section{margin-top:1.3rem;padding-top:1rem;border-top:1px solid var(--line)}
.device-setup h3{margin:0 0 .5rem}.device-setup .widget-preview{margin:.75rem 0}
.device-setup .mobile-guide summary,.device-setup [data-confirm-alert]{min-height:44px;display:inline-flex;align-items:center;cursor:pointer}
.device-setup .delivery-status{margin:.5rem 0}
@media screen and (max-width:700px){
  .journal-chapter.chapter,.calendar-book .calendar-cover{
    display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;gap:3px 10px;
    min-height:0;padding:7px 12px;margin-bottom:7px;border-radius:12px 12px 5px 5px
  }
  .journal-chapter .chaptertext,.calendar-cover>div{max-width:100%;flex:1 1 115px;margin:0;padding:0}
  .journal-chapter .chaptertext h1,.calendar-cover h1{margin:0;font-size:clamp(21px,6.5vw,27px);line-height:1.12}
  .journal-chapter .chaptertext p,.calendar-cover>div>span,.journal-chapter .chapter-symbol{display:none}
  .journal-chapter .category-pin,.calendar-cover .category-pin{position:static;margin:0;align-self:center;min-height:44px;padding:5px 8px}
  .diary-cover .home-date-link,.diary-cover .weektools button,.home-diary .day-add,.home-diary .day-list-actions .iconbtn{
    min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center
  }
  .diary-cover .home-date-link{text-align:start;justify-content:flex-start}
  .day-list-actions{flex-wrap:wrap;justify-content:flex-end}
}
@media print{.section-toolbar,.page-actions{display:none!important}}

.week-closing{margin-block:8px 12px}.week-closing summary{padding:8px 0;cursor:pointer}.closing-list{padding:0;list-style:none}.closing-list li{padding:6px 0;border-bottom:1px solid var(--line)}.closing-list .actions{display:flex;flex-wrap:wrap;gap:5px}.share-scope{padding:12px;border-inline-start:3px solid #53765e;background:#edf4ed}.share-scope p{overflow-wrap:anywhere}

@media screen {
  .chapterbar.section-toolbar {
    container:section-toolbar / inline-size;
    display:block;
  }
  .section-tabs {
    width:100%; display:grid; grid-template-columns:repeat(var(--narrow),minmax(0,1fr));
    grid-auto-rows:1fr; gap:4px;
    padding:4px; border:1px solid var(--line); border-radius:14px; background:var(--card);
  }
  .section-tabs .section-tab {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    min-width:0; min-height:44px; padding:8px 4px; border:1px solid transparent; border-radius:10px;
    color:var(--ink); font:600 .92rem/1.2 var(--sans); text-decoration:none; text-align:center;
    overflow-wrap:anywhere; background:transparent; cursor:pointer; white-space:normal;
  }
  .section-tabs .section-tab .icon {flex:none; color:var(--green)}
  .section-tabs .section-tab[aria-current] {background:var(--green); color:#fff; border-color:var(--green)}
  .section-tabs .section-tab[aria-current] .icon {color:inherit}
  .section-tabs .section-tab:focus-visible {outline:2px solid #956627; outline-offset:1px}
  .page-actions {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-block:12px}
  .page-actions .btn {min-height:44px}
}
@media screen and (hover:hover) {
  .section-tabs .section-tab:not([aria-current]):hover {background:var(--sage)}
}
@container section-toolbar (min-width:20rem) {
  .section-tabs {grid-template-columns:repeat(var(--medium),minmax(0,1fr))}
}
@container section-toolbar (min-width:50rem) {
  .section-tabs {grid-template-columns:repeat(var(--wide),minmax(0,1fr))}
}

.recordbody.record-open {flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
.record-open .record-copy {display:flex;flex-direction:column;min-width:0;flex:1}
.dish-card {position:relative}
.dish-open::after {content:"";position:absolute;inset:0;border-radius:13px}
.dish-open:focus-visible::after {outline:2px solid var(--green);outline-offset:-3px}
.dish-actions {position:relative;z-index:1}

#dayOverview .day-more {margin-top:1rem;border-top:1px solid var(--line);padding-top:.5rem}
#dayOverview .day-more summary {padding:.5rem 0;cursor:pointer;font-weight:600}
