:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-muted: #eef1ef;
  --ink: #151a17;
  --muted: #69716c;
  --line: #dce1de;
  --green: #16784a;
  --green-dark: #0e5d38;
  --green-soft: #e4f4eb;
  --blue: #2367a6;
  --blue-soft: #e8f1fa;
  --amber: #a25b06;
  --amber-soft: #fff2d7;
  --red: #b42318;
  --red-soft: #feeceb;
  --shadow: 0 18px 50px rgba(20, 31, 24, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 103, 166, 0.25);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.spin {
  animation: spin 0.85s linear infinite;
}

.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(420px, 54%) minmax(360px, 46%);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}

.auth-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
}

.auth-inner {
  width: min(100%, 420px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--green);
  color: #ffffff;
}

.brand-mark .icon {
  width: 18px;
  height: 18px;
}

.auth-heading {
  margin-top: 72px;
}

.auth-heading h1,
.view-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 750;
}

.auth-heading p,
.view-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 7px;
  background: var(--surface-muted);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(25, 35, 29, 0.11);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: #39423d;
  font-size: 13px;
  font-weight: 680;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:hover {
  border-color: #b9c2bd;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 103, 166, 0.1);
  outline: 0;
}

.field input::placeholder {
  color: #9aa19d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.button-primary {
  background: var(--green);
  color: #ffffff;
}

.button-primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover:not(:disabled) {
  background: var(--surface-muted);
}

.button-passkey {
  border-color: #202523;
  background: #202523;
  color: #ffffff;
}

.button-passkey:hover:not(:disabled) {
  background: #050605;
}

.button-full {
  width: 100%;
  min-height: 47px;
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #929994;
  font-size: 12px;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1c241f;
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 12, 9, 0.72));
  content: "";
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-caption {
  position: absolute;
  z-index: 1;
  right: 36px;
  bottom: 36px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  background: rgba(16, 21, 18, 0.52);
  backdrop-filter: blur(10px);
}

.visual-caption div {
  display: grid;
  gap: 4px;
}

.visual-caption strong {
  font-size: 16px;
}

.visual-caption span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 244px;
  padding: 24px 18px 18px;
  border-right: 1px solid #282e2a;
  background: #101412;
  color: #ffffff;
}

.sidebar-brand {
  padding: 0 8px;
}

.primary-nav {
  display: grid;
  gap: 5px;
  margin-top: 38px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #abb3ae;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.nav-item:hover {
  background: #1b211d;
  color: #ffffff;
}

.nav-item.is-active {
  background: #23352b;
  color: #a8ebc7;
}

.account-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  padding: 9px;
  border: 1px solid #2b322e;
  border-radius: 7px;
  background: #181d1a;
  color: #ffffff;
  text-align: left;
}

.account-control:hover {
  border-color: #47504a;
}

.account-control > .icon {
  width: 17px;
  color: #909994;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 780;
}

.account-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy small {
  color: #909994;
  font-size: 11px;
}

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

.mobile-header,
.mobile-nav {
  display: none;
}

.view-container {
  width: 100%;
}

