/* Klar — original, dependency-free interface tokens and components. */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --sidebar: #f0f1eb;
  --text: #23352d;
  --muted: #526256;
  --accent: #285b43;
  --accent-hover: #1d4934;
  --accent-soft: #dfe9dc;
  --border: #dce1d8;
  --input-border: #748578;
  --danger: #a13c35;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button { color: inherit; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.sidebar { padding: 32px 20px 24px; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 40px; font-size: 27px; font-weight: 750; letter-spacing: -1px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 24px; font-weight: 500; }
.brand-subtitle { display: block; color: var(--muted); font-size: 12px; letter-spacing: .02em; font-weight: 400; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.folder { margin-bottom: 18px; }
.folder-header { display: flex; align-items: center; gap: 4px; min-width: 0; padding-left: 8px; }
.folder-name { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 650; font-size: 14px; }
.folder-actions { display: flex; gap: 0; }
.list-nav { display: grid; gap: 4px; margin-top: 4px; }
.list-link { border: 0; text-decoration: none; background: transparent; min-height: 44px; padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border-radius: 9px; font-size: 14px; overflow-wrap: anywhere; }
.list-link:hover { background: #e5e9df; }
.list-link.active, .list-link[aria-current="page"] { background: var(--accent-soft); color: #214b35; font-weight: 650; }
.list-link > span:first-child { min-width: 0; flex: 1; }
.list-count { margin-left: auto; min-width: 24px; padding: 1px 6px; border-radius: 6px; background: #ffffff80; color: #526256; text-align: center; font-size: 12px; }
.main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 52px clamp(24px, 6vw, 88px) 120px; min-width: 0; }
.main-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.list-title { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -1.4px; overflow-wrap: anywhere; }
.list-meta { margin: 0; color: var(--muted); font-size: 14px; }
.task-composer { display: flex; align-items: stretch; gap: 10px; margin: 0 0 32px; padding: 8px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px #23352d05; }
.task-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #285b4320; }
.task-input { width: 100%; min-width: 0; min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--text); padding: 8px 10px; }
.task-input::placeholder { color: var(--muted); opacity: 1; }
.task-composer .task-input:focus-visible { outline-offset: 0; }
.section-label { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0 8px 8px; border-bottom: 1px solid #e7e9e2; }
.task-row:last-child { border-bottom-color: transparent; }
.task-row:hover { background: #f1f4ed; border-radius: 9px; }
.task-check { flex: 0 0 22px; width: 22px; height: 22px; margin: 11px; accent-color: var(--accent); cursor: pointer; }
.task-text { flex: 1; min-width: 0; min-height: 44px; padding: 10px 0; background: transparent; border: 0; text-align: left; color: var(--text); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-text:hover { color: var(--accent); }
.task-row.completed .task-text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.task-delete, .task-edit { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 22px; }
.task-delete:hover { background: #f7e7e3; color: var(--danger); }
.task-edit { font-size: 16px; }
.task-edit:hover { background: var(--accent-soft); color: var(--accent); }
.completed-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid #cbd3c8; }
.completed-section summary { min-height: 44px; width: fit-content; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; padding: 10px 4px; }
.completed-section summary::marker { color: var(--accent); }
.completed-section .task-list { margin-top: 8px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); margin: 16px 0; }
.empty-state h2, .empty-state h3 { color: var(--text); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.empty-state p { margin: 0 0 18px; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.button:hover { background: #eef2e9; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; }
.icon-button:hover { background: #e0e6da; color: var(--text); }
.danger { color: var(--danger); }
.button.danger:hover, .icon-button.danger:hover { background: #f7e7e3; color: #872d27; }
.toast { position: fixed; z-index: 20; bottom: 24px; left: calc(50% + 140px); transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: max-content; max-width: calc(100vw - 40px); min-height: 64px; background: #233c2e; color: #fff; border-radius: var(--radius); padding: 10px 12px 10px 20px; box-shadow: 0 8px 32px #14251a24; font-size: 14px; }
.toast-actions { display: flex; align-items: center; gap: 4px; }
.toast button { color: #fff; border-color: #91a999; background: transparent; }
.toast button:hover { background: #3a5745; }
.toast button:focus-visible { outline-color: #fff; }
.storage-warning { margin: 0 0 24px; padding: 16px; border: 1px solid #c49b4f; border-radius: 9px; background: #fff4d9; color: #664a13; font-size: 14px; overflow-wrap: anywhere; }
dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid var(--border); padding: 28px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 20px 80px #15281b26; }
dialog::backdrop { background: #14251a70; }
dialog h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.25; letter-spacing: -.5px; }
.dialog-form { display: grid; gap: 12px; }
.dialog-form label { font-size: 14px; font-weight: 600; }
.dialog-form input, .dialog-form textarea { width: 100%; border: 1px solid var(--input-border); border-radius: 8px; padding: 12px; min-height: 48px; color: var(--text); background: var(--surface); }
.dialog-form textarea { resize: vertical; min-height: 120px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mobile-toggle { display: none; }
@media (min-width: 901px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
@media (max-width: 1100px) { .main { padding-left: 32px; padding-right: 32px; } .main-header { flex-wrap: wrap; } }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { padding: 28px 14px; }
  .main { padding: 36px 24px 110px; }
  .toast { left: calc(50% + 120px); }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .brand { margin: 0; font-size: 24px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 21px; }
  .brand-subtitle { font-size: 11px; }
  .mobile-toggle { display: inline-grid; margin-left: auto; }
  .sidebar > .mobile-toggle { position: absolute; right: 16px; top: 16px; }
  .sidebar-heading { margin-top: 20px; }
  .sidebar[data-collapsed="true"] .sidebar-heading, .sidebar[data-collapsed="true"] .folder, .sidebar[data-collapsed="true"] .folder-nav, .sidebar[data-collapsed="true"] #folders, .sidebar[data-collapsed="true"] .sidebar-footer { display: none; }
  .main { padding: 30px 20px 120px; }
  .main-header { margin-bottom: 24px; gap: 12px; }
  .eyebrow { margin-bottom: 8px; }
  .list-title { font-size: 32px; letter-spacing: -1px; }
  .header-actions { width: 100%; }
  .task-composer { gap: 4px; margin-bottom: 24px; padding: 6px; }
  .task-composer .button { padding-left: 12px; padding-right: 12px; }
  .task-row { gap: 4px; padding-left: 0; }
  .task-check { margin-left: 8px; margin-right: 8px; }
  .toast { left: 20px; right: 20px; bottom: 16px; transform: none; width: auto; max-width: none; }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: no-preference) { button, a { transition: background-color 120ms ease, color 120ms ease; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.sidebar-footer { padding: 24px 8px 0; border-top: 1px solid var(--border); margin-top: 24px; color: var(--muted); font-size: 12px; }
.folder-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.folder-list { display: grid; gap: 4px; margin-top: 4px; }
.folder-empty { margin: 4px 12px; color: var(--muted); font-size: 13px; }
.main-content { min-width: 0; }
.progress-track { height: 5px; background: #e4e9df; border-radius: 8px; overflow: hidden; margin-top: 20px; max-width: 180px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; }
.task-hint { font-size: 12px; color: var(--muted); margin: -20px 0 28px 4px; }
.empty-icon { display: block; font-size: 32px; color: var(--accent); margin-bottom: 12px; }
.toast-message { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dialog-description { margin: -8px 0 18px; color: var(--muted); font-size: 14px; }

/* Final keyboard and destructive-action contrast fixes. */
.button-primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button-primary.danger:hover { background: #872d27; border-color: #872d27; color: #fff; }
.skip-link:focus { position: fixed; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal; padding: 12px 20px; background: var(--surface); color: var(--accent); border-radius: 8px; }

/* Klar workspace: original surfaces, shared with the existing task primitives. */
:root {
  --sage: #e8efe4;
  --sand: #f6eedb;
  --rose: #f5e6e3;
  --sky: #e5eff4;
  --lavender: #eee8f5;
  --warning-bg: #fff4d9;
  --warning-text: #664a13;
  --danger-bg: #f7e7e3;
  --radius-card: 16px;
  --shadow-card: 0 2px 6px #23352d06;
  --shadow-hover: 0 6px 20px #23352d0d;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --control-height: 44px;
}
select { font: inherit; color: inherit; }
select:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.main { max-width: 1440px; padding: 40px clamp(24px, 4vw, 64px) 120px; }
.sidebar .brand { margin-bottom: var(--space-8); }
.workspace-nav { display: grid; gap: var(--space-1); margin-bottom: var(--space-6); }
.nav-link { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--control-height); border: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: transparent; text-align: left; text-decoration: none; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.nav-link:hover { background: var(--accent-soft); }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.workspace-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.workspace-toolbar label { color: var(--muted); font-size: 14px; }
#global-search { flex: 1; width: 100%; min-width: 0; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--input-border); border-radius: var(--radius); color: var(--text); background: var(--surface); }
#global-search::placeholder { color: var(--muted); opacity: 1; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3); margin-bottom: var(--space-8); }
.filter-bar label { display: grid; gap: var(--space-1); font-size: 12px; color: var(--muted); font-weight: 600; min-width: 0; }
.filter-bar select, #view-mode { min-height: var(--control-height); max-width: 100%; border: 1px solid var(--input-border); border-radius: var(--radius); padding: var(--space-2) var(--space-3); background: var(--surface); color: var(--text); font-size: 14px; }
.overview-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.overview-header h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.overview-header p { margin: var(--space-2) 0 0; color: var(--muted); font-size: 14px; }
.composer-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; gap: var(--space-4); }
.cards-list { display: grid; gap: var(--space-3); }
.item-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.item-card:hover, .item-card:focus-within { border-color: var(--input-border); box-shadow: var(--shadow-hover); }
.item-card[data-color="sage"] { background: var(--sage); }
.item-card[data-color="sand"] { background: var(--sand); }
.item-card[data-color="rose"] { background: var(--rose); }
.item-card[data-color="sky"] { background: var(--sky); }
.item-card[data-color="lavender"] { background: var(--lavender); }
.card-open { display: block; width: 100%; min-height: 120px; padding: var(--space-6); background: transparent; border: 0; text-align: left; color: var(--text); }
.card-open:focus-visible { outline-offset: -5px; border-radius: var(--radius-card); }
.card-title { display: block; margin: 0 0 var(--space-3); font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-body, .card-preview { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-preview { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-preview li { white-space: normal; }
.card-open .eyebrow { display: block; }
.card-body { padding: 0 var(--space-4) var(--space-4); }
.card-preview-list { list-style: none; margin: 0; padding: 0; }
.preview-task { padding-block: var(--space-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-task.completed { text-decoration: line-through; }
.item-card > .metadata-bar { margin: 0; padding: 0 var(--space-4) var(--space-4); }
.item-card > .card-actions { padding: var(--space-2) var(--space-4) var(--space-4); }
.result-count { color: var(--muted); font-size: 14px; }
#list-content[data-color] { padding: var(--space-4); border-radius: var(--radius-card); }
#list-content[data-color="sage"] { background: var(--sage); }
#list-content[data-color="sand"] { background: var(--sand); }
#list-content[data-color="rose"] { background: var(--rose); }
#list-content[data-color="sky"] { background: var(--sky); }
#list-content[data-color="lavender"] { background: var(--lavender); }
.card-footer { padding: 0 var(--space-4) var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); width: 100%; padding-top: var(--space-2); }
.card-actions .button { white-space: normal; padding: var(--space-2) var(--space-3); background: transparent; border-color: var(--input-border); }
.card-actions .button:hover { background: var(--surface); }
.label-chip, .pinned-badge, .reminder-badge { display: inline-flex; align-items: center; max-width: 100%; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.pinned-badge { color: var(--accent); font-weight: 650; }
.reminder-badge.due { background: var(--warning-bg); color: var(--warning-text); font-weight: 650; }
.metadata-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 var(--space-6); color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.backup-actions { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.backup-actions .button { white-space: normal; }
#editor { width: min(620px, calc(100vw - 32px)); }
#editor-fields { display: grid; gap: var(--space-3); min-width: 0; }
#editor-fields label { display: grid; gap: var(--space-2); }
#editor-fields input:not([type="checkbox"]), #editor-fields textarea, #editor-fields select { width: 100%; min-width: 0; min-height: 48px; padding: var(--space-3); border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
#editor-fields input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin: var(--space-2); accent-color: var(--accent); }
#editor-fields textarea { min-height: 160px; resize: vertical; }
.dialog-error { border-left: 3px solid var(--danger); padding: var(--space-3); margin: var(--space-2) 0; background: var(--danger-bg); color: var(--danger); font-size: 14px; overflow-wrap: anywhere; }
[aria-busy="true"] { cursor: progress; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger) !important; }
@media (max-width: 1000px) and (min-width: 681px) { .app-shell { grid-template-columns: 230px minmax(0, 1fr); } .sidebar { padding-inline: 12px; } .main { padding-inline: 24px; } .toast { left: calc(50% + 115px); } }
@media (max-width: 680px) {
  .sidebar { position: relative; padding: var(--space-4); }
  .sidebar .brand { margin: 0; padding-right: 48px; }
  .sidebar[data-collapsed="true"] #sidebar-content { display: none; }
  #sidebar-content { margin-top: var(--space-6); }
  .main { padding: var(--space-6) var(--space-4) 120px; }
  .workspace-toolbar { gap: var(--space-2); }
  .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
  .filter-bar select { width: 100%; }
  .overview-header { align-items: flex-start; }
  .composer-actions { width: 100%; }
  .composer-actions .button { flex: 1; white-space: normal; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); }
  .card-open { padding: var(--space-4); }
  .dialog-actions .button { flex: 1; white-space: normal; }
  #editor { padding: var(--space-6); }
  .task-row { flex-wrap: wrap; }
  .task-text { flex-basis: calc(100% - 64px); }
  .task-row > .task-edit { margin-left: auto; }
}
@media (forced-colors: active) { .item-card, .label-chip, .pinned-badge, .reminder-badge { border: 1px solid CanvasText; } .nav-link.active { outline: 2px solid Highlight; } }

/* Keep-informed workspace refresh: compact navigation, centered capture, and
   a denser note wall while retaining Klar's own evergreen color identity. */
:root {
  --bg: #fff;
  --surface: #fff;
  --sidebar: #fff;
  --border: #dadce0;
  --input-border: #c4c8cc;
  --radius-card: 10px;
  --shadow-card: 0 1px 2px #20212414;
  --shadow-hover: 0 2px 8px #20212424;
}
.app-shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { padding: 22px 12px 24px; }
.sidebar .brand { margin: 0 12px 24px; gap: 10px; font-size: 23px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.workspace-nav { gap: 2px; margin-bottom: 20px; }
.nav-link { min-height: 48px; padding: 10px 18px; border-radius: 0 28px 28px 0; }
.nav-link.active, .nav-link[aria-current="page"] { background: #e7f0e9; color: var(--accent); }
.nav-link:hover { background: #f1f4f2; }
.main { max-width: none; padding: 16px clamp(20px, 3vw, 48px) 96px; }
.workspace-toolbar { display: grid; grid-template-columns: minmax(260px, 680px); justify-content: center; gap: 10px; margin: 0 0 26px; }
#global-search { min-height: 52px; padding-inline: 24px; border: 0; border-radius: 12px; background: #f1f3f4; box-shadow: 0 1px 3px #2021241a; }
#global-search:focus { background: var(--surface); box-shadow: 0 2px 8px #20212426; }
.filter-bar { justify-content: center; gap: 8px; margin: 0; }
.filter-bar label { display: flex; align-items: center; gap: 6px; }
.filter-bar select, #view-mode { min-height: 36px; border-color: transparent; border-radius: 8px; background: #f6f7f7; padding: 6px 10px; }
.overview-header { margin: 22px 0 10px; gap: 12px 24px; }
.overview-header h1 { font-size: clamp(24px, 2vw, 32px); font-weight: 600; letter-spacing: -.025em; }
.overview-header p { font-size: 13px; }
.composer-actions { margin-left: auto; }
.composer-actions .button { min-height: 40px; padding: 8px 14px; border-radius: 20px; }
.result-count { margin: 6px 0 12px; font-size: 12px; }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.item-card { border-radius: 10px; box-shadow: none; }
.item-card:hover, .item-card:focus-within { border-color: #b9c0bb; box-shadow: 0 2px 7px #20212420; }
.item-card[data-color="sage"] { background: #eaf2eb; }
.item-card[data-color="sand"] { background: #f8f1e3; }
.item-card[data-color="rose"] { background: #f7e9e6; }
.item-card[data-color="sky"] { background: #e8f0f5; }
.item-card[data-color="lavender"] { background: #f0ebf6; }
.card-open { min-height: 0; padding: 16px 16px 8px; }
.card-open .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .08em; }
.card-title { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.card-body, .card-preview { font-size: 14px; line-height: 1.5; }
.card-preview { -webkit-line-clamp: 5; }
.card-body { padding: 0 16px 10px; }
.item-card > .metadata-bar { padding: 0 12px 8px; margin: 4px 0 0; }
.item-card > .card-actions { padding: 4px 8px 8px; }
.card-actions { gap: 2px; padding-top: 4px; }
.card-actions .button { min-height: 34px; padding: 6px 9px; border-color: transparent; border-radius: 18px; font-size: 12px; }
.card-actions .button:hover { background: #ffffffa8; }
.task-composer { max-width: 600px; margin: 0 auto 28px; padding: 4px 8px; border-color: transparent; border-radius: 10px; box-shadow: 0 1px 5px #20212430; }
.task-composer:focus-within { border-color: transparent; box-shadow: 0 2px 8px #20212435; }
.task-row { min-height: 48px; gap: 8px; padding-inline: 8px; border-bottom-color: #e8eaed; }
.task-check { flex-basis: 20px; width: 20px; height: 20px; margin: 8px; }
.task-text { min-height: 40px; padding: 8px 0; }
.completed-section { border-top-color: #dadce0; }
@media (min-width: 1440px) { .cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 1000px) and (min-width: 681px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main { padding-inline: 24px; }
}
@media (max-width: 680px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 12px 16px; }
  .main { padding: 16px 16px 96px; }
  .workspace-toolbar { grid-template-columns: minmax(0, 1fr); }
  .filter-bar { justify-content: stretch; }
  .filter-bar label { display: grid; }
  .overview-header { margin-top: 18px; }
  .composer-actions { margin-left: 0; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card-open { padding: 14px 14px 6px; }
}
