:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #202636;
  background: #f5f6fa;
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  --blue: #3655e8;
  --border: #e5e8f0;
  --muted: #6e778b;
  --danger: #b42e42;
  --green: #13765a;
  --shadow: 0 8px 30px #18284b0b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #7a94fa;
  outline-offset: 3px;
}
button,
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
}
input,
select,
textarea {
  padding: 11px 13px;
  width: 100%;
  background: #fff;
  color: #202636;
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #959dad;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.3;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small,
.small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.identity-name {
  max-width: min(240px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--border);
}
.portal-eyebrow {
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.portal-welcome h1 {
  margin-bottom: 12px;
  font-size: 36px;
}
.portal-account {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.portal-account a {
  display: block;
  margin-top: 4px;
}
.portal-section {
  margin-bottom: 30px;
}
.portal-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.portal-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 22px;
}
.portal-service {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.portal-service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.service-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-weight: 750;
  background: #edf1ff;
  color: var(--blue);
  border-radius: 14px;
}
.service-symbol.violet {
  background: #f2edff;
  color: #7853bf;
}
.service-kind {
  font-size: 12px;
  color: var(--muted);
  background: #f6f7fa;
  padding: 5px 10px;
  border-radius: 20px;
}
.portal-service h3 {
  font-size: 21px;
  margin-bottom: 9px;
}
.portal-service > p {
  flex-grow: 1;
}
.portal-service-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portal-shortcuts {
  padding: 25px;
}
.portal-shortcut-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .portal-welcome {
    padding-top: 8px;
    margin-bottom: 26px;
  }
  .portal-welcome h1 {
    font-size: 30px;
  }
  .portal-account {
    display: none;
  }
  .portal-service {
    padding: 22px;
  }
  .portal-service-footer {
    align-items: start;
    flex-direction: column;
  }
  .portal-shortcuts {
    padding: 22px;
  }
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: #fff;
  z-index: 40;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #384156;
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.button:hover {
  background: #f6f7fb;
  text-decoration: none;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button.primary:hover {
  background: #2946d4;
}
.button.danger {
  color: var(--danger);
  border-color: #edd5da;
}
.button.danger:hover {
  background: #fff3f5;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.small {
  padding: 6px 10px;
  min-height: 34px;
  font-size: 13px;
}
.button.icon {
  width: 40px;
  padding: 8px;
  font-size: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.stack {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
}
.field .muted {
  font-weight: 400;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-error {
  background: #fff1f3;
  color: #a1293c;
  border: 1px solid #f1d6dc;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.form-error:empty {
  display: none;
}
.notice {
  padding: 15px 18px;
  border-radius: 9px;
  background: #f0f4ff;
  color: #405a99;
  font-size: 14px;
  line-height: 1.7;
}
.notice.warn {
  background: #fff8e7;
  color: #886220;
}
.notice.error {
  background: #fff0f2;
  color: #a33244;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  width: 37px;
  height: 37px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand-caption {
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
  letter-spacing: 0.8px;
  margin-top: 1px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.login-top {
  padding: 25px 36px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 40px 20px 70px;
}
.login-card {
  width: min(100%, 430px);
  background: white;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.login-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.login-card form {
  margin-top: 28px;
}
.login-card .primary {
  width: 100%;
  margin-top: 3px;
}
.login-footer {
  text-align: center;
  color: #8690a3;
  font-size: 13px;
  padding: 20px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 27px 17px 20px;
}
.sidebar .brand {
  padding: 0 11px 33px;
}
.nav-label {
  font-size: 12px;
  color: #939bae;
  padding: 21px 14px 9px;
  letter-spacing: 1.5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #657087;
  font-size: 14px;
  margin: 3px 0;
  min-height: 46px;
}
.nav-link:hover {
  background: #f7f8fc;
  text-decoration: none;
}
.nav-link.active {
  color: #3655e8;
  background: #edf1ff;
  font-weight: 600;
}
.nav-symbol {
  font-size: 19px;
  width: 21px;
  text-align: center;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  color: #838da2;
  font-size: 12px;
}
.sidebar-bottom .divider {
  margin-bottom: 18px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 77px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.breadcrumbs {
  color: #8992a3;
  font-size: 13px;
}
.breadcrumbs strong {
  color: #455066;
  font-weight: 550;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #eaf0ff;
  color: #4565ce;
  font-size: 12px;
  font-weight: 650;
  display: grid;
  place-items: center;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.identity button {
  font-size: 13px;
}
.mobile-toggle {
  display: none;
}
.content {
  max-width: 1450px;
  margin: 0 auto;
  padding: 34px 36px 60px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 19px 21px;
  position: relative;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-value {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-top: 6px;
}
.stat-foot {
  font-size: 12px;
  color: #9ca3b0;
  margin-top: 3px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.panel-body {
  padding: 24px;
}
.panel-heading {
  padding: 20px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.toolbar {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.search {
  max-width: 340px;
  flex: 1;
  min-width: 170px;
}
.toolbar select {
  width: auto;
  min-width: 135px;
  font-size: 14px;
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  background: #fafbfe;
  color: #8a93a6;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 20px 22px;
  border-bottom: 1px solid #eef0f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcff;
}
.version-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 215px;
}
.file-mark {
  width: 40px;
  height: 44px;
  border: 1px solid #e2e7f3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #5876d4;
  background: #f5f7fd;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}
.version-name {
  font-weight: 600;
  color: #2b3449;
  overflow-wrap: anywhere;
}
.version-cell .mono {
  color: #9ba3b3;
  margin-top: 4px;
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: #f0f2f6;
  color: #7e8799;
}
.badge.success {
  background: #e9f7f1;
  color: #218367;
}
.badge.progress {
  background: #eef1ff;
  color: #516bc4;
}
.badge.danger {
  background: #fff0f1;
  color: #b44657;
}
.badge.warning {
  background: #fff6e6;
  color: #a17b2e;
}
.pagination {
  border-top: 1px solid var(--border);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
}
.empty {
  padding: 65px 25px;
  text-align: center;
}
.empty .empty-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 58px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #f9faff;
  color: #6d84c0;
  font-size: 23px;
  margin: 0 auto 20px;
}
.empty h2 {
  font-size: 17px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.divider {
  height: 1px;
  background: var(--border);
}
.login-error {
  margin-top: 16px;
}
.loading {
  padding: 55px;
  text-align: center;
  color: var(--muted);
}
.notifications {
  position: fixed;
  bottom: 24px;
  right: 25px;
  z-index: 60;
  max-width: min(440px, calc(100vw - 32px));
}
.toast {
  background: #26324c;
  color: white;
  padding: 14px 19px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #1e2a5230;
  margin-top: 10px;
  font-size: 14px;
}
.toast.error {
  background: #a33345;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 24px 80px #19274838;
  width: min(550px, calc(100vw - 32px));
  padding: 0;
  color: inherit;
  max-height: calc(100vh - 60px);
}
dialog::backdrop {
  background: #17254165;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 23px 25px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.dialog-body {
  padding: 23px 25px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 19px 25px;
  border-top: 1px solid var(--border);
  background: #fafbfe;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 22px;
}
.narrow {
  max-width: 760px;
}
.dropzone {
  display: grid;
  place-items: center;
  gap: 9px;
  border: 1.5px dashed #cbd4ec;
  border-radius: 10px;
  background: #fafbff;
  padding: 34px 25px;
  text-align: center;
}
.dropzone.over {
  border-color: var(--blue);
  background: #eef2ff;
}
.dropzone input {
  border: 0;
  padding: 8px;
  font-size: 13px;
  background: transparent;
  max-width: 330px;
}
.drop-symbol {
  font-size: 28px;
  color: #7186bf;
}
.progress-block {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.progress-block progress {
  width: 100%;
  height: 8px;
  accent-color: var(--blue);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  font-size: 14px;
}
.details {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 17px;
  font-size: 14px;
  margin: 0;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  font-size: 14px;
}
.tab.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.back-link {
  font-size: 13px;
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
}
.step-list {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  display: flex;
  gap: 14px;
  padding: 0 0 20px;
  position: relative;
  font-size: 14px;
  color: #99a2b3;
}
.step:last-child {
  padding-bottom: 0;
}
.step-number {
  border: 1px solid var(--border);
  border-radius: 50%;
  min-width: 25px;
  height: 25px;
  text-align: center;
  font-size: 12px;
  line-height: 23px;
  background: #fff;
  z-index: 1;
}
.step:not(:last-child):before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.step.done {
  color: #2b876f;
}
.step.done .step-number {
  background: #e8f6ef;
  border-color: #e8f6ef;
}
.step.current {
  color: var(--blue);
  font-weight: 550;
}
.step.current .step-number {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.key-secret {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 13px;
  background: #f5f7fc;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.key-secret code {
  font-size: 13px;
  word-break: break-all;
  flex: 1;
  padding-top: 4px;
}
.key-secret input {
  font-family: monospace;
  font-size: 13px;
  background: #f5f7fc;
  border: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.report-list {
  font-size: 13px;
  max-height: 240px;
  overflow: auto;
}
.report-list li {
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.status-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.metric {
  font-size: 25px;
  font-weight: 600;
  margin-top: 5px;
}
.badge-label {
  font-size: 12px;
  color: var(--muted);
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 20px;
}
.screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.notice + .panel {
  margin-top: 20px;
}
.receipt {
  border: 1px solid #b9dfd1;
  border-radius: 11px;
  padding: 24px;
  background: #f8fcfa;
}
.receipt h2 {
  margin: 10px 0;
}
.receipt .actions {
  margin-top: 20px;
}
.form-hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.selectable {
  user-select: all;
}
.gap-top {
  margin-top: 20px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .page-grid {
    grid-template-columns: 1fr;
  }
  .health-grid {
    grid-template-columns: 1fr 1fr;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -270px;
    width: 245px;
    z-index: 30;
    transition: left 0.2s;
    box-shadow: 20px 0 80px #16294b15;
  }
  .app-shell.nav-open .sidebar {
    left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
    padding: 0 17px;
  }
  .breadcrumbs {
    display: none;
  }
  .identity .role-label {
    display: none;
  }
  .content {
    padding: 25px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .button {
    padding: 9px 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px 17px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-foot {
    display: none;
  }
  .panel-body {
    padding: 19px;
  }
  .toolbar {
    padding: 16px;
  }
  .toolbar .search {
    max-width: none;
  }
  .toolbar select {
    min-width: 100px;
    flex: 1;
  }
  .panel-heading {
    padding: 17px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .details {
    grid-template-columns: 105px 1fr;
    font-size: 13px;
    gap: 15px;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 27px;
  }
  .login-top {
    padding: 22px;
  }
  .table-scroll table {
    min-width: 700px;
  }
  .dialog-head,
  .dialog-body,
  .dialog-footer {
    padding: 19px;
  }
  .pagination {
    padding: 13px 16px;
  }
  .notifications {
    right: 16px;
    bottom: 16px;
  }
  .row {
    flex-wrap: wrap;
  }
  .page-grid {
    gap: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
