:root {
  --ink: #153b39;
  --muted: #617977;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --teal: #2c716b;
  --teal-dark: #123d3b;
  --mint: #dbe9df;
  --coral: #e97b5f;
  --amber: #daa84e;
  --line: #d8ded7;
  --shadow: 0 18px 50px rgba(24, 60, 56, 0.1);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }

.page-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
  padding: 24px 28px;
}

.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand strong { display: block; font-size: 18px; letter-spacing: -0.4px; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.brand-mark { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(21, 59, 57, .25); border-radius: 50%; }
.brand-mark span { position: absolute; border: 1px solid var(--teal); border-radius: 50%; }
.brand-mark span:nth-child(1) { width: 10px; height: 10px; background: var(--coral); border-color: var(--coral); }
.brand-mark span:nth-child(2) { width: 24px; height: 24px; opacity: .6; }
.brand-mark span:nth-child(3) { width: 34px; height: 34px; opacity: .25; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .filter:focus-visible, .icon-button:focus-visible, .text-button:focus-visible, .task-check:focus-visible, .task-menu button:focus-visible { outline: 3px solid rgba(233, 123, 95, .35); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--teal-dark); box-shadow: 0 7px 18px rgba(18, 61, 59, .16); }
.button-primary:hover { background: #1b504d; box-shadow: 0 9px 22px rgba(18, 61, 59, .22); }
.button-primary span { font-size: 20px; font-weight: 400; line-height: 0; }
.button-compact { min-height: 40px; padding: 0 15px; color: var(--teal-dark); background: var(--mint); }
.button-ghost { border-color: var(--line); background: transparent; }

.hero {
  position: relative;
  display: flex;
  min-height: 410px;
  align-items: center;
  max-width: 1180px;
  margin: auto;
  padding: 48px 28px 90px;
}
.hero::before { position: absolute; top: 12px; left: -20%; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 253, 248, .55); content: ""; }
.hero-copy { position: relative; z-index: 2; width: 65%; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -3.3px; }
h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 600; }
.hero-copy > p:last-child { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.radar-visual { position: absolute; right: -5px; width: 400px; height: 400px; opacity: .8; }
.radar-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(44, 113, 107, .22); border-radius: 50%; transform: translate(-50%, -50%); }
.radar-ring-one { width: 120px; height: 120px; }
.radar-ring-two { width: 245px; height: 245px; }
.radar-ring-three { width: 380px; height: 380px; }
.radar-visual::before, .radar-visual::after { position: absolute; top: 50%; left: 10px; width: 380px; height: 1px; background: rgba(44, 113, 107, .14); content: ""; }
.radar-visual::after { transform: rotate(90deg); }
.radar-sweep { position: absolute; top: 50%; left: 50%; width: 188px; height: 188px; overflow: hidden; transform-origin: 0 0; animation: sweep 8s linear infinite; }
.radar-sweep::after { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(44, 113, 107, .2), transparent 60%); clip-path: polygon(0 0, 100% 0, 0 100%); content: ""; }
.radar-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(233, 123, 95, .13); }
.dot-one { top: 27%; left: 62%; }
.dot-two { top: 62%; left: 27%; }
.dot-three { top: 74%; left: 70%; width: 6px; height: 6px; background: var(--amber); }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.workspace { position: relative; z-index: 2; max-width: 1180px; margin: auto; padding: 0 28px 70px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.stat { position: relative; min-height: 135px; padding: 25px 28px; background: var(--paper); }
.stat::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--teal); content: ""; }
.stat-urgent::before { background: var(--coral); }
.stat-done::before { background: var(--amber); }
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.stat strong { display: inline-block; margin: 5px 12px 0 0; font-size: 38px; line-height: 1; }
.stat small { color: #83928f; }

.list-panel { min-height: 390px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.list-heading h2 { margin: 0; font-size: 27px; letter-spacing: -1px; }
.list-heading .eyebrow { margin-bottom: 4px; }
.toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: 12px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 13px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; transform: translateY(-50%); }
.search-field input, .select-wrap select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.search-field input { padding: 0 14px 0 41px; }
.search-field input:focus, .select-wrap select:focus, .field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(44, 113, 107, .12); }
.filters { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f3f3ed; }
.filter { min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
.filter.is-active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(21, 59, 57, .08); }
.select-wrap select { min-width: 140px; padding: 0 30px 0 12px; }

