:root {
  --font-sans: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --surface-raised: #ffffff;
  --text: #172033;
  --text-muted: #647086;
  --text-soft: #8490a4;
  --border: #dfe4eb;
  --border-strong: #ccd3dd;
  --primary: #3459e6;
  --primary-hover: #2949c7;
  --primary-soft: #eef1ff;
  --positive: #138a5b;
  --positive-soft: #e7f7f0;
  --warning: #ba7213;
  --warning-soft: #fff4dc;
  --danger: #c23d4b;
  --danger-hover: #a82f3c;
  --danger-soft: #ffeaed;
  --sidebar: #101626;
  --sidebar-text: #f3f5fa;
  --sidebar-muted: #8994aa;
  --shadow-sm: 0 1px 2px rgb(19 33 68 / 5%);
  --shadow-md: 0 12px 30px rgb(19 33 68 / 9%);
  --shadow-lg: 0 30px 70px rgb(9 17 36 / 22%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --sidebar-width: 248px;
  --topbar-height: 68px;
}

html[data-theme="dark"] {
  --bg: #0f1420;
  --surface: #171d2a;
  --surface-muted: #111722;
  --surface-raised: #1b2231;
  --text: #edf0f7;
  --text-muted: #a0a9ba;
  --text-soft: #7d8799;
  --border: #2b3444;
  --border-strong: #3a4557;
  --primary: #7189ff;
  --primary-hover: #8b9eff;
  --primary-soft: #252e55;
  --positive: #4fc798;
  --positive-soft: #193d32;
  --warning: #e5aa51;
  --warning-soft: #49371e;
  --danger: #f17480;
  --danger-hover: #ff8d97;
  --danger-soft: #49262c;
  --sidebar: #0a0e17;
  --sidebar-text: #f3f5fa;
  --sidebar-muted: #8994aa;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 18%);
  --shadow-md: 0 14px 36px rgb(0 0 0 / 22%);
  --shadow-lg: 0 30px 80px rgb(0 0 0 / 42%);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #0f1420;
    --surface: #171d2a;
    --surface-muted: #111722;
    --surface-raised: #1b2231;
    --text: #edf0f7;
    --text-muted: #a0a9ba;
    --text-soft: #7d8799;
    --border: #2b3444;
    --border-strong: #3a4557;
    --primary: #7189ff;
    --primary-hover: #8b9eff;
    --primary-soft: #252e55;
    --positive: #4fc798;
    --positive-soft: #193d32;
    --warning: #e5aa51;
    --warning-soft: #49371e;
    --danger: #f17480;
    --danger-hover: #ff8d97;
    --danger-soft: #49262c;
    --sidebar: #0a0e17;
    --shadow-md: 0 14px 36px rgb(0 0 0 / 22%);
    --shadow-lg: 0 30px 80px rgb(0 0 0 / 42%);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 48%, transparent);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.muted {
  color: var(--text-muted);
}

.brand-mark {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #6e87ff 0%, #3459e6 60%, #2341ae 100%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 19px;
  box-shadow: 0 14px 34px rgb(39 70 190 / 35%);
  font-size: 29px;
  font-weight: 800;
}

.brand-mark-small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 1.05fr) minmax(410px, .95fr);
}

.brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: clamp(48px, 7vw, 110px);
  color: #eef2ff;
  background:
    radial-gradient(circle at 20% 10%, rgb(89 116 255 / 35%), transparent 33%),
    radial-gradient(circle at 95% 80%, rgb(60 98 230 / 23%), transparent 38%),
    #10172a;
  flex-direction: column;
  justify-content: center;
}

.brand-panel::before {
  position: absolute;
  right: 6%;
  bottom: -18%;
  width: 390px;
  height: 390px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgb(255 255 255 / 2.5%),
    0 0 0 120px rgb(255 255 255 / 1.5%);
  content: "";
}

.brand-panel .eyebrow {
  margin-top: 44px;
  color: #91a4ff;
}

