:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#343732;background:#fff;font-size:14px;--bg:#fff;--side:#f7f7f5;--panel:#f6f7f5;--text:#343732;--muted:#8b8e87;--line:#e9ebe5;--hover:#ecede8;--accent:#435d4b;--shadow:0 8px 32px #20282012}*{box-sizing:border-box}body{margin:0}body.dark{--bg:#191c1a;--side:#202420;--panel:#242923;--text:#e2e6df;--muted:#949d91;--line:#343c33;--hover:#30382e;--accent:#91b599;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;border-radius:6px;padding:8px 10px}button:hover{background:var(--hover)}button:disabled{opacity:.5;cursor:wait}input,textarea,select{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:10px;outline:none}input:focus,textarea:focus{border-color:#839a7b;box-shadow:0 0 0 3px #839a7b12}a{color:var(--accent)}.primary{background:var(--accent);color:var(--bg)}.primary:hover{filter:brightness(1.1);background:var(--accent)}.muted{color:var(--muted)}.small{font-size:12px}.row{display:flex;align-items:center;gap:8px}.spacer{flex:1}.shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 13px 14px;z-index:10}.brand{font-size:21px;font-weight:750;letter-spacing:-1px;padding:0 10px 24px}.brandmark{width:30px;height:30px;background:var(--accent);color:var(--bg);display:inline-grid;place-items:center;border-radius:8px;font-size:19px;margin-right:9px;letter-spacing:-3px;padding-right:3px}.workspace-name{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0;margin-left:auto}.nav-button{width:100%;text-align:left;display:flex;gap:10px;align-items:center;margin:2px 0;color:#757c71}.nav-button.active{background:var(--hover);color:var(--text)}kbd{font-size:10px;margin-left:auto;color:var(--muted);border:1px solid var(--line);border-radius:3px;padding:2px 4px}.section-label{margin:29px 10px 9px;text-transform:uppercase;letter-spacing:1.3px;font-size:10px;font-weight:650;color:var(--muted);display:flex;align-items:center}.section-label button{margin-left:auto;padding:0 4px;font-size:17px}.tree{overflow:auto;flex:1}.tree-row{display:flex;align-items:center;gap:5px;min-height:35px;padding:0 6px;border-radius:5px;cursor:pointer;position:relative;font-size:13px}.tree-row:hover,.tree-row.selected{background:var(--hover)}.tree-row.selected{font-weight:600}.tree-row .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.tree-row button{padding:2px 4px;color:var(--muted)}.tree-row .more{opacity:0}.tree-row:hover .more,.tree-row:focus-within .more{opacity:1}.tree-icon{color:#89967c;width:19px}.sidebar-bottom{border-top:1px solid var(--line);padding-top:13px}.avatar{width:29px;height:29px;border-radius:50%;background:#e8e9de;color:#68765e;display:grid;place-items:center;font-size:12px;font-weight:700}.user-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.main{margin-left:252px;width:calc(100% - 252px)}.topbar{height:65px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.crumb{color:var(--text);max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar button{font-size:12px}.page{padding:45px 55px;max-width:1700px;margin:auto}.eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}.page-head{display:flex;align-items:flex-start;gap:20px;margin-top:12px}.page-icon{font-size:31px;margin-bottom:15px;color:#829475}.page h1{font-size:32px;letter-spacing:-1.1px;margin:0 0 12px;line-height:1.2;font-weight:650}.subtitle{color:var(--muted);line-height:1.7;margin:0;font-size:13px}.title-input{width:100%;border:0;font-weight:650;font-size:32px;letter-spacing:-1px;padding:0;background:none;box-shadow:none!important}.tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);margin-top:34px;gap:24px;height:46px}.tab{height:46px;border-radius:0;padding:0 2px;color:var(--muted);font-size:12px}.tab.active{border-bottom:2px solid var(--accent);color:var(--text);font-weight:600}.board-tools{display:flex;gap:8px;align-items:center;margin:22px 0;font-size:12px}.board-tools input{padding:7px 10px;width:190px;font-size:12px}.board{display:flex;align-items:flex-start;gap:18px;overflow-x:auto;min-height:400px;padding-bottom:30px}.column{min-width:260px;flex:1;max-width:380px}.column-head{display:flex;align-items:center;font-size:12px;padding:9px 5px 14px;gap:8px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#a6aaa1}.dot.blue{background:#6c9bb5}.dot.green{background:#78a282}.dot.orange{background:#d4a570}.count{color:var(--muted);font-size:11px;margin-left:2px}.column-head button{padding:2px 5px;color:var(--muted)}.cards{background:var(--panel);border-radius:9px;padding:8px;min-height:130px}.cards.dragover{outline:2px dashed #8ca17d}.card{background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:16px 14px;margin-bottom:8px;cursor:grab;box-shadow:0 2px 2px #26302003;transition:transform .15s,border-color .15s}.card:hover{transform:translateY(-2px);border-color:#a8b49e;box-shadow:var(--shadow)}.card h3{font-size:13px;font-weight:550;line-height:1.5;margin:0 0 9px}.card p{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 18px}.card-footer{display:flex;align-items:center;gap:8px}.priority{font-size:10px;border-radius:4px;padding:3px 6px;background:#f1f0e9;color:#99905d}.priority.High{background:#faeee8;color:#b1866d}.priority.Low{background:#edf2ed;color:#7c9b7e}.dark .priority{background:#343b30}.card-avatar{margin-left:auto;width:21px;height:21px;font-size:9px}.add-card{color:var(--muted);font-size:12px;width:100%;text-align:left;padding:11px}.add-column{min-width:140px;margin-top:5px;color:var(--muted);font-size:12px}.hint{border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font-size:11px;display:flex;gap:9px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin:28px 0}.resource{border:1px solid var(--line);border-radius:9px;padding:23px;text-align:left;background:var(--bg);min-height:145px}.resource .big-icon{font-size:24px;color:#869a78;display:block;margin-bottom:20px}.resource h3{font-size:14px;margin:0 0 7px;font-weight:600}.resource p{font-size:11px;color:var(--muted);margin:0}.welcome-banner{background:var(--side);border:1px solid var(--line);border-radius:10px;display:flex;padding:28px 30px;align-items:center;margin:30px 0}.welcome-banner .art{font-size:48px;margin-left:auto;color:#839a74;padding:0 22px}.toolbar{display:flex;flex-wrap:wrap;gap:3px;border:1px solid var(--line);background:var(--side);border-radius:7px;padding:5px;margin:30px 0 20px;position:sticky;top:10px;z-index:2}.toolbar button{font-size:13px;padding:6px 10px}.toolbar select{padding:4px;border:0;background:transparent}.editor{min-height:450px;outline:none;font-size:15px;line-height:1.9;padding:12px 0;max-width:850px}.editor:empty:before{content:'Start writing, or use the toolbar to find your flow…';color:var(--muted)}.editor h1{font-size:30px}.editor h2{font-size:23px;margin-top:30px}.editor h3{font-size:19px}.editor blockquote{border-left:3px solid #8c9b7e;padding:10px 20px;margin:20px 0;background:var(--side)}.editor pre{padding:16px;background:var(--side);border-radius:5px;white-space:pre-wrap}.editor table{border-collapse:collapse;width:100%}.editor td{border:1px solid var(--line);padding:8px}.editor img{max-width:100%}.empty{padding:50px;text-align:center;border:1px dashed var(--line);border-radius:10px;color:var(--muted)}dialog{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:13px;box-shadow:0 25px 90px #0003;width:480px;max-width:calc(100vw - 32px);padding:27px}dialog::backdrop{background:#18201860;backdrop-filter:blur(3px)}dialog h2{font-size:21px;margin:0 0 20px;letter-spacing:-.5px}dialog label{display:block;font-size:12px;margin:15px 0 7px;color:var(--muted)}dialog input,dialog textarea,dialog select{width:100%}dialog textarea{min-height:120px;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:25px}.context{position:fixed;z-index:50;padding:5px;background:var(--bg);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);width:175px}.context button{display:block;width:100%;text-align:left;font-size:12px}.danger{color:#bf7569}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:11px 20px;background:var(--text);color:var(--bg);border-radius:7px;z-index:100;display:none;font-size:13px}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#eaf0e6;padding:10vh 12%;color:#445b42;display:flex;flex-direction:column;justify-content:space-between}.auth-story h1{font-size:55px;letter-spacing:-2.5px;line-height:1.1;font-weight:550}.auth-story p{line-height:1.9;max-width:350px;color:#7d8d75}.auth-graphic{font-size:100px;letter-spacing:-15px;color:#a6b79b}.auth-form{align-self:center;justify-self:center;width:340px;max-width:90vw}.auth-form h2{font-size:27px;letter-spacing:-.8px;margin-bottom:8px}.auth-form input{display:block;width:100%;margin:8px 0 16px}.auth-form label{font-size:12px}.auth-form button{width:100%;padding:12px}.auth-form .google{border:1px solid var(--line);margin:25px 0 20px}.divider{text-align:center;color:var(--muted);font-size:11px;margin-bottom:22px}.auth-error{color:#b36655;font-size:12px;line-height:1.6}.token{word-break:break-all;padding:15px;background:var(--side);border-radius:5px;font-size:12px}.token-row{margin:12px 0;border-bottom:1px solid var(--line);padding-bottom:10px}.mobile-menu{display:none}@media(min-width:1500px){.page{padding:55px 75px}}@media(max-width:1000px){.page{padding:32px 28px}.column{min-width:250px}.topbar{padding:0 25px}.sidebar{width:225px}.main{margin-left:225px;width:calc(100% - 225px)}}@media(max-width:700px){.sidebar{transform:translateX(-100%);width:252px}.sidebar.open{transform:none;box-shadow:0 0 0 100vmax #0005}.main{margin-left:0;width:100%}.mobile-menu{display:block}.page{padding:30px 20px}.page h1,.title-input{font-size:27px}.topbar{padding:0 15px}.topbar .edited{display:none}.auth{grid-template-columns:1fr}.auth-story{display:none}.auth-form{padding:40px 0}.board-tools input{width:140px}}

