:root {
  --home-ink: #1e293b;
  --home-muted: #64748b;
  --home-soft: #eff6ff;
  --home-accent: #2563eb;
  --home-warm: #9a642c;
}
.sidebar { overflow-y: auto; overscroll-behavior: contain; }
.sidebar nav { flex-shrink: 0; }
.mobile-navigation { display: none; }
.home-workspace main { padding-top: 26px; }
.home-workspace .page-header h1 { font-size: 28px; }
.home-workspace .page-header p { font-size: 13px; color: var(--home-muted); }
.home-workspace .eyebrow { font-size: 12px; }
.overview-lead { display: grid; grid-template-columns: 1.65fr minmax(270px, 1fr); gap: 20px; }
.home-focus { background: var(--home-soft); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.focus-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.focus-eyebrow { font-size: 13px; color: var(--home-muted); }
.focus-chip { font-size: 11px; color: var(--home-accent); border: 1px solid var(--border); border-radius: 20px; padding: 5px 9px; flex-shrink: 0; }
.home-focus h2 { font-size: 26px; line-height: 1.5; color: var(--home-ink); margin: 20px 0 10px; overflow-wrap: anywhere; }
.focus-context { font-size: 13px; line-height: 1.7; margin: 0; color: var(--home-muted); overflow-wrap: anywhere; }
.focus-bottom { display: flex; gap: 15px; align-items: center; margin-top: auto; padding-top: 24px; }
.focus-bottom .primary { min-height: 42px; font-size: 13px; flex-shrink: 0; }
.focus-bottom > span { color: var(--home-muted); font-size: 12px; line-height: 1.7; }
.home-capacity, .home-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-width: 0; }
.home-capacity { border-radius: 16px; padding: 24px; }
.home-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.home-section-title h2 { margin: 0; font-size: 15px; font-weight: 600; }
.home-section-title h2 > span { font-size: 11px; font-weight: 400; color: var(--home-muted); margin-left: 5px; }
.home-section-title .quiet, .home-more { font-size: 11px; min-height: 32px; display: inline-flex; align-items: center; gap: 5px; color: var(--home-muted); flex-shrink: 0; }
.home-more svg { width: 14px; height: 14px; }
.capacity-caption { display: block; color: var(--home-muted); font-size: 12px; }
.capacity-value { display: block; color: var(--home-accent); font-size: 32px; font-weight: 600; line-height: 1.5; margin: 2px 0 10px; }
.home-capacity-track { height: 6px; border-radius: 6px; background: var(--home-soft); overflow: hidden; }
.home-capacity-track > span { display: block; height: 100%; border-radius: inherit; background: var(--home-accent); }
.home-capacity p { font-size: 11px; color: var(--home-muted); margin: 9px 0 0; }
.capacity-verdict { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.7; color: var(--home-muted); }
.capacity-verdict.attention { color: var(--home-warm); }
.home-attention { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 17px 0 22px; font-size: 12px; }
.home-attention > span { color: var(--home-muted); margin-right: 4px; }
.attention-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 12px; min-height: 36px; color: var(--home-ink); border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-size: 12px; }
.attention-link b { font-weight: 600; color: var(--home-warm); }
.overview-middle, .today-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-task, .home-agenda-row { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; color: var(--home-ink); background: transparent; padding: 14px 0; border: 0; border-top: 1px solid var(--border); min-height: 70px; }
.home-task > span:nth-child(2), .agenda-content { flex: 1; min-width: 0; }
.home-task strong, .home-agenda-row strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.home-task small, .home-agenda-row small { display: block; margin-top: 3px; font-size: 11px; color: var(--home-muted); line-height: 1.6; }
.home-task > svg, .home-agenda-row > svg { width: 15px; height: 15px; color: var(--home-muted); flex-shrink: 0; }
.home-task-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--home-accent); flex-shrink: 0; }
.home-task-dot.urgent { background: var(--home-warm); }
.home-agenda-row { min-height: 73px; }
.agenda-clock { width: 43px; font-size: 13px; color: var(--home-accent); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.agenda-clock small { font-size: 10px; }
.agenda-content { border-left: 3px solid var(--home-accent); padding-left: 12px; }
.home-agenda-row.is-external .agenda-content { border-color: var(--home-warm); }
.plan-overview { margin-top: 29px; }
.overview-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: start; }
.overview-lane { padding: 16px; border-radius: 12px; background: var(--home-soft); min-width: 0; }
.lane-considering { background: #f6f3ed; }
.lane-paused { background: #f1f2f1; }
.lane-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left: 3px solid var(--home-accent); padding-left: 9px; }
.lane-considering .lane-heading { border-color: var(--home-warm); }
.lane-paused .lane-heading { border-color: var(--home-muted); }
.lane-heading h3 { font-size: 13px; font-weight: 600; margin: 0; }
.lane-heading > span { font-size: 11px; color: var(--home-muted); }
.lane-caption { font-size: 11px; color: var(--home-muted); line-height: 1.7; margin: 9px 0 14px; }
.overview-plan { background: var(--surface); border: 1px solid var(--border); padding: 17px 15px; border-radius: 9px; margin-top: 10px; }
.overview-plan-title { display: block; width: 100%; padding: 0; border: 0; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; color: var(--home-ink); background: transparent; }
.overview-plan p { color: var(--home-muted); font-size: 12px; line-height: 1.8; margin: 7px 0 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.overview-plan-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; font-size: 11px; color: var(--home-muted); }
.plan-task-count, .plan-attention { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.7; }
.plan-task-count { display: block; color: var(--home-muted); }
.plan-attention { width: 100%; display: flex; gap: 6px; text-align: left; align-items: center; color: var(--home-warm); background: transparent; border-bottom: 0; border-left: 0; border-right: 0; }
.plan-attention svg { width: 14px; height: 14px; flex-shrink: 0; }
.overview-plan .quiet { margin-top: 8px; font-size: 11px; padding-left: 0; }
.lane-more { min-height: 40px; font-size: 11px; width: 100%; background: transparent; color: var(--home-muted); border: 0; margin-top: 8px; }
.home-filter-note { color: var(--home-muted); font-size: 12px; margin: 0 0 12px; line-height: 1.7; }
.home-footnote { margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--home-muted); }
.home-empty, .lane-empty { font-size: 13px; color: var(--home-muted); padding: 21px 0; margin: 0; line-height: 1.8; }
.lane-empty { font-size: 12px; }
.today-status { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 17px 0; font-size: 13px; color: var(--home-muted); }
.today-status strong { color: var(--home-accent); font-weight: 600; }
.today-status .quiet { font-size: 11px; }
.today-status .home-more { margin-left: auto; }
.home-details { border-top: 1px solid var(--border); margin-top: 8px; }
.home-details > summary { cursor: pointer; list-style: none; min-height: 46px; display: flex; align-items: center; gap: 7px; color: var(--home-muted); font-size: 12px; }
.home-details > summary::-webkit-details-marker, .reminder-disclosure > summary::-webkit-details-marker, .page-filters > summary::-webkit-details-marker { display: none; }
.home-details > summary::after { content: '展开'; margin-left: auto; font-size: 11px; }
.home-details[open] > summary::after { content: '收起'; }
.home-workspace #reminder-panel { padding: 0 16px; margin: 15px 0; }
.reminder-disclosure > summary { min-height: 48px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reminder-disclosure > summary strong { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.reminder-disclosure > summary strong svg { width: 16px; height: 16px; }
.reminder-disclosure > summary > span { font-size: 11px; color: var(--home-muted); }
.capacity-breakdown { margin: 18px 0; }
.capacity-breakdown > div { display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.capacity-breakdown dt { color: var(--home-muted); }
.capacity-breakdown dd { margin: 0; font-weight: 600; white-space: nowrap; }
.page-filters { margin-bottom: 20px; }
.page-filters[hidden] { display: none !important; }
.page-filters > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 42px; font-size: 12px; color: var(--home-muted); }
.page-filters > summary > svg { width: 16px; height: 16px; }
.page-filters > summary > span { font-size: 10px; color: var(--home-accent); margin-left: 5px; }
.page-filters > summary::after { content: '展开'; margin-left: auto; font-size: 11px; }
.page-filters[open] > summary::after { content: '收起'; }
.page-filters .collection-toolbar { margin-top: 8px; margin-bottom: 0; }
.page-filters.compact-filters { margin-bottom: 8px; }
summary:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; border-radius: 4px; }
.home-task, .home-agenda-row, .overview-plan-title, .attention-link, .mobile-navigation a, .mobile-navigation button { transition: background-color .16s ease, color .16s ease; }
@media (hover: hover) {
  .home-task:hover, .home-agenda-row:hover { background: var(--home-soft); }
  .overview-plan-title:hover { color: var(--home-accent); text-decoration: underline; text-underline-offset: 4px; }
  .attention-link:hover { background: var(--home-soft); }
}
html[data-theme="dark"] {
  --home-ink: #d5dfee;
  --home-muted: #a8b2c2;
  --home-soft: #282f3a;
  --home-accent: #a1b7d9;
  --home-warm: #e2c08c;
}
html[data-theme="dark"] .lane-considering { background: #3b3629; }
html[data-theme="dark"] .lane-paused { background: #2c3036; }
@media (max-width: 1120px) {
  .overview-lead { grid-template-columns: 1.4fr minmax(250px, 1fr); }
  .home-focus { padding: 24px; }
  .home-focus h2 { font-size: 23px; }
  .overview-lanes { gap: 12px; }
}
@media (max-width: 920px) {
  .overview-lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-capacity { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; }
  .home-capacity .home-section-title { grid-column: 1 / -1; }
  .capacity-caption { grid-column: 1; }
  .capacity-value { grid-column: 2; grid-row: 2 / 4; align-self: center; margin: 0; }
  .home-capacity p { grid-column: 1; margin-top: 5px; }
  .home-capacity-track { grid-column: 1 / -1; grid-row: 4; margin-top: 12px; }
  .capacity-verdict { grid-column: 1 / -1; }
  .overview-lanes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .workspace main { padding-bottom: calc(87px + env(safe-area-inset-bottom, 0px)); }
  .topbar { position: sticky; top: 0; z-index: 15; min-height: 60px; padding: 10px 16px; background: var(--surface); }
  .topbar-actions .icon-btn, .mobile-menu { min-width: 40px; min-height: 40px; }
  .topbar-actions .primary { min-height: 40px; background: var(--surface); color: var(--home-accent); border: 1px solid var(--border); }
  .breadcrumb { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb > span { margin: 0 5px; }
  .topbar-actions { flex-shrink: 0; gap: 8px; }
  .topbar-actions kbd { display: none; }
  .home-workspace main { padding: 20px 16px calc(87px + env(safe-area-inset-bottom, 0px)); }
  .home-workspace .page-header h1 { font-size: 24px; }
  .home-workspace .page-header p { font-size: 12px; }
  .home-workspace .eyebrow { font-size: 11px; }
  .home-focus { padding: 20px; border-radius: 13px; }
  .home-focus h2 { font-size: 22px; margin-top: 17px; }
  .focus-eyebrow { font-size: 12px; }
  .focus-chip { font-size: 10px; padding: 4px 7px; }
  .focus-context { font-size: 12px; }
  .focus-bottom { padding-top: 19px; }
  .focus-bottom .primary { width: 100%; min-height: 44px; font-size: 14px; justify-content: center; }
  .focus-bottom > span { display: none; }
  .home-capacity { padding: 17px 19px; border-radius: 13px; }
  .capacity-value { font-size: 27px; }
  .home-attention { gap: 8px; margin: 15px 0 19px; }
  .home-attention > span { display: none; }
  .attention-link { flex: 1; min-height: 42px; padding: 8px; }
  .overview-middle, .today-content { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-panel { padding: 17px 18px; }
  .home-section-title h2 { font-size: 14px; }
  .home-section-title .quiet, .home-more { min-height: 40px; }
  .home-task, .home-agenda-row { min-height: 74px; }
  .plan-overview { margin-top: 23px; }
  .overview-lanes { gap: 13px; }
  .overview-lane { padding: 16px; }
  .overview-plan { padding: 15px; }
  .overview-plan-title { min-height: 40px; }
  .overview-plan .quiet, .plan-attention { min-height: 40px; }
  .today-status { font-size: 12px; gap: 12px; padding: 12px 0; }
  .today-status .quiet { min-height: 40px; }
  .today-status .home-more { display: none; }
  .home-details > summary { min-height: 48px; }
  .reminder-disclosure > summary strong { font-size: 12px; }
  .reminder-row button { min-height: 40px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; }
  .mobile-navigation { position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--surface); border-top: 1px solid var(--border); padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); }
  .mobile-navigation a, .mobile-navigation button { min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; font-size: 11px; color: var(--home-muted); border: 0; border-radius: 8px; background: transparent; padding: 4px; }
  .mobile-navigation svg { width: 20px; height: 20px; }
  .mobile-navigation .selected { color: var(--home-accent); background: var(--home-soft); font-weight: 600; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); }
  .sidebar { max-height: 100dvh; padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px)); }
  .sidebar .nav-item { min-height: 43px; }
  .space-switcher { min-height: 52px; }
  .page-filters .collection-search input, .page-filters select { font-size: 16px; }
}
@media (max-width: 360px) {
  .topbar { padding-left: 10px; padding-right: 10px; gap: 5px; }
  .breadcrumb { font-size: 11px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .icon-btn, .mobile-menu { min-width: 36px; }
  .quick-record-label { display: none; }
  .home-workspace main { padding-left: 12px; padding-right: 12px; }
  .home-focus { padding: 17px; }
  .home-focus h2 { font-size: 20px; }
  .focus-heading { flex-wrap: wrap; gap: 8px; }
  .capacity-value { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-task, .home-agenda-row, .overview-plan-title, .attention-link, .mobile-navigation a, .mobile-navigation button { transition: none; }
}
