:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #f0f0ed;
  --raised: #e7e7e2;
  --text: #242622;
  --muted: #7b7e76;
  --border: #e5e6e0;
  --accent: #526d5c;
  --accent-dark: #405849;
  --accent-soft: #e7eee8;
  --red: #a64c4b;
  --red-soft: #f9eceb;
  --amber: #a77531;
  --amber-soft: #f6eedf;
  --blue: #52738a;
  --blue-soft: #e9f0f4;
  --shadow: 0 8px 26px rgba(34, 38, 31, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(82, 109, 92, .28); outline-offset: 2px; }
.app-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 52px 36px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 3px; border-radius: 7px; background: var(--accent); }
.brand-mark span { display: block; width: 4px; border-radius: 3px; background: #fff; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .84; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.local-indicator { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #70a17e; box-shadow: 0 0 0 3px #e8f0e9; }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .16s, border-color .16s, transform .16s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.button-quiet { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-quiet:hover { background: var(--surface-soft); }
.button-danger { color: var(--red); background: var(--red-soft); }
.button-danger:hover { background: #f3dddd; }
main { padding-top: 44px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 29px; }
.eyebrow { margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.045em; font-weight: 680; }
.intro-copy { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.board-tools { display: flex; align-items: center; gap: 14px; padding-bottom: 2px; }
.search-box { height: 38px; width: 218px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.search-box:focus-within { border-color: #a8b5a9; box-shadow: 0 0 0 3px rgba(82,109,92,.08); }
.search-box svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #9a9d95; }
kbd { min-width: 19px; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font: 10px ui-monospace, monospace; text-align: center; }
.task-summary { min-width: 63px; color: var(--muted); font-size: 11px; white-space: nowrap; text-align: right; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.column { min-width: 0; padding: 17px 16px 14px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.44); transition: border-color .16s, background .16s; }
.column.drag-over { border-color: #91aa97; background: #edf3ed; }
.column-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.column-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.column-name h2 { margin: 0; font-size: 13px; font-weight: 680; letter-spacing: -.01em; }
.column-dot { width: 8px; height: 8px; border-radius: 50%; background: #a3a69f; }
.column-doing .column-dot { background: #c39858; }
.column-done .column-dot { background: #70947b; }
.count { min-width: 21px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 650; }
.icon-button { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.icon-button:hover { background: var(--raised); color: var(--text); }
.add-column-task { font-size: 21px; font-weight: 300; }
.task-list { min-height: 12px; display: flex; flex-direction: column; gap: 10px; }
.task-card { padding: 14px 13px 12px; border: 1px solid #e7e8e3; border-radius: 9px; background: var(--surface); box-shadow: 0 2px 5px rgba(35,39,32,.025); cursor: grab; transition: box-shadow .16s, border-color .16s, transform .16s; }
.task-card:hover { border-color: #d4d8d0; box-shadow: var(--shadow); transform: translateY(-1px); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .45; }
.task-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-title { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; font-weight: 630; overflow-wrap: anywhere; }
.task-description { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-edit { flex: 0 0 auto; width: 25px; height: 25px; margin: -4px -4px 0 0; opacity: .45; }
.task-card:hover .card-edit, .card-edit:focus-visible { opacity: 1; }
.card-edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.priority, .due-date { min-height: 21px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; font-size: 10px; line-height: 1.2; font-weight: 570; }
.priority::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-high { color: var(--red); background: var(--red-soft); }
.priority-normal { color: #73776f; background: #f1f1ee; }
.priority-low { color: var(--blue); background: var(--blue-soft); }
.due-date { color: #747870; background: #f2f2ef; }
.due-date.overdue { color: var(--red); background: var(--red-soft); }
.due-date svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.task-move { max-width: 112px; margin-left: auto; padding: 2px 3px; border: 0; border-radius: 4px; background: transparent; color: #888b83; font-size: 10px; cursor: pointer; }
.task-move:hover { background: var(--surface-soft); color: var(--text); }
.column-add { width: 100%; height: 34px; margin-top: 10px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px dashed transparent; border-radius: 7px; background: transparent; color: #8b8e86; text-align: left; font-size: 11px; cursor: pointer; }
.column-add span { font-size: 17px; font-weight: 300; }
.column-add:hover { border-color: var(--border); background: rgba(255,255,255,.55); color: var(--text); }
.empty-hint { padding: 18px 10px; color: #999c94; font-size: 11px; text-align: center; }
.footer-note { display: flex; align-items: flex-start; gap: 9px; max-width: 650px; margin: 27px auto 0; color: var(--muted); }
.footer-lock { flex: 0 0 auto; margin-top: 1px; color: #90958c; font-size: 14px; }
.footer-note p { margin: 0; font-size: 10px; line-height: 1.6; }
.notice { position: fixed; right: 22px; bottom: 20px; z-index: 5; max-width: min(360px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.notice.visible { opacity: 1; transform: translateY(0); }
.task-dialog { width: min(480px, calc(100vw - 30px)); max-width: 100%; padding: 25px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 70px rgba(20,25,18,.2); }
.task-dialog::backdrop { background: rgba(25,29,24,.38); backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.dialog-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.dialog-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.close-button { margin: -5px -7px 0 0; font-size: 24px; }
.field-label { display: flex; align-items: center; gap: 5px; margin: 15px 0 7px; color: #51544e; font-size: 11px; font-weight: 650; }
.required-mark { color: var(--red); }
.optional-label { color: #9a9d95; font-size: 10px; font-weight: 450; }
.text-input { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; }
.text-input::placeholder { color: #a4a69f; }
.text-area { min-height: 82px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { min-width: 0; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--border); }
.dialog-actions .button { min-height: 35px; padding: 0 12px; font-size: 11px; }
.action-spacer { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .app-shell { padding-right: 28px; padding-left: 28px; }
  .board { gap: 12px; }
  .column { padding: 14px 11px 12px; }
  .task-card { padding-right: 10px; padding-left: 10px; }
  .task-move { max-width: 93px; }
}
@media (max-width: 680px) {
  .app-shell { padding: 0 17px 28px; }
  .topbar { height: 62px; }
  .topbar-right { gap: 11px; }
  .local-indicator { font-size: 0; gap: 0; }
  .online-dot { width: 8px; height: 8px; }
  .topbar .button { min-height: 35px; padding: 0 10px; font-size: 11px; }
  main { padding-top: 31px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 20px; }
  .intro-copy { margin-top: 7px; font-size: 12px; }
  .board-tools { width: 100%; justify-content: space-between; }
  .search-box { width: min(290px, 72%); }
  .board { grid-template-columns: 1fr; gap: 13px; }
  .column { padding: 13px 13px 11px; }
  .column-header { margin-bottom: 11px; }
  .task-list { gap: 8px; }
  .task-card { padding: 12px; }
  .card-edit { opacity: .8; }
  .footer-note { margin-top: 22px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #171916;
    --surface: #222520;
    --surface-soft: #2a2d27;
    --raised: #353831;
    --text: #e8eae4;
    --muted: #a1a59b;
    --border: #393d35;
    --accent: #8eaf94;
    --accent-dark: #a5c3a9;
    --accent-soft: #2c382d;
    --red: #e38b85;
    --red-soft: #422b2a;
    --amber: #d6ad71;
    --amber-soft: #3b3326;
    --blue: #91b4c8;
    --blue-soft: #29373e;
    --shadow: 0 8px 26px rgba(0,0,0,.2);
  }
  .button-primary { color: #172018; }
  .button-primary:hover { background: #a5c3a9; }
  .button-danger:hover { background: #553231; }
  .column { background: rgba(255,255,255,.018); }
  .column.drag-over { background: #252e25; }
  .task-card { border-color: #393d35; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
  .task-card:hover { border-color: #51574d; }
  .priority-normal, .due-date { color: #c2c6bb; background: #30332d; }
  .search-box input::placeholder, .text-input::placeholder { color: #858a80; }
  .online-dot { background: #7caa83; box-shadow: 0 0 0 3px #28342a; }
  .column-add:hover { background: rgba(255,255,255,.04); }
  .task-dialog::backdrop { background: rgba(0,0,0,.6); }
  .field-label { color: #c2c6bb; }
  .brand-mark span { background: #1d241e; }
}
