:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --ink: #1d2824;
  --muted: #77817c;
  --line: #e3e7e1;
  --brand: #153c31;
  --brand-2: #205747;
  --lime: #cbe85b;
  --coral: #eb6d58;
  --coral-soft: #fff1ed;
  --blue: #5184bc;
  --blue-soft: #eef5fb;
  --amber: #c58a2f;
  --amber-soft: #fff7e8;
  --gray-soft: #f1f3f0;
  --shadow: 0 14px 45px rgba(28, 49, 42, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .task-card { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 18px 20px; background: #f9faf7; border-right: 1px solid var(--line); z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 10px 28px; color: var(--brand); font: 800 25px/1 "Manrope", sans-serif; text-decoration: none; letter-spacing: -1.2px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--lime); background: var(--brand); border-radius: 11px; }
.brand-mark svg { width: 21px; }
.brand-dot { color: #94bd39; }
.main-nav, .sidebar-section { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 10px; min-height: 43px; padding: 0 12px; display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 10px; cursor: pointer; color: #66716c; text-align: left; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-item:hover { background: #eef1ec; color: var(--ink); }
.nav-item.active { background: #e8eee9; color: var(--brand); }
.nav-item.active::before { content: ""; width: 3px; height: 21px; background: var(--brand); border-radius: 4px; position: absolute; left: 18px; }
.nav-item svg { width: 18px; }
.nav-count { min-width: 23px; height: 22px; display: grid; place-items: center; padding: 0 6px; color: #718079; background: #e5e9e4; border-radius: 11px; font-size: 11px; }
.sidebar-section { margin-top: 29px; }
.sidebar-label { margin: 0 12px 9px; color: #9aa29e; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.nav-item.compact { min-height: 36px; grid-template-columns: 10px 1fr auto; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot.pending { background: var(--amber); }
.status-dot.done { background: #54a480; }
.focus-card { margin-top: auto; padding: 17px; background: var(--brand); color: white; border-radius: 15px; position: relative; overflow: hidden; }
.focus-card::after { content: ""; position: absolute; width: 100px; height: 100px; border: 18px solid rgba(255,255,255,.04); border-radius: 50%; right: -50px; top: -45px; }
.focus-icon { width: 31px; height: 31px; display: grid; place-items: center; background: rgba(203,232,91,.15); color: var(--lime); border-radius: 9px; margin-bottom: 13px; }
.focus-icon svg { width: 17px; }
.focus-card p { margin: 0 0 4px; color: #ccd8d2; font-size: 11px; }
.focus-card strong { font: 700 24px "Manrope", sans-serif; }
.focus-card small { display: block; margin-top: 8px; color: #aabbb4; font-size: 9px; }
.mini-progress { height: 4px; margin-top: 10px; border-radius: 10px; background: rgba(255,255,255,.13); overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .4s ease; }
.profile { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 18px 6px 0; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dfe8df; color: var(--brand); font-weight: 700; font-size: 11px; }
.profile strong, .profile span { display: block; }
.profile strong { font-size: 12px; }
.profile span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: #6e7874; }
.icon-button:hover { background: #ecefeb; color: var(--ink); }
.icon-button.bordered { background: var(--surface); border: 1px solid var(--line); }
.icon-button svg { width: 18px; }

.main-content { min-width: 0; }
.topbar { height: 77px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(249,250,247,.85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.mobile-menu { display: none; }
.search-wrap { width: min(390px, 40vw); position: relative; color: #88918d; }
.search-wrap > svg { width: 17px; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); }
.search-wrap input { width: 100%; height: 41px; padding: 0 55px 0 41px; border: 1px solid transparent; outline: none; background: #eef0ec; color: var(--ink); border-radius: 10px; font-size: 13px; transition: .2s; }
.search-wrap input:focus { background: white; border-color: #b5c6bd; box-shadow: 0 0 0 3px rgba(21,60,49,.07); }
.search-wrap kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 6px; border: 1px solid #dce0da; background: #f8f9f6; border-radius: 5px; color: #9ba39f; font: 10px "DM Sans"; }
.top-actions, .heading-actions { display: flex; align-items: center; gap: 9px; }
.primary-button, .secondary-button, .danger-button, .filter-button { border-radius: 9px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .18s; }
.primary-button { background: var(--brand); color: white; box-shadow: 0 5px 14px rgba(21,60,49,.15); }
.primary-button:hover { background: var(--brand-2); transform: translateY(-1px); }
.primary-button svg { width: 16px; }
.secondary-button { background: white; border-color: var(--line); }
.secondary-button:hover, .filter-button:hover { background: #f0f3ef; }
.danger-button { background: #fff0ed; color: #bd4e3e; }
.filter-button { background: white; border-color: var(--line); color: #68736e; }
.filter-button svg { width: 15px; }

.content { width: min(1440px, 100%); margin: auto; padding: 31px 34px 50px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 7px; color: #83a035; font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: 1.4px; }
.page-heading h1 { margin: 0; font: 800 27px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; }
.page-heading > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.summary-strip { min-height: 77px; margin: 24px 0 20px; padding: 13px 18px; display: flex; align-items: center; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 14px rgba(22,46,38,.025); }
.summary-item { min-width: 145px; display: flex; align-items: center; gap: 11px; }
.summary-item + .summary-item { border-left: 1px solid var(--line); padding-left: 27px; }
.summary-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; }
.summary-icon svg { width: 17px; }
.summary-icon.coral { color: var(--coral); background: var(--coral-soft); }
.summary-icon.blue { color: var(--blue); background: var(--blue-soft); }
.summary-icon.green { color: #438d6d; background: #edf7f2; }
.summary-item strong, .summary-item span { display: block; }
.summary-item strong { font: 700 18px/1 "Manrope"; }
.summary-item div span { margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.summary-tip { margin-left: auto; color: #929a96; font-size: 10px; }
.summary-tip span { color: #9abb42; margin-right: 5px; }

.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.quadrant { min-height: 300px; background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.quadrant.drag-over { border-color: #6c927f; background: #f4faf6; box-shadow: 0 0 0 3px rgba(50,111,85,.08); }
.quadrant-header { min-height: 67px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.quadrant.do .quadrant-header { background: var(--coral-soft); }
.quadrant.schedule .quadrant-header { background: var(--blue-soft); }
.quadrant.delegate .quadrant-header { background: var(--amber-soft); }
.quadrant.eliminate .quadrant-header { background: var(--gray-soft); }
.quadrant-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.7); }
.quadrant-icon svg { width: 17px; }
.do .quadrant-icon { color: var(--coral); }
.schedule .quadrant-icon { color: var(--blue); }
.delegate .quadrant-icon { color: var(--amber); }
.eliminate .quadrant-icon { color: #86908b; }
.quadrant-header h2 { margin: 0 0 3px; font: 700 13px "Manrope"; }
.quadrant-header p { margin: 0; color: var(--muted); font-size: 9px; }
.quadrant-count { align-self: start; min-width: 24px; height: 22px; display: grid; place-items: center; padding: 0 7px; background: rgba(255,255,255,.7); border-radius: 12px; color: #7a8580; font-size: 10px; font-weight: 700; }
.task-list { min-height: 230px; padding: 12px; display: grid; align-content: start; gap: 9px; }
.task-card { padding: 13px 14px; border: 1px solid #e2e6e0; background: white; border-radius: 11px; box-shadow: 0 2px 6px rgba(24,47,39,.025); cursor: pointer; transition: transform .18s, box-shadow .18s, opacity .18s; }
.task-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(24,47,39,.08); }
.task-card.dragging { opacity: .45; transform: rotate(1deg); }
.task-main { display: grid; grid-template-columns: 20px 1fr auto; align-items: start; gap: 10px; }
.task-check { width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; padding: 0; border: 1.5px solid #c9d0cb; background: white; border-radius: 6px; cursor: pointer; }
.task-check:hover { border-color: var(--brand); }
.task-check svg { width: 12px; opacity: 0; stroke-width: 2.5; }
.task-card.completed .task-check { background: var(--brand); border-color: var(--brand); color: white; }
.task-card.completed .task-check svg { opacity: 1; }
.task-card.completed .task-title { text-decoration: line-through; color: #8f9894; }
.task-title { margin: 0; font-size: 12px; line-height: 1.45; font-weight: 700; }
.task-description { margin: 5px 0 0; color: #7f8984; font-size: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drag-handle { color: #bdc3bf; cursor: grab; }
.drag-handle svg { width: 14px; }
.task-meta { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 7px; border-radius: 5px; background: #eef2ee; color: #66746d; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.due-date { display: flex; align-items: center; gap: 4px; color: #8a938f; font-size: 9px; }
.due-date svg { width: 12px; }
.due-date.overdue { color: #d25c4a; }
.task-owner { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e1e9e3; color: #53685e; border: 2px solid white; font-size: 7px; font-weight: 800; }
.check-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 11px; }
.check-progress .bar { height: 4px; border-radius: 5px; background: #edf0ec; overflow: hidden; }
.check-progress .bar span { display: block; height: 100%; border-radius: inherit; background: #6a9b82; }
.check-progress small { color: #8b9490; font-size: 8px; }
.add-in-quadrant { border: 1px dashed transparent; background: transparent; color: #929b97; border-radius: 9px; min-height: 35px; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-in-quadrant:hover { border-color: #cbd1cd; background: white; color: var(--brand); }
.add-in-quadrant svg { width: 13px; }

.list-view { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.list-row { display: grid; grid-template-columns: 24px minmax(180px,1.5fr) 130px 120px 100px; align-items: center; gap: 14px; min-height: 62px; padding: 8px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fafbf9; }
.list-row.completed .task-check { background: var(--brand); border-color: var(--brand); color: white; }
.list-row.completed .task-check svg { opacity: 1; }
.list-row.completed .list-title strong { color: #8f9894; text-decoration: line-through; }
.list-title strong { display: block; font-size: 12px; }
.list-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-quadrant { font-size: 9px; font-weight: 700; }
.list-progress { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.list-progress .bar { width: 52px; height: 4px; background: #e9ede9; border-radius: 5px; overflow: hidden; }
.list-progress .bar span { display: block; height: 100%; background: #6a9b82; }
.empty-search { min-height: 360px; text-align: center; display: grid; place-content: center; justify-items: center; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #8b9691; background: #e8ece8; }
.empty-search h2 { margin: 15px 0 5px; font: 700 16px "Manrope"; }
.empty-search p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(15,30,25,.48); backdrop-filter: blur(4px); animation: fadeIn .18s ease; }
.modal { width: min(620px, 100%); max-height: min(820px, calc(100vh - 35px)); display: flex; flex-direction: column; background: white; border-radius: 18px; box-shadow: 0 30px 100px rgba(9,28,21,.26); animation: slideUp .22s ease; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font: 800 20px "Manrope"; }
.modal-body { padding: 20px 24px; overflow: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field span, .section-title span { color: #4e5a55; font-size: 11px; font-weight: 700; }
.field em { color: #9ba39f; font-weight: 400; font-style: normal; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dfe4de; background: #fafbf9; border-radius: 9px; outline: none; padding: 10px 12px; color: var(--ink); font-size: 12px; resize: vertical; transition: .18s; }
.field input, .field select { height: 41px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #789a89; background: white; box-shadow: 0 0 0 3px rgba(21,60,49,.06); }
.checklist-editor { padding-top: 4px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.section-title small { color: #9aa29e; font-size: 9px; }
.checklist-field { display: grid; grid-template-columns: 18px 1fr 30px; align-items: center; gap: 9px; padding: 4px 0; }
.checklist-field input[type="checkbox"] { accent-color: var(--brand); }
.checklist-field input[type="text"] { height: 37px; border: 1px solid #e1e5df; border-radius: 8px; padding: 0 10px; outline: none; font-size: 11px; }
.checklist-field input[type="text"]:focus { border-color: #789a89; }
.remove-check { border: 0; background: transparent; color: #a5ada9; cursor: pointer; display: grid; place-items: center; }
.remove-check:hover { color: #c65747; }
.remove-check svg { width: 15px; }
.text-button { margin-top: 7px; padding: 6px 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #47735f; cursor: pointer; font-size: 10px; font-weight: 700; }
.text-button svg { width: 13px; }
.modal-footer { padding: 15px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.footer-spacer { flex: 1; }
.popover { position: fixed; z-index: 40; width: 205px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.popover p { margin: 6px 9px 5px; color: #9aa29f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.popover button { width: 100%; height: 35px; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; border-radius: 7px; cursor: pointer; font-size: 11px; text-align: left; }
.popover button:hover { background: #f3f5f2; }
.radio-mark { width: 13px; height: 13px; border: 1px solid #b9c1bd; border-radius: 50%; }
.popover button.active .radio-mark { border: 4px solid var(--brand); }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 100px); opacity: 0; display: flex; align-items: center; gap: 9px; padding: 10px 15px 10px 10px; border-radius: 10px; background: var(--brand); color: white; box-shadow: var(--shadow); transition: .3s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast span { width: 23px; height: 23px; display: grid; place-items: center; color: var(--brand); background: var(--lime); border-radius: 6px; font-size: 12px; font-weight: 800; }
.toast p { margin: 0; font-size: 11px; font-weight: 600; }
.mobile-nav, .mobile-overlay { display: none; }
.hidden { display: none !important; }

body.dark { --bg:#111915; --surface:#18221d; --surface-soft:#1c2721; --ink:#edf2ef; --muted:#94a29b; --line:#2b3831; --brand:#cbe85b; --brand-2:#b6d249; --gray-soft:#202b25; color-scheme: dark; }
body.dark .sidebar, body.dark .topbar { background: #141d18; }
body.dark .brand { color: var(--ink); }
body.dark .primary-button { color: #112019; }
body.dark .brand-mark, body.dark .primary-button, body.dark .task-card.completed .task-check { background: var(--lime); color:#17221d; }
body.dark .nav-item.active, body.dark .nav-item:hover, body.dark .search-wrap input { background:#202c25; }
body.dark .focus-card { background:#20342a; }
body.dark .summary-strip, body.dark .quadrant, body.dark .task-card, body.dark .modal, body.dark .popover, body.dark .list-view, body.dark .secondary-button, body.dark .filter-button, body.dark .icon-button.bordered { background: var(--surface); }
body.dark .quadrant.do .quadrant-header { background:#37231f; }
body.dark .quadrant.schedule .quadrant-header { background:#1d2d3c; }
body.dark .quadrant.delegate .quadrant-header { background:#332b1d; }
body.dark .quadrant.eliminate .quadrant-header { background:#202a25; }
body.dark .field input, body.dark .field textarea, body.dark .field select, body.dark .checklist-field input[type=text] { background:#151f1a; color:var(--ink); border-color:var(--line); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(14px); opacity: .5; } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .nav-item.active::before { left: 13px; }
  .summary-tip { display: none; }
  .summary-strip { gap: 18px; }
  .summary-item { min-width: 125px; }
  .summary-item + .summary-item { padding-left: 18px; }
}

@media (max-width: 790px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(82vw, 300px); transform: translateX(-102%); transition: transform .25s; box-shadow: 20px 0 50px rgba(11,29,22,.2); }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 19; width: 100%; height: 100%; border: 0; background: rgba(13,28,22,.42); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.sidebar-open .mobile-overlay { display: block; opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid; }
  .topbar { height: 68px; padding: 0 18px; gap: 10px; }
  .search-wrap { flex: 1; width: auto; }
  .search-wrap kbd, .top-actions > .icon-button { display: none; }
  .primary-button { padding: 0 12px; }
  .top-actions .primary-button svg { margin: 0; }
  .content { padding: 24px 18px 40px; }
  .matrix { grid-template-columns: 1fr; }
  .summary-strip { overflow-x: auto; }
  .summary-item { min-width: 140px; }
  .list-row { grid-template-columns: 24px 1fr 100px; }
  .list-row > :nth-child(3), .list-row > :nth-child(4) { display:none; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 35; height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 5px 8px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(15,38,29,.18); backdrop-filter: blur(18px); }
  .mobile-nav button { min-width: 0; height: 50px; padding: 4px 2px; border: 0; background: transparent; color: #8a9590; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; font-weight: 700; cursor: pointer; }
  .mobile-nav button.active { color: var(--brand); background: #eef3ef; }
  .mobile-nav button svg { width: 19px; height: 19px; }
  .mobile-nav .mobile-add { width: 49px; height: 49px; justify-self: center; margin-top: -25px; color: white; background: var(--brand); border: 4px solid var(--bg); border-radius: 16px; box-shadow: 0 7px 18px rgba(21,60,49,.25); }
  .mobile-nav .mobile-add svg { width: 22px; height: 22px; }
  body.dark .mobile-nav { background: rgba(24,34,29,.96); }
  body.dark .mobile-nav button.active { color: var(--lime); background: #26342c; }
  body.dark .mobile-nav .mobile-add { color: #132018; background: var(--lime); }
  .task-card, .nav-item, .primary-button, .secondary-button, .filter-button, .mobile-nav button { touch-action: manipulation; }
}

@media (max-width: 520px) {
  .topbar { padding: 0 13px; }
  .mobile-menu { width: 40px; height: 40px; }
  .search-wrap input { height: 42px; padding-left: 37px; font-size: 16px; }
  .top-actions .primary-button { display: none; }
  .content { padding: 21px 13px 30px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .page-heading > div > p:last-child { max-width: 220px; font-size: 12px; line-height: 1.4; }
  .heading-actions .filter-button { padding: 0 10px; }
  .heading-actions .filter-button span { display: none; }
  .heading-actions .bordered { display: none; }
  .summary-strip { min-height: 70px; margin: 19px 0 14px; padding: 11px 5px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; overflow: visible; }
  .summary-item { min-width: 0; padding: 0 7px; justify-content: center; text-align: center; }
  .summary-item + .summary-item { padding-left: 7px; }
  .summary-icon { display: none; }
  .summary-item strong { font-size: 17px; }
  .summary-item div span { margin-top: 4px; font-size: 8px; white-space: normal; line-height: 1.25; }
  .quadrant { min-height: 0; border-radius: 14px; }
  .quadrant-header { min-height: 62px; padding: 10px 13px; }
  .quadrant-header p { font-size: 8px; }
  .task-list { min-height: 80px; padding: 9px; gap: 8px; }
  .task-card { padding: 14px 13px; }
  .task-title { font-size: 13px; }
  .task-description { font-size: 11px; }
  .task-check { width: 21px; height: 21px; }
  .add-in-quadrant { min-height: 42px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 94dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ""; width: 38px; height: 4px; flex: 0 0 auto; align-self: center; margin-top: 8px; background: #d7dcd8; border-radius: 4px; }
  .modal-header { padding-top: 13px; }
  .modal-footer { position: sticky; bottom: 0; padding: 12px 16px; background: var(--surface); }
  .modal-body, .modal-header { padding-left: 18px; padding-right: 18px; }
  .field input, .field textarea, .field select, .checklist-field input[type="text"] { font-size: 16px; }
  .field input, .field select { height: 46px; }
  .field textarea { min-height: 86px; }
  .modal-footer .primary-button, .modal-footer .secondary-button { min-height: 44px; }
  .modal-footer .primary-button { flex: 1; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 28px); }
}

@media (hover: none) {
  .task-card:hover, .primary-button:hover { transform: none; }
}