.task-list { display: grid; gap: 10px; }
.task-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 17px 14px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; background: #fff; transition: border-color .18s, transform .18s, opacity .18s; }
.task-card[data-priority="high"] { border-left-color: var(--coral); }
.task-card[data-priority="low"] { border-left-color: var(--teal); }
.task-card:hover { border-top-color: #bccac3; border-right-color: #bccac3; border-bottom-color: #bccac3; transform: translateY(-1px); }
.task-card.is-completed { opacity: .62; border-left-color: #9ba8a4; }
.task-card.is-completed .task-title { text-decoration: line-through; }
.task-check { display: grid; width: 23px; height: 23px; margin-top: 1px; padding: 0; place-items: center; border: 2px solid #a9bab3; border-radius: 7px; color: #fff; background: transparent; }
.task-check:hover { border-color: var(--teal); }
.is-completed .task-check { border-color: var(--teal); background: var(--teal); }
.task-check svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.task-title { margin: 0 0 6px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.35; }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: 12px; }
.task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta .priority-label { font-weight: 700; text-transform: capitalize; }
.priority-label::before { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); content: ""; }
[data-priority="high"] .priority-label::before { background: var(--coral); }
[data-priority="low"] .priority-label::before { background: var(--teal); }
.overdue { color: #b44f3b; font-weight: 700; }
.task-notes { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-menu { display: flex; gap: 2px; }
.task-menu button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.task-menu button:hover { color: var(--ink); background: var(--cream); }
.task-menu .delete-task:hover { color: #b44f3b; }
.task-menu svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.empty-state, .no-results { display: grid; min-height: 290px; padding: 28px; place-items: center; align-content: center; text-align: center; }
.empty-state h3, .no-results h3 { margin: 18px 0 7px; font-size: 22px; letter-spacing: -.5px; }
.empty-state p, .no-results p { max-width: 480px; margin-bottom: 22px; color: var(--muted); line-height: 1.55; }
.empty-illustration { position: relative; width: 90px; height: 90px; }
.empty-ring { position: absolute; inset: 0; border: 1px solid #b9ccc2; border-radius: 50%; }
.empty-ring::before, .empty-ring::after { position: absolute; border: 1px solid #cddbd3; border-radius: 50%; content: ""; }
.empty-ring::before { inset: 15px; }
.empty-ring::after { inset: 30px; background: var(--mint); }
.empty-check { position: absolute; z-index: 2; top: 32px; left: 36px; color: var(--teal); font-weight: 700; }
.empty-illustration i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.empty-illustration i:nth-of-type(1) { top: 9px; right: 13px; }
.empty-illustration i:nth-of-type(2) { bottom: 14px; left: 5px; background: var(--amber); }
.empty-illustration i:nth-of-type(3) { right: -3px; bottom: 24px; width: 5px; height: 5px; background: var(--teal); }
.text-button { padding: 4px; border: 0; border-bottom: 1px solid var(--teal); color: var(--teal); background: transparent; font-weight: 700; }

footer { display: flex; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 28px 35px; color: #7c8d89; font-size: 12px; }
footer p { margin: 0; }

dialog { width: min(620px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(18, 52, 49, .28); }
dialog::backdrop { background: rgba(10, 37, 35, .58); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
#task-form { padding: 30px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 25px; }
.dialog-header h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.dialog-header .eyebrow { margin-bottom: 5px; }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: var(--cream); font-size: 25px; font-weight: 300; line-height: 1; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field legend { display: block; margin-bottom: 7px; color: #345451; font-size: 12px; font-weight: 700; }
.field b { color: var(--coral); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; }
.field input { height: 44px; padding: 0 12px; }
.field textarea { min-height: 85px; padding: 11px 12px; resize: vertical; }
.priority-field { padding: 0; border: 0; }
.priority-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.priority-options input { position: absolute; opacity: 0; pointer-events: none; }
.priority-options span { display: flex; height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 13px; font-weight: 600; }
.priority-options i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.priority-options label:nth-child(2) i { background: var(--amber); }
.priority-options label:nth-child(3) i { background: var(--coral); }
.priority-options input:checked + span { border-color: var(--teal); outline: 2px solid rgba(44, 113, 107, .13); background: #f3f8f4; }
.priority-options input:focus-visible + span { outline: 3px solid rgba(233, 123, 95, .35); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 7px; padding-top: 20px; border-top: 1px solid var(--line); }

.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: flex; min-width: 260px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-radius: 10px; color: #fff; background: var(--teal-dark); box-shadow: 0 12px 35px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast button { padding: 2px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .6); color: #fff; background: transparent; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .hero { min-height: 365px; padding-top: 30px; }
  .hero-copy { width: 82%; }
  .radar-visual { right: -170px; opacity: .5; }
  .toolbar { grid-template-columns: 1fr auto; }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-header { padding: 18px; }
  .header-add { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .header-add span { font-size: 23px; }
  .hero { min-height: 330px; padding: 40px 18px 65px; }
  .hero-copy { width: 100%; }
  h1 { font-size: 43px; letter-spacing: -2px; }
  .hero-copy > p:last-child { width: 88%; font-size: 15px; }
  .radar-visual { right: -240px; }
  .workspace { padding: 0 12px 50px; }
  .stats { grid-template-columns: repeat(3, 1fr); border-radius: 14px; }
  .stat { min-height: 110px; padding: 16px 11px; }
  .stat strong { display: block; margin: 7px 0 4px; font-size: 30px; }
  .stat small { font-size: 9px; line-height: 1.2; }
  .stat span { font-size: 9px; letter-spacing: .2px; }
  .list-panel { min-height: 390px; padding: 20px 14px; border-radius: 14px; }
  .list-heading { margin-bottom: 20px; }
  .list-heading h2 { font-size: 23px; }
  .toolbar { grid-template-columns: 1fr; }
  .search-field, .filters, .select-wrap { grid-column: auto; }
  .filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .task-card { grid-template-columns: auto minmax(0, 1fr); }
  .task-menu { grid-column: 2; justify-content: flex-end; margin-top: -7px; }
  .empty-state { padding: 20px 7px; }
  footer { display: block; padding: 0 18px 25px; text-align: center; }
  footer span { display: block; margin-top: 5px; }
  #task-form { padding: 22px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions .button { flex: 1; }
  .toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
}

/* CaregiverUnpaid neon theme */
:root {
  --ink: #f7fbff;
  --muted: #b8c7e8;
  --cream: #050b2b;
  --paper: #0b1640;
  --teal: #18f4dc;
  --teal-dark: #061033;
  --mint: #112c53;
  --coral: #ff4fa3;
  --amber: #ffd84a;
  --orange: #ff8a3d;
  --green: #75ff5b;
  --blue: #4f9dff;
  --line: #263c70;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 22px rgba(24, 244, 220, .06);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 157, 255, .14), transparent 32rem),
    radial-gradient(circle at 85% 32%, rgba(255, 79, 163, .1), transparent 28rem),
    #050b2b;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(79, 157, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 157, 255, .025) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
}

.brand { color: var(--ink); }
.brand small { color: var(--teal); }
.brand-mark { border-color: rgba(24, 244, 220, .55); box-shadow: 0 0 16px rgba(24, 244, 220, .2); }
.brand-mark span { border-color: var(--teal); }
.brand-mark span:nth-child(1) { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 10px var(--coral); }

.button { border-radius: 8px; text-transform: uppercase; letter-spacing: .04em; }
.button-primary { color: #03102c; background: var(--teal); box-shadow: 0 0 18px rgba(24, 244, 220, .3); }
.button-primary:hover { color: #03102c; background: #6bfff0; box-shadow: 0 0 24px rgba(24, 244, 220, .48); }
.button-compact { color: #07112e; background: var(--green); box-shadow: 0 0 14px rgba(117, 255, 91, .22); }
.button-utility { min-height: 40px; padding: 0 14px; border-color: var(--line); color: var(--muted); background: rgba(5, 11, 43, .65); font-size: 12px; }
.button-utility:hover { border-color: var(--blue); color: #fff; box-shadow: 0 0 14px rgba(79, 157, 255, .2); }
.button:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.button-ghost { border-color: var(--line); background: #081236; }
.button:focus-visible, .filter:focus-visible, .icon-button:focus-visible, .text-button:focus-visible, .task-check:focus-visible, .task-menu button:focus-visible { outline-color: var(--amber); }

.hero::before { background: rgba(79, 157, 255, .04); box-shadow: inset 0 0 80px rgba(79, 157, 255, .08); }
.eyebrow { color: var(--teal); text-shadow: 0 0 9px rgba(24, 244, 220, .38); }
h1 { text-shadow: 0 0 24px rgba(79, 157, 255, .12); }
h1 em { color: var(--coral); text-shadow: 0 0 14px rgba(255, 79, 163, .38); }
.hero-copy > p:last-child { color: var(--muted); }
.radar-ring { border-color: rgba(24, 244, 220, .26); box-shadow: 0 0 10px rgba(24, 244, 220, .05); }
.radar-visual::before, .radar-visual::after { background: rgba(24, 244, 220, .16); }
.radar-sweep::after { background: linear-gradient(135deg, rgba(24, 244, 220, .25), transparent 60%); }
.radar-dot { background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.dot-three { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.stats { background: var(--line); }
.stat { background: linear-gradient(135deg, #0d1945, #091337); }
.stat::before { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.stat-today::before { background: var(--yellow, #ffd84a); box-shadow: 0 0 12px var(--amber); }
.stat-urgent::before { background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.stat-done::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.stat span { color: var(--muted); }
.stat strong { color: #fff; }
.stat small { color: #8fa3cf; }

.list-panel { border-color: var(--line); background: rgba(9, 19, 55, .94); }
.list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.toolbar { grid-template-columns: minmax(190px, 1fr) minmax(0, auto); border-color: var(--line); }
.search-field input, .field input, .field textarea, .field select { border: 1px solid var(--line); color: var(--ink); background: #071132; }
.search-field input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #7f91bc; }
.search-field svg { stroke: var(--teal); }
.search-field input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline-color: rgba(24, 244, 220, .18); }
.filters { flex-wrap: wrap; justify-content: flex-end; border-color: var(--line); background: #071132; }
.filter { color: var(--muted); }
.filter.is-active { color: #06102f; background: var(--teal); box-shadow: 0 0 13px rgba(24, 244, 220, .25); }
.view-summary { min-height: 18px; margin: -6px 0 12px; color: #8fa3cf; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.task-card { border-color: var(--line); border-left-color: var(--blue); background: #0c1740; }
.task-card[data-status="urgent"] { border-left-color: var(--coral); box-shadow: inset 4px 0 12px rgba(255, 79, 163, .05); }
.task-card[data-status="waiting"] { border-left-color: var(--amber); }
.task-card[data-status="scheduled"] { border-left-color: var(--blue); }
.task-card[data-status="handled"] { border-left-color: var(--green); }
.task-card:hover { border-top-color: #3b5c9e; border-right-color: #3b5c9e; border-bottom-color: #3b5c9e; }
.task-card.is-completed { opacity: .68; border-left-color: var(--green); }
.task-check { border-color: #7286b5; }
.task-check:hover { border-color: var(--green); }
.is-completed .task-check { border-color: var(--green); color: #06102f; background: var(--green); box-shadow: 0 0 10px rgba(117, 255, 91, .25); }
.task-meta, .task-notes { color: var(--muted); }
.status-label { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
[data-status="urgent"] .status-label { color: var(--coral); }
[data-status="waiting"] .status-label { color: var(--amber); }
[data-status="scheduled"] .status-label { color: var(--blue); }
[data-status="handled"] .status-label { color: var(--green); }
.overdue { color: var(--orange); }
.task-menu button { color: #91a4ce; }
.task-menu button:hover { color: #fff; background: #162756; }
.task-menu .delete-task:hover { color: var(--coral); }

.empty-state p, .no-results p { color: var(--muted); }
.empty-ring, .empty-ring::before, .empty-ring::after { border-color: rgba(24, 244, 220, .35); }
.empty-ring::after { background: rgba(24, 244, 220, .1); }
.empty-check, .text-button { color: var(--teal); }
.empty-check { text-shadow: 0 0 9px var(--teal); }
.text-button { border-color: var(--teal); }
footer { color: #7f91bc; }

dialog { border: 1px solid var(--line); color: var(--ink); background: #0a153d; box-shadow: 0 25px 80px rgba(0, 0, 0, .6), 0 0 30px rgba(79, 157, 255, .12); }
dialog::backdrop { background: rgba(2, 5, 22, .78); }
.icon-button { color: var(--muted); background: #142451; }
.field > span, .field legend { color: #cad6f2; }
.field select { width: 100%; height: 44px; padding: 0 12px; border-radius: 9px; }
.status-guide { margin-top: -7px; }
.status-key { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.status-key span { padding: 7px 5px; border: 1px solid currentColor; border-radius: 6px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.status-key [data-status="urgent"] { color: var(--coral); }
.status-key [data-status="waiting"] { color: var(--amber); }
.status-key [data-status="scheduled"] { color: var(--blue); }
.status-key [data-status="handled"] { color: var(--green); }
.dialog-actions { border-color: var(--line); }
.toast { border: 1px solid var(--teal); background: #071132; box-shadow: 0 0 22px rgba(24, 244, 220, .22); }

@media (max-width: 800px) {
  .toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .filters { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .list-heading { align-items: flex-start; gap: 16px; }
  .list-actions { max-width: 160px; }
  .button-utility { min-height: 36px; padding: 0 10px; }
  .list-actions .button-compact { width: 100%; }
  .filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter { padding: 0 6px; }
  .status-key { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  :root { --ink: #111; --muted: #444; --paper: #fff; --line: #bbb; }
  body { color: #111; background: #fff; }
  body::before, .site-header, .hero, .stats, .toolbar, .list-actions, footer, .toast, .task-check, .task-menu, .empty-state, .no-results { display: none !important; }
  .workspace { max-width: none; padding: 0; }
  .list-panel { min-height: 0; padding: 0; border: 0; color: #111; background: #fff; box-shadow: none; }
  .list-heading { margin-bottom: 8px; }
  .list-heading::after { display: block; color: #444; content: "CaregiverUnpaid"; }
  .view-summary { color: #444; }
  .task-card { break-inside: avoid; border: 1px solid #bbb; color: #111; background: #fff; box-shadow: none !important; }
  .task-meta, .task-notes { color: #333; }
}
