:root {
  color-scheme: light;
  --ink: #172331; --muted: #687584; --line: #d9e1e7; --soft-line: #e8edf1;
  --navy: #173a5b; --navy-dark: #102d47; --teal: #1f8b71; --bg: #eef2f5; --card: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
body.is-loading { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-header { height: 82px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: white; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; } .brand p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 18px; }.board-stats { color: var(--muted); font-size: 13px; }
.user-menu { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }.user-copy { display: grid; text-align: right; line-height: 1.2; }.user-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.user-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }.compact-button { min-height: 34px !important; padding: 0 11px !important; }
.primary-button, .secondary-button, .danger-button, .danger-filled { min-height: 40px; border-radius: 8px; padding: 0 15px; border: 1px solid transparent; font-weight: 700; font-size: 14px; }
.primary-button { color: #fff; background: var(--navy); }.primary-button:hover { background: var(--navy-dark); }
.secondary-button { background: #fff; color: var(--ink); border-color: var(--line); }.secondary-button:hover { background: #f5f7f9; }
main { padding: 22px 24px 30px; overflow-x: auto; }
.board { display: grid; grid-template-columns: repeat(5, minmax(245px, 1fr)); gap: 14px; min-width: 1260px; align-items: start; }
.column { background: #e7ecef; border: 1px solid #d6dee4; border-radius: 10px; min-height: calc(100vh - 134px); overflow: hidden; }
.column.drag-over { background: #dbe7ed; box-shadow: inset 0 0 0 2px #6f95aa; }
.column-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 14px 12px; border-top: 3px solid var(--column-accent); }
.column-title { display: flex; gap: 8px; align-items: center; }.column-title h2 { font-size: 14px; margin: 0; }.count { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: #d7dfe4; color: #586776; font-size: 12px; font-weight: 800; }
.column-add { border: 0; color: #647587; background: transparent; font-size: 22px; width: 30px; height: 30px; border-radius: 6px; }.column-add:hover { background: #d8e0e5; color: var(--navy); }
.task-list { padding: 0 9px 14px; min-height: 120px; display: grid; gap: 9px; align-content: start; }
.task-card { background: var(--card); border: 1px solid #d7dfe5; border-radius: 9px; padding: 13px; box-shadow: 0 1px 2px rgba(20,42,62,.05); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.task-card:hover, .task-card:focus-visible { border-color: #9eb2c0; box-shadow: 0 3px 10px rgba(20,42,62,.08); outline: none; }.task-card.dragging { opacity: .45; }
.card-top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }.task-card h3 { font-size: 14px; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.priority { flex: 0 0 auto; font-size: 11px; line-height: 21px; height: 21px; border-radius: 4px; padding: 0 7px; font-weight: 800; }
.priority-low { color: #4e6575; background: #eaf0f3; }.priority-medium { color: #28658a; background: #e2f1fa; }.priority-high { color: #9a5b0d; background: #fff0d5; }.priority-critical { color: #a53838; background: #fce3e3; }
.card-meta { margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; color: #637381; font-size: 12px; }.assignee { font-weight: 700; color: #425568; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.estimate { flex: 0 0 auto; }
.progress-row { margin-top: 11px; }.progress-label { display: flex; justify-content: space-between; color: #6b7884; font-size: 11px; margin-bottom: 5px; }.progress-track { height: 5px; background: #e8edf0; border-radius: 5px; overflow: hidden; }.progress-fill { height: 100%; background: var(--teal); border-radius: inherit; }
.card-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0f2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.due-date { font-size: 11px; color: #687584; }.due-date.overdue { color: #b43c3c; font-weight: 700; }
.move-select { max-width: 116px; min-height: 28px; border: 1px solid #dbe2e7; border-radius: 6px; color: #526474; background: #fff; font-size: 11px; padding: 0 4px; }
.empty-column { text-align: center; color: #87939d; font-size: 12px; border: 1px dashed #cbd4da; border-radius: 8px; padding: 22px 8px; }
dialog { padding: 0; border: 0; color: var(--ink); box-shadow: 0 24px 70px rgba(10,30,48,.27); } dialog::backdrop { background: rgba(11,27,42,.55); }
.task-dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 36px); border-radius: 12px; }.task-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 36px); }
.dialog-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--soft-line); display: flex; align-items: flex-start; justify-content: space-between; }.eyebrow { text-transform: uppercase; color: var(--teal); font-size: 11px; letter-spacing: .1em; font-weight: 800; margin: 0 0 5px; }.dialog-header h2 { font-size: 21px; margin: 0; }
.icon-button { border: 0; background: #edf1f3; color: #566675; border-radius: 50%; width: 34px; height: 34px; font-size: 24px; line-height: 1; }.dialog-body { padding: 20px 24px; overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.field { display: grid; gap: 6px; }.field.full { margin-bottom: 15px; }.field label { font-size: 13px; font-weight: 750; }.field label span { color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid #ccd6de; border-radius: 7px; padding: 9px 10px; color: var(--ink); background: #fff; font-size: 14px; } input, select { min-height: 40px; } textarea { resize: vertical; line-height: 1.5; } input:focus, textarea:focus, select:focus { outline: 2px solid #94b7ca; outline-offset: 1px; border-color: #759db4; }
.subtasks-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--soft-line); }.section-heading h3 { font-size: 15px; margin: 0; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.subtask-list { display: grid; gap: 7px; margin-top: 12px; }.subtask-row { display: grid; grid-template-columns: auto minmax(150px, 1fr) minmax(100px, 140px) 100px auto; gap: 8px; align-items: center; padding: 8px; border-radius: 7px; background: #f4f6f7; }.subtask-row input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--teal); }.subtask-row.completed .subtask-title { text-decoration: line-through; color: #7c8993; }.remove-subtask { width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: #8b5d5d; font-size: 18px; }.remove-subtask:hover { background: #f8e3e3; }
.add-subtask { display: grid; grid-template-columns: 1.5fr 1fr 110px auto; gap: 8px; margin-top: 10px; }.add-subtask input, .add-subtask select { font-size: 13px; }
.dialog-footer { flex: 0 0 auto; border-top: 1px solid var(--soft-line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }.dialog-footer > div { display: flex; gap: 8px; }.danger-button { color: #a33939; border-color: #e1bcbc; background: white; }.danger-button:hover { background: #fff1f1; }.danger-filled { background: #b63f3f; color: white; }.danger-filled:hover { background: #9f3030; }
.confirm-dialog { width: min(400px, calc(100vw - 28px)); border-radius: 12px; padding: 24px; }.confirm-dialog h2 { margin: 0 0 8px; font-size: 20px; }.confirm-dialog p { margin: 0 0 22px; color: var(--muted); }.confirm-dialog div { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); padding: 10px 15px; border-radius: 8px; color: #fff; background: #173a5b; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .16s ease; z-index: 30; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.auth-shell, .password-shell, .setup-shell, .loading-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 8%, #dce9f0 0, transparent 36%), var(--bg); }
.auth-panel, .setup-panel { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px rgba(20,42,62,.12); }.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; font-weight: 800; }.auth-panel h1, .setup-panel h1 { margin: 0; font-size: 27px; letter-spacing: -.03em; }.auth-copy { color: var(--muted); line-height: 1.55; margin: 10px 0 24px; }.login-form { display: grid; gap: 15px; }.login-form .primary-button { margin-top: 3px; }.auth-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; line-height: 1.5; }.form-error { min-height: 18px; margin: -3px 0 0; color: #a53838; font-size: 13px; }.setup-panel { text-align: center; }.setup-panel .brand-mark { margin: 0 auto 20px; }.setup-panel p { color: var(--muted); line-height: 1.55; }.setup-panel code { color: var(--navy); background: #eaf0f3; padding: 2px 5px; border-radius: 4px; }.loading-shell { color: var(--muted); }.loading-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: white; font-weight: 900; letter-spacing: .08em; margin: 0 auto 12px; }.loading-shell > div { text-align: center; }
.board-message { grid-column: 1/-1; max-width: 520px; margin: 12vh auto 0; padding: 24px; text-align: center; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; }.board-message strong { display: block; color: var(--ink); margin-bottom: 7px; }
@media (max-width: 900px) { .user-copy { display: none; }.user-menu { padding-left: 0; border-left: 0; } }
@media (max-width: 720px) { .app-header { height: auto; min-height: 74px; padding: 12px 16px; }.brand p, .board-stats, .compact-button { display: none; }.header-actions { gap: 8px; }.primary-button { padding: 0 12px; } main { padding: 14px 12px 24px; }.board { min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }.column { min-width: min(86vw, 330px); min-height: calc(100vh - 110px); scroll-snap-align: start; }.form-grid { grid-template-columns: 1fr; }.dialog-body, .dialog-header, .dialog-footer { padding-left: 16px; padding-right: 16px; }.subtask-row { grid-template-columns: auto 1fr auto; }.subtask-row .subtask-assignee, .subtask-row .subtask-estimate { grid-column: 2; }.add-subtask { grid-template-columns: 1fr auto; }.add-subtask #newSubtaskAssignee, .add-subtask #newSubtaskEstimate { grid-column: 1; }.dialog-footer { align-items: stretch; gap: 10px; }.dialog-footer > div { margin-left: auto; }.auth-panel, .setup-panel { padding: 25px 20px; }.auth-panel h1, .setup-panel h1 { font-size: 23px; } }
