@font-face {
  font-family: Plex;
  src: url("/static/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101113;
  color: #ececec;
  font-family: Plex, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: 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 17px;
  border: 1px solid #44474b;
  border-radius: 6px;
  background: #25272a;
  color: #f4f4f4;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #33363a;
  border-color: #777;
}
button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: #efc76b;
  color: #1c180f;
  border-color: #efc76b;
}
.primary:hover {
  background: #ffda81;
  border-color: #ffda81;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: #f8a29b;
  border-color: #75433d;
}
.small {
  font-size: 12px;
}
.muted {
  color: #a1a5ad;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a5ad;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.logo svg {
  width: 25px;
  height: 25px;
  color: #efc76b;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 36px;
  border-bottom: 1px solid #303236;
  background: #141517;
}
.nav {
  display: flex;
  gap: 25px;
  height: 100%;
  align-items: center;
}
.nav a {
  display: flex;
  height: 100%;
  align-items: center;
  color: #a1a5ad;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
}
.nav a[aria-current="page"] {
  color: #f0d194;
  border-color: #efc76b;
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.account button {
  font-size: 12px;
  padding: 6px 11px;
}
.shell {
  max-width: 1520px;
  margin: auto;
  padding: 28px 36px 70px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 9px 0 28px;
}
.page-head h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin: 6px 0 12px;
}
.page-head p {
  margin: 0;
  color: #a1a5ad;
  max-width: 750px;
}
.resource-strip {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #303236;
  padding: 12px 36px;
  font-size: 12px;
  flex-wrap: wrap;
  background: #151618;
}
.resource-strip strong {
  font-weight: 500;
  color: #ededed;
  margin-left: 6px;
}
.resource-strip span {
  color: #a1a5ad;
}
.resource-strip .live {
  margin-left: auto;
  color: #a1a5ad;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #afb4bb;
  font-size: 12px;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #747983;
}
.status.on:before {
  background: #8cbb9e;
}
.status.on {
  color: #b2d4bd;
}
.status.busy:before {
  background: #efc76b;
}
.status.busy {
  color: #efc76b;
}
.status.off:before {
  background: #929292;
}
.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid #34363a;
  border-radius: 10px;
  overflow: hidden;
  margin: 28px 0;
}
.service-card {
  padding: 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  background: #191b1e;
}
.service-card + .service-card {
  border-left: 1px solid #34363a;
  background: #151719;
}
.service-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.service-card h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 38px 0 10px;
}
.service-card p {
  color: #a1a5ad;
  max-width: 420px;
  margin: 0 0 24px;
}
.service-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  justify-content: space-between;
}
.service-number {
  color: #757b84;
  font-size: 12px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 28px 0 16px;
}
.section-head h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
}
.section-head p {
  font-size: 12px;
  color: #a1a5ad;
  margin: 3px 0;
}
.panel {
  border: 1px solid #34363a;
  border-radius: 8px;
  padding: 24px;
  background: #17191c;
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #34363a;
  border-radius: 8px;
  overflow: hidden;
}
.gpu {
  padding: 20px;
  background: #17191c;
  min-width: 0;
}
.gpu + .gpu {
  border-left: 1px solid #34363a;
}
.gpu-title {
  display: flex;
  justify-content: space-between;
  color: #a1a5ad;
  font-size: 12px;
}
.gpu strong {
  font-size: 24px;
  display: block;
  font-weight: 500;
  margin: 10px 0 3px;
  letter-spacing: -0.03em;
}
.gpu strong small {
  font-size: 12px;
  font-weight: 400;
  color: #a1a5ad;
}
.gpu p {
  font-size: 12px;
  color: #a1a5ad;
  margin: 6px 0;
}
meter {
  width: 100%;
  height: 5px;
  display: block;
  margin: 12px 0;
  background: #33363a;
  border: 0;
}
meter::-webkit-meter-bar {
  background: #33363a;
  border: 0;
  border-radius: 0;
  height: 5px;
}
meter::-webkit-meter-optimum-value {
  background: #af9460;
}
meter::-moz-meter-bar {
  background: #af9460;
}
.system-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  font-size: 12px;
  color: #a1a5ad;
  flex-wrap: wrap;
}
.banner {
  padding: 14px 18px;
  border: 1px solid #74603b;
  border-radius: 6px;
  color: #efd8a5;
  background: #282319;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #34363a;
  margin-bottom: 24px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #a1a5ad;
  padding: 12px 18px;
}
.tabs button[aria-selected="true"] {
  color: #f3d695;
  border-color: #efc76b;
}
.builder {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.builder-form {
  padding: 24px;
  border: 1px solid #34363a;
  background: #191b1e;
  border-radius: 8px;
}
.builder-form h2 {
  font-size: 18px;
  margin: 0 0 20px;
  font-weight: 500;
}
.segmented {
  display: flex;
  background: #101113;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #34363a;
  margin-bottom: 22px;
}
.segmented button {
  min-height: 36px;
  flex: 1;
  font-size: 12px;
  border: 0;
  background: none;
  padding: 5px 8px;
}
.segmented button[aria-pressed="true"] {
  background: #36383c;
  color: #fff;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label,
.field-label {
  font-size: 12px;
  color: #cdd0d4;
}
input,
select {
  color: #f3f3f3;
  background: #121416;
  border: 1px solid #45484e;
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
  min-height: 42px;
}
input:focus,
select:focus {
  border-color: #e5be70;
  outline: 2px solid #d7b36c44;
  outline-offset: 2px;
}
input[type="file"] {
  font-size: 11px;
  padding: 6px;
  width: 100%;
}
input::file-selector-button {
  font: inherit;
  padding: 5px;
  border: 0;
  border-radius: 3px;
  margin-right: 7px;
  background: #35383c;
  color: #eee;
  cursor: pointer;
}
.upload-preview {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #101113;
  border-radius: 4px;
  margin-top: 8px;
}
.field-hint {
  font-size: 11px;
  color: #969ca5;
  margin: 0;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.full {
  width: 100%;
}
.viewer {
  position: relative;
  min-height: 440px;
  border: 1px solid #34363a;
  border-radius: 8px;
  background: #17191c;
  overflow: hidden;
}
.viewer-empty {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px;
  text-align: center;
}
.viewer-empty svg {
  width: 50px;
  height: 50px;
  color: #6f747c;
  margin-bottom: 22px;
}
.viewer-empty h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
}
.viewer-empty p {
  color: #a1a5ad;
  font-size: 13px;
  margin: 0;
  max-width: 370px;
}
.viewer-label {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #959ba4;
  z-index: 1;
}
.viewer-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #34363a;
}
.viewer-footer p {
  margin: 0;
  font-size: 12px;
  color: #a1a5ad;
}
model-viewer {
  display: block;
  width: 100%;
  height: 460px;
  background: #1c1f23;
  --progress-bar-color: #efc76b;
}
.job-list {
  border-top: 1px solid #34363a;
}
.job {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #34363a;
}
.job img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  background: #22252a;
  border-radius: 4px;
}
.job-info {
  flex: 1;
  min-width: 0;
}
.job-info strong {
  font-size: 13px;
  font-weight: 500;
}
.job-info p {
  font-size: 11px;
  color: #a1a5ad;
  margin: 2px 0;
  overflow-wrap: anywhere;
}
.job-actions {
  display: flex;
  gap: 5px;
}
.job-actions button,
.job-actions a {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 10px;
}
.empty {
  color: #a1a5ad;
  padding: 28px 0;
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid #34363a;
  border-radius: 6px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  color: #a1a5ad;
  font-weight: 400;
  background: #1c1e21;
}
td,
th {
  padding: 16px 18px;
  border-bottom: 1px solid #34363a;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td .muted {
  font-size: 11px;
}
td button,
td a.button {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 10px;
}
td .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.invite-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}
.secret {
  overflow-wrap: anywhere;
  background: #26231b;
  padding: 16px;
  border: 1px solid #76603a;
  border-radius: 5px;
  margin-top: 18px;
  font-family: monospace;
  font-size: 13px;
  color: #f6dda9;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-aside {
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #34363a;
  background: #191b1d;
}
.login-aside h1 {
  font-size: 46px;
  line-height: 1.25;
  letter-spacing: -0.05em;
  font-weight: 500;
  max-width: 430px;
}
.login-aside p {
  color: #a1a5ad;
  max-width: 370px;
}
.login-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
}
.login-form > p {
  font-size: 13px;
  color: #a1a5ad;
  margin-bottom: 26px;
}
.error {
  color: #ffa49a;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0;
}
.loading {
  padding: 50px;
  color: #a1a5ad;
}
dialog {
  color: #eee;
  background: #1c1e21;
  border: 1px solid #4b4e53;
  border-radius: 10px;
  max-width: 500px;
  width: calc(100% - 32px);
  padding: 24px;
}
dialog::backdrop {
  background: #000a;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #34302a;
  color: #f8dfad;
  border: 1px solid #76603a;
  border-radius: 8px;
  max-width: calc(100% - 32px);
  z-index: 20;
  box-shadow: 0 4px 20px #0008;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #efc76b;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: #efc76b;
  color: #111;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
details > summary {
  cursor: pointer;
  color: #a1a5ad;
  font-size: 12px;
  margin: 12px 0 18px;
}
footer {
  margin-top: 40px;
  border-top: 1px solid #303236;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #777e88;
  font-size: 11px;
}
@media (min-width: 1700px) {
  .shell {
    padding-top: 36px;
  }
}
@media (max-width: 1050px) {
  .topbar {
    padding: 0 22px;
    gap: 24px;
  }
  .nav {
    gap: 16px;
  }
  .shell {
    padding: 24px 22px 50px;
  }
  .resource-strip {
    padding: 12px 22px;
    gap: 12px;
  }
  .builder {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
  }
  .builder-form {
    padding: 18px;
  }
  .service-card {
    padding: 24px;
  }
  .account > span {
    display: none;
  }
  .monitor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gpu:nth-child(3) {
    border-left: 0;
  }
  .gpu:nth-child(n + 3) {
    border-top: 1px solid #34363a;
  }
  .invite-layout {
    grid-template-columns: 1fr;
  }
  .login-aside {
    padding: 40px;
  }
  .login-aside h1 {
    font-size: 36px;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 108px;
    flex-wrap: wrap;
    padding: 16px 18px 0;
    gap: 8px 18px;
  }
  .logo {
    font-size: 17px;
  }
  .nav {
    order: 3;
    width: 100%;
    height: 46px;
    gap: 24px;
    overflow-x: auto;
  }
  .nav a {
    font-size: 12px;
  }
  .account {
    gap: 0;
  }
  .account button {
    padding: 5px 8px;
    min-height: 36px;
  }
  .shell {
    padding: 20px 18px 40px;
  }
  .resource-strip {
    padding: 10px 18px;
    gap: 7px 14px;
  }
  .resource-strip .live {
    display: none;
  }
  .page-head {
    align-items: start;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > .button {
    font-size: 12px;
    padding: 8px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .service-card {
    min-height: 265px;
    padding: 24px;
  }
  .service-card + .service-card {
    border-left: 0;
    border-top: 1px solid #34363a;
  }
  .service-card h2 {
    font-size: 26px;
    margin-top: 24px;
  }
  .service-bottom {
    gap: 10px;
  }
  .service-number {
    font-size: 11px;
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .viewer,
  .viewer-empty {
    min-height: 300px;
  }
  model-viewer {
    height: 340px;
  }
  .gpu {
    padding: 16px;
  }
  .gpu strong {
    font-size: 21px;
  }
  .gpu-title {
    font-size: 11px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .job {
    flex-wrap: wrap;
    gap: 10px;
  }
  .job-actions {
    margin-left: 62px;
  }
  .login-layout {
    display: block;
  }
  .login-aside {
    padding: 24px;
    border: 0;
    border-bottom: 1px solid #34363a;
  }
  .login-aside h1 {
    font-size: 28px;
    margin: 28px 0 10px;
  }
  .login-aside > p {
    display: none;
  }
  .login-aside p {
    font-size: 12px;
    margin: 0;
  }
  .login-content {
    padding: 30px 24px;
  }
  .login-form {
    max-width: 420px;
  }
  .banner {
    align-items: flex-start;
    font-size: 12px;
  }
  .panel {
    padding: 20px;
  }
  .viewer-footer {
    align-items: flex-start;
  }
  .viewer-footer .button {
    font-size: 12px;
  }
  td,
  th {
    padding: 14px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.status {
  white-space: nowrap;
}
.status:before {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  #admin-services table,
  #admin-services tbody {
    display: block;
  }
  #admin-services thead {
    display: none;
  }
  #admin-services tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid #34363a;
    padding: 12px 4px;
  }
  #admin-services tr:last-child {
    border-bottom: 0;
  }
  #admin-services td {
    border: 0;
    padding: 8px 12px;
  }
  #admin-services td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  #admin-services td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  #admin-services td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  #admin-services td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
  #admin-services .actions {
    flex-wrap: nowrap;
  }
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.service-number {
  font-size: 13px;
  color: #a4aab3;
}
.resource-strip,
.status,
.gpu-title,
.gpu p,
.gpu strong small,
.system-line,
.section-head p,
.field label,
.field-label,
.viewer-footer p,
.viewer-label,
.job-info p,
td .muted,
th,
.field-hint,
.small {
  font-size: 13px;
}
.viewer-label {
  letter-spacing: 0;
}
.account button,
.nav a {
  font-size: 13px;
}
footer {
  color: #9ba2ad;
  font-size: 12px;
}
.gpu-title {
  flex-wrap: wrap;
  gap: 3px;
}
.gpu strong {
  white-space: nowrap;
}
.gpu strong small {
  font-size: 12px;
}
@media (max-width: 720px) {
  .gpu {
    padding: 14px;
  }
  .gpu strong {
    font-size: 20px;
  }
  .gpu strong small {
    font-size: 11px;
  }
  .page-head p,
  .nav a {
    font-size: 13px;
  }
  .resource-strip {
    font-size: 12px;
  }
  .resource-strip strong {
    margin-left: 4px;
  }
  .service-number {
    font-size: 12px;
  }
}
