:root {
  --ink: #0b1522;
  --ink-soft: #182536;
  --paper: #f3f0e9;
  --paper-strong: #fbfaf7;
  --line: #d8d3c9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #6e736f;
  --muted-light: #a9b0b7;
  --blue: #2457ff;
  --blue-dark: #1742d2;
  --green: #13a56b;
  --red: #cf493f;
  --amber: #b87618;
  --shadow: 0 24px 70px rgba(11, 21, 34, 0.12);
  --sidebar-width: 270px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .2em;
}
.wordmark-light { color: #fff; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
}
.eyebrow-light { color: #9eb2ff; }

.login-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: white;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.login-screen::before {
  width: min(58vw, 870px);
  aspect-ratio: 1;
  left: -22vw;
  bottom: -48%;
  border: 1px solid rgba(158, 178, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(158, 178, 255, .025), 0 0 0 220px rgba(158, 178, 255, .018);
}
.login-screen::after {
  width: 40%;
  height: 1px;
  right: 0;
  top: 26%;
  background: var(--line-dark);
}
.login-header,
.login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 72px);
}
.system-status,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.system-status { color: #c6cbd0; }
.system-status i,
.live-pill i,
.metric-card p i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 165, 107, .13);
}
.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(48px, 9vw, 140px);
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 50px clamp(20px, 5vw, 72px);
}
.login-editorial h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.3vw, 92px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.055em;
}
.login-intro {
  max-width: 520px;
  margin: 28px 0 0;
  color: #b7bec5;
  font-size: 17px;
  line-height: 1.75;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 600px;
  margin-top: 52px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-row div { padding: 18px 12px 18px 0; }
.trust-row strong,
.trust-row span { display: block; }
.trust-row strong { color: #7288d8; font-family: Georgia, serif; font-size: 14px; font-weight: 400; }
.trust-row span { margin-top: 4px; color: #d6dadd; font-size: 12px; }

.login-panel {
  color: var(--ink);
  background: var(--paper-strong);
  padding: clamp(30px, 4vw, 52px);
  box-shadow: 18px 18px 0 rgba(36, 87, 255, .18), var(--shadow);
}
.login-panel-heading h2,
.section-heading h2,
.section-toolbar h2,
.dialog-heading h2,
.secret-dialog h2,
.access-surface h2,
.member-welcome h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.025em;
}
.login-panel-heading > p:last-child { margin: 10px 0 30px; color: var(--muted); }
.stack-form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span:first-child,
.select-field > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.field input,
.field select,
.search-field,
.select-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input,
.field select { padding: 12px 14px; }
.field input:focus,
.field select:focus,
.search-field:focus-within,
.select-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 87, 255, .12); }
.field input::placeholder { color: #a8aaa7; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); }

.text-button,
.text-link {
  min-height: 44px;
  border: 0;
  padding: 6px;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { color: white; background: var(--blue); border-color: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { color: var(--ink); background: white; border-color: var(--line); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-large { min-height: 54px; width: 100%; justify-content: space-between; padding-inline: 19px; }
.button-full { width: 100%; }
.form-message { margin: 0; padding: 11px 13px; font-size: 12px; }
.form-message-error { color: #8e2420; background: #fbe9e7; border-left: 3px solid var(--red); }
.login-footnote { margin: 22px 0 0; display: flex; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-footnote span { color: var(--blue); font-size: 8px; margin-top: 4px; }
.login-footer { color: #7f8992; font-size: 11px; letter-spacing: .04em; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
  color: white;
  background: var(--ink);
  border-right: 1px solid #263342;
}
.sidebar-top { padding: 0 8px 30px; border-bottom: 1px solid var(--line-dark); }
.console-label { display: block; margin: 14px 0 0 45px; color: #667381; font-size: 9px; letter-spacing: .16em; }
.primary-nav { display: grid; gap: 5px; margin-top: 28px; }
.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-left: 2px solid transparent;
  padding: 11px 14px;
  color: #9ca6af;
  background: transparent;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.nav-item span { width: 18px; color: #667484; text-align: center; font-size: 17px; }
.nav-item:hover { color: white; background: rgba(255, 255, 255, .045); }
.nav-item.is-active { color: white; background: rgba(36, 87, 255, .18); border-left-color: #6f91ff; }
.nav-item.is-active span { color: #9eb2ff; }
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
}
.sidebar-user { min-width: 0; display: flex; align-items: center; gap: 11px; }
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user strong,
.sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { max-width: 130px; font-size: 12px; }
.sidebar-user small { margin-top: 2px; color: #768391; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--blue);
  font-family: Georgia, serif;
  font-size: 16px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 19px;
}
.icon-button:hover { border-color: var(--blue); color: var(--blue); }
.icon-button-dark { color: #8995a0; border-color: var(--line-dark); }

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 clamp(24px, 4vw, 62px) 64px;
}
.topbar {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.035em;
}
.live-pill { min-height: 36px; padding: 8px 12px; color: #376e58; background: #e6f2eb; font-size: 11px; }
.mobile-menu-button { display: none; }
.view { padding-top: 34px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
}
.metric-card-ink { color: white; background: var(--ink-soft); border-color: var(--ink-soft); }
.metric-card-alert { border-top: 3px solid var(--red); }
.metric-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.metric-top span { font-size: 13px; font-weight: 700; }
.metric-top small { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.metric-card-ink .metric-top small { color: #72808d; }
.metric-card > strong { margin-top: auto; font-family: Georgia, serif; font-size: 54px; line-height: 1; font-weight: 400; letter-spacing: -.045em; }
.metric-card p { margin: 13px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.metric-card-ink p { color: #9aa5ae; }
.metric-card-alert > strong { color: var(--red); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; margin-top: 18px; }
.surface { background: var(--paper-strong); border: 1px solid var(--line); }
.activity-surface, .access-surface { padding: clamp(22px, 3vw, 32px); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-heading h2, .section-toolbar h2 { font-size: 27px; }
.activity-list { margin-top: 24px; }
.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border-top: 1px solid var(--line);
}
.activity-status { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(19, 165, 107, .1); }
.activity-status.is-failure { background: var(--red); box-shadow: 0 0 0 5px rgba(207, 73, 63, .09); }
.activity-copy { min-width: 0; }
.activity-copy strong, .activity-copy span { display: block; }
.activity-copy strong { font-size: 13px; }
.activity-copy span { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.access-surface { color: white; background: var(--blue); border-color: var(--blue); }
.access-surface .eyebrow { color: #b7c6ff; }
.access-surface h2 { max-width: 320px; font-size: 34px; }
.access-surface > p:not(.eyebrow) { max-width: 380px; margin: 16px 0 0; color: #d8e0ff; font-size: 13px; line-height: 1.7; }
.access-diagram { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 8px; margin-top: 38px; }
.access-diagram > span { min-width: 0; }
.access-diagram > span:not(.access-core) { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .25); }
.access-diagram b, .access-diagram small { display: block; }
.access-diagram b { font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.access-diagram small { margin-top: 4px; overflow: hidden; color: #b9c8ff; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.access-core { display: grid; place-items: center; width: 46px; height: 46px; color: var(--blue); background: white; font-family: Georgia, serif; font-size: 22px; }
.member-welcome { max-width: 780px; padding: clamp(30px, 6vw, 80px) 0; }
.member-welcome h2 { font-size: clamp(40px, 6vw, 70px); }
.member-welcome > p:last-child { max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.8; }

.section-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-toolbar > div > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.table-surface { overflow: hidden; }
.table-tools { min-height: 74px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.search-field { max-width: 330px; display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.search-field span { color: var(--muted); font-size: 18px; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.select-field { display: grid; grid-template-columns: auto minmax(100px, 1fr); align-items: center; gap: 9px; margin-left: auto; }
.select-field select { min-height: 44px; padding: 8px 32px 8px 11px; }
.select-field-light { margin-left: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid #e5e1d9; text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f7f5f0; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8f6f1; }
.table-person { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.table-person .avatar { width: 34px; height: 34px; font-size: 13px; }
.table-person strong, .table-person small { display: block; }
.table-person strong { font-size: 12px; }
.table-person small { margin-top: 2px; color: var(--muted); }
.status-badge, .role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.status-active { color: #27684d; background: #e5f2eb; }
.status-active::before { background: var(--green); }
.status-suspended { color: #8a3e37; background: #f7e8e5; }
.status-suspended::before { background: var(--red); }
.role-badge { color: #4d5863; background: #ebe9e3; }
.role-owner { color: #2143ad; background: #e5eaff; }
.role-admin { color: #77551d; background: #f5ecd9; }
.row-action { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.muted-cell { color: var(--muted); }
.ua-cell { max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 46px 20px; color: var(--muted); text-align: center; }
.pagination { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination > div { display: flex; gap: 8px; }

.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.session-card { min-height: 230px; display: flex; flex-direction: column; padding: 22px; }
.session-card-top { display: flex; align-items: center; gap: 12px; }
.session-card-top strong, .session-card-top small { display: block; }
.session-card-top small { margin-top: 2px; color: var(--muted); }
.session-live { margin-left: auto; align-self: start; color: var(--green); font-size: 10px; font-weight: 700; }
.session-details { display: grid; gap: 11px; margin: 24px 0 0; }
.session-details div { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.session-details dt { color: var(--muted); font-size: 10px; }
.session-details dd { margin: 0; max-width: 68%; overflow: hidden; font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.security-card { min-height: 310px; display: flex; flex-direction: column; padding: 28px; }
.security-index { color: var(--blue); font-family: Georgia, serif; font-size: 14px; }
.security-card h3 { margin: auto 0 12px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.2; }
.security-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.security-state { align-self: start; margin-top: 22px; padding: 5px 8px; font-size: 10px; font-weight: 700; }
.security-state-good { color: #27684d; background: #e5f2eb; }

.dialog {
  width: min(92vw, 530px);
  max-height: min(88vh, 800px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.dialog::backdrop { background: rgba(5, 13, 22, .72); backdrop-filter: blur(3px); }
.dialog-card { max-height: min(88vh, 800px); overflow-y: auto; padding: clamp(24px, 5vw, 38px); background: var(--paper-strong); box-shadow: var(--shadow); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-heading h2, .secret-dialog h2 { font-size: 29px; }
.dialog-intro { margin: 12px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.dialog-card > .field + .field { margin-top: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-handle { margin: 5px 0 22px; color: var(--blue); font-size: 13px; font-weight: 700; }
.management-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.management-button { min-height: 92px; padding: 13px; border: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.management-button:hover { border-color: var(--blue); }
.management-button strong, .management-button span { display: block; }
.management-button strong { font-size: 12px; }
.management-button span { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.secret-dialog { text-align: center; }
.secret-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 24px; color: white; background: var(--green); font-size: 22px; }
.secret-value { display: flex; align-items: stretch; margin: 22px 0 16px; border: 1px solid var(--line); background: white; }
.secret-value code { min-width: 0; flex: 1; padding: 15px; overflow-x: auto; color: var(--ink); font-size: 15px; text-align: left; white-space: nowrap; }
.secret-value .button { border-width: 0 0 0 1px; }
.secret-warning { margin: 0 0 24px; color: var(--red); font-size: 11px; line-height: 1.6; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; pointer-events: none; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 14px 16px; color: white; background: var(--ink); border-left: 3px solid var(--green); box-shadow: var(--shadow); font-size: 12px; }
.toast.is-error { border-left-color: var(--red); }

@media (max-width: 1180px) {
  :root { --sidebar-width: 236px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .session-grid, .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .login-editorial h1 { font-size: clamp(46px, 11vw, 76px); }
  .login-panel { max-width: 540px; width: 100%; }
  .trust-row { margin-top: 35px; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .25); }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu-button { display: inline-grid; }
}

@media (max-width: 640px) {
  .login-header, .login-footer { padding: 20px; }
  .login-header .system-status { display: none; }
  .login-layout { padding: 34px 20px 54px; }
  .login-editorial h1 { font-size: clamp(42px, 13vw, 58px); }
  .login-intro { margin-top: 20px; font-size: 15px; }
  .trust-row { grid-template-columns: 1fr; border-bottom: 0; }
  .trust-row div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .trust-row span { margin-top: 0; }
  .login-panel { padding: 27px 22px; box-shadow: 9px 9px 0 rgba(36, 87, 255, .2); }
  .login-footer { display: none; }
  .main-content { padding: 0 17px 48px; }
  .topbar { min-height: 108px; }
  .topbar h1 { font-size: 29px; }
  .live-pill { display: none; }
  .view { padding-top: 24px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 158px; padding: 17px; }
  .metric-card > strong { font-size: 43px; }
  .metric-top { display: block; }
  .metric-top small { display: none; }
  .overview-grid { gap: 10px; margin-top: 10px; }
  .activity-surface, .access-surface { padding: 20px; }
  .section-heading { align-items: center; }
  .section-heading h2, .section-toolbar h2 { font-size: 24px; }
  .activity-item { grid-template-columns: auto minmax(0, 1fr); }
  .activity-time { display: none; }
  .access-diagram { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .section-toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .section-toolbar > .button { width: 100%; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; }
  .select-field { width: 100%; margin-left: 0; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
  .session-grid, .security-grid { grid-template-columns: 1fr; }
  .security-card { min-height: 250px; }
  .field-row, .management-actions { grid-template-columns: 1fr; }
  .dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .dialog-card { max-height: calc(100svh - 24px); }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
