:root {
  --ink: #102338;
  --muted: #65758b;
  --line: #dfe5ec;
  --canvas: #f4f6f8;
  --surface: #fff;
  --nav: #102338;
  --nav-soft: #19344f;
  --blue: #3563e9;
  --green: #0f9f6e;
  --red: #d6455d;
  --amber: #d99017;
  --violet: #7c3aed;
  --slate: #60758a;
  --radius: 14px;
  --shadow: 0 12px 35px rgba(16, 35, 56, .08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.5 'Segoe UI', Aptos, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: Aptos, 'Segoe UI', system-ui, sans-serif; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 22px; color: #fff; background: linear-gradient(165deg, #102338 0%, #132b43 58%, #0d2630 100%); display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 13px; color: #72e2b4; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; color: #fff; font-size: 22px; line-height: 1.05; letter-spacing: -.03em; }
.brand small { color: #9fb3c7; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; color: #b8c7d6; background: transparent; text-align: left; font-weight: 600; transition: .18s ease; }
.nav-item span { width: 21px; text-align: center; font-size: 18px; color: #8fa6bc; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(114,226,180,.13); box-shadow: inset 3px 0 #72e2b4; }
.nav-item.active span { color: #72e2b4; }
.nav-separator { margin: 24px 12px 7px; color: #738da5; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.nav-separator-first { margin-top: 2px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 7px; padding: 0 10px; }
.sidebar-footer small { color: #7890a5; font-size: 11px; }
.logout-link { color: #c7d2dc; font-size: 13px; text-decoration: none; }
.logout-link:hover { color: #fff; }

.main-content { min-width: 0; }
.content-inner { max-width: 1500px; margin: 0 auto; padding: 38px clamp(22px, 4vw, 58px) 70px; }
.mobile-header { display: none; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-header h1 { margin: 4px 0 7px; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.page-header p { margin: 0; color: var(--muted); font-size: 15px; }
.eyebrow { color: #6a7b8d; font-size: 10px; font-weight: 800; letter-spacing: .17em; }

.button { min-height: 40px; border: 1px solid transparent; border-radius: 10px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); background: #fff; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(53,99,233,.2); }
.button-primary:hover { background: #2954d4; }
.button-dark { color: #fff; background: var(--ink); }
.button-ghost { border-color: var(--line); background: #fff; }
.button-warning { color: #fff; background: #b85f22; align-self: end; }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.button-large { width: 100%; min-height: 48px; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #66788a; background: #fff; display: grid; place-items: center; font-size: 16px; }
.icon-button:hover { color: var(--ink); border-color: #b8c3cf; }
.icon-button.danger:hover { color: var(--red); border-color: #f2bcc5; background: #fff7f8; }

.domain-tabs { margin-bottom: 20px; padding: 5px; display: inline-flex; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: #e9edf2; }
.domain-tab { border: 0; border-radius: 8px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; color: #68798a; background: transparent; font-size: 13px; font-weight: 700; }
.domain-tab span { width: 7px; height: 7px; border-radius: 50%; background: var(--domain); opacity: .7; }
.domain-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(16,35,56,.1); }
.domain-tab.active span { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--domain) 17%, transparent); }

.quick-add { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.quick-add form { padding: 14px; display: grid; grid-template-columns: minmax(190px, .7fr) minmax(240px, 1.35fr) 150px 160px auto; gap: 10px; align-items: center; }
.quick-label { display: flex; align-items: center; gap: 10px; }
.quick-label > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #edf2ff; font-size: 20px; }
.quick-label strong, .quick-label small { display: block; }
.quick-label small { margin-top: 2px; color: var(--muted); font-size: 10px; }
input, select, textarea { width: 100%; border: 1px solid #d5dde6; border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #6d8fed; box-shadow: 0 0 0 3px rgba(53,99,233,.11); }
textarea { resize: vertical; }

.metrics { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.metrics article { min-height: 78px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.75); }
.metrics strong, .metrics small { display: block; }
.metrics strong { font-family: Aptos, 'Segoe UI', system-ui, sans-serif; font-size: 23px; line-height: 1.1; }
.metrics small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.metric-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.metric-icon.blue { color: var(--blue); background: #edf2ff; }.metric-icon.red { color: var(--red); background: #fff0f3; }.metric-icon.amber { color: var(--amber); background: #fff6e5; }.metric-icon.green { color: var(--green); background: #e9f9f3; }

.filters { margin-bottom: 18px; display: flex; gap: 9px; align-items: center; }
.filters select { width: auto; min-width: 150px; min-height: 36px; padding: 7px 30px 7px 10px; font-size: 12px; }
.search-field { min-width: 260px; max-width: 470px; flex: 1; position: relative; }
.search-field span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8795a4; font-size: 18px; }
.search-field input { min-height: 36px; padding: 7px 10px 7px 35px; font-size: 13px; }

.daily-grid { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(450px, 1.35fr); gap: 18px; align-items: start; }
.completed-sections, .right-sections { display: grid; gap: 18px; }
.task-section { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.74); }
.section-heading { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.section-heading > span { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; color: #5f7183; background: #e8edf2; font-size: 11px; font-weight: 800; }
.date-heading input { width: 132px; padding: 7px 8px; font-size: 11px; }.heading-actions { display: flex; align-items: center; gap: 7px; }.heading-actions > span { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; color: #5f7183; background: #e8edf2; font-size: 11px; font-weight: 800; }.heading-actions .icon-button { width: 32px; height: 32px; }
.date-heading > div span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.today-column { border-top: 3px solid var(--blue); }.late-column { border-top: 3px solid var(--red); }.upcoming-column { border-top: 3px solid var(--violet); }.completed-today-column { border-top: 3px solid var(--green); }.completed-yesterday-column { border-top: 3px solid var(--amber); }.completed-earlier-column { border-top: 3px solid var(--slate); }
.task-list { display: grid; gap: 8px; }
.task-card { --task-domain: #65758b; position: relative; min-width: 0; padding: 12px 10px 12px 12px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: start; border: 1px solid #e0e6ec; border-left: 3px solid var(--task-domain); border-radius: 10px; background: #fff; transition: box-shadow .15s, transform .15s; }
.today-column .task-card { border-left-color: var(--blue); }
.late-column .task-card { border-left-color: var(--red); }
.upcoming-column .task-card { border-left-color: var(--violet); }
.completed-today-column .task-card { border-left-color: var(--green); }
.completed-yesterday-column .task-card { border-left-color: var(--amber); }
.completed-earlier-column .task-card { border-left-color: var(--slate); }
.task-card:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(16,35,56,.07); }
.task-card.is-overdue { background: #fffafa; }
.task-check { width: 22px; height: 22px; padding: 0; border: 1.5px solid #b8c4cf; border-radius: 7px; color: #fff; background: #fff; font-size: 13px; font-weight: 900; }
.status-done .task-check { border-color: var(--green); background: var(--green); }
.status-done h3 { color: #4f5f70; }
.task-main { min-width: 0; }
.task-title-row { display: flex; align-items: center; gap: 8px; }
.task-title-row h3 { min-width: 0; margin: 0; font: 600 13px/1.35 'Segoe UI', Aptos, system-ui, sans-serif; overflow-wrap: anywhere; }
.priority { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.priority-low { color: #5e7184; background: #eaf0f4; }.priority-high { color: #9a6509; background: #fff0c7; }.priority-urgent { color: #bd3048; background: #ffe5ea; }
.task-meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 7px 12px; color: #83909d; font-size: 10px; }
.task-meta span { white-space: nowrap; }
.domain-dot::before { content: ''; width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--dot); }
.text-danger { color: var(--red) !important; font-weight: 700; }
.archive-badge { padding: 1px 5px; border-radius: 4px; color: #566b80; background: #eaf0f4; }
.recurrence-badge { padding: 1px 5px; border-radius: 4px; color: #6650a3; background: #f0ebff; font-weight: 700; }
.task-note { margin: 7px 0 0; color: #65758b; font-size: 11px; line-height: 1.45; }
.task-actions { align-self: center; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.task-card:hover .task-actions, .task-actions:focus-within { opacity: 1; }
.task-actions .icon-button { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.empty-state { min-height: 76px; padding: 16px; display: grid; place-items: center; align-content: center; gap: 4px; color: #8997a6; border: 1px dashed #d6dee6; border-radius: 9px; text-align: center; }
.empty-state span { color: #a5b1bd; font-size: 20px; }.empty-state p { margin: 0; font-size: 11px; }

.planning-list, .history-list { display: grid; gap: 15px; }
.planning-group { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); }
.planning-date strong, .planning-date span { display: block; }.planning-date strong { text-transform: capitalize; }.planning-date span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.large-empty { min-height: 280px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.large-empty > span { font-size: 38px; color: #aab6c1; }.large-empty h2 { margin: 10px 0 4px; color: var(--ink); }.large-empty p { margin: 0; }

.daily-report-hero { margin-bottom: 18px; padding: 23px 26px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-radius: 16px; color: #fff; background: linear-gradient(125deg, #102338, #1a4660 72%, #17644f); box-shadow: 0 16px 38px rgba(16,35,56,.16); }
.daily-report-hero .eyebrow { color: #72e2b4; }.daily-report-hero h2 { margin: 5px 0 4px; font-size: 24px; text-transform: capitalize; }.daily-report-hero p { margin: 0; color: #bed0dc; font-size: 12px; }
.daily-report-hero label { width: 190px; flex: 0 0 auto; color: #c8d6df; font-size: 10px; font-weight: 700; }.daily-report-hero input { margin-top: 6px; color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); color-scheme: dark; }
.daily-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.daily-report-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.daily-report-card > header { min-height: 82px; padding: 16px 18px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.daily-report-card header h2 { margin: 3px 0 0; font-size: 14px; text-transform: capitalize; }.daily-report-card header > strong { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #55697d; background: #e9eef3; font-size: 11px; }
.report-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; font-weight: 800; }.report-done .report-icon { color: var(--green); background: #e9f9f3; }.report-planned .report-icon { color: var(--blue); background: #edf2ff; }.report-blocked .report-icon { color: var(--amber); background: #fff6e5; }
.daily-report-list { padding: 8px; display: grid; gap: 3px; }.daily-report-list article { padding: 10px; display: grid; grid-template-columns: 7px minmax(0,1fr); gap: 9px; align-items: start; border-radius: 9px; }.daily-report-list article:hover { background: #f5f7f9; }.daily-report-list strong, .daily-report-list small { display: block; }.daily-report-list strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }.daily-report-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.report-task-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--dot); }.daily-report-empty { min-height: 120px; padding: 25px; display: grid; place-items: center; align-content: center; gap: 6px; color: #8695a4; text-align: center; font-size: 11px; }.daily-report-empty span { font-size: 21px; color: #a8b4bf; }

.settings-grid { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { min-height: 220px; padding: 26px; display: grid; grid-template-columns: 50px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.settings-card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; font-weight: 700; }
.accent-blue .settings-card-icon { color: var(--blue); background: #edf2ff; }.accent-violet .settings-card-icon { color: var(--violet); background: #f3edff; }
.settings-card h2 { margin: 5px 0 8px; font-size: 20px; }.settings-card p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
#restore-form { display: grid; gap: 10px; justify-items: start; }
#restore-form input[type="file"] { width: 100%; }
#restore-form .button { width: auto; justify-self: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cleanup-panel { padding: 25px; }
.panel-heading { margin-bottom: 20px; display: flex; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 5px 0; font-size: 20px; }.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.safety-pill { height: fit-content; padding: 6px 9px; border-radius: 20px; color: var(--green); background: #e9f9f3; font-size: 10px; font-weight: 800; }
.cleanup-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 13px; align-items: end; }
.settings-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.settings-columns .panel { padding: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-stack { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; color: #34495d; font-size: 12px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }.field small { color: var(--muted); font-size: 10px; font-weight: 400; }
.recurrence-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.recurrence-series-note { color: var(--muted); font-style: italic; font-weight: 400; }
fieldset.field { padding: 0; border: 0; } fieldset.field legend { margin-bottom: 7px; }
.day-picker { display: flex; gap: 7px; }.day-picker label input { position: absolute; opacity: 0; }.day-picker span { width: 42px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 11px; }.day-picker input:checked + span { color: #fff; border-color: var(--blue); background: var(--blue); }
.holiday-list { margin: 0; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 13px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fb; }.holiday-list li { min-width: 0; padding: 5px 7px; display: flex; align-items: center; gap: 8px; border-radius: 7px; background: #fff; }.holiday-list li span { flex: 0 0 auto; color: var(--blue); font-size: 10px; font-weight: 800; }.holiday-list li strong { min-width: 0; color: #526578; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch-field { display: flex; align-items: center; gap: 12px; }.switch-field > input { position: absolute; opacity: 0; }.switch { width: 43px; height: 24px; flex: 0 0 auto; border-radius: 15px; background: #b8c4cf; position: relative; transition: .18s; }.switch::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .18s; }.switch-field > input:checked + .switch { background: var(--blue); }.switch-field > input:checked + .switch::after { transform: translateX(19px); }.switch-field strong, .switch-field small { display: block; }.switch-field small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.panel-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

.modal { width: min(650px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(5,22,38,.32); }
.modal::backdrop { background: rgba(7,24,40,.62); backdrop-filter: blur(3px); }
.modal form { padding: 25px; }.modal-header { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-start; }.modal-header h2 { margin: 4px 0 0; }.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 9px; }.modal-copy textarea { min-height: 330px; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.6; }
.toast-region { position: fixed; right: 25px; bottom: 25px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: 0 12px 35px rgba(7,24,40,.25); opacity: 0; transform: translateY(12px); transition: .2s; font-weight: 600; }.toast.show { opacity: 1; transform: translateY(0); }.toast-error { background: #a93449; }
.alert { padding: 12px 14px; border-radius: 9px; font-size: 13px; }.alert-error { color: #9e2e43; border: 1px solid #f4c1ca; background: #fff1f3; }.first-password { margin-bottom: 18px; }
.fatal-error { min-height: 70vh; display: grid; place-items: center; align-content: center; text-align: center; }.fatal-error p { color: var(--muted); }

.login-body { min-height: 100vh; padding: 30px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 70% 20%, rgba(53,99,233,.23), transparent 32%), radial-gradient(circle at 20% 90%, rgba(15,159,110,.18), transparent 35%), #0d2032; }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; background: rgba(18,43,66,.84); box-shadow: 0 35px 90px rgba(0,0,0,.3); backdrop-filter: blur(18px); }
.brand-login { padding: 0 0 46px; }.login-copy .eyebrow { color: #72e2b4; }.login-copy h1 { margin: 7px 0 11px; font-size: 33px; line-height: 1.1; letter-spacing: -.04em; }.login-copy p { margin-bottom: 28px; color: #afc1d2; }
.login-form { display: grid; gap: 9px; }.login-form label { color: #c8d5df; font-size: 12px; font-weight: 700; }.login-form input { margin-bottom: 7px; color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }.login-card .alert { margin-bottom: 14px; }
.setup-form small { margin: -2px 0 10px; color: #94aabd; font-size: 10px; line-height: 1.45; }

@media (max-width: 1180px) {
  .quick-add form { grid-template-columns: minmax(170px, .8fr) 1.5fr 145px auto; }.quick-add select { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: 1fr; }
  .daily-report-grid { grid-template-columns: 1fr 1fr; }.report-blocked { grid-column: 1 / -1; }
  .completed-sections { order: 2; }
  .cleanup-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }.sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 260px; transition: transform .2s; box-shadow: 20px 0 50px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }
  .mobile-header { height: 60px; padding: 0 18px; display: flex; align-items: center; gap: 13px; color: #fff; background: var(--nav); }.mobile-header .icon-button { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }.mobile-brand { font-family: Aptos, 'Segoe UI', system-ui, sans-serif; font-weight: 800; }.mobile-brand small { color: #94a9bd; font-size: 10px; }
  .content-inner { padding: 25px 16px 55px; }.page-header { align-items: flex-start; flex-direction: column; }.page-header .button { width: 100%; }
  .quick-add form { grid-template-columns: 1fr 130px auto; }.quick-label { grid-column: 1 / -1; }.quick-add select { display: block; grid-column: 1 / 2; }.quick-add input[name="title"] { grid-column: 1 / -1; }
  .filters { flex-wrap: wrap; }.search-field { min-width: 100%; }.filters select { flex: 1; }
  .settings-grid, .settings-columns { grid-template-columns: 1fr; }.planning-group { grid-template-columns: 1fr; gap: 10px; }
  .daily-report-hero { align-items: flex-start; flex-direction: column; }.daily-report-hero label { width: 100%; }.daily-report-grid { grid-template-columns: 1fr; }.report-blocked { grid-column: auto; }
  .task-actions { opacity: 1; flex-wrap: wrap; justify-content: flex-end; max-width: 68px; }.task-card { grid-template-columns: 24px minmax(0,1fr) 68px; }
}

@media (max-width: 560px) {
  .login-body { padding: 14px; }.login-card { padding: 25px; }.brand-login { padding-bottom: 35px; }
  .domain-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }.domain-tab { justify-content: center; }
  .metrics { grid-template-columns: 1fr 1fr; }.metrics article { min-height: 68px; padding: 10px; }.metrics small { font-size: 9px; }
  .quick-add form { grid-template-columns: 1fr 1fr; }.quick-add input[name="due_date"], .quick-add select { grid-column: auto; }.quick-add .button { grid-column: 1 / -1; }
  .filters select { min-width: calc(50% - 5px); }.filters .button { width: 100%; }
  .task-section { padding: 12px; }.task-card { grid-template-columns: 22px minmax(0,1fr); }.task-actions { grid-column: 2; max-width: none; justify-content: flex-start; }
  .settings-card { padding: 20px; grid-template-columns: 1fr; }.settings-card-icon { width: 42px; height: 42px; }.cleanup-form, .form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.day-picker { flex-wrap: wrap; }
  .holiday-list { grid-template-columns: 1fr; }
  .modal form { padding: 19px; }.modal-actions { flex-direction: column-reverse; }.modal-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