.member-list{margin-top:20px}.member-row{display:flex;gap:10px;align-items:center;padding:14px 0;border-top:1px solid var(--line);font-size:12px}.member-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.member-row select{width:auto;font-size:12px;padding:6px}.member-row button{padding:6px;font-size:12px}.member-row .small{margin-top:4px}[hidden]{display:none!important}.title-input[readonly]{cursor:default}

/* ---- CARDS AND NESTED SUBTASKS ------------------------------------------
   A task and everything under it live in one .task wrapper, so a branch
   indents and moves as a unit. Card layout is a simple vertical stack with
   one consistent gap, so it reads the same with or without subtasks. */
.task{position:relative}
.card{display:flex;flex-direction:column;gap:10px;padding:14px}
.card h3{margin:0;font-size:13px;font-weight:550;line-height:1.45;overflow-wrap:anywhere}
.card-top{display:flex;align-items:flex-start;gap:8px;min-width:0}
.card-top h3{flex:1;min-width:0}
.card-top .task-check{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:0;border:2px solid #667163;border-radius:5px;background:transparent;font-size:17px;font-weight:700;line-height:1}
.dark .card-top .task-check{border-color:#a1ac9d}
.card-top .task-check:hover:not(:disabled){background:var(--hover)}
.card-top .task-check:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.card-top .task-check[aria-pressed="true"]{color:#31834a;border-color:currentColor}
.dark .card-top .task-check[aria-pressed="true"]{color:#7bdd92;border-color:currentColor}
.card-top .task-check:disabled{opacity:1;cursor:default}
/* A full-width bottom control makes the nested cards discoverable. */
.subtask-toggle{display:flex;align-items:center;justify-content:center;gap:8px;align-self:stretch;padding:9px 0 0;border-top:1px solid var(--line);border-radius:0;font-size:11px;color:var(--muted)}
.subtask-toggle:hover{color:var(--accent);background:var(--panel)}
.subtask-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.subtask-stack{width:18px;height:6px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;opacity:.7}
.subtask-chevron{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.subtask-chevron.is-open{transform:translateY(2px) rotate(225deg)}
/* Descriptions stay folded until asked for, so a board of long tickets
   still fits on screen. */
.desc-toggle{display:block;width:fit-content;text-align:left;padding:2px 4px;margin:-2px 0 0 -4px;font-size:11px;color:var(--muted);border-radius:4px}
.desc-toggle:hover{color:var(--text)}
.card .card-desc{margin:0;padding:8px 10px;font-size:11px;line-height:1.7;color:var(--muted);white-space:pre-wrap;background:var(--panel);border-radius:5px;overflow-wrap:anywhere}
.card-footer{display:flex;align-items:center;gap:8px;margin-top:2px}
/* The button that adds a subtask straight from the card. Always visible. */
.add-subtask{display:inline-flex;align-items:center;gap:4px;margin-left:auto;padding:3px 8px;font-size:11px;line-height:1.4;color:var(--muted);border:1px dashed var(--line);border-radius:5px;white-space:nowrap}
.add-subtask:hover{color:var(--text);background:var(--hover);border-color:#8ca17d}
.add-subtask+.card-avatar{margin-left:0}
.subtasks{margin:2px 0 8px 14px;padding-left:12px;border-left:1px solid var(--line)}
.subtasks .card{padding:11px 12px;gap:8px}
.subtasks .task:last-child .card{margin-bottom:0}
.card.is-subtask{background:var(--side)}
.card.is-subtask h3{font-size:12px}
/* Drop a card onto another card to nest it. */
.card.drop-into{border-color:#8ca17d;box-shadow:0 0 0 2px #8ca17d55;transform:none}
.move-tree{height:auto;padding:6px;font-size:12px;line-height:1.9}
.move-tree optgroup{font-size:11px;color:var(--muted)}
.subtask-list{margin:8px 0 0;padding-left:20px;font-size:12px;line-height:1.9;color:var(--muted)}
/* Open lists also end with a control for folding a long branch. */
.collapse-branch{display:block;width:100%;text-align:left;margin:2px 0 4px;padding:5px 8px;font-size:11px;color:var(--muted);border-radius:5px}
.collapse-branch:hover{color:var(--text);background:var(--hover)}
.board-tools button{font-size:12px;padding:7px 10px;color:var(--muted)}
.board-tools button:hover{color:var(--text)}

/* Drag feedback: the whole branch moves together. */
.card{position:relative}
.dragging-card,.dragging-card .card{cursor:grabbing}
.dragging-card .card:hover{transform:none}
.task.is-dragging{opacity:.35;outline:2px dashed var(--accent);outline-offset:2px;border-radius:7px}
.task.is-dragging *{pointer-events:none}
.task.drop-before:before,.task.drop-after:after{content:attr(data-drop-label);position:absolute;left:0;right:0;height:20px;background:var(--accent);color:var(--bg);font-size:11px;font-weight:600;line-height:20px;text-align:center;z-index:5;box-shadow:0 0 0 2px var(--bg);border-radius:3px}
.task.drop-before:before{top:-10px}
.task.drop-after:after{bottom:-6px}
.card.drop-into{outline:2px solid var(--accent);outline-offset:1px;background:var(--panel)}
.card.drop-into:after,.cards.dragover:after{content:attr(data-drop-label);display:block;background:var(--accent);color:var(--bg);border-radius:5px;padding:6px 10px;text-align:center;font-size:11px;font-weight:600;pointer-events:none}
.card.drop-into:after{position:absolute;inset:50% 10px auto;transform:translateY(-50%);z-index:5}
.cards.dragover{outline:2px dashed var(--accent)}

button.card-avatar{padding:0;flex-shrink:0;cursor:pointer}
.context{max-height:min(360px,calc(100vh - 24px));overflow-y:auto}
.board-tools{flex-wrap:wrap}

/* Installed app and phone controls. */
.shell{min-height:100dvh}.sidebar{padding-bottom:max(14px,env(safe-area-inset-bottom))}.topbar{padding-top:env(safe-area-inset-top);height:calc(65px + env(safe-area-inset-top))}.page{padding-bottom:max(30px,env(safe-area-inset-bottom))}
.task-menu{padding:0 5px;flex:none;color:var(--muted);font-size:18px;line-height:24px}
#connection-status{position:sticky;top:0;z-index:60;background:#f6e8c7;color:#503d16;padding:12px 20px;font-size:13px;text-align:center}
.install-dialog p{line-height:1.7}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:700px){.topbar{gap:4px;overflow-x:auto;white-space:nowrap}.topbar>*{flex-shrink:0}.topbar .crumb{max-width:120px}.page-head{gap:10px}.page-head .primary{white-space:nowrap}.board{scroll-snap-type:x proximity}.column{min-width:min(310px,calc(100vw - 40px));scroll-snap-align:start}.tree-row .more{opacity:1}.tree-row{min-height:44px}.nav-button{min-height:44px}dialog{padding:20px}dialog input,dialog select,dialog textarea,.board-tools input{font-size:16px}dialog .dialog-actions button{min-height:44px}.card-top .task-check,.task-menu{width:40px;height:40px;min-width:40px}.card-top .task-check{border-width:1px}.card-avatar,button.card-avatar{width:40px;height:40px;font-size:13px}.card-footer{flex-wrap:wrap}.add-subtask{min-height:40px}.subtask-toggle,.desc-toggle,.collapse-branch{min-height:40px}.context button{min-height:44px}.context{max-width:calc(100vw - 24px)}.board-tools button{min-height:40px}.subtasks{margin-left:6px;padding-left:6px}.member-row{flex-wrap:wrap}.sidebar{padding-top:max(22px,env(safe-area-inset-top))}}