.brand-panel h1 {
  z-index: 1;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.brand-panel > p:last-of-type {
  z-index: 1;
  max-width: 440px;
  margin: 28px 0 0;
  color: #aab4c9;
  font-size: 17px;
}

.brand-grid {
  position: absolute;
  right: 12%;
  bottom: 12%;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 12px);
}

.brand-grid span {
  width: 12px;
  height: 12px;
  background: #657df2;
  border-radius: 3px;
}

.brand-grid span:nth-child(2),
.brand-grid span:nth-child(3) {
  opacity: .35;
}

.auth-card {
  display: flex;
  width: min(420px, calc(100% - 48px));
  margin: auto;
  padding: 48px 0;
  flex-direction: column;
  justify-content: center;
}

.mobile-brand {
  display: none;
  margin-bottom: 42px;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.auth-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -.035em;
}

.auth-card > .muted {
  margin: 9px 0 34px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.45;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
  outline: 0;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 62px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 6px;
  padding: 6px 9px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 6px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
}

.field-help {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--primary) 20%, transparent);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  background: var(--surface-muted);
  border-color: var(--border-strong);
}

.button-ghost {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

.button-danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.danger-text {
  color: var(--danger);
}

.button-small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
}

.button-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.button.is-loading .button-spinner {
  display: inline-block;
}

.security-note {
  margin: 24px 0 0;
  color: var(--text-soft);
  text-align: center;
  font-size: 11px;
}

.auth-flow {
  width: 100%;
}

.auth-description {
  margin: 9px 0 34px;
}

.auth-switch {
  margin-top: 10px;
}

.setup-identity {
  display: flex;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
}

.setup-identity span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

.setup-qr-wrap {
  display: grid;
  margin-bottom: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  place-items: center;
}

.setup-qr {
  display: block;
  width: min(240px, 100%);
  height: auto;
  image-rendering: pixelated;
}

#setup-provisioning {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.app-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  padding: 20px 15px;
  color: var(--sidebar-text);
  background: var(--sidebar);
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  padding: 0 7px 23px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-brand > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-brand strong {
  font-size: 16px;
}

.sidebar-brand span {
  color: var(--sidebar-muted);
  font-size: 11px;
}

.sidebar-brand .brand-mark {
  color: #fff;
}

.icon-button.sidebar-close {
  display: none;
  margin-left: auto;
  color: var(--sidebar-text);
}

.primary-nav {
  margin-top: 22px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--sidebar-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgb(103 126 239 / 13%);
}

.nav-item.active {
  box-shadow: inset 3px 0 #7189ff;
}

.nav-icon {
  width: 21px;
  color: #8396f8;
  font-size: 20px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.admin-summary {
  display: flex;
  margin-bottom: 15px;
  padding: 0 5px;
  align-items: center;
  gap: 10px;
}

.admin-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-summary span:not(.avatar) {
  color: var(--sidebar-muted);
  font-size: 11px;
}

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.sidebar .button-ghost {
  color: #aab2c4;
  border-color: rgb(255 255 255 / 11%);
}

.sidebar .button-ghost:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 20%);
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: var(--topbar-height);
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(13px);
  align-items: center;
  justify-content: space-between;
}

.app-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-switcher label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.app-switcher select {
  width: min(260px, 45vw);
  height: 36px;
  padding-right: 30px;
  font-weight: 700;
}

.app-version {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.release-update-button {
  min-height: 36px;
  padding-inline: 13px;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgb(94 123 255 / 22%);
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  gap: 7px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  place-items: center;
  font-size: 18px;
}

.icon-button:hover {
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--border);
}

.menu-button {
  display: none;
}

.sidebar-scrim {
  display: none;
}

.content {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 30px 32px 45px;
}

.page-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-heading h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.035em;
}

