:root {
  --ink: #0b1813;
  --muted: #607069;
  --paper: #f4f7f1;
  --white: #fff;
  --forest: #071b14;
  --forest-2: #0c2a1e;
  --lime: #b8ee45;
  --lime-dark: #8fc91d;
  --line: #dbe3da;
  --danger: #b94435;
  --shadow: 0 24px 80px rgba(8, 33, 23, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 82% 5%,
      rgba(184, 238, 69, 0.12),
      transparent 25%
    ),
    var(--paper);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(219, 227, 218, 0.85);
  background: rgba(244, 247, 241, 0.88);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark,
.mini-mark {
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand-mark {
  font-size: 24px;
}
.service-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.service-state i {
  width: 8px;
  height: 8px;
  background: var(--lime-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(143, 201, 29, 0.13);
}
.login-shell {
  min-height: calc(100vh - 126px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.65fr);
  align-items: stretch;
}
.hero-panel {
  background: var(--forest);
  color: #fff;
  padding: clamp(64px, 9vw, 132px) clamp(32px, 7vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero-panel:before,
.hero-panel:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(184, 238, 69, 0.12);
  border-radius: 50%;
}
.hero-panel:before {
  width: 580px;
  height: 580px;
  right: -330px;
  top: -240px;
}
.hero-panel:after {
  width: 360px;
  height: 360px;
  right: -160px;
  top: -100px;
}
.eyebrow {
  font:
    500 11px/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.16em;
  color: #718078;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero-panel .eyebrow {
  color: var(--lime);
}
.hero-panel h1 {
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  margin: 0;
  max-width: 780px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.hero-panel h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero-copy {
  color: #acbbb4;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  max-width: 600px;
  margin: 34px 0 48px;
}
.flow {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  padding-top: 24px;
  gap: 18px;
}
.flow div {
  display: grid;
  gap: 10px;
}
.flow b {
  font:
    500 11px "DM Mono",
    monospace;
  color: var(--lime);
}
.flow span {
  font-size: 13px;
  color: #bec9c4;
}
.security-note {
  margin: 52px 0 0;
  color: #879a91;
  font:
    400 11px "DM Mono",
    monospace;
  letter-spacing: 0.02em;
}
.security-note span {
  color: var(--lime);
  margin-right: 6px;
}
.auth-card {
  align-self: center;
  margin: 56px clamp(28px, 6vw, 92px);
  max-width: 430px;
  width: calc(100% - 56px);
  justify-self: center;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 38px;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 32px;
}
.mini-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.card-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 3px;
}
.card-heading h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 0;
}
.auth-card form {
  display: grid;
  gap: 19px;
}
.auth-card label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.auth-card input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fbfcfa;
  outline: none;
  transition: 0.2s;
}
.auth-card input:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(143, 201, 29, 0.13);
}
.primary-button {
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  min-height: 51px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  transition: 0.2s;
}
.primary-button:hover {
  background: var(--forest-2);
  transform: translateY(-1px);
}
.primary-button span {
  color: var(--lime);
  font-size: 20px;
}
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-error {
  min-height: 16px;
  margin: -8px 0 -8px;
  color: var(--danger);
  font-size: 12px;
}
.provision-note {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.provision-note > span {
  width: 18px;
  height: 18px;
  border: 1px solid #aab6b0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 500 10px "DM Mono";
  flex: none;
}
.provision-note p {
  margin: 0;
}
.provision-note strong {
  display: block;
  color: #3a4a42;
}
.device-box {
  background: #eff8dc;
  border: 1px solid #d6eab0;
  padding: 15px 17px;
  margin: -12px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}
.device-box span {
  font-size: 11px;
  color: #5e7154;
}
.device-box strong {
  grid-row: 1/3;
  grid-column: 2;
  font: 500 17px "DM Mono";
  align-self: center;
}
.device-box small {
  font-size: 10px;
  color: #718166;
}
.dashboard {
  max-width: 1320px;
  margin: 0 auto;
  padding: 66px 34px 84px;
}
.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
}
.welcome-row h1 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.055em;
  margin: 0 0 9px;
  line-height: 1;
}
.welcome-row h1 span {
  color: #477d1c;
}
.welcome-row > div > p:last-child {
  color: var(--muted);
  margin: 0;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 12px "DM Mono";
}
.quiet-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 5px;
  padding: 9px 14px;
  color: var(--ink);
}
.quiet-button:hover {
  border-color: #aebbb2;
  background: #fff;
}
.approval-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  background: var(--forest);
  color: #fff;
  padding: 27px 30px;
  margin-bottom: 22px;
  border-radius: 8px;
}
.approval-card h2 {
  margin: 0 0 5px;
  font-size: 21px;
}
.approval-card p {
  margin: 0;
  color: #aebeb6;
  font-size: 12px;
}
.approval-card .eyebrow {
  color: var(--lime);
  margin-bottom: 7px;
}
.approval-card > strong {
  font: 500 24px "DM Mono";
  letter-spacing: 0.08em;
  color: var(--lime);
  border: 1px dashed rgba(184, 238, 69, 0.4);
  padding: 12px 18px;
}
.approval-card > div:nth-of-type(2) {
  display: flex;
  gap: 9px;
}
.approval-card .quiet-button {
  color: #fff;
  border-color: #385045;
}
.compact {
  min-height: 38px;
  background: var(--lime);
  color: var(--forest);
  padding: 9px 16px;
}
.compact:hover {
  background: #cbf66f;
}
.approval-message {
  grid-column: 1/-1;
  color: var(--lime) !important;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.metric-card {
  min-height: 156px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.metric-card.lime {
  background: var(--lime);
  border-color: var(--lime);
}
.metric-card > span {
  font: 500 10px "DM Mono";
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #56675f;
}
.metric-card strong {
  font-size: 36px;
  letter-spacing: -0.05em;
  margin: auto 0 5px;
}
.metric-card small {
  color: #718078;
}
.metric-card.lime small,
.metric-card.lime > span {
  color: #38500e;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel h2 {
  font-size: 22px;
  letter-spacing: -0.035em;
  margin: 0;
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
}
.session-list {
  margin-top: 22px;
}
.live-tps-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 24px;
}
.live-tps-panel h2 { margin: 0 0 8px; font-size: 18px; }
.live-tps-description, .live-tps-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.live-tps-note { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.live-tps-reading { min-width: 180px; font-variant-numeric: tabular-nums; }
.live-tps-reading strong { font-size: clamp(26px, 4vw, 36px); letter-spacing: -1px; }
.live-tps-reading > span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.live-tps-reading small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.session-row .session-tps { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.session-row .session-tps.generating { color: var(--accent, #258459); }
.session-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #edf1ec;
  padding: 17px 0;
}
.terminal-icon {
  width: 40px;
  height: 40px;
  background: #e9f3d8;
  color: #3c651c;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font: 500 11px "DM Mono";
}
.session-row b {
  font-size: 13px;
}
.session-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.session-row.inactive {
  opacity: 0.48;
}
.revoke-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  font-size: 11px;
  padding: 8px;
}
.empty-state {
  color: var(--muted);
  font-size: 12px;
  padding: 32px 0;
  margin: 0;
}
.guide-panel {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.guide-panel .eyebrow {
  color: var(--lime);
}
.guide-panel ol {
  list-style: none;
  margin: 27px 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.guide-panel li {
  display: flex;
  gap: 13px;
}
.guide-panel li > span {
  width: 24px;
  height: 24px;
  border: 1px solid #395247;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--lime);
  font: 500 10px "DM Mono";
}
.guide-panel b {
  font-size: 12px;
}
.guide-panel li p {
  font-size: 11px;
  line-height: 1.55;
  color: #91a098;
  margin: 5px 0 0;
}
.limit-box {
  border-top: 1px solid #2c4439;
  padding-top: 21px;
}
.limit-box > span {
  font-size: 10px;
  color: #81928a;
}
.limit-box > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.limit-box div span {
  background: #18372a;
  color: #c3d2cb;
  padding: 6px 8px;
  border-radius: 3px;
  font: 10px "DM Mono";
}
footer {
  min-height: 54px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  font: 10px "DM Mono";
  color: #7b8882;
  background: var(--paper);
}
@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    padding: 70px 34px;
  }
  .auth-card {
    margin: 48px auto;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .approval-card {
    grid-template-columns: 1fr auto;
  }
  .approval-card > div:nth-of-type(2) {
    grid-column: 1/-1;
  }
  .guide-panel {
    min-height: auto;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .service-state {
    font-size: 0;
  }
  .login-shell {
    min-height: auto;
  }
  .hero-panel {
    padding: 58px 24px;
  }
  .hero-panel h1 {
    font-size: 48px;
  }
  .hero-copy {
    font-size: 15px;
    margin: 26px 0 34px;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .flow div {
    grid-template-columns: 28px 1fr;
  }
  .security-note {
    margin-top: 36px;
  }
  .auth-card {
    padding: 27px;
    margin: 24px;
    width: calc(100% - 48px);
  }
  .dashboard {
    padding: 45px 18px 65px;
  }
  .welcome-row {
    align-items: flex-start;
    gap: 22px;
  }
  .user-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card {
    min-height: 130px;
    padding: 18px;
  }
  .metric-card strong {
    font-size: 28px;
  }
  .panel {
    padding: 22px 18px;
  }
  .approval-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .approval-card > strong {
    justify-self: start;
  }
  .approval-card > div:nth-of-type(2) {
    grid-column: auto;
  }
  .session-row {
    grid-template-columns: 38px 1fr;
  }
  .session-row .revoke-button {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 16px 18px;
  }
}

/* Dedicated device authorization */
.device-body {
  background: var(--forest);
  color: #fff;
}
.device-body .topbar {
  background: rgba(7, 27, 20, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
}
.device-body .brand {
  color: #fff;
}
.device-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.device-step span {
  font:
    500 9px "DM Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.device-step b {
  font-size: 12px;
  color: #c5d0cb;
}
.device-shell {
  min-height: calc(100vh - 126px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: clamp(54px, 8vw, 110px) clamp(28px, 8vw, 126px);
  position: relative;
  overflow: hidden;
}
.device-shell:before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(184, 238, 69, 0.1);
  border-radius: 50%;
  left: -380px;
  bottom: -360px;
  pointer-events: none;
}
.device-intro {
  max-width: 690px;
}
.device-intro .eyebrow {
  color: var(--lime);
}
.device-intro h1 {
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0;
}
.device-intro h1 em {
  font-style: normal;
  color: var(--lime);
}
.device-intro-copy {
  max-width: 590px;
  color: #aebeb6;
  font-size: 17px;
  line-height: 1.72;
  margin: 30px 0 42px;
}
.device-privacy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 25px;
  display: grid;
  gap: 19px;
  max-width: 620px;
}
.device-privacy > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}
.device-privacy > div > span {
  font:
    500 10px "DM Mono",
    ui-monospace,
    monospace;
  color: var(--lime);
  padding-top: 2px;
}
.device-privacy p {
  margin: 0;
  display: grid;
  gap: 4px;
}
.device-privacy b {
  font-size: 12px;
}
.device-privacy small {
  color: #82958c;
  font-size: 11px;
  line-height: 1.5;
}
.device-card {
  background: #fff;
  color: var(--ink);
  border: 1px solid #dce6df;
  border-radius: 10px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
  padding: 34px;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.device-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 27px;
}
.device-card-number {
  width: 42px;
  height: 42px;
  background: var(--forest);
  color: var(--lime);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font:
    500 11px "DM Mono",
    ui-monospace,
    monospace;
}
.device-card-number.lime-number {
  background: var(--lime);
  color: var(--forest);
}
.device-card-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 4px;
}
.device-card-head h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0;
}
.device-auth-form {
  display: grid;
  gap: 17px;
}
.device-auth-form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.device-auth-form input {
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  background: #fbfcfa;
  outline: none;
}
.device-auth-form input:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(143, 201, 29, 0.13);
}
.device-auth-form .code-label input {
  height: 62px;
  font:
    500 24px "DM Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--forest);
  background: #eff7e3;
}
.field-help {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: -9px;
}
.login-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signed-in-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f5ec;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.signed-in-row div {
  display: grid;
  gap: 3px;
}
.signed-in-row span {
  font-size: 9px;
  color: var(--muted);
}
.signed-in-row b {
  font-size: 11px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #567b33;
  font-size: 10px;
  padding: 6px;
}
.no-register {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 20px 0 0;
}
.device-target {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  margin-bottom: 13px;
}
.terminal-glyph {
  width: 47px;
  height: 47px;
  border-radius: 7px;
  background: var(--forest);
  color: var(--lime);
  display: grid;
  place-items: center;
  font:
    500 12px "DM Mono",
    ui-monospace,
    monospace;
}
.device-target div {
  display: grid;
  gap: 5px;
}
.device-target div span {
  font-size: 9px;
  color: var(--muted);
}
.device-target strong {
  font-size: 14px;
}
.code-compare {
  background: var(--lime);
  border-radius: 8px;
  padding: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.code-compare span {
  font-size: 10px;
  color: #415716;
}
.code-compare strong {
  font:
    500 20px "DM Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}
.device-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0;
  color: var(--muted);
}
.device-warning > span {
  width: 22px;
  height: 22px;
  border: 1px solid #d5b78c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a36420;
  font-size: 10px;
}
.device-warning p {
  font-size: 10px;
  margin: 0;
}
.device-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}
.device-actions .primary-button {
  min-width: 0;
}
.device-result {
  text-align: center;
  padding: 18px 4px 5px;
}
.result-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--forest);
  font-size: 29px;
  margin: 0 auto 22px;
}
.result-icon.denied {
  background: #f4d8d2;
  color: var(--danger);
}
.device-result .eyebrow {
  color: #668641;
  margin-bottom: 8px;
}
.device-result h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.device-result > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 390px;
  margin: 0 auto 26px;
}
.result-link {
  text-decoration: none;
}
.device-body footer {
  background: var(--forest);
  border-color: rgba(255, 255, 255, 0.1);
  color: #71867c;
}
@media (max-width: 960px) {
  .device-shell {
    grid-template-columns: 1fr;
    padding: 70px 30px;
  }
  .device-intro {
    justify-self: center;
    width: 100%;
  }
  .device-card {
    max-width: 620px;
  }
  .device-privacy {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
  .device-privacy > div {
    grid-template-columns: 1fr;
  }
  .device-intro h1 br {
    display: none;
  }
}
@media (max-width: 620px) {
  .device-step span {
    display: none;
  }
  .device-shell {
    padding: 46px 18px 64px;
    gap: 37px;
  }
  .device-intro h1 {
    font-size: 47px;
  }
  .device-intro-copy {
    font-size: 14px;
    margin: 24px 0 31px;
  }
  .device-privacy {
    grid-template-columns: 1fr;
  }
  .device-privacy > div {
    grid-template-columns: 28px 1fr;
  }
  .device-card {
    padding: 24px 20px;
  }
  .login-fields {
    grid-template-columns: 1fr;
  }
  .device-actions {
    grid-template-columns: 1fr;
  }
  .device-actions .quiet-button {
    order: 2;
  }
  .code-compare {
    align-items: flex-start;
    flex-direction: column;
  }
  .device-body footer {
    display: none;
  }
}
/* DI2 console refresh: no remote fonts, trackers or promotion assets. */
:root {
  --ink: #172c34;
  --muted: #62757f;
  --paper: #f4f7f9;
  --forest: #123d3e;
  --forest-2: #1c5250;
  --lime: #cfefdf;
  --lime-dark: #187e70;
  --line: #dfe7eb;
  --shadow: 0 12px 40px #233d4d0a;
}
html {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
body {
  background: var(--paper);
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--forest);
}
button,
a,
summary {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid #6fbdad;
  outline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
a.quiet-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.quiet-button,
.primary-button {
  border-radius: 9px;
  min-height: 40px;
  font-size: 13px;
  justify-content: center;
  gap: 14px;
}
.primary-button:hover {
  transform: none;
}
.topbar {
  height: 68px;
  padding-inline: clamp(22px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
.service-state {
  font-size: 12px;
}
.service-state.offline i {
  background: #bd573f;
  box-shadow: none;
}
.brand {
  gap: 12px;
}
.brand-mark {
  font-size: 25px;
  letter-spacing: -0.055em;
}
.eyebrow {
  font-family: inherit;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 650;
}
.login-shell {
  min-height: calc(100dvh - 126px);
  max-width: 1320px;
  margin: auto;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 60px 44px;
  gap: 70px;
}
.hero-panel {
  padding: 40px 12px;
  background: none;
  color: var(--ink);
  overflow: visible;
}
.hero-panel:before,
.hero-panel:after {
  display: none;
}
.hero-panel h1 {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.hero-panel h1 em {
  color: var(--lime-dark);
}
.hero-panel .eyebrow {
  color: var(--lime-dark);
}
.hero-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 26px 0 34px;
}
.flow {
  border-color: var(--line);
  gap: 16px;
}
.flow b {
  color: var(--lime-dark);
}
.flow span {
  color: var(--muted);
  font-size: 12px;
}
.security-note {
  font: 12px/1.7 inherit;
  letter-spacing: normal;
  color: var(--muted);
  margin-top: 30px;
}
.security-note span {
  color: var(--lime-dark);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 36px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.auth-card label,
.device-auth-form label {
  font-size: 13px;
}
.auth-card input,
.device-auth-form input {
  border-radius: 9px;
  background: #fff;
}
.form-error {
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.provision-note {
  font-size: 12px;
}
.provision-note strong {
  font-weight: 500;
}
.card-heading h2 {
  font-size: 24px;
}
.mini-mark {
  color: #fff;
}
.device-box {
  border-radius: 9px;
}
.dashboard {
  max-width: 1440px;
  padding: 38px 32px 60px;
}
.welcome-row {
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}
.welcome-row h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.welcome-row h1 span {
  color: var(--lime-dark);
}
.welcome-row > div > p:last-child {
  font-size: 13px;
}
.user-actions {
  font: 13px/1.5 inherit;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.metric-grid {
  gap: 16px;
  margin-bottom: 20px;
}
.metric-card {
  border-radius: 12px;
  padding: 22px;
  min-height: 174px;
  gap: 5px;
}
.metric-card.lime {
  background: #edf7f4;
  border-color: #cde5de;
}
.metric-card.lime small,
.metric-card.lime > span {
  color: #39756b;
}
.metric-card > span {
  font: 600 12px/1.5 inherit;
  letter-spacing: normal;
}
.metric-card strong {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  margin: 12px 0 2px;
  letter-spacing: -0.02em;
}
.metric-card small {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
progress {
  appearance: none;
  border: 0;
  height: 5px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0;
  background: #e7edee;
}
progress::-webkit-progress-bar {
  background: #e7edee;
}
progress::-webkit-progress-value {
  background: var(--lime-dark);
}
progress::-moz-progress-bar {
  background: var(--lime-dark);
}
progress.near-limit::-webkit-progress-value {
  background: #bf613d;
}
progress.near-limit::-moz-progress-bar {
  background: #bf613d;
}
.content-grid {
  gap: 20px;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
}
.panel {
  padding: 24px;
  border-radius: 12px;
  min-width: 0;
}
.panel h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.panel-title .eyebrow {
  margin-bottom: 6px;
}
.guide-panel {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.guide-panel .eyebrow {
  color: var(--muted);
}
.guide-panel li > span {
  color: var(--lime-dark);
  border-color: #c7e1d8;
  background: #edf7f4;
  font-size: 11px;
}
.guide-panel b {
  font-size: 13px;
}
.guide-panel li p {
  color: var(--muted);
  font-size: 12px;
}
.limit-box {
  border-color: var(--line);
}
.limit-box > span {
  font-size: 12px;
  color: var(--muted);
}
.limit-box > div {
  max-height: 120px;
  overflow: auto;
}
.limit-box div span {
  font:
    11px/1.6 ui-monospace,
    monospace;
  background: #f1f5f6;
  color: #3d6268;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.session-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.session-filter input {
  accent-color: var(--lime-dark);
}
.session-list {
  margin-top: 12px;
  max-height: 480px;
  overflow: auto;
}
.session-row {
  gap: 12px;
  padding-block: 16px;
}
.session-row b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.session-row p {
  font-size: 12px;
  line-height: 1.7;
}
.session-row.inactive {
  opacity: 0.65;
}
.terminal-icon {
  background: #edf7f4;
  color: var(--lime-dark);
  border-radius: 9px;
}
.revoke-button {
  border: 1px solid #ead5d0;
  border-radius: 7px;
  min-height: 36px;
  padding: 6px 11px;
  font-size: 12px;
}
.empty-state {
  font-size: 13px;
  padding: 28px 12px;
  line-height: 1.8;
}
.pricing-panel {
  margin-top: 20px;
}
.pricing-panel > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.model-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.model-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.model-toolbar input,
.model-toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  min-width: 150px;
}
.model-toolbar > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  padding-block: 10px;
}
.price-table-wrap {
  overflow: auto;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
#model-prices {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
#model-prices th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fa;
  color: #60747e;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}
#model-prices th,
#model-prices td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
#model-prices td:first-child {
  font:
    12px/1.6 ui-monospace,
    monospace;
  white-space: nowrap;
}
#model-prices td:last-child {
  min-width: 230px;
  max-width: 430px;
  line-height: 1.7;
  color: var(--muted);
}
#model-prices td:not(:last-child) {
  white-space: nowrap;
}
#model-prices tr:hover td {
  background: #f7faf9;
}
.device-body {
  background: var(--paper);
  color: var(--ink);
}
.device-body .topbar {
  background: #fff;
  border-color: var(--line);
}
.device-body .brand {
  color: var(--ink);
}
.device-step span,
.device-step b {
  color: var(--muted);
}
.device-shell {
  max-width: 1280px;
  margin: auto;
  padding: 64px 44px;
  gap: 70px;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100dvh - 126px);
}
.device-shell:before {
  display: none;
}
.device-intro h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.device-intro h1 em,
.device-intro .eyebrow {
  color: var(--lime-dark);
}
.device-intro-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 24px 0 30px;
}
.device-privacy {
  border-color: var(--line);
}
.device-privacy > div > span {
  color: var(--lime-dark);
}
.device-privacy small {
  font-size: 12px;
  color: var(--muted);
}
.device-privacy b {
  font-size: 13px;
}
.device-card {
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px;
  min-width: 0;
}
.device-card-head h2 {
  font-size: 22px;
}
.device-card-head p {
  font-size: 12px;
}
.device-auth-form .code-label input {
  font-size: 24px;
  background: #f2f8f5;
  border-color: #c8dfd7;
}
.login-fields {
  grid-template-columns: 1fr;
}
.field-help,
.no-register,
.device-warning p {
  font-size: 12px;
  line-height: 1.6;
}
.signed-in-row {
  background: #f2f8f5;
}
.signed-in-row span {
  font-size: 11px;
}
.signed-in-row b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.text-button {
  font-size: 12px;
  color: var(--lime-dark);
  min-height: 36px;
}
.device-target div span {
  font-size: 12px;
}
.device-result > p:not(.eyebrow) {
  font-size: 13px;
}
.device-body footer {
  display: flex;
  background: var(--paper);
  color: var(--muted);
  border-color: var(--line);
}
.code-compare {
  background: #e3f2eb;
}
.code-compare span {
  font-size: 12px;
  color: #356358;
}
.device-warning {
  align-items: flex-start;
}
.device-warning > span {
  flex-shrink: 0;
}
.device-actions {
  grid-template-columns: auto 1fr;
}
#edit-device-code {
  margin-top: 12px;
}
#account-error:empty {
  display: none;
}
.portal-alert {
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 13px 18px;
  border: 1px solid #efcbc4;
  background: #fff6f3;
  border-radius: 9px;
  color: #9f4738;
  font-size: 13px;
  line-height: 1.7;
}
.boot-status {
  text-align: center;
  padding: 100px 24px;
  color: var(--muted);
}
.action-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px #172c3433;
}
.action-dialog::backdrop {
  background: #142e3b66;
  backdrop-filter: blur(3px);
}
.action-dialog h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.action-dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.danger-button {
  background: #aa483b;
}
.danger-button:hover {
  background: #913b30;
}
footer {
  font: 11px/1.6 inherit;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .login-shell,
  .device-shell {
    gap: 32px;
    padding: 48px 28px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .device-intro h1 br {
    display: block;
  }
  .device-privacy {
    grid-template-columns: 1fr;
  }
  .device-privacy > div {
    grid-template-columns: 28px 1fr;
  }
}
@media (max-width: 720px) {
  .login-shell,
  .device-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
    gap: 24px;
  }
  .hero-panel {
    padding: 12px 0;
  }
  .hero-panel h1 {
    font-size: 36px;
  }
  .hero-panel h1 br {
    display: none;
  }
  .hero-copy {
    font-size: 14px;
    margin: 18px 0;
  }
  .hero-panel .flow,
  .hero-panel .security-note,
  .device-privacy {
    display: none;
  }
  .auth-card {
    max-width: none;
    padding: 26px;
    margin: 0;
  }
  .device-intro h1 {
    font-size: 34px;
  }
  .device-intro h1 br {
    display: none;
  }
  .device-intro-copy {
    font-size: 14px;
    margin: 16px 0 0;
  }
  .device-card {
    max-width: none;
    padding: 24px;
  }
  .dashboard {
    padding: 28px 18px 40px;
  }
  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .welcome-row h1 {
    font-size: 28px;
  }
  .user-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 16px;
    min-height: 164px;
  }
  .metric-card strong {
    font-size: 26px;
  }
  .metric-card small {
    overflow-wrap: anywhere;
  }
  .panel {
    padding: 20px 16px;
  }
  .model-toolbar {
    flex-wrap: wrap;
    align-items: center;
  }
  .model-toolbar label {
    flex: 1;
    min-width: 0;
  }
  .model-toolbar input,
  .model-toolbar select {
    width: 100%;
    min-width: 0;
  }
  .model-toolbar > span {
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .service-state {
    font-size: 11px;
  }
  .device-step span {
    display: none;
  }
  .session-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .session-row .revoke-button {
    grid-column: 2;
    justify-self: start;
    padding: 6px 11px;
  }
  .portal-alert {
    margin: 16px 18px 0;
  }
  .topbar {
    padding-inline: 20px;
  }
  .device-actions {
    grid-template-columns: 1fr;
  }
  .device-actions .quiet-button {
    order: 2;
  }
  .code-compare {
    align-items: flex-start;
  }
  .brand {
    font-size: 14px;
  }
  footer {
    padding: 16px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
