@font-face {
    font-family: "Segoe UI Local";
    src: local("Segoe UI");
}
:root {
    color-scheme: light;
    --ink: #1b2b28;
    --muted: #546763;
    --green: #234e42;
    --paper: #f7f8f4;
    --line: #dce5df;
    --white: #fff;
    font: 16px/1.45 "Segoe UI Local", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button {
    min-height: 42px;
    padding: 8px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s, border-color .18s, opacity .18s;
}
button:hover { background: #edf4ef; border-color: #b8cdc0; }
button:disabled { opacity: .52; cursor: default; }
button[aria-busy="true"]::after, .task.saving .task-heading::after, .spinner {
    display: inline-block;
    content: "";
    flex: none;
    width: .9em;
    height: .9em;
    margin-left: .45em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -.07em;
    animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid #367f67; outline-offset: 3px; }
.shell { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: #fcfdfb; border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; display: flex; align-items: center; gap: 9px; }
.wordmark span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: white; font-size: 16px; }
.account { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet { border-color: transparent; background: transparent; color: var(--green); }
.primary { border-color: var(--green); background: var(--green); color: white; font-weight: 650; padding-inline: 16px; }
.primary:hover { color: white; background: #346b59; border-color: #346b59; }
.primary span { margin-left: .4em; }
main { padding-block: 47px 68px; }
.page-heading, .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h1 { font-size: clamp(2rem, 5vw, 3.05rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 750; }
.page-heading p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.toolbar { margin-top: 28px; margin-bottom: 21px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.switch { display: flex; gap: 4px; background: #eaf0eb; border-radius: 11px; padding: 4px; }
.switch button { min-height: 34px; border: 1px solid transparent; background: transparent; padding: 5px 12px; font-size: 14px; color: var(--muted); }
.switch button[aria-pressed="true"] { background: white; border-color: var(--line); color: var(--ink); font-weight: 650; }
.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 450; font-size: 14px; }
.check input { margin: 0; width: 17px; height: 17px; accent-color: var(--green); }
.groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; align-items: start; }
.column { min-width: 0; padding: 12px; background: #edf1ec; border: 1px solid #e0e7df; border-radius: 15px; }
.column-head, .column-title, .task-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.column-head { padding: 0 3px 8px; min-height: 52px; }
.column-title { min-width: 0; }
.column-title h2 { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.board-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.count { color: var(--muted); font-size: 12px; padding: 2px 6px; background: #e0e9e2; border-radius: 6px; }
.icon { flex: none; width: 42px; background: transparent; border-color: transparent; padding: 0; font-size: 21px; line-height: 1; }
.task-list { display: flex; flex-direction: column; gap: 8px; min-height: 54px; border-radius: 10px; }
.task { min-width: 0; padding: 8px 12px 11px; border: 1px solid #dfe7e1; border-radius: 11px; background: var(--white); box-shadow: 0 1px 2px #243b2810; }
.task-title { flex: auto; min-width: 0; min-height: 34px; padding: 4px 0; border: 0; background: transparent; text-align: left; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.task-title:hover { background: transparent; color: #36725f; }
.handle { color: #5d746c; font-size: 19px; height: 42px; touch-action: none; cursor: grab; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.status { border-radius: 6px; padding: 2px 6px; font-weight: 650; }
.status-new { background: #edf0f3; color: #424d5d; }
.status-active { background: #e6efff; color: #2254a5; }
.status-done { background: #e5f4e9; color: #266746; }
.status-rejected { background: #fae9eb; color: #963743; }
.priority-high { color: #9d431c; font-weight: 650; }
.origin, .person, .due { border-left: 1px solid var(--line); padding-left: 8px; }
.add-task { width: 100%; margin-top: 8px; text-align: left; color: var(--green); border-color: transparent; background: transparent; font-weight: 650; font-size: 14px; }
.dragging { opacity: .4; }
.drop-list { outline: 2px solid #88b5a3; outline-offset: 3px; }
.drop-marker { flex: none; position: relative; height: 0; margin-bottom: -8px; pointer-events: none; }
.drop-marker::before { position: absolute; inset: -5px 2px auto; height: 3px; background: #3b896e; border-radius: 4px; content: ""; }
.empty-list { color: var(--muted); padding: 14px 8px; font-size: 13px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 5vw, 38px); }
.empty-workspace { grid-column: 1 / -1; }
.empty-workspace p { color: var(--muted); margin: 8px 0 20px; }
.auth { width: min(100%, 445px); margin: clamp(8px, 7vh, 90px) auto 0; box-shadow: 0 12px 38px #2743370a; }
.auth h1 { font-size: clamp(1.9rem, 5vw, 2.65rem); margin-bottom: 23px; }
.auth > .quiet { margin-top: 9px; }
form { display: grid; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 640; }
input:not([type="checkbox"]), select, textarea {
    width: 100%;
    min-height: 43px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd8d1;
    background: #fbfcfa;
    color: var(--ink);
    font-size: 16px;
    font-weight: 450;
}
textarea { min-height: 82px; resize: vertical; }
input[type="color"] { max-width: 80px; }
form .primary { justify-self: start; }
.auth form .primary { width: 100%; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 9px; background: #e9f2eb; margin-bottom: 16px; font-size: 14px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
dialog { width: min(480px, calc(100% - 28px)); max-height: min(90dvh, 830px); border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: white; color: var(--ink); box-shadow: 0 24px 80px #10241e2b; }
dialog::backdrop { background: #132c26a0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.dialog-head h2 { font-size: 23px; letter-spacing: -.03em; }
.dialog-stack { display: grid; gap: 18px; }
.manage { border-top: 1px solid var(--line); padding-top: 12px; }
.manage h3 { font-size: 16px; margin-bottom: 8px; }
.manage-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.move-actions { display: flex; gap: 8px; }
.toast { position: fixed; z-index: 2; bottom: 18px; right: 18px; max-width: min(440px, calc(100% - 36px)); padding: 11px 14px; border-radius: 9px; color: white; background: var(--green); box-shadow: 0 4px 16px #1a382237; font-size: 14px; }
.toast.error { background: #8b353a; }
dialog .toast { margin-bottom: 12px; }
@media (max-width: 920px) {
    .groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .shell { width: calc(100% - 28px); }
    main { padding-block: 26px 44px; }
    .groups { grid-template-columns: minmax(0,1fr); gap: 13px; }
    .toolbar { flex-wrap: wrap; margin-top: 20px; }
    .account .quiet { flex: none; }
    .notice { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}