.directory {max-width:82rem;margin:0 auto 4rem;outline:0}
.directory-title {display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:clamp(1.9rem,4vw,3.6rem) 0 clamp(1.5rem,3vw,2.7rem)}
.directory-title h1 {margin:0;font-size:clamp(2.1rem,3.2vw,3rem);font-weight:580;letter-spacing:-.06em;line-height:1.05}
.directory :is(.primary,.quiet-button), .project-form :is(.primary,.quiet-button) {display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:40px;padding:.52rem .85rem;border-radius:6px;border:1px solid var(--border);font-weight:600;font-size:.9rem}
.projects-page .primary {background:var(--button);color:var(--on-button)}
.quiet-button {background:var(--raised);color:var(--text)}
#new-project>span:first-child {font-size:1.3rem;line-height:.8;font-weight:450}
.directory-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem 1rem;padding-bottom:1rem}
.directory-filters, .directory-search {display:flex;align-items:center;gap:.2rem;min-width:0}
.directory-filters {flex-wrap:wrap}
.directory-filters button {display:flex;align-items:center;gap:.4rem;min-height:38px;padding:.35rem .65rem;border-radius:5px;font-size:.875rem;color:var(--muted);white-space:nowrap}
.directory-filters button[aria-pressed=true] {background:var(--active);color:var(--text);font-weight:650}
.filter-count {font-variant-numeric:tabular-nums;font-size:.78rem;color:var(--faint)}
.directory-filters button[aria-pressed=true] .filter-count {color:var(--accent)}
.directory-search {gap:.4rem}
.search-box {display:flex;align-items:center;gap:.45rem;padding:0 .65rem;width:clamp(10rem,17vw,17rem);min-width:0;min-height:40px;border:1px solid var(--border);border-radius:6px;background:var(--rail);color:var(--faint)}
.search-box:focus-within {outline:2px solid var(--accent);outline-offset:1px}
.search-box .ico {width:16px;height:16px}
.search-box input {min-width:0;width:100%;border:0;background:transparent;color:var(--text);font-size:.9rem;outline:none!important}
.search-box input::placeholder {color:var(--faint)}
#status-select {display:none}
.directory #refresh {flex:none;border:1px solid var(--border);border-radius:6px}
.project-list {list-style:none;margin:0;padding:0}
.directory {--row-columns:2.5rem minmax(0,1fr) minmax(6rem,.26fr) minmax(7.5rem,.27fr);--row-gap:clamp(.65rem,1.4vw,1.15rem);--edit-width:5.2rem}
.project-columns, .project-row-link {display:grid;grid-template-columns:var(--row-columns);column-gap:var(--row-gap);align-items:center;min-width:0}
.project-columns {padding:.7rem calc(var(--edit-width) + 1.25rem) .7rem .75rem;border-block:1px solid var(--subtle);color:var(--faint);font-size:.8rem;font-weight:550}
.project-columns>span:first-child {grid-column:span 2}
.project-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(var(--edit-width),max-content);column-gap:.5rem;align-items:center;padding-inline:.75rem;border-bottom:1px solid var(--subtle)}
.project-row-link {min-height:4.65rem;padding:.55rem 0;color:var(--text);text-decoration:none}
.case-mark {display:grid;place-items:center;width:2.5rem;height:2.5rem;color:var(--accent);background:var(--raised);border-radius:7px}
.case-mark .ico {width:21px;height:21px}
.project-copy {min-width:0}
.project-copy strong {display:block;font-size:1rem;line-height:1.4;letter-spacing:-.015em;font-weight:610;overflow-wrap:anywhere}
.project-copy small {display:block;margin-top:.12rem;color:var(--faint);font-size:.83rem}
.run-state {display:inline-flex;gap:.45rem;align-items:center;font-size:.85rem;color:var(--muted)}
.run-state::before {content:'';width:6px;height:6px;border-radius:50%;background:var(--faint);flex:none}
.run-state[data-state=succeeded]::before {background:var(--success)}
.run-state:is([data-state=queued],[data-state=running])::before {background:var(--accent)}
.run-state[data-state=failed]::before {background:var(--danger)}
.project-row time {color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}
.rename-action {justify-self:end;min-height:40px;padding:0 .4rem;color:var(--muted);font-size:.85rem}
.directory-pager {display:flex;align-items:center;justify-content:flex-end;gap:.6rem;margin-top:1rem;font-size:.85rem;color:var(--faint);font-variant-numeric:tabular-nums}
.directory-pager a {display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.35rem .7rem;border:1px solid var(--border);border-radius:5px;color:var(--text);text-decoration:none}
.directory-pager a[aria-disabled=true] {color:var(--faint);opacity:.5}
.directory-feedback, #session-status {color:var(--muted);font-size:.9rem}
.directory-feedback.error {color:var(--danger)}
.directory-feedback button {margin-inline-start:.7rem;text-decoration:underline}
.directory-feedback:not([hidden]) {padding-block:.6rem}
.directory-empty {padding:2.7rem 1rem;text-align:center;color:var(--muted);border-bottom:1px solid var(--subtle)}
.directory-empty p {margin:0 0 .75rem}
#directory-guest {width:min(100%,24rem);padding-top:.3rem}
#guest-heading, .project-form h2 {margin:0 0 1.3rem;font-size:1.22rem;letter-spacing:-.025em;font-weight:620}
.project-form label {color:var(--muted);font-size:.9rem}
.project-form input, .project-form select, #status-select {width:100%;min-width:0;min-height:40px;padding:.5rem .65rem;border:1px solid var(--border);border-radius:5px;color:var(--text);background:var(--rail)}
#directory-sign-in {text-decoration:none}
#edit-error,.console-status.is-error {color:var(--danger)}
#project-dialog {width:min(27rem,calc(100% - 2rem))}
.project-form {padding:clamp(1.1rem,3vw,1.6rem)}
.project-form label {display:block;margin:1rem 0 .4rem}
.edit-actions {display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.4rem}
@media (hover:hover) {
  .directory-filters button:hover, .rename-action:hover, .directory-pager a[href]:hover {color:var(--text);background:var(--raised)}
  .project-row:has(.project-row-link:hover) {background:var(--surface)}
  .project-row-link:hover .project-copy strong {color:var(--accent)}
}
@media (max-width:1050px) {
  .directory-tools {align-items:flex-start}
  .directory-search {margin-inline-start:auto}
}
@media (max-width:800px) {
  .projects-page .mobile-wordmark, .projects-page .sidebar.open #close-rail {display:flex}
  .directory-title {margin-block:1.7rem}
}
@media (max-width:700px) {
  .directory {--edit-width:3.5rem}
  .directory-filters {display:none}
  #status-select {display:block;width:auto;max-width:44%;font-size:.875rem}
  .directory-tools {flex-wrap:nowrap;gap:.4rem;align-items:center}
  .directory-search {flex:1;justify-content:flex-end}
  .search-box {flex:1;width:auto}
  .project-columns {display:none}
  .project-list {border-top:1px solid var(--subtle)}
  .project-row {padding-inline:.15rem}
  .project-row-link {grid-template-columns:2rem minmax(0,1fr) auto;grid-template-areas:'mark name status' 'mark name date';gap:.18rem .6rem}
  .case-mark {grid-area:mark;width:2rem;height:2.1rem}
  .project-copy {grid-area:name}
  .run-state {grid-area:status;align-self:end}
  .project-row time {grid-area:date;align-self:start}
  .project-row time, .project-copy small, .rename-action {font-size:.78rem}
  .project-copy strong {font-size:.93rem}
}
@media (max-width:380px) {
  .directory {--edit-width:3.1rem}
  .project-row-link {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'name status' 'name date'}
  .case-mark {display:none}
}
