:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-alt: #f2f4ef;
  --text: #23322b;
  --muted: #626d66;
  --line: #dfe5dc;
  --primary: #236448;
  --primary-hover: #194e37;
  --primary-soft: #e7f0e7;
  --sidebar: #edf1e9;
  --side-text: #46564b;
  --gold: #8a651c;
  --gold-bright: #e7c775;
  --gold-soft: #f6efd9;
  --danger: #b13935;
  --danger-soft: #fff0ed;
  --green: #236448;
  --shadow: 0 2px 3px #223e2c03, 0 8px 24px #223e2c05;
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -.05em; font-weight: 700; margin-bottom: .6rem; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; margin-bottom: 1.15rem; }
h3 { font-size: 1rem; margin-bottom: .75rem; }
p { margin-bottom: 1rem; }
small { font-size: .8rem; }
strong { font-weight: 600; }
.muted, .help { color: var(--muted); }
.help { font-size: .82rem; line-height: 1.6; margin: .35rem 0 .65rem; }
.eyebrow { font-size: .75rem; letter-spacing: .045em; font-weight: 550; color: var(--gold); margin-bottom: .7rem; }
.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; }
.skip-link { position: fixed; top: -5rem; z-index: 100; background: var(--surface); padding: 1rem; }
.skip-link:focus { top: 0; }
.ui-icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--sidebar); background: color-mix(in srgb, var(--sidebar) 88%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-right: 1px solid var(--line); color: var(--side-text); display: flex; flex-direction: column; padding: 32px 15px 18px; z-index: 20; }
.brand { color: var(--text); display: flex; align-items: center; gap: 11px; padding: 0 12px 35px; font-size: .9rem; letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; background: linear-gradient(145deg, #347f59, #17462f); color: #efce78; border-radius: 12px; flex-shrink: 0; width: 37px; height: 37px; box-shadow: inset 0 1px 0 #ffffff30, 0 4px 9px #1d4c3020; font-size: 1.3rem; }
.brand-mark .ui-icon { width: 27px; height: 27px; stroke-width: 2.5; }
.brand strong { font-weight: 750; }
.sidebar nav { overflow-y: auto; scrollbar-width: thin; }
.nav-item { display: flex; gap: 11px; align-items: center; min-height: 43px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--side-text); font-size: .86rem; margin: 3px 0; }
.nav-item > .ui-icon { color: var(--primary); }
.nav-item:hover { background: var(--primary-soft); text-decoration: none; color: var(--text); }
.nav-item.selected { background: var(--surface); border-color: var(--line); box-shadow: 0 2px 5px #243b2405; color: var(--primary); font-weight: 650; }
.nav-item.selected > .ui-icon { color: var(--primary); }
.nav-count { margin-left: auto; font-size: .71rem; font-variant-numeric: tabular-nums; line-height: 1.7; min-width: 23px; text-align: center; padding: 0 5px; color: var(--muted); border-radius: 6px; }
.nav-item.selected .nav-count { background: var(--gold-soft); color: var(--gold); }
.nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-label { font-size: .72rem; font-weight: 600; padding: 28px 12px 9px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.nav-label a { color: var(--muted); font-size: 1.1rem; line-height: 1; }
.subdued { color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 16px; padding: 19px 8px 0; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--line); border-radius: 50%; font-size: .81rem; font-weight: 600; color: var(--gold); }
.profile strong { display: block; font-size: .8rem; color: var(--text); }
.profile small { font-size: .69rem; color: var(--muted); }
.profile form { margin-left: auto; }
.logout { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.logout:hover { color: var(--primary); background: var(--primary-soft); }
.workspace { margin-left: 236px; padding: 0 34px 26px; min-width: 0; }
.topline { min-height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .76rem; color: var(--muted); }
.local-badge { display: flex; gap: 6px; align-items: center; }
.local-badge .ui-icon { width: 13px; height: 13px; color: var(--primary); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0 28px; }
.page-header p:last-child { margin-bottom: 0; font-size: .85rem; }
.page-header .eyebrow { font-size: .76rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; padding: 9px 17px; border-radius: 10px; border: 1px solid transparent; font-weight: 570; font-size: .85rem; white-space: nowrap; line-height: 1.4; }
.button:hover { text-decoration: none; }
.button .ui-icon { width: 17px; height: 17px; }
.primary { background: var(--primary); color: white; border-color: #0000000a; box-shadow: inset 0 1px 0 #ffffff13, 0 2px 5px #1b533313; }
.primary:hover { background: var(--primary-hover); }
.primary .ui-icon { color: #efce78; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: 0 1px 2px #17302205; }
.secondary:hover { background: var(--surface-alt); border-color: var(--muted); }
.small { min-height: 33px; font-size: .79rem; padding: 6px 11px; border-radius: 8px; }
.danger { background: var(--danger); color: #fff; }
.danger-text { color: var(--danger) !important; }
.full { width: 100%; }
.actions { display: flex; gap: 12px; align-items: center; }
.icon-button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 6px 9px; font-size: 1rem; }
.icon-button:hover { background: var(--surface-alt); color: var(--text); }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; position: relative; }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 240px; max-width: 440px; flex: 1; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px #19342204; border-radius: 11px; padding: 0 13px; height: 41px; color: var(--muted); }
.search-field .ui-icon { width: 17px; height: 17px; }
.search-field input[type=search] { border: 0; background: transparent; padding: 8px 0; width: 100%; font-size: .84rem; min-height: 0; border-radius: 0; box-shadow: none; }
.search-field input:focus-visible { outline: none; }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.filter-details { display: contents; }
.filter-details summary { list-style: none; display: flex; gap: 7px; align-items: center; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 41px; padding: 8px 13px; font-size: .81rem; }
summary::-webkit-details-marker { display: none; }
.filter-details summary:hover, .filter-details[open] summary { background: var(--primary-soft); border-color: var(--line); color: var(--primary); }
.filter-indicator { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.has-filters .filter-indicator { display: block; }
.filter-fields { order: 9; width: 100%; display: flex; gap: 14px; flex-wrap: wrap; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.filter-details:not([open]) .filter-fields { display: none; }
.filter-fields label { font-size: .75rem; color: var(--muted); flex: 1; min-width: 130px; max-width: 230px; margin-bottom: 0; }
.filter-fields select, .filter-fields input { font-size: .8rem; margin-top: 6px; min-height: 35px; }
.clear-filter { font-size: .79rem; padding: 8px 6px; color: var(--muted); }
.search-status { font-size: .74rem; color: var(--muted); margin-left: auto; }
.search-status:empty { display: none; }
.search-status.search-error { color: var(--danger); flex-basis: 100%; }
.is-loading .search-field .ui-icon { color: var(--gold); }
[data-task-results][aria-busy=true] { opacity: .55; }
.filter-note { font-size: .75rem; color: var(--muted); margin-top: -9px; margin-bottom: 20px; }
.search-empty { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 22px; }
.search-empty h2 { font-size: 1rem; margin-bottom: 5px; }
.search-empty p { margin: 0; color: var(--muted); font-size: .82rem; }
.board { display: flex; align-items: stretch; gap: 18px; overflow-x: auto; padding: 0 0 23px; min-height: 470px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.column { flex: 1 0 270px; max-width: 360px; min-width: 270px; --category: #698b71; --category-soft: var(--primary-soft); display: flex; flex-direction: column; }
.color-red { --category: #ab812b; --category-soft: var(--gold-soft); }
.color-amber { --category: #a6944e; --category-soft: var(--gold-soft); }
.color-blue { --category: #3d7854; --category-soft: var(--primary-soft); }
.color-violet { --category: #77977b; --category-soft: var(--primary-soft); }
.column-header { display: flex; align-items: center; gap: 9px; min-height: 68px; padding: 13px 5px 19px; }
.column-header h2 { font-size: .75rem; letter-spacing: .02em; line-height: 1.5; font-weight: 650; flex: 1; margin: 0; }
.category-dot { width: 8px; height: 8px; flex-shrink: 0; background: var(--category); box-shadow: 0 0 0 4px var(--category-soft); border-radius: 50%; }
.column-count { display: grid; place-items: center; background: var(--category-soft); border-radius: 7px; min-width: 24px; height: 24px; font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--text); }
.card-list { min-height: 80px; }
.task-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); margin-bottom: 13px; padding: 19px 17px 12px; box-shadow: var(--shadow); position: relative; }
.task-card:hover { border-color: #b4c8b8; box-shadow: 0 4px 18px #21442b10; }
.task-card[draggable=true] { cursor: grab; user-select: none; touch-action: pan-y; }
.task-card.dragging { opacity: .4; }
.column.drag-over .card-list { outline: 2px dashed var(--primary); outline-offset: 5px; border-radius: var(--radius); }
.card-title-row { display: flex; align-items: flex-start; gap: 11px; }
.card-title-row form { height: 23px; flex-shrink: 0; margin-top: 2px; }
.check-button { width: 19px; height: 19px; border: 1.5px solid #abb8ad; border-radius: 50%; background: transparent; display: grid; place-items: center; font-size: .73rem; padding: 0; color: var(--green); }
.check-button:hover { background: var(--primary-soft); border-color: var(--primary); }
.checked { border-color: var(--green); background: var(--primary-soft); }
.task-title { color: var(--text); font-size: .92rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.is-complete .task-title { text-decoration: line-through; color: var(--muted); }
.card-notes { font-size: .79rem; line-height: 1.6; color: var(--muted); margin: 9px 0 0 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 19px 0 14px; }
.folder-tag { font-size: .68rem; line-height: 1.5; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-icon { display: inline-flex; color: var(--muted); }
.meta-icon .ui-icon { width: 14px; height: 14px; }
.card-bottom { border-top: 1px solid var(--line); padding-top: 10px; display: flex; align-items: center; gap: 5px; justify-content: space-between; }
.due { font-size: .73rem; color: var(--muted); line-height: 1.5; }
.overdue { color: var(--danger); }
.today { color: var(--gold); background: var(--gold-soft); border-radius: 5px; padding: 2px 6px; }
.card-menu { position: relative; }
.card-menu summary { cursor: pointer; list-style: none; font-size: .75rem; letter-spacing: 1px; color: var(--muted); padding: 1px 4px; border-radius: 4px; }
.card-menu[open] { z-index: 5; }
.card-menu > div { position: absolute; right: 0; top: 25px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px #152c2220; border-radius: 12px; padding: 5px; }
.card-menu a, .card-menu button { display: block; text-align: left; padding: 8px 11px; background: none; border: 0; font-size: .8rem; width: 100%; color: var(--text); border-radius: 7px; }
.card-menu a:hover, .card-menu button:hover { background: var(--primary-soft); text-decoration: none; }
.column-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--radius); min-height: 166px; color: var(--muted); font-size: .81rem; }
.column-empty > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--category-soft); font-size: 1.35rem; color: var(--category); margin-bottom: 12px; }
.column-empty p { margin-bottom: 5px; }
.column-empty a { font-size: .77rem; }
.column-add { display: block; text-align: center; font-size: .79rem; color: var(--muted); padding: 10px; border-radius: 10px; }
.column-add:hover { background: var(--primary-soft); text-decoration: none; color: var(--primary); }
.add-category { align-self: flex-start; white-space: nowrap; padding: 10px 12px; font-size: .76rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; min-width: 120px; margin-top: 8px; }
.board-foot { display: flex; justify-content: space-between; gap: 15px; font-size: .72rem; color: var(--muted); padding: 20px 0; border-top: 1px solid var(--line); }
.content-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); box-shadow: var(--shadow); }
.narrow { max-width: 690px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field label, label { display: block; font-size: .85rem; font-weight: 550; margin-bottom: 6px; }
input:not([type=checkbox]), select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); padding: 9px 11px; min-height: 40px; }
input:disabled, select:disabled { color: var(--muted); background: var(--surface-alt); }
textarea { resize: vertical; line-height: 1.55; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { padding-right: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--line); }
.form-section .field + .field { margin-top: 14px; }
.form-section h3 { margin-bottom: 15px; }
#id_weekdays { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
#id_weekdays label { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 400; }
.reminder-preview { margin-top: 12px; min-height: 90px; font-size: .8rem; background: var(--gold-soft); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.reminder-preview p { margin: 0 0 5px; }
.reminder-preview p:last-child { margin-bottom: 0; }
.errorlist { list-style: none; margin: 4px 0; padding: 8px 10px; color: var(--danger); background: var(--danger-soft); border-radius: 8px; font-size: .83rem; }
.message { padding: 12px 16px; border-radius: 11px; margin: 15px 0 0; font-size: .85rem; background: var(--primary-soft); border: 1px solid var(--line); }
.message.error { background: var(--danger-soft); color: var(--danger); }
.message.success { background: var(--primary-soft); color: var(--primary); }
.message a { font-weight: 600; }
dialog { padding: 0; max-width: min(650px,calc(100vw - 32px)); width: 650px; max-height: 90vh; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 22px; box-shadow: 0 28px 90px #15312330; }
dialog::backdrop { background: #1d2e233d; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog-content { padding: 28px 30px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-header h2 { font-size: 1.6rem; margin-bottom: 0; }
.dialog-header .icon-button { font-size: 1.5rem; line-height: 1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding: 18px 0 10px; position: sticky; bottom: 0; background: var(--surface); z-index: 2; }
.series-controls { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; font-size: .8rem; }
.series-controls form { display: flex; align-items: center; gap: 20px; }
.delete-link { display: inline-block; margin-top: 20px; color: var(--danger); font-size: .8rem; }
.editor-page { max-width: 650px; margin: 30px auto; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 30px; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 15px; }
.section-heading h2 { margin: 0; }
.settings-row { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; font-size: .79rem; }
.settings-row > form { display: flex; flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-main small, .row-main p { display: block; color: var(--muted); font-size: .76rem; margin: 4px 0 0; }
.path { display: block; overflow-wrap: anywhere; background: var(--surface-alt); padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .76rem; margin: 9px 0; }
.version { font-size: .8rem; color: var(--muted); }
.content-panel details > summary { cursor: pointer; font-weight: 550; font-size: .875rem; }
.content-panel details[open] > summary { margin-bottom: 16px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.completed-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.completed-row:last-child { border-bottom: 0; }
.completed-row time { font-size: .76rem; color: var(--muted); }
.completed-row a { color: var(--text); font-weight: 570; }
.completed-mark { color: var(--green); }
.empty-state { text-align: center; padding: 70px 25px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { max-width: 380px; margin: 0 auto 20px; color: var(--muted); font-size: .9rem; }
.empty-symbol { font-size: 2rem; background: var(--gold-soft); color: var(--gold); width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 25px; }
.compact { padding: 25px 10px; }
.pagination { display: flex; justify-content: center; gap: 24px; margin: 22px 0; font-size: .85rem; }
.planning-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-bottom: 24px; align-items: start; }
.plan-review-item { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; font-size: .87rem; }
.plan-state { font-size: 1.2rem; color: var(--muted); }
.plan-state.done { color: var(--green); }
.attention-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .84rem; }
.attention-item span { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.plan-choices { max-height: 550px; overflow: auto; }
.plan-choice { display: flex; align-items: flex-start; gap: 11px; padding: 14px 8px; border-bottom: 1px solid var(--line); margin: 0; cursor: pointer; border-radius: 8px; }
.plan-choice:hover { background: var(--surface-alt); }
.plan-choice:has(input:checked) { background: var(--primary-soft); }
.plan-choice small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; margin-top: 5px; }
.plan-choice strong { font-size: .87rem; }
.text-button { background: none; border: 0; color: var(--muted); padding: 8px 0; font-size: .85rem; }
.history-plan { padding: 18px 0; border-top: 1px solid var(--line); }
.history-plan summary span { float: right; color: var(--muted); font-size: .75rem; font-weight: 400; }
.history-item { padding: 10px 0 10px 14px; border-left: 2px solid var(--gold); margin: 10px 0; font-size: .87rem; }
.history-item p { margin: 4px 0 0; font-size: .76rem; color: var(--muted); }
.history-plan > a { font-size: .8rem; }
.checkin-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .82rem; }
.status-badge { background: var(--gold-soft); color: var(--gold); border-radius: 6px; padding: 3px 7px; font-size: .7rem; }
.notification-row { padding: 20px 10px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.notification-row.unread { border-left: 3px solid var(--gold); padding-left: 15px; }
.notification-row a { color: var(--text); }
.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 100; max-width: min(380px,calc(100vw - 30px)); display: grid; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 15px; box-shadow: 0 8px 35px #1e422129; padding: 17px; display: flex; gap: 14px; font-size: .85rem; }
.toast p { font-size: .8rem; color: var(--muted); margin: 5px 0; }
.toast .icon-button { align-self: flex-start; }
.auth-workspace { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 20% 5%, var(--primary-soft), transparent 60%), radial-gradient(ellipse at 90% 100%, var(--gold-soft), transparent 60%); padding: 35px 20px; }
.auth-workspace > #messages { position: absolute; top: 10px; left: 20px; right: 20px; }
.auth-card { max-width: 470px; width: 100%; background: var(--surface); padding: 40px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 65px #1935230d; }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: .95rem; letter-spacing: -.025em; margin-bottom: 35px; }
.auth-card h1 { font-size: 2rem; }
.auth-card > .muted { font-size: .9rem; margin-bottom: 28px; }
.auth-card .help ul { padding-left: 18px; font-size: .76rem; }
.auth-foot { font-size: .75rem; text-align: center; color: var(--muted); margin: 25px 0 0; }
[hidden] { display: none !important; }
@media (min-width: 1800px) { .column { max-width: none; } .board { min-height: 65vh; } }
@media (max-width: 1150px) {
  .settings-grid, .planning-grid { grid-template-columns: 1fr; }
  .sidebar { width: 214px; padding-inline: 12px; }
  .workspace { margin-left: 214px; padding-inline: 23px; }
  .brand { font-size: .8rem; padding-inline: 7px; }
  .completed-row { flex-wrap: wrap; }
  .completed-row time { margin-left: 48px; }
  .timezone { display: none; }
  .search-status { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; padding: 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 16px; }
  .sidebar nav { display: flex; gap: 7px; overflow: auto; }
  .nav-label { display: none; }
  .nav-item { white-space: nowrap; margin: 0; font-size: .8rem; min-height: 35px; padding: 7px 10px; }
  .nav-count { display: none; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; margin-top: 0; }
  .sidebar-bottom .profile { border: 0; margin: 0; padding: 0; }
  .sidebar-bottom .profile > span { display: none; }
  .sidebar-bottom .logout { padding: 7px 10px; }
  .workspace { margin-left: 0; padding: 0 17px 20px; }
  .topline { min-height: 48px; font-size: .7rem; }
  .page-header { padding: 27px 0 22px; gap: 14px; align-items: flex-start; }
  .page-header h1 { font-size: 1.8rem; }
  .page-header .eyebrow { font-size: .68rem; }
  .page-header > .actions { flex-direction: column; align-items: flex-end; }
  .button { padding: 8px 12px; font-size: .8rem; }
  .board { min-height: 400px; }
  .column { min-width: 280px; max-width: 300px; }
  .board-foot { flex-direction: column; font-size: .7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .content-panel { padding: 20px; }
  .dialog-content { padding: 22px 20px; }
  .dialog-header h2 { font-size: 1.35rem; }
  .filters { gap: 9px; }
  .search-field { min-width: 200px; max-width: none; flex-basis: 100%; }
  .filter-fields { padding: 14px; }
  .search-status { flex-basis: auto; margin-left: auto; max-width: 65%; }
  .settings-row { flex-wrap: wrap; }
  .settings-row .row-main { flex-basis: 100%; }
  .auth-card { padding: 30px 24px; }
  .completed-row .row-main { flex-basis: 65%; }
  .completed-row time { margin-left: 0; }
  .notification-row { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #171d19; --surface: #222b25; --surface-alt: #2a342d; --text: #e8ede7; --muted: #a5b3a6; --line: #39463b; --primary: #94cfaa; --primary-hover: #a8debb; --primary-soft: #293f31; --sidebar: #1d251f; --side-text: #b9c7ba; --gold: #dfc077; --gold-bright: #efce78; --gold-soft: #3e3827; --danger: #ffa89a; --danger-soft: #432c28; --green: #94cfaa; --shadow: 0 4px 18px #00000012; }
  .primary { background: #316c49; color: #fff; }
  .primary:hover { background: #3c7c55; }
  .danger { background: #9a3e34; color: #fff; }
  .task-card:hover { border-color: #647e68; }
  .color-red { --category: #dfc077; }
  .color-amber { --category: #b4a364; }
  .color-blue { --category: #8abe98; }
  .color-violet { --category: #799e81; }
  .check-button { border-color: #8c9c8e; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav-item, .task-card, .search-field { transition: background-color .15s, border-color .15s, box-shadow .15s; }
  [data-task-results] { transition: opacity .12s; }
  dialog[open] { animation: enter .18s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
}

/* Phone views use a vertical list; all categories remain accessible. */
@media (max-width: 700px) {
  .board { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; min-height: 0; }
  .column { width: auto; min-width: 0; max-width: none; flex: none; }
  .card-list { min-height: 0; }
  .column-empty { padding: 14px; }
  .column-empty { min-height: 110px; }
  .column-empty > span { display: none; }
  .add-category { min-height: 52px; }
  input, select, textarea, .search-field input[type=search], .filter-fields select { font-size: 16px; }
  .filter-details summary, .search-field, .column-add, .logout { min-height: 44px; }
  .task-card .check-button { width: 44px; height: 44px; border: 0; position: relative; }
  .task-card .check-button::before { content: ''; position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 50%; }
  .task-card .checked::before { border-color: var(--green); }
  .card-title-row form { height: 44px; margin: -8px 0 0 -8px; }
  .card-menu summary { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .workspace { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .button, .nav-item { min-height: 44px; }
}

.connected-stack { display: grid; gap: 20px; max-width: 960px; }
.context-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.evidence { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.capture-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.capture-actions label { flex: 1; min-width: 150px; }
.capture-actions select { width: 100%; }
.job-card { display: block; color: var(--text); text-decoration: none; }
.job-card:hover { border-color: var(--primary); }
.narrow-panel { max-width: 760px; }
.welcome-check { font-size: 2rem; color: var(--primary); }
.status-pill { display: inline-flex; padding: 6px 12px; border-radius: 20px; background: var(--gold-soft); color: var(--text); font-size: .8rem; }
