/* Small, useful refinements: paper surfaces, compact hierarchy and clear actions.
   Series artwork and domain data remain owned by their existing modules. */
:root[data-theme=hirono] {
  --refine-ink:#3d3834;
  --refine-muted:#74695f;
  --refine-line:#dcd3c7;
  --refine-sheet:#fffdf8;
  --refine-shadow:0 2px 3px #493c3004,0 9px 24px #493c3006;
}
[data-theme=hirono] .topbar {background:#fcfaf6f5;box-shadow:0 3px 18px #493c3005;}
[data-theme=hirono] .topbar .app-tabs {background:#eee9e1;border-color:#e2d9cd;padding:4px;border-radius:15px;}
[data-theme=hirono] .topbar .app-tab {--nav-ink:#89724f;border-radius:10px;border:1px solid transparent;color:#6a625a;transition:background .16s,box-shadow .16s;}
[data-theme=hirono] .topbar .app-tab[data-value=pulse] {--nav-ink:#766452;}
[data-theme=hirono] .topbar .app-tab[data-value=tempo] {--nav-ink:#9b756e;}
[data-theme=hirono] .topbar .app-tab[data-value=projects] {--nav-ink:#8c6554;}
[data-theme=hirono] .topbar .app-tab[data-value=ledger] {--nav-ink:#a47c4c;}
[data-theme=hirono] .topbar .app-tab[data-value=recipes] {--nav-ink:#a98b4e;}
[data-theme=hirono] .topbar .app-tab[data-value=museum] {--nav-ink:#8a7280;}
[data-theme=hirono] .topbar .app-tab.active,[data-theme=hirono] .topbar .app-tab.active:hover {background:#fffdf8;color:#3f3832;border-color:#ded4c6;box-shadow:0 2px 5px #493c300b,inset 0 -2px var(--nav-ink);font-weight:650;}
[data-theme=hirono] .topbar .app-tab:hover {background:#f8f5ef;color:#40382f;}
[data-theme=hirono] .topbar .nav-character {transition:transform .18s;}
[data-theme=hirono] .topbar .app-tab:hover .nav-character {transform:translateY(-2px) rotate(-3deg);}
[data-theme=hirono] .top-actions .icon-btn {border:1px solid transparent;}
[data-theme=hirono] .top-actions .icon-btn:hover {border-color:#d9cebf;background:#f3eee5;}
[data-theme=hirono] :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #92734f;outline-offset:3px;}
[data-theme=hirono] :is(button,input,select,textarea) {scroll-margin-block:calc(var(--app-header-height,76px) + 20px) 120px;}
[data-theme=hirono] :is(.home-page,.ledger-page,.recipes-page,.projects-page,.museum-page) {max-width:1360px;padding:26px 28px 36px;margin-inline:auto;}
[data-theme=hirono] :is(.home-hero,.ledger-hero,.recipes-hero,.projects-hero) {border-radius:18px;box-shadow:var(--refine-shadow);margin-bottom:20px;}
[data-theme=hirono] :is(.ledger-hero,.recipes-hero) {min-height:186px;padding:24px 30px;}
[data-theme=hirono] :is(.ledger-hero,.recipes-hero,.projects-hero) h1 {font-size:28px;letter-spacing:.02em;}
[data-theme=hirono] :is(.ledger-hero-copy,.recipes-hero-copy)>p {font-size:13px;margin-block:10px 14px;line-height:1.8;}
[data-theme=hirono] .ledger-photo {width:114px;padding:7px;margin:0 8px 0 20px;}
[data-theme=hirono] .ledger-photo img {height:120px;}
[data-theme=hirono] .recipes-hero-art {width:114px;margin:0 8px 0 20px;padding:7px;}
[data-theme=hirono] .recipes-hero-art img {height:128px;}
[data-theme=hirono] .recipes-hero-note {margin-top:8px;font-size:11px;}
[data-theme=hirono] .projects-hero {padding:26px 30px;min-height:228px;}
[data-theme=hirono] .projects-hero-line {margin-block:8px 12px;font-size:20px;}
[data-theme=hirono] .projects-hero-description {font-size:13px;line-height:1.8;}
[data-theme=hirono] .projects-hero-actions {margin-top:18px;}
[data-theme=hirono] .projects-hero-figure {transform:scale(.9);transform-origin:center right;}
[data-theme=hirono] .hirono-story {min-height:180px;padding-top:28px;padding-bottom:24px;}
[data-theme=hirono] .hirono-story.compact {min-height:150px;padding-top:24px;padding-bottom:22px;}
[data-theme=hirono] .story-copy h1 {font-size:31px;line-height:1.4;margin-block:9px 12px;}
[data-theme=hirono] .compact .story-copy h1 {font-size:28px;}
[data-theme=hirono] .story-copy p {font-size:13px;}
[data-theme=hirono] .story-kicker {margin-bottom:8px;}
[data-theme=hirono] .story-actions {margin-top:16px;}
[data-theme=hirono] .hero + .content .filters {min-height:62px;padding-block:9px;}
[data-theme=hirono] .module-history-actions {margin:0 0 10px;min-height:34px;}
[data-theme=hirono] .module-history-actions button {min-height:34px;padding:7px 11px;font-size:12px;}

/* The daily overview: the first screen also leaves space for real content. */
[data-theme=hirono] .home-hero {grid-template-columns:minmax(0,1fr) 220px;gap:28px;padding:26px 32px;min-height:0;}
[data-theme=hirono] .home-hero-kicker {margin-bottom:13px;}
[data-theme=hirono] .home-name {display:none;}
[data-theme=hirono] .home-hero h1 {font-size:34px;line-height:1.35;margin:0 0 13px;}
[data-theme=hirono] .home-hero-description {font-size:13px;line-height:1.8;}
[data-theme=hirono] .home-hero-description br {display:none;}
[data-theme=hirono] .home-hero-date {margin-top:12px;}
[data-theme=hirono] .home-hero-actions {margin-top:17px;}
[data-theme=hirono] .home-hero-photo {width:166px;padding:8px 8px 10px;}
[data-theme=hirono] .home-hero-photo img {height:184px;}
[data-theme=hirono] .home-hero-photo figcaption {font-size:10px;}
[data-theme=hirono] .home-hero::before {width:210px;height:210px;right:20px;}
[data-theme=hirono] .home-metrics {gap:14px;margin-bottom:25px;}
[data-theme=hirono] .home-metric {padding:18px 20px 14px;border-radius:12px;box-shadow:0 3px 0 #e6dfd3,0 7px 18px #493c3004;}
[data-theme=hirono] .home-metric-label {position:relative;min-height:34px;padding-right:60px;}
[data-theme=hirono] .home-metric-label>span {white-space:nowrap;}
[data-theme=hirono] .home-metric-label::after {position:absolute;width:54px;height:64px;top:0;right:2px;}
[data-theme=hirono] .home-metric strong {font-size:32px;margin:9px 0 8px;}
[data-theme=hirono] .home-metric p {padding-top:10px;font-size:11px;}
[data-theme=hirono] .home-section-intro {margin-bottom:16px;}
[data-theme=hirono] .home-section-intro h2 {font-size:22px;margin-top:7px;}
[data-theme=hirono] .home-module-grid {gap:20px;}
[data-theme=hirono] .home-module {border-radius:14px;box-shadow:var(--refine-shadow);}
[data-theme=hirono] .home-module-head {padding-bottom:16px;margin-bottom:16px;}
[data-theme=hirono] .home-module-mark {width:50px;height:66px;}
[data-theme=hirono] .home-module-head h2 {font-size:18px;}
[data-theme=hirono] :is(.home-note-read,.home-task-copy) {font-size:14px;line-height:1.7;}
[data-theme=hirono] .home-note>p {font-size:13px;line-height:1.8;color:#74695f;}
[data-theme=hirono] .home-module-foot {padding-top:14px;}
[data-theme=hirono] .home-module-foot .home-text-link:hover {color:#8e523b;text-decoration:underline;text-underline-offset:4px;}
.home-meal-energy {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;border-top:1px dashed #ccbda5;padding-top:16px;}
.home-meal-energy>div {padding:12px;border:1px solid #daccb9;border-radius:8px;background:#fffaf0;min-width:0;}
.home-meal-energy>div+div {background:#f3ece4;}
.home-meal-energy span {display:block;font-size:11px;color:#786b5b;margin-bottom:7px;}
.home-meal-energy strong {font-size:15px;font-weight:600;color:#755b41;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}

/* Numbers and controls stay readable while reducing repeated empty space. */
[data-theme=hirono] .tempo-content .tempo-header {margin-bottom:18px;}
[data-theme=hirono] .tempo-content .tempo-tabs {gap:5px;padding-bottom:12px;margin-bottom:18px;}
[data-theme=hirono] .tempo-content .tempo-tabs button {padding:10px 12px;min-height:42px;border-radius:9px;}
[data-theme=hirono] .tempo-content .tempo-stat {min-height:94px;padding:18px 18px 18px 78px;border-radius:11px;}
[data-theme=hirono] .tempo-content .tempo-stat::before {width:48px;height:68px;left:18px;}
[data-theme=hirono] .tempo-content .tempo-stats {gap:14px;margin-bottom:22px;}
[data-theme=hirono] .tempo-content .task-toolbar {padding:18px 22px;min-height:82px;}
[data-theme=hirono] .tempo-content .task-title {font-size:14px;line-height:1.7;}
[data-theme=hirono] .tempo-content .task-row:hover {background:#f2ecdf66;}
[data-theme=hirono] .tempo-content .tempo-sidebar {background:#eee9df;border-radius:12px;}
[data-theme=hirono] .projects-stats {margin-bottom:26px;}
[data-theme=hirono] .projects-stat {padding-block:18px;}
[data-theme=hirono] .projects-toolbar {border-radius:12px;padding:16px 18px;}
[data-theme=hirono] .projects-card {border-radius:12px;box-shadow:0 3px 9px #483b3005;}
[data-theme=hirono] .projects-card:hover {border-color:#b7a28c;box-shadow:0 7px 18px #483b300b;}
[data-theme=hirono] .projects-card h3 {font-size:19px;line-height:1.5;}
[data-theme=hirono] .projects-card-summary {font-size:13px;line-height:1.85;}
[data-theme=hirono] .ledger-summary {gap:18px;margin-bottom:22px;}
[data-theme=hirono] .ledger-stat {min-height:170px;padding:22px 24px 20px;border-radius:14px;}
[data-theme=hirono] .ledger-stat>span::after {width:64px;height:80px;}
[data-theme=hirono] .ledger-stat .ledger-money {margin-top:20px;}
[data-theme=hirono] .ledger-section-title {gap:14px;margin-bottom:20px;}
[data-theme=hirono] .ledger-section-title h2 {font-size:20px;}
[data-theme=hirono] .ledger-records,.recipes-page .recipes-history {border-radius:14px;}
[data-theme=hirono] :is(.ledger-entry,.recipes-history-entry) {transition:border-color .15s,box-shadow .15s;}
[data-theme=hirono] .ledger-entry:hover {border-color:#b9a48b;box-shadow:0 2px 9px #493c3007;}
[data-theme=hirono] .museum-room:hover {box-shadow:0 7px 18px #493c3009;}
[data-theme=hirono] .museum-work-card:focus-within {outline:2px solid #92734f;outline-offset:3px;}

/* Food choice and actual intake are now visible near the point of action. */
.recipes-page .recipes-main-grid {align-items:start;gap:20px;}
.recipes-page :is(.recipes-wheel-card,.recipes-meal-card) {border-radius:14px;padding:22px 24px;}
.recipes-page .recipes-wheel-card .recipes-section-head {min-height:80px;margin-bottom:16px;padding-left:75px;}
.recipes-page .recipes-wheel-card .recipes-section-head::before {width:62px;height:86px;left:0;}
.recipes-page .recipes-meal-title {min-height:80px;margin-bottom:18px;padding-left:0;}
.recipes-page .recipes-meal-mark {width:62px;height:86px;margin-left:0;}
.recipes-page .recipes-wheel-actions {margin-bottom:20px;}
.recipes-page .recipes-theme-chips {gap:6px;margin-bottom:14px;}
.recipes-page .recipes-wheel-stage {width:282px;height:282px;}
.recipes-page .recipes-wheel-label {font-size:11px;}
.recipes-page .recipes-datebar {padding:12px 16px;margin-bottom:20px;border-radius:11px;}
.recipes-page .recipes-meal-empty {min-height:200px;padding-block:26px;}
.recipes-page .recipes-meal-bottom {margin-top:18px;padding-top:14px;}
.recipes-page .recipes-dish-list {gap:12px;}
.recipes-page .recipes-dish {padding-bottom:10px;}
.recipes-page .recipes-selections {padding:22px 24px;border-radius:14px;}
.recipes-page .recipes-food-row {padding-block:16px;}
.recipes-page .recipe-food-basis {max-width:340px;}
.recipes-page .recipe-energy-panel {border-radius:14px;padding:24px;}
.recipes-page .recipes-history-entry {padding:20px;border-left:3px solid #bba580;}
.recipes-page .recipe-energy-actions {gap:8px;margin-bottom:0;}
.recipes-page .recipe-energy-actions button {min-height:42px;padding:10px 12px;}
.recipes-page .recipes-meal-card .recipe-energy-actions {flex-direction:row;}
.recipes-page .recipes-meal-card .recipe-energy-actions button {flex:1 1 180px;}

/* A compact editable meal sheet with details only when they are useful. */
#dialog:has(.recipe-energy-form) {width:min(860px,calc(100vw - 32px));}
.recipe-energy-form .recipe-energy-intro {margin-bottom:14px;}
.recipe-energy-form .recipe-edit-recommendation {padding:12px 16px;margin-bottom:18px;}
.recipe-energy-form .recipe-editor-rows {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.recipe-energy-edit-row {margin:0;box-shadow:0 2px 0 #e6ddcf55;}
.recipe-energy-edit-row.is-consumption .recipe-energy-edit-grid {display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:10px;}
.recipe-energy-edit-row.is-consumption .recipe-edit-name {grid-column:auto;}
.recipe-energy-edit-row.is-consumption .recipe-row-kcal {grid-column:1/-1;margin-top:2px;}
.recipe-energy-edit-row.is-consumption label>span {display:block;}
.recipe-energy-edit-row.is-consumption [data-amount-unit] {display:inline;font-weight:400;}
.recipe-nutrition-details {border-top:1px dashed #d6c7b1;margin-top:11px;}
.recipe-nutrition-details>summary {padding:10px 0 6px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#776650;list-style:none;}
.recipe-nutrition-details>summary::after {content:'＋';font-size:14px;}
.recipe-nutrition-details[open]>summary::after {content:'−';}
.recipe-nutrition-details>summary [data-energy-density] {margin-left:auto;font-size:10px;}
.recipe-nutrition-details>div {display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:8px;}
.recipe-nutrition-details label {display:flex;flex-direction:column;gap:7px;font-size:12px;color:#786a5c;min-width:0;}
.recipe-nutrition-details :is(.recipe-edit-basis,.recipe-edit-source) {grid-column:1/-1;margin:0;}
.recipe-energy-edit-row.is-catalog .recipe-energy-edit-grid {grid-template-columns:1fr 1fr;}
.recipe-energy-edit-row.is-catalog .recipe-energy-edit-grid>label:has([name=kcal]) {grid-column:1/-1;}
.recipe-energy-edit-row.is-catalog :is(.recipe-edit-basis,.recipe-edit-source) {grid-column:1/-1;}
.recipe-edit-row-foot {font-size:10px;color:#877968;gap:5px;margin-top:4px;}
.recipe-edit-row-foot button {font-size:11px;padding:8px 0 8px 6px;}
.recipe-energy-form .recipe-add-food {margin-top:18px;border-style:dashed;width:100%;}
.recipe-editor-footer {position:sticky;bottom:-1px;z-index:3;margin-top:18px;padding-top:10px;background:#fcfaf6;box-shadow:0 -7px 16px #fcfaf6;}
.recipe-editor-footer .recipe-edit-total {margin:0;padding:11px 14px;font-size:16px;border:1px dashed #bca788;border-radius:8px;}
.recipe-energy-form .recipe-editor-footer .dialog-actions {position:static;border:0;margin-top:0;padding:12px 0 2px;gap:8px;flex-wrap:nowrap;}
.recipe-editor-footer .dialog-actions button {padding:9px 12px;font-size:12px;white-space:nowrap;}
.recipe-editor-footer .dialog-actions .danger {margin-right:auto;}
.recipe-editor-footer .dialog-actions .primary {margin-left:0;}

@media(min-width:1050px) {
 .recipes-page .recipes-meal-card {position:sticky;top:calc(var(--app-header-height,76px) + 18px);}
}
@media(max-width:1050px) {
 [data-theme=hirono] :is(.home-page,.ledger-page,.recipes-page,.projects-page,.museum-page) {padding-inline:22px;}
 [data-theme=hirono] .home-hero {grid-template-columns:minmax(0,1fr) 190px;gap:16px;padding:24px;}
 [data-theme=hirono] .home-hero h1 {font-size:31px;}
 [data-theme=hirono] .home-metric {padding:16px;}
 [data-theme=hirono] .home-metric strong {font-size:28px;}
 .recipe-energy-form .recipe-editor-rows {gap:12px;}
}
@media(max-width:760px) {
 [data-theme=hirono] :is(.home-page,.ledger-page,.recipes-page,.projects-page,.museum-page) {padding:20px 16px 28px;}
 [data-theme=hirono] :is(.home-hero,.ledger-hero,.recipes-hero,.projects-hero) {border-radius:14px;margin-bottom:18px;}
 [data-theme=hirono] .home-hero {display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px;padding:20px;min-height:0;}
 [data-theme=hirono] .home-hero-copy {display:contents;}
 [data-theme=hirono] .home-hero-kicker {grid-column:1/-1;grid-row:1;margin-bottom:4px;}
 [data-theme=hirono] .home-hero-heading {grid-column:1;grid-row:2;align-self:center;min-width:0;}
 [data-theme=hirono] .home-hero h1 {font-size:23px;line-height:1.5;margin:0;}
 [data-theme=hirono] .home-hero-photo {grid-column:2;grid-row:2;position:relative;inset:auto;align-self:center;justify-self:end;width:102px;padding:6px;transform:rotate(3deg);margin:0;}
 [data-theme=hirono] .home-hero-photo img {height:112px;}
 [data-theme=hirono] .home-hero-photo figcaption {font-size:8px;line-height:1.4;}
 [data-theme=hirono] .home-hero-description {grid-column:1/-1;grid-row:3;font-size:12px;margin:6px 0 0;}
 [data-theme=hirono] .home-hero-date {grid-column:1/-1;grid-row:4;margin:2px 0 0;font-size:11px;}
 [data-theme=hirono] .home-hero-actions {grid-column:1/-1;grid-row:5;margin:7px 0 0;gap:8px;}
 [data-theme=hirono] .home-hero-actions button {min-height:44px;font-size:12px;padding:10px;}
 [data-theme=hirono] .home-metrics {gap:12px;margin-bottom:23px;}
 [data-theme=hirono] .home-metric {padding:15px 14px 12px;min-height:144px;}
 [data-theme=hirono] .home-metric-label {font-size:12px;padding-right:42px;min-height:35px;}
 [data-theme=hirono] .home-metric-label::after {width:40px;height:52px;right:-3px;}
 [data-theme=hirono] .home-metric strong {font-size:27px;margin:8px 0;}
 [data-theme=hirono] .home-metric p {font-size:10px;padding-top:9px;}
 [data-theme=hirono] .home-module-head h2 {font-size:18px;}
 [data-theme=hirono] .home-section-intro h2 {font-size:21px;}
 [data-theme=hirono] :is(.ledger-hero,.recipes-hero) {padding:20px;min-height:176px;}
 [data-theme=hirono] :is(.ledger-hero,.recipes-hero) h1 {font-size:24px;}
 [data-theme=hirono] :is(.ledger-photo,.recipes-hero-art) {width:92px;margin-left:12px;margin-right:0;}
 [data-theme=hirono] .ledger-photo img {height:100px;}
 [data-theme=hirono] .recipes-hero-art img {height:110px;}
 [data-theme=hirono] .projects-hero {padding:22px;}
 [data-theme=hirono] .hirono-story {padding:24px 18px;min-height:174px;}
 [data-theme=hirono] .story-copy h1 {font-size:26px;}
 [data-theme=hirono] .hirono-story.compact {min-height:150px;}
 [data-theme=hirono] .compact .story-copy h1 {font-size:23px;}
 [data-theme=hirono] .tempo-content .tempo-stat {min-height:94px;padding-left:68px;}
 [data-theme=hirono] .tempo-content .tempo-stat::before {left:14px;width:42px;height:62px;}
 [data-theme=hirono] .ledger-stat {padding:18px 20px;min-height:150px;}
 [data-theme=hirono] .module-history-actions button {min-height:44px;}
 .recipes-page :is(.recipes-wheel-card,.recipes-meal-card,.recipes-selections,.recipe-energy-panel,.recipes-history) {padding:20px 18px;}
 .recipes-page .recipes-wheel-card .recipes-section-head {padding-left:60px;min-height:72px;}
 .recipes-page .recipes-wheel-card .recipes-section-head::before {width:50px;height:72px;}
 .recipes-page .recipes-meal-title {min-height:72px;}
 .recipes-page .recipes-meal-mark {width:50px;height:72px;}
 .recipes-page .recipes-wheel-actions {gap:8px;}
 .recipes-page .recipes-wheel-actions button {min-height:44px;font-size:12px;}
 .recipes-page .recipes-wheel-stage {width:min(100%,268px);height:auto;aspect-ratio:1;}
 .recipes-page .recipes-theme-chip,.recipes-page .recipe-nutrition-link {min-height:44px;}
 .recipes-page .recipe-energy-actions button {min-height:44px;}
 .recipe-energy-form .recipe-editor-rows {grid-template-columns:1fr;gap:13px;}
 .recipe-energy-edit-row.is-consumption .recipe-energy-edit-grid {grid-template-columns:minmax(0,1fr) 100px;}
 .recipe-energy-edit-row.is-consumption .recipe-edit-name {grid-column:auto;}
 .recipe-nutrition-details summary {min-height:40px;font-size:12px;}
 .recipe-nutrition-details>summary [data-energy-density] {font-size:10px;}
 .recipe-nutrition-details input,.recipe-nutrition-details select {font-size:16px;}
 .recipe-nutrition-details label:has([name=kcal]) {grid-column:auto;}
 .recipe-editor-footer .dialog-actions button {min-height:44px;padding:9px 11px;}
 .recipe-edit-row-foot button {min-height:40px;}
}
@media(max-width:360px) {
 [data-theme=hirono] .home-hero {grid-template-columns:minmax(0,1fr) 88px;padding:17px;gap:8px;}
 [data-theme=hirono] .home-hero h1 {font-size:21px;}
 [data-theme=hirono] .home-hero-photo {width:83px;}
 [data-theme=hirono] .home-hero-photo img {height:92px;}
 [data-theme=hirono] .home-metric {padding:13px 11px;}
 [data-theme=hirono] .home-metric strong {font-size:24px;}
 [data-theme=hirono] .home-metric-label {padding-right:32px;font-size:11px;}
 [data-theme=hirono] .home-metric-label::after {width:32px;}
 .recipe-editor-footer .dialog-actions button {padding:9px 7px;font-size:11px;}
 .recipe-edit-row-foot>span {font-size:9px;}
}
@media(prefers-reduced-motion:reduce) {
 [data-theme=hirono] .topbar :is(.app-tab,.nav-character),[data-theme=hirono] :is(.ledger-entry,.recipes-history-entry) {transition:none;}
}

/* In-app decisions share the page's paper, character and quiet accent. */
#app-confirmation {
 --confirmation-accent:#80634f;
 width:min(508px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);
 box-sizing:border-box;padding:0;border:1px solid #cdbba2;border-radius:16px;
 background:#faf6ec var(--atelier-grain);background-size:180px 180px;color:#54463a;
 box-shadow:0 24px 85px #35271940,0 2px 5px #3527191a;overflow:auto;
}
#app-confirmation[data-context=tempo] {--confirmation-accent:#7d6377;}
#app-confirmation[data-context=ledger] {--confirmation-accent:#85623e;}
#app-confirmation[data-context=recipes] {--confirmation-accent:#8a6348;}
#app-confirmation[data-context=projects] {--confirmation-accent:#8b604b;}
#app-confirmation::backdrop {background:#3b302c66;backdrop-filter:blur(5px);}
.confirmation-topline {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 19px 0 26px;}
.confirmation-context {font-size:11px;letter-spacing:.1em;color:#7e6b55;}
#app-confirmation .confirmation-close {display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;border:1px solid #ddcdb8;background:#fffaf2;color:#927a62;font:24px/1 sans-serif;}
.confirmation-main {display:grid;grid-template-columns:82px minmax(0,1fr);gap:21px;padding:18px 28px 27px 24px;align-items:center;}
.confirmation-art {position:relative;display:grid;place-items:center;align-self:center;height:120px;margin:0;isolation:isolate;}
.confirmation-art::before {content:'';position:absolute;inset:24px -3px 7px;z-index:-1;border:1px solid #dcc9ad;border-radius:50% 48% 45% 52%;background:radial-gradient(ellipse at 40% 30%,#f8efdf,#e9dcc7);transform:rotate(-8deg);}
.confirmation-art::after {content:'✧';position:absolute;left:0;top:7px;color:#b3946b;font-size:15px;}
.confirmation-art img {display:block;width:78px;height:112px;object-fit:contain;filter:drop-shadow(0 4px 3px #60462c1a);}
.confirmation-eyebrow {margin:0 0 9px;color:var(--confirmation-accent);font-size:11px;letter-spacing:.13em;}
#app-confirmation h2 {margin:0;color:#554132;font:600 23px/1.5 'Noto Serif SC','SimSun',serif;letter-spacing:.025em;overflow-wrap:anywhere;}
#confirmation-message {margin:11px 0 0;font-size:13px;line-height:1.9;color:#776551;white-space:pre-line;overflow-wrap:anywhere;}
.confirmation-actions {display:flex;justify-content:flex-end;gap:11px;padding:20px 26px 23px;border-top:1px dashed #d5c3aa;background:#f2eadcaa;}
#app-confirmation .confirmation-actions button {min-height:43px;padding:11px 20px;border:1px solid #d6c5ae;border-radius:8px;background:#fcf8f0;color:#85715c;font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;}
#app-confirmation .confirmation-actions .confirmation-danger {color:#935a48;border-color:#d7b9a8;background:#fbf3eb;}
#app-confirmation .confirmation-actions .confirmation-keep {background:var(--confirmation-accent);border-color:var(--confirmation-accent);color:#fffaf2;box-shadow:0 3px 7px #624a3320;}
#app-confirmation button:hover {filter:brightness(.96);}
#app-confirmation button:focus-visible {outline:2px solid var(--confirmation-accent);outline-offset:3px;}
@media(max-width:480px) {
 #app-confirmation {width:calc(100vw - 28px);max-width:calc(100vw - 28px);border-radius:13px;}
 .confirmation-topline {padding:13px 15px 0 19px;}
 .confirmation-main {grid-template-columns:61px minmax(0,1fr);gap:14px;padding:15px 20px 23px 17px;}
 .confirmation-art {height:98px;}
 .confirmation-art img {width:60px;height:92px;}
 #app-confirmation h2 {font-size:21px;}
 #confirmation-message {font-size:13px;}
 .confirmation-actions {padding:17px 18px 20px;gap:10px;}
 #app-confirmation .confirmation-actions button {flex:1;min-width:0;min-height:46px;padding:10px 11px;}
}
@media(prefers-reduced-motion:no-preference) {
 #app-confirmation[open] {animation:confirmation-appear .16s ease-out;}
 @keyframes confirmation-appear {from {opacity:0;transform:translateY(6px)}to {opacity:1;transform:translateY(0)}}
}

/* A second pass through the small places: notes, receipts and editing sheets. */
[data-theme=hirono] .home-module {--module-ink:#80664b;}
[data-theme=hirono] .home-knowledge {--module-ink:#7e655d;}
[data-theme=hirono] .home-tempo {--module-ink:#856e82;}
[data-theme=hirono] .home-ledger {--module-ink:#987044;}
[data-theme=hirono] .home-recipes {--module-ink:#967d4e;}
[data-theme=hirono] .home-module-head {border-bottom:1px solid #ded3c4;}
[data-theme=hirono] .home-module .home-eyebrow {color:var(--module-ink);font-size:10px;letter-spacing:.12em;}
[data-theme=hirono] .home-module .home-open {background:#fffcf6;border:1px solid #d9cbb8;min-height:40px;color:#65574b;}
[data-theme=hirono] .home-module .home-open:hover {background:#f0e8dd;border-color:#a58d71;}
[data-theme=hirono] .home-note {padding:14px 0 15px;}
[data-theme=hirono] .home-note-top {align-items:start;gap:12px;}
[data-theme=hirono] .home-note-top time {padding:3px 6px;border-radius:4px;background:#f0e9de;color:#786652;font-size:10px;white-space:nowrap;}
[data-theme=hirono] .home-note-read {font-size:15px;font-weight:600;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.65;}
[data-theme=hirono] .home-note>p {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#756b60;}
[data-theme=hirono] .home-note-tag {border-radius:4px;color:#7b6051;background:#f4ece1;border:1px solid #decebb;}
[data-theme=hirono] .home-task {padding-block:14px;gap:12px;}
[data-theme=hirono] .home-task .home-task-circle {border-radius:50%;background:#fffdf8;border-color:#bcaba0;transition:background .15s,border-color .15s;}
[data-theme=hirono] .home-task .home-task-circle:hover {background:#e9e1e8;border-color:#92748a;color:#71576a;}
[data-theme=hirono] .home-task-priority {background:#f0e4d4;color:#85613e;border:1px solid #d9bfa1;border-radius:4px;padding:3px 6px;font-size:10px;}
[data-theme=hirono] .home-task-progress {height:5px;margin-block:15px 6px;}
[data-theme=hirono] .home-money-list {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-block:0 20px;}
[data-theme=hirono] .home-money-row {display:block;padding:14px 16px;border:1px solid #ddd0bc;border-radius:8px;background:#fffaf0;min-width:0;}
[data-theme=hirono] .home-money-row.balance {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ece6da;border-style:dashed;}
[data-theme=hirono] .home-money-row dd {font-family:var(--mono);font-size:23px;margin:10px 0 0;overflow-wrap:anywhere;}
[data-theme=hirono] .home-money-row.balance dd {margin:0;font-size:24px;}
[data-theme=hirono] .home-money-row dt {font-size:12px;}
.home-ledger-recent {margin:4px 0 20px;}
.home-recent-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#655745;margin-bottom:10px;}
.home-recent-heading small {font-size:10px;color:#7b7062;}
.home-ledger-recent ul {list-style:none;margin:0;padding:0;border-top:1px dashed #d8c9b3;}
.home-ledger-recent li {border-bottom:1px dashed #d8c9b3;}
.home-ledger-recent button {width:100%;display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:68px;padding:12px 4px;border:0;background:transparent;color:#4a4037;text-align:left;border-radius:5px;}
.home-ledger-recent button:hover {background:#e8ddce66;}
.home-ledger-recent time {font:11px var(--mono);background:#eee4d5;padding:9px 3px;border-radius:4px;text-align:center;color:#7a624a;}
.home-ledger-recent-copy {display:flex;flex-direction:column;gap:6px;min-width:0;}
.home-ledger-recent-copy strong {font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.home-ledger-recent-copy small {color:#7b7062;font-size:10px;}
.home-ledger-recent-amount {font:600 14px var(--mono);color:#966747;white-space:nowrap;}
.home-ledger-recent-amount.income {color:#60705e;}

/* Keep the illustrated note shelf, with a calmer reading surface and clear tools. */
[data-theme=hirono] .hero + .content .library-note {--note-accent:#947562;border-color:#d9cdbc;border-radius:5px 14px 14px 5px;box-shadow:0 3px 0 #e6dfd5,0 6px 15px #4d403006;transition:border-color .15s,box-shadow .15s,transform .15s;}
[data-theme=hirono] .hero + .content .library-note:nth-child(3n+2) {--note-accent:#a18c5c;}
[data-theme=hirono] .hero + .content .library-note:nth-child(3n) {--note-accent:#85717c;}
[data-theme=hirono] .hero + .content .library-note:hover,[data-theme=hirono] .hero + .content .library-note:focus-within {border-color:var(--note-accent);box-shadow:0 3px 0 #dcd0c1,0 9px 21px #4d403011;transform:translateY(-2px);}
[data-theme=hirono] .hero + .content .library-note .note-tag {border-color:#d8c6b3;background:#f2e8db;color:#78614d;font-size:11px;}
[data-theme=hirono] .hero + .content .library-note h3 {margin-block:16px 13px;}
[data-theme=hirono] .hero + .content .library-note h3 .task-title {font-size:16px;font-weight:600;line-height:1.65;}
[data-theme=hirono] .hero + .content .library-note>p {font-size:13px;line-height:1.9;color:#73665c;}
[data-theme=hirono] .hero + .content .library-note-foot {border-top:1px dashed #d9cabb;padding-top:12px;color:#7b6b5c;font-size:11px;}
[data-theme=hirono] .hero + .content .library-note-foot .icon-btn {width:38px;height:38px;border:1px solid #e1d3c2;border-radius:8px;background:#fffaf2;color:#816650;}
[data-theme=hirono] :is(.library-toolbar,.projects-filter-panel,.ledger-filters,.recipes-history-tools) {border-color:#d9cdbd;}
[data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search) {border:1px solid #d8cbb9;background:#fffcf7;border-radius:9px;min-height:44px;transition:border-color .15s,box-shadow .15s;}
[data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search):focus-within {border-color:#a28b70;box-shadow:0 0 0 3px #b6a18520;}
[data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search) input {background:transparent;min-width:0;}
[data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search) button[type=submit] {background:#ebe2d6;border:1px solid #ddcdbb;border-radius:6px;color:#66523e;min-height:34px;font-size:12px;padding:7px 12px;}
[data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search) button[type=submit]:hover {background:#e1d3c1;}
[data-theme=hirono] :is(#library-search,#task-search) {background:#fffcf7;border:1px solid #d8cbb9;border-radius:9px;min-height:44px;}
[data-theme=hirono] :is(.projects-filter-chip,.ledger-filter-chip,.filter-reset) {border:1px solid #cebba6;border-radius:6px;background:#f2e9dc;color:#725b44;}
[data-theme=hirono] :is(.projects-results-line,.ledger-records-context,.filter-summary) {color:#736554;}
[data-theme=hirono] :is(.projects-results-line,.ledger-records-context,.filter-summary) strong {color:#755e45;}

/* Editing sheets retain the same paper and character language as their pages. */
[data-theme=hirono] #dialog {--sheet-accent:#8b7159;--sheet-wash:#f3ece2;}
[data-theme=hirono] #dialog:has(#note-form) {width:min(780px,calc(100vw - 32px));--sheet-art:url('../assets/hirono/series/shelter-poet-cutout.png');--sheet-accent:#866b59;}
[data-theme=hirono] #dialog:has(#task-form) {width:min(660px,calc(100vw - 32px));--sheet-art:url('../assets/hirono/series/echo-daydreaming-cutout.png');--sheet-accent:#8b7182;--sheet-wash:#eee7ec;}
[data-theme=hirono] #dialog:has(#ledger-entry-form) {width:min(620px,calc(100vw - 32px));--sheet-art:url('../assets/hirono/series/wildgrass-receipts-cutout.png');--sheet-accent:#9a754d;--sheet-wash:#f0e8d9;}
[data-theme=hirono] #dialog:has(#projects-entry-form) {--sheet-art:url('../assets/hirono/series/mercy-city-cutout.png');--sheet-accent:#986b55;--sheet-wash:#f2e8de;}
[data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) {border-color:#cdbca6;border-radius:15px;background:#fcf9f3 var(--atelier-grain);background-size:180px 180px;scroll-padding-block:105px 100px;}
[data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title {position:relative;min-height:77px;padding:8px 0 17px 72px;margin-bottom:22px;border-bottom:1px solid #d8c8b3;gap:10px;}
[data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title::before {content:'';position:absolute;left:0;top:-6px;width:57px;height:79px;background:var(--sheet-art) center/contain no-repeat;filter:drop-shadow(0 3px 2px #59433013);pointer-events:none;}
[data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title h2 {font-family:'Noto Serif SC','SimSun',serif;font-size:24px;font-weight:600;color:#4c3e33;letter-spacing:.03em;min-width:0;}
[data-theme=hirono] #dialog .dialog-title .icon-btn {flex-shrink:0;min-width:36px;min-height:36px;border:1px solid #e0d5c5;border-radius:50%;color:#89735e;background:#fffaf3;}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form) .field {color:#655242;}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form) .field :is(input,select,textarea) {background-color:#fffdf8;border-color:#d9cab5;border-radius:7px;}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form) .field :is(input,select,textarea):focus {border-color:var(--sheet-accent);box-shadow:0 0 0 3px #aa907025;outline-color:var(--sheet-accent);}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form)>.dialog-actions {position:sticky;bottom:-25px;background:#fcf9f3;z-index:3;margin:18px -1px -1px;padding:15px 0 20px;border-top:1px solid #deceba;box-shadow:0 -8px 12px #fcf9f3;}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form) .dialog-actions .primary {background:var(--sheet-accent);border:1px solid var(--sheet-accent);color:#fffdfa;}
[data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form) .dialog-actions .primary:hover {filter:brightness(.92);}
[data-theme=hirono] #dialog .form-error:not(:empty) {padding:9px 12px;border:1px solid #d8aea0;background:#f9eee5;border-radius:7px;font-size:12px;}
[data-theme=hirono] #note-form {display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.45fr);column-gap:16px;}
[data-theme=hirono] #note-form>* {grid-column:1/-1;}
[data-theme=hirono] #note-form>.field:nth-child(-n+2) {grid-column:auto;}
[data-theme=hirono] #note-form .editor-tools {border:1px solid #deceba;border-bottom:0;border-radius:8px 8px 0 0;padding:9px 12px;margin:4px 0 0;background:#f2eade;gap:8px;flex-wrap:wrap;}
[data-theme=hirono] #note-form .editor-tools button {font-size:12px;min-height:32px;color:#765d46;}
[data-theme=hirono] #note-form .editor-tools .micro {font-size:10px;}
[data-theme=hirono] #note-form .image-import-status:empty {display:none;}
[data-theme=hirono] #note-form .note-content-field {padding:12px;border:1px solid #deceba;border-radius:0 0 8px 8px;background:#fffdf8;gap:10px;}
.note-editor-caption {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#note-word-count {font-size:11px;font-variant-numeric:tabular-nums;color:#826a52;white-space:nowrap;}
[data-theme=hirono] #note-form .note-content-field textarea {border:0;border-radius:3px;background:transparent;min-height:290px!important;padding:9px 4px;line-height:1.95;font-size:15px;}
[data-theme=hirono] #task-form>.form-grid {padding:16px 16px 2px;border:1px dashed #cebdc7;border-radius:8px;background:var(--sheet-wash);margin-bottom:18px;gap:0 14px;}
[data-theme=hirono] #task-form textarea {min-height:120px;}
[data-theme=hirono] #ledger-entry-form .ledger-entry-context {background:var(--sheet-wash);border:0;border-left:3px solid #b79a75;border-radius:0 6px 6px 0;}
[data-theme=hirono] #ledger-entry-form .ledger-amount-field {padding:16px 18px 12px;background:#f2e9d9;border:1px dashed #c6a981;border-radius:8px;margin-bottom:10px;}
[data-theme=hirono] #ledger-entry-form .ledger-amount-field>div {border:0;background:transparent;margin-top:5px;}
[data-theme=hirono] #ledger-entry-form .ledger-amount-field input {background:#fffdf8;min-height:54px;font-size:32px;border:1px solid #d2bda2;}
[data-theme=hirono] #ledger-entry-form .ledger-category-choices {gap:8px;}
[data-theme=hirono] #ledger-entry-form [data-ledger=form-category] {position:relative;display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:76px;padding:7px 4px;font-size:12px;border-radius:7px;}
[data-theme=hirono] #ledger-entry-form [data-ledger=form-category]>span {display:none;}
[data-theme=hirono] #ledger-entry-form [data-ledger=form-category]::before {content:'';width:32px;height:39px;background:var(--choice-art,url('../assets/hirono/series/prince-rose-cutout.png')) center/contain no-repeat;}
[data-theme=hirono] #ledger-entry-form [data-category=food] {--choice-art:url('../assets/hirono/series/clot-silk.png');}
[data-theme=hirono] #ledger-entry-form [data-category=daily] {--choice-art:url('../assets/hirono/series/wildgrass-receipts-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-category=transport] {--choice-art:url('../assets/hirono/series/prince-rose-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-category=shopping] {--choice-art:url('../assets/hirono/series/shelter-poet-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-category=leisure] {--choice-art:url('../assets/hirono/series/carnival-clown.png');}
[data-theme=hirono] #ledger-entry-form [data-category=medical] {--choice-art:url('../assets/hirono/series/harry-sorting-hat-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-category=social] {--choice-art:url('../assets/hirono/series/echo-daydreaming-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-category=pet] {--choice-art:url('../assets/hirono/series/mercy-city-cutout.png');}
[data-theme=hirono] #ledger-entry-form [data-ledger=form-category].selected {background:#ece0cc;border-color:#ac8962;color:#725335;box-shadow:inset 0 -2px #a38259;}
[data-theme=hirono] #projects-entry-form .projects-form-scroller {max-height:min(calc(92dvh - 290px),650px);}
[data-theme=hirono] #projects-entry-form fieldset {padding:15px 16px 4px;border:1px solid #ddccba;border-radius:6px 12px 12px 6px;background:#fffaf3;}
[data-theme=hirono] #projects-entry-form fieldset+fieldset {margin-top:20px;padding-top:15px;}
[data-theme=hirono] #projects-entry-form legend {width:auto;padding:0 8px;margin:0;font-size:14px;font-weight:600;color:#825b45;}
[data-theme=hirono] #projects-entry-form legend>span {display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #cbb39d;border-radius:4px;background:#f2e6d7;color:#977357;font:11px var(--mono);}
[data-theme=hirono] #projects-entry-form .projects-form-help {font-size:11px;line-height:1.8;color:#796957;}
[data-theme=hirono] #settings-form .settings-actions:not(.settings-appearance) {display:grid;grid-template-columns:1fr 1fr;gap:10px;}
[data-theme=hirono] #settings-form .settings-actions:not(.settings-appearance)>button {display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 10px;border:1px solid #d8c8b4;background:#f4eddf;border-radius:8px;min-height:52px;}
[data-theme=hirono] .toast {background:#fffaf0;color:#614b37;border:1px solid #cdb597;box-shadow:0 8px 24px #4b362522;border-radius:8px;padding:13px 20px;}
[data-theme=hirono] .toast::before {content:'✧';color:#a27d4d;margin-right:9px;}
@media(max-width:760px) {
 [data-theme=hirono] .home-money-list {gap:9px;}
 [data-theme=hirono] .home-money-row {padding:12px;}
 [data-theme=hirono] .home-money-row dd {font-size:21px;}
 [data-theme=hirono] .home-money-row.balance dd {font-size:23px;}
 [data-theme=hirono] .home-module .home-open {min-height:44px;}
 .home-ledger-recent button {gap:10px;grid-template-columns:40px minmax(0,1fr) auto;}
 .home-ledger-recent-amount {font-size:12px;}
 [data-theme=hirono] .hero + .content .library-note-foot .icon-btn {width:44px;height:44px;}
 [data-theme=hirono] :is(.projects-search,.ledger-search,.recipes-history-search,.museum-search) button[type=submit] {min-height:44px;}
 [data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) {padding:20px;max-height:92dvh;}
 [data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title {padding-left:57px;min-height:71px;margin-bottom:18px;}
 [data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title::before {width:46px;height:66px;top:0;}
 [data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) .dialog-title h2 {font-size:20px;}
 [data-theme=hirono] #dialog .dialog-title .icon-btn {min-width:40px;min-height:40px;}
 [data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form)>.dialog-actions {bottom:-20px;padding-bottom:15px;gap:8px;flex-wrap:wrap;}
 [data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form)>.dialog-actions button {padding:10px 12px;min-height:44px;}
 [data-theme=hirono] #note-form {display:block;}
 [data-theme=hirono] #note-form .editor-tools .micro {display:block;}
 [data-theme=hirono] #note-form .note-content-field textarea {min-height:240px!important;font-size:16px;}
 [data-theme=hirono] #task-form>.form-grid {padding:13px 13px 0;}
 [data-theme=hirono] #ledger-entry-form .ledger-amount-field {padding:13px 12px 10px;}
 [data-theme=hirono] #ledger-entry-form [data-ledger=form-category] {font-size:11px;min-height:76px;}
 [data-theme=hirono] #projects-entry-form .projects-form-scroller {max-height:calc(92dvh - 285px);}
 [data-theme=hirono] #projects-entry-form fieldset {padding:13px 11px 0;}
}
@media(max-width:360px) {
 [data-theme=hirono] .home-money-row dd {font-size:18px;}
 [data-theme=hirono] .home-money-row.balance dd {font-size:20px;}
 .home-recent-heading {align-items:start;flex-direction:column;gap:5px;}
 .home-ledger-recent button {column-gap:7px;}
 .home-ledger-recent-amount {font-size:11px;}
 [data-theme=hirono] #dialog:has(:is(#note-form,#task-form,#ledger-entry-form,#projects-entry-form)) {padding:16px;}
 [data-theme=hirono] #dialog :is(#note-form,#task-form,#ledger-entry-form)>.dialog-actions {bottom:-16px;}
 [data-theme=hirono] #dialog .dialog-title .icon-btn {min-width:36px;min-height:36px;}
 [data-theme=hirono] #ledger-entry-form .ledger-category-choices {gap:6px;}
}
@media(prefers-reduced-motion:reduce) {
 [data-theme=hirono] .hero + .content .library-note,[data-theme=hirono] .home-task .home-task-circle {transition:none;}
 [data-theme=hirono] .hero + .content .library-note:hover,[data-theme=hirono] .hero + .content .library-note:focus-within {transform:none;}
}

/* Planner workflow, 1.2.5: one status navigation and a project-only rail. */
[data-theme=hirono] .planner-refined {--planner-line:#e5dbce;--planner-muted:#75685e;}
[data-theme=hirono] .planner-refined .tempo-header h1 {margin:0;font-size:24px;}
.planner-heading-note {margin:5px 0 0;font-size:12px;color:var(--planner-muted);line-height:1.6;}
[data-theme=hirono] .planner-refined .tempo-stats {margin:20px 0 18px;gap:12px;}
[data-theme=hirono] .planner-refined .tempo-stat {text-align:left;min-height:92px;padding:16px 18px 16px 68px;transition:border-color .15s,background .15s;}
[data-theme=hirono] .planner-refined .tempo-stat::before {left:14px;width:42px;height:60px;}
[data-theme=hirono] .planner-refined .tempo-stat:hover {background-color:#f4eee4;border-color:#b9a38b;}
[data-theme=hirono] .planner-refined .tempo-stat[aria-pressed=true] {border-color:#a99077;box-shadow:inset 0 -2px #a99077;}
[data-theme=hirono] .planner-refined .tempo-stat strong {font-family:Georgia,'Microsoft YaHei',serif;font-size:30px;flex:none;}
[data-theme=hirono] .planner-refined .tempo-stat.has-overdue strong {color:#a15d49;}
.planner-stat-copy {display:flex;flex-direction:column;gap:8px;min-width:0;}
.planner-stat-copy>small {font-size:11px;color:#80746a;line-height:1.6;}
[data-theme=hirono] .planner-refined .tempo-tabs {gap:2px;margin-bottom:18px;}
[data-theme=hirono] .planner-refined .tempo-tabs button {padding:9px 11px;}
[data-theme=hirono] .planner-refined .tempo-layout {grid-template-columns:202px minmax(0,1fr);align-items:start;gap:20px;min-height:0;}
[data-theme=hirono] .planner-refined .tempo-sidebar {padding:10px 8px 12px;}
[data-theme=hirono] .planner-refined .sidebar-label {padding-top:2px;margin-top:0;}
[data-theme=hirono] .planner-refined .sidebar-item {min-height:44px;}
.planner-day-progress {margin:16px 10px 0;padding-top:18px;border-top:1px dashed #cbbba7;font-size:11px;color:#77685c;line-height:1.7;}
.planner-day-progress>div {display:flex;align-items:center;gap:8px;margin-top:8px;}
.planner-day-progress strong {font:24px/1.4 Georgia,serif;color:#675247;}
.planner-day-progress p {margin:9px 0 0;font-size:11px;}
.planner-day-progress progress,.home-task-meter {display:block;appearance:none;width:100%;height:5px;border:none;border-radius:10px;overflow:hidden;background:#e8ded1;margin-top:12px;}
.planner-day-progress progress::-webkit-progress-bar,.home-task-meter::-webkit-progress-bar {background:#e8ded1;border-radius:10px;}
.planner-day-progress progress::-webkit-progress-value,.home-task-meter::-webkit-progress-value {background:#8d7766;border-radius:10px;}
.planner-day-progress progress::-moz-progress-bar,.home-task-meter::-moz-progress-bar {background:#8d7766;border-radius:10px;}
[data-theme=hirono] .planner-refined .task-main {min-height:380px;background-color:#fffcf7;}
[data-theme=hirono] .planner-refined .task-toolbar {padding:17px 22px;min-height:80px;background-color:#f7f1e8;}
[data-theme=hirono] .planner-refined .task-toolbar>strong {font-size:17px;}
[data-theme=hirono] .planner-refined .task-toolbar .task-search {width:230px;background:#fffdf9;}
[data-theme=hirono] .planner-refined .task-scope-context {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:14px 22px 0;}
.task-scope-description {flex:1;min-width:140px;color:#786a5f;line-height:1.7;}
.task-sort-picker {display:flex;align-items:center;gap:8px;flex:none;font-size:11px;color:#786a5f;}
.task-sort-picker select {padding:7px 8px;min-height:38px;border:1px solid #e0d3c1;border-radius:7px;background:#fffdf8;font-family:inherit;font-size:12px;line-height:1.5;color:#66584b;}
.planner-filter-line {display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:4px 22px 12px;}
.planner-filter-line>.filter-summary {padding:0;display:flex;align-items:center;gap:10px;margin:0;min-height:32px;font-size:12px;flex:1;}
[data-theme=hirono] .planner-refined .task-list {padding:0 20px 6px;}
[data-theme=hirono] .planner-refined .task-row {grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:16px 6px;min-height:94px;border-bottom:1px solid #e9dfd2;}
[data-theme=hirono] .planner-refined .task-row:last-child {border-bottom:0;}
[data-theme=hirono] .planner-refined .task-row::before {display:none;}
[data-theme=hirono] .planner-refined .task-row .task-status {width:40px;min-width:40px;align-self:start;}
.task-row-copy {min-width:0;}
[data-theme=hirono] .planner-refined .task-row .task-title {display:block;width:100%;text-align:left;padding:4px 0;font-size:14px;min-height:32px;line-height:1.7;overflow-wrap:anywhere;}
.task-description {margin:3px 0 7px;color:#807368;font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;}
.task-row-meta {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px;font-size:11px;color:#857367;}
.task-state-label {color:#857367;}
.task-priority-label {display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.5;color:#84766a;white-space:nowrap;}
.task-priority-label::before {content:'';width:5px;height:5px;border-radius:50%;background:#b3a697;}
.task-priority-label.high {color:#a25843;}
.task-priority-label.high::before {background:#b97459;}
.task-priority-label.medium::before {background:#af9162;}
[data-theme=hirono] .planner-refined .project-pill {font-size:10px;padding:2px 7px;background:#eee7dc;max-width:100%;overflow-wrap:anywhere;white-space:normal;}
.task-deadline {display:inline-flex;gap:5px;align-items:center;justify-self:end;padding:5px 8px;background:#f1ece3;border:1px solid #e6ddd0;border-radius:6px;color:#7d6b5b;font-size:11px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums;}
.task-deadline .icon {width:12px;height:12px;}
.task-deadline.overdue {color:#9b4d39;border-color:#e6c8ba;background:#fbede5;}
.task-deadline.today {color:#856932;border-color:#e1cfa8;background:#faf1db;}
.task-deadline.soon {color:#61715b;background:#eef1e8;border-color:#d6decb;}
[data-theme=hirono] .planner-refined .task-row.is-done {opacity:.72;}
[data-theme=hirono] .planner-refined .task-row.is-recent {background:#ece7d759;border-radius:8px;}
.planner-list-note {display:flex;align-items:flex-start;gap:7px;padding:15px 22px;border-top:1px dashed #e1d4c2;color:#86776a;font-size:11px;line-height:1.7;}
.planner-list-note .icon {width:13px;height:13px;flex:none;margin-top:3px;}
[data-theme=hirono] .planner-refined .kanban {padding:8px 18px 20px;gap:12px;}
[data-theme=hirono] .planner-refined .kanban-column {border:1px solid #e0d5c6;border-radius:10px;background:#f3ede3;padding:12px;min-width:0;}
[data-theme=hirono] .planner-refined .task-card {padding:14px;border-radius:8px;background:#fffcf6;margin:10px 0;min-width:0;}
[data-theme=hirono] .planner-refined .task-card .task-title {display:block;min-height:36px;margin:8px 0;text-align:left;overflow-wrap:anywhere;}
[data-theme=hirono] .planner-refined .task-card-foot {flex-wrap:wrap;gap:8px;}
[data-theme=hirono] .planner-refined .task-card-foot select {min-height:36px;max-width:100%;}
.kanban-empty {margin:20px 0;color:#8b7c6f;font-size:12px;text-align:center;}
.kanban-add {display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;border:1px dashed #cbbbA5;border-radius:7px;color:#786553;font-size:12px;}
.task-date-shortcuts {display:flex;gap:5px;flex-wrap:wrap;}
.task-date-shortcuts button {min-height:32px;border:1px solid #ded0bd;background:#f8f0e4;color:#80684d;padding:4px 8px;border-radius:6px;font-size:11px;}
.task-date-shortcuts button:hover {background:#eadcc8;}
.home-progress-label {display:flex;justify-content:space-between;color:#86766a;font-size:11px;margin:12px 0 0;}
.home-progress-label strong {font-weight:500;font-variant-numeric:tabular-nums;}
.home-task-meter {margin:9px 0 12px;}
.home-overdue-link {display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;background:#f5e8de;border:1px solid #e4cec0;border-radius:7px;color:#966148;padding:10px 12px;margin-bottom:10px;font-size:11px;line-height:1.7;}
.home-overdue-link>span {display:inline-flex;align-items:center;gap:5px;}
.home-overdue-link .home-icon {width:13px;height:13px;}
[data-theme=hirono] .toast {display:flex;align-items:center;gap:12px;visibility:hidden;}
[data-theme=hirono] .toast::before {margin-right:0;}
[data-theme=hirono] .toast.visible {visibility:visible;pointer-events:auto;}
[data-theme=hirono] .toast>span {overflow-wrap:anywhere;min-width:0;}
[data-theme=hirono] .toast button {flex:none;border:1px solid #bda78e;border-radius:5px;background:#f0e4d4;color:#5d4735;font-size:12px;padding:6px 12px;min-height:34px;}
@media(max-width:1100px){
 [data-theme=hirono] .planner-refined .tempo-stat {padding:16px;}
 [data-theme=hirono] .planner-refined .tempo-stat::before {display:none;}
 [data-theme=hirono] .planner-refined .tempo-layout {grid-template-columns:176px minmax(0,1fr);gap:14px;}
 [data-theme=hirono] .planner-refined .task-toolbar .task-search {width:190px;}
 [data-theme=hirono] .planner-refined .task-toolbar::before {display:none;}
}
@media(max-width:760px){
 [data-theme=hirono] .planner-refined .tempo-layout {grid-template-columns:minmax(0,1fr);}
 [data-theme=hirono] .planner-refined .tempo-sidebar {display:none;}
 [data-theme=hirono] .planner-refined .task-project-picker {display:flex;}
 [data-theme=hirono] .planner-refined .task-project-create {display:inline-flex;min-height:40px;}
 [data-theme=hirono] .planner-refined .tempo-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 [data-theme=hirono] .planner-refined .tempo-stat {padding:14px;min-height:82px;}
 [data-theme=hirono] .planner-refined .tempo-stat strong {font-size:27px;}
 [data-theme=hirono] .planner-refined .tempo-header {flex-wrap:wrap;}
 [data-theme=hirono] .planner-refined .tempo-header .head-right {margin-left:auto;}
 [data-theme=hirono] .planner-refined .task-toolbar {padding:16px;}
 [data-theme=hirono] .planner-refined .task-toolbar .head-right {flex-basis:100%;margin:8px 0 0;}
 [data-theme=hirono] .planner-refined .task-toolbar .task-search {width:0;flex:1;}
 [data-theme=hirono] .planner-refined .task-scope-context {padding:12px 16px 0;}
 .planner-filter-line {padding:6px 16px 12px;}
 [data-theme=hirono] .planner-refined .task-list {padding:0 12px;}
 [data-theme=hirono] .planner-refined .task-row {grid-template-columns:36px minmax(0,1fr);gap:6px 8px;padding:14px 0;}
 [data-theme=hirono] .planner-refined .task-row .task-status {grid-column:1;grid-row:1;width:36px;min-width:36px;}
 [data-theme=hirono] .planner-refined .task-row-copy {grid-column:2;grid-row:1;}
 [data-theme=hirono] .planner-refined .task-row>.task-deadline {grid-column:2;grid-row:2;justify-self:start;}
 [data-theme=hirono] .planner-refined .kanban {grid-template-columns:minmax(0,1fr);padding:6px 12px 16px;}
 .task-date-shortcuts button {min-height:36px;}
 .home-overdue-link {flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce){
 [data-theme=hirono] .planner-refined :is(.tempo-stat,.task-row) {transition:none;}
}
@media(max-width:480px){
 [data-theme=hirono] .planner-refined .tempo-stat {display:flex;flex-direction:row;justify-content:space-between;gap:6px;min-height:74px;padding:12px;}
 [data-theme=hirono] .planner-refined .planner-stat-copy {text-align:left;}
 [data-theme=hirono] .planner-refined .planner-stat-copy>small {display:none;}
 [data-theme=hirono] .planner-refined .tempo-stat strong {font-size:25px;}
 [data-theme=hirono] .planner-refined .tempo-stat strong small {margin-left:3px;}
}