.view {
  width: min(100%, 1120px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 58px 44px 80px;
}

.view-header {
  margin-bottom: 34px;
}

.view-header h1 {
  margin-top: 6px;
  font-size: 30px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.centered-header {
  text-align: center;
}

.door-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 58px;
}

.door-view .view-header {
  margin-bottom: 34px;
}

.door-control {
  --ring-color: #d9dfdb;
  --ring-glow: rgba(21, 31, 25, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 270px;
}

.door-ring {
  position: absolute;
  inset: 0;
  border: 12px solid var(--ring-color);
  border-radius: 50%;
  box-shadow: 0 0 0 9px var(--ring-glow);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.door-button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 210px;
  height: 210px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 10px 0 var(--green-dark), 0 18px 30px rgba(15, 58, 36, 0.16);
  color: #ffffff;
  font-size: 23px;
  font-weight: 760;
  transform: translateY(-4px);
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}

.door-button:hover:not(:disabled) {
  background: #198553;
}

.door-button:active:not(:disabled) {
  box-shadow: 0 3px 0 var(--green-dark), 0 8px 16px rgba(15, 58, 36, 0.12);
  transform: translateY(4px);
}

.door-button-icon .icon {
  width: 46px;
  height: 46px;
  stroke-width: 2.4;
}

.state-loading {
  --ring-color: var(--blue);
  --ring-glow: rgba(35, 103, 166, 0.14);
}

.state-loading .door-button {
  background: var(--blue);
  box-shadow: 0 10px 0 #174c7d, 0 18px 30px rgba(23, 76, 125, 0.15);
}

.state-success {
  --ring-color: #1c9a60;
  --ring-glow: rgba(28, 154, 96, 0.17);
  animation: pop 0.4s ease;
}

.state-error {
  --ring-color: var(--red);
  --ring-glow: rgba(180, 35, 24, 0.14);
  animation: shake 0.4s ease;
}

.state-error .door-button {
  background: var(--red);
  box-shadow: 0 10px 0 #801b14, 0 18px 30px rgba(128, 27, 20, 0.14);
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 12px;
}

.security-note .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(25, 35, 29, 0.04);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.section-title h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 730;
}

.section-title > span {
  color: var(--muted);
  font-size: 12px;
}

.section-title-action > div {
  display: grid;
  gap: 4px;
}

.section-title-action > div > span {
  color: var(--muted);
  font-size: 12px;
}

.security-stack {
  display: grid;
  gap: 20px;
}

.password-content {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(320px, 1.2fr);
  gap: 34px;
  padding: 24px 20px;
}

.security-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.security-copy > div {
  display: grid;
  gap: 6px;
}

.security-copy strong {
  font-size: 14px;
}

.security-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.password-icon {
  background: var(--green-soft);
  color: var(--green);
}

.security-form {
  display: grid;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.compact-empty {
  min-height: 190px;
}

.proxy-form {
  display: grid;
  gap: 22px;
  padding: 22px 20px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.toggle-row > span {
  display: grid;
  gap: 5px;
}

.toggle-row strong {
  font-size: 14px;
}

.toggle-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toggle-row input {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #b8beba;
  transition: background-color 0.15s;
}

.toggle-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 30, 24, 0.22);
  content: "";
  transition: transform 0.15s;
}

.toggle-row input:checked {
  background: var(--green);
}

.toggle-row input:checked::after {
  transform: translateX(20px);
}

.proxy-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px;
  gap: 16px;
}

.proxy-grid .field:nth-child(3),
.proxy-grid .field:nth-child(4) {
  grid-column: span 1;
}

.proxy-result {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.proxy-result .icon {
  width: 17px;
  height: 17px;
}

.proxy-result.is-testing {
  border-color: #b8d3ea;
  background: var(--blue-soft);
  color: var(--blue);
}

.proxy-result.is-success {
  border-color: #add8c0;
  background: var(--green-soft);
  color: var(--green-dark);
}

.proxy-result.is-error {
  border-color: #f0b3af;
  background: var(--red-soft);
  color: var(--red);
}

.proxy-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.item-list,
.user-list {
  display: grid;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child,
.user-row:last-child {
  border-bottom: 0;
}

.item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
}

.item-copy,
.user-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
}

.item-copy strong,
.user-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-copy span,
.user-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}

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

.icon-button.danger:hover {
  border-color: #f0b3af;
  background: var(--red-soft);
  color: var(--red);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: #909a94;
}

.empty-state strong {
  color: var(--ink);
  font-size: 14px;
}

.empty-state span {
  margin-top: 7px;
  font-size: 12px;
}

.metric {
  display: grid;
  min-width: 76px;
  padding: 9px 13px;
  border-left: 3px solid var(--green);
  background: var(--surface);
}

