@font-face { font-family: "ABC Areal"; font-weight: 700; src: url("/areal.woff2") format("woff2"); }
:root { color-scheme: dark; --background: #282828; background: var(--background); color: #ebdbb2; font: 1rem system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 42rem; min-height: 100dvh; margin: auto; padding-top: env(safe-area-inset-top); display: flex; flex-direction: column; }
canvas { display: block; width: 100%; height: 100%; }
#login, #status, #retry { margin-inline: 16px; }
#login { margin-top: 16px; }
.fields { display: flex; }
input, button { border: 0; border-radius: 0; padding: .7rem 1rem; min-height: 44px; font: inherit; }
input { background: #3c3836; color: #ebdbb2; flex: 1; min-width: 0; }
button { background: #b8bb26; color: #282828; font-weight: 750; cursor: pointer; }
:focus-visible { outline: 2px solid #fe8019; outline-offset: -2px; }
#status:empty { display: none; }
ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.task-row { height: 84px; overflow: hidden; background: #b8bb26; touch-action: pan-y; }
.task-face { display: block; width: 100%; height: 100%; padding: 8px 16px; background: var(--background); color: inherit; transition: transform 160ms ease-out; }
.task-row[data-dragging] .task-face { transition: none; }
footer { position: sticky; bottom: 0; margin-top: auto; padding-top: 16px; padding-bottom: env(safe-area-inset-bottom); background: var(--background); }
#record { width: 100%; height: 88px; padding: 16px 22px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#record[data-held], .task-face[data-held] { background: #fb4934; color: #282828; }
.task-row, .task-face, .task-face canvas { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (prefers-reduced-motion: reduce) { .task-face { transition: none; } }

.task-row[data-pending], .task-face[data-pending] { background: #3c3836; }
.task-face[data-pending] canvas { visibility: hidden; }
