.project-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:16px; }
.project-card { min-width:0; padding:20px; border:1px solid var(--line,#343947); border-radius:18px; background:var(--surface,#1d222c); }
.project-card-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.project-card h3 {margin:4px 0;font-size:1.3rem;overflow-wrap:anywhere;}
.project-path {font:12px monospace;opacity:.7;overflow-wrap:anywhere;margin:6px 0 16px;}
.project-counts {display:flex;flex-wrap:wrap;gap:6px;font-size:11px;}
.project-counts span {padding:5px 8px;border-radius:8px;background:#ffffff08;}
.project-counts .attention {color:#f5a97f;background:#f5a97f15;}
.project-brief {white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;max-height:150px;overflow:auto;}
.project-links {display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:12px;margin:14px 0;}
.project-text-button {background:none;border:0;padding:10px 0;color:var(--blue,#8aadf4);font:inherit;cursor:pointer;}
.project-members {border-top:1px solid #ffffff10; margin-top:14px;}
.project-member {display:flex;align-items:center;gap:8px;border-bottom:1px solid #ffffff10;}
.project-member > button:first-child {text-align:left;flex:1;min-width:0;background:none;color:inherit;border:0;padding:14px 0;cursor:pointer;}
.project-agent-copy > strong,.project-agent-copy > small {display:block;}
.project-agent-copy > small {font-size:11px;opacity:.65;margin-top:3px;}
.project-actions {display:flex;gap:8px;margin-top:18px;}
.project-actions button {flex:1;min-width:0;font-size:12px;min-height:44px;}
#project-form label,#project-member-form label {display:block;margin:16px 0 7px;}
#project-form textarea,#project-member-form textarea,#project-context-text {resize:vertical;width:100%;font:inherit;}
#project-launch-note {padding:10px 12px;border-radius:10px;background:#8aadf414;color:#8aadf4;overflow-wrap:anywhere;}
#launch-workspace-plan {margin:6px 0 0;padding:8px 12px;border-radius:10px;background:#a6da9514;color:#a6da95;overflow-wrap:anywhere;font-size:.9em;}
#launch-workspace-plan[data-state=blocked] {background:#ed879614;color:#ed8796;}
@media (prefers-reduced-motion:no-preference) {.project-card {animation:project-enter 180ms ease-out;} @keyframes project-enter {from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:400px){.project-card{padding:14px}.project-actions{flex-direction:column}.main-nav button{font-size:12px}}
.project-tasks {margin-top:18px;border-top:1px solid #ffffff14;padding-top:8px;}
.project-tasks h4 {font-size:14px;margin:12px 0;}.project-tasks h4 small {font-weight:400;opacity:.6;margin-left:6px;}
.project-tasks progress {width:100%;height:5px;accent-color:var(--green,#a6e3a1);margin-bottom:12px;}
.project-task-list {display:grid;gap:8px;}
.project-task {border:1px solid #ffffff12;border-radius:10px;padding:10px;background:#ffffff04;min-width:0;}
.task-edit {width:100%;text-align:left;display:grid;gap:5px;color:inherit;border:0;background:none;padding:4px;cursor:pointer;}
.task-edit strong,.task-edit small,.task-edit span {overflow-wrap:anywhere;}.task-edit small {font-size:11px;opacity:.7;}.task-edit span {font-size:12px;line-height:1.5;}
.project-task[data-task-status=done] {border-color:#a6e3a140;}.project-task[data-task-status=done] strong {color:#a6e3a1;}
.task-send {margin-top:10px;min-height:44px;width:100%;font-size:12px;}
#task-form label {display:block;margin:16px 0 7px;}
#task-form textarea,#task-dispatch-text,#launch-task-text {width:100%;resize:vertical;font:inherit;}
.task-dependency-group {margin:18px 0;padding:10px;border:1px solid #ffffff20;border-radius:10px;}
#task-form .task-dependency {display:flex;gap:10px;align-items:center;margin:0;padding:10px 0;min-height:44px;}
.task-dependency input {width:20px;height:20px;flex-shrink:0;}.task-dependency span {overflow-wrap:anywhere;font-size:13px;}

.task-workspace-actions {display:flex;flex-wrap:wrap;gap:8px;padding:10px 4px 0;}
.task-workspace-actions .field {width:auto;margin:0;flex:1 1 130px;min-height:44px;font-size:12px;}
.workspace-sheet {width:min(760px,100%);}
.workspace-facts {display:grid;gap:6px;margin:20px 0;}
.workspace-facts dt {color:var(--muted,#a5adcb);font-size:12px;}
.workspace-facts dd {margin:0 0 8px;overflow-wrap:anywhere;font-size:13px;}
.workspace-diff {max-width:100%;max-height:340px;overflow:auto;white-space:pre;font-size:12px;line-height:1.6;padding:12px;background:var(--bg,#181c26);border:1px solid var(--line,#343947);border-radius:12px;}
.workspace-sheet details summary {cursor:pointer;min-height:44px;padding:12px 0;}
.workspace-sheet h3 {margin-top:22px;font-size:15px;}
.workspace-sheet p,.workspace-reasons {font-size:13px;line-height:1.6;overflow-wrap:anywhere;}
.workspace-reasons {padding-left:20px;}
.workspace-reasons li+li {margin-top:8px;}
.workspace-success {color:var(--green);}
.workspace-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.workspace-actions button {flex:1 1 160px;min-height:44px;}
@media(prefers-reduced-motion:no-preference) {.workspace-sheet details[open] .workspace-diff {animation:workspace-reveal 160ms ease-out;}@keyframes workspace-reveal{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:none;}}}

.integrations-sheet {width:min(800px,100%);}
.integrations-sheet h2 {overflow-wrap:anywhere;min-width:0;}
.integration-tabs {display:flex;gap:6px;border-bottom:1px solid var(--line,#343947);padding-bottom:10px;}
.integration-tabs button {flex:1;background:transparent;color:inherit;border:1px solid transparent;border-radius:10px;padding:12px 6px;min-height:44px;cursor:pointer;}
.integration-tabs [aria-selected=true] {background:#8aadf41a;color:var(--blue,#8aadf4);border-color:#8aadf440;}
.integration-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;}
.integration-heading h3 {margin:0;font-size:16px;}
.integration-state {font-size:11px;border:1px solid #ffffff20;padding:4px 7px;border-radius:20px;}
.integration-state.connected {color:var(--green,#a6e3a1);}.integration-state.stale,.integration-warning {color:var(--peach,#f5a97f);}
.integrations-sheet p,.integrations-sheet li {font-size:13px;line-height:1.65;overflow-wrap:anywhere;}
.integrations-sheet small {font-size:11px;opacity:.75;}.integrations-sheet h4 {margin:22px 0 10px;font-size:14px;}
.integration-list,.memory-result,.memory-pin {font-size:13px;}
.integration-list>div {display:grid;gap:6px;padding:12px 0;border-bottom:1px solid #ffffff12;overflow-wrap:anywhere;}
.integration-list span {white-space:pre-wrap;}
.integration-list .field {justify-self:start;width:auto;font-size:12px;min-height:44px;}
.integrations-sheet label {display:block;font-size:12px;margin:14px 0 6px;}
#memory-search-submit {margin-top:12px;}
.memory-result,.memory-pin,.pr-detail {padding:14px;border:1px solid #ffffff18;border-radius:12px;margin:12px 0;overflow-wrap:anywhere;}
.memory-result h4 {margin:0 0 8px;}.memory-pin strong,.memory-pin small {display:block;}
.memory-result p {white-space:pre-wrap;max-height:220px;overflow:auto;}
.memory-pin>div {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}.memory-pin button {flex:1;min-height:44px;font-size:12px;}
.memory-source-text,.pr-detail pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;padding:12px;background:#0002;border:1px solid #ffffff12;border-radius:12px;font:12px/1.6 monospace;}
.pr-detail code {overflow-wrap:anywhere;font-size:11px;}.pr-detail summary {padding:12px 0;cursor:pointer;}
#integration-refresh {margin-top:20px;min-height:44px;}

.estate-toolbar{margin:1rem 0}.estate-tabs{display:flex;gap:.35rem;overflow-x:auto;padding:.25rem 0 .8rem}.estate-tabs button{flex:1;min-height:44px;white-space:nowrap;border:1px solid #ffffff24;border-radius:12px;padding:.55rem .7rem;background:#ffffff08;color:inherit}.estate-tabs button[aria-pressed=true]{background:var(--accent,#a1efd5);color:#17262b}.estate-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.8rem;margin:.8rem 0}.estate-controls label{display:flex;flex-direction:column;gap:.4rem;font-size:.85rem}.estate-controls input,.estate-controls select{min-height:44px;width:100%;min-width:0;border:1px solid #ffffff24;border-radius:10px;padding:.65rem;background:#282232;color:inherit}.estate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem;margin:1rem 0}.estate-card,.estate-event,.estate-coverage{border:1px solid #ffffff1c;background:#2e2639;border-radius:16px;padding:1rem;min-width:0;overflow-wrap:anywhere}.estate-card h3,.estate-event h3{margin:.5rem 0;font-size:1.05rem}.estate-card p{line-height:1.5}.estate-card .project-links{gap:.65rem}.estate-event{margin:.75rem 0}.estate-event pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.85rem;line-height:1.6;max-height:60vh;overflow:auto}.estate-event summary,.estate-coverage summary{cursor:pointer;min-height:36px}.estate-coverage{font-size:.82rem;line-height:1.55;margin-bottom:1rem}.estate-detail{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:1rem;box-sizing:border-box}.estate-detail>button:first-child{float:right}#estate-panel>.field{min-height:44px}#estate-panel[hidden],#projects[hidden]{display:none!important}@media(max-width:380px){.estate-tabs button{font-size:.77rem;padding:.5rem}.estate-controls{grid-template-columns:1fr}}

/* Compact project identity: labels remain visible; color is supplementary. */
.project-icon{width:18px;height:18px;flex:none;vertical-align:middle}.icon-forgejo{color:#fbad69}.icon-onedev{color:#cbb2f7}.project-path{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;margin:6px 0 12px}.project-path .project-icon{width:14px;height:14px}.project-links{gap:5px 12px;margin:10px 0}.project-links a,.project-links .project-text-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:5px 0}.project-links a{color:var(--blue,#a6ead4);text-decoration:none}.project-links a:hover,.project-links button:hover{text-decoration:underline}.project-counts .working{color:#a6ead4;background:#a6ead410}.project-counts .waiting{color:#edd293;background:#edd29312}.project-member>button:first-child{display:flex;align-items:center;gap:10px;padding:12px 0}.project-member .project-agent-mark{display:grid;place-items:center;flex:none;width:34px;height:36px;margin:0;max-height:none;overflow:visible;font-size:19px;border:1px solid color-mix(in srgb,var(--identity-color) 30%,transparent);border-radius:10px;background:color-mix(in srgb,var(--identity-color) 9%,transparent);color:var(--identity-color)}.project-agent-copy{min-width:0;flex:1}.project-agent-copy strong{font-size:14px}.project-agent-copy small{display:flex;align-items:center;flex-wrap:wrap;gap:4px;opacity:1;color:var(--muted,#b1a7bb);line-height:1.6}.project-agent-copy small b{font-weight:500}.project-agent-copy small i{font-style:normal;opacity:.6}.project-member .project-model-mark{display:inline;margin:0;font-size:12px;max-height:none;overflow:visible}.project-agent-state{font-size:10px;font-style:normal;text-transform:capitalize;color:var(--muted,#b1a7bb);max-width:75px;flex:none;text-align:right}.project-agent-state.state-working{color:#a6ead4}.project-agent-state.state-input{color:#edd293}.project-tasks{margin-top:10px;padding-top:0}.project-tasks h4{margin:8px 0}.project-task-list:empty{display:none}.project-actions{margin-top:12px}.provider-heading{display:flex;align-items:center;gap:8px}.provider-heading .project-icon{width:24px;height:24px}.project-card{padding:18px}.project-card .eyebrow{font-size:9px;letter-spacing:1.5px}.project-member .icon-button{width:36px;height:44px}.project-card button:focus-visible,.estate-card button:focus-visible{outline:2px solid #a6ead4;outline-offset:3px}@media(max-width:400px){.project-card{padding:14px}.project-agent-state{max-width:52px;font-size:9px}.project-member>button:first-child{gap:8px}.project-agent-copy small{font-size:10px}.project-links{gap:2px 12px}}
.usage-identity{display:flex;gap:10px;align-items:center}.usage-identity .project-agent-mark{font-size:24px;color:var(--identity-color)}.usage-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin:18px 0}.usage-stats dt{font-size:11px;color:var(--muted,#b1a7bb)}.usage-stats dd{font-size:20px;font-variant-numeric:tabular-nums;margin:5px 0 0;overflow-wrap:anywhere}.usage-card>small{display:block;line-height:1.5}.estate-tabs button{flex-shrink:0}.project-agent-copy .project-model-mark{font-family:'Quickshell Icons',monospace}
@media(max-width:560px){.estate-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible}.estate-tabs button{grid-column:span 2;min-width:0;padding:.5rem .3rem}.estate-tabs button:nth-last-child(-n+2){grid-column:span 3}}

@media(max-width:560px){.estate-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.estate-tabs button,.estate-tabs button:nth-last-child(-n+2){grid-column:auto}}
#usage-statistics{min-width:0}#usage-statistics>.field{min-height:44px}
.vapormemory-sheet{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;padding:18px}.vapormemory-sheet form{display:grid;gap:9px}.vapormemory-sheet .field{width:100%;min-height:44px;box-sizing:border-box}.vapormemory-sheet .primary{margin-top:5px;min-height:44px}.vapormemory-sheet .memory-result{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.vapormemory-sheet pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.6}.vapormemory-sheet #vapormemory-proof{overflow-wrap:anywhere}.tool[data-vapormemory]{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
.workspace-sheet{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;padding:20px}.workspace-sheet label{display:block;margin:16px 0 8px}.workspace-sheet .field{width:100%;box-sizing:border-box;min-height:44px}.workspace-sheet button.primary{min-height:44px;margin:16px 0}.workspace-sheet pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 monospace}.workspace-sheet h2{overflow-wrap:anywhere}.workspace-actions{flex-wrap:wrap}.project-actions[hidden]{display:none}.estate-card>.primary,.estate-card>.field{min-height:44px;margin:5px 0;width:100%}
.workspace-sheet>.section-heading,.vapormemory-sheet>.section-heading{position:sticky;top:-20px;background:#20252e;z-index:2;padding:10px 0}.machine-switcher{margin:8px 0 14px}.machine-switcher label{display:block}.machine-switcher select{width:100%;min-height:44px}.machine-switcher p{margin:7px 0;font-size:12px}

.task-milestone {display:inline-block;font-size:11px;padding:2px 8px;border-radius:999px;background:#ffffff0f;color:var(--muted,#b1a7bb);justify-self:start;}

/* One menu instead of six link rows: the card leads with state and one action. */
.project-card-heading {position:relative;}
.card-menu {position:relative;flex:none;}
.card-menu > summary {list-style:none;display:grid;place-items:center;width:44px;height:44px;border-radius:10px;cursor:pointer;color:var(--muted,#b1a7bb);font-size:18px;}
.card-menu > summary::-webkit-details-marker {display:none;}
.card-menu > summary:hover,.card-menu[open] > summary {background:#ffffff10;color:inherit;}
.card-menu-items {position:absolute;right:0;top:46px;z-index:20;min-width:230px;max-width:min(300px,80vw);display:grid;gap:2px;padding:6px;
  background:var(--bg,#181c26);border:1px solid var(--line,#343947);border-radius:12px;box-shadow:0 18px 40px #00000070;}
.card-menu-items button,.card-menu-items a {display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 12px;text-align:left;
  border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-decoration:none;cursor:pointer;}
.card-menu-items button:hover,.card-menu-items a:hover {background:#ffffff0f;}
.card-menu-items button[disabled] {opacity:.45;cursor:not-allowed;}
.card-menu-items .project-icon {width:16px;height:16px;}

/* Adding a task should not need a dialog. */
.task-quick {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;}
.task-quick input {flex:1 1 150px;min-width:0;min-height:44px;padding:0 12px;font:inherit;color:inherit;
  background:#ffffff08;border:1px solid var(--line,#343947);border-radius:10px;}
.task-quick input:focus-visible {outline:2px solid #a6ead4;outline-offset:1px;}
.task-quick .field {width:auto;margin:0;min-height:44px;padding:0 16px;}
.task-quick .project-text-button {min-height:44px;}

.task-draft-list {display:grid;gap:8px;margin:14px 0;}
.task-draft {display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff04;}
.task-draft input {width:20px;height:20px;flex:none;margin-top:2px;}
.task-draft span {display:grid;gap:4px;min-width:0;}
.task-draft small {opacity:.6;font-size:11px;text-transform:uppercase;letter-spacing:.06em;}
.task-draft em {font-style:normal;font-size:13px;line-height:1.55;opacity:.85;overflow-wrap:anywhere;}
.project-actions:last-child {margin-top:14px;}
.project-tasks progress {margin-bottom:8px;}

.project-task {display:flex;align-items:center;gap:8px;}
.project-task .task-edit {flex:1 1 auto;min-width:0;}
.task-action {flex:none;width:auto;margin:0;min-height:40px;padding:0 14px;font-size:12px;}
.project-task[data-task-status=done] {opacity:.72;}

.task-draft-run {display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px;}
.task-draft-run select {flex:1 1 180px;min-width:0;margin:0;}
.task-draft-run .field {width:auto;margin:0;min-height:44px;padding:0 18px;}

#project-scope {display:grid;gap:6px;margin:10px 0 14px;}
#project-scope .field {margin:0;min-height:44px;}
#project-scope-note {font-size:12px;}
.workspace-card .project-members {margin-top:4px;}

.project-avatar {width:38px;height:38px;flex:none;border-radius:9px;object-fit:contain;background:#ffffff0a;padding:3px;}
.project-avatar-fallback {display:grid;place-items:center;font-weight:600;font-size:16px;color:var(--muted,#b1a7bb);padding:0;}
.project-card-heading {gap:10px;align-items:flex-start;}
.estate-card h3 .project-avatar {width:22px;height:22px;border-radius:6px;padding:1px;vertical-align:-5px;margin-right:6px;}

.project-card-actions {display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end;}
#task-draft-dialog .agent-picker {margin:6px 0 2px;}
#task-draft-dialog .model-picker {max-height:210px;}
.task-draft-run {margin:10px 0 4px;}
.task-draft-run .primary {width:100%;min-height:48px;}

/* A card wears its project's own colour, sampled from the icon it already
   shows. Without an icon, or from a grey one, the theme's default stands. */
.project-card {--project-accent:var(--blue,#a6ead4);--project-fill:var(--green,#a6e3a1);--project-ink:#11111b;}
.project-card {border-top:2px solid color-mix(in srgb,var(--project-accent) 55%,transparent);}
.project-card .project-avatar {box-shadow:0 0 0 1px color-mix(in srgb,var(--project-accent) 45%,transparent);}
.project-card .project-card-heading h3 {color:color-mix(in srgb,var(--project-accent) 85%,var(--text,#fff));}
.project-card .project-text-button {color:var(--project-accent);}
.project-card .project-actions .primary {background:var(--project-fill);color:var(--project-ink);}
.project-card .project-tasks progress {accent-color:var(--project-accent);}
.project-card .task-quick input:focus-visible {outline-color:var(--project-accent);}

.agent-dev {width:38px;height:44px;flex:none;font-size:15px;color:var(--muted,#b1a7bb);}
.agent-dev:hover {color:var(--project-accent);}
/* The same keycap as the session list and the workspace card, so a DEV key
   looks like a key wherever it appears. */
.agent-devkey {flex:none;display:grid;place-items:center;min-width:32px;padding:2px 6px;
  font:600 10px/1.4 ui-monospace,monospace;letter-spacing:.3px;color:var(--project-accent,#b1a7bb);
  border:1px solid color-mix(in srgb,var(--project-accent,#ffffff) 40%,transparent);border-bottom-width:2px;
  border-radius:6px;background:color-mix(in srgb,var(--project-accent,#ffffff) 12%,transparent);}
#task-isolate {margin-top:12px;}

.task-model {margin:18px 0 6px;padding-top:6px;border-top:1px solid #ffffff14;}
.task-model h4 {font-size:13px;margin:8px 0;}
.task-advice {display:grid;gap:6px;padding:12px;border:1px solid #ffffff18;border-radius:10px;background:#ffffff05;}
.task-advice small {font-size:11px;color:var(--muted,#b1a7bb);}
.task-advice em {font-style:normal;font-size:13px;line-height:1.55;}
.task-advice-risk {color:#edd293;}
.task-advice .field {width:auto;justify-self:start;margin:4px 0 0;min-height:44px;padding:0 16px;}

/* Collapsed by default: the heading is the control that opens the card. */
.project-card-open {flex:1;min-width:0;display:grid;gap:3px;text-align:left;padding:2px 0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;}
.project-card-open h3 {margin:0;}
.project-card-summary {font-size:12px;color:var(--muted,#b1a7bb);margin:0;}
.project-card:not(.open) {padding-bottom:14px;}
.project-card:not(.open) .project-counts {margin-bottom:0;}
.project-card-open::after {content:"▸";position:absolute;right:52px;top:22px;font-size:11px;color:var(--muted,#b1a7bb);transition:transform .15s ease;}
.project-card.open .project-card-open::after {transform:rotate(90deg);}
.project-card-open:focus-visible {outline:2px solid var(--project-accent);outline-offset:4px;border-radius:8px;}

/* The card takes the icon's colour properly: a tinted surface, a matching
   edge and a heading that belongs to it, not a hairline at the top. */
.project-card.tinted {
  background:linear-gradient(160deg,color-mix(in srgb,var(--project-accent) 13%,transparent),
    color-mix(in srgb,var(--project-accent) 4%,transparent) 55%,transparent),var(--surface,#1b1f2a);
  border:1px solid color-mix(in srgb,var(--project-accent) 26%,transparent);
  border-top:2px solid color-mix(in srgb,var(--project-accent) 70%,transparent);
  box-shadow:0 10px 30px color-mix(in srgb,var(--project-accent) 8%,transparent);
}
.project-card.tinted .eyebrow {color:color-mix(in srgb,var(--project-accent) 55%,var(--muted,#b1a7bb));}
.project-card.tinted .project-avatar {background:color-mix(in srgb,var(--project-accent) 14%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--project-accent) 45%,transparent);}
.project-card.tinted .project-card-summary {color:color-mix(in srgb,var(--project-accent) 32%,var(--muted,#b1a7bb));}
.project-card.tinted .project-path {color:color-mix(in srgb,var(--project-accent) 30%,var(--muted,#b1a7bb));}
.project-card.tinted .project-task {border-color:color-mix(in srgb,var(--project-accent) 18%,#ffffff12);
  background:color-mix(in srgb,var(--project-accent) 4%,transparent);}
.project-card.tinted .task-quick input {border-color:color-mix(in srgb,var(--project-accent) 24%,transparent);}
.project-card.tinted .project-tasks {border-top-color:color-mix(in srgb,var(--project-accent) 20%,transparent);}
.project-card.tinted.open {background:linear-gradient(160deg,color-mix(in srgb,var(--project-accent) 15%,transparent),
    color-mix(in srgb,var(--project-accent) 5%,transparent) 40%,transparent 70%),var(--surface,#1b1f2a);}

/* A keycap, because that is what you press to get there. */
.workspace-card .dev-key {flex:none;display:grid;place-items:center;min-width:46px;height:44px;padding:0 8px;
  font:600 15px ui-monospace,monospace;letter-spacing:.04em;color:var(--project-accent);
  border:1px solid color-mix(in srgb,var(--project-accent) 40%,transparent);border-bottom-width:3px;
  border-radius:9px;background:color-mix(in srgb,var(--project-accent) 12%,transparent);}
.workspace-card .dev-copy {flex:1;min-width:0;display:grid;gap:2px;}
.workspace-card .dev-copy h3 {margin:0;}
.workspace-card .project-card-heading {gap:12px;align-items:center;}
.workspace-card .project-counts {margin-top:10px;}

/* The agents' board. Two columns where there is room, stacked on a phone. */
#board-section {margin-top:4px;}
.section-heading.compact {margin:6px 0 10px;}
.section-heading.compact h3 {font-size:15px;margin:0;}
.section-heading.compact h4 {font-size:13px;margin:0;}
.board-layout {display:grid;gap:16px;}
@media(min-width:760px){.board-layout{grid-template-columns:minmax(220px,300px) minmax(0,1fr);align-items:start;}}
.board-channels {display:grid;gap:6px;}
.board-channel {display:grid;gap:3px;text-align:left;padding:10px 12px;min-height:44px;border:1px solid #ffffff14;
  border-radius:10px;background:#ffffff04;color:inherit;position:relative;}
.board-channel.selected {border-color:var(--blue,#a6ead4);background:#a6ead410;}
.board-channel.archived {opacity:.55;}
.board-channel strong {font-size:13px;}
.board-channel small {font-size:11px;color:var(--muted,#b1a7bb);overflow-wrap:anywhere;}
.board-channel em {font-style:normal;font-size:10px;letter-spacing:.04em;color:var(--muted,#b1a7bb);opacity:.8;}
.board-unread {position:absolute;top:10px;right:10px;min-width:20px;padding:1px 6px;border-radius:999px;
  font:600 11px ui-monospace,monospace;color:#11111b;background:var(--green,#a6e3a1);}
.board-inbox {display:grid;gap:6px;margin-bottom:12px;padding:10px;border:1px solid #edd29333;border-radius:10px;background:#edd2930a;}
.board-inbox-item {display:grid;gap:2px;text-align:left;border:0;background:none;color:inherit;padding:4px;min-height:40px;}
.board-inbox-item small {font-size:11px;color:var(--muted,#b1a7bb);overflow-wrap:anywhere;}
.board-messages,.board-thread {display:grid;gap:8px;max-height:min(60vh,520px);overflow:auto;padding-right:2px;}
.board-message {padding:10px 12px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff04;}
.board-message.mine {border-color:#a6ead433;background:#a6ead40a;}
.board-message.resolved {opacity:.7;}
.board-meta {display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:11px;color:var(--muted,#b1a7bb);margin:0 0 4px;}
.board-meta strong {font-size:12px;color:inherit;}
.board-resolved {font-weight:400;color:var(--green,#a6e3a1);}
.board-body {margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;}
.board-mention {color:var(--blue,#a6ead4);font-weight:600;}
.board-actions {display:flex;gap:14px;margin:6px 0 0;}
.board-compose {display:flex;gap:8px;align-items:flex-end;margin-top:12px;}
.board-compose textarea {flex:1;min-width:0;font:inherit;color:inherit;padding:10px 12px;resize:vertical;
  background:#ffffff08;border:1px solid var(--line,#343947);border-radius:10px;}
.board-compose .primary {width:auto;min-height:44px;padding:0 18px;margin:0;}

/* What a task should be worked with, on the task. */
.task-meta {display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.task-pick {display:inline-flex;align-items:center;gap:6px;justify-self:start;font-size:11px;
  color:var(--muted,#b1a7bb);border:1px solid #ffffff14;border-radius:999px;padding:2px 10px 2px 4px;background:#ffffff05;}
.task-pick.chosen {color:var(--project-accent);border-color:color-mix(in srgb,var(--project-accent) 35%,transparent);
  background:color-mix(in srgb,var(--project-accent) 10%,transparent);}
.task-pick .project-agent-mark {margin:0;max-height:none;font-size:13px;width:20px;height:20px;display:grid;place-items:center;}
.task-pick i {font-style:normal;font-size:10px;opacity:.65;letter-spacing:.04em;margin-left:2px;}
.task-pick i::before {content:"· ";}

/* Pictures sent with a message, in the bubble and in the transcript turn. */
.chat-images {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px;}
.chat-images img {max-width:min(220px,100%);max-height:260px;border-radius:10px;border:1px solid #ffffff1c;object-fit:cover;}
.bubble.you .chat-images img {max-width:min(200px,100%);}
#launch-task-text{font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;margin-top:8px}
.memory-usage{margin:1.5rem 0 1rem}.memory-usage>h3{margin:0 0 .35rem;font-size:1.05rem}.memory-most-used{margin:.5rem 0 0;padding-left:1.4rem;line-height:1.6;overflow-wrap:anywhere}
.project-task[data-task-blocked]{border-color:#f5a97f66;background:repeating-linear-gradient(135deg,#f5a97f0d 0 8px,transparent 8px 16px)}
.project-task[data-task-blocked] strong{color:#e9ecf5b8}
.task-blockers{display:block;margin-top:4px;color:#f5a97f;font-size:12px;font-weight:600}
.task-blockers::before,.task-blocked::before{content:"⊘";margin-right:5px;font-size:11px}
.task-action.task-blocked{border-color:#f5a97f80;color:#f5a97f;background:#f5a97f14}
.task-heading-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.task-bulk{width:min(640px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box}
.task-bulk-list{display:grid;gap:8px;margin:12px 0}
.task-bulk-row{border:1px solid #ffffff14;border-radius:10px;padding:10px;display:grid;gap:4px;min-width:0}
.task-bulk-row label{display:flex;gap:10px;align-items:flex-start;min-width:0}.task-bulk-row label span{display:grid;gap:2px;min-width:0}
.task-bulk-row strong{overflow-wrap:anywhere}.task-bulk-pick{color:var(--muted,#a0a4b2);font-size:12px}
.task-bulk-state{font-style:normal;font-size:12px;color:#f5a97f}.task-bulk-state[data-ok]{color:#a6e3a1}
.task-bulk-row details summary{font-size:12px;color:var(--muted,#a0a4b2);cursor:pointer}
.task-bulk-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;max-height:220px;overflow:auto;margin:6px 0 0}
.task-bulk-pick{display:flex;align-items:center;gap:6px}.task-bulk-pick .project-agent-mark{width:auto;height:auto;min-width:0;padding:0;border:0;background:none;box-shadow:none;font-size:13px;color:var(--identity-color)}
/* The message board, laid out like one: channels as boards, conversations as
   threads with their latest replies under the opening post, and every agent
   session an anonymous, coloured ID. */
.board-boards{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.board-board{position:relative;flex:none;min-height:36px;padding:0 14px;border:1px solid #ffffff1f;border-radius:999px;background:#ffffff08;color:inherit;font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace}
.board-board.selected{border-color:var(--blue,#a6ead4);background:#a6ead41a;color:var(--blue,#a6ead4)}
.board-board.archived{opacity:.55}.board-board.board-new{padding:0 12px;font-size:16px}
.board-board .board-unread{position:static;margin-left:6px}
.board-toolbar{display:flex;justify-content:flex-end;margin:-4px 0 6px}
.board-banner{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:end;padding:12px 0 10px;border-bottom:1px solid #ffffff14;margin-bottom:12px}
.board-banner h3{margin:0;font:700 22px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.02em}
.board-banner p{grid-column:1;margin:0;font-size:12px;color:var(--muted,#a0a4b2)}
.board-banner button{grid-row:1/span 2;grid-column:2}
.board-threads{display:grid;gap:14px}
.board-thread-card{border:1px solid #ffffff14;border-radius:12px;background:#ffffff05;padding:4px 4px 6px;min-width:0}
.board-thread-card.resolved{opacity:.72}
.board-thread-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:12px;color:var(--muted,#a0a4b2)}
.board-post{--poster:hsl(var(--poster-hue,200) 70% 72%);position:relative;padding:8px 10px 8px 12px;border-left:3px solid var(--poster);border-radius:8px;min-width:0;transition:background .15s,opacity .15s}
.board-post.owner{--poster:#f5a3c7;background:#f5a3c70d}
.board-post.op{padding-top:10px}
.board-replies{display:grid;gap:4px;margin:4px 0 0 14px;padding-left:8px;border-left:1px dashed #ffffff1f}
.board-replies .board-post{background:#ffffff06}
.board-post-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px;color:var(--muted,#a0a4b2)}
.board-glyph{color:var(--poster);font-size:13px}
.board-name{color:var(--text,#eeeef2);font-size:13px}
.board-post.owner .board-name{color:#f5a3c7}
.board-id{min-height:0;padding:1px 7px;border:0;border-radius:6px;background:hsl(var(--poster-hue,200) 60% 60% / .22);color:hsl(var(--poster-hue,200) 80% 80%);font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;cursor:pointer}
.board-id:hover,.board-post.lit .board-id{background:hsl(var(--poster-hue,200) 65% 62%);color:#111}
.board-capcode{color:#f5a3c7;font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace}
.board-post-head time{font-variant-numeric:tabular-nums}
.board-no{min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.board-no:hover{color:var(--blue,#a6ead4);text-decoration:underline}
.board-subject{margin:3px 0 0;font-size:12px;font-weight:600;color:var(--poster);overflow-wrap:anywhere}
.board-post .board-body{margin:4px 0 0;font-size:13.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.board-quote{color:#a6e3a1}
.board-ref{color:#f5a97f;text-decoration:none;font-weight:600}.board-ref:hover{text-decoration:underline}
.board-omitted{display:block;margin:2px 0 0 14px;min-height:0;padding:4px 8px;border:0;background:none;color:var(--muted,#a0a4b2);font-size:12px;text-align:left;cursor:pointer}
.board-omitted:hover{color:var(--blue,#a6ead4)}
.board-thread-actions{display:flex;gap:16px;padding:6px 12px 2px}
.board-thread-actions .project-text-button{font-size:13px}
.board-focus .board-post:not(.lit){opacity:.4}
.board-post.lit{background:hsl(var(--poster-hue,200) 60% 60% / .12)}
.board-post.flash{background:#f5a97f2e}
@media (prefers-reduced-motion:reduce){.board-post{transition:none}}
.board-board.board-toggle{margin-left:auto;font:500 12px inherit;color:var(--muted,#a0a4b2);border-style:dashed}
/* OneDev issues on a project card: grouped by iteration, one row per issue. */
.issue-group{margin:4px 0 12px}
.issue-group h5{display:flex;align-items:baseline;gap:8px;margin:10px 0 6px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#b1a7bb)}
.issue-group h5 small{font-size:11px;text-transform:none;letter-spacing:0;opacity:.75}
a.task-edit.issue-link{display:block;color:inherit;text-decoration:none;min-width:0;padding:2px 0}
a.task-edit.issue-link strong{display:block;overflow-wrap:anywhere}
a.task-edit.issue-link:hover strong{text-decoration:underline}
.issue-number{font-variant-numeric:tabular-nums;opacity:.7;font-weight:500}
.issue-state{display:inline-block;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:600;letter-spacing:.03em;border:1px solid #ffffff22}
.issue-state-working{color:#a6ead4;border-color:#a6ead455;background:#a6ead414}
.issue-state-review{color:#edd293;border-color:#edd29355;background:#edd29312}
.issue-state-blocked{color:#f5a97f;border-color:#f5a97f66;background:#f5a97f14}
.issue-state-done{color:#a6e3a1;border-color:#a6e3a155}
.issue-state-todo{color:var(--muted,#b1a7bb)}
.issue-pr{display:block;margin-top:4px;font-size:11px;color:#edd293;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.task-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}
a.task-action.issue-onedev{font-size:11px;padding:0 10px;opacity:.85}
.issue-status{font-size:12px;margin:4px 0 10px}
.issue-stale{color:#edd293}
.issue-warnings{font-size:11px}
.issue-legacy{margin-top:14px;border-top:1px dashed #ffffff1c}
.project-issues .task-heading-actions a.project-text-button{text-decoration:none}
.project-issues>.project-card-heading{align-items:center;gap:8px}
.project-issues>.project-card-heading h4{white-space:nowrap}
.project-issues .task-heading-actions{gap:10px}
.project-issues .task-heading-actions .project-text-button{padding:8px 0;min-height:40px;display:inline-flex;align-items:center}

.coordination-summary{display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;overflow-wrap:anywhere}.coordination-editor{border:1px solid var(--border,#55465f);border-radius:12px;padding:12px;margin:12px 0;min-width:0}.coordination-editor .field{width:100%;box-sizing:border-box}.issue-row{flex-wrap:wrap}
.coordination-sheet{background:#20242e;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto}.coordination-sheet::backdrop{background:#080b14ae}
.ai-sources{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:.5rem 0 1rem;font-size:.78rem}.ai-sources li{border:1px solid #ffffff24;border-radius:999px;padding:.25rem .65rem}.ai-sources li[data-state=connected]{color:#a6ead4;border-color:#a6ead455}.ai-sources li[data-state=unavailable]{color:#f5a97f;border-color:#f5a97f66}.ai-sources li[data-state="not configured"]{color:var(--muted,#b1a7bb)}.ai-findings{list-style:none;padding:0;margin:0 0 1rem;display:grid;gap:.4rem}.ai-findings li{border-left:3px solid #edd293;background:#edd29312;padding:.55rem .75rem;border-radius:8px;font-size:.88rem;line-height:1.5}.ai-findings li[data-severity=error]{border-color:#ed8796;background:#ed879614}.ai-group{margin:1.2rem 0 0;font-size:1rem}.ai-runtime .ai-status{text-transform:capitalize}.ai-runtime[data-status=running] .ai-status{color:#a6ead4}.ai-runtime[data-status=unavailable] .ai-status,.ai-runtime[data-status=failing] .ai-status,.ai-runtime[data-status=unreachable] .ai-status,.ai-runtime[data-status=failed] .ai-status,.ai-runtime[data-status="untrusted certificate"] .ai-status{color:#ed8796}.ai-flagged{border-color:#ed879688}.ai-uses{margin:.4rem 0;padding-left:1.1rem;font-size:.85rem;line-height:1.6}.ai-models ul{padding-left:1.1rem;line-height:1.55}.ai-models li{margin:.45rem 0;overflow-wrap:anywhere}.ai-models{margin:1rem 0}.ai-group-fold>summary{cursor:pointer;min-height:44px;list-style-position:outside}.ai-group-fold>summary h3{display:inline}

/* Issue Work: open issues across projects, what is being resolved, and the model for each. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.desk-toolbar{display:grid;gap:8px;margin-bottom:10px}
.desk-toolbar .toolbar-row{display:flex;gap:8px;align-items:center}
.desk-toolbar #desk-search{flex:1;min-width:0;min-height:44px;font-size:16px}
.desk-toolbar .icon-button{width:44px;height:44px;flex:none}
.desk-toolbar select{min-height:44px;width:100%;min-width:0}
.desk-warnings{font-size:12px;color:#edd293;margin:4px 0 10px}.desk-warnings ul{margin:6px 0;padding-left:18px}
.desk-section{margin:14px 0}
.desk-section h3{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;font-size:15px}
.desk-section h3 small{font-size:12px;font-weight:400;color:var(--muted,#b1a7bb)}
.desk-active-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:8px}
.desk-active{min-width:0}
.desk-active-open{display:grid;gap:6px;width:100%;min-height:44px;padding:10px 12px;text-align:left;border:1px solid #a6ead433;border-radius:12px;background:#a6ead40a;color:inherit;cursor:pointer}
.desk-active.attention .desk-active-open{border-color:#edd29366;background:#edd29310}
.desk-active-head{display:flex;gap:10px;align-items:center;min-width:0}
.desk-active-head>span:last-child{min-width:0;display:grid}
.desk-active-head strong{font-size:14px}
.desk-active-head small{font-size:12px;color:var(--muted,#b1a7bb);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk-active-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font:11px ui-monospace,monospace;color:var(--muted,#b1a7bb)}
.desk-state{font-weight:700}.desk-state.state-working{color:#a6ead4}.desk-state.state-input,.desk-state.state-choice,.desk-state.state-blocked{color:#edd293}
.desk-ctx{display:block;height:3px;border-radius:2px;background:#ffffff14;overflow:hidden}.desk-ctx i{display:block;height:100%;background:#a6ead4}
.desk-list-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.desk-list-heading h3{margin:0}
.desk-bulk{display:flex;gap:8px;flex-wrap:wrap}.desk-bulk button{min-height:44px;padding:0 12px}
.desk-job,.desk-legend{font-size:11px;margin:6px 0}
.desk-list{display:grid;gap:8px;margin-top:8px}
.desk-row{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-areas:"check main" "check actions";gap:4px 8px;padding:10px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff05;min-width:0}
.desk-row[data-issue-state=working]{border-color:#a6ead433}.desk-row[data-issue-state=review]{border-color:#edd29333}.desk-row[data-issue-state=blocked]{opacity:.8}
.desk-check{grid-area:check;display:flex;justify-content:center;padding-top:2px}.desk-check input{width:22px;height:22px;margin:0}
.desk-main{grid-area:main;min-width:0;display:grid;gap:4px}
.desk-title{color:inherit;text-decoration:none;font-weight:600;overflow-wrap:anywhere}.desk-title:hover{text-decoration:underline}
.desk-meta{font-size:11px;color:var(--muted,#b1a7bb);overflow-wrap:anywhere}.desk-meta a{color:#edd293}
.desk-model-line{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;min-width:0}
.desk-pick{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:12px}
.desk-pick b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desk-pick i{font-style:normal;font-size:10px;padding:1px 7px;border-radius:999px;border:1px solid #ffffff22;white-space:nowrap;color:var(--muted,#b1a7bb)}
.desk-pick .project-agent-mark{width:22px;height:22px;font-size:13px;flex:none}
.desk-pick.source-chosen i{color:#cbb2f7;border-color:#cbb2f766}.desk-pick.source-advice i{color:#a6ead4;border-color:#a6ead466}.desk-pick.source-verification i{color:#f5a97f;border-color:#f5a97f66}
.desk-pick.unavailable{color:#f5a97f}
.desk-risk{font-size:11px;color:#f5a97f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.desk-model select{min-height:40px;width:100%;max-width:420px;font-size:13px}
.desk-actions{grid-area:actions;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.desk-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;text-decoration:none;color:inherit}
.desk-empty{font-size:13px}
@media(min-width:760px){
  .desk-toolbar{grid-template-columns:minmax(0,1fr) 240px}.desk-toolbar .toolbar-row{grid-column:1/-1}
  .desk-row{grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"check main actions"}
  .desk-actions{justify-content:flex-end;align-self:center}
}
@media(prefers-reduced-motion:reduce){.desk-active-open,.desk-row{transition:none}}
.desk-toolbar .filter-chips{margin-top:0;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:24px}
.desk-row .desk-actions{margin-top:4px}
.desk-error{margin:6px 0 0;padding:6px 10px;border-left:3px solid var(--choice,#f38ba8);background:var(--choice-tint,#fde4ea);color:var(--choice-ink,#a3123f);font-size:12px;line-height:1.4}
.desk-legend{line-height:1.5}
.desk-source{display:flex;align-items:center;gap:.5rem;min-width:0}
.desk-source>span{color:var(--muted);font-size:.85rem;white-space:nowrap}
.desk-source select{flex:1;min-width:0}
