/* Four workspaces, one quiet paper-and-ink system. Existing Hirono art is retained. */
.main-pane:is([data-module=pulse],[data-module=tempo],[data-module=ledger],[data-module=recipes]) {--module-paper:#fffaf2;--module-line:#ddcdb8;--module-ink:#70533b;--module-muted:#947c65;--module-wash:#f1e6d5;}
[data-theme=hirono] .main-pane[data-module=pulse] .hero {max-width:1304px;width:calc(100% - 40px);margin:24px auto 0;}
[data-theme=hirono] .main-pane[data-module=pulse] .hirono-story {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 30px;border:1px solid var(--module-line);border-radius:14px;min-height:0;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-copy {flex:1;min-width:0;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-copy h1 {font-size:28px;line-height:1.55;margin:14px 0;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-date {position:static;white-space:nowrap;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-kicker {gap:16px;flex-wrap:wrap;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-photos {display:block!important;position:relative;inset:auto;flex:0 0 148px;width:148px;height:166px;transform:none;margin:0;}
[data-theme=hirono] .main-pane[data-module=pulse] .story-photo.featured {position:relative;inset:auto;width:132px;height:164px;padding:7px 7px 23px;margin:0 8px;transform:rotate(4deg);}
[data-theme=hirono] .main-pane[data-module=pulse] .story-photo img {height:130px;width:100%;object-fit:cover;}
[data-theme=hirono] .main-pane[data-module=pulse] .hero-nav {margin-top:12px;border:1px solid var(--module-line);border-radius:10px;padding:5px 8px;background:#fbf7ef;}
[data-theme=hirono] .main-pane[data-module=pulse] .hero-tab {border-radius:6px;min-height:38px;}
[data-theme=hirono] :is(.ledger-hero,.recipes-hero) {padding:24px 28px;min-height:0;}
[data-theme=hirono] .module-history-actions {margin:10px 0 8px;}
[data-theme=hirono] :is(.ledger-monthbar,.recipes-datebar) {border:1px solid var(--module-line);background:#f7f1e7;border-radius:10px;padding:12px 15px;}
.library-reading-filter,.recipes-history-states {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 8px;}
:is(.library-reading-filter,.recipes-history-states)>button {display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:43px;padding:8px 11px;border:1px solid #e1d3c0;border-radius:7px;background:#fbf7ef;color:#8e755d;font-size:12px;}
:is(.library-reading-filter,.recipes-history-states)>button .icon {width:15px;height:15px;flex:none;}
:is(.library-reading-filter,.recipes-history-states)>button b {min-width:21px;padding:1px 4px;border-radius:4px;background:#eee4d4;font:11px/1.6 var(--mono);}
:is(.library-reading-filter,.recipes-history-states)>button.selected {background:#efe2ce;border-color:#b9956d;color:#6c4d30;box-shadow:inset 0 -2px #b38f68;}
:is(.library-reading-filter,.recipes-history-states)>button:hover {background:#f2e8d8;}
[data-theme=hirono] .library-note[data-reading-state=finished] {border-top-color:#a29b7e;}
.library-reading-badge {color:#968065;}
.library-note[data-reading-state=finished] .library-reading-badge {color:#7b8066;}
.library-progress {grid-column:1;display:block;width:100%;height:3px;min-height:3px;border:0;border-radius:3px;margin:0 0 12px;appearance:none;accent-color:#ad8f68;background:#ece2d3;overflow:hidden;}
.library-progress::-webkit-progress-bar {background:#ece2d3;}
.library-progress::-webkit-progress-value {background:#ad8f68;border-radius:3px;}
.library-note[data-reading-state=finished] .library-progress::-webkit-progress-value {background:#a29b7e;}
.planner-completed {margin:12px 24px 20px;border:1px solid #ded1bf;border-radius:9px;background:#f3ecdf8a;}
.planner-completed-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 15px;}
.planner-completed-heading>span {display:flex;align-items:center;gap:8px;font-size:12px;color:#88735d;}
.planner-completed-heading>span>.icon {width:16px;height:16px;}
.planner-completed-heading b {font:11px var(--mono);}
.planner-completed-toggle,.module-fold-button {display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid #dbc7ab;border-radius:6px;background:#fff9ee;color:#876744;font-size:11px;white-space:nowrap;}
.planner-completed-toggle .icon {width:12px;height:12px;}
.planner-completed-caption {padding:0 15px 13px;margin:0;color:#a18a71;font-size:11px;line-height:1.9;}
.planner-search-completed {color:#9b846b;font-size:10px;}
.planner-completed .task-list {padding:0 12px 10px;}
.planner-refined .kanban-head {gap:7px;flex-wrap:wrap;}
.planner-refined .kanban-head .planner-completed-toggle {margin-left:auto;min-height:31px;padding:4px 6px;font-size:10px;}
.planner-refined .kanban-column .planner-completed-caption {margin:15px 0;padding:14px 12px;border:1px dashed #d9c7ad;border-radius:7px;background:#f8f0e2;}
.planner-card-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:7px 0 10px;font-size:11px;line-height:1.8;color:#9c876f;overflow-wrap:anywhere;}
.planner-card-project {display:flex;align-items:center;gap:5px;min-width:0;margin:9px 0;color:#967b5e;font-size:10px;overflow-wrap:anywhere;}
.planner-card-project .dot {flex:none;}
[data-theme=hirono] .ledger-stat {min-height:168px;padding:19px 23px;}
[data-theme=hirono] .ledger-stat::after {width:63px;height:87px;top:15px;right:18px;}
[data-theme=hirono] .ledger-stat>strong {margin-top:29px;font-size:29px;}
.ledger-calendar-tools {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;}
.ledger-calendar-records {padding:7px 10px;border:1px solid #cfb795;background:#f9edda;border-radius:6px;color:#88613c;font-size:11px;white-space:nowrap;}
.ledger-calendar.is-collapsed .ledger-calendar-mode {display:none;}
.ledger-calendar.is-collapsed header {margin-bottom:0;}
.ledger-calendar.is-collapsed footer {margin-top:16px;padding-top:14px;}
.ledger-result-totals {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 19px;padding:17px 19px;border:1px solid #dfccb0;border-left:3px solid #ba9870;border-radius:6px 10px 10px 6px;background:linear-gradient(115deg,#f5ebd9,#fcf8f0);}
.ledger-result-caption strong {display:block;color:#8b6b47;font-size:12px;font-weight:500;}
.ledger-result-caption small {display:block;color:#a48b6d;font-size:10px;margin-top:7px;line-height:1.7;}
.ledger-result-totals dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;text-align:right;}
.ledger-result-totals dt {font-size:10px;color:#a2886c;}
.ledger-result-totals dd {margin:8px 0 0;font:17px/1.3 var(--mono);color:#795638;overflow-wrap:anywhere;}
#ledger-records-title {scroll-margin-top:calc(var(--app-header-height,76px) + 24px);}
.ledger-calendar footer>div {flex-wrap:wrap;}
.recipes-history-filters {display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;}
.recipes-history-filters>label {display:flex;flex-direction:column;align-items:stretch;gap:0;flex:0 1 165px;min-width:0;}
.recipes-history-filters label>span {display:block;margin-bottom:7px;font-size:11px;color:#957d64;}
.recipes-history-filters :is(input,select) {min-height:42px;max-width:100%;min-width:0;}
.recipes-history-filters select {width:100%;padding:9px 10px;border:1px solid #ddccb6;border-radius:7px;background:#fffaf3;color:#775d43;font:inherit;font-size:12px;}
.recipes-history-filters .recipes-history-search {flex:1 1 260px;min-width:0;}
.recipes-history-states {margin-top:15px;}
.recipes-history-entry {padding:17px 20px;border-radius:7px 13px 13px 7px;border-left:3px solid #c1a482;background:#fdf9f2;}
.recipes-history-menu {margin:15px 0 0;border-top:1px dashed #ddc8ac;border-bottom:1px dashed #ddc8ac;}
.recipes-history-menu>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:12px 0;list-style:none;}
.recipes-history-menu>summary::-webkit-details-marker {display:none;}
.recipe-menu-peek {display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;min-width:0;}
.recipe-menu-peek .food-label {font-size:12px;gap:5px;min-width:0;max-width:160px;}
.recipe-menu-peek .food-label-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.recipe-menu-peek .food-icon {--food-size:25px;background:#f3e8d5;border:0;box-shadow:none;}
.recipe-menu-peek>small {font-size:10px;color:#a88a69;white-space:nowrap;}
.recipe-menu-expand {display:flex;align-items:center;gap:5px;flex:none;font-size:11px;color:#95714e;}
.recipe-menu-expand .recipes-icon {width:14px;height:14px;}
.recipes-history-menu .when-open {display:none;}
.recipes-history-menu[open] .when-open {display:inline;}
.recipes-history-menu[open] .when-closed {display:none;}
.recipes-history-menu .recipes-history-foods {margin-top:5px;}
.recipes-history-entry .recipe-energy-comparison {margin-top:14px;}
.recipes-history-entry .recipe-energy-ticket {padding:12px 15px;min-height:0;}
.recipes-history-entry .recipe-energy-ticket strong {font-size:20px;}
.recipes-history-more {display:flex;justify-content:center;padding:8px 0 0;}
.recipes-history-more button {min-height:42px;padding-inline:25px;}
:is(.library-reading-filter,.recipes-history-states)>button:focus-visible,.planner-completed-toggle:focus-visible,.module-fold-button:focus-visible,.recipes-history-menu>summary:focus-visible {outline:2px solid #9a7451;outline-offset:3px;}
#planner-completed-list[hidden],#planner-board-done[hidden],#ledger-calendar-body[hidden] {display:none!important;}
@media(max-width:1100px) {
 .ledger-result-totals {flex-direction:column;align-items:stretch;gap:15px;}
 .ledger-result-totals dl {text-align:left;gap:12px;}
 .ledger-result-totals dd {font-size:16px;}
 .ledger-calendar-tools {gap:7px;}
}
@media(max-width:760px) {
 [data-theme=hirono] .main-pane[data-module=pulse] .hero {width:calc(100% - 24px);margin-top:16px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .hirono-story {padding:20px;gap:14px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-copy h1 {font-size:24px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photos {flex-basis:104px;width:104px;height:138px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photo.featured {width:99px;height:133px;margin:0;padding:6px 6px 21px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photo img {height:106px;}
 [data-theme=hirono] :is(.ledger-hero,.recipes-hero) {padding:20px;}
 [data-theme=hirono] .ledger-stat {padding:16px;}
 .planner-completed {margin:10px 12px 16px;}
 .planner-completed-toggle,.module-fold-button {min-height:42px;}
 .planner-refined .kanban-head .planner-completed-toggle {min-height:40px;}
 .ledger-calendar-tools {justify-content:flex-start;}
 .recipes-history-entry {padding:14px;}
 .recipe-menu-peek {gap:7px;}
 .recipe-menu-peek .food-label {max-width:120px;}
 .recipes-history-menu>summary {align-items:flex-start;}
 .recipes-history-filters .recipes-history-search {flex-basis:100%;}
 .recipes-history-filters>label {flex:1 1 120px;}
}
@media(max-width:600px) {
 .library-reading-filter,.recipes-history-states {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 :is(.library-reading-filter,.recipes-history-states)>button {min-height:44px;font-size:11px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-date {display:none;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-copy h1 {font-size:22px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photos {flex-basis:82px;width:82px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photo.featured {width:79px;height:111px;padding:5px 5px 18px;}
 [data-theme=hirono] .main-pane[data-module=pulse] .story-photo img {height:88px;}
 .ledger-result-totals {padding:14px 12px;}
 .ledger-result-totals dd {font-size:13px;}
 .recipe-menu-peek .food-label {max-width:100px;font-size:11px;}
 .recipe-menu-expand {font-size:10px;}
 .recipes-history-menu>summary {gap:8px;}
}
@media(prefers-reduced-motion:reduce) {
 .library-progress {transition:none;}
}
