:root {
  --ink: #17201e;
  --muted: #66726f;
  --line: #dbe1de;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --forest: #173f36;
  --forest-deep: #0e2f28;
  --mint: #bfe1d1;
  --lime: #dbec7b;
  --amber: #d99a38;
  --red: #bd4b45;
  --shadow: 0 24px 70px rgb(16 47 40 / 12%);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 12%, rgb(191 225 209 / 45%), transparent 28rem),
    var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(23 63 54 / 3%) 50%, transparent 50.1%),
    radial-gradient(circle at 86% 24%, rgb(219 236 123 / 22%), transparent 22rem);
}

.topbar {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(23 63 54 / 12%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title,
.brand-caption,
.eyebrow,
.hero-description,
.status-message,
.login-intro,
.form-message {
  margin: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.brand-caption {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--forest);
  box-shadow: 0 10px 24px rgb(14 47 40 / 20%);
}

.brand-mark--small {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.brand-mark__orbit,
.brand-mark__core {
  position: absolute;
  border-radius: 999px;
}

.brand-mark__orbit {
  inset: 12px;
  border: 2px solid var(--mint);
}

.brand-mark__orbit::after {
  position: absolute;
  top: -4px;
  right: 1px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--lime);
}

.brand-mark__core {
  inset: 21px;
  background: white;
}

.brand-mark--small .brand-mark__orbit {
  inset: 9px;
}

.brand-mark--small .brand-mark__core {
  inset: 16px;
}

.quiet-button,
.text-button {
  border: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.quiet-button {
  padding: 9px 12px;
  border-radius: 10px;
}

.quiet-button:hover,
.quiet-button:focus-visible {
  background: rgb(23 63 54 / 8%);
}

.runner-layout {
  display: grid;
  width: min(1080px, calc(100% - 48px));
  flex: 1;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 92px) 0 58px;
  align-items: center;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: clamp(56px, 9vw, 112px);
}

.eyebrow {
  color: #51756d;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-copy h1,
.login-card h1 {
  margin: 12px 0 18px;
  color: var(--forest-deep);
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-description {
  max-width: 640px;
  color: #4f5d59;
  font-size: 17px;
  line-height: 1.9;
}

.flow-strip {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  flex-wrap: wrap;
}

.flow-strip > span:not(.flow-arrow) {
  padding: 8px 12px;
  border: 1px solid rgb(23 63 54 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
}

.flow-arrow {
  color: #9aa5a1;
}

.desktop-warning {
  display: flex;
  max-width: 630px;
  margin-top: 26px;
  padding: 16px 18px;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  color: #665942;
  background: rgb(255 247 230 / 76%);
}

.desktop-warning__icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.desktop-warning p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.launch-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.launcher-tile {
  display: flex;
  width: min(100%, 330px);
  min-height: 300px;
  padding: 34px 28px 30px;
  border: 1px solid rgb(23 63 54 / 12%);
  border-radius: 30px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.launcher-tile:hover:not(:disabled),
.launcher-tile:focus-visible:not(:disabled) {
  border-color: rgb(23 63 54 / 28%);
  outline: none;
  box-shadow: 0 30px 80px rgb(16 47 40 / 17%);
  transform: translateY(-4px);
}

.launcher-tile:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
}

.launcher-tile:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.program-window {
  position: relative;
  display: block;
  width: 152px;
  height: 112px;
  overflow: hidden;
  border: 4px solid #6f7876;
  border-radius: 3px;
  background: linear-gradient(145deg, #ffffff, #edf0ee);
  box-shadow:
    inset 0 0 0 1px #c9cecc,
    0 12px 26px rgb(23 32 30 / 12%);
}

.program-window__bar {
  display: flex;
  height: 16px;
  padding-right: 7px;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  border-bottom: 1px solid #c1c6c4;
  background: #929997;
}

.program-window__bar i {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #cdd1cf;
}

.gear {
  position: absolute;
  color: #bdc8c4;
  font-family: "Segoe UI Symbol", sans-serif;
  line-height: 1;
  text-shadow:
    -1px 0 #8b9893,
    0 1px #8b9893,
    1px 0 #8b9893,
    0 -1px #8b9893;
}

.gear--large {
  top: 31px;
  left: 31px;
  font-size: 56px;
}

.gear--small {
  right: 26px;
  bottom: 16px;
  font-size: 39px;
}

.launcher-tile.is-running .gear--large {
  animation: gear-spin 2.5s linear infinite;
}

.launcher-tile.is-running .gear--small {
  animation: gear-spin-reverse 2s linear infinite;
}

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

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

.launcher-tile__name {
  margin-top: 26px;
  color: var(--forest-deep);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.launcher-tile__caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.status-card {
  width: min(100%, 330px);
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / 70%);
}

.status-card__topline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #929d99;
}

.status-dot--running {
  background: #3d8a70;
  box-shadow: 0 0 0 5px rgb(61 138 112 / 12%);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.status-dot--success {
  background: #398567;
}

.status-dot--warning {
  background: var(--amber);
}

.status-dot--error {
  background: var(--red);
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 8px rgb(61 138 112 / 4%); }
}

.status-title {
  font-size: 14px;
  font-weight: 750;
}

.status-message {
  min-height: 21px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.status-meta {
  display: grid;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.status-meta div {
  min-width: 0;
}

.status-meta dt {
  color: #8a9591;
  font-size: 10px;
}

.status-meta dd {
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 26px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(23 63 54 / 10%);
  color: #7e8985;
  font-size: 11px;
}

.page-footer a {
  color: var(--forest);
  text-decoration: none;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
  padding: 46px 42px 40px;
  border: 1px solid rgb(23 63 54 / 12%);
  border-radius: 30px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-bottom: 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.login-card .eyebrow {
  margin-top: 24px;
}

.login-intro {
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  margin-top: 30px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: #44524e;
  font-size: 12px;
  font-weight: 700;
}

.password-row {
  position: relative;
}

.password-row input {
  width: 100%;
  height: 50px;
  padding: 0 70px 0 14px;
  border: 1px solid #cdd5d1;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  outline: none;
}

.password-row input:focus {
  border-color: #558877;
  box-shadow: 0 0 0 4px rgb(85 136 119 / 12%);
}

.text-button {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 8px;
  transform: translateY(-50%);
  font-size: 12px;
}

.primary-button {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--forest);
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled) {
  background: #21594b;
  outline: none;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.primary-button.is-busy::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: var(--lime);
  animation: loading-bar 1.1s ease-in-out infinite;
}

@keyframes loading-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--red);
  font-size: 12px;
}

.security-note {
  display: flex;
  margin-top: 18px;
  padding-top: 18px;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: #78837f;
  font-size: 11px;
  line-height: 1.6;
}

.security-note__dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #62a78f;
}

@media (max-width: 820px) {
  .runner-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description,
  .desktop-warning {
    margin-right: auto;
    margin-left: auto;
  }

  .flow-strip {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .topbar,
  .runner-layout,
  .page-footer {
    width: min(100% - 28px, 1080px);
  }

  .topbar {
    padding-top: 16px;
  }

  .runner-layout {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-description {
    font-size: 15px;
  }

  .flow-arrow {
    display: none;
  }

  .launcher-tile {
    min-height: 280px;
  }

  .login-card {
    padding: 38px 24px 32px;
  }

  .page-footer {
    gap: 16px;
  }
}

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