:root {
  color-scheme: dark;
  --access-bg: #071014;
  --access-panel: #0c181d;
  --access-panel-strong: #102128;
  --access-line: rgba(151, 203, 216, 0.16);
  --access-copy: #ecf7f8;
  --access-muted: #8ea7ad;
  --access-cyan: #35d6e8;
  --access-cyan-soft: rgba(53, 214, 232, 0.12);
  --access-lime: #b8ed68;
  --access-danger: #ff8585;
  --access-radius: 22px;
  font-family: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.access-page {
  margin: 0;
  min-height: 100vh;
  color: var(--access-copy);
  background:
    radial-gradient(circle at 12% 2%, rgba(53, 214, 232, 0.1), transparent 33rem),
    linear-gradient(135deg, #071014 0%, #08161a 52%, #071014 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--access-copy);
  text-decoration: none;
}

.access-brand img { width: 38px; height: 38px; object-fit: contain; }
.access-brand span { display: grid; gap: 1px; }
.access-brand strong { font-family: "Space Grotesk", sans-serif; font-size: 16px; letter-spacing: 0.02em; }
.access-brand small { color: var(--access-muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

.access-eyebrow {
  margin: 0;
  color: var(--access-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 0.95fr) minmax(520px, 1.05fr); }

.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 76px);
  border-right: 1px solid var(--access-line);
  background:
    linear-gradient(rgba(7, 16, 20, 0.34), rgba(7, 16, 20, 0.82)),
    url("./assets/playcortex-wavefield-cyan.svg") center / cover no-repeat;
}

.auth-story::after {
  position: absolute;
  right: -180px;
  bottom: 8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(53, 214, 232, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(53, 214, 232, 0.035), 0 0 0 112px rgba(53, 214, 232, 0.02);
  content: "";
}

.auth-story > * { position: relative; z-index: 1; }
.auth-story-copy { max-width: 590px; }
.auth-story h1 { margin: 16px 0 22px; font: 600 clamp(40px, 5.1vw, 76px)/0.97 "Space Grotesk", sans-serif; letter-spacing: -0.045em; }
.auth-story h1 em { color: var(--access-cyan); font-style: normal; }
.auth-story-copy > p:last-child { max-width: 530px; margin: 0; color: #b8cdd1; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.7; }

.auth-security-note { display: flex; align-items: center; gap: 14px; max-width: 390px; padding: 15px 17px; border: 1px solid var(--access-line); border-radius: 16px; background: rgba(8, 23, 27, 0.72); backdrop-filter: blur(12px); }
.auth-security-note div { display: grid; gap: 3px; }
.auth-security-note strong { font-size: 13px; }
.auth-security-note small { color: var(--access-muted); font-size: 11px; line-height: 1.45; }
.security-pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--access-lime); box-shadow: 0 0 0 6px rgba(184, 237, 104, 0.09), 0 0 20px rgba(184, 237, 104, 0.6); }

.auth-panel { display: grid; place-items: center; min-width: 0; min-height: 100vh; padding: 38px clamp(24px, 6vw, 92px); }
.auth-card { width: 100%; max-width: 510px; min-width: 0; }
.auth-card-head h2 { margin: 10px 0 8px; font: 600 clamp(30px, 4vw, 44px)/1.05 "Space Grotesk", sans-serif; letter-spacing: -0.035em; }
.auth-card-head > p:last-child { margin: 0; color: var(--access-muted); font-size: 14px; line-height: 1.6; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 32px 0 24px; padding: 5px; border: 1px solid var(--access-line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.auth-tab { min-width: 0; min-height: 42px; overflow: hidden; border: 0; border-radius: 10px; color: var(--access-muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.auth-tab.is-active { color: var(--access-copy); background: var(--access-panel-strong); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }

.auth-message, .directory-message { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(53, 214, 232, 0.26); border-radius: 12px; color: #c9f7fb; background: var(--access-cyan-soft); font-size: 12px; line-height: 1.5; }
.auth-message.is-error, .directory-message.is-error { border-color: rgba(255, 133, 133, 0.34); color: #ffc2c2; background: rgba(255, 81, 81, 0.09); }
.auth-message.is-success, .directory-message.is-success, .account-message.is-success { border-color: rgba(184, 237, 104, 0.3); color: #dfffb0; background: rgba(184, 237, 104, 0.08); }

.google-button, .auth-submit, .secondary-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--access-line);
  border-radius: 12px;
  color: var(--access-copy);
  background: var(--access-panel-strong);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.google-button { display: flex; align-items: center; justify-content: center; gap: 11px; }
.google-button svg { width: 19px; height: 19px; }
.google-button:hover, .secondary-button:hover { border-color: rgba(53, 214, 232, 0.44); transform: translateY(-1px); }
.google-button:disabled, .auth-submit:disabled, .secondary-button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.google-button[data-provider-unavailable]:disabled { cursor: not-allowed; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0; color: #688087; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--access-line); content: ""; }
.auth-form { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 8px; color: #d6e6e9; font-size: 12px; font-weight: 700; }
.auth-field > small { color: var(--access-muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.auth-field input, .access-search input { width: 100%; min-height: 48px; border: 1px solid var(--access-line); border-radius: 12px; outline: 0; color: var(--access-copy); background: rgba(4, 13, 16, 0.54); padding: 0 14px; }
.auth-field input:focus, .access-search input:focus { border-color: var(--access-cyan); box-shadow: 0 0 0 3px rgba(53, 214, 232, 0.09); }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 9px; min-height: 32px; transform: translateY(-50%); border: 0; border-radius: 8px; color: var(--access-cyan); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.auth-check { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: var(--access-muted); font-size: 11px; line-height: 1.5; }
.auth-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--access-cyan); }
.auth-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; padding: 0 18px; border-color: var(--access-cyan); color: #041417; background: var(--access-cyan); }
.auth-submit:hover { transform: translateY(-1px); background: #5ce4f1; }
.auth-context { margin: 0 0 20px; padding: 12px 14px; border-left: 2px solid var(--access-cyan); color: var(--access-muted); background: rgba(53, 214, 232, 0.055); font-size: 11px; line-height: 1.55; }
.auth-context strong { color: var(--access-copy); }
.auth-footnote { margin: 20px 0 0; color: #657c82; font-size: 10px; line-height: 1.55; text-align: center; }

.member-shell, .admin-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.member-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.member-topbar { display: flex; align-items: center; justify-content: space-between; padding: 30px 0; }
.member-topbar-actions { display: flex; align-items: center; gap: 9px; }
.secondary-button { width: auto; min-height: 40px; padding: 0 17px; font-size: 12px; }
.secondary-button--link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.member-card { position: relative; overflow: hidden; align-self: center; width: min(680px, 100%); margin: -40px auto 80px; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--access-line); border-radius: var(--access-radius); background: linear-gradient(150deg, rgba(16, 33, 40, 0.96), rgba(8, 20, 24, 0.96)); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32); }
.member-card h1 { max-width: 520px; margin: 14px 0 12px; font: 600 clamp(32px, 5vw, 52px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -0.04em; }
.member-card > p:not(.access-eyebrow):not(.member-support) { color: var(--access-muted); line-height: 1.65; }
.member-orbit { position: absolute; top: -76px; right: -76px; width: 230px; height: 230px; border: 1px solid rgba(53, 214, 232, 0.18); border-radius: 50%; }
.member-orbit span { position: absolute; inset: 34px; border: 1px solid rgba(53, 214, 232, 0.16); border-radius: 50%; }
.member-orbit i { position: absolute; top: 42%; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--access-cyan); box-shadow: 0 0 18px var(--access-cyan); }
.member-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.member-status-grid article, .admin-summary article { padding: 18px; border: 1px solid var(--access-line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.member-status-grid small, .admin-summary small { display: block; margin-bottom: 8px; color: var(--access-muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.member-status-grid strong { font: 600 22px "Space Grotesk", sans-serif; text-transform: capitalize; }
.status-active { color: var(--access-lime); }
.member-boundary { padding: 19px; border-left: 2px solid var(--access-cyan); background: var(--access-cyan-soft); }
.member-boundary strong { font-size: 13px; }
.member-boundary p { margin: 7px 0 0; color: #a9c0c5; font-size: 12px; line-height: 1.65; }
.member-support { margin: 22px 0 0; color: #738d93; font-size: 11px; }

.admin-shell { padding: 48px 0 80px; }
.admin-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.admin-header .access-brand { margin-bottom: 70px; }
.admin-header h1 { margin: 12px 0 10px; font: 600 clamp(38px, 5vw, 62px)/1 "Space Grotesk", sans-serif; letter-spacing: -0.045em; }
.admin-header > div > p:last-child { max-width: 690px; margin: 0; color: var(--access-muted); line-height: 1.65; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 22px; }
.admin-summary strong { font: 600 30px "Space Grotesk", sans-serif; }
.access-directory { border: 1px solid var(--access-line); border-radius: var(--access-radius); background: rgba(10, 25, 30, 0.78); overflow: hidden; }
.directory-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 26px 28px; border-bottom: 1px solid var(--access-line); }
.directory-head h2 { margin: 8px 0 0; font: 600 24px "Space Grotesk", sans-serif; }
.access-search { width: min(320px, 100%); }
.access-search input { min-height: 42px; font-size: 12px; }
.directory-message { margin: 18px 22px; }
.member-list { display: grid; }
.member-row { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(130px, 0.6fr) minmax(190px, 0.8fr); gap: 20px; align-items: center; min-height: 84px; padding: 16px 28px; border-top: 1px solid rgba(151, 203, 216, 0.1); }
.member-row:first-child { border-top: 0; }
.member-identity { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-width: 0; }
.member-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(53, 214, 232, 0.25); border-radius: 12px; color: var(--access-cyan); background: var(--access-cyan-soft); font: 700 13px "Space Grotesk", sans-serif; }
.member-avatar { position: relative; overflow: hidden; }
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 160ms ease; }
.member-avatar.has-image img { opacity: 1; }
.member-avatar__fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.member-identity div { min-width: 0; }
.member-identity strong, .member-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity strong { font-size: 13px; }
.member-identity small { margin-top: 4px; color: var(--access-muted); font-size: 11px; }
.member-date { color: var(--access-muted); font-size: 11px; }
.role-control { display: flex; justify-content: flex-end; gap: 6px; }
.role-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--access-line); border-radius: 9px; color: var(--access-muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.role-button.is-active { border-color: rgba(53, 214, 232, 0.42); color: var(--access-cyan); background: var(--access-cyan-soft); }
.role-button:disabled { cursor: wait; opacity: 0.5; }
.member-activity { display: grid; gap: 6px; }
.member-activity small { color: var(--access-muted); font-size: 10px; }
.member-status-dot { display: inline-flex; align-items: center; gap: 7px; color: #cbe6d2; font-size: 11px; font-weight: 700; }
.member-status-dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--access-lime); box-shadow: 0 0 12px rgba(184, 237, 104, 0.45); content: ""; }
.empty-directory { padding: 46px 24px; color: var(--access-muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.control-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 80px; }
.control-topbar { display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr); gap: 24px; align-items: center; min-height: 62px; }
.control-topbar > .secondary-button { justify-self: end; }
.control-nav { display: inline-flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--access-line); border-radius: 14px; background: rgba(6, 17, 21, 0.72); }
.control-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 10px; color: var(--access-muted); text-decoration: none; font-size: 12px; font-weight: 750; transition: color 160ms ease, background 160ms ease; }
.control-nav a:hover, .control-nav a.is-active { color: var(--access-copy); background: var(--access-panel-strong); }
.control-nav a span { color: var(--access-cyan); font-size: 10px; }
.control-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 76px 0 34px; }
.control-hero--compact { padding-bottom: 28px; }
.control-hero h1 { margin: 13px 0 12px; font: 600 clamp(40px, 6vw, 70px)/0.96 "Space Grotesk", sans-serif; letter-spacing: -0.05em; }
.control-hero > div > p:last-child { max-width: 680px; margin: 0; color: var(--access-muted); line-height: 1.65; }
.control-signal { display: flex; align-items: center; gap: 13px; min-width: 260px; padding: 15px 17px; border: 1px solid var(--access-line); border-radius: 15px; background: rgba(10, 25, 30, 0.72); }
.control-signal i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--access-lime); box-shadow: 0 0 0 6px rgba(184, 237, 104, 0.08), 0 0 20px rgba(184, 237, 104, 0.42); }
.control-signal span { display: grid; gap: 4px; }
.control-signal strong { font-size: 12px; }
.control-signal small { color: var(--access-muted); font-size: 10px; }
.control-shell .admin-summary { margin-top: 0; }
.control-shell .admin-summary article { position: relative; overflow: hidden; min-height: 132px; }
.control-shell .admin-summary article::after { position: absolute; right: -28px; bottom: -45px; width: 105px; height: 105px; border: 1px solid rgba(53, 214, 232, 0.08); border-radius: 50%; content: ""; }
.control-shell .admin-summary span { display: block; margin-top: 7px; color: var(--access-muted); font-size: 10px; }
.directory-head > div > p:last-child { margin: 8px 0 0; color: var(--access-muted); font-size: 11px; }
.directory-message.is-success { margin-bottom: 18px; }

.account-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.58fr); gap: 22px; align-items: start; }
.identity-card, .account-panel { border: 1px solid var(--access-line); background: linear-gradient(155deg, rgba(16, 33, 40, 0.94), rgba(8, 20, 24, 0.94)); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2); }
.identity-card { position: sticky; top: 24px; display: grid; justify-items: center; padding: 34px 28px 28px; border-radius: 24px; text-align: center; }
.profile-photo { position: relative; display: grid; place-items: center; width: 138px; height: 138px; overflow: hidden; border: 1px solid rgba(53, 214, 232, 0.32); border-radius: 42px; color: var(--access-cyan); background: radial-gradient(circle at 32% 25%, rgba(53, 214, 232, 0.2), rgba(8, 20, 24, 0.98) 68%); box-shadow: 0 0 0 8px rgba(53, 214, 232, 0.035), 0 24px 50px rgba(0, 0, 0, 0.28); font: 700 34px "Space Grotesk", sans-serif; transform: rotate(-2deg); }
.profile-photo::after { position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 35px; pointer-events: none; content: ""; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; transform: rotate(2deg) scale(1.04); }
.photo-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.profile-upload { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.text-button { min-height: 38px; padding: 0 8px; border: 0; color: var(--access-muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--access-danger); }
.photo-hint { max-width: 250px; margin: 12px 0 0; color: #6f898f; font-size: 10px; line-height: 1.5; }
.identity-copy { width: 100%; margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--access-line); }
.identity-copy h2 { margin: 0; font: 600 24px/1.1 "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.identity-copy p { margin: 8px 0 0; overflow-wrap: anywhere; color: var(--access-muted); font-size: 11px; }
.access-level-card { width: 100%; margin-top: 24px; padding: 18px; border: 1px solid rgba(53, 214, 232, 0.18); border-radius: 16px; background: var(--access-cyan-soft); text-align: left; }
.access-level-card span, .access-level-card strong, .access-level-card small { display: block; }
.access-level-card span { color: var(--access-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.access-level-card strong { margin-top: 7px; color: var(--access-cyan); font: 600 21px "Space Grotesk", sans-serif; }
.access-level-card small { margin-top: 7px; color: #a8c0c5; font-size: 10px; line-height: 1.55; }
.account-forms { display: grid; gap: 18px; }
.account-panel { padding: 28px; border-radius: 22px; }
.account-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 25px; }
.account-panel-heading h2 { margin: 8px 0 0; font: 600 27px "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.panel-index { color: rgba(53, 214, 232, 0.28); font: 600 36px/1 "Space Grotesk", sans-serif; }
.account-field { display: grid; gap: 8px; color: #d6e6e9; font-size: 11px; font-weight: 700; }
.account-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--access-line); border-radius: 12px; outline: 0; color: var(--access-copy); background: rgba(4, 13, 16, 0.54); }
.account-field input:focus { border-color: var(--access-cyan); box-shadow: 0 0 0 3px rgba(53, 214, 232, 0.09); }
.account-field input[readonly] { color: #8ea7ad; background: rgba(255, 255, 255, 0.025); cursor: not-allowed; }
.account-field small { color: var(--access-muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
.account-field + .account-field { margin-top: 17px; }
.account-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.account-password-grid .account-field + .account-field { margin-top: 0; }
.account-field--wide { grid-column: 1 / -1; }
.account-panel-actions { display: flex; justify-content: flex-end; margin-top: 23px; }
.primary-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--access-cyan); border-radius: 11px; color: #041417; background: var(--access-cyan); cursor: pointer; font-weight: 800; }
.primary-button:hover { background: #5ce4f1; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: 0.6; transform: none; }
.security-note { display: flex; align-items: start; gap: 11px; margin-top: 20px; padding: 13px 14px; border-left: 2px solid var(--access-cyan); background: rgba(53, 214, 232, 0.055); }
.security-note i { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--access-cyan); }
.security-note p { margin: 0; color: var(--access-muted); font-size: 10px; line-height: 1.55; }
.account-message { margin: 0; padding: 13px 15px; border: 1px solid rgba(53, 214, 232, 0.26); border-radius: 12px; color: #c9f7fb; background: var(--access-cyan-soft); font-size: 11px; line-height: 1.5; }
.account-message.is-error { border-color: rgba(255, 133, 133, 0.34); color: #ffc2c2; background: rgba(255, 81, 81, 0.09); }

.hub-account { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.hub-account__identity { display: grid; gap: 2px; min-width: 0; text-align: right; }
.hub-account__identity strong { overflow: hidden; max-width: 210px; color: var(--access-copy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hub-account__identity small { color: var(--access-muted); font-size: 9px; text-transform: uppercase; }
.hub-account__link, .hub-account__logout { min-height: 30px; padding: 0 10px; border: 1px solid var(--access-line); border-radius: 8px; color: #b9d0d4; background: rgba(255, 255, 255, 0.025); font-size: 9px; font-weight: 800; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.hub-account__link { display: inline-flex; align-items: center; }

html[data-hub-role="standard"] [data-admin-only] { display: none !important; }

.hub-read-only-status {
  display: grid;
  gap: 3px;
  width: min(100%, 330px);
  margin: 0 0 10px auto;
  padding: 10px 12px;
  border: 1px solid rgba(57, 211, 230, 0.28);
  border-radius: 10px;
  color: #a8edf5;
  background: rgba(7, 31, 38, 0.88);
  text-align: left;
}

.hub-read-only-status strong {
  color: #42d8e8;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-read-only-status span { color: #9bbbc0; font-size: 10px; line-height: 1.45; }
.hub-read-only-status.is-pulsing { animation: hub-read-only-pulse 0.8s ease-out; }
.hub-read-only-card { cursor: pointer; }

@keyframes hub-read-only-pulse {
  0%, 100% { border-color: rgba(57, 211, 230, 0.28); box-shadow: none; }
  45% { border-color: rgba(57, 211, 230, 0.76); box-shadow: 0 0 0 4px rgba(57, 211, 230, 0.08); }
}
.hub-nav-group--utility { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--access-line); }
.hub-nav-item--account { color: #b9d8de !important; }

.action-log-directory { margin-top: 24px; scroll-margin-top: 24px; border: 1px solid var(--access-line); border-radius: var(--access-radius); background: linear-gradient(155deg, rgba(11, 27, 32, 0.94), rgba(6, 17, 21, 0.94)); overflow: hidden; }
.action-log-head { align-items: center; }
.action-log-counter { min-width: 150px; padding: 14px 17px; border: 1px solid rgba(53, 214, 232, 0.18); border-radius: 14px; background: rgba(53, 214, 232, 0.055); text-align: right; }
.action-log-counter span { display: block; color: var(--access-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.action-log-counter strong { display: block; margin-top: 5px; color: var(--access-cyan); font: 600 25px "Space Grotesk", sans-serif; }
.action-log-filters { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.52fr) minmax(160px, 0.52fr) auto; gap: 10px; align-items: end; padding: 18px 22px; border-bottom: 1px solid rgba(151, 203, 216, 0.1); background: rgba(3, 13, 16, 0.32); }
.action-log-search { width: 100%; }
.action-log-filter { display: grid; gap: 7px; }
.action-log-filter > span { color: var(--access-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.action-log-filter select { width: 100%; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--access-line); border-radius: 10px; outline: 0; color: var(--access-copy); background: #081a1f; font: 600 11px Inter, sans-serif; }
.action-log-filter select:focus { border-color: var(--access-cyan); box-shadow: 0 0 0 3px rgba(53, 214, 232, 0.09); }
.action-log-refresh { min-height: 42px; }
.action-log-list { display: grid; }
.action-log-row { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 15px; padding: 20px 28px; border-top: 1px solid rgba(151, 203, 216, 0.1); }
.action-log-row:first-child { border-top: 0; }
.action-log-row::before { position: absolute; top: 0; bottom: 0; left: 36px; width: 1px; background: rgba(53, 214, 232, 0.12); content: ""; }
.action-log-row:first-child::before { top: 27px; }
.action-log-row:last-child::before { bottom: calc(100% - 28px); }
.action-log-marker { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 5px; border: 2px solid #0a1c21; border-radius: 50%; background: var(--access-cyan); box-shadow: 0 0 0 3px rgba(53, 214, 232, 0.11), 0 0 18px rgba(53, 214, 232, 0.34); }
.action-log-marker--financial { background: var(--access-lime); box-shadow: 0 0 0 3px rgba(184, 237, 104, 0.1), 0 0 18px rgba(184, 237, 104, 0.3); }
.action-log-marker--settings, .action-log-marker--account { background: #f3bc69; box-shadow: 0 0 0 3px rgba(243, 188, 105, 0.1), 0 0 18px rgba(243, 188, 105, 0.3); }
.action-log-main { min-width: 0; }
.action-log-row-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.action-log-row-head > div { min-width: 0; }
.action-log-row-head strong { display: block; color: #e4f3f5; font-size: 13px; line-height: 1.45; }
.action-log-row-head small { display: block; margin-top: 5px; overflow: hidden; color: var(--access-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.action-log-area-pill { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(53, 214, 232, 0.18); border-radius: 999px; color: var(--access-cyan); background: rgba(53, 214, 232, 0.055); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.action-log-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 11px; color: #7f9ba1; font-size: 9px; }
.action-log-details { margin-top: 13px; }
.action-log-details summary { width: fit-content; color: #9fb9be; cursor: pointer; font-size: 10px; font-weight: 700; }
.action-log-details[open] summary { color: var(--access-cyan); }
.action-log-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.action-log-change { min-width: 0; padding: 10px 11px; border: 1px solid rgba(151, 203, 216, 0.09); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.action-log-change span, .action-log-change strong { display: block; overflow-wrap: anywhere; }
.action-log-change span { color: #718c92; font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.action-log-change strong { margin-top: 5px; color: #c5dadd; font-size: 10px; font-weight: 600; line-height: 1.45; }
.action-log-technical { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 9px; padding: 10px 11px; border-left: 2px solid rgba(53, 214, 232, 0.24); background: rgba(53, 214, 232, 0.035); }
.action-log-technical code { color: #89a8ae; font-size: 9px; overflow-wrap: anywhere; }
.action-log-technical small { color: #647f85; font-size: 8px; }
.action-log-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 22px; border-top: 1px solid rgba(151, 203, 216, 0.1); }
.action-log-pagination span { min-width: 120px; color: var(--access-muted); font-size: 10px; text-align: center; }
.action-log-pagination .secondary-button { min-height: 36px; }

:focus-visible { outline: 2px solid var(--access-cyan); outline-offset: 3px; }

@media (max-width: 880px) {
  .auth-layout { width: 100%; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .auth-card { width: min(510px, calc(100vw - 44px)); }
  .auth-story { min-height: 330px; padding: 28px 24px 34px; }
  .auth-story-copy { margin-top: 54px; }
  .auth-story h1 { font-size: clamp(38px, 11vw, 58px); }
  .auth-security-note { display: none; }
  .auth-panel { min-height: auto; padding: 44px 22px 64px; }
  .admin-header { display: grid; }
  .admin-header .access-brand { margin-bottom: 48px; }
  .admin-header .secondary-button { justify-self: start; grid-row: 1; }
  .admin-summary { grid-template-columns: 1fr; }
  .directory-head { align-items: stretch; flex-direction: column; }
  .access-search { width: 100%; }
  .action-log-filters { grid-template-columns: 1fr 1fr; }
  .action-log-search { grid-column: 1 / -1; }
  .action-log-refresh { width: 100%; }
  .member-row { grid-template-columns: 1fr; gap: 12px; }
  .role-control { justify-content: flex-start; }
  .control-topbar { grid-template-columns: 1fr auto; }
  .control-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .control-nav a { flex: 1; justify-content: center; }
  .control-hero { align-items: flex-start; flex-direction: column; padding-top: 52px; }
  .account-layout { grid-template-columns: 1fr; }
  .identity-card { position: static; }
}

@media (max-width: 540px) {
  .auth-story { min-height: 290px; }
  .auth-story-copy { margin-top: 36px; }
  .auth-story-copy > p:last-child { font-size: 14px; }
  .member-shell, .admin-shell { width: min(100% - 24px, 1160px); }
  .member-topbar { padding: 20px 0; }
  .member-card { margin: 12px auto 40px; }
  .member-status-grid { grid-template-columns: 1fr; }
  .admin-shell { padding-top: 24px; }
  .directory-head, .member-row { padding-left: 18px; padding-right: 18px; }
  .action-log-filters { grid-template-columns: 1fr; padding: 16px 18px; }
  .action-log-search { grid-column: auto; }
  .action-log-row { padding: 18px; }
  .action-log-row::before { left: 26px; }
  .action-log-row-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .action-log-detail-grid { grid-template-columns: 1fr; }
  .control-shell { width: min(100% - 24px, 1180px); padding-top: 16px; }
  .control-topbar { grid-template-columns: 1fr; gap: 14px; }
  .control-topbar > .secondary-button { justify-self: start; grid-row: 2; }
  .control-nav { grid-column: 1; grid-row: 3; }
  .control-nav a { padding: 0 11px; }
  .control-hero { padding-top: 42px; }
  .control-hero h1 { font-size: 44px; }
  .control-signal { width: 100%; min-width: 0; }
  .account-panel, .identity-card { padding: 22px 18px; }
  .account-password-grid { grid-template-columns: 1fr; }
  .account-field--wide { grid-column: auto; }
  .account-panel-actions { justify-content: stretch; }
  .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
