/* Directory styles from the approved STARMEET lounge. Scope them to the member workspace. */
.member-shell .test-member-card { display:flex; gap:14px; align-items:center; margin:12px 0 18px; padding:12px 16px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface); text-decoration:none; }
.member-shell .test-member-card:is(:hover,:focus-visible) {border-color:var(--accent);}
.member-shell .test-member-icon {display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:50%; color:var(--accent); background:var(--bg-elevated); font-size:19px;}
.member-shell .test-member-text {flex:1; min-width:0;}
.member-shell .test-member-text strong,.member-shell .test-member-text small {display:block;}
.member-shell .test-member-text small {color:var(--soft); font-size:13px;}
.member-shell .test-member-link {color:var(--accent); white-space:nowrap; font-weight:650;}
@media(max-width:500px){.member-shell .test-member-card{padding:10px;gap:10px}.member-shell .test-member-link{font-size:13px}.member-shell .test-member-icon{flex-basis:34px;height:34px}}
.member-shell {
  color-scheme: dark;
  --ink: var(--text-primary);
  --soft: var(--text-secondary);
  --muted: var(--text-secondary);
  --canvas: var(--bg-base);
  --surface: var(--bg-surface);
  --line: var(--border-subtle);
  --accent: var(--gold-solid);
  --accent-ink: var(--gold-ink);
  --sans: var(--sm-ui-font);
  --editorial: var(--sm-ui-font);
  --display: var(--sm-ui-font);
  --home-width: 1100px;
  --mast-height: 65px;
  --rail-width: clamp(166px, 13.6vw, 214px);
  font:var(--sm-body); color:var(--ink);

.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 15px; border-radius: 4px; background: var(--ink); color: var(--canvas); }
[data-icon] { display: inline-flex; width: 1.2em; height: 1.2em; align-items: center; justify-content: center; flex: none; }
[data-icon] svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; }
select option { background: var(--bg-elevated); color: var(--text-primary); }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 6px; padding: 11px 17px; font-weight: 650; line-height: 1.4; transition: background-color .16s, border-color .16s; }
.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--bg-elevated); }
.primary-button i { width: 21px; height: 21px; }
.primary-button:has(i) { justify-content: space-between; }
.secondary-button { border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--ink); }
.secondary-button:hover { background: var(--bg-elevated); }
.quiet-button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:44px; min-width:44px; padding:4px 2px; border:0; border-radius:4px;
  background:transparent; color:var(--action-ink,var(--soft)); cursor:pointer;
  font:500 .875rem/1.4 var(--sm-ui-font,var(--sans)); text-underline-offset:4px;
}
.quiet-button [data-icon] { width:16px; height:16px; color:var(--petal,var(--accent)); }
.quiet-button:focus-visible { outline:2px solid var(--petal,var(--accent)); outline-offset:2px; }
@media (hover:hover) {
  .quiet-button:hover { text-decoration:underline; text-decoration-thickness:1px; }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .quiet-button [data-icon=arrow], .quiet-button [data-icon=back] { transition:transform 140ms ease-out; }
  .quiet-button:hover [data-icon=arrow] { transform:translateX(2px); }
  .quiet-button:hover [data-icon=back] { transform:translateX(-2px); }
}
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: var(--soft); }
.icon-button:hover { background: var(--bg-elevated); color: white; }
.lounge-top {
  display: grid; grid-template-columns: var(--rail-width) minmax(0,1fr) auto; align-items: center;
  min-height: var(--mast-height); position: sticky; z-index: 3; top: 0;
  background: linear-gradient(100deg, var(--bg-elevated) 0, var(--bg-elevated) 43%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.lounge-top > .wordmark { margin-inline-start: clamp(14px, 1.5vw, 27px); }
.lounge-top-end { display: flex; gap: clamp(10px, 1.5vw, 24px); align-items: center; padding-inline: 16px clamp(16px, 2.4vw, 42px); }
.lounge-top .locale-control { color: var(--text-primary); }
.directory-search { display: flex; align-items: center; margin-left: clamp(18px, 2.35vw, 42px); width: min(calc(100% - 42px), 500px); position: relative; }
.directory-search > i { position: absolute; left: 14px; width: 17px; color: var(--text-secondary); pointer-events: none; }
.directory-search input { width: 100%; height: 41px; min-width: 0; padding: 0 43px 0 40px; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: 7px; font-size: 14px; appearance: none; }
.directory-search input::placeholder { color: var(--text-secondary); opacity: 1; }
.directory-search input::-webkit-search-cancel-button { appearance: none; }
#clear-search { position: absolute; right: 0; width: 40px; height: 39px; }
.directory-shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); }
.lounge-rail { position: sticky; top: var(--mast-height); align-self: start; height: calc(100vh - var(--mast-height)); height: calc(100svh - var(--mast-height)); overflow: auto; padding: 25px clamp(10px,1vw,18px) 16px; background: var(--bg-surface); border-right: 1px solid var(--border-subtle); }
.rail-nav { display: grid; }
.rail-nav { gap: 3px; }
.rail-nav button { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 8px 10px; text-align: start; border-radius: 5px; font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.rail-nav button i { width: 18px; height: 18px; color: var(--text-secondary); }
.rail-nav button[aria-pressed="true"] { box-shadow: inset 2px 0 var(--gold-solid); background: var(--bg-elevated); color: var(--text-primary); font-weight: 650; }
.rail-nav button[aria-pressed="true"] i { color: var(--text-secondary); }
.rail-nav button:hover { background: var(--bg-elevated); }
.saved-count { margin-left: auto; padding-inline: 3px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.presence-switch span:last-child { display: grid; }
.presence-switch strong { color: var(--ink); font-size: 12px; font-weight: 550; }
.presence-switch small { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.switch-track { position: relative; width: 28px; height: 16px; border: 1px solid var(--border-subtle); border-radius: 20px; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-elevated); transition: transform .16s; }
.presence-switch[aria-checked="true"] .switch-track { background: var(--accent); border-color: var(--accent); }
.presence-switch[aria-checked="true"] .switch-track::after { background: var(--bg-elevated); transform: translateX(12px); }
.directory-main { min-width: 0; min-height: calc(100vh - var(--mast-height)); padding: clamp(22px,2.3vw,40px) clamp(18px,2.35vw,42px) 0; background: linear-gradient(150deg, var(--bg-surface) 0, var(--bg-base) 46%, var(--bg-base) 100%); }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
:is(:lang(en), :lang(id)) .shelf-title { font-weight: 600; }
.directory-heading p { margin-top: 5px; color: var(--soft); font-size: 14px; }
.result-count { flex: none; margin-bottom: 2px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.voice-filters { display: flex; align-items: center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--bg-elevated) transparent; gap: 7px; margin: 18px 0 19px; padding: 3px 2px 6px; }
.voice-filters button { flex: none; min-height: 35px; padding: 6px 14px; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-primary); border-radius: 28px; font-size: 13px; }
.voice-filters button:hover { background: var(--bg-elevated); }
.voice-filters button[aria-pressed="true"] { background: var(--bg-elevated); border-color: var(--border-subtle); color: var(--accent-ink); font-weight: 650; }
.voice-filters :focus-visible { outline-offset: -2px; }
.voice-filters [aria-pressed="true"]:focus-visible { outline-color: var(--gold-solid); }
.shelf + .shelf { margin-top: clamp(19px,1.75vw,30px); }
.shelf-title { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font: 400 clamp(21px,1.75vw,28px)/1.25 var(--display); letter-spacing: -.025em; }
.shelf-title:not(.sr-only)::after { content: ""; flex: 1; height: 1px; background: var(--bg-elevated); }
.tile-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(9px,.9vw,16px); list-style: none; padding: 0; margin: 0; }
.tile { position: relative; min-width: 0; }
.tile-invite { display: block; position: relative; isolation: isolate; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 7px; background: var(--bg-elevated); color: var(--text-primary); text-align: start; }
.tile-invite::before { content: ""; position: absolute; z-index: 1; inset: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--gold-solid) 19%,transparent); border-radius: inherit; pointer-events: none; }
.tile-invite::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb,var(--bg-base) 93%,transparent) 0%, color-mix(in srgb,var(--bg-base) 67%,transparent) 18%, color-mix(in srgb,var(--bg-base) 28%,transparent) 42%, transparent 67%); }
.tile-invite img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .3s ease-out; }
.tile-text { position: absolute; z-index: 1; left: clamp(10px,.9vw,16px); right: 52px; bottom: clamp(8px,.7vw,13px); display: flex; flex-direction: column; align-items: flex-start; text-shadow: 0 1px 4px #000c; }
.tile-name { max-width: 100%; font: 600 clamp(22px,2.05vw,34px)/1 var(--sm-ui-font); letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; }
.tile-info { display: block; max-width: 100%; margin-top: 3px; color: var(--text-primary); font-size: clamp(11px,.85vw,14px); font-weight: 500; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-call { position: absolute; z-index: 1; bottom: clamp(9px,.9vw,16px); right: clamp(9px,.85vw,15px); display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid color-mix(in srgb,var(--border-subtle) 56%,transparent); border-radius: 50%; background: color-mix(in srgb,var(--bg-surface) 78%,transparent); transition: color .16s, background-color .16s; }
.tile-call i { width: 17px; height: 17px; }
.tile-save { position: absolute; z-index: 2; top: 0; right: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; color: var(--text-primary); }
.tile-save i { display: grid; place-items: center; width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: color-mix(in srgb,var(--bg-surface) 81%,transparent); }
.tile-save[aria-pressed="true"] { color: var(--text-secondary); }
.tile-save[aria-pressed="true"] svg { fill: currentColor; }
.tile-save:focus-visible { outline-offset: -4px; }
@media (hover:hover) {
  .tile-invite:hover img { transform: scale(1.035); }
  .tile-invite:hover .tile-call, .tile-invite:focus-visible .tile-call { background: var(--accent); color: var(--accent-ink); }
  .tile-save:hover i { background: var(--bg-elevated); }
}
.empty-view { display: grid; justify-items: center; padding: clamp(30px,7vh,75px) 16px; text-align: center; }
.empty-view > i { width: 26px; height: 26px; color: var(--accent); }
.empty-view h2 { margin: 13px 0 3px; font: 400 27px/1.3 var(--display); }
.empty-view p { margin-bottom: 18px; color: var(--soft); font-size: 14px; }
.directory-footer { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 0; padding: 6px 0 12px; border-top: 1px solid var(--line); color: var(--muted); }
.directory-main .directory-footer { flex-wrap: wrap; column-gap: 12px; }
.directory-footer .directory-legal { color: inherit; font-size: 12px; }
@media (min-width:1651px) { .tile-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (min-width:2050px) { .tile-grid { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width:1360px) { .tile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:950px) {
  .lounge-top { position: relative; grid-template-columns: auto minmax(0,1fr) auto; padding-inline: 17px; }
  .lounge-top > .wordmark { margin: 0; }
  .lounge-top-end { padding-inline: 8px 0; gap: 10px; }
  .directory-search { margin-left: 22px; width: calc(100% - 34px); }
  .directory-shell { display: block; }
  .lounge-rail { position: relative; top: auto; height: auto; overflow: visible; padding: 0 clamp(15px,2.35vw,28px); border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-nav { display: flex; align-items: stretch; gap: 15px; }
  .rail-nav button { min-height: 45px; border-radius: 0; padding: 7px 6px; font-size: 13px; }
  .rail-nav button[aria-pressed="true"] { background: none; box-shadow: inset 0 -2px var(--accent); }
  .directory-main { min-height: calc(100svh - 108px); }
}
@media (max-width:700px) {
  .tile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .lounge-top { grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding: 2px clamp(12px,3.4vw,23px) 9px; }
  .lounge-top-end { grid-column: 2; grid-row: 1; gap: 8px; }
  .directory-search { grid-column: 1/-1; grid-row: 2; width: 100%; margin: 0; }
  .directory-search input { height: 39px; }
  .lounge-rail { padding-inline: clamp(12px,3.4vw,23px); }
  .rail-nav { gap: clamp(8px,3vw,22px); }
  .rail-nav button { gap: 5px; padding-inline: 1px; }
  .rail-nav button i { width: 16px; height: 16px; }
  .saved-count { padding-inline: 0; }
  .directory-main { padding: 20px clamp(12px,3.4vw,23px) 0; }
  .directory-heading { gap: 6px; align-items: flex-start; }
  .directory-heading p { font-size: 13px; line-height: 1.55; }
  .result-count { margin-top: 8px; font-size: 12px; }
  .voice-filters { gap: 6px; margin: 11px 0 13px; padding-bottom: 5px; }
  .voice-filters button { min-height: 34px; padding: 6px 12px; }
  .shelf-title { gap: 10px; font-size: 22px; margin-bottom: 8px; }
  .tile-name { font-size: clamp(24px,5.2vw,31px); }
  .tile-info { font-size: 12px; }
  .directory-footer { margin-top: 23px; }
}
@media (max-width:450px) {
  .tile-invite { aspect-ratio: 1.49; }
  .tile-text { left: 8px; right: 30px; bottom: 7px; }
  .tile-name { font-size: 23px; }
  .tile-call { bottom: 9px; right: 6px; width: 23px; height: 23px; }
  .tile-call i { width: 14px; height: 14px; }
  .tile-save { width: 42px; height: 42px; }
  .tile-save i { width: 25px; height: 25px; padding: 5px; }
}
@media (max-width:360px) {
  .lounge-top-end { gap: 5px; padding: 0; }
  .rail-nav { gap: 8px; }
  .rail-nav button { font-size: 12px; }
  .tile-info { font-size: 12px; }
}
}

.member-shell {
  display:grid; grid-template-columns:var(--rail-width) minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr); background:var(--canvas);
}
.member-shell > .lounge-top { grid-column:1/-1; grid-row:1; top:auto; position:relative; }
.member-shell > .lounge-rail { grid-column:1; grid-row:2; top:auto; position:relative; height:100%; min-height:0; }
.member-shell > .directory-scroll { grid-column:2; grid-row:2; min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; }
.base.member-shell > .directory-scroll { scrollbar-width:none; }
.base.member-shell > .directory-scroll::-webkit-scrollbar { display:none; }
.member-shell .directory-main { min-height:100%; }
.member-shell [hidden] { display:none !important; }
.member-shell .lounge-top .wordmark { text-decoration:none; }
.member-shell .lounge-top .locale-control select option { background:var(--bg-surface); color:var(--ink); }
.member-shell .sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.member-shell .directory-search { margin-block:0; }
.member-shell .lounge-top input, .member-shell .voice-filters button { font-family:var(--sans); }
.member-shell .tile-invite:disabled { opacity:1; cursor:default; }
.member-shell .tile-save:disabled { opacity:.8; cursor:default; }
.member-shell .tile-name { display:block; white-space:nowrap; }
.member-shell .tile-initials { display:grid; place-items:center; width:100%; height:100%; background:linear-gradient(135deg,var(--bg-elevated),var(--bg-elevated)); color:var(--text-primary); font:600 clamp(34px,5vw,78px)/1 var(--display); }
.member-shell .tile-offline { position:absolute; z-index:1; top:10px; left:10px; padding:2px 7px; border-radius:4px; color:var(--text-primary); background:#211b20e0; font-size:12px; }
.member-shell .directory-heading h1 { color:var(--ink); }
.member-shell .directory-footer small { font-size:12px; font-weight:600; letter-spacing:.075em; }
.member-shell .directory-heading p, .member-shell .shelf-title { margin-inline:0; }
.member-shell .rail-bottom { position:relative; }
.member-shell .rail-account summary { position:absolute; right:0; top:0; width:40px; height:44px; list-style:none; display:grid; place-items:center; color:var(--muted); cursor:pointer; border-radius:5px; }
.member-shell .rail-account summary:hover { background:var(--bg-elevated); color:var(--ink); }
.member-shell .rail-account summary::-webkit-details-marker { display:none; }
.member-shell .rail-account-links { display:grid; padding:4px 10px; border-left:1px solid var(--line); margin:1px 0 10px 13px; }
.member-shell .rail-account-links :is(button,a) { display:block; padding:8px 3px; color:var(--soft); font:400 13px/1.5 var(--sans); text-decoration:none; }
.member-shell .rail-account-links [aria-current="page"] { color:var(--accent); font-weight:650; }
.member-shell .rail-account-links :is(button,a):hover { color:white; }
.member-shell .rail-item-link { display:flex; align-items:center; gap:11px; min-height:45px; padding:8px 10px; border-radius:5px; color:var(--text-secondary); font:400 14px/1.4 var(--sans); text-decoration:none; }
.member-shell .rail-item-link i { width:18px; height:18px; color:var(--text-secondary); }
.member-shell .rail-item-link:hover { background:var(--bg-elevated); }
.member-shell .rail-item-link[aria-current="page"] { background:var(--bg-elevated); color:var(--text-primary); box-shadow:inset 2px 0 var(--accent); }
.member-shell .rail-account button { position:relative; }
.member-shell .rail-account .badge-dot { position:static; display:inline-block; vertical-align:middle; margin-left:8px; }
.member-shell .directory-heading + .adult-choice { margin-top:24px; }
@media (min-width:951px) and (max-width:1360px) {
  .member-shell { --u:clamp(1px,.0969vw,1.25px); --rail-width:calc(166 * var(--u)); --mast-height:calc(65 * var(--u)); }
  .member-shell .directory-search { max-width:none; width:min(calc(100% - 44px),calc(500 * var(--u))); }
  .member-shell .directory-search input { height:calc(41 * var(--u)); font-size:calc(14 * var(--u)); padding-left:calc(40 * var(--u)); }
  .member-shell .directory-search > i { left:calc(14 * var(--u)); width:calc(17 * var(--u)); }
  .member-shell .lounge-rail { padding-top:calc(25 * var(--u)); }
  .member-shell :is(.rail-nav button,.rail-item-link) { min-height:calc(45 * var(--u)); font-size:calc(14 * var(--u)); gap:calc(11 * var(--u)); }
  .member-shell .presence-switch strong { font-size:calc(12 * var(--u)); }
  .member-shell .presence-switch small { font-size:calc(11 * var(--u)); }
  .member-shell .directory-heading p { font-size:calc(14 * var(--u)); margin-top:calc(5 * var(--u)); }
  .member-shell .result-count { font-size:calc(12 * var(--u)); }
  .member-shell .voice-filters { margin-block:calc(18 * var(--u)) calc(19 * var(--u)); gap:calc(7 * var(--u)); padding-block:calc(3 * var(--u)) calc(6 * var(--u)); }
  .member-shell .voice-filters button { min-height:calc(35 * var(--u)); padding:calc(6 * var(--u)) calc(14 * var(--u)); font-size:calc(13 * var(--u)); }
  .member-shell .shelf-title { font-size:calc(21 * var(--u)); margin-bottom:calc(10 * var(--u)); }
  .member-shell .tile-info { font-size:calc(11 * var(--u)); }
  .member-shell .tile-call { width:calc(33 * var(--u)); height:calc(33 * var(--u)); }
  .member-shell .tile-save { width:calc(46 * var(--u)); height:calc(46 * var(--u)); }
  .member-shell .tile-save i { width:calc(29 * var(--u)); height:calc(29 * var(--u)); }
}
@media (max-width:950px) {
  .member-shell { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr); }
  .member-shell > .lounge-rail { grid-column:1; grid-row:2; height:auto; max-height:44dvh; overflow:auto; }
  .member-shell > .directory-scroll { grid-column:1; grid-row:3; }
  .member-shell .lounge-rail .rail-bottom { grid-column:1/-1; }
  .member-shell .rail-account-links { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .member-shell .rail-nav .rail-item-link { min-height:45px; font-size:13px; padding:7px 6px; }
}
@media (max-width:450px) {
  .member-shell .rail-nav .rail-item-link { padding-inline:1px; font-size:12px; gap:5px; }
  .member-shell .directory-heading { flex-wrap:wrap; }
  .member-shell .result-count { margin-block:0; }
  .member-shell .voice-filters button { min-height:40px; }
  .member-shell .voice-filters { scrollbar-width:none; }
  .member-shell .voice-filters::-webkit-scrollbar { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .member-shell .tile-invite img, .member-shell .switch-track::after { transition:none; }
}

.member-services { min-height:100vh; min-height:100svh; grid-template-rows:auto 1fr; }
.member-services > .lounge-top { position:sticky; top:0; z-index:5; }
.member-services > .lounge-rail { position:sticky; top:var(--mast-height); height:calc(100svh - var(--mast-height)); }
.member-services > .directory-scroll { overflow:visible; }
.member-services .directory-main { padding-bottom:30px; }
.member-services .service-panel.directory-service {
  margin:0; padding:0; max-width:none; background:none; border:0; border-radius:0; box-shadow:none;
}
.member-services .service-panel .directory-heading { margin-bottom:24px; }
.member-services .service-panel .directory-heading h1 { margin:0; }
.member-services .service-card { border-radius:8px; }
.member-services .community-tabs { display:flex; gap:6px; overflow:auto; margin:0 0 22px; border-bottom:1px solid var(--line); }
.member-services .community-tabs .nav-item { display:inline-flex; align-items:center; gap:7px; flex:none; width:auto; min-height:44px; padding:7px 12px; border:0; border-radius:0; background:transparent; font-size:14px; color:var(--soft); }
.member-services .community-tabs .nav-item.active { box-shadow:inset 0 -2px var(--accent); color:var(--accent); }
.member-services .community-tabs svg { width:17px; height:17px; }
.member-shell .wallet-entry-link { color:var(--ink); text-decoration:none; min-height:52px; }
.member-shell .wallet-entry-link:hover { border-color:var(--accent); }
.member-shell .rail-nav button { position:relative; }
.member-shell .rail-nav .badge-dot { position:static; width:6px; height:6px; margin-left:3px; flex:none; }
@media(max-width:950px) {
  .member-shell .rail-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
  .member-shell .rail-nav :is(button,.rail-item-link) { justify-content:center; text-align:center; min-width:0; min-height:48px; padding:5px 3px; line-height:1.2; }
  .member-shell .rail-nav .rail-item-link[aria-current="page"] { background:transparent; box-shadow:inset 0 -2px var(--accent); }
}
@media(max-width:600px) {
  .member-shell .rail-nav :is(button,.rail-item-link) { flex-direction:column; gap:3px; font-size:12px; }
  .member-shell .rail-nav .badge-dot { position:absolute; top:4px; left:calc(50% + 7px); }
}
.member-services .directory-community { min-width:0; }
.member-services .community-footer { gap:8px; flex-wrap:wrap; }
.member-services .community-footer div { display:flex; flex-wrap:wrap; gap:12px; }
.member-services .community-footer button { min-height:42px; color:var(--soft); font:400 13px/1.4 var(--sans); }
.member-services .partner-main { width:100%; max-width:none; padding:0; }
.member-services .partner-heading h1 { font:600 clamp(35px,3.65vw,58px)/1.12 var(--display); }
.member-services .lounge-top :is(.wordmark,button) { margin-block:0; box-shadow:none; }
.member-services .lounge-top #adult-search { margin:0; min-height:0; padding-left:40px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:7px; font-size:14px; }
.member-services .lounge-top .icon-button { padding:0; border:0; background:transparent; }
.member-services .lounge-top .wordmark { border:0; padding:0; }
.member-services .rail-nav { text-align:start; }
.member-services .rail-account-links a { min-height:auto; }
.lounge-match-form { display:grid; gap:14px; margin-top:12px; }
.lounge-match-form select { padding:10px; min-height:44px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); }
@media (max-width:950px) {
  .member-services { grid-template-rows:auto auto 1fr; }
  .member-services > .lounge-top, .member-services > .lounge-rail { position:relative; top:auto; }
  .member-services > .lounge-rail { height:auto; }
}

.directory-actions,.account-role-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.directory-actions { flex-direction:column; align-items:flex-end; }
.role-cta,.member-shell .role-cta { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:9px 20px; border:1px solid var(--border-subtle); border-radius:24px; background:var(--bg-elevated); color:var(--text-primary); font:600 14px/1.35 var(--sans); cursor:pointer; }
.role-cta:hover { background:var(--bg-elevated); }
.role-cta:disabled { opacity:.65; }
.role-cta svg,.host-shortcuts svg { width:18px; height:18px; }
.account-role-actions { padding:3px 0 12px; }
.account-role-actions a { display:inline-flex; align-items:center; min-height:44px; color:var(--soft); }
.reception { max-width:1200px; }
.reception .directory-heading { align-items:center; }
.duty-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:clamp(20px,3vw,40px); margin:22px 0 32px; background:var(--bg-elevated); border:1px solid var(--border-subtle); border-radius:12px; }
.duty-state h2 { display:flex; align-items:center; gap:12px; font:450 clamp(25px,3vw,38px)/1.2 var(--display); }
.duty-state h2 i { flex:none; width:11px; height:11px; border-radius:50%; background:var(--text-muted); }
.duty-panel[data-online=true] .duty-state h2 i { background:var(--status-online); }
@media (prefers-reduced-motion:no-preference) {
  .duty-panel[data-online=true] .duty-state h2 i { animation:online-pulse 2.2s ease-out infinite; }
}
.duty-state p { margin:10px 0 18px; color:var(--text-secondary); }
.duty-pricing { display:grid; justify-items:start; padding-inline-start:24px; border-inline-start:1px solid var(--border-subtle); }
.reception dl,.reception dd { margin:0; }
.reception dt { font-size:13px; color:var(--soft); }
.reception dd { margin-top:7px; font-size:18px; font-variant-numeric:tabular-nums; }
.reception-section { margin:25px 0; }
.reception-section header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.reception-section h2 { font:450 24px/1.3 var(--display); }
.booking-summary,.host-shortcuts { border-block:1px solid var(--border-subtle); margin-top:12px!important; display:flex; }
.booking-summary>div { flex:1; padding:16px 4px; }
.host-shortcuts { flex-wrap:wrap; }
.host-shortcuts :is(button,a) { flex:1 1 auto; display:inline-flex; gap:10px; justify-content:center; align-items:center; min-height:54px; background:none; border:0; color:inherit; text-decoration:none; cursor:pointer; }
.host-shortcuts :is(button,a):hover { background:var(--bg-elevated); }
@media(max-width:600px){
  .directory-heading:has(.directory-actions) { align-items:flex-start; flex-wrap:wrap; gap:8px; }
  .directory-actions { flex-direction:row; align-items:center; }
  .duty-panel { align-items:flex-start; flex-direction:column; gap:16px; margin:16px 0 22px; }
  .duty-pricing { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 0 0; border:0; border-top:1px solid var(--border-subtle); width:100%; }
  .duty-rate dd { margin:3px 0 0; }
  .reception .directory-heading { flex-wrap:wrap; gap:4px; }
  .host-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .host-shortcuts :is(button,a) { flex-direction:column; text-align:center; min-height:72px; gap:6px; padding:8px 3px; font-size:13px; }
}

.member-shell .mast-apply {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 14px;border-radius:24px;background:var(--bg-elevated);color:var(--text-primary);font:700 14px/1.2 var(--sans);text-decoration:none;white-space:nowrap}.mast-apply:hover {filter:brightness(1.08)}.mast-apply:focus-visible {outline:2px solid white;outline-offset:2px}
@media(min-width:701px){.member-shell .lounge-top:has(.mast-apply){grid-template-columns:auto minmax(0,1fr) auto auto}}
@media(max-width:700px){.member-shell .lounge-top:has(.mast-apply){grid-template-columns:minmax(0,1fr) auto}.member-shell .lounge-top:has(.mast-apply) .directory-search {grid-column:1;grid-row:2;width:100%;margin:0}.member-shell .mast-apply {grid-column:2;grid-row:2;justify-self:end}}

.member-shell .invite-card .tile-invite { min-height:178px; }
.member-shell .invite-card .tile-text { right:10px; }
.member-shell .tile-text > span { max-width:100%; }
.member-shell .tile-price { display:block; font:600 12px/1.5 var(--sans); color:var(--text-primary); }
.member-shell .tile-offline[data-available="true"] { color:var(--text-primary); background:color-mix(in srgb,var(--bg-elevated) 94%,transparent); }
.member-shell .invite-label { display:inline-flex; align-items:center; gap:5px; margin-top:5px; padding:4px 10px; border-radius:16px; background:var(--bg-elevated); color:var(--text-primary); text-shadow:none; font:650 12px/1.45 var(--sans); }
.invite-label i { width:14px; height:14px; }
.invite-card .portrait-message i { display:grid; place-items:center; width:20px; height:20px; }
.invite-card .portrait-message svg { width:100%; height:100%; }
@media(max-width:950px){
  .member-shell { grid-template-rows:auto auto minmax(0,1fr) auto; }
  .member-services { height:100vh; height:100dvh; min-height:0; }
  .member-shell > .lounge-rail { display:contents; }
  .member-shell .rail-nav {
    grid-column:1; grid-row:4; background:var(--bg-surface); border-top:1px solid var(--line);
    padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  }
  .member-shell .rail-nav :is(button[aria-pressed="true"],a.rail-item-link[aria-current="page"]) {
    box-shadow:inset 0 2px var(--accent); background:var(--bg-elevated); color:var(--text-primary);
  }
  .member-shell > .directory-scroll { grid-column:1; grid-row:3; min-height:0; overflow:auto; }
}
@media(max-width:700px){
  .member-shell .lounge-top:has(.mast-apply) { grid-template-columns:minmax(0,1fr) auto auto; }
  .member-shell .lounge-top:has(.mast-apply) .lounge-top-end { grid-column:2/4; grid-row:1; justify-self:end; }
  .member-shell .lounge-top:has(.mast-apply) .directory-search { grid-column:1/3; }
  .member-shell .mast-apply { grid-column:3; }
}
