:root {
  font-family: 'Golos Text', 'Aptos', system-ui, sans-serif;
  color: #162340;
  background: #f1f4fa;
  font-synthesis: none;
  --ink: #162340;
  --muted: #556780;
  --blue: #234fcd;
  --line: #e3e9f4;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #5b7eef; outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell { width: min(100% - 64px, 1060px); margin-inline: auto; }
.topbar { border-bottom: 1px solid #dce4f2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); }
.brand-mark::after { content: ''; width: 14px; height: 8px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.today { color: var(--muted); font-size: .875rem; font-weight: 550; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 28%); align-items: start; gap: 28px; padding-block: 64px; }
h1 { margin: 0 0 26px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.065em; }
.add-task { display: flex; gap: 10px; margin-bottom: 22px; }
.add-task input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid #d6dfef; border-radius: 11px; background: white; color: var(--ink); }
.add-task input::placeholder { color: var(--muted); }
.add-button { min-height: 50px; padding: 0 17px; border: 0; border-radius: 11px; color: white; background: var(--blue); font-weight: 650; white-space: nowrap; }
.add-button span { margin-right: 3px; font-size: 1.3em; font-weight: 500; line-height: 0; vertical-align: -.04em; }
.add-button:hover:enabled { background: #183bb2; }

.task-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.filters { display: flex; gap: 5px; padding: 10px; border-bottom: 1px solid var(--line); }
.filters button { min-height: 40px; border: 0; border-radius: 8px; padding: 6px 12px; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.filters button:hover { background: #f1f4fa; }
.filters button[aria-pressed='true'] { background: #e9efff; color: #1f47b9; }
.filters span { margin-left: 4px; font-variant-numeric: tabular-nums; }

.task-list { list-style: none; padding: 0; margin: 0; }
.task-row { min-height: 65px; display: flex; align-items: center; gap: 10px; padding: 8px 13px 8px 18px; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-label { display: flex; flex: 1; align-items: center; gap: 13px; min-width: 0; cursor: pointer; }
.task-label input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.task-title { padding-block: 8px; overflow-wrap: anywhere; }
.task-row.is-completed .task-title { color: var(--muted); text-decoration: line-through; }
.task-row[aria-busy='true'] { opacity: .65; }
.task-row.is-queued .task-label, .task-row.is-queued input { cursor: default; }
.queue-label { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.delete-button { display: grid; place-content: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 1.5rem; }
.delete-button:hover { color: #a6233b; background: #fff0f1; }

.empty { display: grid; justify-items: center; align-content: center; min-height: 250px; padding: 28px 20px; text-align: center; }
.empty-icon { position: relative; width: 44px; height: 50px; margin-bottom: 18px; border: 2px solid #9bb1e9; border-radius: 9px; background: #edf2ff; }
.empty-icon::after { content: ''; position: absolute; inset: 14px 10px auto; height: 12px; border-block: 2px solid #6d8bda; }
.empty p { margin: 0; }
#empty-title { font-size: 1.1rem; font-weight: 700; }
#empty-detail { margin-top: 6px; color: var(--muted); }
#empty-detail:empty { display: none; }
.retry { margin-top: 16px; padding: 7px 10px; border: 0; border-radius: 8px; background: #edf2ff; color: #1f47b9; font-weight: 650; }
.notice { margin: 12px 0 0; color: #92243b; font-size: .9375rem; }
.notice:empty { margin: 0; }

.progress-card { border-radius: 16px; padding: 24px; color: white; background: #244ec6; }
.progress-card h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.progress-value { margin: 16px 0 13px; font-size: 3.2rem; line-height: 1; letter-spacing: -.055em; font-weight: 700; }
.progress-value span { font-size: .53em; margin-left: 3px; }
.progress-card progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #5679dd; }
.progress-card progress::-webkit-progress-bar { background: #5679dd; }
.progress-card progress::-webkit-progress-value { background: #fff; border-radius: 8px; }
.progress-card progress::-moz-progress-bar { background: #fff; border-radius: 8px; }
.progress-detail { margin: 12px 0 0; font-size: .875rem; color: #f0f4ff; }

@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 36px; }
  .shell { width: calc(100% - 40px); }
  .topbar-inner { min-height: 62px; }
  .empty { min-height: 210px; }
}

@media (max-width: 400px) {
  .shell { width: calc(100% - 28px); }
  .filters { gap: 2px; padding: 8px; }
  .filters button { padding-inline: 7px; }
  .add-task { gap: 7px; }
  .add-task input, .add-button { padding-inline: 9px; }
}
