:root{color:#111827;background:#f8fafc;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}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{border:1px solid #2563eb;border-radius:8px;background:#2563eb;color:#fff;cursor:pointer;min-height:36px;padding:8px 12px;font-size:13px;font-weight:650;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}button:hover{background:#1d4ed8;border-color:#1d4ed8;box-shadow:0 1px 2px #0f172a14}button.secondary{border:1px solid #e5e7eb;background:#fff;color:#374151}button.secondary:hover{background:#f9fafb;border-color:#d1d5db;color:#111827}button:disabled{cursor:not-allowed;opacity:.55}button.danger-action{border:1px solid #efb0b0;background:#fff0f0;color:#991b1b}input,textarea,select{width:100%;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;min-height:38px;padding:8px 10px;font-size:14px;outline:none}input:focus,textarea:focus,select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f624}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}a{color:#2563eb}.auth-screen{display:grid;min-height:100vh;place-items:center;padding:32px}.auth-panel.login-only{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,420px);gap:32px;width:min(980px,100%);align-items:center}.auth-copy h1{font-size:clamp(40px,7vw,72px);line-height:.98;margin-bottom:18px}.login-panel{display:grid;gap:14px}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:16px;height:100vh;min-height:0;overflow:hidden;border-right:1px solid #e5e7eb;background:#fff;padding:20px 16px}.brand-block{display:grid;gap:3px}.brand{color:#111827;font-size:20px;font-weight:850}.brand-block span,.small,.muted{color:#687080}.create-project,.form-stack{display:grid;gap:16px}.field{display:grid;gap:6px;color:#4c5565;font-size:13px;font-weight:700}.field small{font-weight:500}.side-title,.eyebrow{color:#6b7280;font-size:11px;font-weight:850;letter-spacing:0;text-transform:uppercase}.side-head,.screen-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.side-head{align-items:center}.project-list{display:grid;gap:7px;min-height:0;overflow-y:auto;padding-right:2px}.sidebar-search{min-height:34px;font-size:13px}.project{display:grid;gap:4px;background:transparent;border-color:transparent;color:#111827;text-align:left}.project span{color:#687080;font-size:12px;line-height:1.35}.project.active{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}.project:hover{background:#f9fafb;border-color:#e5e7eb;box-shadow:none}.project.active:hover{background:#eff6ff;border-color:#bfdbfe}.project.active span{color:#3b82f6}.project.active b{color:#fff}.project.active b{color:#1d4ed8}.account{display:grid;gap:6px;flex-shrink:0;margin-top:auto;border-top:1px solid #eef0f3;padding-top:14px}.role-pill,.tag{display:inline-flex;align-items:center;width:fit-content;border-radius:999px;background:#f3f4f6;color:#374151;font-size:12px;font-weight:750;padding:4px 8px;line-height:1.15}.tag.important{background:#fff0c2;color:#745500}.tag.priority-high{background:#fee2e2;color:#991b1b}.tag.priority-normal{background:#eef2ff;color:#3730a3}.tag.priority-low{background:#ecfdf5;color:#166534}.tag.status-backlog{background:#f3f4f6;color:#4b5563}.tag.status-todo{background:#dbeafe;color:#1d4ed8}.tag.status-in_progress{background:#fef3c7;color:#92400e}.tag.status-blocked{background:#ffe4e6;color:#be123c}.tag.status-done{background:#dcfce7;color:#166534}.tag.status-archived{background:#e5e7eb;color:#374151}.tag.link-goal{background:#ede9fe;color:#5b21b6}.tag.link-person{background:#e0f2fe;color:#075985}.tag.link-chat{background:#fce7f3;color:#9d174d}.tag.link-note{background:#ecfccb;color:#3f6212}.workspace{background:#f8fafc;padding:44px 40px}.project-header{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:24px}.project-header h1{color:#111827;font-size:32px;line-height:1.1;margin-bottom:0}.project-title-row{display:flex;align-items:center;gap:12px;margin-bottom:8px}.project-settings-button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border-color:#e5e7eb;border-radius:10px;background:#fff;color:#374151;padding:0;font-size:18px;line-height:1}.project-settings-button.active,.project-settings-button:hover{border-color:#2563eb;background:#2563eb;color:#fff}.header-stats,.focus-strip{display:flex;flex-wrap:wrap;gap:10px}.header-actions{display:flex;justify-content:flex-end;min-width:min(620px,48vw)}.metric{display:grid;min-width:112px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:12px;box-shadow:0 1px 2px #0f172a0a}.metric b{font-size:24px;line-height:1}.metric span{color:#6b7280;font-size:12px}.metric.warn{border-color:#e8c05a;background:#fff9e8}.metric.bad{border-color:#efb0b0;background:#fff0f0}.tabs{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 28px;border-bottom:1px solid #e5e7eb;padding-bottom:16px}.tabs button{min-height:38px;border-radius:8px;padding-inline:16px;font-size:13px}.tabs button,.filter-row button,.settings-tabs button,.check-item{border:1px solid #e5e7eb;background:#fff;color:#374151}.tabs button.active,.filter-row button.active,.settings-tabs button.active{border-color:#2563eb;background:#2563eb;color:#fff}.quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}.header-actions .quick-actions{justify-content:flex-end}.quick-actions button{min-height:40px;padding-inline:16px}.project-search{position:relative;margin-top:0;margin-bottom:18px}.project-search input{min-height:46px;padding-inline:14px}.search-results{position:absolute;z-index:15;top:calc(100% + 6px);left:0;right:0;display:grid;gap:6px;max-height:320px;overflow:auto;border:1px solid #d8dde6;border-radius:10px;background:#fff;box-shadow:0 18px 42px #0f172a29;padding:8px}.search-result{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border-color:transparent;background:#fff;color:#111827;text-align:left}.search-result:hover{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}.notice{border-radius:8px;margin-bottom:12px;padding:10px 12px}.notice.danger{background:#fee2e2;color:#991b1b}.notice.success{background:#dcfce7;color:#166534}.panel{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:28px;box-shadow:0 1px 2px #0f172a0a}.screen-grid,.stack{display:grid;gap:28px}.overview-grid,.editor-grid,.settings-grid{grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr)}.span-2{grid-column:1 / -1}.screen-header{margin-bottom:22px}.screen-header h2{margin-bottom:4px}.screen-header p,.section-title p,.compact-list p,.info-card p,.goal-row p,.event-row p,.empty-state p{color:#687080;line-height:1.45}.section-title,.column-header,.card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.column-header h3,.column-header span{margin:0;line-height:1.1}.section-title button{min-height:30px;background:#eef2f7;color:#202632}.empty-state{border:1px dashed #d1d5db;border-radius:12px;background:#f9fafb;padding:22px}.compact-list,.note-list,.week-list,.person-grid,.chat-grid,.user-list{display:grid;gap:18px}.note-item,.info-card,.goal-row,.event-row,.suggestion-row,.user-row,.task-card{border:1px solid #e3e7ee;border-radius:10px;background:#fff;padding:18px}.actionable-card{transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.actionable-card:hover{border-color:#bfdbfe;box-shadow:0 8px 24px #2563eb14}.note-item h3,.info-card h3{margin:8px 0 6px}.side-panel{align-self:start;position:sticky;top:16px}.board-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.board-toolbar h2{margin-bottom:0}.task-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.embedded-form{display:grid;gap:18px}.quick-task-bar{display:grid;grid-template-columns:minmax(220px,1fr) 130px 150px 130px auto;gap:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:18px;box-shadow:0 1px 2px #0f172a0a}.board-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end;gap:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:18px}.kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:16px;overflow-x:auto;padding-bottom:4px}.kanban-column{min-height:360px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;padding:18px}.kanban-column:has(.task-card:hover){background:#f6f8fb}.task-card{display:grid;gap:12px;margin-top:14px;border-left:3px solid #60a5fa}.task-card-main{display:grid;gap:6px}.task-card-main b{line-height:1.16}.task-card-main span{display:inline-flex;width:fit-content;color:#6b7280;font-size:12px;font-weight:750;line-height:1.2}.task-card[draggable=true]{cursor:grab}.task-card[draggable=true]:active{cursor:grabbing}.task-card.compact{margin-top:0}.task-card span,.task-card small,.event-row .time{color:#687080}.tag-row{display:flex;flex-wrap:wrap;gap:8px}.board-footer-actions{display:flex;justify-content:flex-end}.event-row,.goal-row,.suggestion-row,.user-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}.user-row{grid-template-columns:minmax(120px,.8fr) minmax(160px,1fr) auto auto;align-items:center}.member-row{grid-template-columns:minmax(120px,.8fr) minmax(160px,1fr) minmax(110px,.6fr) auto}.suggestion-row{grid-template-columns:minmax(0,1fr) auto}.row-actions{display:flex;flex-wrap:wrap;gap:8px}.row-actions button,.modal-actions button{width:fit-content}.day-block,.group-block{display:grid;gap:8px}.filter-row,.settings-tabs,.checklist{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}.check-item{align-items:center;display:inline-flex;gap:8px}.check-item.done{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.calendar-week-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:16px;overflow-x:auto}.calendar-day{display:grid;align-content:start;gap:10px;min-height:280px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;padding:16px}.calendar-day>div:first-child{display:grid;gap:2px}.calendar-day span,.repeat-preview,.calendar-period{color:#6b7280;font-size:12px}.calendar-period{margin:-4px 0 12px;font-weight:800;text-transform:uppercase}.settings-tabs{border-bottom:1px solid #e5e7eb;margin-bottom:0;padding-bottom:16px}.role-matrix{margin-bottom:0}.role-table{display:grid;gap:0;overflow-x:auto}.role-table>div{display:grid;grid-template-columns:130px 150px minmax(260px,1fr);gap:12px;min-width:640px;border-bottom:1px solid #eef0f3;padding:9px 0}.role-table>div:first-child{color:#6b7280;font-size:12px;text-transform:uppercase}.role-table>div:last-child{border-bottom:0}.danger-zone{display:grid;gap:8px;margin-top:18px;border:1px solid #fecaca;border-radius:12px;background:#fef2f2;color:#991b1b;padding:14px}.token-box{white-space:pre-wrap;word-break:break-all;border:1px solid #d4d9e2;border-radius:8px;background:#f5f6f3;padding:12px}.meta-list{display:grid;gap:10px}.meta-list div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}.meta-list dt{color:#687080;font-weight:750}.meta-list dd{margin:0;word-break:break-word}.compact-meta{margin-top:14px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;background:#1d20277a;padding:20px}.modal-panel{width:min(760px,100%);max-height:min(88vh,900px);overflow:auto;border:1px solid #d8dde6;border-radius:8px;background:#fff;box-shadow:0 24px 80px #10182847;padding:18px}.modal-header,.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-header{margin-bottom:16px}.modal-header h2{margin:0}.icon-button{min-height:32px;min-width:32px;padding:4px 9px}.modal-task-form{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:980px){.app-shell,.auth-panel.login-only,.overview-grid,.editor-grid,.settings-grid,.task-form,.modal-task-form{grid-template-columns:1fr}.sidebar{position:static;height:auto;overflow:visible;border-bottom:1px solid #dde1e8;border-right:0}.project-list{max-height:260px}.side-panel{position:static}.board-toolbar,.project-header,.modal-header,.modal-actions{align-items:stretch;flex-direction:column}.workspace{padding:22px 16px}.header-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.header-actions{justify-content:flex-start;min-width:0;width:100%}.header-actions .quick-actions{justify-content:flex-start}.metric{min-width:0}.project-title-row{align-items:flex-start;flex-direction:column}.quick-task-bar,.board-filters{grid-template-columns:1fr}.calendar-week-grid,.kanban{grid-template-columns:1fr;overflow-x:visible}.user-row,.member-row{grid-template-columns:1fr}}
