:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #edf4fb;
  --text: #17243b;
  --muted: #6e7d94;
  --line: #dbe5f1;
  --coral: #2563eb;
  --coral-soft: #eaf2ff;
  --green: #0f8a80;
  --green-soft: #e7f6f4;
  --yellow: #d48b23;
  --yellow-soft: #fff4df;
  --dark: #16335d;
  --shadow: 0 12px 36px rgba(30, 64, 111, 0.09);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .task-checkbox { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; background: #112b50; color: #eef5ff; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; background: var(--coral); color: white; border-radius: 8px; font-weight: 800; }
.brand strong, .brand span { display: block; letter-spacing: 0; }
.brand strong { font-size: 15px; }
.brand span { color: #9eb3d1; font-size: 11px; margin-top: 4px; }
.nav-list { display: grid; gap: 5px; }
.nav-item { border: 0; width: 100%; min-height: 44px; border-radius: 6px; padding: 0 11px; display: flex; align-items: center; gap: 11px; background: transparent; color: #b8cae2; text-align: left; cursor: pointer; }
.nav-item:hover { background: #183a68; color: white; }
.nav-item.active { background: #20508c; color: white; }
.nav-icon { width: 20px; text-align: center; font-size: 18px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 10px; color: #e8f2ff; background: #32629b; font-size: 11px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.week-progress { margin: 0 8px 18px; padding: 14px; border: 1px solid #2b4b75; border-radius: 7px; }
.week-progress-head { display: flex; justify-content: space-between; font-size: 12px; }
.week-progress-head strong { color: #83b3ff; }
.progress-track { margin: 10px 0 8px; height: 4px; background: #31547f; overflow: hidden; border-radius: 3px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .3s ease; }
.week-progress small { color: #8fa8c9; font-size: 11px; }

.main-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px 46px 56px; overflow: hidden; }
.topbar { min-height: 72px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow, .section-kicker { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(25px, 3vw, 35px); line-height: 1.25; letter-spacing: 0; font-weight: 750; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: 0; }
h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.topbar-actions, .toolbar, .week-toolbar { display: flex; align-items: center; gap: 10px; }
button { border: 0; cursor: pointer; }
.primary-button, .secondary-button { min-height: 40px; padding: 0 16px; border-radius: 6px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.primary-button { color: white; background: var(--coral); box-shadow: 0 6px 14px rgba(37, 99, 235, .2); }
.primary-button:hover { background: #1d4ed8; }
.secondary-button { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.secondary-button:hover { background: #f5f9ff; border-color: #c5d5e8; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; background: var(--surface); font-size: 20px; line-height: 1; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button.small { width: 29px; height: 29px; font-size: 16px; }
.mobile-menu { display: none; }
.text-button { padding: 4px 0; color: var(--coral); background: transparent; font-size: 13px; font-weight: 650; }
.text-button:hover { color: #1d4ed8; }

.view { display: none; }
.view.active { display: block; animation: reveal .22s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.focus-strip { padding: 17px 20px; margin-bottom: 20px; min-height: 72px; border-left: 4px solid var(--coral); background: var(--coral-soft); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.focus-strip p { margin: 0; font-size: 15px; font-weight: 650; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.stat-item { min-height: 92px; display: flex; align-items: center; gap: 13px; padding: 17px 20px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-symbol { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-size: 20px; font-weight: 700; }
.stat-symbol.coral { color: var(--coral); background: var(--coral-soft); }
.stat-symbol.green { color: var(--green); background: var(--green-soft); }
.stat-symbol.yellow { color: var(--yellow); background: var(--yellow-soft); }
.stat-symbol.dark { color: white; background: var(--dark); }
.stat-item strong, .stat-item span { display: block; }
.stat-item strong { font-size: 23px; line-height: 1; }
.stat-item div span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 20px; align-items: start; }
.panel, .list-surface { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(27,55,94,.03); }
.panel { padding: 22px; }
.panel-header, .list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.notes-panel textarea, #weekly-reflection { width: 100%; min-height: 135px; resize: vertical; border: 0; outline: 0; padding: 4px 0; color: var(--text); background: transparent; line-height: 1.8; }
.notes-panel textarea::placeholder, #weekly-reflection::placeholder { color: #9aa9bc; }
.save-status { color: var(--green); font-size: 11px; }
.empty-state { display: none; padding: 34px 18px; text-align: center; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state.compact { padding: 26px 12px; }
.empty-state .empty-symbol, .large-empty .empty-symbol { width: 42px; height: 42px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 22px; }
.empty-state strong { display: block; color: var(--text); font-size: 14px; }
.empty-state p { max-width: 310px; margin: 8px auto 14px; font-size: 12px; line-height: 1.6; }
.task-list { display: grid; }
.task-row { min-height: 64px; padding: 7px 0; display: grid; grid-template-columns: 25px minmax(0,1fr) auto auto; align-items: center; gap: 10px; border-top: 1px solid #eaf0f7; }
.task-row:first-child { border-top: 0; }
.task-checkbox { width: 19px; height: 19px; border: 1.5px solid #9babbe; border-radius: 50%; background: white; display: grid; place-items: center; color: white; font-size: 12px; }
.task-checkbox:hover { border-color: var(--green); }
.task-row.done .task-checkbox { border-color: var(--green); background: var(--green); }
.task-row.done .task-title { color: #93a1b3; text-decoration: line-through; }
.task-copy { min-width: 0; display: grid; gap: 4px; cursor: pointer; }
.task-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.task-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 400; }
.task-row.done .task-description { color: #a9b3c1; }
.task-progress-preview { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3569aa; font-size: 10px; font-weight: 500; }
.task-row.done .task-progress-preview { color: #91a1b5; }
.task-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.status-badge.pending { color: #64748b; background: #edf1f6; }
.status-badge.in_progress { color: #1d5fc1; background: #e5efff; }
.status-badge.completed { color: #08776e; background: var(--green-soft); }
.row-menu { opacity: 0; width: 29px; height: 29px; border-radius: 5px; background: transparent; color: var(--muted); }
.task-row:hover .row-menu { opacity: 1; }
.row-menu:hover { background: var(--surface-soft); color: var(--text); }
.meeting-preview-list { display: grid; gap: 10px; }
.meeting-preview-item { padding: 13px 0 13px 13px; border-left: 2px solid var(--yellow); cursor: pointer; }
.meeting-preview-item:hover { background: #f7faff; }
.meeting-preview-item strong { display: block; font-size: 13px; }
.meeting-preview-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-empty { color: var(--muted); font-size: 12px; padding: 16px 0; }
.daily-summary-panel { grid-column: 1 / -1; }
.daily-summary-panel.due { border-color: #bed4f4; box-shadow: inset 3px 0 0 var(--coral); }
.summary-status { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 4px; color: #64748b; background: #edf1f6; font-size: 10px; font-weight: 700; }
.summary-status.done { color: #08776e; background: var(--green-soft); }
.summary-status.due { color: #1d5fc1; background: #e5efff; }
.daily-summary-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 5px 0 2px; }
.daily-summary-prompt p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.summary-metrics { display: flex; gap: 8px; margin-top: 12px; }
.summary-metric { min-width: 90px; padding: 9px 11px; background: #f5f8fd; border: 1px solid #e3ebf5; }
.summary-metric strong, .summary-metric span { display: block; }
.summary-metric strong { font-size: 17px; }
.summary-metric span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.daily-summary-preview { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; }
.summary-preview-item { min-width: 0; }
.summary-preview-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.summary-preview-item p { margin: 0; color: #42536b; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-preview-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.toolbar { justify-content: space-between; margin-bottom: 18px; }
.segmented-control { display: inline-flex; padding: 3px; background: #e5edf7; border-radius: 7px; }
.segmented-control button { min-width: 72px; padding: 8px 12px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented-control button.active { background: white; color: var(--text); box-shadow: 0 1px 4px rgba(27,55,94,.12); }
.list-surface { padding: 24px; }
.muted { color: var(--muted); font-size: 12px; }
.date-group { margin-top: 26px; }
.date-group:first-child { margin-top: 0; }
.date-group-title { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.all-task-list .task-row { grid-template-columns: 25px minmax(0,1fr) 160px auto; }
.task-date { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.empty-list-message { padding: 60px 20px; color: var(--muted); text-align: center; font-size: 13px; }

.search-field { width: min(370px, 100%); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }
.meeting-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.meeting-card { min-height: 220px; padding: 20px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.meeting-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.meeting-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.meeting-card h3 { margin: 18px 0 10px; font-size: 17px; }
.meeting-card .people { color: var(--muted); font-size: 11px; }
.meeting-card .summary { margin: 17px 0; color: #526177; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meeting-card .action-count { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--coral); font-size: 11px; font-weight: 700; }
.meeting-badge { padding: 4px 7px; border-radius: 4px; color: var(--green); background: var(--green-soft); }
.large-empty { display: none; padding: 90px 20px; text-align: center; }
.large-empty.show { display: block; }
.large-empty h2 { margin-bottom: 8px; }
.large-empty p { color: var(--muted); font-size: 13px; }
.summary-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.daily-summary-card { min-height: 250px; padding: 20px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.daily-summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.daily-summary-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.daily-summary-card-head strong { font-size: 16px; }
.daily-summary-card-head span { color: var(--green); background: var(--green-soft); padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.daily-summary-card-section { margin-top: 14px; }
.daily-summary-card-section > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.daily-summary-card-section p { margin: 0; color: #4d5c70; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.daily-summary-card-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.week-toolbar { margin-bottom: 18px; }
.week-toolbar h2 { font-size: 20px; }
.push-right { margin-left: auto; }
.weekly-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
.weekly-summary { background: var(--surface); border: 1px solid var(--line); }
.summary-hero { padding: 28px; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; color: white; background: #163b70; }
.summary-hero > span, .summary-hero > small { color: #bfd1e9; font-size: 12px; }
.summary-hero strong { font-size: 38px; }
.mini-progress { grid-column: 1 / -1; height: 4px; margin-top: 14px; background: #3e6190; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .3s ease; }
.summary-block { padding: 24px 28px; border-top: 1px solid var(--line); }
.block-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.block-title .icon-button { margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.coral { background: var(--coral); }.dot.green { background: var(--green); }.dot.yellow { background: var(--yellow); }
.summary-list { display: grid; gap: 8px; }
.summary-list-item { padding: 9px 12px; background: #f5f8fc; border-left: 2px solid #c8d4e3; font-size: 12px; line-height: 1.5; }
.summary-list-item.completed { border-left-color: var(--coral); }
.summary-list-item.empty { color: var(--muted); border-left-color: var(--line); }
.progress-summary-item { display: grid; gap: 4px; border-left-color: var(--yellow); }
.progress-summary-item strong { font-size: 11px; }
.progress-summary-item span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.daily-review-summary-item { display: grid; gap: 5px; border-left-color: var(--coral); }
.daily-review-summary-item strong { font-size: 11px; }
.daily-review-summary-item span { color: #51627a; font-size: 11px; line-height: 1.6; }
.weekly-aside { display: grid; gap: 14px; }
.aside-block, .aside-quote { padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.aside-block strong, .aside-block small { display: block; }
.aside-block strong { margin: 8px 0 3px; font-size: 28px; }
.aside-block small { color: var(--muted); }
.aside-quote { background: var(--coral-soft); border-color: #d4e4ff; }
.aside-quote span { color: var(--yellow); font: 38px Georgia, serif; line-height: 1; }
.aside-quote p { margin: 3px 0 0; color: #345171; font-size: 13px; line-height: 1.7; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15,35,64,.55); backdrop-filter: blur(3px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(490px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: var(--surface); box-shadow: 0 24px 80px rgba(15,35,64,.25); }
.modal.task-modal-panel { width: min(640px, 100%); }
.modal.wide { width: min(650px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.modal-header .icon-button { border: 0; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #53627a; font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #d4deeb; border-radius: 5px; outline: 0; padding: 10px 11px; color: var(--text); background: white; }
input:focus, select:focus, textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
form textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.summary-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.snapshot-item { padding: 10px 12px; background: #f5f8fd; border: 1px solid #e0e9f5; }
.snapshot-item strong, .snapshot-item span { display: block; }
.snapshot-item strong { font-size: 18px; }
.snapshot-item span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.task-progress-section { display: grid; gap: 14px; margin-top: 4px; padding-top: 19px; border-top: 1px solid var(--line); }
.progress-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.progress-section-head .section-kicker { margin-bottom: 3px; }
.progress-section-head > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.progress-composer { padding: 14px; background: #f5f8fd; border: 1px solid #e0e9f5; }
.progress-input-row { display: grid; grid-template-columns: 135px minmax(0,1fr); gap: 12px; align-items: start; }
.progress-content-label textarea { min-height: 76px; }
.progress-composer > button { display: block; margin: 10px 0 0 auto; }
.progress-closed, .progress-empty { padding: 13px; color: var(--muted); background: #f5f8fd; font-size: 11px; line-height: 1.6; }
.task-progress-list { display: grid; gap: 8px; max-height: 230px; overflow: auto; }
.progress-entry { position: relative; padding: 12px 36px 12px 14px; border-left: 2px solid var(--coral); background: #f8faff; }
.progress-entry-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.progress-entry-meta strong { font-size: 11px; }
.progress-entry-meta span { color: var(--muted); font-size: 10px; }
.progress-entry p { margin: 0; color: #42536b; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.progress-delete { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 4px; color: var(--muted); background: transparent; font-size: 16px; }
.progress-delete:hover { color: #c24152; background: #f8e9ec; }
.modal-actions { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.action-spacer { flex: 1; }
.danger-text { color: #c24152; background: transparent; font-size: 12px; }
.hidden { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 5px; color: white; background: #163b70; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .main-content { padding: 28px 26px 48px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .meeting-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .summary-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 250px; transition: transform .2s ease; box-shadow: 8px 0 30px rgba(15,35,64,.2); }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 20px 16px 40px; }
  .topbar { align-items: center; margin-bottom: 20px; }
  h1 { font-size: 23px; }
  .topbar-actions .secondary-button { display: none; }
  .mobile-menu { display: grid; order: -1; }
  .primary-button { padding: 0 13px; }
  .focus-strip { padding: 15px; }
  .focus-strip .section-kicker { display: none; }
  .focus-strip p { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-item { min-height: 78px; padding: 12px; }
  .stat-symbol { width: 32px; height: 32px; }
  .stat-item strong { font-size: 19px; }
  .dashboard-grid { gap: 14px; }
  .panel { padding: 18px 16px; }
  .task-row { grid-template-columns: 25px minmax(0,1fr) auto; }
  .task-row .task-meta { grid-column: 2; margin-top: -8px; }
  .row-menu { opacity: 1; grid-column: 3; grid-row: 1 / 3; }
  .toolbar { align-items: stretch; }
  .segmented-control { overflow-x: auto; }
  .meeting-grid { grid-template-columns: 1fr; }
  .daily-summary-prompt { align-items: stretch; flex-direction: column; }
  .daily-summary-prompt .primary-button { align-self: flex-start; }
  .daily-summary-preview { grid-template-columns: 1fr; }
  .summary-preview-actions { grid-column: auto; justify-content: flex-start; }
  .summary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .summary-metric { min-width: 0; }
  .summary-snapshot { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .search-field { width: 100%; }
  #meetings-view .toolbar { flex-direction: column; }
  .weekly-layout { grid-template-columns: 1fr; }
  .weekly-aside { grid-template-columns: 1fr 1fr; }
  .aside-quote { grid-column: 1 / -1; }
  .week-toolbar h2 { font-size: 16px; }
  .week-toolbar .secondary-button { padding: 0 10px; }
  .summary-block { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .progress-input-row { grid-template-columns: 1fr; }
  .progress-content-label textarea { min-height: 88px; }
  .all-task-list .task-row { grid-template-columns: 25px minmax(0,1fr) auto; }
  .all-task-list .task-date { grid-column: 2; text-align: left; margin-top: -7px; }
  .all-task-list .task-date { justify-content: flex-start; }
  .all-task-list .row-menu { grid-column: 3; }
}

@media (max-width: 430px) {
  .topbar-actions { gap: 6px; }
  .topbar-actions .primary-button { width: 40px; padding: 0; font-size: 0; }
  .topbar-actions .primary-button span { font-size: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { gap: 8px; }
  .stat-item div span { font-size: 10px; }
  .panel-header { margin-bottom: 14px; }
  .weekly-aside { grid-template-columns: 1fr; }
  .aside-quote { grid-column: auto; }
}
