:root {
  color-scheme: light;
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #212820;
  background: #f4f5f0;
  font-synthesis: none;
  --canvas: #f4f5f0;
  --surface: #fff;
  --sidebar: #1b2527;
  --ink: #212820;
  --muted: #5b655c;
  --quiet: #697369;
  --line: #e5e9e1;
  --accent: #dceba0;
  --green: #446136;
  --focus: #637947;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; min-width: 280px; min-height: 100vh; font-size: 1rem; line-height: 1.55; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }

.workbench { display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 360px;
  padding: 29px 17px 22px;
  color: #f4f7ec;
  background: var(--sidebar);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 8px; white-space: nowrap; }
.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  place-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #293122;
  flex: none;
}
.brand-mark i { display: block; background: currentColor; border-radius: 1px; }
.brand-mark i:last-child { background: transparent; border: 1px solid currentColor; }
.brand-title { font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; }

.sidebar-nav { display: grid; gap: 6px; margin-top: 38px; }
.nav-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: #c2cdc5;
  text-align: left;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-button:hover { background: #263235; color: #f4f7ec; }
.nav-button:is(.active, .is-active, [aria-current="page"], [aria-selected="true"], [aria-pressed="true"]) {
  border-color: #445043;
  color: #e9f5b6;
  background: #303b36;
  font-weight: 650;
}
.nav-button:focus-visible { outline-color: var(--accent); }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 17px 9px 0;
  border-top: 1px solid #34413f;
  color: #b3c0b6;
  font-size: .82rem;
}
.local-indicator { width: 7px; height: 7px; border-radius: 50%; background: #b8d477; flex: none; }

.workspace { min-width: 0; }
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 33px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf9;
}
.workspace-date { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.workspace-content { width: 100%; max-width: 1550px; margin: 0 auto; padding: 26px 33px 42px; }
.page-heading { margin-bottom: 20px; }
.split-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; }
h1 { font-size: clamp(1.65rem, 2.4vw, 2.15rem); line-height: 1.23; letter-spacing: -.035em; font-weight: 730; }
h2 { font-size: 1.075rem; line-height: 1.35; font-weight: 700; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { border-color: #c9d78d; background: var(--accent); color: #2b3420; }
.button-primary:hover { border-color: #b5c475; background: #d2e486; }
.button-secondary { border-color: #dce2d8; background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: #c9d1c5; background: #f4f6f0; }
.button-quiet { color: #465c38; border-color: #e2e8d9; background: #f8faf5; }
.button-quiet:hover { border-color: #cddac3; background: #eef4e6; }
.button-small { min-height: 33px; padding: 4px 9px; }
.button .glyph-plus { width: 13px; height: 13px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.summary-card {
  min-width: 0;
  min-height: 103px;
  padding: 14px 16px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.summary-total { border-color: #dce5ce; background: #edf2e5; }
.summary-top, .summary-value { display: flex; align-items: center; }
.summary-top { justify-content: space-between; gap: 5px; color: #4f5b4e; font-size: .88rem; font-weight: 600; }
.summary-value { align-items: baseline; gap: 6px; margin-top: 5px; min-width: 0; color: var(--quiet); font-size: .82rem; }
.summary-value strong { color: var(--ink); font-size: 1.95rem; line-height: 1; font-weight: 710; font-variant-numeric: tabular-nums; }
.summary-icon, .panel-icon { display: inline-grid; place-items: center; border-radius: 8px; width: 31px; height: 31px; flex: none; }
.summary-total .summary-icon { background: #e0e9d3; color: #516747; }
.summary-done .summary-icon { background: #e7f2e6; color: #53734d; }
.summary-open .summary-icon, .panel-icon-reminder { background: #f4edda; color: #866c38; }
.summary-followups .summary-icon, .panel-icon-followup { background: #edf0f6; color: #596989; }

.today-grid, .history-grid, .settings-grid { display: grid; align-items: start; gap: 18px; }
.today-grid { grid-template-columns: minmax(0, 2.1fr) minmax(253px, 1fr); }
.history-grid, .settings-grid { grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); }
.today-aside { display: grid; gap: 16px; min-width: 0; }
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 6px #202a1e05;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  min-height: 62px;
  border-bottom: 1px solid #edf0ea;
}
.task-panel-header { padding-bottom: 12px; border-bottom: 0; }
.panel-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.compact-header { padding: 14px 15px; min-height: 59px; }
.panel-icon { width: 29px; height: 29px; }

.filters {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #edf0ea;
  border-radius: 8px;
  background: #f4f6f1;
}
.filter-button {
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #596358;
  font-size: .84rem;
  line-height: 1.2;
  white-space: nowrap;
}
.filter-button:hover { color: var(--ink); background: #e8ede3; }
.filter-button:is(.active, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  color: #34442c;
  border-color: #e4eae0;
  background: #fff;
  box-shadow: 0 1px 3px #19271711;
  font-weight: 650;
}
.task-progress {
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 18px 13px;
  border-bottom: 1px solid #edf0ea;
  color: var(--muted);
  font-size: .82rem;
}
#progress-bar { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: #eef1e9; }
#progress-bar::-webkit-progress-bar { background: #eef1e9; border-radius: 999px; }
#progress-bar::-webkit-progress-value { background: #8da867; border-radius: 999px; }
#progress-bar::-moz-progress-bar { background: #8da867; border-radius: 999px; }
#progress-label { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.task-list, .compact-list, .full-list { min-width: 0; }
.task-row, .template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf0ea;
  min-height: 58px;
}
.task-row:has(.task-check) { grid-template-columns: 22px minmax(0, 1fr) auto; }
.task-row:last-child, .template-row:last-child, .reminder-item:last-child, .followup-item:last-child, .history-item:last-child { border-bottom: 0; }
.task-row:hover, .template-row:hover { background: #fafbf8; }
.task-row:last-child, .template-row:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.task-content, .followup-content { min-width: 0; }
.task-title, .followup-title { color: var(--ink); font-size: .99rem; font-weight: 675; line-height: 1.4; overflow-wrap: anywhere; }
.task-title:has(.category-tag) { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.task-description, .task-note, .followup-description, .followup-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.task-note { color: #536844; }
.task-meta, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; min-width: 0; }
.task-content .task-meta { margin-top: 5px; }
.row-actions { justify-content: flex-end; }
.task-meta .row-actions { margin-inline-start: auto; }
.task-time, .followup-date { color: #566153; font-size: .86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-time.is-overdue { color: #9b563e; }
.category-tag, .status-tag, .reminder-status, .followup-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #edf1e9;
  color: #4e6148;
  font-size: .79rem;
  line-height: 1.32;
  font-weight: 550;
  vertical-align: middle;
}
.category-tag[data-category*="发布"], .category-tag[data-category*="账号"] { background: #e9efe2; color: #506647; }
.category-tag[data-category*="短视频"], .category-tag[data-category*="对接"], .category-tag[data-category*="内容"] { background: #edf0f8; color: #52668e; }
.category-tag[data-category*="线索"], .category-tag[data-category*="客户"], .category-tag[data-category*="跟进"] { background: #f4ecdf; color: #7b623b; }
.category-tag[data-category*="素材"], .category-tag[data-category*="笔记"], .category-tag[data-category*="群"] { background: #f1ecf5; color: #6b5279; }
.category-tag[data-category="账号维护"] { background: #f1ecf5; color: #6b5279; }
.category-tag[data-category="项目对接"] { background: #edf1f1; color: #426569; }
.task-check {
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 21px;
  height: 21px;
  padding: 0;
  margin: 0;
  border: 1.5px solid #adb8aa;
  border-radius: 5px;
  background: #fff;
  color: #fff;
  cursor: pointer;
  flex: none;
  position: relative;
  font-size: 0;
}
.task-check:hover { border-color: #6c8a54; background: #f2f7eb; }
.task-row:is(.is-done, .done, [data-done="true"], :has(.task-check:is(:checked, [aria-checked="true"], [aria-pressed="true"]))) .task-title { color: #626e60; }
.task-row:is(.is-done, .done, [data-done="true"]) .task-check,
.task-check:is(:checked, [aria-checked="true"], [aria-pressed="true"], .is-done, .is-checked, .checked) {
  border-color: #657f52;
  background: #657f52;
}
.task-row:is(.is-done, .done, [data-done="true"]) .task-check::after,
.task-check:is(:checked, [aria-checked="true"], [aria-pressed="true"], .is-done, .is-checked, .checked)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 9px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.task-check > .glyph { display: none; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid #e5eae1;
  border-radius: 6px;
  background: #fff;
  color: #526253;
  font-size: .81rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.icon-button:hover { border-color: #d6dfd2; background: #f2f5ef; color: #30402c; }
.danger-button, .icon-button[data-action="delete"] { color: #955244; }
.danger-button:hover, .icon-button[data-action="delete"]:hover { color: #843526; border-color: #ead5cd; background: #fcf2ef; }

.reminder-item, .followup-item, .history-item {
  min-width: 0;
  padding: 10px 15px;
  border-bottom: 1px solid #edf0ea;
}
.reminder-item { display: flex; align-items: flex-start; gap: 8px 10px; }
.reminder-time {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 6px;
  background: #f5f2ea;
  color: #796039;
  font-size: .84rem;
  line-height: 1.3;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}
.reminder-title { color: #394136; font-size: .9rem; line-height: 1.45; font-weight: 570; overflow-wrap: anywhere; }
.reminder-status { margin-top: 4px; }
.reminder-item:is(.is-overdue, .overdue) .reminder-time { color: #8b4f36; background: #f8eae2; }
.reminder-item:is(.is-overdue, .overdue) .reminder-status { color: #855039; background: #f8eee7; }
.reminder-item:is(.is-done, .done) .reminder-time { color: #5b6d55; background: #edf2eb; }
.reminder-item:is(.is-done, .done) .reminder-title { color: #687466; }
.followup-item, .history-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.full-list .followup-item { padding: 15px 18px; }
.followup-content { flex: 1; }
.followup-content .followup-date { display: block; margin-top: 2px; }
.followup-item:is(.is-done, .done) .followup-title { color: #647260; }
.history-day { padding: 11px 18px; border-bottom: 1px solid #edf0ea; color: var(--muted); font-size: .92rem; }
.history-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: calc(100% - 18px);
  margin: 5px 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #455443;
  text-align: left;
  font-size: .9rem;
}
.history-select:hover, .history-select:is(.active, .is-active, [aria-current="date"], [aria-pressed="true"]) { border-color: #e3eadf; background: #f1f5ee; }
.empty-state {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  padding: 21px 18px;
  min-height: 75px;
  color: var(--quiet);
  font-size: .91rem;
  overflow-wrap: anywhere;
}
.compact-list .empty-state { padding: 16px 15px; min-height: 62px; }
.compact-list > .icon-button { margin: 8px 15px 13px; }

.date-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .89rem; }
.date-field input, .form-field :is(input, select, textarea) {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #dbe2d7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: .98rem;
}
.date-field input { min-height: 37px; }
.settings-body { padding: 15px 18px 17px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.switch {
  appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid #a9b3a7;
  border-radius: 99px;
  background: #dfe4db;
  cursor: pointer;
  flex: none;
}
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24352435; }
.switch:checked { border-color: #5c794b; background: #718d60; }
.switch:checked::before { left: 21px; }
.field-help { color: var(--quiet); font-size: .83rem; line-height: 1.48; }
.settings-body .field-help { margin-top: 6px; }

.editor-dialog {
  width: min(500px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid #dce3d7;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 70px #1a2a2138;
}
.editor-dialog::backdrop { background: #17232378; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.dialog-close { width: 34px; height: 34px; }
.dialog-content { display: grid; gap: 13px; padding: 16px 19px 20px; }
.dialog-error { margin: 0 19px 14px; padding: 7px 10px; border: 1px solid #ead5cd; border-radius: 7px; background: #fcf2ef; color: #843526; font-size: .87rem; overflow-wrap: anywhere; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 19px 14px; border-top: 1px solid var(--line); background: #fafbf8; }
.dialog-context { color: var(--muted); overflow-wrap: anywhere; }
.form-field { display: grid; align-content: start; gap: 4px; min-width: 0; color: #475345; font-size: .9rem; font-weight: 650; }
.form-field :is(input, select, textarea) { width: 100%; min-width: 0; font-weight: 400; }
.form-field select {
  appearance: none;
  padding-inline-end: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #667264 50%), linear-gradient(135deg, #667264 50%, transparent 50%);
  background-position: calc(100% - 15px) 54%, calc(100% - 11px) 54%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.form-field textarea { resize: vertical; }
.form-field .field-help { font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 13px; }
.toast:empty, .toast[hidden] { display: none; }
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 3;
  max-width: min(380px, calc(100% - 44px));
  padding: 10px 15px;
  border-radius: 9px;
  color: #f8faf5;
  background: #28382d;
  box-shadow: 0 4px 15px #1f2b1f3d;
  font-size: .94rem;
}
.toast:is(.error, .is-error, [data-type="error"]) { background: #864735; }
.no-script { position: fixed; inset: auto 12px 12px; padding: 10px 15px; border: 1px solid #e0d5c5; border-radius: 8px; background: #f9f1e3; color: #563b2a; }

.glyph { display: inline-block; position: relative; width: 16px; height: 16px; flex: none; }
.glyph::before, .glyph::after { content: ""; position: absolute; }
.glyph-grid::before { width: 6px; height: 6px; top: 1px; left: 1px; background: currentColor; border-radius: 1px; box-shadow: 8px 0 currentColor, 0 8px currentColor; }
.glyph-grid::after { width: 6px; height: 6px; right: 1px; bottom: 1px; border: 1px solid currentColor; border-radius: 1px; }
.glyph-message::before { inset: 2px 0 3px; border: 1.5px solid currentColor; border-radius: 3px; }
.glyph-message::after { width: 4px; height: 4px; left: 3px; bottom: 1px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: skewY(-35deg); }
.glyph-history::before, .glyph-clock::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.glyph-history::after, .glyph-clock::after { left: 7px; top: 4px; width: 4.5px; height: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.glyph-history { transform: scaleX(-1); }
.glyph-settings::before { left: 2px; right: 2px; top: 3px; height: 1.5px; background: currentColor; box-shadow: 0 4px currentColor, 0 8px currentColor; }
.glyph-settings::after { left: 5px; top: 2px; width: 3px; height: 3px; background: currentColor; border-radius: 50%; box-shadow: 4px 4px currentColor, 0 8px currentColor; }
.glyph-calendar::before { inset: 2px 1px 1px; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(currentColor, currentColor) 0 3px / 100% 1px no-repeat; }
.glyph-calendar::after { width: 1.5px; height: 4px; top: 0; left: 5px; background: currentColor; box-shadow: 4px 0 currentColor; }
.glyph-list::before { inset: 0 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.glyph-list::after { width: 5px; height: 1px; top: 5px; left: 5px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.glyph-check::before { left: 2px; top: 3px; width: 11px; height: 7px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.glyph-plus::before, .glyph-close::before { inset: 50% 2px auto; height: 1.5px; margin-top: -.75px; background: currentColor; border-radius: 1px; }
.glyph-plus::after, .glyph-close::after { inset: 2px auto 2px 50%; width: 1.5px; margin-left: -.75px; background: currentColor; border-radius: 1px; }
.glyph-close { transform: rotate(45deg); }

@media (max-width: 1160px) {
  .workbench { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .workspace-header { padding-inline: 25px; }
  .workspace-content { padding-inline: 25px; }
  .summary-grid { gap: 11px; }
}

@media (max-width: 1000px) {
  .today-grid { grid-template-columns: minmax(0, 1.7fr) minmax(235px, 1fr); gap: 12px; }
  .today-aside { gap: 12px; }
  .task-row, .template-row { gap: 6px 8px; padding-inline: 13px; }
  .panel-header, .task-progress { padding-inline: 13px; }
}

@media (max-width: 870px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 690px) {
  .workbench { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; gap: 11px; padding: 12px 14px 10px; }
  .brand { padding: 0; }
  .brand-mark { width: 29px; height: 29px; }
  .sidebar-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 4px; }
  .nav-button { justify-content: center; gap: 5px; min-height: 37px; padding: 5px; font-size: .79rem; }
  .nav-button .glyph { width: 14px; height: 14px; }
  .sidebar-footer { display: none; }
  .workspace-header { min-height: 57px; padding: 8px 14px; }
  .workspace-content { padding: 17px 14px 29px; }
  .page-heading { margin-bottom: 15px; }
  .summary-grid { margin-bottom: 15px; }
  .summary-card { min-height: 88px; padding: 9px 10px; }
  .summary-icon { height: 25px; width: 25px; }
}

@media (max-width: 480px) {
  .nav-button .glyph { display: none; }
  .workspace-header { gap: 6px; }
  .workspace-date { font-size: .83rem; gap: 5px; }
  .summary-grid, .today-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .today-aside { grid-template-columns: minmax(0, 1fr); }
  .task-row:has(.task-check) { grid-template-columns: 22px minmax(0, 1fr); }
  .task-row:has(.task-check) > :is(.task-meta, .row-actions) { grid-column: 2; justify-content: flex-start; }
  .task-panel-header { flex-wrap: wrap; gap: 6px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 340px) {
  .nav-button { padding-inline: 2px; font-size: .75rem; }
  .workspace-date { white-space: normal; }
}
[data-cloud] [data-view="settings"], [data-cloud] [data-add-task] { display: none; }