.metric strong {
  font-size: 22px;
}

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

.pending-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #efcf93;
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
}

.pending-banner .icon {
  width: 18px;
  height: 18px;
}

.user-row {
  display: grid;
  grid-template-columns: 38px minmax(180px, 1fr) 72px 106px minmax(78px, auto);
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: #34433b;
}

.user-copy strong small {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.status-active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-disabled {
  background: var(--red-soft);
  color: var(--red);
}

.select {
  height: 34px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid #303833;
  border-radius: 7px;
  background: #171c19;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  animation: toast-in 0.2s ease;
}

.toast-success {
  border-color: #236f49;
}

.toast-error {
  border-color: #8e2a22;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: minmax(360px, 58%) minmax(280px, 42%);
  }

  .auth-pane {
    padding: 34px;
  }

  .sidebar {
    width: 210px;
  }

  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .view {
    padding-right: 28px;
    padding-left: 28px;
  }

  .user-row {
    grid-template-columns: 36px minmax(140px, 1fr) 70px minmax(78px, auto);
  }

  .password-content {
    grid-template-columns: 1fr;
  }

  .proxy-grid {
    grid-template-columns: minmax(180px, 1fr) 130px;
  }

  .role-select {
    display: none;
  }
}

@media (max-width: 680px) {
  .auth-layout {
    display: block;
    min-height: 100dvh;
  }

  .auth-pane {
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  }

  .auth-inner {
    width: 100%;
  }

  .auth-heading {
    margin-top: 54px;
  }

  .auth-heading h1 {
    font-size: 30px;
  }

  .auth-visual {
    display: none;
  }

  .app-shell {
    display: block;
    padding-bottom: calc(67px + env(safe-area-inset-bottom));
  }

  .sidebar {
    display: none;
  }

  .workspace {
    min-height: 100dvh;
  }

  .mobile-header {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 246, 245, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-header .brand-lockup {
    font-size: 14px;
  }

  .mobile-header .brand-mark {
    width: 30px;
    height: 30px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    min-height: calc(61px + env(safe-area-inset-bottom));
    padding: 5px 10px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 51px;
    padding: 0 4px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
  }

  .mobile-nav .nav-item:hover,
  .mobile-nav .nav-item.is-active {
    background: transparent;
    color: var(--green);
  }

  .mobile-nav .nav-item .icon {
    width: 21px;
    height: 21px;
  }

  .view {
    min-height: calc(100dvh - 128px);
    padding: 30px 16px 38px;
  }

  .door-view {
    justify-content: center;
    padding-top: 18px;
  }

  .view-header h1 {
    font-size: 27px;
  }

  .split-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .split-header .button {
    min-width: 42px;
    padding: 0 11px;
  }

  .split-header .button span {
    display: none;
  }

  .door-control {
    width: 250px;
    height: 250px;
  }

  .door-button {
    width: 192px;
    height: 192px;
  }

  .content-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .view:not(.door-view) .content-panel {
    margin-right: -16px;
    margin-left: -16px;
  }

  .password-content {
    gap: 24px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-actions .button {
    width: 100%;
  }

  .proxy-form {
    padding-right: 16px;
    padding-left: 16px;
  }

  .proxy-grid {
    grid-template-columns: 1fr;
  }

  .proxy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .list-item {
    padding-right: 16px;
    padding-left: 16px;
  }

  .user-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 88px;
    padding: 12px 16px;
  }

  .user-copy {
    grid-column: 2;
  }

  .status {
    grid-column: 3;
    grid-row: 1;
  }

  .row-actions {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }

  .role-select {
    display: block;
    grid-column: 2;
    grid-row: 2;
    width: 104px;
  }

  .row-actions:empty,
  .row-actions:empty + * {
    display: none;
  }

  .toast-region {
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }
}

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

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

@keyframes pop {
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

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