/* Five independent views share one quiet, paper-like visual system. */
:root {
  --board-rule: color-mix(in srgb, var(--accent) 19%, transparent);
  --board-wash: color-mix(in srgb, var(--accent) 5%, transparent);
}

body { background: #f6f3eb; }
.ambient-scene { background: linear-gradient(115deg, #f8f6f0, #f2f0e8 72%, #f6f3eb); }
.ambient-orb { opacity: .08; }
.ambient-grid { opacity: .08; background-size: 5rem 5rem; }
.ambient-grain { opacity: .055; }

.topbar {
  padding: 10px 28px;
  background: color-mix(in srgb, var(--canvas) 91%, white);
  border-bottom: 1px solid var(--board-rule);
  backdrop-filter: blur(16px);
}
.topbar-inner { max-width: 1420px; }
.icon-button, .quiet-button, .date-field {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.icon-button:hover, .quiet-button:hover { background: var(--board-wash); transform: none; }
.date-field { border-bottom: 1px solid var(--board-rule); }
.wordmark-copy strong { font-size: 1.08rem; letter-spacing: -.04em; }

.section-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--board-rule);
  border-radius: 17px;
  background: color-mix(in srgb, var(--canvas) 93%, white);
  box-shadow: 0 12px 35px rgba(32, 40, 36, .11);
  backdrop-filter: blur(20px);
}
.section-dock button {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  min-height: 45px;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: .87rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.section-dock button:hover { color: var(--ink); background: var(--board-wash); }
.section-dock button[aria-current="page"] { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 10%, white); }
.section-dock button[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}
.dock-number { font-size: .58rem; font-weight: 800; letter-spacing: .04em; opacity: .6; }
.section-dock .dock-action { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 9%, white); }
.dock-plus { font-size: 1.15rem; font-weight: 500; line-height: .8; }

.workspace { width: min(1420px, calc(100% - 80px)); min-height: calc(100svh - 64px); padding: 32px 0 112px; }
.writeback-status { display: flex; gap: 7px 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 15px; border: 1px solid var(--board-rule); border-left: 3px solid var(--accent); color: var(--accent-deep); background: var(--board-wash); font-size: .83rem; line-height: 1.45; }
.writeback-status[hidden] { display: none; }
.writeback-status strong { flex: 0 0 auto; }
.writeback-status[data-state="blocked"], .writeback-status[data-state="failed"] { border-left-color: #a34f3c; color: #813c30; background: #fbf0e9; }
.writeback-status[data-state="delayed"] { border-left-color: #a27b23; color: #755b17; background: #faf4df; }
.board-page { min-height: min(700px, calc(100svh - 230px)); animation: board-appear .26s ease-out both; }
@keyframes board-appear { from { opacity: .65; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.board-intro { padding: 4px 0 22px; border-bottom: 1px solid var(--board-rule); }
.board-intro .section-kicker { color: var(--accent); }
.board-intro h1 { margin: 7px 0 5px; font-size: clamp(2rem, 4vw, 4rem); font-weight: 650; letter-spacing: -.07em; line-height: 1.08; }
.board-intro p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }

.day-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; border-top: 1px solid var(--board-rule); border-bottom: 1px solid var(--board-rule); }
.day-identity, .focus-card, .weather-card, .week-panel, .panel {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.day-identity { gap: 30px; padding: 36px 34px 40px 0; }
.day-index span { font-size: clamp(6rem, 10vw, 10rem); font-weight: 250; }
.day-index small { margin-top: 14px; }
.day-copy h1 { margin: 8px 0 16px; font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 700; }
.day-copy .eyebrow { color: var(--muted); }
.meta-chip { padding: 4px 0; border: 0; border-radius: 0; background: none !important; }
.meta-chip + .meta-chip::before { content: ""; display: inline-block; width: 1px; height: .75em; margin: 0 10px 0 2px; background: var(--board-rule); }
.meta-chip.accent { color: var(--accent); }

.focus-card {
  padding: 38px 6px 42px 42px;
  border-left: 1px solid var(--board-rule);
  color: var(--ink);
  background: linear-gradient(90deg, var(--board-wash), transparent 75%);
  overflow: hidden;
}
.focus-card .section-kicker { color: var(--accent); }
.focus-time { margin: 20px 0 5px; font-size: clamp(1.65rem, 3vw, 3.1rem); font-weight: 350; font-variant-numeric: tabular-nums; }
.focus-body h2 { font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1.35; }
.focus-meta { color: var(--muted); opacity: 1; overflow-wrap: anywhere; }
.focus-location { color: var(--ink); font-weight: 700; }
.focus-category { color: var(--muted); font-weight: 450; }
.live-pill { padding: 3px 0; border-radius: 0; color: var(--accent); background: none !important; font-weight: 700; }
.focus-orbit { right: 4%; bottom: -30%; width: 12rem; height: 12rem; border-color: var(--board-rule); opacity: .28; }
.focus-orbit::before, .focus-orbit::after { border-color: var(--board-rule); background: none; box-shadow: none; }
.focus-orbit i { background: var(--accent); box-shadow: none; }
.focus-track { left: 42px; right: 32px; bottom: 26px; height: 2px; background: var(--board-rule); }
.focus-track span { background: var(--accent); }
.notice-area { margin: 0; gap: 0; }
.notice { min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--board-rule); border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--board-rule); }
.overview-facts > div { display: flex; align-items: baseline; min-width: 0; gap: 8px; padding: 18px 20px 18px 0; border-right: 1px solid var(--board-rule); }
.overview-facts > div + div { padding-left: 22px; }
.overview-facts > div:last-child { border: 0; }
.overview-facts span { margin-right: auto; color: var(--muted); font-size: .8rem; }
.overview-facts strong { min-width: 0; color: var(--accent-deep); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-facts small { color: var(--muted); }
.reference-panel { --muted: #626b64; margin-top: 10px; padding: 24px 0 0; border-top: 1px solid var(--board-rule); }
.reference-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.reference-header h2 { margin: 0; font-size: 1.35rem; }
.plan-updated { margin: 7px 0 0; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.plan-hint { margin: 12px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.plan-tasks-button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--board-rule); border-radius: 4px; color: var(--accent-deep); background: transparent; font-size: .85rem; font-weight: 650; }
.plan-tasks-button:hover:not(:disabled) { background: var(--board-wash); }
.plan-tasks-button:disabled { opacity: .5; cursor: default; }
.plan-period-list { display: grid; min-width: 0; gap: 2px; }
.plan-period-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.plan-task { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; min-height: 44px; padding: 10px 12px; margin: 0 -12px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; }
.plan-task:hover { background: var(--board-wash); }
.plan-task-title { flex: 1; font-size: .95rem; font-weight: 550; }
.plan-task-budget { flex: 0 0 auto; color: var(--accent-deep); font-size: .85rem; font-variant-numeric: tabular-nums; }
.plan-task[data-completed="true"] .plan-task-title { color: var(--muted); text-decoration: line-through; }
.plan-notes { margin-top: 16px; border-bottom: 1px solid var(--board-rule); }
.plan-notes > summary { width: fit-content; min-height: 44px; padding: 12px 0; color: var(--accent-deep); font-size: .88rem; font-weight: 650; cursor: pointer; }
.plan-notes > p { max-width: 72ch; margin: 0 0 20px; font-size: .9rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.plan-task:focus-visible, .plan-tasks-button:focus-visible, .plan-notes > summary:focus-visible, .task-item:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
#snapshot-freshness[data-stale="true"] { color: var(--danger); }
.reference-header > small { color: var(--muted); font-size: .72rem; }
.reference-schedule-list { display: grid; margin-top: 14px; border-top: 1px solid var(--board-rule); }
.reference-row { display: grid; grid-template-columns: minmax(112px, .3fr) 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--board-rule); }
.reference-time { color: var(--accent-deep); font-variant-numeric: tabular-nums; font-weight: 720; }
.reference-block { grid-template-columns: minmax(74px, .16fr) 1fr; align-items: start; gap: 22px; padding: 15px 0; }
.reference-period { color: var(--accent); font-size: .74rem; font-weight: 760; letter-spacing: .13em; line-height: 1.7; white-space: nowrap; }
.reference-row span { min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.reference-empty { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--board-rule); color: var(--muted); }

.task-column { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; row-gap: 28px; padding-top: 24px; }
.task-panel { padding: 0 !important; }
.task-panel:first-child { border-right: 1px solid var(--board-rule); padding-right: 40px !important; }
.task-panel .section-kicker { display: block; color: var(--accent); }
.task-panel .panel-header h2 { margin: 5px 0 0; font-size: clamp(1.25rem, 2vw, 2rem); }
.count-badge { min-width: 0; height: auto; padding: 0; border-radius: 0; color: var(--accent); background: none; font-size: 1.3rem; font-weight: 450; }
.task-list { gap: 0 !important; margin-top: 15px; border-top: 1px solid var(--board-rule); }
.task-item { align-items: center; gap: 12px; min-height: 66px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--board-rule); border-radius: 0; background: transparent; }
.task-title { font-size: 1rem; line-height: 1.35; }
.task-note { margin-top: 3px; }
.task-details { margin-top: 7px; }
.task-details > summary { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 0; color: var(--accent); font-size: .78rem; font-weight: 650; cursor: pointer; list-style: none; }
.task-details > summary::-webkit-details-marker { display: none; }
.task-details > summary::after { content: "+"; font-size: 1rem; line-height: 1; }
.task-details[open] > summary::after { content: "−"; }
.task-details .task-note { margin-top: 7px; overflow-wrap: anywhere; }
.task-deadline { margin: 8px 0 0; color: var(--accent-deep); font-size: .85rem; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deadline-alert { width: fit-content; margin: 6px 0 0; padding: 3px 7px; border: 0; border-radius: 4px; color: var(--danger); background: var(--signal-soft); font-size: .8rem; line-height: 1.5; font-weight: 650; }
.plan-task-budget .deadline-alert { display: block; margin-left: auto; }
[data-deadline-state="soon"] .task-deadline, [data-deadline-state="today"] .task-deadline, [data-deadline-state="overdue"] .task-deadline { color: var(--danger); font-weight: 650; }
.task-status { margin-top: 5px; padding: 0; border-radius: 0; background: none; }
.task-status-button, .event-status { border: 1px solid var(--board-rule); border-radius: 4px; background: transparent; }
.task-check, .event-check { background: transparent; }
.empty-list { padding: 20px 0; text-align: left; }
.completed-panel { grid-column: 1/-1; border-top: 1px solid var(--board-rule); }
.completed-panel summary { padding: 17px 0; }
.completed-panel summary strong { font-size: 1.25rem; }
.completed-panel .task-details > summary { display: inline-flex; padding: 0; }
.completed-list { padding: 0; }
.completed-list .task-item { opacity: .72; }

.timeline-panel { padding: 24px 0 0 !important; }
.timeline-panel .panel-header h2 { font-size: 1.35rem; }
.timeline-panel .timeline { max-width: 1040px; margin: 26px auto 0; }
.timeline-grid { border-radius: 0; background: none; }
.timeline-event { border-radius: 3px; border-left: 3px solid var(--accent); box-shadow: none; background: color-mix(in srgb, var(--accent) 10%, #fffdf8); }
.timeline-event.timed_item { border-left-color: var(--signal); background: var(--signal-soft); }
.timeline-empty { border-radius: 0; }
.timeline-panel[data-empty="true"] .timeline { display: none; }
.timeline-panel[data-empty="true"]::after { content: "没有记录确定时间的安排"; display: block; padding: 60px 0; border-bottom: 1px solid var(--board-rule); color: var(--muted); text-align: center; }

.weather-card { display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; padding: 28px 0; border-bottom: 1px solid var(--board-rule); }
.weather-card::after { display: none; }
.weather-header { grid-column: 1/-1; }
.weather-main { gap: 16px; }
.weather-orb { width: 3.3rem; height: 3.3rem; border: 1px solid var(--board-rule); background: transparent; box-shadow: none; }
.weather-condition { font-size: 1.5rem; }
.weather-temp strong { font-size: 3.6rem; }
.weather-metrics { align-self: center; gap: 30px; min-width: 320px; padding: 0 0 0 35px; border-top: 0; border-left: 1px solid var(--board-rule); }
.weather-metrics strong { font-size: 1.1rem; }
.weather-empty { grid-column: 1/-1; padding: 30px 0; }
.hourly-panel { padding: 28px 0 !important; }
.hourly-weather { gap: 0; margin-top: 4px; }
.hour-card { min-height: 125px; padding: 12px 14px; border: 0; border-right: 1px solid var(--board-rule); border-radius: 0; background: transparent; }
.hour-card.current { color: var(--ink); background: var(--board-wash); box-shadow: none; }
.hour-card.current .hour-time, .hour-card.current small { color: var(--muted); }
.hour-card.current .hour-symbol { color: var(--accent); }

.week-panel { padding: 25px 0; }
.week-header h2 { margin: 0; font-size: 1.25rem; }
.day-progress { padding: 0; border-radius: 0; background: none; }
.week-ribbon { gap: 0; margin-top: 20px; border-top: 1px solid var(--board-rule); border-bottom: 1px solid var(--board-rule); }
.week-day { min-height: 155px; padding: 17px 13px; border: 0; border-right: 1px solid var(--board-rule); border-radius: 0; background: transparent; }
.week-day:last-child { border-right: 0; }
.week-day.selected { color: var(--ink); background: var(--board-wash); box-shadow: inset 0 3px var(--accent); }
.week-day.selected .week-day-name, .week-day.selected .week-day-bottom small { color: var(--muted); }
.week-day > strong { margin: 12px 0 25px; font-size: clamp(2.1rem, 3vw, 3.2rem); }
.week-day:hover { background: var(--board-wash); transform: none; }
.week-day::before { display: none; }
.adjustment-mark { border: 1px solid var(--board-rule); }

.data-footer { border-top: 1px solid var(--board-rule); margin-top: 18px; padding-top: 16px; }
.loading-grid { display: block; margin-top: 0; }
.skeleton { border-radius: 0; min-height: 0; height: 150px; }
.skeleton-main { min-height: 150px; }
.skeleton-stack { display: none; }
.toast { bottom: max(85px, calc(env(safe-area-inset-bottom) + 80px)); }
html[data-density="compact"] .task-item { min-height: 54px; padding: 8px 0; }
html[data-density="airy"] .task-item { min-height: 78px; padding: 17px 0; }
html[data-surface="solid"] .focus-card { background: transparent; }
html[data-surface="soft"] .focus-card { background: color-mix(in srgb, var(--accent) 7%, transparent); }

@media (max-width: 900px) {
  .workspace { width: calc(100% - 44px); }
  .day-stage { grid-template-columns: 1fr 1fr; }
  .day-identity { gap: 18px; }
  .day-index span { font-size: 6rem; }
  .focus-card { padding-left: 25px; }
  .focus-track { left: 25px; }
  .weather-card { grid-template-columns: 1fr; }
  .weather-metrics { min-width: 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--board-rule); }
}

@media (max-width: 760px) {
  .topbar { padding: 6px 13px; }
  .topbar-inner { gap: 2px 8px; }
  .date-nav { gap: 3px; justify-content: space-between; }
  .date-nav .icon-button, .date-nav .quiet-button { height: 34px; min-width: 34px; }
  .date-field { height: 34px; padding: 0 4px; }
  .date-field input { min-width: 0; width: 100%; font-size: .9rem; }
  .top-actions .icon-button { height: 34px; min-width: 34px; }
  .top-actions #refresh-button { display: inline-flex; height: 44px; min-width: 44px; }
  .section-dock { left: 0; right: 0; bottom: 0; transform: none; justify-content: space-around; gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--board-rule); border-radius: 0; box-shadow: 0 -8px 22px rgba(32,40,36,.06); }
  .section-dock button { flex: 1 1 0; display: grid; gap: 1px; min-width: 0; min-height: 50px; padding: 4px 2px 7px; font-size: .74rem; }
  .section-dock button[aria-current="page"] { border-radius: 4px; }
  .section-dock button[aria-current="page"]::after { left: 32%; right: 32%; bottom: 2px; }
  .dock-number { font-size: .52rem; }
  #app-view .workspace { display: block; width: calc(100% - 32px); min-height: calc(100svh - 112px); padding: 18px 0 95px; }
  .writeback-status { display: grid; gap: 3px; margin-bottom: 10px; padding: 10px 12px; font-size: .78rem; }
  .board-page { min-height: calc(100svh - 200px); }
  .board-intro { padding-bottom: 14px; }
  .board-intro h1 { font-size: 2.15rem; }
  #app-view .day-stage { display: grid; grid-template-columns: 1fr; border-top: 0; }
  .day-identity { display: block; padding: 7px 0 11px; }
  .day-index, .day-copy .eyebrow { display: none; }
  .day-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .day-copy h1 { margin: 0; font-size: 1.08rem; white-space: nowrap; }
  .meta-row { gap: 2px 6px; }
  .meta-chip { padding: 2px 0; font-size: .7rem; }
  .focus-card { padding: 15px 0 24px; border-left: 0; border-top: 1px solid var(--board-rule); background: none; }
  .focus-time { margin: 10px 0 3px; font-size: 1.55rem; }
  .focus-body h2 { font-size: 1.2rem; }
  .focus-meta { margin: 4px 0 0; font-size: .88rem; line-height: 1.4; }
  .focus-orbit { display: none; }
  .focus-track { left: 0; right: 0; bottom: 8px; }
  .notice { padding: 10px 0; font-size: .82rem; }
  .overview-facts { margin-top: 16px; }
  .overview-facts > div { display: grid; gap: 1px; padding: 10px 5px 10px 0; }
  .overview-facts > div + div { padding-left: 10px; }
  .overview-facts span { font-size: .72rem; white-space: nowrap; }
  .overview-facts strong { font-size: 1rem; line-height: 1.25; white-space: nowrap; }
  .overview-facts small { display: none; }
  .reference-panel { margin-top: 4px; padding-top: 16px; }
  .reference-header { align-items: start; flex-wrap: wrap; gap: 3px 12px; }
  .reference-header h2 { font-size: 1.08rem; }
  .plan-updated { font-size: .75rem; }
  .plan-hint { font-size: .8rem; margin-top: 10px; }
  .plan-tasks-button { padding: 8px; font-size: .8rem; }
  .plan-task { flex-direction: column; align-items: stretch; gap: 3px; padding: 10px 8px; margin: 0 -8px; }
  .plan-task-title { font-size: .86rem; }
  .plan-task-budget { font-size: .78rem; }
  .plan-period-empty { font-size: .84rem; }
  .plan-notes > p { font-size: .85rem; line-height: 1.7; }
  .reference-header .section-kicker { display: none; }
  .reference-header > small { max-width: none; font-size: .78rem; line-height: 1.4; }
  .reference-schedule-list { margin-top: 9px; }
  .reference-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; font-size: .86rem; }
  .reference-time { font-size: .82rem; }
  .reference-block { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 9px; padding: 12px 0; }
  .reference-period { font-size: .72rem; line-height: 1.55; }
  .reference-empty { padding: 13px 0; font-size: .76rem; }
  .task-column { display: grid !important; grid-template-columns: 1fr; gap: 15px; padding-top: 17px; }
  .task-panel:first-child { padding-right: 0 !important; border-right: 0; }
  .task-panel .section-kicker { font-size: .58rem; }
  .task-panel .panel-header h2 { font-size: 1.18rem; }
  .task-item { min-height: 60px; padding: 10px 0; }
  .task-check { width: 36px; height: 36px; }
  .event-check { width: 32px; height: 32px; }
  .task-status-button { align-self: center; min-height: 34px; }
  .completed-panel summary { padding: 13px 0; }
  .timeline-panel { padding-top: 17px !important; }
  .timeline-panel .panel-header h2 { font-size: 1.1rem; }
  .timeline-panel .timeline { margin-top: 16px; }
  .timeline-panel:not([data-empty="true"]) .timeline { max-height: min(58svh, 500px); overflow-y: auto; }
  .timeline-panel[data-empty="true"]::after { padding: 35px 0; }
  .weather-card { display: grid; gap: 13px; padding: 18px 0; }
  .weather-orb { width: 2.8rem; height: 2.8rem; }
  .weather-condition { font-size: 1.2rem; }
  .weather-temp strong { font-size: 2.6rem; }
  .weather-metrics { gap: 10px; padding-top: 12px; }
  .hourly-panel { padding-top: 18px !important; }
  .hour-card { min-height: 112px; flex-basis: 96px; }
  .week-panel { padding-top: 16px; }
  .week-header { align-items: flex-start; }
  .week-header h2 { font-size: 1rem; }
  .week-context { display: grid; gap: 3px; justify-items: end; font-size: .64rem; }
  .week-ribbon { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin-top: 15px; }
  .week-day { min-width: 0; min-height: 88px; padding: 10px 2px; text-align: center; }
  .week-day-name { font-size: .61rem; }
  .week-day > strong { margin: 7px 0 0; font-size: clamp(1.2rem, 4vw, 1.7rem); }
  .week-day-bottom { display: none; }
  .adjustment-mark { right: 1px; top: 1px; }
  .data-footer { gap: 5px; margin-top: 8px; padding-top: 11px; font-size: .65rem; }
  .data-footer .footer-separator, #footer-note { display: none; }
}

/* 两个最近事件与快速安排 */
.focus-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  border-left: 1px solid var(--board-rule);
  order: 2;
}
.focus-list .focus-card {
  padding: 20px 12px 22px 34px;
  border-left: 0;
  background: linear-gradient(90deg, var(--board-wash), transparent 82%);
}
.focus-list .focus-card + .focus-card { border-top: 1px solid var(--board-rule); }
.focus-list .focus-time { margin: 9px 0 2px; font-size: clamp(1.28rem, 2.1vw, 2rem); }
.focus-list .focus-body h2 { font-size: clamp(1.05rem, 1.55vw, 1.42rem); }
.focus-list .focus-meta { margin: 3px 0 0; font-size: .76rem; }
.focus-list .focus-track { left: 34px; right: 24px; bottom: 9px; }
.empty-focus { align-content: center; }
.focus-attention {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 7px 0 0;
  color: #8a3d2f;
  font-size: .78rem;
  line-height: 1.35;
}
.focus-attention b {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #a34f3c;
  font-size: .65rem;
}
.event-attention {
  display: block;
  margin-top: 4px;
  color: #8a3d2f;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
}
.quick-add-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--board-rule));
  border-radius: 7px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 8%, white);
  font-weight: 750;
}
.quick-add-trigger svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.quick-add-dialog {
  width: min(650px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(250,248,242,.98);
  box-shadow: 0 35px 100px rgba(37,48,42,.24);
  overflow: auto;
}
.quick-add-dialog::backdrop { background: rgba(30,38,34,.28); backdrop-filter: blur(7px); }
.quick-add-header, .quick-add-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; }
.quick-add-header { border-bottom: 1px solid var(--board-rule); }
.quick-add-header h2 { margin: 5px 0 3px; font-size: 1.65rem; }
.quick-add-header p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.quick-add-body { display: grid; gap: 18px; padding: 24px 26px; }
.quick-field { display: grid; gap: 7px; }
.quick-field > span, .quick-choice legend { color: var(--ink); font-size: .82rem; font-weight: 750; }
.quick-field > span b { margin-left: 5px; color: var(--accent); font-size: .68rem; }
.quick-field > span small { margin-left: 5px; color: var(--muted); font-weight: 500; }
.quick-field input, .quick-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
  outline: none;
}
.quick-field textarea { resize: vertical; min-height: 76px; }
.quick-choice-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.quick-optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quick-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.quick-choice legend { margin-bottom: 7px; }
.segmented-control.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-prepend { cursor: pointer; }
.quick-prepend input { position: absolute; opacity: 0; }
.quick-prepend span { display: flex; align-items: center; gap: 9px; font-size: .84rem; }
.quick-prepend i { width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 5px; background: #fffdf9; }
.quick-prepend input:checked + span i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fffdf9; }
.quick-add-footer { border-top: 1px solid var(--board-rule); }