.page-title-line,
.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-count {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.page-heading .muted {
  margin: 5px 0 0;
}

.metric-grid {
  display: grid;
  margin-bottom: 20px;
  gap: 13px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px 19px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

button.metric-card {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.metric-card:hover {
  border-color: var(--primary);
}

.metric-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  content: "";
  opacity: .7;
}

.metric-card > span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin: 6px 0 1px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.metric-card small {
  color: var(--text-soft);
  font-size: 10px;
}

.metric-positive::after {
  background: var(--positive);
}

.metric-new::after {
  background: #5b7cff;
}

.metric-warning::after {
  background: var(--warning);
}

.metric-expired::after {
  background: var(--danger);
}

.metric-neutral::after {
  background: var(--text-muted);
}

.management-grid {
  display: grid;
  height: max(520px, calc(100dvh - 335px));
  gap: 18px;
  grid-template-columns: minmax(330px, .78fr) minmax(540px, 1.55fr);
}

.management-grid > .panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  min-height: 76px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header .muted {
  font-size: 11px;
}

.search-form {
  display: flex;
  gap: 6px;
}

.search-form input {
  width: 160px;
  height: 36px;
}

.search-form .button {
  min-height: 36px;
}

.panel-state {
  padding: 30px 20px;
  color: var(--text-muted);
  text-align: center;
}

.user-list {
  overflow: auto;
  min-height: 0;
  max-height: none;
  flex: 1;
}

.user-card {
  display: flex;
  width: 100%;
  min-height: 77px;
  padding: 13px 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 11px;
  text-align: left;
}

.user-card:hover {
  background: var(--surface-muted);
}

.user-card.selected {
  background: var(--primary-soft);
  box-shadow: inset 3px 0 var(--primary);
}

.user-card-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.user-card-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.user-card-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-meta {
  display: flex;
  margin-top: 4px;
  color: var(--text-muted);
  gap: 7px;
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  padding: 2px 8px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status-active,
.status-approved,
.status-open {
  color: var(--positive);
  background: var(--positive-soft);
  border-color: color-mix(in srgb, var(--positive) 23%, transparent);
}

.status-pending {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 23%, transparent);
}

.status-suspended,
.status-blocked,
.status-revoked,
.status-closed,
.status-expired {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 22%, transparent);
}

.status-master {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
}

.status-setup_pending {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 23%, transparent);
}

