/* Shared layout fixes; Quiet Engineering uses a focused engineering workspace. */
:root{--gantt-row120:82px;--gantt-marker120:56px}
.filters{align-items:center;gap:8px}.filters>label{display:flex;align-items:center;gap:8px;margin:0}.filters>input,.filters>select,.filters>label>select{height:40px;min-height:40px;box-sizing:border-box}
.global-search{background:var(--surface2);border:1px solid var(--border);border-radius:8px;box-shadow:none;min-width:0}.global-search:focus-within{border-color:var(--accent);outline:2px solid var(--accent-soft);outline-offset:1px}.global-search input{border:0!important;box-shadow:none!important;outline:none!important;background:transparent;min-width:0}.global-search kbd{color:var(--muted);background:transparent;border:1px solid var(--border)}
.column-settings120{padding:4px;min-width:30px;margin-left:0}.column-head{gap:6px}.column-head .column-title{overflow:hidden;text-overflow:ellipsis}
.gantt-grid{grid-template-columns:280px var(--timeline-width);align-items:start}.gantt-time-head,.gantt-label-head{height:40px!important;min-height:40px;box-sizing:border-box}.gantt-labels{padding-top:var(--gantt-marker120)!important}.gantt-timeline{padding-top:var(--gantt-marker120)!important}.gantt-task-label,.gantt-lane{height:var(--gantt-row120)!important;min-height:var(--gantt-row120)!important;max-height:var(--gantt-row120)!important;box-sizing:border-box}.gantt-task-label{display:flex!important;flex-direction:column!important;justify-content:center;gap:3px;padding:8px 12px!important;border-bottom:1px solid var(--border)}.gantt-task-label>a{font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gantt-task-label small{display:block!important;font-size:11px;line-height:14px}.gantt-task-meta{display:flex!important;justify-content:space-between;font-size:11px;line-height:15px;min-height:15px}.gantt-task-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gantt-task-tags{display:none!important}.gantt-lane{border-bottom:1px solid var(--border)}.gantt-task-bar{top:calc((var(--gantt-row120) - 30px)/2)!important;height:30px!important;min-height:30px!important}.gantt-markers{height:100%}.gantt-marker>span{font-size:10px}.today-marker>span{top:34px!important}
.approval-change120{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(0,1fr) minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--border);align-items:start}.approval-change120>*{margin:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}.approval-change120 .old-value120{color:var(--muted)}.approval-change120 .new-value120{font-weight:500}.approval-diff-head120{color:var(--muted);font-size:12px}.approval-card120{display:flex;flex-direction:column;gap:8px}.approval-card120 h3,.approval-card120 p{margin:0}.approval-card120>.filters{margin-top:auto!important;padding-top:12px}.review-queue{margin:0 0 24px}.upload-requests{margin:12px 0 24px}.upload-requests summary{font-weight:600;padding:12px 0}.feedback-card{margin-bottom:16px}.feedback-card header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.feedback-card p{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-card blockquote{border-left:3px solid var(--border);margin:16px 0;padding-left:12px}.feedback-files{display:flex;gap:12px;flex-wrap:wrap}.feedback-files img{max-width:160px;max-height:100px;display:block}.attachment-zone{padding:16px;border:1px dashed var(--border);border-radius:8px;background:var(--surface2);text-align:center}.attachment-zone img{max-width:200px;max-height:150px;object-fit:contain;margin:auto}.feedback-trigger120{display:inline-flex;gap:6px;white-space:nowrap}
#project-resources{display:block!important;padding:16px!important;overflow:visible!important}#project-resources header{display:flex;gap:8px;align-items:center;justify-content:space-between}#project-resources h3{font-size:14px;margin:0}#project-resources button{font-size:11px;min-height:32px;padding:5px 8px}.resource-row{padding:12px 0;border-bottom:1px solid var(--border)}.resource-row:last-child{border:0}.resource-row a{display:block;overflow-wrap:anywhere}.resource-row strong,.resource-row small{display:block;line-height:1.5}.resource-row small{color:var(--muted)}.resource-type{font-size:11px;color:var(--muted)}.resource-row>div{display:flex;gap:6px;margin-top:6px}
main[data-route=profile]>.grid{gap:16px;align-items:start}main[data-route=profile]>.grid>.card{padding:24px;min-width:0}main[data-route=profile]>.note{margin-top:16px!important}.profile-grid120 .profile-portrait{float:none;display:flex;margin-bottom:12px}.profile-grid120 .profile-portrait .avatar{width:88px;height:88px;font-size:24px;border-radius:16px}.profile-grid120 h2{font-size:24px;line-height:1.3;margin:0 0 12px}.profile-grid120 h3{font-size:17px}.profile-grid120 .filters{margin:16px 0}.profile-sharing120 input{width:100%;box-sizing:border-box}.profile-sharing120 .note{font-size:13px;line-height:1.6}
.composer{min-width:0}.composer textarea{box-sizing:border-box;width:100%;min-height:64px}.compose-foot{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}.compose-foot>span{font-size:11px;color:var(--muted)}.compose-foot button{min-height:36px}.compose-foot button[type=submit]{margin-left:auto}.compose-foot input[type=file]{display:none!important}.attachment-preview120{display:flex;gap:10px;align-items:center;padding:8px 0;min-width:0}.attachment-preview120[hidden]{display:none}.attachment-preview120 img{width:56px;height:48px;object-fit:cover;border-radius:6px}.attachment-preview120 .file-copy120{flex:1;min-width:0}.file-copy120 strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy120 small{font-size:11px;color:var(--muted)}.attachment-preview120 progress{width:100%}.composer.drop120{outline:2px dashed var(--accent);outline-offset:-3px;background:var(--accent-soft)}.code-lines120{display:flex;overflow:auto;max-width:100%;align-items:stretch}.code-lines120 pre{flex:1;margin:0!important;overflow:visible!important;padding:12px!important;line-height:20px!important}.line-numbers120{flex-shrink:0;padding:12px 8px;color:var(--muted);font:12px/20px monospace;user-select:none;text-align:right;border-right:1px solid var(--border)}.line-numbers120 span{display:block}.syntax-function{color:#6b42a0}.dark .syntax-function{color:#ceb0ff}#code-preview120{max-width:100%;min-width:0}
body.quiet-engineering{--background:#f4f6f7;--surface:#fff;--surface-muted:#eaf0f1;--text-primary:#203039;--text-secondary:#536772;--border:#d6e0e3;--control-border:#8d9da4;--accent:#267a83;--action:#267a83;--action-text:#fff;--selected:#dfedef;--focus:#147c87;--side:208px;--shadow:none;--gantt-row120:70px;font-family:Inter,system-ui,sans-serif;font-size:14px}
body.quiet-engineering.dark{--background:#111821;--surface:#1b2530;--surface-muted:#24313d;--text-primary:#eaf1f6;--text-secondary:#abbdca;--border:#344553;--control-border:#6f8795;--accent:#66bbc1;--action:#66bbc1;--action-text:#111821;--selected:#29444c;--focus:#86dbe0}
body.quiet-engineering.gray{--background:#e8edee;--surface:#f5f7f8;--surface-muted:#e0e7e9}.quiet-engineering :where(.card,.panel,.rail-card,.stat,.task-card){border-radius:7px;box-shadow:none}.quiet-engineering :where(button,.btn,input,textarea,select,.choice-trigger112){border-radius:6px}.quiet-engineering main{padding:16px 20px}.quiet-engineering .topbar{height:60px;min-height:60px;gap:12px;padding:0 20px}.quiet-engineering .page-title{gap:8px;margin-bottom:12px;align-items:center}.quiet-engineering .page-title h1{font-size:24px;line-height:30px;letter-spacing:-.4px}.quiet-engineering .page-title p{font-size:13px;line-height:20px}.quiet-engineering .project-heading{margin:0}.quiet-engineering .project-more{margin:8px 0 12px}.quiet-engineering .tabs{margin:12px 0;gap:4px;border-bottom:1px solid var(--border)}.quiet-engineering .tabs a{padding:9px 12px;border-radius:0;border:0;border-bottom:2px solid transparent;font-size:13px}.quiet-engineering .tabs a.active{background:transparent;border-bottom-color:var(--accent);color:var(--ink)}.quiet-engineering .project-workspace{grid-template-columns:minmax(0,1fr)!important;gap:16px}.quiet-engineering .project-workspace>.project-rail{display:none}.quiet-engineering .project-workspace.rail-open120>.project-rail{display:flex;flex-direction:column;gap:12px;position:fixed;right:20px;top:76px;bottom:16px;z-index:25;width:340px;max-width:calc(100vw - 32px);padding:12px;background:var(--surface);border:1px solid var(--border);box-shadow:0 8px 32px #11182125;overflow:auto}.quiet-engineering .rail-chat{height:420px;min-height:300px}.quiet-engineering .project-main{gap:12px}.quiet-engineering .quiet-plan113,.quiet-engineering .quiet-board113{padding:16px}.quiet-engineering .kanban{grid-auto-columns:minmax(270px,1fr);gap:12px;min-height:calc(100dvh - 375px);padding:0 0 12px;overflow:auto;align-items:stretch}.quiet-engineering .column{min-height:330px;padding:10px;background:var(--surface-muted);border-radius:7px}.quiet-engineering .column-head{padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:10px}.quiet-engineering .column-tasks113{gap:10px}.quiet-engineering .task-card{padding:12px}.quiet-engineering .task-card h4{font-size:14px;line-height:21px;margin:8px 0}.quiet-engineering .task-ownership{font-size:11px}.quiet-engineering .nav a{padding:9px 12px;font-size:13px;min-height:40px}.quiet-engineering .stats{gap:12px;margin-bottom:16px}.quiet-engineering .stat{padding:16px}.quiet-engineering .stat strong{font-size:26px}.quiet-engineering .gantt-grid{grid-template-columns:260px var(--timeline-width)}.quiet-engineering .chat-header{padding:12px;min-height:52px}.quiet-engineering .message-main{border-radius:7px;padding:10px 12px}.quiet-engineering .message{gap:8px}.quiet-engineering .message-text{font-size:14px;line-height:1.6}.quiet-engineering .composer textarea{min-height:64px!important}.quiet-engineering .chat-layout{min-height:550px}.quiet-engineering .profile-portrait{margin-bottom:16px}
@media(min-width:1600px){.quiet-engineering .project-workspace.rail-open120{grid-template-columns:minmax(0,1fr) 340px!important}.quiet-engineering .project-workspace.rail-open120>.project-rail{position:sticky;top:76px;right:auto;bottom:auto;max-width:none;padding:0;border:0;box-shadow:none;width:auto;max-height:calc(100dvh - 100px)}}
@media(max-width:1100px){.feedback-trigger120 span{display:none}.topbar .global-search{flex:1;width:auto}.quiet-engineering .topbar{padding:0 12px}.quiet-engineering main{padding:16px}.approval-change120{grid-template-columns:1fr 1fr}.approval-change120>strong{grid-column:1/-1}}
@media(max-width:767px){.global-search kbd{display:none}.global-search{min-width:80px;max-width:none}.topbar{gap:6px!important}.topbar .global-search input{font-size:13px;min-height:38px}.profile-grid120{grid-template-columns:1fr}.filters>input{max-width:100%;flex:1}.quiet-engineering .project-workspace.rail-open120>.project-rail{right:8px;top:70px;bottom:74px;width:calc(100vw - 40px);max-width:calc(100vw - 40px)}.quiet-engineering .kanban{grid-auto-columns:min(290px,84vw);min-height:480px}.quiet-engineering main{padding:12px}.quiet-engineering .page-title h1{font-size:22px}.quiet-engineering .topbar{gap:6px;padding:0 10px}.quiet-engineering :where(button,.btn,input,.choice-trigger112){min-height:44px}.gantt-grid,.quiet-engineering .gantt-grid{grid-template-columns:190px var(--timeline-width)}.gantt-task-label>a{font-size:12px}.feedback-trigger120{padding:6px!important;min-width:36px}.compose-foot{gap:6px}.compose-foot button{min-height:44px}.compose-foot>span{flex:1;font-size:10px}.code-lines120 pre{font-size:12px}.profile-grid120 .profile-portrait .avatar{width:72px;height:72px}.quiet-engineering .composer textarea{min-height:76px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.column[data-column-kind=research]{border-top:2px solid var(--accent)}

/* Executor picker: ordinary clicks, keyboard focus and responsive team list. */
.task-people{min-width:0;border:1px solid var(--border);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px}
.task-people legend{padding:0 4px;font-weight:600}
.task-people-list{max-height:200px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.task-person{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}
.task-person:hover,.task-person:focus-within{background:var(--surface2)}
.task-person input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--accent)}
.task-person[hidden]{display:none}
.task-person:has(input:checked){outline:1px solid var(--accent);outline-offset:-1px}
.task-people small{color:var(--muted)}
@media(max-width:600px){.task-people-list{grid-template-columns:1fr}.task-people{padding:8px}}
