/* Vezia's member space and studio workspace share typography and form controls. */
:root {
  color-scheme: light;
  --ink: #21372e;
  --muted: #52655b;
  --accent: #285341;
  --accent-hover: #193b2c;
  --accent-tint: #e6edde;
  --paper: #f7f6f0;
  --surface: #fffefa;
  --line: #d7dfd4;
  --warm: #875236;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius: 20px;
  --bar-height: 76px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-height) + 18px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.admin-page {
  --ink: #202e3a;
  --muted: #52616b;
  --accent: #294d5e;
  --accent-hover: #193948;
  --accent-tint: #e2ecee;
  --paper: #f3f5f5;
  --surface: #ffffff;
  --line: #d5dee1;
  --radius: 13px;
}
img, svg { display: block; }
img { max-inline-size: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #398498; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: pretty; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 4.7vw, 4.65rem); }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
.admin-page h1, .admin-page h2, .admin-page h3 { font-family: var(--body); font-weight: 650; }
.admin-page h1 { font-size: clamp(2rem, 3.9vw, 3.35rem); }
.admin-page h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.ui-icon { inline-size: 1.12rem; block-size: 1.12rem; flex: none; }
.sr-only, .portal-skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.portal-skip-link:focus { position: fixed; inset: 8px auto auto 8px; z-index: 40; background: white; padding: 12px; }
.portal-kicker, .nav-label, .feature-index {
  color: var(--accent);
  margin: 0 0 9px;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.section-description, .portal-card h2 + p, .admin-welcome h1 + p { color: var(--muted); margin-top: 9px; }
.portal-button, .logout-button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
}
.portal-button, .logout-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
}
.portal-button-primary { background: var(--accent); color: white; }
.portal-button-primary:hover { background: var(--accent-hover); }
.admin-page .portal-button, .admin-page .logout-button { border-radius: 9px; }
.text-link { min-height: 36px; color: var(--accent); font-size: .88rem; }
.text-link:hover, .portal-section-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-alert { padding: 12px 16px; border: 1px solid; border-radius: 10px; font-size: .92rem; }
.portal-alert-success, .portal-alert-info { color: #24513d; background: #eaf3e9; border-color: #bfd4c3; }
.portal-alert-error { color: #802e2d; background: #fff0ed; border-color: #e0b7ae; }
.portal-card > .portal-alert { margin-top: 14px; }
.portal-brand { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.35; }
.portal-brand > span { display: grid; gap: 5px; line-height: 1; }
.portal-brand strong { font: 500 1.24rem/1 var(--display); letter-spacing: .2em; }
.portal-brand small { color: var(--muted); font-size: .66rem; letter-spacing: .08em; font-weight: 650; }

/* Both entry points put the relevant form first on small screens. */
.entry-bar, .entry-layout, .bar-inner, .workspace {
  width: min(calc(100% - 56px), 1220px);
  margin-inline: auto;
}
.entry-bar, .bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--bar-height);
  gap: 16px;
}
.entry-bar { border-bottom: 1px solid var(--line); }
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding-block: clamp(25px, 6vh, 72px);
}
.entry-form-side { width: min(100%, 445px); margin-inline: auto; }
.entry-switch {
  display: inline-flex;
  max-width: 100%;
  gap: 3px;
  padding: 4px;
  margin-bottom: clamp(25px, 5vh, 50px);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.entry-switch a { display: grid; min-height: 42px; padding: 9px 16px; place-items: center; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.entry-switch a[aria-current], .entry-switch a:hover { color: var(--ink); background: var(--surface); }
.entry-switch a[aria-current] { box-shadow: 0 1px 4px #1b33231c; }
.entry-form-side .section-description { margin: 12px 0 22px; }
.entry-form-side .portal-alert { margin-bottom: 14px; }
.entry-form-side .auth-help { margin-top: 18px; color: var(--muted); font-size: .88rem; }
.entry-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(420px, 66vh, 690px);
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border-radius: 24px;
}
.entry-feature img, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-feature { background: #24362c; color: white; }
.photo-feature img { z-index: -2; object-position: center 56%; }
.photo-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #17251bb3, transparent 32%, transparent 50%, #15261be0); }
.feature-index { color: inherit; }
.feature-caption, .team-feature h2 { max-width: 12ch; font: 500 clamp(2.1rem, 4.5vw, 4rem)/1.02 var(--display); letter-spacing: -.04em; }
.team-feature { background: #dfe9e9; border: 1px solid #c4d5d7; border-radius: 16px; }
.team-feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -64px;
  right: -62px;
  width: 290px;
  height: 290px;
  border: 1px solid #adc1c3;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #dfe9e9, 0 0 0 25px #bacccd, 0 0 0 50px #dfe9e9, 0 0 0 51px #c5d5d6;
}
.team-feature h2 { max-width: none; font-family: var(--body); font-weight: 600; }
.team-features { list-style: none; padding: 0; margin: 30px 0 0; }
.team-features li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #b7c9ca; font-size: .95rem; }
.setup-layout { display: grid; min-height: 100svh; padding: 20px; place-items: center; }
.setup-card { width: min(100%, 490px); padding: clamp(22px, 5vw, 45px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.setup-card .portal-brand { margin-bottom: 24px; }
.setup-card h1 { font-size: 2.5rem; }
.setup-card > p, .setup-card .portal-alert { margin-block: 12px; }
.auth-form, .portal-form { display: grid; gap: 14px; }
.auth-form label, .portal-form label { display: grid; min-width: 0; align-content: start; gap: 5px; }
.auth-form label > span, .portal-form label > span { font-size: .85rem; font-weight: 650; }
.portal-form label small { color: var(--muted); font-weight: 400; }
input:not([type=hidden]), textarea, select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #aebdb2;
  border-radius: 9px;
  font-size: 1rem;
}
textarea { resize: vertical; }
.admin-page input:not([type=hidden]), .admin-page select, .admin-page textarea { border-color: #b5c4ca; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.portal-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-form .portal-button { justify-self: start; margin-top: 2px; }

/* Header and role-specific navigation. */
.workspace-bar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-tools, .identity { display: flex; align-items: center; gap: 12px; }
.identity { max-width: 28ch; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: .85rem; }
.identity > span { display: grid; width: 30px; height: 30px; flex: none; place-items: center; background: var(--accent-tint); border-radius: 50%; color: var(--accent); font-weight: 700; }
.logout-form { display: flex; width: 7.4rem; margin: 0; flex: none; }
.logout-button { width: 100%; height: 44px; margin: 0; padding: 0 4px; appearance: none; border-color: var(--accent); color: var(--accent); background: var(--surface); white-space: nowrap; }
.portal-brand small, .hero-actions a, .admin-welcome .portal-button, .entry-bar .text-link { white-space: nowrap; }
.logout-button:hover { background: var(--accent-tint); }
.workspace-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 0; }
.workspace-nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.workspace-nav a[aria-current], .workspace-nav a:hover { color: var(--accent); background: var(--accent-tint); }
.member-page .workspace-nav { padding-block: 16px; }
.portal-content { min-width: 0; padding-bottom: clamp(32px, 5vw, 72px); }
.portal-content > * + * { margin-top: 22px; }
.admin-page .workspace {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 50px);
  padding-top: 32px;
}
.admin-page .workspace-nav { position: sticky; top: calc(var(--bar-height) + 24px); }
.admin-page .workspace-nav ul { flex-direction: column; }
.admin-page .workspace-nav a { border-radius: 8px; }
.nav-label { padding-left: 13px; color: var(--muted); }
.portal-card, .assistant-card, .announcement-section {
  min-width: 0;
  padding: clamp(19px, 2.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.portal-card-heading, .portal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.portal-card-heading > div, .portal-section-heading > div { flex: 1 1 auto; min-width: 0; }
.portal-card-heading > span { min-width: 32px; padding: 3px 10px; border-radius: 18px; background: var(--accent-tint); color: var(--accent); text-align: center; font-weight: 700; }
.portal-section-heading > a { color: var(--accent); font-weight: 600; font-size: .9rem; }
.portal-empty { border: 1px dashed var(--line); border-radius: 12px; margin-top: 20px; padding: 18px; }
.portal-empty p, .announcement-grid p, .admin-announcement-list p { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.dashboard-stats > div { display: grid; align-content: start; gap: 3px; padding: 16px clamp(12px, 2.5vw, 30px); min-width: 0; }
.dashboard-stats > div + div { border-left: 1px solid var(--line); }
.dashboard-stats small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 650; font-size: .85rem; line-height: 1.35; }
.dashboard-stats strong { color: var(--accent); font: 500 clamp(1.9rem, 3vw, 2.75rem)/1.16 var(--display); font-variant-numeric: tabular-nums; }
.dashboard-stats span { color: var(--muted); font-size: .79rem; }

/* Member overview. */
.member-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.45fr 1fr; overflow: hidden; border-radius: 24px; background: #e7eddd; border: 1px solid #d2ddcb; }
.hero-copy { align-self: center; min-width: 0; padding: clamp(24px, 3.5vw, 52px); }
.hero-copy > p:not(.portal-kicker) { max-width: 51ch; margin-top: 10px; color: #435d4d; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 19px; margin-top: 20px; }
.hero-photo { position: relative; min-height: 100%; background: #c0cbb7; }
.hero-photo img { object-position: 50% 58%; }
.hero-photo span { position: absolute; right: 14px; bottom: 12px; padding: 4px 11px; border-radius: 20px; color: white; background: #182a21dd; font-size: .72rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 18px; }
.booking-card { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 54px); }
.booking-intro { max-width: 32ch; }
.admin-create > .portal-form { margin-top: 18px; }
.requests-card .portal-card-heading > svg { width: 23px; height: 23px; color: var(--accent); }
.request-list { margin-top: 14px; }
.request-list > div { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.request-list > div:last-child { border-bottom: none; }
.request-list strong, .request-list > div > div > span { display: block; }
.request-list > div > div > span { color: var(--muted); font-size: .83rem; }
.request-status { flex: none; padding: 4px 10px; border-radius: 20px; font-size: .77rem; font-weight: 650; }
.request-status-pending { color: #714c15; background: #f7e9ce; }
.request-status-approved { color: #2c5539; background: #deeee1; }
.request-status-declined { color: #803e39; background: #f7e2dd; }
.request-status-completed { color: #495664; background: #e8edef; }
.announcement-grid, .admin-announcement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.announcement-grid > article, .admin-announcement-list article { padding: 15px 18px; border-left: 3px solid var(--line); background: var(--paper); border-radius: 0 10px 10px 0; }
.announcement-grid h3, .admin-announcement-list h3 { margin-block: 4px; font-size: 1.03rem; }
.announcement-grid time, .announcement-grid article > span, .admin-announcement-list small, .admin-announcement-list time { font-size: .76rem; color: var(--muted); }
.announcement-empty { grid-column: 1 / -1; }
.account-section { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 24px; }
.account-email { display: block; margin-top: 12px; color: var(--accent); font-size: .9rem; overflow-wrap: anywhere; }

/* Member assistant. */
.assistant-card {
  background: linear-gradient(125deg, #f0f4ec, #fffef9 70%);
  border-left: 4px solid #7f9b7d;
}
.assistant-intro { display: flex; gap: 12px; align-items: center; }
.assistant-intro .portal-kicker { margin-bottom: 3px; }
.assistant-intro h2 + p { margin-top: 4px; color: var(--muted); font-size: .94rem; }
.assistant-orb {
  display: grid;
  width: 53px;
  height: 53px;
  place-content: center;
  border: 1px solid #aec0ac;
  border-radius: 50%;
  color: #355840;
  background: #e0e9d8;
}
.assistant-orb strong { font: 500 1.8rem var(--display); }
.assistant-orb span:empty { display: none; }
.assistant-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 16px 0 12px; }
.assistant-quick button {
  padding: 6px 12px;
  min-height: 44px;
  border: 1px solid #c3cfc0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--accent);
  font-size: .84rem;
}
.assistant-quick button:hover { background: var(--accent-tint); }
.assistant-messages { display: grid; gap: 10px; max-height: 310px; overflow-y: auto; padding: 4px 0; }
.assistant-message { display: flex; align-items: flex-start; gap: 8px; max-width: min(85%, 76ch); }
.assistant-message > span { display: grid; flex: none; place-items: center; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: .76rem; font-weight: 700; }
.assistant-message p { padding: 9px 13px; border: 1px solid var(--line); border-radius: 3px 14px 14px; background: white; font-size: .91rem; overflow-wrap: anywhere; white-space: pre-line; }
.assistant-message-user { justify-self: end; flex-direction: row-reverse; }
.assistant-message-user p { border-radius: 14px 3px 14px 14px; color: white; background: var(--accent); }
.assistant-message.is-loading p::after { content: "…"; }
.assistant-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 12px; }
.assistant-form textarea { resize: vertical; min-height: 46px; max-height: 150px; }
.assistant-form button, .admin-request-list button, .member-table button {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--accent);
  font-size: .88rem;
  font-weight: 650;
}
.assistant-form button:hover, .admin-request-list button:hover, .member-table button:hover { background: var(--accent-hover); }
.assistant-form button:disabled { cursor: wait; opacity: .62; }
.assistant-disclaimer { display: block; margin-top: 8px; color: var(--muted); font-size: .76rem; }

/* The studio desk prioritizes the pending queue and account operations. */
.admin-welcome { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-block: 3px 6px; }
.admin-welcome > div { flex: 1 1 260px; min-width: 0; }
.admin-welcome .portal-kicker { display: flex; align-items: center; gap: 10px; }
.admin-welcome time { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.admin-welcome .portal-button { flex: none; }
.admin-stats { gap: 12px; background: transparent; border: 0; }
.admin-stats > a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-stats > a:first-child { border-color: #b3c9cb; background: #e1ecec; }
.admin-stats > a:hover, .admin-stats > a:focus-visible { border-color: var(--accent); }
.admin-stats .stat-reading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.admin-stats .stat-reading .ui-icon { color: var(--accent); }
.admin-stats strong { font-family: var(--body); font-weight: 650; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .9fr); gap: 16px; align-items: start; }
.admin-page .portal-card { padding: clamp(18px, 2vw, 26px); }
.admin-page .portal-card-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.queue-item:last-child { padding-bottom: 0; border-bottom: 0; }
.queue-title, .queue-detail { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.queue-title strong { font-size: 1.03rem; }
.queue-detail > *, .admin-request-person > div { min-width: 0; }
.queue-time, .queue-note, .queue-status-label { color: var(--muted); font-size: .84rem; }
.queue-note { padding-left: 10px; border-left: 2px solid var(--line); }
.admin-request-person { display: flex; flex: 1 1 175px; gap: 8px; align-items: center; }
.admin-request-person > span { display: grid; flex: none; place-items: center; width: 30px; height: 30px; color: var(--accent); background: var(--accent-tint); border-radius: 9px; }
.admin-request-person strong { display: block; line-height: 1.4; font-size: .9rem; }
.admin-request-list small, .member-table small { display: block; color: var(--muted); font-size: .8rem; }
.member-table form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.queue-status-label { display: block; margin: 0 0 5px; }
.queue-controls { display: grid; grid-template-columns: minmax(0, 1fr) 5.6rem; gap: 7px; max-width: 22rem; }
.queue-controls > * { width: 100%; min-width: 0; margin: 0; }
.member-table-wrap { margin-top: 10px; }
.member-table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.member-table th, .member-table td { padding: 13px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.member-table th { color: var(--muted); font-size: .79rem; font-weight: 650; }
.member-table td:first-child { max-width: 270px; }
.member-table tbody tr:last-child td { border-bottom: none; }
.member-table input { width: 68px; }
.member-table .cell-label { display: none; }
.admin-content-grid { grid-template-columns: minmax(245px, .92fr) minmax(0, 1.35fr); }
.admin-announcement-list { grid-template-columns: 1fr; }

@media (max-width: 1050px) {
  .admin-page .workspace { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
  .admin-page .workspace-nav a { padding-inline: 9px; }
  .admin-grid { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .9fr); }
}
@media (max-width: 860px) {
  :root { --bar-height: 64px; }
  .entry-bar, .entry-layout, .bar-inner, .workspace { width: min(calc(100% - 32px), 760px); }
  .admin-page .workspace { display: block; padding-top: 0; }
  .admin-page .workspace-nav, .member-page .workspace-nav { position: static; padding-block: 10px; }
  .admin-page .workspace-nav ul { flex-direction: row; }
  .nav-label { display: none; }
  .admin-welcome { margin-top: 8px; }
  .entry-layout { gap: 26px; }
}
@media (max-width: 680px) {
  .entry-layout, .dashboard-grid, .admin-grid, .account-section, .booking-card { grid-template-columns: minmax(0, 1fr); }
  .entry-form-side, .entry-feature { width: min(100%, 480px); margin-inline: auto; }
  .entry-layout { padding-block: 22px 30px; }
  .entry-feature { min-height: 132px; padding: 18px; }
  .feature-caption, .team-feature h2 { max-width: none; font-size: 1.65rem; }
  .team-features { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 10px; }
  .team-features li { border: 0; padding: 0; font-size: .76rem; gap: 4px; }
  .team-features svg { width: 14px; }
  .entry-switch { margin-bottom: 21px; }
  .identity { display: none; }
  .member-hero { grid-template-columns: minmax(0, 1fr) minmax(95px, .36fr); }
  .hero-copy { padding: 21px 17px; }
  .hero-photo span { display: none; }
  .hero-actions { gap: 6px 12px; margin-top: 13px; }
  .hero-actions .portal-button { padding: 9px 13px; }
  .workspace-nav ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .workspace-nav a, .admin-page .workspace-nav a { flex-direction: column; justify-content: center; padding: 5px 1px; gap: 3px; min-height: 48px; border-radius: 10px; font-size: .76rem; line-height: 1.25; }
  .workspace-nav .ui-icon { width: 17px; height: 17px; }
  .account-section { gap: 17px; }
  .admin-welcome { flex-wrap: wrap; gap: 12px; }
  .member-table, .member-table tbody { display: block; }
  .member-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .member-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .member-table th, .member-table td { display: block; border: 0; padding: 0; }
  .member-table td:first-child, .member-table td:last-child { grid-column: 1 / -1; max-width: none; }
  .member-table .cell-label { display: block; color: var(--muted); font-size: .75rem; }
  .member-table td small { margin-top: 1px; }
}
@media (max-width: 510px) {
  .entry-bar, .entry-layout, .bar-inner, .workspace { width: calc(100% - 24px); }
  .brand-mark { width: 34px; height: 34px; }
  .portal-brand { gap: 7px; }
  .logout-form { width: 7rem; }
  .portal-content > * + * { margin-top: 15px; }
  .member-hero { display: block; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy > .portal-kicker, .hero-copy h1 { max-width: calc(100% - 70px); }
  .hero-copy h1 { font-size: clamp(1.85rem, 7.6vw, 2.55rem); }
  .hero-copy > p:not(.portal-kicker) { max-width: 38ch; }
  .hero-photo { position: absolute; top: 14px; right: 14px; width: 58px; height: 58px; min-height: 0; overflow: hidden; border-radius: 12px; }
  .dashboard-stats > div { padding: 11px 8px; }
  .dashboard-stats small { font-size: .76rem; }
  .dashboard-stats span { font-size: .71rem; line-height: 1.35; }
  .admin-stats { gap: 5px; }
  .admin-stats > a { padding: 10px 8px; column-gap: 3px; }
  .admin-stats > a .ui-icon { width: 14px; height: 14px; }
  .assistant-intro { gap: 9px; }
  .assistant-orb { width: 39px; height: 39px; }
  .assistant-orb strong { font-size: 1.35rem; }
  .assistant-quick { gap: 5px; }
  .assistant-form button { padding-inline: 10px; }
  .assistant-message { max-width: 98%; }
  .portal-form-row, .announcement-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-section-heading { flex-wrap: wrap; gap: 6px; }
  .queue-detail { display: grid; grid-template-columns: minmax(0, 1fr); }
  .queue-time { padding-left: 38px; }
}
