/* Client directory and project delivery components. */
.content {max-width:1690px; width:100%; margin:0 auto; min-width:0;}
.view-header {text-align:left; max-width:none; margin:3px 0 24px; padding:0;}
.view-title {font-size:28px; line-height:1.2; font-weight:650; letter-spacing:-.8px; margin:0 0 14px; color:var(--text); overflow-wrap:anywhere;}
.view-subtitle {display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border-radius:7px; color:var(--muted); background:var(--panel); border:1px solid var(--line); font-size:12px; font-weight:500; letter-spacing:.15px;}
.client-grid {display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px;}
.client-block {position:relative; min-width:0; min-height:188px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; padding:24px; background:var(--panel); border:1px solid var(--line); border-radius:10px; cursor:pointer; transition:border-color .16s, background .16s;}
.client-block:hover {border-color:var(--accent-border); background:var(--panel-hover);}
.client-block:focus-visible, .btn-block-share:focus-visible, .btn-asset:focus-visible {outline:3px solid var(--accent); outline-offset:4px;}
.client-avatar {width:64px; height:64px; border-radius:10px; background:var(--panel-strong); color:var(--accent); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:650; margin:0 0 18px; overflow:hidden; flex-shrink:0;}
.client-avatar img {width:100%; height:100%; object-fit:contain; display:block; background:#f4f5f8; padding:5px;}
.client-name {font-size:15px; font-weight:650; line-height:1.4; margin:0 0 6px; color:var(--text); overflow-wrap:anywhere;}
.client-meta {font-size:12px; color:var(--muted); line-height:1.5;}
.btn-block-share {position:absolute; top:6px; right:6px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border:0; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer;}
.btn-block-share svg {width:17px; height:17px;}
.btn-block-share:hover {color:var(--accent); background:var(--panel-strong);}
.client-notes {color:var(--muted); font-size:13px; line-height:1.7; padding:18px 20px; background:var(--panel-strong); border:1px solid var(--line); border-radius:10px; margin:0 0 22px; overflow-wrap:anywhere;}
.project-card {border:1px solid var(--line); border-radius:10px; background:var(--panel); padding:24px; margin:0 0 20px; min-width:0;}
.project-card:last-child {margin-bottom:0;}
.project-header {margin-bottom:20px;}
.project-title {font-size:18px; font-weight:650; letter-spacing:-.3px; line-height:1.4; margin:0 0 12px; color:var(--text); overflow-wrap:anywhere;}
.project-pills {display:flex; flex-wrap:wrap; gap:8px;}
.pill {display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:5px; background:var(--panel-strong); border:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.35; max-width:100%; overflow-wrap:anywhere;}
.pill svg {width:15px; height:15px; flex-shrink:0; color:var(--muted);}
.project-desc {font-size:13px; line-height:1.7; color:var(--muted); margin:14px 0 0; overflow-wrap:anywhere;}
.asset-list {display:flex; flex-direction:column; list-style:none; padding:0; margin:0; gap:10px;}
.asset-item {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px; background:var(--panel); border:1px solid var(--line); border-radius:7px; min-width:0;}
.asset-left {display:flex; align-items:center; gap:12px; flex:1; min-width:0;}
.asset-icon-wrap {display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:7px; background:var(--panel); color:var(--accent); border:1px solid var(--line); flex-shrink:0;}
.asset-icon-wrap svg {width:20px; height:20px;}
.asset-details {display:flex; flex-direction:column; gap:5px; min-width:0;}
.asset-name {font-size:13px; line-height:1.4; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.asset-type {font-size:12px; font-weight:500; color:var(--muted);}
.btn-asset {min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:7px; background:var(--button); border:1px solid var(--button); color:var(--accent-ink); text-decoration:none; font-size:12px; font-weight:600; white-space:nowrap; flex-shrink:0;}
.btn-asset:hover {background:var(--button-hover); border-color:var(--button-hover);}
.btn-asset.link-type {background:var(--panel); color:var(--text); border-color:var(--line);}
.btn-asset.link-type:hover {background:var(--panel-hover); border-color:var(--control-border-hover);}
.empty-box {padding:36px 20px; border:1px dashed var(--line); border-radius:10px; text-align:center; color:var(--muted); font-size:13px; line-height:1.7; background:var(--panel-strong);}
@media(max-width:600px) {
 .content {padding-bottom:28px;}
 .view-header {padding:16px 0 0; margin-bottom:22px;}
 .view-title {font-size:25px;letter-spacing:-.6px;}
 .view-subtitle {font-size:12px;}
 .client-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
 .client-block {padding:22px 14px 20px; min-height:176px;}
 .client-name {font-size:13px;}
 .client-avatar {width:52px; height:52px; border-radius:10px;}
 .project-card {padding:18px;}
 .project-title {font-size:18px;}
 .asset-item {flex-direction:column; align-items:stretch; gap:12px;}
 .asset-left {width:100%;}
 .btn-asset {width:100%;}
}
@media(prefers-reduced-motion:reduce) {.client-block {transition:none;}}
.directory-summary {display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:12px; line-height:1.5; padding:0 1px 14px;}
.directory-summary span:first-child {font-weight:600; color:var(--text);}
@media(max-width:600px){.directory-summary{font-size:12px;gap:4px}.directory-summary span:last-child{width:100%;}}

.client-block[hidden] {display:none;}
.asset-item:focus-within {border-color:var(--accent-border);}
.asset-item .asset-name {max-width:100%;}
@media(max-width:360px){.client-grid{grid-template-columns:minmax(0,1fr)}.client-block{min-height:150px}}

/* Server-rendered search and linked project navigation. */
.portal-search {display:flex;align-items:center;gap:10px;margin:0 0 24px;}
.portal-search input {flex:1;min-width:0;}
.portal-search .btn {flex-shrink:0;}
.portal-results {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.6;}
.portal-back {display:inline-flex;align-items:center;gap:7px;margin:22px 0 20px;color:var(--accent);text-decoration:none;font-size:13px;font-weight:600;min-height:32px;}
.portal-back:hover {color:var(--text);}
.portal-back svg {width:16px;height:16px;}
.portal-project-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:20px;padding-top:18px;color:var(--muted);font-size:12px;}
.client-card-link {display:flex;flex-direction:column;align-items:flex-start;width:100%;color:inherit;text-decoration:none;min-width:0;}
.client-card-link:focus-visible {outline:3px solid var(--accent);outline-offset:7px;border-radius:5px;}
.client-open {display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-size:12px;font-weight:600;margin-top:18px;}
.client-open svg {width:15px;height:15px;}
@media(max-width:600px){.portal-search{flex-wrap:wrap;gap:9px}.portal-search input{flex-basis:100%}.portal-search .btn{flex:1}.portal-project-footer{gap:12px}.portal-project-footer .btn-asset{width:auto}.client-open{font-size:12px;margin-top:14px}.portal-results{font-size:12px}}
.view-subtitle svg,.portal-badge svg {width:16px;height:16px;flex-shrink:0;}
.icon-wrap svg {width:20px;height:20px;}
article.client-block {cursor:default;}
