:root {
  color-scheme:light;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#2e2b27;
  background:#f7f6f3;
  font-size:14px;
  --ink:#2e2b27;
  --muted:#6f6a61;
  --line:#e7e5de;
  --brand:#3c3489;
  --brand-dark:#2f2975;
  --wash:#efedf7;
  --danger:#ae453c;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-height:100vh;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
  opacity:.5;
}
a {
  color:var(--brand);
  text-decoration:none;
}
button,input,select,textarea {
  border-radius:7px;
}
input,select,textarea {
  border:1px solid #dad7ce;
  background:#fff;
  color:var(--ink);
  padding:9px 11px;
  min-height:38px;
  max-width:100%;
}
textarea {
  resize:vertical;
  line-height:1.6;
}
input:focus,select:focus,textarea:focus {
  outline:2px solid #3c348940;
  outline-offset:1px;
  border-color:var(--brand);
}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #3c348966;
  outline-offset:3px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:23px;
  font-weight:650;
  letter-spacing:-.5px;
  line-height:1.4;
  margin-bottom:6px;
}
h2 {
  font-size:15px;
  font-weight:650;
  margin:0;
}
h3 {
  font-size:14px;
  font-weight:650;
}
p {
  line-height:1.65;
}
small {
  font-size:12px;
}
button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  line-height:1.4;
  min-height:36px;
  padding:8px 13px;
  border:1px solid transparent;
  font-weight:500;
  transition:background .12s,border-color .12s;
}
button.primary {
  background:var(--brand);
  color:white;
  border-color:var(--brand);
}
button.primary:hover:not(:disabled) {
  background:var(--brand-dark);
}
button.secondary {
  background:#fff;
  border-color:#dedbd2;
  color:#4a4388;
}
button.secondary:hover:not(:disabled) {
  background:#f5f4ef;
  border-color:#c7c3b7;
}
button.danger {
  background:#fbf1ef;
  color:var(--danger);
  border-color:#ebcbc5;
}
button.danger:hover:not(:disabled) {
  background:#f7e5e1;
}
button.text-button {
  padding:4px 6px;
  background:transparent;
  color:var(--brand);
  font-size:12px;
  min-height:30px;
}
button.text-button:hover {
  background:var(--wash);
}
button.text-danger {
  color:var(--danger);
}
button.icon-button {
  width:34px;
  height:34px;
  padding:7px;
  background:transparent;
  color:var(--muted);
}
button.icon-button:hover {
  background:#f1efe9;
}
.icon {
  width:18px;
  height:18px;
  flex:none;
  display:inline-block;
  vertical-align:middle;
}
.muted,.hint {
  color:var(--muted);
}
.hint {
  line-height:1.6;
  font-weight:400;
}
.mono {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:12px;
}
.inline {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.stack {
  display:grid;
  gap:10px;
}
.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:30;
  background:white;
  padding:12px;
  border:1px solid var(--line);
}
.skip-link:focus {
  top:8px;
}
.app-shell {
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  min-height:100vh;
}
.sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  display:flex;
  flex-direction:column;
  padding:29px 16px 17px;
  background:#fbfaf7;
  border-right:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 9px;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:var(--brand);
  color:white;
  font-size:22px;
  border-radius:10px;
  font-weight:550;
}
.brand strong {
  font-size:18px;
  letter-spacing:3px;
}
.brand small {
  display:block;
  color:#8f8a80;
  font-size:10px;
  letter-spacing:1.5px;
  margin-top:3px;
}
.workspace-card {
  margin:32px 0 28px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 9px;
  background:white;
}
.workspace-card>div {
  flex:1;
  min-width:0;
}
.workspace-card strong {
  display:block;
  font-size:12px;
}
.workspace-card small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.workspace-icon {
  display:grid;
  place-items:center;
  background:var(--wash);
  color:var(--brand);
  border-radius:6px;
  width:30px;
  height:32px;
  flex:none;
}
.workspace-card>.icon {
  width:12px;
  color:#a8a399;
}
.nav-label {
  padding:0 13px;
  margin-bottom:10px;
  color:#9b958a;
  font-size:10px;
  letter-spacing:2px;
}
.nav {
  display:grid;
  gap:5px;
}
.nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  color:#6e6a60;
  border-radius:7px;
  font-size:13px;
}
.nav-link:hover {
  background:#f2f0ea;
  color:var(--ink);
}
.nav-link[aria-current=page] {
  background:var(--wash);
  color:var(--brand);
  font-weight:600;
}
.nav-link[aria-current=page]::after {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--brand);
  margin-left:auto;
}
.sidebar-footer {
  margin-top:auto;
  padding-top:20px;
}
.account-chip {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 7px 10px;
}
.avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  flex:none;
  background:#e9e7f2;
  color:#494395;
  border-radius:50%;
  font-size:13px;
}
.account-chip strong {
  display:block;
  font-size:12px;
  font-weight:550;
}
.account-chip small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px;
}
.logout-button {
  width:100%;
  justify-content:flex-start;
  background:transparent;
  color:#847f75;
  font-size:11px;
  padding:8px;
}
.logout-button .icon {
  width:15px;
}
.main-shell {
  min-width:0;
}
.topbar {
  height:64px;
  padding:0 32px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#ffffffd9;
  backdrop-filter:blur(8px);
  gap:12px;
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:13px;
  color:#948f84;
  font-size:12px;
}
.breadcrumb .icon {
  width:12px;
}
.breadcrumb strong {
  color:#57534a;
  font-weight:500;
}
.topbar-context {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:#6e6a60;
  min-width:0;
}
.topbar-context>.icon {
  width:16px;
  color:#9b958a;
}
.scope-label {
  font-size:10px;
  color:#857f74;
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 6px;
}
.main-content {
  max-width:1600px;
  margin:auto;
  padding:31px 34px 52px;
}
.main-content h1 {
  scroll-margin-top:80px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:26px;
}
.page-subtitle {
  font-size:12px;
  color:var(--muted);
  margin:0;
}
.page-actions {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.page-actions button {
  font-size:12px;
}
.page-body {
  min-width:0;
}
.panel,.card {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 1px 2px #2e2b2706;
  overflow:hidden;
  margin-bottom:20px;
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:19px 21px 16px;
}
.panel-heading h2 {
  font-size:14px;
}
.panel-heading>span {
  font-size:11px;
  color:var(--muted);
}
.panel-content {
  padding:0 21px 21px;
}
.panel .details-list {
  margin:0;
  padding:4px 22px 22px;
}
.card {
  padding:22px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:22px;
}
.metric {
  padding:19px 20px 16px;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 1px 2px #2e2b2706;
  min-width:0;
}
.metric-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  color:#746f65;
}
.metric-top .icon {
  color:#a19b8f;
  width:17px;
}
.metric strong {
  display:block;
  font-size:27px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:-.5px;
  margin:11px 0 5px;
}
.metric small {
  font-size:10px;
  color:#948f84;
}
.metric .badge {
  font-size:14px;
  letter-spacing:0;
}
.metric .badge .status-dot {
  width:6px;
  height:6px;
}
.metric.highlight {
  background:#f1eff8;
  border-color:#dedbee;
}
[data-test-environment] {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
  margin-bottom:20px;
}
[data-test-environment] .metric strong {
  font-size:14px;
  line-height:1.6;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
.two-columns {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);
  gap:20px;
}
.overview-note {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#f1eff8;
  border:1px solid #dedbee;
  border-radius:9px;
  padding:20px 22px;
  margin-bottom:24px;
}
.overview-note h2 {
  font-size:14px;
  margin-bottom:5px;
}
.overview-note p {
  font-size:12px;
  color:#757065;
  margin:0;
}
.overview-note .primary {
  font-size:12px;
  white-space:nowrap;
}
.list-toolbar {
  display:flex;
  align-items:center;
  gap:9px;
  padding:16px 20px;
  border-top:1px solid #f0eee7;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}
.search-field {
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:1px solid #dedbd2;
  border-radius:6px;
  background:white;
  min-width:180px;
  max-width:320px;
  flex:1;
}
.search-field .icon {
  width:15px;
  color:#9e988c;
}
.search-field input {
  min-height:34px;
  border:0;
  padding:8px 0;
  width:100%;
  font-size:12px;
  background:transparent;
}
.search-field:focus-within {
  outline:2px solid #3c348940;
  border-color:var(--brand);
}
.search-field input:focus {
  outline:none;
}
.list-toolbar select,.list-toolbar button {
  font-size:12px;
  min-height:34px;
  padding:7px 10px;
}
.toolbar-spacer {
  flex:1;
}
.list-count {
  font-size:12px;
  color:#676258;
  white-space:nowrap;
}
.table-wrap {
  overflow-x:auto;
  width:100%;
}
.mobile-cell-label,.mobile-nav-close {
  display:none;
}
.cell-value {
  min-width:0;
}
.table-scroll-hint {
  display:none;
  margin:0;
  padding:9px 16px;
  color:var(--muted);
  font-size:12px;
  background:#f5f4ef;
  border-bottom:1px solid var(--line);
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
}
th {
  text-align:left;
  font-weight:500;
  background:#f8f7f3;
  color:#655f55;
  font-size:12px;
  padding:11px 20px;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
}
td {
  padding:15px 20px;
  border-bottom:1px solid #efeee6;
  vertical-align:middle;
  color:#6a655b;
  line-height:1.5;
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:hover {
  background:#faf9f5;
}
.cell-actions {
  white-space:nowrap;
  min-width:100px;
}
.row-identity {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:130px;
}
.row-icon {
  height:33px;
  width:33px;
  display:grid;
  place-items:center;
  background:#efedf7;
  color:#55509b;
  border-radius:7px;
  flex:none;
}
.row-icon .icon {
  width:16px;
}
.row-identity strong {
  display:block;
  font-size:12px;
  font-weight:550;
  color:#33302b;
}
.row-identity small {
  display:block;
  font-size:12px;
  color:#6a655b;
  margin-top:4px;
  word-break:break-all;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border-radius:5px;
  font-size:10px;
  line-height:1.3;
  white-space:nowrap;
  font-weight:500;
}
.status-dot {
  width:4px;
  height:4px;
  flex:none;
  border-radius:50%;
  background:currentColor;
}
.badge-positive {
  color:#3e7b5b;
  background:#edf4ee;
}
.badge-negative {
  color:#b05046;
  background:#fdf0ed;
}
.badge-warning {
  color:#85692b;
  background:#f8f3e7;
}
.badge-neutral {
  color:#8a857a;
  background:#f2f0ea;
}
.pagination {
  border-top:1px solid var(--line);
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#929c95;
  font-size:11px;
}
.pagination:empty {
  display:none;
}
.pagination button,.pagination select {
  font-size:11px;
  min-height:29px;
  padding:6px 9px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:18px;
  font-size:12px;
  color:#57534a;
}
.field-label {
  font-weight:550;
}
.field .hint {
  font-size:12px;
}
.field input,.field select,.field textarea {
  width:100%;
}
.field textarea {
  word-break:break-all;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 17px;
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top:15px;
  margin-top:10px;
}
.settings-form {
  padding:4px 22px 22px;
  max-width:580px;
}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start;
}
.settings-grid>.panel {
  min-width:0;
}
.details-list {
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:16px 12px;
  font-size:12px;
}
.details-list dt {
  color:#8f897d;
}
.details-list dd {
  margin:0;
  color:#524e44;
  overflow-wrap:anywhere;
}
.detail-section {
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:22px;
}
.notice {
  padding:11px 13px;
  border-radius:6px;
  font-size:12px;
  line-height:1.6;
  margin-bottom:15px;
  overflow-wrap:anywhere;
}
.notice-info {
  color:#554f97;
  background:#efedf7;
}
.notice-ok {
  color:#37734f;
  background:#e9f3eb;
}
.notice-error {
  color:#a54c42;
  background:#fdf0ed;
}
.toasts {
  position:fixed;
  right:24px;
  bottom:20px;
  z-index:1000;
  max-width:360px;
}
.toasts .notice {
  box-shadow:0 5px 24px #2e2b2714;
  border:1px solid #dedbd2;
  padding:12px 18px;
  margin-bottom:8px;
}
.loading,.empty-state,.error-state {
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:32px 20px;
  text-align:center;
  color:#948f84;
  font-size:12px;
}
.loading {
  flex-direction:row;
}
.empty-state strong,.error-state strong {
  color:#666158;
  font-size:13px;
  font-weight:500;
}
.empty-state p,.error-state p {
  max-width:380px;
  margin:0;
  font-size:12px;
}
.empty-icon {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#f2f0ea;
  color:#a29c8f;
  margin-bottom:3px;
}
.error-state>.icon {
  color:#b0705a;
}
.spinner {
  display:inline-block;
  flex:none;
  width:15px;
  height:15px;
  border:2px solid #dedbd2;
  border-top-color:var(--brand);
  border-radius:50%;
  animation:spin .7s linear infinite;
}
form[aria-busy=true] button[type=submit]::after {
  content:"";
  width:12px;
  height:12px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
.drawer {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  padding:0;
  border:0;
  border-left:1px solid var(--line);
  height:100dvh;
  max-height:100dvh;
  width:min(520px,100vw);
  max-width:100vw;
  background:white;
  color:var(--ink);
  box-shadow:-12px 0 60px #2e2b2714;
}
.drawer::backdrop {
  background:#2b292645;
}
.drawer-inner {
  display:flex;
  flex-direction:column;
  height:100%;
}
.drawer-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:27px 27px 22px;
  border-bottom:1px solid var(--line);
  gap:12px;
}
.drawer-heading h2 {
  font-size:18px;
}
.drawer-heading p {
  font-size:12px;
  color:var(--muted);
  margin:8px 0 0;
}
.drawer-body {
  padding:26px 28px;
  overflow-y:auto;
  flex:1;
}
.drawer-body .details-list {
  margin:0;
}
.dialog-description {
  font-size:13px;
  color:#7d776b;
}
.success-mark {
  height:45px;
  width:45px;
  border-radius:50%;
  background:var(--wash);
  color:var(--brand);
  display:grid;
  place-items:center;
  margin-bottom:15px;
}
.success-mark .icon {
  width:22px;
}
.invitation-result h3 {
  font-size:18px;
  margin-bottom:7px;
}
.invite-secret {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:13px;
  letter-spacing:.5px;
  background:#f8f7f3;
}
.share-field {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:start;
}
.share-field textarea {
  min-height:64px;
  font-size:11px;
}
.helper-strip {
  padding:12px 20px;
  color:#8c877b;
  font-size:11px;
  border-top:1px solid var(--line);
  background:#fbfaf7;
}
.section-title {
  font-size:15px;
  margin:0 0 15px;
}
.section-description {
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
  margin:0 21px 16px;
}
.subsection-title {
  font-size:12px;
  margin:20px 21px 7px;
}
.test-console {
  min-width:0;
}
.test-console-intro {
  padding:20px 21px 18px;
}
.test-console-intro-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.test-console-intro .section-title {
  margin-bottom:6px;
}
.test-console-intro p {
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
  margin:0;
}
.test-console-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.test-console-grid>.panel {
  min-width:0;
}
.test-console-grid>.panel:last-child {
  grid-column:1 / -1;
}
.test-console .panel>.forms,
.test-console .panel>.inline,
.test-console .panel>[data-test-environment] {
  margin-left:21px;
  margin-right:21px;
}
.test-console .panel>.forms {
  margin-bottom:4px;
}
.test-console .panel>.inline {
  margin-bottom:18px;
}
.test-console .panel>[data-test-environment] {
  margin-bottom:20px;
}
.test-actions {
  gap:8px;
}
.test-danger-zone {
  border-top:1px solid var(--line);
  margin:20px 21px 0;
  padding-top:16px;
}
.test-danger-zone .subsection-title {
  margin:0 0 9px;
}
.test-danger-zone .field {
  margin-bottom:0;
}
.test-danger-zone .inline {
  margin:0;
}
.settings-intro {
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
  margin:0 0 20px;
}
.health-auto-refresh {
  min-height:36px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--muted);
  font-size:12px;
}
.health-auto-refresh input {
  accent-color:var(--brand);
}
.forms {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:14px;
}
.health-list {
  padding:0 21px 14px;
}
.health-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 0;
  border-bottom:1px solid #edebe3;
  font-size:12px;
}
.health-row:last-child {
  border:0;
}
.health-row>.icon {
  color:#847e72;
}
.health-row>div {
  flex:1;
  min-width:0;
}
.health-row strong {
  display:block;
  font-weight:500;
  color:#524e44;
}
.health-row small {
  display:block;
  margin-top:5px;
  color:#9b958a;
  font-size:10px;
}
.health-banner {
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid #d8e5da;
  background:#f0f6f0;
  border-radius:9px;
  padding:22px;
  margin-bottom:22px;
}
.health-banner>.icon {
  width:30px;
  height:30px;
  color:#5f8468;
}
.health-banner h2 {
  margin-bottom:6px;
  font-size:16px;
}
.health-banner p {
  margin:0;
  color:#6f8a76;
  font-size:12px;
}
.health-banner.is-warning {
  border-color:#ebdfc2;
  background:#fbf7ec;
}
.health-banner.is-warning>.icon,.health-banner.is-warning p {
  color:#7e6327;
}
.health-banner.is-error {
  border-color:#ecd2ca;
  background:#fbf1ee;
}
.health-banner.is-error>.icon,.health-banner.is-error p {
  color:#ac6c58;
}
.refresh-time {
  margin-left:auto;
  font-size:11px;
  color:#948f84;
  text-align:right;
}
.login-page {
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  background:radial-gradient(ellipse at 50% 20%,#edebf5,transparent 60%),#f7f6f3;
}
.login-brand {
  margin:0 0 28px;
}
.login-card {
  background:white;
  width:100%;
  max-width:410px;
  border:1px solid #e3e0d8;
  border-radius:12px;
  padding:31px 34px;
  box-shadow:0 18px 60px #2e2b270f,0 2px 8px #2e2b2706;
}
.login-role {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--brand);
  margin-bottom:15px;
}
.login-role .icon {
  width:15px;
}
.login-card h1 {
  font-size:22px;
  font-weight:600;
}
.login-description {
  color:var(--muted);
  font-size:12px;
  margin-bottom:16px;
}
.login-card>.badge {
  margin-bottom:5px;
}
.login-form {
  margin-top:23px;
}
.login-submit {
  width:100%;
  justify-content:space-between;
  margin-top:5px;
}
.login-footer {
  font-size:10px;
  color:#a29c8f;
  margin:25px 0 0;
  letter-spacing:1px;
}
.boot-state {
  display:grid;
  place-items:center;
  min-height:100dvh;
}
.mobile-menu,.nav-backdrop {
  display:none;
}
.tenant-filter {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 20px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:20px;
}
.tenant-filter label {
  font-size:12px;
  color:#7d776b;
}
.tenant-filter select {
  min-width:220px;
  font-size:12px;
}
.step-label {
  color:#8b8579;
  letter-spacing:1px;
  font-size:10px;
  margin-bottom:20px;
}
.audit-action {
  color:#524e44;
  font-weight:500;
}
.audit-resource {
  max-width:260px;
  word-break:break-all;
  font-size:11px;
}
.readonly-setting {
  padding:0 22px 20px;
  color:#857f73;
  font-size:12px;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
@media(min-width:1700px) {
  .main-content {
    padding-top:40px;
  }
  .metrics {
    gap:20px;
  }
  .metric {
    padding:23px;
  }
}
@media(max-width:1100px) {
  .app-shell {
    grid-template-columns:200px minmax(0,1fr);
  }
  .main-content {
    padding:26px 22px;
  }
  .topbar {
    padding:0 22px;
  }
  .metrics {
    gap:10px;
  }
  .metric {
    padding:15px;
  }
  .two-columns {
    grid-template-columns:1fr;
  }
  .settings-grid {
    grid-template-columns:1fr;
  }
  .test-console-grid {
    grid-template-columns:1fr;
  }
  .test-console-grid>.panel:last-child {
    grid-column:auto;
  }
  .topbar-context {
    max-width:50%;
  }
}
@media(max-width:820px) {
  .app-shell {
    grid-template-columns:1fr;
  }
  .sidebar {
    position:fixed;
    left:-240px;
    visibility:hidden;
    width:224px;
    z-index:50;
    transition:left .15s;
  }
  .sidebar.is-open {
    left:0;
    visibility:visible;
  }
  .sidebar.is-open+.nav-backdrop {
    display:block;
    position:fixed;
    inset-block:0;
    left:min(300px,calc(100vw - 52px));
    right:0;
    z-index:49;
    background:#2b292655;
    width:auto;
    height:100dvh;
    border-radius:0;
  }
  .mobile-menu {
    display:inline-flex!important;
  }
  .main-content {
    padding:23px 18px;
  }
  .topbar {
    padding:0 15px;
    height:56px;
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .breadcrumb {
    gap:8px;
  }
  .topbar-context>.icon {
    display:none;
  }
  .page-heading {
    align-items:flex-start;
  }
  .page-heading h1 {
    font-size:21px;
  }
  .page-actions {
    justify-content:flex-end;
  }
  .page-actions button {
    padding:7px 10px;
  }
  .two-columns {
    gap:0;
  }
  .topbar-context .badge {
    display:none;
  }
  th,td {
    padding:13px 16px;
  }
  .table-wrap table {
    min-width:570px;
  }
  .table-scroll-hint {
    display:block;
  }
  .overview-note {
    padding:17px;
  }
  .metric strong {
    font-size:25px;
  }
  .tenant-filter {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .tenant-filter select {
    width:100%;
    min-width:0;
  }
}
@media(max-width:480px) {
  .page-heading {
    display:block;
    margin-bottom:20px;
  }
  .page-actions {
    justify-content:flex-start;
    margin-top:15px;
  }
  .page-subtitle {
    font-size:11px;
  }
  .main-content {
    padding:21px 13px;
  }
  .overview-note {
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
  }
  .list-toolbar {
    padding:13px;
    gap:7px;
  }
  .search-field {
    min-width:160px;
    max-width:100%;
  }
  .toolbar-spacer {
    display:none;
  }
  .list-count {
    margin-left:auto;
  }
  .pagination {
    padding:10px 12px;
    flex-wrap:wrap;
  }
  .pagination .inline {
    gap:5px;
  }
  .pagination select {
    max-width:100px;
  }
  .metric {
    padding:14px 13px;
  }
  .metrics {
    gap:9px;
  }
  .metric-top {
    font-size:11px;
  }
  .metric small {
    font-size:10px;
  }
  .form-grid {
    grid-template-columns:1fr;
  }
  .drawer-body {
    padding:23px 22px;
  }
  .drawer-heading {
    padding:23px 22px;
  }
  .login-card {
    padding:28px;
  }
  .topbar-context {
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .health-banner {
    padding:17px;
    gap:12px;
    flex-wrap:wrap;
  }
  .refresh-time {
    width:100%;
    text-align:left;
    margin-left:42px;
  }
  .toasts {
    right:12px;
    bottom:12px;
    left:12px;
    max-width:none;
  }
}
@media(max-width:820px) {
  body.navigation-open,body:has(.drawer[open]) {
    overflow:hidden;
  }
  .sidebar {
    width:min(300px,calc(100vw - 52px));
    left:-320px;
    padding:calc(24px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .sidebar>.brand {
    padding-right:35px;
  }
  .mobile-nav-close {
    display:inline-flex!important;
    position:absolute;
    top:calc(20px + env(safe-area-inset-top));
    right:12px;
  }
  .workspace-card {
    margin:24px 0;
  }
  .nav-link,.logout-button {
    min-height:44px;
    font-size:14px;
  }
  .topbar {
    position:sticky;
    top:0;
    z-index:20;
    height:calc(60px + env(safe-area-inset-top));
    padding-top:env(safe-area-inset-top);
    padding-left:max(10px,env(safe-area-inset-left));
    padding-right:max(14px,env(safe-area-inset-right));
    background:#fbfaf7;
  }
  .topbar>.inline {
    flex-wrap:nowrap;
    min-width:0;
    gap:5px;
  }
  .breadcrumb {
    min-width:0;
  }
  .breadcrumb>span,.breadcrumb>.icon {
    display:none;
  }
  .breadcrumb strong {
    white-space:nowrap;
    font-size:13px;
  }
  .topbar-context {
    max-width:52%;
    overflow:visible;
    gap:6px;
    font-size:12px;
  }
  .context-name {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    min-width:0;
  }
  .topbar-context .badge {
    display:inline-flex;
    flex:none;
  }
  button,.page-actions button,.list-toolbar button,.pagination button,button.text-button,button.icon-button {
    min-height:44px;
    min-width:44px;
    font-size:13px;
  }
  button.icon-button {
    width:44px;
    height:44px;
  }
  input:not([type=checkbox]):not([type=radio]),select,textarea,
  .search-field input,.list-toolbar select,.pagination select,.tenant-filter select,.share-field textarea {
    font-size:16px;
    min-height:44px;
  }
  input[type=checkbox],input[type=radio] {
    min-height:20px;
    width:20px;
    height:20px;
  }
  .drawer {
    width:min(520px,100vw);
  }
  .drawer-heading {
    padding-top:calc(20px + env(safe-area-inset-top));
    align-items:center;
    flex:none;
  }
  .drawer-body {
    min-height:0;
    padding-bottom:calc(24px + env(safe-area-inset-bottom));
    overscroll-behavior:contain;
  }
  .main-content {
    padding-bottom:calc(32px + env(safe-area-inset-bottom));
  }
  .toasts {
    bottom:calc(12px + env(safe-area-inset-bottom));
  }
}
@media(max-width:600px) {
  [data-test-environment] {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .table-scroll-hint {
    display:none;
  }
  .table-wrap {
    overflow:visible;
  }
  .table-wrap table {
    display:block;
    min-width:0;
    font-size:13px;
  }
  .table-wrap thead {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .table-wrap tbody {
    display:grid;
    gap:10px;
    padding:12px;
    background:#f5f4ef;
  }
  .table-wrap tbody tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 18px;
    padding:16px;
    border:1px solid var(--line);
    border-radius:8px;
    background:white;
  }
  .table-wrap td {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    min-width:0;
    border:0;
    padding:0;
    color:#524e44;
    overflow-wrap:anywhere;
  }
  .table-wrap td:first-child {
    grid-column:1 / -1;
    color:var(--ink);
    font-weight:550;
  }
  .mobile-cell-label {
    display:block;
    margin-bottom:5px;
    font-size:11px;
    color:var(--muted);
    font-weight:400;
  }
  .table-wrap .cell-actions {
    grid-column:1 / -1;
    border-top:1px solid var(--line);
    padding-top:8px;
    white-space:normal;
  }
  .cell-actions>.mobile-cell-label {
    display:none;
  }
  .cell-actions>.cell-value {
    width:100%;
  }
  .cell-actions .inline {
    gap:8px;
  }
  .cell-actions button.text-button {
    padding:8px 13px;
    background:#f1eff8;
    border:1px solid #e0deed;
  }
  .cell-actions button.text-danger {
    background:#fbf1ee;
    border-color:#efdad4;
  }
  .row-identity {
    min-width:0;
  }
  .row-identity>div {
    min-width:0;
  }
  .row-identity strong {
    font-size:14px;
  }
  .row-identity small {
    font-weight:400;
  }
  .badge {
    font-size:11px;
  }
  .badge-neutral {
    color:#6f6a61;
  }
  .list-toolbar {
    gap:10px;
    padding:14px;
  }
  .search-field {
    flex-basis:100%;
    min-width:0;
    max-width:none;
  }
  .list-toolbar select {
    flex:1;
    min-width:0;
  }
  .list-toolbar .search-submit {
    min-width:76px;
  }
  .toolbar-spacer {
    display:none;
  }
  .list-count {
    flex-basis:100%;
    text-align:right;
  }
  .pagination {
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    font-size:12px;
    color:var(--muted);
    padding:14px;
  }
  .pagination>.inline {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:7px;
  }
  .pagination select {
    width:100%;
    max-width:none;
    padding:7px;
  }
  .form-grid,.forms {
    grid-template-columns:minmax(0,1fr);
  }
  .test-console-intro-heading {
    align-items:flex-start;
  }
  .test-console-intro-heading>.badge {
    flex:none;
  }
  .form-actions {
    flex-wrap:wrap;
  }
  .form-actions>button {
    flex:1;
  }
  .details-list {
    grid-template-columns:88px minmax(0,1fr);
    gap:14px 10px;
    font-size:13px;
  }
  .details-list dt {
    color:var(--muted);
  }
  .drawer-heading,.drawer-body {
    padding-left:max(20px,env(safe-area-inset-left));
    padding-right:max(20px,env(safe-area-inset-right));
  }
  .login-page {
    padding:calc(30px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  }
  .login-card {
    padding:26px 22px;
  }
  .page-subtitle,.field,.page-actions button {
    font-size:13px;
  }
  .health-row strong,.health-row small {
    overflow-wrap:anywhere;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition:none!important;
  }
}