@media (max-width: 760px) {
  .focus-list { border-left: 0; border-top: 1px solid var(--board-rule); }
  .focus-list .focus-card { min-height: 0; padding: 11px 0 15px; }
  .focus-list .focus-time { margin-top: 6px; font-size: 1.15rem; }
  .focus-list .focus-body h2 { font-size: 1.04rem; }
  .focus-list .focus-meta { font-size: .88rem; }
  .focus-list .focus-track { left: 0; right: 0; bottom: 6px; }
  .timeline-panel:not([data-empty="true"]) .timeline { max-height: none; overflow: visible; }
  .timeline-grid { height: auto !important; min-height: 0; display: grid; gap: 0; margin-left: 0; border-left: 0; background: none; }
  .timeline-grid .time-tick, .timeline-grid .now-line { display: none; }
  .timeline-grid .timeline-event,
  .timeline-grid .timeline-event.open-ended {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--board-rule);
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
  }
  .timeline-grid .timeline-event.open-ended::before { display: none; }
  .timeline-grid .timeline-event.open-ended .event-top { display: flex; max-width: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
  .timeline-grid .event-top > div:first-child { min-width: 0; }
  .timeline-grid .event-time { font-size: .76rem; }
  .timeline-grid .event-title { font-size: .98rem; line-height: 1.35; overflow-wrap: anywhere; }
  .timeline-grid .event-location, .timeline-grid .event-attention { overflow-wrap: anywhere; }
  .hourly-panel { overflow: visible; }
  .hourly-weather { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; padding: 0; scroll-snap-type: none; }
  .hour-card { min-width: 0; min-height: 126px; padding: 12px 7px; border: 0; border-right: 1px solid var(--board-rule); border-bottom: 1px solid var(--board-rule); border-radius: 0; background: transparent; scroll-snap-align: none; }
  .hour-card:nth-child(3n) { border-right: 0; }
  .quick-add-dialog { width: 100%; max-height: 100vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .quick-add-header, .quick-add-footer { padding: 18px 20px; }
  .quick-add-body { padding: 20px; }
  .quick-choice-grid, .quick-optional-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hourly-weather { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hour-card:nth-child(3n) { border-right: 1px solid var(--board-rule); }
  .hour-card:nth-child(2n) { border-right: 0; }
  .meta-chip + .meta-chip::before { display: none; }
  .overview-facts strong { font-size: .92rem; white-space: normal; }
  .week-ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .week-day:nth-child(4) { border-right: 0; }
  .week-day:nth-child(n + 5) { border-top: 1px solid var(--board-rule); }
}

@media (prefers-reduced-motion: reduce) {
  .board-page { animation: none; }
}