.pagination {
  display: flex;
  min-height: 55px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-panel {
  overflow: hidden;
}

.detail-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.empty-state {
  display: grid;
  min-height: 0;
  flex: 1;
  padding: 40px;
  color: var(--text-muted);
  place-content: center;
  text-align: center;
}

.empty-state h2 {
  margin: 14px 0 4px;
  color: var(--text);
  font-size: 18px;
}

.empty-state p {
  max-width: 330px;
  margin: 0;
}

.empty-symbol {
  color: var(--primary);
  font-size: 42px;
}

.detail-header {
  display: flex;
  min-height: 93px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.identity > div {
  min-width: 0;
}

.avatar-large {
  width: 47px;
  height: 47px;
  font-size: 16px;
}

.identity-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.identity-title h2 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
}

.identity p {
  overflow: hidden;
  margin: 3px 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.detail-facts {
  display: grid;
  padding: 15px 22px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-facts div {
  min-width: 0;
}

.detail-facts span,
.detail-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-facts span {
  color: var(--text-muted);
  font-size: 10px;
}

.detail-facts strong {
  margin-top: 3px;
  font-size: 12px;
}

.tabs-wrap {
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 19px;
  scrollbar-width: none;
}

.tab {
  min-height: 49px;
  padding: 0 2px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  min-height: 0;
  max-height: none;
  padding: 21px 22px 25px;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.section-heading {
  display: flex;
  margin: 0 0 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h3 {
  margin: 0;
  font-size: 14px;
}

.section-heading span {
  color: var(--text-muted);
  font-size: 11px;
}

.overview-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
}

.registration-controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.registration-controls h3,
.registration-controls p {
  margin: 0;
}

.registration-controls select,
.registration-controls input {
  width: 100%;
}

.recovery-search-results {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  gap: 6px;
}

.recovery-user-option {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
}

.recovery-user-option:hover,
.recovery-user-option:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.recovery-user-option span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recovery-search-status {
  min-height: 18px;
}

.registration-controls .dialog-actions {
  display: flex;
  gap: 10px;
}

.period-presets {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 8px;
}

.period-preset-status {
  margin-left: 10px;
  color: var(--primary);
  font-size: 12px;
}

.period-end-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.period-preset {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 6px;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}

.period-preset:hover,
.period-preset:focus-visible {
  color: var(--text);
  border-color: var(--primary);
}

.period-adjustment-actions {
  display: inline-flex;
  gap: 5px;
  margin-right: 4px;
}

.period-mode {
  white-space: nowrap;
  min-height: 30px;
  padding: 4px 6px;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}


.period-mode.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.info-list {
  display: grid;
  margin: 0;
  gap: 10px;
}

.info-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 105px minmax(0, 1fr);
}

.info-row dt {
  color: var(--text-muted);
}

.info-row dd {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  text-align: right;
}

.data-list {
  display: grid;
  gap: 9px;
}

.data-card {
  display: flex;
  padding: 13px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.data-card-main {
  min-width: 0;
}

.data-card-title {
  display: flex;
  margin-bottom: 4px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.data-card-title strong {
  overflow-wrap: anywhere;
}

.data-card-meta {
  display: flex;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 5px 13px;
  font-size: 11px;
}

.data-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.empty-inline,
.error-inline,
.loading-inline {
  padding: 38px 18px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
}

.error-inline {
  color: var(--danger);
  background: var(--danger-soft);
}

.settings-summary {
  display: grid;
  margin-bottom: 17px;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-summary div {
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.settings-summary span,
.settings-summary strong {
  display: block;
}

.settings-summary span {
  color: var(--text-muted);
  font-size: 10px;
}

.settings-summary strong {
  margin-top: 3px;
}

.settings-editor {
  display: flex;
  min-height: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  margin: 0;
}

.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-editor-grid {
  display: grid;
  min-height: 0;
  height: calc(100% - 47px);
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.settings-editor-tabs {
  display: flex;
  margin: 0 0 13px;
  gap: 7px;
  overflow-x: auto;
}

.settings-editor-tab {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
}

.settings-editor-tab:hover,
.settings-editor-tab.active {
  color: var(--text-primary);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.settings-json-field {
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-json-field textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 10px;
  resize: none;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#panel-settings {
  display: flex;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  overflow: hidden;
}

#panel-settings {
  position: relative;
  padding: 0;
}

#panel-settings .settings-editor {
  position: absolute;
  inset: 21px 22px 20px;
  height: auto;
}

#panel-settings .settings-editor-grid {
  height: auto;
}

.settings-editor-actions {
  position: sticky;
  z-index: 2;
  top: -21px;
  justify-content: space-between;
  margin: 0 -1px 14px;
  padding: 12px 1px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.settings-copy-controls {
  display: flex;
  gap: 8px;
}

.settings-copy-controls select {
  min-width: 180px;
}

.compact-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.compact-table th,
.compact-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.compact-table th {
  color: var(--text-muted);
  background: var(--surface-muted);
  font-weight: 700;
}

.compact-table tr:last-child td {
  border-bottom: 0;
}

.audit-list {
  position: relative;
  display: grid;
  gap: 0;
}

.audit-item {
  position: relative;
  display: grid;
  min-height: 65px;
  padding: 0 0 18px 29px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
}

.audit-item::before {
  position: absolute;
  top: 6px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border: 3px solid var(--primary-soft);
  border-radius: 50%;
  content: "";
}

.audit-item::after {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--border);
  content: "";
}

.audit-item:last-child::after {
  display: none;
}

.audit-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.audit-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.audit-item time {
  color: var(--text-soft);
  font-size: 10px;
  white-space: nowrap;
}

.room-policy-workspace {
  overflow: hidden;
}

.room-policy-header {
  min-height: 68px;
}

#room-policy-summary {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.room-policy-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.room-policy-actions input {
  width: min(330px, 32vw);
}

.policy-warning {
  margin: 0;
  padding: 12px 18px;
  color: var(--warning);
  background: var(--warning-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.room-policy-list {
  display: grid;
  padding: 18px;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-policy-row {
  display: flex;
  min-width: 0;
  padding: 13px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.room-policy-row:has(input:disabled) {
  cursor: default;
}

.room-policy-row:focus-within {
  border-color: var(--primary);
}

.room-policy-identity {
  min-width: 0;
}

.room-policy-identity strong,
.room-policy-identity code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-policy-identity strong {
  font-size: 13px;
}

.room-policy-identity code {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.room-policy-control {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
}

.room-policy-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--positive);
}

.room-policy-state {
  min-width: 38px;
  color: var(--positive);
  font-size: 11px;
  font-weight: 700;
}

.room-policy-state.is-disabled {
  color: var(--danger);
}

.dialog {
  width: min(590px, calc(100vw - 30px));
  padding: 0;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgb(6 12 25 / 58%);
  backdrop-filter: blur(3px);
}

.dialog-small {
  width: min(460px, calc(100vw - 30px));
}

.release-kind-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-kind-panel {
  min-width: 0;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.release-kind-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.release-upload-actions {
  display: flex;
  gap: 7px;
}

.release-selection {
  min-height: 18px;
  margin: -4px 0 10px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-kind-heading h3,
.release-kind-heading p {
  margin: 0;
}

.release-kind-heading h3 {
  font-size: 14px;
}

.release-kind-heading p,
.release-empty,
.release-row small {
  color: var(--text-muted);
  font-size: 11px;
}

.release-list {
  display: grid;
  gap: 8px;
}

.release-empty {
  margin: 0;
  padding: 11px 0;
}

.release-row {
  display: grid;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 5px 8px;
  grid-template-columns: 1fr auto;
}

.release-row small {
  overflow: hidden;
  grid-column: 1 / -1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-row .button {
  grid-row: 1;
  grid-column: 2;
}

.release-status {
  display: inline-flex;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  justify-self: start;
}

.release-status-current {
  color: var(--positive);
  background: var(--positive-soft);
}

.release-status-draft {
  color: var(--warning);
  background: var(--warning-soft);
}

.release-status-deprecated {
  color: var(--text-muted);
  background: var(--surface-raised);
}

.admins-workspace {
  overflow: hidden;
}

.admins-header {
  min-height: 82px;
}

.admin-account-list {
  display: grid;
  padding: 18px;
  gap: 13px;
}

.admin-account-card {
  padding: 17px 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-account-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-account-title strong {
  font-size: 15px;
}

.admin-account-header .identity p {
  margin: 3px 0 0;
}

.admin-account-meta {
  display: grid;
  margin: 15px 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-account-meta > div {
  min-width: 0;
}

.admin-account-meta span,
.admin-account-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-meta span {
  color: var(--text-muted);
  font-size: 10px;
}

.admin-account-meta strong {
  margin-top: 2px;
  font-size: 11px;
}

.admin-access-summary > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
}

.role-chip-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.role-chip {
  display: inline-flex;
  min-height: 27px;
  padding: 3px 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}

.dialog-identity {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-weight: 650;
}

.access-fieldset {
  min-width: 0;
  margin: 4px 0 18px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.access-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.access-fieldset > .field-help {
  margin: -2px 0 12px;
}

.access-list {
  display: grid;
  gap: 8px;
}

.access-row {
  display: grid;
  padding: 10px 11px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 10px;
  grid-template-columns: auto minmax(120px, 1fr) minmax(145px, .65fr);
}

.access-check {
  width: 18px;
  height: 18px;
  margin: 0;
}

.access-row label {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  cursor: pointer;
}

.access-row label strong,
.access-row label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-row label span {
  color: var(--text-muted);
  font-size: 10px;
}

.access-row select {
  height: 36px;
}

.setup-credential-field {
  margin-top: 18px;
}

#setup-credential-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.credential-status {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.credential-status-success {
  color: var(--positive);
  background: var(--positive-soft);
}

.action-review-list {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.action-review-item {
  display: grid;
  padding: 11px 13px;
  background: var(--surface-muted);
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
}

.action-review-item + .action-review-item {
  border-top: 1px solid var(--border);
}

.action-review-item span {
  color: var(--text-muted);
  font-size: 11px;
}

.action-review-item strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dialog-header,
.dialog-footer {
  display: flex;
  padding: 18px 21px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dialog-header {
  border-bottom: 1px solid var(--border);
}

.dialog-header h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-body {
  padding: 21px;
}

.dialog-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  justify-content: flex-end;
}

.form-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .field:first-child {
  grid-column: 1 / -1;
}

.form-grid .field-span-2 {
  grid-column: 1 / -1;
}

.feature-permission-fieldset {
  min-width: 0;
  margin: 5px 0 18px;
  padding: 14px 15px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.feature-permission-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.feature-permission-control {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.feature-permission-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--warning);
}

#admin-create-form .form-grid .field:first-child,
#admin-edit-form .form-grid .field:first-child {
  grid-column: auto;
}

.warning-box {
  margin: 18px 0 0;
  padding: 10px 12px;
  color: var(--warning);
  background: var(--warning-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 9px;
}

.toast {
  display: flex;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toast-in .2s ease-out;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-success {
  border-left-color: var(--positive);
}

.toast button {
  padding: 3px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
}

.global-loading {
  position: fixed;
  z-index: 500;
  top: 14px;
  left: 50%;
  width: 34px;
  height: 34px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

.global-loading span {
  display: block;
  width: 16px;
  height: 16px;
  margin: 8px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1160px) {
  .management-grid {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .auth-layout {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  .auth-card {
    min-height: 100vh;
  }

  .app-layout {
    display: block;
  }

  .workspace {
    grid-column: auto;
  }

  .sidebar {
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .app-layout.sidebar-visible .sidebar {
    transform: translateX(0);
  }

  .icon-button.sidebar-close,
  .menu-button {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    visibility: hidden;
    padding: 0;
    background: rgb(4 9 18 / 45%);
    border: 0;
    opacity: 0;
    transition: opacity .2s, visibility .2s;
  }

  .app-layout.sidebar-visible .sidebar-scrim {
    visibility: visible;
    opacity: 1;
  }

  .topbar {
    padding: 0 18px;
  }

  .management-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .user-list {
    max-height: 380px;
  }

  .detail-panel,
  .empty-state {
    min-height: 520px;
  }

  .room-policy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .auth-card {
    width: min(100% - 36px, 420px);
  }

  .content {
    padding: 22px 15px 35px;
  }

  .app-switcher label {
    display: none;
  }

  .app-switcher select {
    width: min(235px, calc(100vw - 140px));
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading .button {
    min-height: 36px;
    padding: 0 10px;
  }

  .metric-grid {
    gap: 9px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card strong {
    font-size: 21px;
  }

  .list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form input {
    width: 100%;
  }

  .detail-header {
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-header .button {
    width: 100%;
  }

  .detail-facts,
  .tabs-wrap,
  .tab-panel {
    padding-right: 17px;
    padding-left: 17px;
  }

  .overview-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .field:first-child {
    grid-column: auto;
  }

  .settings-summary {
    grid-template-columns: 1fr;
  }

  .data-card {
    flex-direction: column;
  }

  .data-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .audit-item {
    grid-template-columns: 1fr;
  }

  .admins-header,
  .admin-account-header,
  .room-policy-header {
    align-items: stretch;
    flex-direction: column;
  }

  .room-policy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .room-policy-actions input,
  .room-policy-actions .button {
    width: 100%;
  }

  .admin-account-header .data-card-actions,
  .admins-header .button {
    width: 100%;
  }

  .admin-account-header .data-card-actions .button {
    flex: 1;
  }

  .admin-account-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .access-row select {
    grid-column: 2;
  }
}

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