:root {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171829;
  background: #f6f6fb;
  color-scheme: light;
  --surface: #fff;
  --ink: #171829;
  --muted: #5e6176;
  --line: #e5e5ef;
  --subtle: #f3f2fa;
  --accent: #5540c4;
  --accent-hover: #4631b2;
  --danger: #a0264b;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, p { margin: 0; }
.startup, .auth-screen { display: grid; place-content: center; min-height: 100vh; gap: 16px; text-align: center; color: var(--muted); }
.auth-card { width: min(100%, 380px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 32px; box-shadow: 0 21px 56px #2e215918; }
.auth-card h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-card > p { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .button { width: 100%; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 630; text-align: left; }
.field small { color: var(--muted); font-weight: 450; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dcdce8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
}
.field textarea { resize: vertical; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 9px; padding: 9px 15px; border: 1px solid transparent; font-size: 14px; font-weight: 640; }
.primary { color: #fff; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--ink); background: var(--surface); border-color: #dcdce8; }
.secondary:hover:not(:disabled) { background: var(--subtle); }
.danger { color: #fff; background: var(--danger); }
.form-error { color: var(--danger); background: #fff2f6; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.layout { min-height: 100vh; padding: 28px clamp(16px, 4vw, 48px); }
.content-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.content-header h1 { font-size: 28px; letter-spacing: -.03em; }
.content-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.header-actions { display: flex; gap: 10px; }
#board-notice { margin-bottom: 16px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; align-items: start; }
.column { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 160px; }
.column.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; }
.column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 660; color: var(--muted); }
.column-count { background: var(--subtle); border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.card-list { display: grid; gap: 8px; min-height: 40px; }
.card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 10px 11px;
  cursor: grab;
  box-shadow: 0 1px 2px #19182d08;
}
.card:active { cursor: grabbing; }
.card.dragging { opacity: .5; }
.card strong { display: block; font-size: 13.5px; font-weight: 650; }
.card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.empty-column { color: var(--muted); font-size: 12px; padding: 8px 2px; }
dialog { width: min(92vw, 460px); padding: 0; border: 1px solid #dedee8; border-radius: 14px; background: var(--surface); box-shadow: 0 28px 90px #17112f2e; }
dialog::backdrop { background: #141124aa; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 18px; }
.dialog-body { display: grid; gap: 14px; padding: 18px 20px; }
.dialog-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); }
.icon-button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: var(--subtle); color: var(--muted); font-size: 18px; line-height: 1; }
