.v2-directory-head { border-bottom: 1px solid var(--line); background: #fff; }
.v2-directory-head-inner { min-height: 134px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 22px; }
.v2-directory-head h1 { margin: 6px 0 5px; font-family: Georgia,serif; font-size: clamp(34px,4vw,52px); line-height: 1; letter-spacing: -.045em; }
.v2-directory-head p { margin: 0; color: var(--muted); }
.v2-directory-count { padding: 9px 13px; border: 1px solid #d5e1e8; border-radius: 9px; color: #667d8d; font-size: 12px; }
.v2-directory-count strong { color: var(--blue); }

.v2-directory-section { min-height: 70vh; padding: 18px 0 72px; background: radial-gradient(circle at 15% 0%,rgba(59,130,246,.08),transparent 24%),var(--paper); }
.v2-directory-toolbar { display: grid; grid-template-columns: minmax(290px,1fr) minmax(170px,220px); align-items: center; gap: 15px; padding: 16px; border: 1px solid #d2e0e9; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(18,53,82,.05); }
.v2-directory-search { min-height: 45px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #c7d7e2; border-radius: 9px; color: #6b8292; }
.v2-directory-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.v2-directory-search svg { width: 18px; height: 18px; }
.v2-directory-search input { min-width: 0; border: 0; outline: 0; color: var(--text); }
.v2-directory-search input::placeholder { color: #8496a3; }
.v2-family-filters, .v2-access-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-family-filters button, .v2-access-filters button { min-height: 36px; padding: 7px 13px; border: 1px solid #cbd9e3; border-radius: 8px; background: #fff; color: #314d61; font-weight: 750; cursor: pointer; }
.v2-family-filters button:hover, .v2-access-filters button:hover { border-color: #8fb1d5; color: #245f8f; }
.v2-family-filters button.is-active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(59,130,246,.2); }
.v2-access-filters { grid-column: 1 / -1; justify-content: center; padding-top: 13px; border-top: 1px solid #e2e9ee; }
.v2-access-filters button.is-active { border-color: #73c4c3; background: #eefafa; color: #087f82; }
.v2-access-info { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 15px; border: 1px solid #9bd3b7; border-radius: 9px; background: #effaf4; color: #13774b; font-size: 12px; font-weight: 850; text-align: center; }
.v2-access-info i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #58aa7e; }
.v2-directory-sort { display: block; color: #6c8291; font-size: 0; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.v2-directory-sort select { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #c8d8e2; border-radius: 9px; outline: 0; background: #fff; color: #243e52; font-size: 13px; }

.v2-directory-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0 14px; }
.v2-directory-title-row h2 { margin: 0; font-family: Georgia,serif; font-size: 27px; letter-spacing: -.025em; }
.v2-directory-title-row > span { color: #758a98; font-size: 12px; }
.v2-directory-title-row strong { color: var(--blue); }

.v2-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.v2-directory-card { min-width: 0; min-height: 310px; display: flex; flex-direction: column; padding: 17px; border: 1px solid #d3dfe7; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(18,53,82,.045); transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.v2-directory-card:hover { transform: translateY(-2px); border-color: #a9c4dc; box-shadow: 0 13px 30px rgba(18,53,82,.09); }
.v2-directory-card[hidden] { display: none; }
.v2-directory-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-directory-card-badges { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.v2-directory-featured { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #9bd3b7; border-radius: 5px; background: #effaf4; color: #13774b; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.v2-directory-card.is-featured { border-color: #234f70; background: linear-gradient(145deg,#173e5b 0%,#102f48 100%); color: #fff; box-shadow: 0 16px 34px rgba(16,47,72,.22); }
.v2-directory-card.is-featured:hover { border-color: #43c8c6; box-shadow: 0 20px 38px rgba(16,47,72,.28); }
.v2-directory-card.is-featured .v2-directory-category { color: #66dfdc; }
.v2-directory-card.is-featured .v2-directory-featured { border-color: #72d8b0; background: #eafaf2; color: #0b7247; }
.v2-directory-card.is-featured .v2-directory-status.is-available { border-color: rgba(119,223,192,.55); background: rgba(234,250,242,.12); color: #9af0cf; }
.v2-directory-card.is-featured .v2-directory-icon { background: rgba(255,255,255,.1); color: #ff9b5f; }
.v2-directory-card.is-featured h3 { color: #fff; }
.v2-directory-card.is-featured > p { color: #c9dce9; }
.v2-directory-card.is-featured .v2-directory-exports span { border-color: rgba(151,199,230,.42); color: #d9edfb; }
.v2-directory-card.is-featured .v2-directory-card-footer > a { background: #3b82f6; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.v2-directory-card.is-featured .v2-access-badge.is-membership { color: #ffc17f; }
.v2-directory-category { overflow: hidden; color: #2671c8; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.v2-directory-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: #fff4e9; color: #b96618; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.v2-directory-status.is-available { border: 1px solid #b9e5df; background: #effaf8; color: #0b8d89; }
.v2-directory-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-top: 15px; border-radius: 12px; background: #eff6ff; color: #3178d1; }
.v2-directory-icon svg { width: 38px; height: 38px; }
.v2-directory-icon[data-icon-family="photo"] { background: #fff5ed; color: var(--copper); }
.v2-directory-icon[data-icon-family="uv-print"] { background: #eefafa; color: var(--teal); }
.v2-directory-icon[data-icon-family="svg"] { background: #f1f7f0; color: #32845c; }
.v2-directory-icon[data-icon-family="marketing"] { background: #edf4ff; color: var(--blue); }
.v2-directory-card h3 { margin: 13px 0 7px; font-family: Georgia,serif; font-size: 20px; line-height: 1.15; letter-spacing: -.025em; }
.v2-directory-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.v2-directory-exports { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.v2-directory-exports span { padding: 3px 6px; border: 1px solid #cbdbe6; border-radius: 5px; color: #2369b6; font-size: 8px; font-weight: 900; }
.v2-directory-card-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: auto; padding-top: 17px; }
.v2-directory-card-footer > a { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 850; box-shadow: 0 7px 15px rgba(59,130,246,.18); }
.v2-access-badge { white-space: nowrap; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.v2-access-badge.is-free { color: #078b78; }.v2-access-badge.is-free::before{content:"◇ ";}
.v2-access-badge.is-membership { color: #b66a1e; }.v2-access-badge.is-membership::before{content:"○ ";}
.v2-access-badge.is-admin { color: #375b80; }.v2-access-badge.is-admin::before{content:"◆ ";}
.v2-directory-empty { padding: 70px 20px; border: 1px dashed #bdd0dc; border-radius: 14px; background: rgba(255,255,255,.6); text-align: center; }
.v2-directory-empty h2 { margin: 0 0 8px; font-family: Georgia,serif; }
.v2-directory-empty p { margin: 0; color: var(--muted); }

@media(max-width:1200px){
    .v2-directory-toolbar { grid-template-columns: 1fr; }
    .v2-access-filters { grid-column: 1; }
    .v2-directory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:850px){
    .v2-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px){
    .v2-directory-head-inner { min-height: 105px; }
    .v2-directory-head p { max-width: 260px; font-size: 12px; }
    .v2-directory-count { display: none; }
    .v2-family-filters, .v2-access-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .v2-access-info { width: 100%; white-space: normal; }
    .v2-family-filters button, .v2-access-filters button { flex: 0 0 auto; }
    .v2-directory-grid { grid-template-columns: 1fr; }
    .v2-directory-card { min-height: 280px; }
}

/* Tester-only assigned workspaces */
.tester-testing { margin: 0 0 20px; padding: 20px; border: 1px solid #b9dcca; border-radius: 16px; background: linear-gradient(135deg,#f3fbf6,#eef8ff); box-shadow: 0 8px 24px rgba(18,53,82,.055); }
.tester-testing-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.tester-testing-head h2 { margin: 5px 0 4px; font-family: Georgia,serif; font-size: 28px; letter-spacing: -.025em; }
.tester-testing-head p { margin: 0; color: var(--muted); font-size: 12px; }
.tester-testing-head p strong { color: #087747; }
.tester-testing-account { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #86c9a5; border-radius: 999px; background: #eaf8f0; color: #087747; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tester-testing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.tester-testing-card { min-width: 0; display: flex; flex-direction: column; padding: 15px; border: 1px solid #cddde5; border-radius: 12px; background: #fff; }
.tester-testing-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tester-testing-badge,.tester-testing-status { padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tester-testing-badge { border: 1px solid #86c9a5; background: #eaf8f0; color: #087747; }
.tester-testing-status { border: 1px solid #cbd9e3; background: #f5f8fa; color: #557082; }
.tester-testing-status.is-disabled { border-color: #d5b3b3; background: #fff4f4; color: #9b3535; }
.tester-testing-status.is-active { border-color: #9bd3b7; background: #effaf4; color: #13774b; }
.tester-testing-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 14px 0 10px; border-radius: 10px; background: #eef8f3; font-size: 20px; }
.tester-testing-category { color: #2671c8; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tester-testing-card h3 { margin: 7px 0 6px; font-family: Georgia,serif; font-size: 18px; line-height: 1.15; }
.tester-testing-card p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tester-testing-open { margin-top: auto; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border-radius: 8px; background: #087747; color: #fff; font-size: 11px; font-weight: 850; }
.tester-testing-open:hover { background: #06643c; }
.tester-testing-empty { display: grid; gap: 4px; padding: 14px; border: 1px dashed #b9cdd8; border-radius: 10px; background: rgba(255,255,255,.7); color: #536c7e; font-size: 12px; }
.tester-testing-empty strong { color: #27485f; }

@media(max-width:900px){.tester-testing-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.tester-testing{padding:15px}.tester-testing-head{align-items:flex-start;flex-direction:column}.tester-testing-grid{grid-template-columns:1fr;}}

