:root {
  color-scheme: dark;
  --ink: #eff5fb;
  --muted: #9cadbd;
  --muted-2: #72879a;
  --canvas: #04172a;
  --navy: #061c30;
  --panel: #08223a;
  --panel-raised: #0c2b47;
  --line: #26445c;
  --lime: #8fe000;
  --blue: #20bdf2;
  --purple: #c35be3;
  --orange: #f39421;
  --red: #ff615a;
  --radius: 18px;
  --gap: 12px;
  --font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { overflow: hidden; background: var(--canvas); color: var(--ink); font-family: var(--font); }
button, input, select, textarea { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [contenteditable="true"]:focus-visible { outline: 2px solid #b2f34a; outline-offset: 2px; }
[hidden] { display: none !important; }

.workspace { height: 100vh; height: 100dvh; min-height: 440px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 68% 115%, #083453 0, transparent 56%), var(--canvas); }
.masthead { height: 104px; flex: 0 0 104px; display: grid; grid-template-columns: 196px minmax(230px, 1fr) minmax(180px, 43%) minmax(140px, 245px); align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid #56748a; background: linear-gradient(90deg, #041629 0%, #061b2d 36%, #0b2840 100%); }
.masthead::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, #041629 0%, #061a2ce8 34%, #061a2c30 68%, #031629bb 100%); }
.masthead-brand, .masthead-title, .masthead-tools { z-index: 1; position: relative; }
.masthead-brand { display: flex; align-items: center; height: 100%; padding: 18px 22px; border-right: 1px solid #526b7e; }
.masthead-brand img { width: 150px; height: auto; max-height: 60px; object-fit: contain; border-radius: 2px; }
.masthead-title { padding-left: 24px; display: flex; flex-direction: column; gap: 2px; }
.masthead-title > span, .section-kicker { color: #b7d1e4; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.masthead-title strong { font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -.8px; }
.masthead-title small { color: #c6d5e0; font-size: 12px; }
.masthead-title small i { display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px; border-radius: 50%; background: var(--lime); }
.masthead-photo { position: absolute; inset: 0 0 0 42%; background: url("../images/task-manager/yatco-store.jpg") center 48% / cover no-repeat; }
.masthead-tools { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 0 22px 0 8px; }
.storage-indicator { border: 1px solid #708ca1; border-radius: 999px; padding: 7px 10px; color: #d7e4eb; font-size: 11px; white-space: nowrap; background: #04182bbd; }
.icon-button, .avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #748b9d; border-radius: 50%; color: var(--ink); background: #06192cbf; text-decoration: none; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.help-open { font-size: 17px; font-weight: 800; }
.avatar { width: 44px; height: 44px; font-size: 13px; }

.app-frame { flex: 1; min-height: 0; display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 18px 10px 12px; border-right: 1px solid #24506a; border-radius: 0 30px 0 0; background: linear-gradient(180deg, #071f35 0%, #04192c 100%); }
.side-links { display: grid; gap: 8px; }
.side-link { min-height: 42px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 0 11px; color: #dce8f1; background: transparent; text-align: left; font-size: 13px; font-weight: 650; }
.side-link:hover, .side-link.selected, .side-link.quick-links-active { color: #0c1a20; background: var(--lime); }
.nav-glyph { width: 21px; display: inline-grid; place-items: center; }
.nav-glyph svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mini-calendar { margin-top: auto; padding: 12px 3px 4px; border-top: 1px solid #385266; }
.mini-calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.mini-calendar-heading strong { font-size: 12px; font-weight: 700; }
.mini-calendar-heading button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; color: #d4e4ee; background: none; }
.mini-calendar-heading button::before { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(135deg); }
.mini-calendar-heading button:last-child::before { transform: rotate(-45deg); }
.mini-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.mini-weekdays { margin-bottom: 4px; color: #aec0ce; font-size: 9px; font-weight: 800; }
.mini-calendar-grid button { min-width: 0; height: 23px; position: relative; border: 0; border-radius: 6px; padding: 0; color: #d6e3ec; background: transparent; font-size: 10px; }
.mini-calendar-grid button:hover, .mini-calendar-grid button.today { color: #102000; background: var(--lime); font-weight: 800; }
.mini-calendar-grid button.has-due::after { position: absolute; right: 2px; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); content: ""; }
.mini-calendar-grid button.today.has-due::after { background: #103300; }
.back-home { margin: 10px 5px 0; padding-top: 10px; border-top: 1px solid #304b5e; color: #a9bdcc; font-size: 11px; text-decoration: none; }
.back-home:hover { color: white; }
.main-content { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.mobile-topbar, .mobile-nav { display: none; }
.toolbar { min-height: 66px; flex: 0 0 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #234258; background: #061b2c; }
.toolbar-primary, .toolbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.search-box { width: min(390px, 36vw); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #557086; border-radius: 9px; color: #d6e2eb; background: #09243a; }
.search-box span { width: 18px; height: 20px; display: inline-flex; flex: 0 0 auto; }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: white; background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #9eb0bd; }
.toolbar-select, .filter-label { display: flex; align-items: center; gap: 7px; color: #becbd4; font-size: 11px; white-space: nowrap; }
.toolbar select, .panel-sort { min-width: 0; border: 1px solid #557086; border-radius: 8px; padding: 8px 26px 8px 9px; color: #f0f5f8; background: #0c2940; font-size: 11px; }
.toolbar-button { min-height: 35px; border: 1px solid #607c91; border-radius: 9px; padding: 0 11px; color: #e6eef4; background: #0a2740; font-size: 11px; font-weight: 650; white-space: nowrap; }
.toolbar-button:hover { border-color: #b2d629; background: #11334e; }
.live-status { position: absolute; z-index: 2; top: 108px; left: 50%; max-width: min(90vw, 500px); margin: 0; transform: translateX(-50%); color: #d5efaa; font-size: 12px; pointer-events: none; }
.dashboard-view { flex: 1; min-height: 0; padding: 12px; }
.dashboard-grid { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 28fr) minmax(0, 44fr); gap: var(--gap); }
.list-panel { --accent: var(--lime); min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--accent); border-radius: var(--radius); background: linear-gradient(180deg, #0a2942 0%, #061d32 100%); box-shadow: 0 12px 28px #0005, inset 0 0 23px #fff05; }
.category-todo { --accent: var(--lime); }
.category-followup { --accent: var(--blue); }
.category-ongoing { --accent: var(--purple); }
.category-future { --accent: var(--orange); }
.panel-heading { height: 54px; flex: 0 0 54px; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 11px; border-bottom: 2px solid var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%); }
.panel-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #061729; background: var(--accent); }
.panel-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.category-followup .panel-icon, .category-ongoing .panel-icon, .category-future .panel-icon { color: var(--accent); background: transparent; }
.category-followup .panel-icon svg, .category-ongoing .panel-icon svg, .category-future .panel-icon svg { width: 27px; height: 27px; stroke-width: 1.9; }
.panel-heading h2 { min-width: 0; flex: 1; overflow: hidden; margin: 0; font-size: clamp(14px, 1.4vw, 20px); letter-spacing: -.3px; white-space: nowrap; text-overflow: ellipsis; }
.panel-heading h2 small { color: #c5d4de; font-size: 12px; font-weight: 500; }
.panel-sort { width: 82px; padding: 5px 17px 5px 5px; border-color: #7890a0; font-size: 9px; }
.add-item { width: 34px; height: 36px; position: relative; flex: 0 0 auto; border: 0; color: #f1f5f8; background: transparent; font-size: 0; }
.add-item::before, .add-item::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; border-radius: 1px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.add-item::after { transform: translate(-50%, -50%) rotate(90deg); }
.add-item:hover { color: var(--accent); }
.panel-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; scrollbar-color: #59778b #061b2d; scrollbar-width: thin; }
.panel-scroll::-webkit-scrollbar, .editor-body::-webkit-scrollbar, .help-content::-webkit-scrollbar { width: 7px; height: 7px; }
.panel-scroll::-webkit-scrollbar-track, .editor-body::-webkit-scrollbar-track, .help-content::-webkit-scrollbar-track { background: #061b2d; }
.panel-scroll::-webkit-scrollbar-thumb, .editor-body::-webkit-scrollbar-thumb, .help-content::-webkit-scrollbar-thumb { border-radius: 9px; background: #4a687d; }
.list-column-heading { height: 31px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 25px; align-items: center; gap: 7px; padding: 0 10px; border-bottom: 1px solid #425d70; color: #d8e2e8; font-size: 10px; font-weight: 750; }
.list-column-heading span:last-child { text-align: center; }
.item-list { margin: 0; padding: 0 5px 5px; list-style: none; }
.task-row { --accent: var(--lime); min-height: 33px; position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) max-content 27px; align-items: center; gap: 5px; padding: var(--task-row-spacing, 2px) 3px; border-bottom: 1px solid #29455a; color: #f0f5f8; font-size: var(--task-row-font-size, 11px); }
.category-followup .task-row { --accent: var(--blue); }
.category-ongoing .task-row { --accent: var(--purple); }
.category-future .task-row { --accent: var(--orange); }
.task-row:hover { background: #17405b88; }
.task-row.completed { color: #93a2ae; }
.task-check { width: 17px; height: 17px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.task-summary { min-width: 0; overflow-wrap: anywhere; cursor: default; line-height: 1.35; }
.task-summary strong { font-weight: 600; }
.task-summary .task-description { color: #cad7e0; }
.task-summary .task-parent { color: #9eb4c2; font-size: .9em; }
.task-row.completed .task-summary, .task-row.completed .task-summary strong { color: #83929e; text-decoration: line-through; }
.task-due { grid-column: 2 / 4; width: max-content; max-width: 100%; margin: -1px 0 2px; border-radius: 4px; padding: 2px 5px; color: #d8e9f4; background: #173c56; font-size: 9px; }
.priority-pill { min-width: 24px; height: 23px; border: 0; border-radius: 5px; padding: 0 5px; color: #fff; font-weight: 850; text-align: center; }
.priority-A { background: #e53935; }
.priority-B { background: #2676d2; }
.priority-C { color: #10220e; background: #61c554; }
.row-menu { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #d7e1e9; background: transparent; font-size: 0; }
.row-menu::before { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: -7px 0 currentColor, 7px 0 currentColor; content: ""; }
.row-menu:hover { color: white; background: #33536a; }
.empty-list { display: none; margin: 18px 12px; color: #93a7b6; font-size: 11px; text-align: center; }
.panel-scroll:has(.item-list:empty) .empty-list { display: block; }
.project-stack { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.dashboard-grid.single-line-view .task-row { grid-template-columns: 24px minmax(0, 1fr) max-content max-content 27px; }
.dashboard-grid.single-line-view .task-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.dashboard-grid.single-line-view .task-due { grid-column: auto; margin: 0; white-space: nowrap; }
.mobile-category-summaries { display: none; }
.tooltip { position: absolute; z-index: 7; left: 28px; bottom: calc(100% - 3px); max-width: 260px; border: 1px solid #6b8597; border-radius: 7px; padding: 7px 9px; color: #edf4f7; background: #031422; box-shadow: 0 4px 14px #0008; font-size: 10px; pointer-events: none; }
.context-menu { position: fixed; z-index: 20; width: min(240px, calc(100vw - 20px)); max-height: min(75vh, 500px); overflow: auto; border: 1px solid #547086; border-radius: 12px; padding: 5px; background: #09243a; box-shadow: 0 12px 34px #0009; }
.context-menu button { width: 100%; display: block; border: 0; border-radius: 7px; padding: 9px 10px; color: #e7eef3; background: transparent; text-align: left; font-size: 12px; }
.context-menu button:hover { background: #19415b; }
.context-menu button.danger { color: #ffaaa3; }
.category-menu-label { padding: 7px 10px 4px; color: #90a8b8; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.context-color-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; color: #e7eef3; font-size: 11px; }
.context-color-field { width: 42px; height: 30px; border: 1px solid #547086; border-radius: 6px; padding: 2px; background: #0c2b43; }
.context-date-field { width: calc(100% - 14px); min-height: 36px; margin: 4px 7px 7px; border: 1px solid #49677d; border-radius: 7px; padding: 6px; color: #edf4f8; background: #0c2b43; font-size: 11px; }
.calendar-screen { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: auto; padding: 19px; }
.calendar-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.calendar-toolbar h1 { margin: 3px 0 0; font-size: 25px; }
.calendar-controls { display: flex; align-items: center; gap: 7px; }
.calendar-controls > strong { min-width: 116px; text-align: center; font-size: 14px; }
.calendar-arrow { width: 35px; display: grid; place-items: center; padding: 0; }
.calendar-arrow::before { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(135deg); }
#calendarNext::before { transform: rotate(-45deg); }
.view-switch { display: flex; gap: 2px; margin-left: 8px; border: 1px solid #526e82; border-radius: 9px; padding: 3px; }
.view-switch button { min-height: 29px; border: 0; border-radius: 6px; padding: 0 9px; color: #b8c8d3; background: transparent; font-size: 10px; }
.view-switch button.active { color: #102000; background: var(--lime); font-weight: 750; }
.calendar-content { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 14px; }
.calendar-grid { min-height: 300px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px repeat(6, minmax(55px, 1fr)); overflow: hidden; border: 1px solid #29475d; border-radius: 13px; background: #082039; }
.calendar-grid.spanned-view { display: flex; flex-direction: column; }
.calendar-weekdays, .calendar-week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { min-height: 30px; flex: 0 0 30px; }
.calendar-week-row { min-height: 68px; position: relative; flex: 1 1 0; }
.calendar-grid.week-view .calendar-week-row { min-height: 170px; }
.calendar-grid.day-view { grid-template-columns: minmax(0, 1fr); grid-template-rows: 30px minmax(180px, 1fr); }
.calendar-weekday { display: grid; place-items: center; border-right: 1px solid #29475d; border-bottom: 1px solid #29475d; color: #9cb1c0; font-size: 10px; font-weight: 800; }
.calendar-day { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; overflow: hidden; border: 0; border-right: 1px solid #29475d; border-bottom: 1px solid #29475d; padding: 32px 6px 6px; color: #e5eef4; background: transparent; text-align: left; }
.calendar-week-row > .calendar-day { grid-row: 1; z-index: 1; padding-top: 48px; }
.calendar-day:hover, .calendar-day.selected { background: #103550; }
.calendar-day.outside-month { color: #75899a; }
.calendar-day-number { width: 23px; height: 23px; position: absolute; z-index: 3; top: 3px; right: 4px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 10px; }
.calendar-day.today .calendar-day-number { color: #102000; background: var(--lime); font-weight: 850; }
.calendar-events { width: 100%; display: grid; gap: 3px; overflow: hidden; }
.calendar-event-chip { display: block; overflow: hidden; border-left: 3px solid var(--event-color, var(--lime)); border-radius: 3px; padding: 3px 4px; color: #e7eff4; background: #ffffff10; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-span-event { min-width: 0; height: 15px; position: relative; z-index: 2; align-self: start; overflow: hidden; border: 0; border-left: 3px solid var(--event-color, var(--purple)); border-radius: 3px; padding: 0 4px; color: #f0f3f5; background: color-mix(in srgb, var(--event-color, var(--purple)) 40%, #10283a); font-size: 9px; line-height: 15px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.day-agenda { min-height: 0; overflow: auto; border: 1px solid #29475d; border-radius: 13px; padding: 12px; background: #082039; }
.day-agenda h2 { margin: 2px 0 11px; font-size: 14px; }
.agenda-empty { color: #94a8b7; font-size: 11px; line-height: 1.5; }
.agenda-item { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 7px; border-top: 1px solid #29475d; padding: 9px 1px; cursor: default; }
.agenda-item:focus-visible { outline: 2px solid #b2f34a; outline-offset: -2px; }
.agenda-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--event-color, var(--lime)); }
.agenda-title { color: #e9f0f4; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.agenda-category { color: #93a7b5; font-size: 9px; }

.editor-dialog, .help-dialog { width: min(760px, calc(100vw - 28px)); max-width: none; max-height: min(92vh, 900px); border: 1px solid #405e73; border-radius: 18px; padding: 0; color: var(--ink); background: #071d31; box-shadow: 0 24px 90px #000b; }
.editor-dialog { width: min(570px, calc(100vw - 28px)); }
.editor-dialog.project-dialog { height: min(96vh, 900px); max-height: 96vh; }
.editor-dialog::backdrop, .help-dialog::backdrop { background: #020a12c9; backdrop-filter: blur(3px); }
.editor-form { max-height: min(92vh, 900px); display: flex; flex-direction: column; }
.editor-dialog.project-dialog .editor-form { height: 100%; max-height: 100%; }
.editor-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #29475d; }
.editor-heading h2 { margin: 3px 0 0; font-size: 20px; }
.close-editor, .close-help { font-size: 25px; }
.editor-body { min-height: 0; overflow: auto; padding: 16px 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.form-grid label { min-width: 0; display: grid; gap: 5px; color: #c5d3dd; font-size: 11px; font-weight: 650; }
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; min-height: 34px; border: 1px solid #405d72; border-radius: 8px; padding: 5px 7px; color: #edf4f8; background: #0b2941; font-size: 12px; }
.schedule-fields { min-width: 0; display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.schedule-fields.project-schedule { grid-template-columns: minmax(80px, .7fr) repeat(2, minmax(0, 1.4fr)); }
.schedule-fields .priority-field select { max-width: 112px; }
.form-grid .completion-field { display: flex; align-items: center; grid-template-columns: 18px auto; align-self: end; min-height: 38px; }
.completion-field input { width: 17px; min-height: 17px; accent-color: var(--lime); }
.editor-section { margin-top: 17px; }
.editor-section h3 { margin: 0 0 9px; color: #e6eef3; font-size: 12px; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid #405d72; border-bottom: 0; border-radius: 9px 9px 0 0; padding: 5px; background: #0b2941; }
.rich-toolbar button { min-height: 29px; border: 1px solid transparent; border-radius: 6px; padding: 0 8px; color: #d8e5ed; background: transparent; font-size: 10px; }
.rich-toolbar button:hover { border-color: #52738a; background: #173b57; }
.notes-editor { min-height: 116px; border: 1px solid #405d72; border-radius: 0 0 9px 9px; padding: 11px; color: #ecf2f6; background: #06192b; font-size: 12px; line-height: 1.55; }
.task-editor .notes-editor { min-height: 82px; max-height: 45vh; overflow-y: auto; }
.project-dialog .editor-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 7px; overflow: hidden; padding: 8px 16px; }
.project-dialog .form-grid { flex: 0 0 auto; gap: 6px 9px; }
.project-dialog .form-grid label { gap: 3px; font-size: 10px; }
.project-dialog .form-grid input, .project-dialog .form-grid select { min-height: 31px; border-radius: 7px; padding: 4px 7px; font-size: 11px; }
.project-dialog .schedule-fields { gap: 6px; }
.project-dialog .editor-section { margin-top: 3px; }
.project-dialog .editor-section h3 { margin-bottom: 5px; }
.project-dialog .project-only .field-hint { margin-bottom: 3px; font-size: 9px; }
.project-dialog #projectTaskEditor { max-height: 104px; overflow-y: auto; }
.project-dialog .project-task-fields input { min-height: 29px; padding: 4px 6px; }
.project-dialog .notes-section { min-height: 110px; display: flex; flex: 1 1 auto; flex-direction: column; }
.project-dialog .notes-section > h3 { flex: 0 0 auto; }
.project-dialog .rich-toolbar { flex: 0 0 auto; padding: 3px; }
.project-dialog .rich-toolbar button { min-height: 25px; padding: 0 6px; }
.project-dialog .notes-editor { min-height: 0; flex: 1 1 auto; overflow: auto; }
.project-dialog .attachment-preview { max-height: 64px; overflow: auto; }
.project-dialog .attachment-card { width: 72px; height: 56px; }
.notes-editor:empty::before { color: #7d93a3; content: attr(data-placeholder); }
.notes-editor a { color: #87d7ff; }
.notes-editor h4 { margin: 12px 0 5px; color: #dceaf3; font-size: 13px; }
.notes-editor hr { width: 4in; max-width: 100%; margin: 5px 0 9px; border: 0; border-top: 1px solid #607b8e; }
.editor-field-value { min-height: 31px; display: flex; align-items: center; border: 1px solid transparent; border-radius: 7px; padding: 3px 6px; color: #edf4f8; background: #0b2941; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; cursor: default; }
.editor-field-value:hover { border-color: #52738a; }
.editor-field-value:focus-visible { outline: 2px solid #b2f34a; outline-offset: 2px; }
.notes-editor ul, .notes-editor ol { padding-left: 24px; }
.notes-editor ul[data-dated-notes] { list-style: none; padding-left: 0; }
.notes-editor label { display: inline-flex; align-items: center; gap: 6px; }
.notes-editor input[type="checkbox"] { accent-color: var(--lime); }
.notes-editor input[data-note-date] { width: 9.5em; border: 0; border-bottom: 1px dotted #8fe000; padding: 0; color: #c9ef9a; background: transparent; color-scheme: dark; font: inherit; }
.notes-editor input[data-note-date]:focus { outline: 1px solid #8fe000; outline-offset: 2px; }
.linked-todos-in-notes { display: block; margin: 0 0 12px; border: 1px solid #35556c; border-radius: 8px; padding: 9px 11px; background: #0a2439; }
.linked-todos-in-notes > strong { color: #b7c9d5; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.linked-todos-in-notes ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.linked-todos-in-notes li { display: flex; align-items: flex-start; gap: 7px; color: #e5eef4; }
.linked-todos-in-notes input[type="checkbox"] { flex: 0 0 auto; margin: 3px 0 0; }
.linked-todos-in-notes input[type="checkbox"]:checked + span { color: #92a2ae; text-decoration: line-through; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading-row h3 { margin: 0 0 8px; }
.subtle-button, .upload-button { min-height: 30px; border: 1px solid #506e82; border-radius: 7px; padding: 0 9px; color: #dce7ee; background: #0b2941; font-size: 10px; }
.project-task-editor { display: grid; gap: 6px; }
.project-task-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 34px 28px; align-items: center; gap: 7px; }
.project-task-row > input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--lime); }
.project-task-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.project-task-fields input { min-width: 0; width: 100%; min-height: 34px; border: 1px solid #405d72; border-radius: 7px; padding: 7px; color: #edf4f8; background: #0b2941; font-size: 11px; }
.project-task-row.completed .project-task-fields input { color: #93a2ae; text-decoration: line-through; }
.project-task-row .priority-pill { min-width: 31px; }
.remove-check { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #ffaaa3; background: transparent; }
.item-save-status { min-width: 0; flex: 1; color: #a9bdca; font-size: 10px; }
.field-hint { margin: 0 0 8px; color: #94a8b7; font-size: 10px; }
.upload-button { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.attachment-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-card { width: 104px; height: 83px; position: relative; overflow: hidden; border: 1px solid #46657a; border-radius: 8px; background: #0c2b44; }
.attachment-card img { width: 100%; height: 100%; object-fit: cover; }
.attachment-card button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; color: white; background: #061728d9; }
.attachment-card span { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 4px; color: white; background: #061728c9; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.related-items { display: grid; gap: 5px; }
.related-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #35536a; border-radius: 7px; padding: 7px 9px; color: #dce8ef; background: #0b2941; text-align: left; font-size: 10px; }
.editor-footer { min-height: 62px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 10px 20px; border-top: 1px solid #29475d; background: #06192b; }
.save-button { min-height: 38px; border: 0; border-radius: 9px; padding: 0 18px; color: #112006; background: var(--lime); font-size: 12px; font-weight: 800; }
.help-dialog { width: min(680px, calc(100vw - 28px)); }
.menu-dialog, .options-dialog { width: min(480px, calc(100vw - 28px)); max-width: none; border: 1px solid #405e73; border-radius: 17px; padding: 0; color: var(--ink); background: #071d31; box-shadow: 0 24px 90px #000b; }
.menu-dialog::backdrop, .options-dialog::backdrop { background: #020a12c9; backdrop-filter: blur(3px); }
.workspace-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 15px 19px; }
.workspace-menu-links a, .workspace-menu-links button { min-height: 41px; display: flex; align-items: center; border: 1px solid #35536a; border-radius: 8px; padding: 8px 10px; color: #e2edf3; background: #0b2941; font-size: 11px; text-align: left; text-decoration: none; }
.workspace-menu-links a:hover, .workspace-menu-links button:hover { border-color: var(--lime); color: white; background: #123650; }
.quick-links-dialog { position: fixed; z-index: 20; width: fit-content; min-width: min(440px, calc(100vw - 28px)); max-width: min(900px, calc(100vw - 28px)); max-height: min(88vh, 760px); margin: 0; border: 1px solid #405e73; border-radius: 15px; padding: 0; color: var(--ink); background: #071d31; box-shadow: 0 24px 90px #000b; }
.quick-links-opened #dashboardView, .quick-links-opened #calendarView { filter: blur(2px) brightness(.8); }
.quick-header-actions { display: flex; align-items: center; gap: 7px; }
#quickSettings[aria-pressed="true"], .mobile-topbar .quick-links-active { color: #102000; background: var(--lime); }
.quick-links-dialog:not(.settings-mode) .quick-manage { display: none; }
.quick-links-content { max-height: calc(min(88vh, 760px) - 74px); overflow: auto; padding: 10px 14px 14px; }
.quick-links-toolbar { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-links-toolbar .toolbar-button { min-height: 30px; }
.quick-links-hint { max-width: 720px; margin: 8px 0; color: #a9bdcb; font-size: 11px; line-height: 1.4; }
.quick-links-status { margin: 4px 0; color: #d7edaa; font-size: 11px; }
.quick-links-status.error { color: #ffaaa3; }
.quick-links-form { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; margin: 9px 0 12px; border: 1px solid #35536a; border-radius: 8px; padding: 9px; }
.quick-links-form strong { flex-basis: 100%; font-size: 12px; }
.quick-links-form label { display: grid; flex: 1 1 150px; gap: 3px; color: #cbd9e2; font-size: 11px; }
.quick-links-form input, .quick-links-form select { min-width: 0; min-height: 32px; border: 1px solid #405d72; border-radius: 6px; padding: 5px 7px; color: #edf4f8; background: #0b2941; }
.quick-form-actions { display: flex; gap: 5px; }
.quick-form-actions .save-button, .quick-form-actions .toolbar-button { min-height: 32px; }
.quick-categories { display: flex; flex-wrap: wrap; align-items: start; gap: 14px; }
.quick-category { width: 250px; max-width: 100%; min-width: 0; }
.quick-category-heading, .quick-link-row { display: flex; align-items: center; gap: 3px; min-width: 0; }
.quick-category-heading { margin: 3px 0 4px; padding-bottom: 4px; border-bottom: 1px solid #405d72; }
.quick-name { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #dff0fa; font-size: 12px; font-weight: 700; }
.quick-link-row { min-height: 27px; }
.quick-link-row .quick-name { font-weight: 400; }
.quick-link-row a.quick-name, .quick-link-row button.quick-name { border: 0; padding: 2px 0; color: #a9ddff; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.quick-link-row a.quick-name:hover, .quick-link-row button.quick-name:hover { color: #fff; text-decoration: underline; }
.quick-action { flex: 0 0 auto; border: 0; border-radius: 4px; padding: 3px 4px; color: #b7cddd; background: transparent; font-size: 11px; text-decoration: none; }
.quick-action:hover { color: white; background: #24455e; }
.quick-action:disabled { opacity: .35; cursor: default; }
.quick-empty { margin: 6px 0; color: #a9bdcb; font-size: 11px; }
.options-dialog { max-height: min(90vh, 700px); }
.view-options { display: grid; gap: 10px; margin: 0; border: 0; padding: 0; }
.view-options legend { margin-bottom: 12px; color: #e6eef3; font-size: 13px; font-weight: 750; }
.options-content { max-height: min(68vh, 520px); overflow: auto; padding: 18px 20px; }
.view-options label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; column-gap: 8px; border: 1px solid #35536a; border-radius: 9px; padding: 11px; color: #edf4f8; background: #0b2941; font-size: 12px; font-weight: 700; cursor: pointer; }
.view-options input { grid-row: span 2; width: 16px; height: 16px; margin: 0; accent-color: var(--lime); }
.view-options label span { color: #a9bdcb; font-size: 10px; font-weight: 400; }
.row-display-options { display: grid; gap: 10px; margin: 20px 0 0; border: 0; padding: 0; }
.row-display-options legend { margin-bottom: 2px; color: #e6eef3; font-size: 13px; font-weight: 750; }
.range-option { display: grid; gap: 8px; border: 1px solid #35536a; border-radius: 9px; padding: 11px; color: #edf4f8; background: #0b2941; font-size: 12px; font-weight: 700; }
.range-option > span { display: flex; justify-content: space-between; gap: 10px; }
.range-option output { color: #b4ed45; font-variant-numeric: tabular-nums; }
.range-option input[type="range"] { width: 100%; margin: 2px 0; accent-color: var(--lime); }
.task-editor .editor-body { padding-bottom: 22px; }
.task-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
.task-editor .form-grid .wide-field { grid-column: auto; }
.task-editor .schedule-fields { grid-column: auto; }
.task-editor #itemPriority.priority-select-A { border-color: #e53935; background: #542322; }
.task-editor #itemPriority.priority-select-B { border-color: #2676d2; background: #18395c; }
.task-editor #itemPriority.priority-select-C { border-color: #61c554; color: #e6ffe2; background: #244b27; }
.task-editor #itemPriority option[value="A"] { color: #fff; background: #e53935; }
.task-editor #itemPriority option[value="B"] { color: #fff; background: #2676d2; }
.task-editor #itemPriority option[value="C"] { color: #10220e; background: #61c554; }
.task-editor .editor-heading { border-bottom-color: var(--blue); }
.project-editor .editor-heading { border-bottom-color: var(--purple); }
.link-dialog, .backup-dialog { width: min(440px, calc(100vw - 28px)); max-width: none; border: 1px solid #405e73; border-radius: 15px; padding: 0; color: var(--ink); background: #071d31; box-shadow: 0 24px 90px #000b; }
.link-dialog::backdrop, .backup-dialog::backdrop { background: #020a12c9; backdrop-filter: blur(3px); }
.replace-backup-button { min-height: 38px; border: 1px solid #a34a4a; border-radius: 9px; padding: 0 13px; color: #ffd5d1; background: #532c35; font-size: 12px; font-weight: 700; }
.link-form-body { display: grid; gap: 7px; padding: 16px 20px; color: #c5d3dd; font-size: 11px; }
.link-form-body input { min-height: 40px; border: 1px solid #405d72; border-radius: 8px; padding: 8px 10px; color: #edf4f8; background: #0b2941; font-size: 12px; }
.link-form-body p { margin: 0; line-height: 1.6; }
.download-backup { display: inline-flex; align-items: center; text-decoration: none; }
.help-content { max-height: min(74vh, 700px); overflow: auto; padding: 5px 20px 20px; }
.help-content section { border-bottom: 1px solid #29475d; padding: 12px 0; }
.help-content h3 { margin: 0 0 5px; color: #dbecf6; font-size: 13px; }
.help-content p { margin: 0; color: #b2c3cf; font-size: 11px; line-height: 1.65; }
.privacy-note { margin-top: 15px !important; border-left: 3px solid var(--orange); padding: 8px 10px; background: #f3942114; }
.toast { position: fixed; z-index: 25; right: 20px; bottom: 20px; max-width: min(390px, calc(100vw - 32px)); transform: translateY(15px); opacity: 0; border: 1px solid #547087; border-radius: 10px; padding: 11px 14px; color: #eff6f8; background: #0b2a42; box-shadow: 0 8px 25px #0008; font-size: 12px; pointer-events: none; transition: opacity .16s, transform .16s; }
.toast.visible { transform: translateY(0); opacity: 1; }

@media (min-width: 901px) {
  .dashboard-grid > .category-todo, .dashboard-grid > .category-followup { min-height: 0; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .masthead { grid-template-columns: 160px minmax(210px, 1fr) minmax(100px, 29%) 145px; }
  .masthead-brand { padding: 14px; }
  .masthead-brand img { width: 132px; }
  .masthead-tools { gap: 8px; padding-right: 12px; }
  .storage-indicator { padding: 6px 7px; font-size: 9px; }
  .app-frame { grid-template-columns: 150px minmax(0, 1fr); }
  .toolbar { gap: 7px; padding: 8px; }
  .toolbar-primary, .toolbar-actions { gap: 6px; }
  .search-box { width: min(280px, 25vw); }
  .toolbar-select, .filter-label { gap: 4px; font-size: 10px; }
  .toolbar select { max-width: 130px; }
  .panel-heading { gap: 5px; padding: 0 7px; }
  .panel-icon { width: 25px; height: 25px; }
  .panel-sort { width: 65px; }
  .task-row { grid-template-columns: 20px minmax(0, 1fr) max-content 24px; font-size: max(8px, calc(var(--task-row-font-size, 11px) - 1px)); }
  .dashboard-view { padding: 8px; }
  .dashboard-grid { gap: 8px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .masthead { grid-template-columns: 150px minmax(210px, 1fr) minmax(100px, 22%) 130px; }
  .masthead-brand { padding: 12px; }
  .masthead-brand img { width: 125px; }
  .masthead-title { padding-left: 14px; }
  .masthead-photo { inset-inline: 46% 0; }
  .app-frame { grid-template-columns: 136px minmax(0, 1fr); }
  .toolbar { min-height: 62px; flex-basis: 62px; flex-wrap: wrap; }
  .search-box { width: 225px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-button { padding: 0 7px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .project-stack { display: contents; }
  .panel-heading { gap: 6px; padding: 0 7px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-sort { width: 68px; }
}
@media (max-width: 700px) {
  html, body { overflow: hidden; }
  .workspace { min-height: 0; }
  .masthead, .sidebar { display: none; }
  .app-frame { display: block; min-height: 0; }
  .main-content { height: 100%; }
  .mobile-topbar { height: 50px; flex: 0 0 50px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border-bottom: 1px solid #26465d; background: #051a2c; }
  .mobile-topbar a { display: flex; align-items: center; }
  .mobile-topbar img { width: 87px; height: auto; border-radius: 2px; }
  .mobile-topbar strong { flex: 1; font-size: 14px; }
  .mobile-topbar .icon-button { width: 32px; height: 32px; }
  .quick-links-dialog { min-width: 0; max-width: calc(100vw - 20px); }
  .toolbar { min-height: 54px; flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: 6px; padding: 7px 9px; }
  .toolbar-primary { flex: 1; min-width: 0; }
  .toolbar-actions { flex: 0 0 auto; }
  .search-box { width: 100%; height: 36px; }
  .toolbar-select { display: none; }
  .filter-label { font-size: 0; }
  .filter-label select { width: 93px; max-width: 93px; font-size: 10px; }
  .toolbar-actions .toolbar-button { min-height: 33px; padding: 0 7px; font-size: 9px; }
  .live-status { top: 58px; }
  .dashboard-view { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 7px 8px 8px; }
  .mobile-category-summaries { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .summary-button { min-width: 0; min-height: 43px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; border: 1px solid #38566d; border-radius: 9px; color: #dae5eb; background: #0a253c; font-size: 9px; }
  .summary-button span { max-width: 100%; overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
  .summary-button strong { font-size: 12px; }
  .summary-button.active { border-color: var(--summary-accent); color: white; background: color-mix(in srgb, var(--summary-accent) 17%, #092238); }
  .dashboard-grid { min-height: 0; flex: 1; display: block; }
  .dashboard-grid > .list-panel, .project-stack { display: none; }
  .dashboard-grid > .list-panel.mobile-active { height: 100%; display: flex; }
  .project-stack.mobile-active { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .project-stack > .list-panel { display: none; }
  .project-stack > .list-panel.mobile-active { height: 100%; min-height: 0; display: flex; }
  .panel-heading { height: 48px; flex-basis: 48px; padding: 0 10px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading h2 small { font-size: 10px; }
  .panel-icon { width: 27px; height: 27px; }
  .panel-sort { margin-left: auto; width: 80px; padding: 5px 18px 5px 5px; font-size: 9px; }
  .add-item { width: 33px; }
  .panel-scroll { overflow: auto; }
  .list-column-heading { height: 32px; grid-template-columns: 33px minmax(0, 1fr) 33px; font-size: 10px; }
  .item-list { padding: 0 7px 10px; }
  .task-row { min-height: 52px; grid-template-columns: 36px minmax(0, 1fr) max-content 35px; gap: 6px; padding: var(--task-row-spacing, 2px) 4px; font-size: calc(var(--task-row-font-size, 11px) + 2px); }
  .task-check { width: 21px; height: 21px; margin-left: 5px; }
  .task-summary { line-height: 1.35; }
  .priority-pill { min-width: 28px; height: 27px; font-size: 12px; }
  .row-menu { width: 34px; height: 34px; font-size: 22px; }
  .task-due { grid-column: 2 / 4; margin-top: -3px; font-size: 10px; }
  .dashboard-grid.single-line-view .task-row { grid-template-columns: 32px minmax(0, 1fr) max-content max-content 34px; }
  .dashboard-grid.single-line-view .task-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .dashboard-grid.single-line-view .task-due { grid-column: auto; margin: 0; font-size: 9px; }
  .mobile-nav { position: relative; z-index: 4; height: calc(57px + env(safe-area-inset-bottom)); flex: 0 0 calc(57px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #355268; background: #061b2d; }
  .mobile-nav-link { display: grid; place-content: center; justify-items: center; gap: 1px; border: 0; border-radius: 9px; color: #aabdc9; background: transparent; font-size: 9px; }
  .mobile-nav-link span { font-size: 18px; }
  .mobile-nav-link span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .mobile-nav-link.active { color: #b4ed45; background: #18364a; }
  .calendar-screen { padding: 12px 9px; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 9px; }
  .calendar-toolbar h1 { font-size: 20px; }
  .calendar-controls { width: 100%; flex-wrap: wrap; }
  .calendar-controls > strong { min-width: 100px; flex: 1; font-size: 12px; }
  .view-switch { margin-left: auto; }
  .calendar-content { display: flex; flex-direction: column; overflow: auto; }
  .calendar-grid { min-height: 310px; flex: 0 0 310px; grid-template-rows: 28px repeat(6, minmax(40px, 1fr)); }
  .calendar-week-row { min-height: 40px; }
  .calendar-day { padding: 28px 3px 3px; }
  .calendar-week-row > .calendar-day { padding-top: 48px; }
  .calendar-day-number { width: 19px; height: 19px; font-size: 9px; }
  .calendar-event-chip { padding: 2px; font-size: 7px; }
  .day-agenda { min-height: 100px; overflow: visible; }
  .calendar-grid.week-view { grid-template-rows: 28px minmax(150px, 1fr); }
  .calendar-grid.day-view { grid-template-rows: 28px minmax(150px, 1fr); }
  .editor-dialog { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .editor-form { height: 100%; max-height: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .editor-heading { min-height: 57px; flex: 0 0 57px; padding: 8px 13px; }
  .editor-heading h2 { font-size: 17px; }
  .editor-body { flex: 1; padding: 12px 13px; overscroll-behavior: contain; }
  .form-grid { gap: 9px; }
  .form-grid label { font-size: 10px; }
  .form-grid input, .form-grid select { min-height: 40px; font-size: 12px; }
  .editor-footer { min-height: 59px; flex: 0 0 59px; padding: 7px 13px; }
  .editor-footer button { min-height: 42px; }
  .help-dialog { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .help-dialog .editor-heading { min-height: 60px; }
  .help-content { max-height: calc(100dvh - 60px); padding: 4px 15px 20px; }
  .help-content p { font-size: 12px; }
  .menu-dialog, .options-dialog { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .menu-dialog[open] { display: flex; flex-direction: column; }
  .workspace-menu-links { grid-template-columns: 1fr; overflow: auto; }
  .workspace-menu-links a { min-height: 44px; font-size: 13px; }
  .menu-dialog .editor-footer { margin-top: auto; }
  .options-dialog .editor-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .context-menu { position: fixed; right: 10px; bottom: calc(63px + env(safe-area-inset-bottom)); left: auto !important; top: auto !important; max-height: min(60vh, 460px); }
  .context-menu button { min-height: 42px; font-size: 13px; }
  .toast { right: 10px; bottom: calc(65px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .toolbar-actions .toolbar-button { padding-inline: 5px; }
  .filter-label select { width: 81px; max-width: 81px; }
  .summary-button { min-height: 40px; }
  .summary-button span { font-size: 7px; }
  .panel-sort { width: 69px; }
}
@media (max-height: 500px) and (max-width: 700px) {
  .mobile-topbar { height: 42px; flex-basis: 42px; }
  .toolbar { min-height: 46px; }
  .dashboard-view { padding-top: 4px; }
  .mobile-category-summaries { gap: 4px; }
  .summary-button { min-height: 34px; }
  .summary-button span { display: none; }
  .panel-heading { height: 40px; flex-basis: 40px; }
  .mobile-nav { height: calc(49px + env(safe-area-inset-bottom)); flex-basis: calc(49px + env(safe-area-inset-bottom)); }
  .calendar-toolbar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .calendar-grid { min-height: 220px; flex-basis: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
