/* app.css — one column on the Lists lavender, white cards, the board's accent. System fonts,
   fixed light, 48 px MINIMUM rows that grow with their text, a meta line and photos. */

:root {
  --canvas: #F3EFFC;
  --card: #FFFFFF;
  --ink: #1F1A2E;
  --ink-soft: #5E5873;
  --ink-faint: #8E88A1;
  --line: #E6E0F2;
  --accent: #C2185B;
  --accent-soft: #FBE3EC;
  --radius: 16px;
}

* { box-sizing: border-box; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.page { padding-top: 12px; }
@media (min-width: 600px) { .page { max-width: 600px; padding-left: 20px; padding-right: 20px; } }
@media (min-width: 1024px) { .page { max-width: 640px; padding-top: 32px; } .title { font-size: 28px; } }

.head .title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.head .by { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.35; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress .bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 160ms ease-out; }
.counts { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.counts .updated { color: var(--ink-faint); }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.button:hover { background: #FAF7FF; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; }
.button.primary:hover { background: #A8134E; }
.button.secondary { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

.section-title { margin: 0 0 4px; padding: 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 6px; border-radius: 12px; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.row:last-child { border-bottom: 0; }
.row .circle { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 2px solid #B9B2CC; background: #fff; padding: 0; position: relative; }
.row.done .circle { background: var(--accent); border-color: var(--accent); }
.row.done .circle::after { content: ""; position: absolute; left: 9px; top: 4px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.row .circle:disabled { cursor: default; opacity: 0.8; }
.row .body { flex: 1 1 auto; min-width: 0; padding-top: 4px; cursor: pointer; }
.row .text { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.row.done .text { color: var(--ink-faint); text-decoration: line-through; }
.row .meta { margin-top: 3px; font-size: 13px; color: var(--ink-faint); }
.row .time { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 6px; background: var(--line); font-size: 13px; color: var(--ink-soft); vertical-align: 1px; }
.row .num { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; vertical-align: 1px; }
.row .photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row .thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--line); display: block; }
@media (hover: hover) { .row:hover { background: #FAF7FF; } }

.add-form { display: flex; gap: 8px; margin-top: 8px; padding: 0 2px; }
.add-input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #FAF7FF; font-size: 16px; }
.add-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.add-button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; }

.notice { margin: 4px 0 12px; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--ink-soft); font-size: 15px; text-align: center; }
.status { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 12px auto 0; width: fit-content; padding: 8px 14px; border-radius: 999px; background: #1F1A2E; color: #fff; font-size: 14px; }

.has-name-card { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }
.name-card-wrap { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.name-card { pointer-events: auto; width: 100%; max-width: 560px; margin: 0; box-shadow: 0 8px 30px rgba(31, 26, 46, 0.18); border: 1px solid var(--line); }
.name-label { display: block; font-weight: 700; font-size: 17px; }
.name-hint { margin: 4px 0 12px; color: var(--ink-soft); font-size: 14px; }
#name-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #FAF7FF; font-size: 17px; margin-bottom: 10px; }
#name-input:focus { outline: 2px solid var(--accent); border-color: transparent; }
