:root { color-scheme: dark; --navy: #061426; --panel: #0c2035; --line: #839eb82c; --text: #edf5fc; --muted: #a3b9ce; --blue: #278edc; --cyan: #86d2ff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); font: 14px/1.5 "Segoe UI", Arial, sans-serif; background: radial-gradient(ellipse at 8% 9%, #15497a35, transparent 42%), var(--navy); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
::selection { color: #fff; background: #256eaa; }
.shell { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 16px; padding: 12px 18px; background: #eaf5ff; color: var(--navy); border-radius: 6px; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
.site-bar { background: #051222e8; border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { object-fit: contain; }
.brand > span { display: grid; }
.brand strong { font: 900 25px/1 "Arial Black", "Segoe UI", sans-serif; letter-spacing: -.06em; }
.brand strong span { color: #43a7f4; }
.brand small { color: #b8cde0; font-size: 8px; letter-spacing: .43em; margin-top: 6px; }
.site-bar nav { display: flex; gap: 28px; font-size: 13px; color: #bbd0e2; }
.site-bar nav a:hover, .page-footer a:hover { color: var(--cyan); }
.site-bar nav a:last-child span { margin-left: 8px; }
.intro { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; padding: 46px 0 30px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .16em; color: #8ecbfb; }
h1 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.13; letter-spacing: -.04em; font-weight: 650; margin: 13px 0 17px; }
h1 span { color: #9bb9d5; }
.intro-copy { color: var(--muted); max-width: 550px; font-size: 15px; line-height: 1.7; }
.privacy-note { display: flex; gap: 15px; padding: 18px 20px; border-left: 2px solid #3484be; background: #16345055; border-radius: 0 7px 7px 0; }
.privacy-note svg { width: 20px; height: 20px; color: #8acbf5; margin-top: 2px; }
.privacy-note strong { font-size: 13px; font-weight: 600; }
.privacy-note p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 7px; }
.summary { display: flex; align-items: center; gap: 0; padding: 17px 0; border-block: 1px solid var(--line); margin-bottom: 28px; }
.summary > div { display: grid; gap: 2px; padding: 0 38px; border-left: 1px solid var(--line); }
.summary > div:first-child { padding-left: 0; border: 0; }
.summary > div > span { font-size: 11px; color: var(--muted); }
.summary strong { font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.summary strong small { font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.summary-caption { margin-left: auto; color: #7392ae; font-size: 12px; }
.storage-warning { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #cc9c5460; border-radius: 7px; background: #553b193f; color: #ffe1ac; font-size: 13px; }
.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { background: linear-gradient(150deg, #10294055, transparent 65%), var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 35px #00000018; }
.editor { padding: 23px; }
.panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.heading-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #68bbf057; background: #1e79b921; color: #b8e3ff; font-size: 24px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.panel-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
label { display: block; color: #cbdfef; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
label > span { color: #81c4f7; }
input, textarea, select { width: 100%; border: 1px solid #728fa449; border-radius: 6px; background: #071a2d; color: #e8f3fc; padding: 10px 11px; min-height: 42px; }
input::placeholder, textarea::placeholder { color: #8099b0; opacity: 1; font-size: 12px; }
input:focus, textarea:focus, select:focus { border-color: #6fbeef; }
textarea { resize: vertical; min-height: 89px; max-height: 350px; }
form > input, form > textarea, form > .field-pair { margin-bottom: 17px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-pair > div { min-width: 0; }
.hours-field { position: relative; }
.hours-field input { padding-right: 32px; }
.hours-field span { position: absolute; right: 11px; top: 11px; font-size: 12px; color: var(--muted); pointer-events: none; }
.field-hint { color: #96adc2; font-size: 10px; margin-top: -9px; margin-bottom: 18px; }
.form-actions { display: grid; gap: 8px; margin-top: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border-radius: 6px; border: 1px solid #87a6bf50; padding: 11px 16px; min-height: 43px; font-size: 13px; font-weight: 600; }
.primary { background: linear-gradient(180deg, #1b88d7, #1169b0); border-color: #68bffd8a; color: #fff; box-shadow: inset 0 1px 0 #c1eaff24; }
.primary:hover { background: #268fd9; }
.primary > span:last-child { font-size: 19px; line-height: 1; }
.subtle { background: #13304a; color: #cfe1f0; }
.subtle:hover { background: #20435f; }
.danger { background: #812c38; border-color: #db7c8494; color: #fff; }
.danger:hover { background: #a33a46; }
.editor-note { font-size: 11px; color: #8da7bd; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.form-error { color: #ffb7b7; font-size: 12px; margin-bottom: 12px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 24px 20px; }
.list-heading .eyebrow { font-size: 9px; margin-bottom: 5px; }
.list-heading h2 { font-size: 24px; }
.local-badge { display: flex; align-items: center; gap: 7px; color: #9bb6cc; font-size: 10px; }
.local-badge i { width: 5px; height: 5px; border-radius: 50%; background: #76c6a0; }
.local-badge.unsaved i { background: #efb966; }
.list-tools { display: flex; align-items: center; gap: 15px; padding: 0 24px 21px; }
.search-field { position: relative; flex: 1; }
.search-field svg { position: absolute; top: 12px; left: 12px; width: 17px; height: 17px; color: #92abc0; pointer-events: none; }
.search-field input { padding-left: 37px; }
.sort-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9fb5ca; margin: 0; white-space: nowrap; }
.sort-label select { font-size: 12px; width: 130px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { font-size: 9px; font-weight: 600; color: #89a8c2; text-transform: uppercase; letter-spacing: .065em; background: #081c31; padding: 13px 12px; border-block: 1px solid var(--line); white-space: nowrap; }
td { padding: 18px 12px; border-bottom: 1px solid #748da31f; vertical-align: top; color: #a8bfd3; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #16466822; }
tbody tr.editing { background: #1b598f37; box-shadow: inset 3px 0 0 #78c6f8; }
td.task-name { width: 24%; font-size: 13px; font-weight: 600; color: #e0edf7; }
td.description { width: 27%; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
td.task-name, td.description { overflow-wrap: anywhere; }
td.hours { white-space: nowrap; color: #c5d8e8; font-variant-numeric: tabular-nums; }
.priority { display: inline-block; padding: 3px 8px; border-radius: 4px; border: 1px solid #8ea9c43a; font-size: 10px; line-height: 1.6; color: #b4cbe0; background: #32516a26; }
.priority.high { color: #ffe1a7; border-color: #d1a96046; background: #b1812222; }
.priority.urgent { color: #ffb8bd; border-color: #ed889446; background: #ab3c5022; }
.priority.low { color: #9cbaa9; border-color: #98c1a436; background: #42694d22; }
td.due { white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
td.due span { display: block; color: #7e9db6; font-size: 9px; margin-top: 3px; }
td.due.today span { color: #8dd2ff; }
td.due.overdue span { color: #ffbd99; }
.row-actions { display: flex; gap: 2px; }
.icon-button { display: inline-grid; place-items: center; border: 0; color: #9cbad2; background: transparent; padding: 7px; min-width: 32px; min-height: 32px; border-radius: 5px; }
.icon-button svg { width: 15px; height: 15px; }
.icon-button:hover { color: #dff3ff; background: #2873a739; }
.icon-button.delete:hover { color: #ffc4ca; background: #a8485638; }
.empty-state { display: grid; justify-items: center; align-content: center; text-align: center; padding: 45px 24px; min-height: 360px; border-top: 1px solid var(--line); }
.empty-state svg { width: 64px; height: 64px; color: #558db5; margin-bottom: 21px; background: radial-gradient(ellipse, #2267a344, transparent 75%); }
.empty-state h3 { font-size: 18px; font-weight: 500; color: #bad2e5; letter-spacing: -.025em; }
.empty-state p { color: #819db5; font-size: 12px; margin-top: 8px; max-width: 290px; }
.text-button { background: transparent; border: 0; color: #9dd7fd; padding: 10px; margin-top: 8px; }
.text-button:hover { text-decoration: underline; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 24px; border-top: 1px solid var(--line); color: #819eb6; font-size: 10px; }
.page-footer { display: flex; justify-content: space-between; gap: 25px; color: #7f9ab2; font-size: 11px; padding: 28px 0 32px; }
.page-footer a { color: #abc9df; }
dialog { width: min(430px, calc(100% - 32px)); padding: 26px; border: 1px solid #719abc66; background: #10273e; border-radius: 12px; color: var(--text); box-shadow: 0 18px 80px #0007; }
dialog::backdrop { background: #020c19bb; backdrop-filter: blur(3px); }
dialog h2 { font-size: 22px; margin-bottom: 14px; }
#delete-copy { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.delete-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #dceeff; color: #0a2944; box-shadow: 0 8px 30px #0004; border: 1px solid #fff6; border-radius: 7px; padding: 12px 19px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 30; max-width: calc(100% - 32px); width: max-content; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript { position: fixed; inset: 0 0 auto; padding: 15px; background: #6c3a19; color: #fff; text-align: center; z-index: 30; }
@media (max-width: 1190px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
  .editor { padding: 20px; }
  .intro { gap: 40px; }
  .summary-caption { display: none; }
  table { min-width: 630px; }
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 22px; padding-top: 35px; }
  .privacy-note { max-width: 600px; }
  .intro h1 br { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .editor { padding: 23px; }
  .editor form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .editor form > label { grid-column: 1 / -1; }
  .editor form > input, .editor form > textarea { grid-column: 1 / -1; }
  .editor form .field-pair, .field-hint, .form-actions, .form-error { grid-column: 1 / -1; }
  .editor form > label[for="task-due"] { grid-column: 1; grid-row: 7; }
  .editor form #task-due { grid-column: 1; grid-row: 8; margin-bottom: 0; }
  .form-actions { grid-column: 2 !important; grid-row: 8; margin-top: 0; }
  .form-error { margin-top: 15px; }
  .editor-note { margin-top: 17px; }
  .page-footer { font-size: 10px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .bar-inner { flex-wrap: wrap; gap: 8px; padding: 13px 0; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 22px; }
  .site-bar nav { font-size: 11px; gap: 18px; }
  .intro { padding: 28px 0 22px; gap: 20px; }
  h1 { font-size: 35px; }
  .intro h1 br { display: initial; }
  .intro-copy { font-size: 13px; }
  .privacy-note { padding: 15px; gap: 11px; }
  .privacy-note strong { font-size: 12px; }
  .privacy-note p { font-size: 11px; }
  .summary { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 14px; margin-bottom: 20px; }
  .summary > div { padding: 0 12px; }
  .summary > div > span { font-size: 9px; }
  .summary strong { font-size: 21px; }
  .summary strong small { font-size: 10px; }
  .summary > div:nth-child(2) { min-width: 0; }
  .editor { padding: 20px; }
  .editor form { display: block; }
  .editor form #task-due { margin-bottom: 17px; }
  .list-heading { padding: 20px; gap: 10px; }
  .list-heading h2 { font-size: 22px; }
  .local-badge { font-size: 9px; max-width: 100px; }
  .list-tools { flex-direction: column; align-items: stretch; padding: 0 20px 18px; gap: 10px; }
  .sort-label { justify-content: flex-end; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: block; }
  tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px; gap: 12px 16px; border-top: 1px solid var(--line); }
  td, th:first-child, td:first-child, th:last-child, td:last-child { padding: 0; border: 0; }
  td::before { content: attr(data-label); display: block; text-transform: uppercase; letter-spacing: .065em; color: #89a8c2; font-size: 8px; font-weight: 500; margin-bottom: 5px; }
  td.task-name, td.description { width: auto; grid-column: 1 / -1; }
  td.task-name { font-size: 15px; }
  td.actions { align-self: end; }
  td.actions::before { display: none; }
  .row-actions { justify-content: flex-end; gap: 6px; }
  .icon-button { background: #1a3c56; min-width: 36px; min-height: 36px; }
  .empty-state { min-height: 290px; padding: 38px 20px; }
  .list-footer { padding: 15px 20px; align-items: start; }
  .list-footer > span:last-child { max-width: 140px; text-align: right; }
  .page-footer { flex-direction: column; gap: 8px; padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
