/* Knowledge and planner surfaces in warm neutrals with sparse clay accents. The existing application and data markup stay
   authoritative; every rule is scoped to one of these two module containers. */

[data-theme=hirono] .hero + .content {
  color: var(--atelier-ink, #3c3531);
  padding-bottom: 32px;
}

[data-theme=hirono] .hero + .content .filters {
  gap: 16px;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 14px;
}

[data-theme=hirono] .hero + .content .subtle-label {
  font-size: 12px;
  line-height: 1.7;
  color: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .subtle-label button {
  color: var(--atelier-primary, #49413d);
  padding: 8px 4px;
  min-height: 40px;
}

[data-theme=hirono] .hero + .content .segmented {
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 12px;
  background: #ebe6de;
}

[data-theme=hirono] .hero + .content .segmented button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #6d625a;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

[data-theme=hirono] .hero + .content .segmented button.active {
  color: #49413d;
  background: var(--atelier-surface, #fcfaf7);
  border-color: #d8cec2;
  box-shadow: 0 1px 3px #41372f0a;
  font-weight: 600;
}

[data-theme=hirono] .hero + .content .panel {
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 18px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 4px 18px #41372f04;
}

[data-theme=hirono] .hero + .content .panel-head {
  min-height: 82px;
  padding: 20px 24px;
  gap: 12px;
  border-bottom: 1px solid #e9e2d9;
}

[data-theme=hirono] .hero + .content .panel-head > div:not(.head-right) {
  min-width: 0;
}

[data-theme=hirono] .hero + .content .panel-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #856435;
  background: var(--atelier-soft, #ebe6de);
  border: 1px solid #e2d9cd;
}

[data-theme=hirono] .hero + .content .panel-title {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: .1px;
  color: var(--atelier-ink, #3c3531);
}

[data-theme=hirono] .hero + .content .panel-subtitle {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .panel-body {
  padding: 24px;
  background: transparent;
}

[data-theme=hirono] .hero + .content :is(.badge, .note-tag) {
  padding: 5px 9px;
  border-radius: 6px;
  color: #736052;
  background: var(--atelier-soft, #ebe6de);
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-theme=hirono] .hero + .content .dashboard-grid {
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

[data-theme=hirono] .hero + .content .dashboard-grid .panel {
  margin-bottom: 0;
}

[data-theme=hirono] .hero + .content .overview {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
}

[data-theme=hirono] .hero + .content :is(.stat-caption, .micro) {
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
  line-height: 1.8;
}

[data-theme=hirono] .hero + .content .big-number {
  margin: 8px 0 12px;
  color: #3c3531;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.2;
}

[data-theme=hirono] .hero + .content .number-unit {
  margin-left: 5px;
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

[data-theme=hirono] .hero + .content .stats-grid {
  gap: 12px;
}

[data-theme=hirono] .hero + .content .stat-tile {
  padding: 17px 15px;
  border: 1px solid #e6ded3;
  border-radius: 12px;
  background: #f3efe8;
  min-width: 0;
}

[data-theme=hirono] .hero + .content .stat-tile h3 {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 500;
  color: #72665e;
}

[data-theme=hirono] .hero + .content .tile-number {
  color: #49413d;
  font-size: 28px;
  font-weight: 550;
}

[data-theme=hirono] .hero + .content .stat-tile .micro {
  margin-top: 4px;
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .time-line {
  gap: 7px;
  color: #72665e;
  font-size: 11px;
  flex-wrap: wrap;
}

[data-theme=hirono] .hero + .content .time-line b {
  font-size: 12px;
  font-weight: 550;
}

[data-theme=hirono] .hero + .content .overview-chart {
  margin-top: 28px;
}

[data-theme=hirono] .hero + .content :is(.chart-labels, .score-legend, .rhythm-axis) {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
  line-height: 1.7;
}

[data-theme=hirono] .hero + .content :is(.table-toggle, .text-link) {
  font-size: 12px;
  color: var(--atelier-primary, #49413d);
  line-height: 1.6;
}

[data-theme=hirono] .hero + .content .table-toggle {
  min-height: 40px;
  padding: 8px 0;
  margin-top: 8px;
}

[data-theme=hirono] .hero + .content .today-panel .panel-body {
  height: calc(100% - 82px);
  padding-top: 20px;
}

[data-theme=hirono] .hero + .content .today-caption {
  gap: 8px;
  font-size: 12px;
  color: var(--atelier-muted, #72665e);
  flex-wrap: wrap;
}

[data-theme=hirono] .hero + .content .today-tasks {
  margin: 10px 0 16px;
}

[data-theme=hirono] .hero + .content .today-task {
  gap: 7px;
  min-height: 62px;
  padding: 5px 0;
}

[data-theme=hirono] .hero + .content .today-task-title {
  min-height: 44px;
  font-size: 14px;
  color: var(--atelier-ink, #3c3531);
  line-height: 1.7;
}

[data-theme=hirono] .hero + .content .today-priority {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f0e5de;
  color: #965947;
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .today-recent {
  padding: 14px;
  margin: 8px 0 20px;
  border: 1px solid #e4dbd0;
  background: #f0ebe3;
  border-radius: 11px;
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .today-recent-note {
  min-height: 44px;
  padding-top: 9px;
  color: #62554d;
  font-size: 13px;
}

[data-theme=hirono] .hero + .content .today-actions {
  gap: 10px;
  flex-wrap: wrap;
  border-top-color: var(--atelier-line, #ddd5cb);
}

[data-theme=hirono] .hero + .content .today-actions button {
  min-height: 44px;
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .heat-tabs {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7baad transparent;
}

[data-theme=hirono] .hero + .content .dashboard-heat .heat-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px;
  flex: none;
}

[data-theme=hirono] .hero + .content .heat-months {
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .heat-footer {
  margin-top: 15px;
  gap: 16px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .detail-top {
  gap: 32px;
  padding-bottom: 8px;
}

[data-theme=hirono] .hero + .content .score-number {
  color: #49413d;
  font-size: 35px;
}

[data-theme=hirono] .hero + .content .metric-grid {
  gap: 12px;
  margin-top: 22px;
}

[data-theme=hirono] .hero + .content .mini-metric {
  gap: 10px;
  padding: 14px;
  border: 1px solid #e7dfd4;
  border-radius: 11px;
  background: #f3f0eb;
  min-width: 0;
}

[data-theme=hirono] .hero + .content .mini-metric > div {
  min-width: 0;
}

[data-theme=hirono] .hero + .content .mini-label {
  color: #72665e;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}

[data-theme=hirono] .hero + .content .mini-value {
  color: #49413d;
  font-size: 21px;
  line-height: 1.5;
}

[data-theme=hirono] .hero + .content .mini-value small {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content :is(.small-section-title, .rhythm-head, .empty-copy, .analysis-note) {
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
  line-height: 1.8;
}

[data-theme=hirono] .hero + .content .small-section-title {
  margin: 25px 0 10px;
  font-weight: 600;
  color: #62554d;
}

[data-theme=hirono] .hero + .content .session-row {
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  border-color: #e4dbd0;
  color: #625a53;
  font-size: 12px;
  line-height: 1.7;
  flex-wrap: wrap;
}

[data-theme=hirono] .hero + .content .session-row :is(time, span:last-child) {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .file-row {
  min-height: 48px;
  padding: 12px 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #49413d;
  border-bottom-color: #e7dfd4;
  overflow-wrap: anywhere;
}

[data-theme=hirono] .hero + .content .file-row small {
  font-size: 11px;
  color: var(--atelier-muted, #72665e);
  flex: none;
}

/* Neutral surrounds let chart marks and the original character artwork carry
   their own meaning. The palette below is an application interpretation. */
[data-theme=hirono] .hero + .content .overview-chart path[stroke],
[data-theme=hirono] .hero + .content .overview-chart circle {
  stroke: var(--atelier-accent, #965947);
}

[data-theme=hirono] .hero + .content .overview-chart stop {
  stop-color: #a8795b;
}

[data-theme=hirono] .hero + .content .overview-chart text {
  fill: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .ring {
  background: conic-gradient(#9a8166 var(--ring), #e2d9cf 0);
}

[data-theme=hirono] .hero + .content .ring::after {
  background: #f3efe8;
}

[data-theme=hirono] .hero + .content .progress-track {
  background: #e2d9cf;
}

[data-theme=hirono] .hero + .content .progress-track i {
  background: #9a8166;
}

[data-theme=hirono] .hero + .content .heat-l0 { background: #efebe5; }
[data-theme=hirono] .hero + .content .heat-l1 { background: #e1d5c8; }
[data-theme=hirono] .hero + .content .heat-l2 { background: #cdb8a1; }
[data-theme=hirono] .hero + .content .heat-l3 { background: #b1977b; }
[data-theme=hirono] .hero + .content .heat-l4 { background: #92765b; }
[data-theme=hirono] .hero + .content .heat-l5 { background: #6b5240; }

[data-theme=hirono] .hero + .content .heat-cell.selected {
  outline-color: var(--atelier-primary, #49413d);
}

[data-theme=hirono] .hero + .content .mini-icon {
  color: #8b6d51;
  background: #eae2d7;
}

[data-theme=hirono] .hero + .content .mini-metric:nth-child(4n + 2) .mini-icon {
  color: #6d6863;
  background: #e9e5e0;
}

[data-theme=hirono] .hero + .content .mini-metric:nth-child(4n + 3) .mini-icon {
  color: #8d685d;
  background: #eee3dc;
}

[data-theme=hirono] .hero + .content .mini-metric:nth-child(4n + 4) .mini-icon {
  color: #647078;
  background: #e3e6e7;
}

[data-theme=hirono] .hero + .content .bar-chart button {
  background: linear-gradient(#8c7560, #c3b09b);
}

[data-theme=hirono] .hero + .content .bar-chart button.selected {
  background: var(--atelier-accent, #965947);
}

[data-theme=hirono] .hero + .content .rhythm i {
  background: #a2a6a7;
}

[data-theme=hirono] .hero + .content .rhythm i.peak {
  background: var(--atelier-slate, #647078);
}

[data-theme=hirono] .hero + .content .moon {
  background: #e9e3db;
  border-color: #f6f1e9;
}

[data-theme=hirono] .hero + .content .moon::after {
  background: #b1935e;
}

[data-theme=hirono] .hero + .content .moon-day.selected .moon {
  box-shadow: 0 0 0 2px #a28b69;
}

[data-theme=hirono] .hero + .content :is(.calendar-weekday, .moon-day small, .matrix-row, .layer-labels) {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .ins-panel {
  padding: 0;
  margin-bottom: 24px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 18px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 4px 18px #41372f04;
}

[data-theme=hirono] .hero + .content .ins-panel-head {
  min-height: 82px;
  padding: 20px 24px;
  gap: 12px;
  border-bottom: 1px solid #e9e2d9;
}

[data-theme=hirono] .hero + .content .ins-panel-head > div {
  min-width: 0;
}

[data-theme=hirono] .hero + .content .ins-panel-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #e2d9cd;
  border-radius: 11px;
  color: var(--atelier-ochre, #856435);
  background: var(--atelier-soft, #ebe6de);
}

[data-theme=hirono] .hero + .content .ins-title {
  color: var(--atelier-ink, #3c3531);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}

[data-theme=hirono] .hero + .content .ins-subtitle {
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
  line-height: 1.7;
}

[data-theme=hirono] .hero + .content .ins-badge {
  border-radius: 6px;
  padding: 5px 9px;
  color: #736052;
  background: var(--atelier-soft, #ebe6de);
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-theme=hirono] .hero + .content .ins-panel-body {
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-theme=hirono] .hero + .content :is(.ins-note, .ins-intro, .ins-micro, .ins-metric-foot, .ins-heat-footer, .ins-ring-detail) {
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
  line-height: 1.8;
}

[data-theme=hirono] .hero + .content .ins-metric-head {
  color: #5d5148;
  font-size: 13px;
  line-height: 1.7;
}

[data-theme=hirono] .hero + .content :is(.ins-metric-head small, .ins-metric-head > span:last-child, .ins-metric-foot > span:first-child) {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .ins-progress-track {
  background: #e8dfd5;
}

[data-theme=hirono] .hero + .content .ins-progress-track > span {
  background: var(--atelier-plum, #78616d);
}

[data-theme=hirono] .hero + .content .ins-progress-track > i {
  background: #ad8b77;
}

[data-theme=hirono] .hero + .content .ins-chart-tab {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #6d625a;
  background: #ebe6de;
  font-size: 12px;
  line-height: 1.5;
}

[data-theme=hirono] .hero + .content #ins-month-score:checked ~ .ins-chart-tab-score,
[data-theme=hirono] .hero + .content #ins-month-words:checked ~ .ins-chart-tab-words,
[data-theme=hirono] .hero + .content #ins-month-active:checked ~ .ins-chart-tab-active {
  border-color: #d8cbbd;
  color: var(--atelier-primary, #49413d);
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 1px 3px #41372f0a;
}

[data-theme=hirono] .hero + .content .ins-chart-radio:focus-visible + label {
  outline: 2px solid var(--atelier-accent, #965947);
  outline-offset: 3px;
}

[data-theme=hirono] .hero + .content .ins-legend {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
  line-height: 1.8;
}

[data-theme=hirono] .hero + .content :is(.ins-svg-axis, .ins-svg-unit) {
  fill: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .ins-grid-line {
  stroke: #e4ddd4;
}

[data-theme=hirono] .hero + .content .ins-selected-line {
  stroke: #b7a89a;
}

[data-theme=hirono] .hero + .content .ins-ring-score {
  fill: var(--atelier-ink, #3c3531);
}

[data-theme=hirono] .hero + .content :is(.ins-ring-date, .ins-ring-caption) {
  fill: var(--atelier-muted, #72665e);
}

[data-theme=hirono] .hero + .content .ins-ring-detail strong {
  color: #675246;
}

[data-theme=hirono] .hero + .content :is(.ins-time-totals strong, .ins-hour-overview strong) {
  color: var(--atelier-ink, #3c3531);
}

[data-theme=hirono] .hero + .content :is(.ins-time-totals span, .ins-time-totals small, .ins-hour-labels, .ins-weekday) {
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .month-controls .icon-btn {
  min-width: 44px;
  min-height: 44px;
}

[data-theme=hirono] .hero + .content .ins-data-details {
  border-top-color: #e4dbd0;
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .ins-data-details > summary {
  min-height: 40px;
  padding: 8px 0;
  line-height: 1.8;
}

[data-theme=hirono] .hero + .content .ins-data-table {
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .ins-data-table :is(th, td) {
  border-bottom-color: #e9e2d9;
}

[data-theme=hirono] .hero + .content .ins-data-table thead th {
  background: #eee8df;
  color: #66584b;
}

[data-theme=hirono] .hero + .content .ins-data-table button {
  min-height: 32px;
  color: var(--atelier-accent, #965947);
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .ins-export {
  min-height: 40px;
  padding: 10px 13px;
  border-color: #d8cbbd;
  border-radius: 8px;
  color: #66584b;
  background: #eee7de;
  font-size: 12px;
}

/* A reading shelf: title, excerpt, then quiet metadata and edit control. */
[data-theme=hirono] .hero + .content .notes-heading {
  gap: 11px;
  margin: 8px 0 22px;
}

[data-theme=hirono] .hero + .content .notes-heading > .icon {
  width: 25px;
  height: 25px;
  color: #856435;
}

[data-theme=hirono] .hero + .content .notes-heading h2 {
  color: var(--atelier-ink, #3c3531);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.5px;
}

[data-theme=hirono] .hero + .content .notes-heading .micro {
  margin-left: 5px;
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .library-toolbar {
  gap: 10px;
  padding: 12px;
  margin: 0 0 14px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 14px;
  background: var(--atelier-surface, #fcfaf7);
}

[data-theme=hirono] .hero + .content .library-toolbar input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ddd5cb;
  border-radius: 8px;
  background: #f3efe8;
  color: var(--atelier-ink, #3c3531);
  font-size: 13px;
}

[data-theme=hirono] .hero + .content .library-toolbar .soft-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #ddd5cb;
  border-radius: 9px;
  background: #f9f6f1;
  color: #62554d;
  font-size: 13px;
  white-space: nowrap;
}

[data-theme=hirono] .hero + .content .library-toolbar .primary {
  background: var(--atelier-primary, #49413d);
  border-color: var(--atelier-primary, #49413d);
  color: #fcfaf7;
}

[data-theme=hirono] .hero + .content .filter-summary {
  min-height: 42px;
  padding: 5px 2px 13px;
  color: var(--atelier-muted, #72665e);
  font-size: 12px;
}

[data-theme=hirono] .hero + .content .note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

[data-theme=hirono] .hero + .content .library-note {
  min-width: 0;
  min-height: 254px;
  padding: 23px 24px 15px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-top: 3px solid #bca58e;
  border-radius: 14px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 3px 14px #41372f03;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

[data-theme=hirono] .hero + .content .library-note h3 {
  margin: 16px 0 10px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.6;
}

[data-theme=hirono] .hero + .content .library-note h3 .task-title {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border-radius: 4px;
  font: inherit;
  line-height: inherit;
  color: var(--atelier-ink, #3c3531);
  letter-spacing: 0;
  background: transparent;
}

[data-theme=hirono] .hero + .content .library-note p {
  margin: 0 0 22px;
  color: #72665e;
  font-size: 13px;
  line-height: 1.9;
  -webkit-line-clamp: 3;
}

[data-theme=hirono] .hero + .content .library-note-foot {
  min-height: 50px;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e9e2d9;
  color: var(--atelier-muted, #72665e);
  font-size: 11px;
}

[data-theme=hirono] .hero + .content .library-note-foot .icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  color: #7c6a5c;
  border-radius: 9px;
}

/* Planner: stable rows, a distinct workspace, and visible selection states. */
[data-theme=hirono] .tempo-content {
  max-width: 1304px;
  padding: 4px 32px 34px;
  color: var(--atelier-ink, #3c3531);
}

[data-theme=hirono] .tempo-content .tempo-header {
  gap: 11px;
  margin-bottom: 22px;
  padding-top: 6px;
}

[data-theme=hirono] .tempo-content .tempo-header h1 {
  color: var(--atelier-ink, #3c3531);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.5px;
  line-height: 1.4;
}

[data-theme=hirono] .tempo-content .tempo-header > .icon {
  width: 26px;
  height: 26px;
  color: #856435;
}

[data-theme=hirono] .tempo-content .tempo-header .head-right {
  gap: 8px;
}

[data-theme=hirono] .tempo-content .tempo-header .head-right button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 9px;
  background: var(--atelier-surface, #fcfaf7);
  color: #72665e;
  font-size: 13px;
}

[data-theme=hirono] .tempo-content .tempo-header .head-right .primary {
  border-color: var(--atelier-primary, #49413d);
  background: var(--atelier-primary, #49413d);
  color: #fcfaf7;
  box-shadow: 0 3px 7px #41372f15;
}

[data-theme=hirono] .tempo-content .tempo-tabs {
  gap: 5px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--atelier-line, #ddd5cb);
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7baad transparent;
}

[data-theme=hirono] .tempo-content .tempo-tabs button {
  min-height: 42px;
  flex: none;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #72665e;
  font-size: 13px;
  white-space: nowrap;
}

[data-theme=hirono] .tempo-content .tempo-tabs button .count {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #eee9e2;
  color: #62564c;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

[data-theme=hirono] .tempo-content .tempo-tabs button.active {
  border-color: var(--atelier-primary, #49413d);
  background: var(--atelier-primary, #49413d);
  color: #fcfaf7;
  box-shadow: 0 2px 4px #41372f0c;
  font-weight: 600;
}

[data-theme=hirono] .tempo-content .tempo-tabs button.active .count {
  color: #fcfaf7;
  background: #ffffff26;
}

[data-theme=hirono] .tempo-content .tempo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 21px 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

[data-theme=hirono] .tempo-content .tempo-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 12px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 2px 8px #41372f03;
  min-width: 0;
}

[data-theme=hirono] .tempo-content .tempo-stat::before {
  display: none;
}

[data-theme=hirono] .tempo-content .tempo-stat > span {
  color: #72665e;
  font-size: 12px;
  line-height: 1.6;
}

[data-theme=hirono] .tempo-content .tempo-stat strong {
  margin: 0;
  color: #49413d;
  font: 550 29px/1.3 "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

[data-theme=hirono] .tempo-content .tempo-stat strong small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #72665e;
}

[data-theme=hirono] .tempo-content .tempo-layout {
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 22px;
  min-height: 480px;
  align-items: stretch;
}

[data-theme=hirono] .tempo-content .tempo-sidebar {
  padding: 12px 9px 18px;
  border: 1px solid #ddd5cb;
  border-radius: 14px;
  background: #ebe6de;
  box-shadow: none;
}

[data-theme=hirono] .tempo-content .sidebar-label {
  align-items: center;
  margin-top: 7px;
  padding: 12px 11px 8px;
  color: #6d625a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

[data-theme=hirono] .tempo-content .sidebar-label button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 17px;
  color: #72665e;
}

[data-theme=hirono] .tempo-content .sidebar-item {
  min-height: 43px;
  gap: 9px;
  margin: 2px 0;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #6d625a;
  font-size: 13px;
  line-height: 1.5;
}

[data-theme=hirono] .tempo-content .sidebar-item.active {
  border-color: #cec1b4;
  background: #e2d9ce;
  color: #49413d;
  box-shadow: none;
  font-weight: 600;
}

[data-theme=hirono] .tempo-content .sidebar-item .count {
  padding: 1px 4px;
  color: #62564c;
  background: #f4efe8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

[data-theme=hirono] .tempo-content .task-main {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--atelier-line, #ddd5cb);
  border-radius: 15px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 4px 18px #41372f04;
}

[data-theme=hirono] .tempo-content .task-toolbar {
  gap: 10px;
  min-height: 78px;
  padding: 16px 20px;
  border-bottom: 1px solid #e7dfd4;
  background: #fcfaf7;
  flex-wrap: wrap;
}

[data-theme=hirono] .tempo-content .task-toolbar > strong {
  color: var(--atelier-ink, #3c3531);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

[data-theme=hirono] .tempo-content .task-toolbar > small {
  color: #72665e;
  font-size: 12px;
}

[data-theme=hirono] .tempo-content .task-toolbar .head-right {
  gap: 8px;
  min-width: 0;
}

[data-theme=hirono] .tempo-content .task-search {
  width: 215px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #ddd5cb;
  border-radius: 8px;
  background: #f3efe8;
  color: var(--atelier-ink, #3c3531);
  font-size: 13px;
}

[data-theme=hirono] .tempo-content .view-switch {
  gap: 3px;
  padding: 3px;
  border: 1px solid #ddd5cb;
  border-radius: 9px;
  background: #ebe6de;
}

[data-theme=hirono] .tempo-content .view-switch .icon-btn {
  width: 35px;
  height: 35px;
  min-width: 35px;
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #72665e;
  background: transparent;
}

[data-theme=hirono] .tempo-content .view-switch .icon-btn.active {
  color: #49413d;
  border-color: #d8cbbd;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 1px 3px #41372f0a;
}

[data-theme=hirono] .tempo-content .task-toolbar .head-right > .icon-btn {
  width: 42px;
  height: 42px;
  color: #7c6a5c;
  border: 1px solid #e2d9cd;
  border-radius: 9px;
}

[data-theme=hirono] .tempo-content .task-scope-context {
  padding: 14px 22px 0;
  color: #72665e;
  font-size: 12px;
  line-height: 1.7;
}

[data-theme=hirono] .tempo-content .task-project-picker {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  flex-basis: 100%;
  color: #72665e;
  font-size: 12px;
}

[data-theme=hirono] .tempo-content .task-project-picker > span {
  flex: none;
}

[data-theme=hirono] .tempo-content .task-project-picker select {
  flex: 1;
  width: 0;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ddd5cb;
  border-radius: 8px;
  color: #62564c;
  background: #f3efe8;
  font-size: 13px;
  text-overflow: ellipsis;
}

[data-theme=hirono] .tempo-content .task-main > .filter-summary {
  min-height: 38px;
  padding: 5px 22px 12px;
  border-color: #e9e2d9;
  color: #72665e;
  font-size: 12px;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .filter-reset {
  min-height: 36px;
  padding: 6px 10px;
  border-color: #d8cbbd;
  border-radius: 7px;
  background: #eee7de;
  color: #66584b;
  font-size: 12px;
}

[data-theme=hirono] .tempo-content .task-list {
  padding: 4px 20px 18px;
}

[data-theme=hirono] .tempo-content .task-row {
  display: grid;
  grid-template-columns: 44px 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 9px 0;
  border-bottom: 1px solid #e9e2d9;
  font-size: 14px;
  transition: background .15s ease;
}

[data-theme=hirono] .tempo-content .task-row:last-child {
  border-bottom-color: transparent;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .task-status {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fcfaf7;
  background: transparent;
  box-shadow: none;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .task-status::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b8aca0;
  border-radius: 50%;
  background: #fcfaf7;
  transition: background .15s ease, border-color .15s ease;
}

[data-theme=hirono] .tempo-content .task-status.done::before {
  border-color: var(--atelier-primary, #49413d);
  background: var(--atelier-primary, #49413d);
}

[data-theme=hirono] .tempo-content .task-status .icon {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
}

[data-theme=hirono] .tempo-content .priority {
  color: #965947;
  font-size: 12px;
  letter-spacing: -1.2px;
}

[data-theme=hirono] .tempo-content .priority.medium {
  color: #856435;
}

[data-theme=hirono] .tempo-content .priority.low {
  color: #a59b92;
}

[data-theme=hirono] .tempo-content .task-title {
  min-height: 44px;
  padding: 7px 0;
  color: var(--atelier-ink, #3c3531);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
  background: transparent;
}

[data-theme=hirono] .tempo-content .task-row.is-done .task-title {
  color: #8b8179;
  text-decoration-color: #c8beb3;
}

[data-theme=hirono] .tempo-content .task-due {
  display: inline-block;
  grid-column: 4;
  color: #72665e;
  font: 12px/1.5 var(--mono);
  white-space: nowrap;
}

[data-theme=hirono] .tempo-content .project-pill {
  grid-column: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 145px;
  padding: 5px 8px;
  border: 1px solid #e2d9cd;
  border-radius: 6px;
  color: #72665e;
  background: #eee8df;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme=hirono] .tempo-content .project-pill .dot {
  flex: none;
  width: 6px;
  height: 6px;
}

[data-theme=hirono] .tempo-content .kanban {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  padding: 20px;
  background: #f3f0eb;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c7baad transparent;
}

[data-theme=hirono] .tempo-content .kanban-column {
  min-width: 0;
  min-height: 300px;
  padding: 12px;
  border: 1px solid #e2d9cd;
  border-top: 3px solid #cbbfb0;
  border-radius: 12px;
  background: #ede8e0;
  box-shadow: none;
}

[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=today] {
  border-top-color: #ad8670;
}

[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=done] {
  border-top-color: #bdb4ad;
  background: #efebe6;
}

[data-theme=hirono] .tempo-content .kanban-head {
  align-items: center;
  gap: 8px;
  margin: 1px 1px 14px;
  padding: 1px 0 12px;
  border-bottom: 1px solid #dcd1c5;
  color: #5e5046;
  font-size: 13px;
  font-weight: 600;
}

[data-theme=hirono] .tempo-content .kanban-head > span:last-child {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid #d8cbbd;
  border-radius: 6px;
  color: #72665e;
  background: #f9f6f1;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

[data-theme=hirono] .tempo-content .task-card {
  padding: 15px 14px 12px;
  margin-bottom: 11px;
  border: 1px solid #ded5c9;
  border-radius: 10px;
  background: var(--atelier-surface, #fcfaf7);
  box-shadow: 0 2px 4px #41372f04;
  transition: border-color .15s ease, box-shadow .15s ease;
}

[data-theme=hirono] .tempo-content .task-card .task-title {
  margin: 7px 0 12px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.7;
}

[data-theme=hirono] .tempo-content .task-card-foot {
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e9e2d9;
  flex-wrap: wrap;
}

[data-theme=hirono] .tempo-content .task-card-foot .micro {
  color: #72665e;
  font-size: 11px;
}

[data-theme=hirono] .tempo-content .task-card-foot select {
  max-width: 118px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d9cdbf;
  border-radius: 6px;
  color: #66584b;
  background: #eee7de;
  font-size: 11px;
}

[data-theme=hirono] .tempo-content .kanban-column.drag-over {
  outline: 2px dashed #965947;
  outline-offset: -4px;
  background: #e5d8ca;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .empty-state {
  padding: 48px 22px 52px;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .empty-state h3 {
  color: #5b4c43;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.6;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .empty-state p {
  color: #72665e;
  font-size: 13px;
  line-height: 1.9;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) .empty-state button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 9px;
  background: var(--atelier-primary, #49413d);
  color: #fcfaf7;
  font-size: 13px;
}

[data-theme=hirono] :is(.tempo-content, .hero + .content) :is(button, input, select):focus-visible {
  outline: 2px solid #965947;
  outline-offset: 3px;
}

[data-theme=hirono] :is(.tempo-content .task-search, .hero + .content .library-toolbar input):focus {
  border-color: #a6755e;
  background: #fcfaf7;
  box-shadow: 0 0 0 3px #96594712;
}

@media (hover: hover) {
  [data-theme=hirono] .hero + .content .library-note:hover {
    transform: translateY(-2px);
    border-color: #bba189;
    box-shadow: 0 8px 20px #41372f09;
  }

  [data-theme=hirono] .hero + .content .library-note h3 .task-title:hover,
  [data-theme=hirono] .tempo-content .task-title:hover {
    color: #965947;
  }

  [data-theme=hirono] .tempo-content .task-row:hover {
    background: #f5f0e9;
  }

  [data-theme=hirono] .tempo-content .task-card:hover {
    border-color: #c3aa92;
    box-shadow: 0 4px 9px #41372f09;
  }

  [data-theme=hirono] .tempo-content .sidebar-item:not(.active):hover,
  [data-theme=hirono] .tempo-content .tempo-tabs button:not(.active):hover,
  [data-theme=hirono] .hero + .content .segmented button:not(.active):hover {
    color: #625043;
    background: #e5dfd6;
  }

  [data-theme=hirono] :is(.tempo-content, .hero + .content) .task-status:hover {
    background: #eee6dc;
    box-shadow: none;
  }

  [data-theme=hirono] :is(.tempo-content, .hero + .content) .task-status:hover::before {
    border-color: #965947;
  }

  [data-theme=hirono] .hero + .content .library-note-foot .icon-btn:hover {
    background: #eee6dc;
    color: #965947;
  }
}

@media (max-width: 1200px) {
  [data-theme=hirono] .hero + .content .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme=hirono] .hero + .content .today-panel {
    grid-column: 1;
    grid-row: auto;
  }

  [data-theme=hirono] .hero + .content .today-panel .panel-body {
    height: auto;
  }

  [data-theme=hirono] .hero + .content .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-theme=hirono] .tempo-content .tempo-layout {
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 18px;
  }

  [data-theme=hirono] .tempo-content .tempo-tabs button {
    padding-left: 11px;
    padding-right: 11px;
  }

  [data-theme=hirono] .tempo-content .task-search {
    width: 170px;
  }

  [data-theme=hirono] .tempo-content .task-row {
    column-gap: 8px;
  }

  [data-theme=hirono] .tempo-content .project-pill {
    max-width: 110px;
  }

  [data-theme=hirono] .tempo-content .tempo-stat {
    padding: 16px;
  }
}

@media (min-width: 961px) {
  [data-theme=hirono] .side-open .hero + .content .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme=hirono] .side-open .hero + .content .today-panel {
    grid-column: 1;
    grid-row: auto;
  }

  [data-theme=hirono] .side-open .hero + .content .today-panel .panel-body {
    height: auto;
  }

  [data-theme=hirono] .side-open .hero + .content .overview {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme=hirono] .side-open .tempo-content .tempo-layout {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 960px) {
  [data-theme=hirono] .tempo-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  [data-theme=hirono] .tempo-content .tempo-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
  }

  [data-theme=hirono] .tempo-content .task-search {
    width: 215px;
  }

  [data-theme=hirono] .hero + .content .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  [data-theme=hirono] .hero + .content .filters {
    min-height: 98px;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 16px;
  }

  [data-theme=hirono] .hero + .content .filters .segmented {
    max-width: 100%;
    overflow-x: auto;
    margin-left: 0;
  }

  [data-theme=hirono] .hero + .content .segmented button {
    min-height: 40px;
    padding: 8px 11px;
    flex: none;
  }

  [data-theme=hirono] .hero + .content .panel {
    border-radius: 14px;
    margin-bottom: 18px;
  }

  [data-theme=hirono] .hero + .content .panel-head {
    min-height: 76px;
    padding: 17px 18px;
    gap: 10px;
  }

  [data-theme=hirono] .hero + .content .panel-title {
    font-size: 16px;
  }

  [data-theme=hirono] .hero + .content .panel-subtitle {
    font-size: 11px;
  }

  [data-theme=hirono] .hero + .content .panel-body {
    padding: 20px 18px;
  }

  [data-theme=hirono] .hero + .content .dashboard-grid {
    gap: 18px;
    margin-bottom: 18px;
  }

  [data-theme=hirono] .hero + .content .overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  [data-theme=hirono] .hero + .content .big-number {
    font-size: 44px;
  }

  [data-theme=hirono] .hero + .content .stat-tile {
    padding: 16px 14px;
  }

  [data-theme=hirono] .hero + .content .heat-footer {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px;
  }

  [data-theme=hirono] .hero + .content .dashboard-heat .heat-tabs button {
    padding-left: 11px;
    padding-right: 11px;
  }

  [data-theme=hirono] .hero + .content .heat-months {
    font-size: 9px;
  }

  [data-theme=hirono] .hero + .content .notes-heading {
    gap: 9px;
    margin-bottom: 18px;
  }

  [data-theme=hirono] .hero + .content .notes-heading h2 {
    font-size: 24px;
  }

  [data-theme=hirono] .hero + .content .notes-heading .micro {
    width: 100%;
    margin-left: 34px;
    font-size: 12px;
  }

  [data-theme=hirono] .hero + .content .library-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  [data-theme=hirono] .hero + .content .library-toolbar input {
    grid-column: 1 / -1;
    flex-basis: 100%;
    width: 100%;
  }

  [data-theme=hirono] .hero + .content .library-toolbar .soft-button {
    flex: 1;
    justify-content: center;
    padding-left: 11px;
    padding-right: 11px;
    font-size: 12px;
  }

  [data-theme=hirono] .hero + .content .library-toolbar [data-action=undo].soft-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  [data-theme=hirono] .hero + .content .library-toolbar [data-action=undo] .icon {
    width: 18px;
    height: 18px;
  }

  [data-theme=hirono] .hero + .content .note-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  [data-theme=hirono] .hero + .content .library-note {
    min-height: 238px;
    padding: 21px 20px 12px;
  }

  [data-theme=hirono] .hero + .content .library-note h3 {
    font-size: 17px;
  }

  [data-theme=hirono] .hero + .content .metric-grid {
    gap: 9px;
  }

  [data-theme=hirono] .hero + .content .mini-metric {
    padding: 12px 10px;
    gap: 8px;
    align-items: flex-start;
  }

  [data-theme=hirono] .hero + .content .mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  [data-theme=hirono] .hero + .content .mini-label {
    font-size: 11px;
  }

  [data-theme=hirono] .hero + .content .mini-value {
    font-size: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  [data-theme=hirono] .hero + .content .ins-panel {
    margin-bottom: 18px;
    border-radius: 14px;
  }

  [data-theme=hirono] .hero + .content .ins-panel-head {
    min-height: 76px;
    padding: 17px 18px;
    gap: 10px;
  }

  [data-theme=hirono] .hero + .content .ins-title {
    font-size: 16px;
  }

  [data-theme=hirono] .hero + .content .ins-subtitle {
    font-size: 11px;
  }

  [data-theme=hirono] .hero + .content .ins-badge {
    max-width: 82px;
    padding: 4px 7px;
    font-size: 10px;
  }

  [data-theme=hirono] .hero + .content .ins-panel-body {
    padding: 20px 18px;
  }

  [data-theme=hirono] .tempo-content {
    padding: 4px 16px 28px;
  }

  [data-theme=hirono] .tempo-content .tempo-header {
    gap: 9px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  [data-theme=hirono] .tempo-content .tempo-header h1 {
    font-size: 24px;
  }

  [data-theme=hirono] .tempo-content .tempo-header .head-right {
    flex-basis: 100%;
    margin-top: 6px;
    justify-content: flex-end;
  }

  [data-theme=hirono] .tempo-content .tempo-header .head-right button {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 12px;
  }

  [data-theme=hirono] .tempo-content .tempo-tabs {
    gap: 5px;
    padding-bottom: 13px;
  }

  [data-theme=hirono] .tempo-content .tempo-tabs button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  [data-theme=hirono] .tempo-content .tempo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 17px 0 20px;
  }

  [data-theme=hirono] .tempo-content .tempo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme=hirono] .tempo-content .tempo-sidebar {
    display: none;
  }

  [data-theme=hirono] .tempo-content .task-project-picker {
    display: flex;
  }

  [data-theme=hirono] .tempo-content .tempo-stat {
    padding: 14px 16px;
    text-align: left;
  }

  [data-theme=hirono] .tempo-content .tempo-stat > span {
    font-size: 12px;
  }

  [data-theme=hirono] .tempo-content .tempo-stat strong {
    font-size: 27px;
  }

  [data-theme=hirono] .tempo-content .task-toolbar {
    padding: 14px;
    gap: 8px;
  }

  [data-theme=hirono] .tempo-content .task-toolbar .head-right {
    width: 100%;
    margin-top: 3px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  [data-theme=hirono] .tempo-content .task-search {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    font-size: 13px;
  }

  [data-theme=hirono] .tempo-content .view-switch .icon-btn {
    width: 40px;
    height: 44px;
    min-height: 44px;
    min-width: 40px;
  }

  [data-theme=hirono] .tempo-content .task-toolbar .head-right > .icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  [data-theme=hirono] .tempo-content .task-scope-context {
    padding: 13px 16px 0;
    font-size: 12px;
  }

  [data-theme=hirono] .tempo-content .task-main > .filter-summary {
    padding: 5px 16px 12px;
  }

  [data-theme=hirono] .tempo-content .task-list {
    padding: 3px 12px 16px;
  }

  [data-theme=hirono] .tempo-content .task-row {
    grid-template-columns: 44px 13px minmax(0, 1fr) auto;
    gap: 0 6px;
    padding: 10px 0 12px;
  }

  [data-theme=hirono] .tempo-content .task-row > .task-title {
    grid-column: 3 / -1;
    grid-row: 1;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.75;
  }

  [data-theme=hirono] .tempo-content .task-row > .task-due {
    grid-column: 3;
    grid-row: 2;
    padding-top: 4px;
    font-size: 11px;
  }

  [data-theme=hirono] .tempo-content .task-row > .project-pill {
    grid-column: 4;
    grid-row: 2;
    max-width: 145px;
    margin-top: 4px;
    padding: 4px 7px;
  }

  [data-theme=hirono] .tempo-content .task-row:not(:has(.task-due)) > .project-pill {
    grid-column: 3 / -1;
    justify-self: start;
  }

  [data-theme=hirono] .tempo-content .kanban {
    grid-template-columns: repeat(3, minmax(244px, 1fr));
    gap: 12px;
    padding: 14px;
    scroll-snap-type: x proximity;
  }

  [data-theme=hirono] .tempo-content .kanban-column {
    min-height: 270px;
    scroll-snap-align: start;
  }

  [data-theme=hirono] .tempo-content .task-card-foot select {
    min-height: 44px;
    max-width: 126px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  [data-theme=hirono] .hero + .content .panel-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  [data-theme=hirono] .hero + .content .panel-head .head-right {
    gap: 4px;
  }

  [data-theme=hirono] .hero + .content .panel-head .badge {
    padding: 4px 6px;
    font-size: 10px;
  }

  [data-theme=hirono] .hero + .content .panel-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  [data-theme=hirono] .hero + .content .stats-grid {
    gap: 9px;
  }

  [data-theme=hirono] .hero + .content .stat-tile {
    padding: 14px 10px;
  }

  [data-theme=hirono] .hero + .content .mini-metric {
    flex-direction: column;
    gap: 7px;
  }

  [data-theme=hirono] .hero + .content .library-toolbar .soft-button {
    padding-left: 6px;
    padding-right: 6px;
    gap: 4px;
    font-size: 11px;
  }

  [data-theme=hirono] .hero + .content :is(.ins-panel-head, .ins-panel-body) {
    padding-left: 14px;
    padding-right: 14px;
  }

  [data-theme=hirono] .tempo-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  [data-theme=hirono] .tempo-content .tempo-stat {
    gap: 7px;
    padding: 13px 12px;
  }

  [data-theme=hirono] .tempo-content .tempo-stat strong {
    font-size: 25px;
  }

  [data-theme=hirono] .tempo-content .tempo-stat strong small {
    margin-left: 3px;
  }

  [data-theme=hirono] .tempo-content .task-toolbar {
    padding: 13px 11px;
  }

  [data-theme=hirono] .tempo-content .view-switch .icon-btn {
    width: 36px;
    min-width: 36px;
  }

  [data-theme=hirono] .tempo-content .task-row > .project-pill {
    max-width: 125px;
  }
}

@media (pointer: coarse) {
  [data-theme=hirono] .hero .hero-nav .nav-logo {
    min-width: 44px;
    min-height: 44px;
  }

  [data-theme=hirono] .tempo-content .tempo-header .head-right button,
  [data-theme=hirono] .tempo-content .task-search {
    min-height: 44px;
  }

  [data-theme=hirono] :is(.tempo-content, .hero + .content) .filter-reset,
  [data-theme=hirono] .hero + .content :is(.segmented button, .table-toggle, .subtle-label button),
  [data-theme=hirono] .tempo-content :is(.tempo-tabs button, .sidebar-item, .tempo-header button) {
    min-height: 44px;
  }

  [data-theme=hirono] .hero + .content .library-note h3 .task-title {
    min-height: 44px;
  }

  [data-theme=hirono] .hero + .content .library-note-foot .icon-btn,
  [data-theme=hirono] .tempo-content .view-switch .icon-btn,
  [data-theme=hirono] .tempo-content .task-toolbar .head-right > .icon-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  [data-theme=hirono] .tempo-content .sidebar-label button {
    width: 44px;
    height: 44px;
  }

  [data-theme=hirono] .tempo-content .task-card-foot select {
    min-height: 44px;
  }

  [data-theme=hirono] .hero + .content :is(.ins-chart-tab, .ins-data-details > summary, .ins-export, .ins-data-table button) {
    min-height: 44px;
  }
}

@media (pointer: coarse) and (max-width: 1050px) {
  [data-theme=hirono] .tempo-content .tempo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-theme=hirono] .tempo-content .tempo-sidebar {
    display: none;
  }

  [data-theme=hirono] .tempo-content .task-project-picker {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme=hirono] :is(.tempo-content, .hero + .content) *,
  [data-theme=hirono] :is(.tempo-content, .hero + .content) *::before {
    transition: none;
  }

  [data-theme=hirono] .hero + .content .library-note:hover {
    transform: none;
  }
}

/* Illustrated new-series stationery. Main navigation and the originally
   specified page-header characters remain owned by the shared shell. */
[data-theme=hirono] :is(.hero + .content, .tempo-content) {
  --work-grain: var(--atelier-grain, none);
  --work-grain-size: 180px 180px;
}

/* Knowledge: old books, letters, dark gold and narrow wax-red details. */
[data-theme=hirono] .hero + .content :is(.panel, .ins-panel) {
  --work-character: url('../assets/hirono/series/harry-hedwig.png');
  --work-character-size: 135% auto;
  position: relative;
  background-image: var(--work-grain), var(--atelier-wood, none);
  background-size: var(--work-grain-size), 220px 140px;
  border-left: 3px double #b9a38b;
  box-shadow: 2px 3px 0 #cbbba724, 0 7px 20px #41372f05;
}

[data-theme=hirono] .hero + .content .panel:has(.overview),
[data-theme=hirono] .hero + .content .panel:has(.bar-chart),
[data-theme=hirono] .hero + .content .ins-panel:has(.ins-month-row),
[data-theme=hirono] .hero + .content .ins-panel:has(.ins-hour-grid) {
  --work-character: url('../assets/hirono/series/harry-sorting-hat-official.png');
  --work-character-size: 112% auto;
}

[data-theme=hirono] .hero + .content .today-panel,
[data-theme=hirono] .hero + .content .panel:has(.heat-grid),
[data-theme=hirono] .hero + .content .panel:has(.calendar-grid),
[data-theme=hirono] .hero + .content .panel:has(.layer-chart),
[data-theme=hirono] .hero + .content .ins-panel:has(.ins-ring) {
  --work-character: url('../assets/hirono/series/prince-official.png');
  --work-character-size: 135% auto;
}

[data-theme=hirono] .hero + .content #daily-detail,
[data-theme=hirono] .hero + .content .ins-panel:has(.ins-time-totals),
[data-theme=hirono] .hero + .content .ins-panel:has(.ins-fingerprint) {
  --work-character: url('../assets/hirono/series/harry-hedwig.png');
  --work-character-size: 135% auto;
}

[data-theme=hirono] .hero + .content :is(.panel-head, .ins-panel-head) {
  position: relative;
  min-height: 124px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: linear-gradient(180deg, #e9dfcf4d, transparent 85%);
  border-bottom: 1px solid #dac9b5;
  box-shadow: inset 0 -3px #f7f1e7;
}

[data-theme=hirono] .hero + .content :is(.panel-head, .ins-panel-head)::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 18px;
  width: 42px;
  height: 13px;
  background-image: radial-gradient(circle at 5px 8px, #a6874980 1px, transparent 1.7px),
    radial-gradient(circle at 26px 3px, #a687496e 1.2px, transparent 1.9px),
    radial-gradient(circle at 37px 10px, #a687495c .8px, transparent 1.5px);
  pointer-events: none;
}

[data-theme=hirono] .hero + .content :is(.panel-icon, .ins-panel-icon) {
  width: 76px;
  height: 92px;
  flex: none;
  border: 0;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  background-color: transparent;
  background-image: var(--work-character);
  background-size: var(--work-character-size);
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 2px #56433320);
}

[data-theme=hirono] .hero + .content .panel-icon .icon { opacity: 0; }

[data-theme=hirono] .hero + .content .today-panel .panel-body {
  height: calc(100% - 124px);
}

[data-theme=hirono] .hero + .content .library-note {
  --work-character: url('../assets/hirono/series/harry-hedwig.png');
  --work-character-size: 135% auto;
  min-height: 330px;
  padding-top: 25px;
  background-image: var(--work-grain), var(--atelier-wood, none);
  background-size: var(--work-grain-size), 220px 140px;
  border-top: 1px solid #d4c3ad;
  border-left: 3px double #b8a18a;
  box-shadow: 2px 3px 0 #d7cbb929, 0 5px 14px #41372f04;
}

[data-theme=hirono] .hero + .content .library-note:nth-child(3n + 2) {
  --work-character: url('../assets/hirono/series/prince-official.png');
}

[data-theme=hirono] .hero + .content .library-note:nth-child(3n + 3) {
  --work-character: url('../assets/hirono/series/harry-sorting-hat-official.png');
  --work-character-size: 112% auto;
}

[data-theme=hirono] .hero + .content .library-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top-right-radius: 11px;
  background: linear-gradient(225deg, #e3d7c6 0 48%, #b9a58c55 49% 52%, transparent 53%);
  pointer-events: none;
}

[data-theme=hirono] .hero + .content .library-note::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: 72px;
  right: 15px;
  width: 104px;
  height: 124px;
  background: var(--work-character) center / var(--work-character-size) no-repeat;
  filter: drop-shadow(0 3px 2px #56433320);
  transform: none;
  pointer-events: none;
}

[data-theme=hirono] .hero + .content .library-note > div:first-child {
  display: flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
}

[data-theme=hirono] .hero + .content .library-note .note-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cfbca3;
  border-radius: 4px;
  color: #66584b;
  background: #f1e9de;
}

[data-theme=hirono] .hero + .content .library-note .note-tag::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  flex: none;
  border: 1px solid #8e504064;
  border-radius: 50%;
  background: #9c5b4538;
  box-shadow: inset 0 0 0 2px #d2a2872e;
  pointer-events: none;
}

[data-theme=hirono] .hero + .content .library-note h3 {
  margin-top: 17px;
}

[data-theme=hirono] .hero + .content .library-note p {
  max-width: calc(100% - 108px);
  min-height: 116px;
  margin-bottom: 22px;
}

/* Planner: Echo fabric, Wildgrass receipts and a restrained carnival ticket. */
[data-theme=hirono] .tempo-content .tempo-stat {
  --work-character: url('../assets/hirono/series/wildgrass-receipts-cutout.png');
  --work-character-size: contain;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  column-gap: 10px;
  min-height: 116px;
  padding: 16px;
  background-image: var(--work-grain), var(--atelier-cloth, none);
  background-size: var(--work-grain-size), 48px 48px;
  border: 1px solid #d9ccbd;
  border-bottom: 2px dashed #c5ad92;
}

[data-theme=hirono] .tempo-content .tempo-stat:nth-child(2n) {
  --work-character: url('../assets/hirono/series/echo-daydreaming-official.png');
  --work-character-size: 135% auto;
}

[data-theme=hirono] .tempo-content .tempo-stat::before {
  content: "";
  position: static;
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 66px;
  height: 82px;
  background: var(--work-character) center / var(--work-character-size) no-repeat;
  filter: drop-shadow(0 3px 2px #56433320);
  pointer-events: none;
}

[data-theme=hirono] .tempo-content .tempo-stat > span {
  grid-column: 2;
  grid-row: 1;
}

[data-theme=hirono] .tempo-content .tempo-stat > strong {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

[data-theme=hirono] .tempo-content .task-main {
  background-image: var(--work-grain), var(--atelier-cloth, none);
  background-size: var(--work-grain-size), 48px 48px;
  box-shadow: 2px 3px 0 #d7cbb929, 0 7px 20px #41372f05;
}

[data-theme=hirono] .tempo-content .task-toolbar {
  position: relative;
  min-height: 94px;
  border-bottom: 1px dashed #bd9d7a;
  background: linear-gradient(#eee2d164, transparent);
}

[data-theme=hirono] .tempo-content .task-toolbar > strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme=hirono] .tempo-content .task-toolbar > strong::before {
  content: "";
  display: block;
  width: 48px;
  height: 60px;
  flex: none;
  background: url('../assets/hirono/series/echo-daydreaming-official.png') center / 135% auto no-repeat;
  pointer-events: none;
}

[data-theme=hirono] .tempo-content .task-list {
  position: relative;
  background-image: linear-gradient(to right, transparent 67px, #b99a7f40 67px, #b99a7f40 68px, transparent 68px);
}

[data-theme=hirono] .tempo-content .task-list::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 4px;
  width: 5px;
  background: radial-gradient(circle at center, #ab8d6c70 1.2px, transparent 1.5px) center top / 5px 23px repeat-y;
  pointer-events: none;
}

[data-theme=hirono] .tempo-content .kanban {
  padding-top: 27px;
  background-color: #f2ede5;
  background-image: var(--work-grain), var(--atelier-cloth, none);
  background-size: var(--work-grain-size), 48px 48px;
}

[data-theme=hirono] .tempo-content .kanban-column {
  --work-character: url('../assets/hirono/series/wildgrass-receipts-cutout.png');
  --work-character-size: contain;
  --work-folder: #ede8e0;
  position: relative;
  padding-top: 10px;
  border-top-width: 1px;
  border-radius: 4px 12px 12px 12px;
  background-color: var(--work-folder);
  background-image: var(--work-grain), var(--atelier-cloth, none);
  background-size: var(--work-grain-size), 48px 48px;
}

[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=today],
[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=done] {
  --work-character: url('../assets/hirono/series/echo-daydreaming-official.png');
  --work-character-size: 135% auto;
}

[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=today] {
  --work-folder: #eee4d8;
}

[data-theme=hirono] .tempo-content .kanban-column[data-drop-status=done] {
  --work-folder: #ece7e1;
}

[data-theme=hirono] .tempo-content .kanban-column::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 11px;
  width: 80px;
  height: 10px;
  border: 1px solid #c7b293;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--work-folder);
  transform: skewX(-13deg);
  pointer-events: none;
}

[data-theme=hirono] .tempo-content .kanban-head {
  min-height: 96px;
  justify-content: flex-start;
  padding-top: 0;
  border-bottom: 1px dashed #bd9d7a;
}

[data-theme=hirono] .tempo-content .kanban-head::before {
  content: "";
  display: block;
  flex: none;
  width: 68px;
  height: 84px;
  background: var(--work-character) center / var(--work-character-size) no-repeat;
  filter: drop-shadow(0 2px 1px #5643331c);
  pointer-events: none;
}

[data-theme=hirono] .tempo-content .kanban-head > span:first-of-type {
  margin-right: auto;
}

[data-theme=hirono] .tempo-content .kanban-head > span:last-child {
  border-style: dashed;
  padding-bottom: 6px;
  background-image: conic-gradient(from 45deg, #995e473e 0 25%, #a98a5138 0 50%, #995e473e 0 75%, #a98a5138 0);
  background-size: 6px 3px;
  background-position: left bottom;
  background-repeat: repeat-x;
}

[data-theme=hirono] .tempo-content .task-card {
  background-image: var(--work-grain), var(--atelier-cloth, none);
  background-size: var(--work-grain-size), 48px 48px;
  border-bottom: 2px solid #c4ae942e;
}

[data-theme=hirono] .tempo-content .task-card-foot select {
  border-style: dashed;
}

@media (max-width: 1200px) {
  [data-theme=hirono] .hero + .content .today-panel .panel-body { height: auto; }
  [data-theme=hirono] .tempo-content .tempo-stat {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 7px;
    padding-left: 12px;
    padding-right: 12px;
  }
  [data-theme=hirono] .tempo-content .tempo-stat::before { width: 58px; height: 78px; }
}

@media (max-width: 760px) {
  [data-theme=hirono] .hero + .content :is(.panel-head, .ins-panel-head) {
    min-height: 110px;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 9px;
  }
  [data-theme=hirono] .hero + .content :is(.panel-icon, .ins-panel-icon) {
    width: 62px;
    height: 78px;
  }
  [data-theme=hirono] .hero + .content .library-note {
    min-height: 330px;
    padding-top: 24px;
  }
  [data-theme=hirono] .hero + .content .library-note::after { width: 98px; height: 122px; right: 13px; }
  [data-theme=hirono] .hero + .content .library-note p { max-width: calc(100% - 103px); }
  [data-theme=hirono] .tempo-content .tempo-stat {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 9px;
    min-height: 108px;
    padding: 13px 14px;
  }
  [data-theme=hirono] .tempo-content .tempo-stat::before {
    grid-row: 1 / span 2;
    width: 54px;
    height: 74px;
  }
  [data-theme=hirono] .tempo-content .tempo-stat > span {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 11px;
  }
  [data-theme=hirono] .tempo-content .tempo-stat > strong {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 25px;
  }
  [data-theme=hirono] .tempo-content .task-list {
    background-image: linear-gradient(to right, transparent 59px, #b99a7f40 59px, #b99a7f40 60px, transparent 60px);
  }
}

@media (max-width: 380px) {
  [data-theme=hirono] .tempo-content .tempo-stat {
    column-gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
