@font-face {
  font-family: Geist;
  src: url("/assets/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: Geist, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color-scheme: dark;
  --bg: #08090b;
  --surface: #101215;
  --elevated: #171a1f;
  --input: #0c0e11;
  --text: #f0f2f4;
  --muted: #9299a5;
  --subtle: #676f7b;
  --line: #282c34;
  --line-strong: #3a414d;
  --primary: #f0f3f7;
  --on-primary: #11151b;
  --accent: #b8cdf0;
  --success: #acd8c5;
  --success-bg: #14251e;
  --warning: #e0c187;
  --warning-bg: #292318;
  --danger: #f1a5aa;
  --danger-bg: #2c191e;
  --focus: #b1ccfa;
  --shadow: 0 24px 70px #0004;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #fff;
  --elevated: #eceff3;
  --input: #fafbfc;
  --text: #151922;
  --muted: #5b6472;
  --subtle: #6d7684;
  --line: #dde2e9;
  --line-strong: #c4ccd8;
  --primary: #141a24;
  --on-primary: #fff;
  --accent: #294a7b;
  --success: #285e48;
  --success-bg: #e6f2eb;
  --warning: #77571c;
  --warning-bg: #f7efde;
  --danger: #9a3547;
  --danger-bg: #f9e9ed;
  --focus: #345c95;
  --shadow: 0 24px 70px #20304c0b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
body,
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
input,
select,
textarea {
  font-size: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:hover,
.button:hover {
  background: var(--elevated);
  border-color: var(--muted);
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  border-color: var(--primary) !important;
  font-weight: 600;
}
.primary:hover {
  filter: brightness(0.91);
}
button.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
}
button.link {
  border: 0;
  min-height: 36px;
  padding: 4px 0;
  color: var(--accent);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  background: var(--input);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 11px 13px;
  margin-top: 8px;
  color: var(--text);
  transition: border-color 0.2s;
}
input::placeholder {
  color: var(--subtle);
}
input[type="checkbox"] {
  display: inline-block;
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: var(--accent);
  margin: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
label small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  font-weight: 550;
  margin-bottom: 14px;
}
h2 {
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin-bottom: 16px;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
.muted,
small {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 20px;
}
.wordmark {
  width: fit-content;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.wordmark:before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  transform: rotate(-12deg);
  box-shadow: inset 5px 0 0 var(--surface);
}
.wordmark .muted {
  display: none;
}
.global-tools {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
}
.global-tools select {
  width: auto;
  min-height: 30px;
  height: 30px;
  margin: 0;
  padding: 3px 25px 3px 9px;
  border: 0;
  background: transparent;
  font-size: 11px;
}
.global-tools label {
  font-size: 0;
}
.global-tools .tool-divider {
  height: 16px;
  width: 1px;
  background: var(--line);
}
.auth {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100dvh;
  overflow: hidden;
}
.auth-aside {
  position: relative;
  padding: 48px 8%;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
  background: var(--surface);
}
.auth-aside:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(var(--muted) 0.5px, transparent 0.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(transparent, #000, transparent);
}
.auth-aside > * {
  position: relative;
  z-index: 1;
}
.auth-aside h1 {
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.23;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 650px;
  margin-bottom: 24px;
}
.auth-aside .hero-copy {
  padding-top: 60px;
}
.auth-aside .hero-copy p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 440px;
}
.auth-art {
  width: min(100%, 480px);
  height: auto;
  margin: 20px 0 28px;
  color: var(--muted);
  opacity: 0.9;
}
.auth-aside footer {
  font-size: 10px;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.auth-main {
  padding: 100px 10% 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-content {
  width: 100%;
  max-width: 410px;
}
.auth-content > h1 {
  font-size: 30px;
  margin-bottom: 15px;
}
.auth-content > .muted {
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 30px;
}
.auth-content .eyebrow {
  margin-bottom: 14px;
}
.auth-content .actions {
  gap: 18px;
  margin-top: 23px;
  font-size: 11px;
}
.auth-content .stack > .primary {
  margin-top: 6px;
  width: 100%;
  min-height: 46px;
}
.auth-content .stack {
  gap: 19px;
}
.stack {
  display: grid;
  gap: 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.initial {
  width: min(100% - 40px, 520px);
  margin: 16vh auto;
  padding: 32px;
}
.initial form {
  display: grid;
  gap: 20px;
}
.initial > p {
  font-size: 13px;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: 33px 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.sidebar .wordmark {
  padding: 0 14px;
  margin-bottom: 42px;
}
.sidebar > label,
.sidebar .tenant-context {
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
}
.tenant-context {
  display: grid;
  gap: 7px;
}
.tenant-context strong {
  min-height: 42px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.sidebar select {
  background: var(--bg);
  font-size: 12px;
  min-height: 42px;
  padding: 9px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
  margin-top: 27px;
}
.sidebar nav button,
.sidebar nav > a {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 11px 14px;
  min-height: 43px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.sidebar nav button:before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--subtle);
  border-radius: 1px;
  margin-right: 3px;
}
.sidebar nav button[aria-current="page"] {
  background: var(--elevated);
  color: var(--text);
  border-color: var(--line);
}
.sidebar nav button[aria-current="page"]:before {
  background: var(--text);
  border-color: var(--text);
}
.sidebar nav button:hover,
.sidebar nav > a:hover {
  color: var(--text);
  background: var(--elevated);
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 10px 0;
  font-size: 10px;
  line-height: 1.8;
  color: var(--subtle);
  word-break: break-all;
}
.sidebar-foot > a {
  display: block;
  margin-top: 15px;
  color: var(--muted);
}
.sidebar-foot button {
  margin-top: 15px;
  width: 100%;
  font-size: 11px;
  min-height: 36px;
}
.main {
  width: 100%;
  max-width: 1600px;
  padding: 32px 46px 80px;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  padding-right: 230px;
  border-bottom: 1px solid var(--line);
}
.topbar p {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.topbar p:last-of-type {
  font-size: 10px;
  white-space: nowrap;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin-bottom: 12px;
}
.page-heading p {
  max-width: 78ch;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-heading button {
  min-height: 35px;
  font-size: 11px;
  white-space: nowrap;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 26px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-heading h2 {
  margin: 0;
}
.stats {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 28px;
  overflow: hidden;
}
.stat {
  padding: 24px 28px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.stat strong {
  display: block;
  font-size: 36px;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.stat strong.stat-text {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.stat small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.readiness-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 24px 26px 0;
  margin-bottom: 22px;
}
.readiness-panel .panel-heading {
  margin-bottom: 18px;
}
.readiness-panel .eyebrow {
  margin-bottom: 7px;
}
.readiness-panel .panel-heading h2 {
  margin: 0;
}
.readiness-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -26px;
  border-top: 1px solid var(--line);
}
.readiness-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.readiness-step + .readiness-step {
  border-left: 1px solid var(--line);
}
.readiness-step:hover {
  background: var(--elevated);
  border-color: transparent;
}
.readiness-step + .readiness-step:hover {
  border-left-color: var(--line);
}
.step-number {
  color: var(--subtle);
  font-family: "SF Mono", "Cascadia Mono", Menlo, monospace;
  font-size: 10px;
}
.step-copy {
  display: grid;
  gap: 4px;
}
.step-copy strong {
  font-size: 12px;
  font-weight: 550;
}
.step-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
}
.step-state {
  color: var(--warning);
  font-size: 10px;
  white-space: nowrap;
}
.readiness-step.done .step-state {
  color: var(--success);
}
.grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  color: var(--subtle);
  font-weight: 450;
  white-space: nowrap;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--elevated) 50%, transparent);
}
td code {
  font-size: 10px;
  word-break: break-all;
}
td button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 450;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.warn {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning) 22%, transparent);
}
.badge.error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 22%, transparent);
}
.notice {
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  padding: 15px 18px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 20px;
}
.notice.error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}
.notice.warn {
  color: var(--warning);
  background: var(--warning-bg);
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid .actions {
  margin-top: 0;
  align-self: end;
}
.mono,
code,
pre {
  font-family: "SF Mono", "Cascadia Mono", Menlo, monospace;
}
pre {
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--input);
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.secret {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  margin-bottom: 24px;
}
.secret h2 {
  font-size: 17px;
}
.secret pre {
  background: var(--input);
}
.inline,
.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkline {
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--on-primary);
}
.skip:focus {
  top: 16px;
}
.skeleton {
  height: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
}
.list-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  word-break: break-all;
}
.mobile-only {
  display: none;
}
.application {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.application:last-child {
  border: 0;
}
.application h2 {
  margin: 0;
  min-width: 180px;
}
.application p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  flex: 1;
}
.application .button {
  font-size: 11px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.motion-reveal {
  will-change: transform, opacity;
}
html[lang="en"] .auth-aside h1 {
  font-size: clamp(33px, 3.9vw, 58px);
  letter-spacing: -0.055em;
}
html[lang="en"] .sidebar nav button {
  font-size: 11px;
}
@media (min-width: 1600px) {
  .auth-aside {
    padding-left: 12%;
    padding-right: 12%;
  }
  .main {
    padding-left: 64px;
    padding-right: 64px;
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding-right: 190px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .global-tools {
    right: 20px;
  }
  .main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .auth-aside {
    padding: 38px 8%;
  }
  .auth-main {
    padding: 90px 8% 60px;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 22px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .wordmark {
    padding: 0;
    margin-bottom: 24px;
    font-size: 24px;
  }
  .sidebar > label,
  .sidebar .tenant-context {
    padding: 0;
    max-width: 300px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin: 20px -20px 0;
    padding: 0 20px 14px;
    scrollbar-width: none;
  }
  .sidebar nav button,
  .sidebar nav > a {
    width: auto;
    flex: none;
    white-space: nowrap;
    min-height: 37px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .sidebar nav button:before {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .main {
    padding: 24px 24px 64px;
  }
  .topbar {
    padding-right: 0;
    margin-bottom: 30px;
    flex-wrap: nowrap;
  }
  .topbar p {
    max-width: 38%;
    word-break: break-word;
    white-space: normal !important;
  }
  .mobile-only {
    display: inline-flex;
    min-height: 34px;
    font-size: 10px;
  }
  .global-tools {
    top: 18px;
    right: 20px;
  }
  .auth-aside h1 {
    font-size: 34px;
  }
  .auth-content > h1 {
    font-size: 28px;
  }
  .auth-main {
    padding-left: 8%;
    padding-right: 8%;
  }
  .auth-art {
    margin: 20px 0;
  }
  .stat {
    padding: 23px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px;
  }
}
@media (max-width: 640px) {
  .auth {
    display: block;
  }
  .auth-aside {
    min-height: 0;
    padding: 24px 24px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-aside .wordmark {
    font-size: 23px;
  }
  .auth-aside .hero-copy {
    padding-top: 44px;
  }
  .auth-aside h1,
  html[lang="en"] .auth-aside h1 {
    font-size: 32px;
    line-height: 1.2;
    max-width: 480px;
    margin-bottom: 14px;
  }
  .auth-aside .hero-copy p {
    font-size: 11px;
    margin-bottom: 0;
  }
  .auth-art,
  .auth-aside footer {
    display: none;
  }
  .auth-aside .eyebrow {
    display: none;
  }
  .auth-main {
    padding: 35px 24px 50px;
    justify-content: flex-start;
  }
  .auth-content {
    max-width: none;
  }
  .auth-content > h1 {
    font-size: 26px;
  }
  .auth-content > .muted {
    margin-bottom: 26px;
  }
  .global-tools {
    right: 17px;
    top: 18px;
    padding: 2px;
    gap: 1px;
  }
  .global-tools select {
    font-size: 10px;
    padding-right: 19px;
  }
  .auth-aside .wordmark {
    max-width: 130px;
  }
  .main {
    padding: 22px 18px 50px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.8;
  }
  .page-heading button {
    padding: 6px 10px;
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .readiness-steps {
    grid-template-columns: 1fr;
  }
  .readiness-step + .readiness-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat span {
    margin: 0;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat strong.stat-text {
    font-size: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .panel {
    padding: 20px;
  }
  .panel h2 {
    font-size: 17px;
  }
  .topbar {
    gap: 9px;
  }
  .topbar p {
    font-size: 9px;
  }
  .sidebar select {
    max-width: 100%;
    min-width: 0;
  }
  .sidebar > label {
    max-width: 100%;
  }
  .sidebar nav {
    margin-top: 17px;
  }
  .initial {
    margin: 110px auto 50px;
    padding: 8px;
  }
  .application {
    display: block;
  }
  .application h2,
  .application p {
    margin-bottom: 12px;
  }
  table {
    min-width: 480px;
  }
  .panel-heading {
    align-items: flex-start;
  }
  .wordmark:before {
    width: 18px;
    height: 18px;
  }
  .global-tools select {
    max-width: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .motion-reveal {
    will-change: auto;
  }
}

/* Change theme atomically; interpolating backgrounds while text switches reduces contrast. */
html.theme-switching *,
html.theme-switching *:before,
html.theme-switching *:after {
  transition: none !important;
}
label,
.sidebar nav button,
.sidebar nav > a,
.auth-content > .muted,
.auth-aside .hero-copy p,
.page-heading p,
.panel > .small,
.panel > .muted,
.notice,
.empty,
.application p {
  font-size: 13px;
}
table {
  font-size: 13px;
}
td button,
.page-heading button,
.sidebar-foot button {
  font-size: 12px;
}
.topbar p,
.topbar p:last-of-type {
  font-size: 11px;
}
.auth-content .actions {
  font-size: 12px;
}
.stat span {
  font-size: 12px;
}
.badge,
th {
  font-size: 11px;
}
html[lang="en"] .sidebar nav button {
  font-size: 12px;
}
@media (max-width: 640px) {
  .sidebar nav button,
  .sidebar nav > a,
  .page-heading p,
  .auth-aside .hero-copy p,
  .auth-content > .muted,
  .panel > .small,
  .panel > .muted,
  .empty {
    font-size: 12px;
  }
  .topbar p,
  .topbar p:last-of-type {
    font-size: 10px;
  }
  .global-tools select {
    font-size: 11px;
  }
  .auth-content .actions {
    font-size: 12px;
  }
  .page-heading button {
    font-size: 11px;
  }
}
.account-identity {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  max-width: 280px;
}
.hero-flow {
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 20px 0;
  color: var(--subtle);
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0.6;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.hero-flow > div {
  width: max-content;
  animation: quiet-flow 50s linear infinite;
}
.hero-flow:hover > div {
  animation-play-state: paused;
}
@keyframes quiet-flow {
  to {
    transform: translateX(-50%);
  }
}
.rules-accordion {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  margin: 22px 0;
}
.rules-accordion details {
  flex: 1;
  padding: 20px;
  margin: 0;
  border: 0;
  transition: flex 0.3s;
}
.rules-accordion details + details {
  border-left: 1px solid var(--line);
}
.rules-accordion details[open] {
  flex: 2;
}
.rules-accordion summary {
  color: var(--text);
  font-size: 13px;
}
.rules-accordion p {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.operation-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 26px;
  margin-bottom: 22px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.operation-feedback h2 {
  font-size: 14px;
  margin: 0 0 8px;
}
.operation-feedback p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.operation-feedback .actions {
  margin: 0;
  flex: none;
}
.operation-feedback button {
  min-height: 34px;
  font-size: 11px;
}
@media (max-width: 640px) {
  .account-identity {
    max-width: 145px;
  }
  .hero-flow {
    display: none;
  }
  .rules-accordion {
    display: block;
  }
  .rules-accordion details + details {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .operation-feedback {
    padding: 18px;
    flex-wrap: wrap;
  }
}
.locale-en {
  display: none;
}
html[lang="en"] .locale-en {
  display: inline;
}
html[lang="en"] .locale-zh {
  display: none;
}

.locale-lock-description {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}
.locale-lock-description[hidden] {
  display: none;
}
