.projects-page { margin:0; min-width:320px; background:#101011; color:#efeff2; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; }
.projects-shell { max-width:1440px; margin:auto; padding:0 6%; }
.projects-header { min-height:122px; display:flex; justify-content:space-between; align-items:center; gap:20px; border-bottom:1px solid #303035; }
.projects-brand { color:#a8a8b3; font-size:12px; font-weight:700; text-decoration:none; letter-spacing:-.04em; }
.projects-brand span,.projects-header h1 span,.projects-intro h2 span { color:#83cfa0; }
.projects-header h1 { margin:9px 0 0; font:400 clamp(36px,4vw,52px)/1 Georgia,serif; letter-spacing:-.05em; }
.account-menu { position:relative; }
.account-menu summary { list-style:none; width:43px; height:43px; border:1px solid #74ac89; border-radius:50%; display:grid; place-items:center; background:#395744; color:#e7faee; font-weight:700; cursor:pointer; overflow:hidden; }
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu img,.project-icon img { width:100%;height:100%;object-fit:cover; }
.account-dropdown { position:absolute; z-index:3; right:0; top:52px; width:180px; padding:12px; border:1px solid #3c3c45; border-radius:5px; background:#202024; box-shadow:0 15px 35px #0008; }
.account-dropdown p { margin:0 0 10px; color:#b9b9c3; font-size:11px; overflow-wrap:anywhere; }
.account-dropdown a,.account-dropdown button { display:block; width:100%; box-sizing:border-box; padding:8px 0; background:none; border:0; color:#e4e4ea; text-decoration:none; text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.projects-main { padding:55px 0 80px; }
.projects-intro { margin-bottom:32px; }
.projects-intro h2 { font:400 clamp(24px,3vw,34px)/1.1 Georgia,serif; letter-spacing:-.04em; margin:10px 0 8px; }
.projects-intro p { margin:0; color:#a4a4ad; font-size:13px; }
.projects-toolbar { display:flex; align-items:center; gap:20px; margin-bottom:24px; min-width:0; }
.projects-toolbar > .auth-primary { flex:none; white-space:nowrap; }
.category-filters { display:flex; flex:1; min-width:0; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding:4px 2px; }
.category-filter { flex:none; padding:9px 14px; border:1px solid transparent; border-radius:999px; background:transparent; color:#aaaab4; font:inherit; cursor:pointer; white-space:nowrap; }
.category-filter:hover { color:#fff; background:#25252b; }
.category-filter.active { color:#fff; border-color:#5c8069; background:#2e3f34; }
.category-filter:focus-visible,.category-picker summary:focus-visible,.category-option:has(input:focus-visible) { outline:2px solid #adedc5; outline-offset:2px; }
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(235px,100%),1fr)); gap:16px; }
.project-card { min-height:190px; display:flex; flex-direction:column; align-items:start; padding:20px; border:1px solid #34343a; border-radius:6px; background:#19191c; color:#eeeef2; text-align:left; font:inherit; cursor:pointer; }
.project-card:hover { border-color:#7ac996; background:#1e2620; }
.project-card:focus-visible,.account-menu summary:focus-visible,.account-dropdown a:focus-visible,.account-dropdown button:focus-visible { outline:2px solid #adedc5; outline-offset:3px; }
.project-icon { width:52px;height:52px;display:grid;place-items:center;border:1px solid #679a7a;border-radius:12px;background:#395744;color:#ebfaf1;font-weight:700;font-size:19px;overflow:hidden; }
.project-card strong { margin-top:auto; padding-top:26px; font-size:14px; overflow-wrap:anywhere; }
.project-card small { color:#94949e; margin-top:6px; }
.project-category { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; background:#f5f5f7; color:#202026; font-size:10px; font-weight:700; line-height:1.4; }
.project-card .project-category { margin-top:12px; }
.category-picker { position:relative; }
.category-picker summary { display:flex; align-items:center; justify-content:space-between; min-height:43px; box-sizing:border-box; padding:10px 12px; border:1px solid #45454f; border-radius:4px; background:#222226; color:#f3f3f5; cursor:pointer; list-style:none; }
.category-picker summary::-webkit-details-marker { display:none; }
.category-picker summary::after { content:'⌄'; color:#a3a3ad; font-size:18px; line-height:1; }
.category-options { position:absolute; z-index:5; top:calc(100% + 5px); left:0; right:0; min-width:0; margin:0; padding:5px; border:1px solid #45454f; border-radius:4px; background:#222226; box-shadow:0 12px 30px #0008; }
.category-option { display:flex; align-items:start; gap:10px; padding:10px; border-radius:3px; cursor:pointer; }
.category-option:hover,.category-option:has(input:checked) { background:#30313d; }
.category-option input { margin:4px 0 0; accent-color:#83cfa0; }
.category-option span { display:grid; gap:2px; }
.category-option strong { font-size:13px; }
.category-option small { color:#aaaab4; font-size:11px; }
.category-notice { margin:8px 0 0; color:#cef1db !important; }
.category-notice:empty { display:none; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.project-icon-preview { border-radius:14px; }
.projects-message { color:#aaaab4; font-size:12px; }
.earlier-work { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px; margin:0 0 20px; border:1px solid #4c6656; border-radius:5px; background:#1e2721; }
.earlier-work strong { font-size:13px; }.earlier-work p { margin:5px 0 0; color:#b0b3c2;font-size:12px; }
.outline-action { flex:none; border:1px solid #8bd9a8; background:transparent; color:#daf7e5; border-radius:4px; padding:9px 12px; font:inherit; font-size:11px; cursor:pointer; }
@media(max-width:600px) { .projects-header{min-height:95px}.projects-main{padding:38px 0 60px}.projects-toolbar{gap:8px}.projects-toolbar > .auth-primary{padding-inline:10px;font-size:12px}.category-filter{padding-inline:10px}.earlier-work{align-items:start;flex-direction:column}.project-grid{grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr))}.project-card{min-height:160px} }

/* Workspace navigation and compact Projects header. */
.projects-page { display:grid; grid-template-columns:210px minmax(0,1fr); }
.workspace-sidebar { position:sticky; top:0; height:100vh; box-sizing:border-box; padding:30px 14px; background:#151518; border-right:1px solid #303035; }
.workspace-sidebar-top { display:flex; align-items:center; justify-content:space-between; padding:0 10px 32px; }
.workspace-logo { color:#f0f0f3; text-decoration:none; font-size:20px; font-weight:700; letter-spacing:-.06em; }.workspace-logo span{color:#83cfa0}
.workspace-sidebar nav a { display:flex; gap:10px; align-items:center; padding:11px 12px; border-radius:5px; color:#d2f5df; text-decoration:none; background:#325b41; }
.workspace-menu-toggle,.workspace-close { display:none; }
.workspace-backdrop { position:fixed; inset:0; z-index:9; border:0; background:#0009; }
.projects-shell { width:100%; box-sizing:border-box; padding:0 5%; }
.projects-header { min-height:96px; }
.projects-header-title,.projects-header-actions { display:flex; align-items:center; gap:16px; }
.projects-header h1 { margin:0; font-size:clamp(30px,3vw,40px); }
.new-project-button { white-space:nowrap; display:flex; align-items:center; gap:7px; }
.new-project-button > span:first-child { font-size:20px; line-height:1; }
.projects-main { padding-top:30px; }
.category-filter { border-radius:5px; }
.category-filter.active { color:#fff; border-color:#40865a; background:#226b3d; }
@media(max-width:760px) {
  .projects-page { display:block; }
  .workspace-sidebar { position:fixed; z-index:10; left:0; top:0; width:min(270px,85vw); transform:translateX(-105%); transition:transform .2s ease; box-shadow:0 0 30px #0005; }
  .workspace-sidebar.is-open { transform:translateX(0); }
  .workspace-menu-toggle,.workspace-close { display:grid; place-items:center; width:38px; height:38px; border:1px solid #45454f; border-radius:5px; background:#1b1b1e; color:#eee; font-size:19px; cursor:pointer; }
  .projects-shell { padding:0 5%; }
  .projects-header { min-height:76px; }
  .projects-header-title,.projects-header-actions { gap:9px; }
  .projects-header h1 { font-size:30px; }
  .new-project-button { width:42px; min-height:42px; padding:0; justify-content:center; border:1px solid #777780; border-radius:50%; background:#1b1b1e; }
  .new-project-button:hover { background:#29292e; }
  .new-project-button > span:first-child { font-size:24px; }
  .new-project-text { display:none; }
  .account-menu summary { width:40px; height:40px; }
}

/* Keep the workspace anchored to its sidebar at wide sizes. */
.projects-shell { max-width:none; margin:0; }
.workspace-sidebar { display:flex; flex-direction:column; }
.workspace-bottom { margin-top:auto; border-top:1px solid #303035; padding:16px 4px 0; }
.workspace-settings { display:flex; align-items:center; gap:10px; padding:9px 8px; color:#aaaab4; font-size:12px; }
.workspace-settings span { font-size:16px; }
.workspace-profile { display:flex; align-items:center; gap:10px; margin-top:9px; padding:8px; min-width:0; }
.workspace-profile-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:#395744; color:#e7faee; font-weight:700; overflow:hidden; }
.workspace-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.workspace-profile-details { display:grid; min-width:0; line-height:1.35; }
.workspace-profile-details strong,.workspace-profile-details small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-profile-details strong { font-size:12px; }.workspace-profile-details small { color:#92929d; font-size:11px; }
@media(max-width:760px) {
  .workspace-menu-toggle { width:31px; height:31px; font-size:15px; }
  .projects-toolbar { gap:8px; }
  .projects-toolbar .new-project-button { width:auto; min-height:36px; flex:none; padding:6px 9px; border:1px solid #777780; border-radius:5px; background:#1b1b1e; font-size:11px; }
  .projects-toolbar .new-project-button > span:first-child { font-size:17px; }
  .projects-toolbar .new-project-text { display:inline; }
}
.workspace-settings { justify-content:space-between; }
@media(max-width:760px) { .workspace-sidebar{visibility:hidden;pointer-events:none}.workspace-sidebar.is-open{visibility:visible;pointer-events:auto} }

.project-details { display:grid; align-self:stretch; gap:8px; min-width:0; margin-top:15px; color:#aaaab4; font-size:11px; line-height:1.45; }
.project-last-edited { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; max-height:4.35em; overflow:hidden; overflow-wrap:anywhere; color:#c2c2cb; }
.project-detail-row { display:flex; flex-wrap:wrap; justify-content:space-between; column-gap:10px; row-gap:4px; color:#94949e; }
.project-details.is-unavailable { color:#d2aaa4; }
.project-card .project-open { margin-top:14px; }

/* Consistent project controls across screen sizes. */
.projects-page { grid-template-columns:180px minmax(0,1fr); }
.workspace-nav-icon { width:17px; height:17px; flex:none; stroke:currentColor; stroke-width:1.6; }
.workspace-settings { justify-content:flex-start; }
.projects-toolbar .new-project-button { width:auto; min-height:40px; flex:none; justify-content:center; padding:8px 12px; border:1px solid #40865a; border-radius:5px; background:#226b3d; font-size:12px; }
.projects-toolbar .new-project-button:hover { background:#297747; }
.projects-toolbar .new-project-button > span:first-child { font-size:18px; }
.projects-toolbar .new-project-text { display:inline; }
.category-filter { min-height:40px; box-sizing:border-box; }
.category-filter.active { color:#fff; border-color:#73737b; background:#242428; }
@media(max-width:760px) { .projects-page{display:block}.workspace-sidebar{width:min(230px,85vw)}.projects-toolbar .new-project-button{min-height:38px;padding:7px 9px;font-size:11px}.category-filter{min-height:38px} }
.projects-toolbar .new-project-button,.category-filter { height:40px; min-height:40px; box-sizing:border-box; }
.category-filter { display:inline-flex; align-items:center; justify-content:center; padding-block:0; }
@media(max-width:760px) { .projects-toolbar .new-project-button,.category-filter { height:38px; min-height:38px; } }

/* Keep the navigation independently scrollable and the account controls fixed. */
.workspace-sidebar { height:100vh; height:100dvh; overflow:hidden; }
.workspace-sidebar-top { flex:none; }
.workspace-sidebar nav { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.workspace-bottom { flex:none; margin-top:0; }

/* The open action and the pin are separate controls. */
.project-card { position:relative; display:block; min-height:0; padding:0; cursor:default; }
.project-card-main { box-sizing:border-box; display:flex; flex-direction:column; align-items:stretch; width:100%; height:100%; padding:16px; border:0; border-radius:6px; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.project-card-main:focus-visible,.project-pin:focus-visible { outline:2px solid #adedc5; outline-offset:2px; }
.project-card-heading { display:flex; align-items:center; gap:12px; min-width:0; padding-right:29px; }
.project-card .project-icon { width:44px; height:44px; flex:none; border-radius:10px; font-size:16px; }
.project-identity { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; }
.project-card .project-identity strong { margin:0; padding:0; font-size:14px; line-height:1.25; }
.project-card .project-identity .project-category { margin:0; }
.project-card .project-details { margin-top:14px; }
.project-pin { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:28px; height:28px; padding:5px; border:1px solid transparent; border-radius:4px; background:transparent; color:#858590; cursor:pointer; }
.project-pin svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.project-pin:hover,.project-pin[aria-pressed="true"] { color:#c1f1d3; border-color:#65a17c; background:#2c3e33; }
.project-pin:disabled { opacity:.45; cursor:not-allowed; }
@media(max-width:600px) { .project-card { min-height:0; } .project-card-main { padding:14px; } }

/* Project Trash */
.projects-header h1 #workspace-view-title { color:#efeff2; }
.workspace-sidebar nav a:not(.workspace-nav-active) { color:#aaaab4; background:transparent; }
.workspace-trash { display:flex; align-items:center; gap:10px; width:100%; padding:9px 8px; border:0; border-radius:5px; background:transparent; color:#aaaab4; font:inherit; font-size:12px; text-align:left; cursor:pointer; }
.workspace-trash svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.workspace-trash:hover,.workspace-trash.active { background:#325b41; color:#e2f8ea; }
.workspace-trash:focus-visible,.project-delete:focus-visible,.trash-actions button:focus-visible { outline:2px solid #adedc5; outline-offset:2px; }
.project-card-heading { padding-right:62px; }
.project-delete { position:absolute; top:12px; right:44px; display:grid; place-items:center; width:28px; height:28px; padding:5px; border:1px solid transparent; border-radius:4px; background:transparent; color:#858590; cursor:pointer; }
.project-delete svg { width:17px; height:17px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.project-delete:hover:not(:disabled) { border-color:#8b5759; background:#392a2d; color:#ffc4ba; }
.project-delete:disabled { opacity:.4; cursor:not-allowed; }
.trash-description { margin:0 0 20px; color:#aaaab4; font-size:13px; }
.trash-list { display:grid; gap:10px; }
.trash-item { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px; border:1px solid #34343a; border-radius:6px; background:#19191c; }
.trash-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.trash-identity .project-icon { width:42px; height:42px; flex:none; border-radius:10px; font-size:15px; }
.trash-details { min-width:0; display:grid; gap:4px; }
.trash-details strong { overflow-wrap:anywhere; font-size:14px; }
.trash-details span { color:#a7a7b2; font-size:11px; }
.trash-actions { display:flex; flex-wrap:wrap; gap:8px; flex:none; }
.trash-actions button { border:1px solid #4b4b58; border-radius:4px; padding:8px 10px; background:#29292f; color:#eeeef3; font:inherit; font-size:11px; cursor:pointer; }
.trash-actions .trash-delete { border-color:#865052; color:#ffc6bd; }
.trash-actions button:disabled { opacity:.45; cursor:not-allowed; }
.project-action-buttons { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
#project-action-dialog { box-sizing:border-box; width:min(490px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; }
.danger-action { min-height:40px; padding:9px 14px; border:1px solid #ac5b5f; border-radius:4px; background:#822f38; color:#fff; font:inherit; font-size:12px; cursor:pointer; }
.danger-action:disabled,.project-action-buttons .outline-action:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:600px) { .trash-item { align-items:flex-start; flex-direction:column; gap:14px; } .trash-actions { width:100%; } .project-card-heading { padding-right:58px; } }
