@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-cyrillic-ext-400-normal-6VZLC4H3.woff2") format("woff2"),
    url("./media/inter-cyrillic-ext-400-normal-FIY4AS7B.woff") format("woff");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-cyrillic-400-normal-G4TQJ72A.woff2") format("woff2"),
    url("./media/inter-cyrillic-400-normal-U23O635P.woff") format("woff");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-greek-ext-400-normal-JTQ56XIH.woff2") format("woff2"),
    url("./media/inter-greek-ext-400-normal-RDW6D2QK.woff") format("woff");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-greek-400-normal-24BA4PDP.woff2") format("woff2"),
    url("./media/inter-greek-400-normal-ZRMMCGZA.woff") format("woff");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-vietnamese-400-normal-3ZH4IT4J.woff2") format("woff2"),
    url("./media/inter-vietnamese-400-normal-VHOS7L4B.woff") format("woff");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-latin-ext-400-normal-GKRFIQRI.woff2") format("woff2"),
    url("./media/inter-latin-ext-400-normal-J3OKVTXA.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:
    url("./media/inter-latin-400-normal-55WT6UWF.woff2") format("woff2"),
    url("./media/inter-latin-400-normal-FR5HOXA4.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-cyrillic-ext-500-normal-7YGZWFHX.woff2") format("woff2"),
    url("./media/inter-cyrillic-ext-500-normal-LJV3DWSQ.woff") format("woff");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-cyrillic-500-normal-PQK3XKF6.woff2") format("woff2"),
    url("./media/inter-cyrillic-500-normal-XH4MSKNN.woff") format("woff");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-greek-ext-500-normal-ZPKR4LNJ.woff2") format("woff2"),
    url("./media/inter-greek-ext-500-normal-PJFKOJVL.woff") format("woff");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-greek-500-normal-6QPUHW6Z.woff2") format("woff2"),
    url("./media/inter-greek-500-normal-3GRTEB6X.woff") format("woff");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-vietnamese-500-normal-PQFGSX3P.woff2") format("woff2"),
    url("./media/inter-vietnamese-500-normal-UOTTXFJL.woff") format("woff");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-latin-ext-500-normal-3G2JDXWM.woff2") format("woff2"),
    url("./media/inter-latin-ext-500-normal-UGNIJJWL.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src:
    url("./media/inter-latin-500-normal-W62DVTXI.woff2") format("woff2"),
    url("./media/inter-latin-500-normal-ZNGIZ2YB.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-cyrillic-ext-600-normal-66Z4CWZK.woff2") format("woff2"),
    url("./media/inter-cyrillic-ext-600-normal-5S66ZLPP.woff") format("woff");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-cyrillic-600-normal-F5BISKXR.woff2") format("woff2"),
    url("./media/inter-cyrillic-600-normal-YOMHVXBS.woff") format("woff");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-greek-ext-600-normal-D4Z5GF6D.woff2") format("woff2"),
    url("./media/inter-greek-ext-600-normal-BCNJL3T4.woff") format("woff");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-greek-600-normal-ZRJSSN4C.woff2") format("woff2"),
    url("./media/inter-greek-600-normal-J3AMDQNF.woff") format("woff");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-vietnamese-600-normal-TVIYLGI7.woff2") format("woff2"),
    url("./media/inter-vietnamese-600-normal-YXHD7S3I.woff") format("woff");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-latin-ext-600-normal-HCYHLWH6.woff2") format("woff2"),
    url("./media/inter-latin-ext-600-normal-JH5KI6RD.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/inter-latin-600-normal-R6Y2SZCR.woff2") format("woff2"),
    url("./media/inter-latin-600-normal-ZYHV6QZT.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/sora-latin-ext-600-normal-TWK7OYEB.woff2") format("woff2"),
    url("./media/sora-latin-ext-600-normal-LL3GC6JF.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src:
    url("./media/sora-latin-600-normal-RPOBQQHN.woff2") format("woff2"),
    url("./media/sora-latin-600-normal-FSEJYYJR.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src:
    url("./media/sora-latin-ext-700-normal-VOYQVTRA.woff2") format("woff2"),
    url("./media/sora-latin-ext-700-normal-N2YENBBN.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src:
    url("./media/sora-latin-700-normal-VBOJYNIO.woff2") format("woff2"),
    url("./media/sora-latin-700-normal-PUTQAZHJ.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src:
    url("./media/sora-latin-ext-800-normal-FR34THWU.woff2") format("woff2"),
    url("./media/sora-latin-ext-800-normal-6VT4RQET.woff") format("woff");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src:
    url("./media/sora-latin-800-normal-YDFXR2V6.woff2") format("woff2"),
    url("./media/sora-latin-800-normal-HKYRI6KP.woff") format("woff");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #070b1d;
  --panel: #10152b;
  --panel-2: #151b34;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #8f98b6;
  --text: #f8f8ff;
  --purple: #7d31ff;
  --pink: #ed2388;
  --orange: #ff5b2c;
  --cyan: #32c7ff;
  --green: #38d996;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--navy);
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
.site-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 34px 16px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% -5%,
      rgba(116, 38, 255, 0.24),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(236, 35, 136, 0.16),
      transparent 30%
    ),
    #060918;
}
.ambient {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
}
.ambient-one {
  background: var(--purple);
  left: -260px;
  top: 25%;
}
.ambient-two {
  background: var(--orange);
  right: -300px;
  bottom: -130px;
}
.app-frame {
  width: min(430px, 100%);
  min-height: 820px;
  max-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: linear-gradient(180deg, #12172efa, #070a1bfc);
  box-shadow:
    0 45px 110px #0000008c,
    0 0 0 7px #ffffff06;
}
.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #070b1dc7;
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #070b1d url("./media/floforge-logo-6W5WUPAL.png") center/cover
    no-repeat;
  box-shadow: 0 6px 18px #6724ff4d;
}
.brand div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand strong {
  font:
    700 18px/1.1 Sora,
    sans-serif;
  letter-spacing: -0.5px;
}
.brand span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.connection-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #b8f6dc;
  padding: 7px 8px;
  background: #38d99617;
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: 999px;
  white-space: nowrap;
}
.connection-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ffffff09;
  cursor: pointer;
}
.preview-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 9px;
  font-weight: 600;
  color: #d8c9ff;
  background: linear-gradient(90deg, #7d31ff33, #ed238814);
  border-bottom: 1px solid rgba(125, 49, 255, 0.2);
}
.preview-strip span {
  color: var(--muted);
  margin-left: auto;
  font-weight: 500;
}
.content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 49, 255, 0.45) transparent;
}
.screen {
  padding: 20px 17px 28px;
  animation: screenIn 0.25s ease;
}
@keyframes screenIn {
  0% {
    opacity: 0.2;
    transform: translateY(6px);
  }
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.page-heading.compact {
  align-items: flex-start;
}
.eyebrow,
.section-title span,
.preflight-head span {
  display: block;
  color: #a98cff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    700 25px/1.15 Sora,
    sans-serif;
  letter-spacing: -0.8px;
}
.page-heading p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin-top: 6px;
}
.status-orb {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #c9b5ff;
  border: 1px solid rgba(125, 49, 255, 0.3);
  background: #7d31ff1a;
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(142, 86, 255, 0.35);
  background: linear-gradient(145deg, #7d31ff30, #ed238812 55%, #ff5b2c0f);
  box-shadow:
    inset 0 1px #ffffff0f,
    0 16px 35px #0000002e;
}
.hero-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  top: -95px;
  background: var(--purple);
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.28;
}
.hero-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #7d31ff, #ce25ad);
  box-shadow: 0 9px 24px #7d31ff61;
}
.hero-top > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.hero-top span {
  color: #aaa5c4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.hero-top strong {
  font:
    600 14px/1.3 Sora,
    sans-serif;
}
.live-dot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.live-dot span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #69708d;
}
.live-dot.active {
  color: #b9f5dc;
  border-color: #38d9964d;
}
.live-dot.active span {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.start-button {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 13px;
  margin-top: 14px;
  padding: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  background: linear-gradient(100deg, #7630ff, #c62eae 55%, #fb4f54);
  box-shadow:
    0 10px 28px #752fff59,
    inset 0 1px #ffffff40;
  transition:
    transform 0.18s,
    filter 0.18s;
}
.start-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.start-button.stop {
  background: linear-gradient(100deg, #d93666, #ff5b2c);
}
.hero-card > p {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
}
.hero-card > p svg {
  color: var(--green);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 8px;
  margin: 12px 0;
}
.stats-grid article {
  padding: 11px 10px;
  min-width: 0;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #ffffff07;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto auto;
}
.stat-icon {
  grid-row: 1/4;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-right: 7px;
}
.stat-icon.purple,
.setting-icon.purple {
  color: #bca3ff;
  background: #7d31ff26;
}
.stat-icon.pink,
.setting-icon.pink {
  color: #ff87c1;
  background: #ed238824;
}
.stat-icon.orange,
.setting-icon.orange {
  color: #ff9a7d;
  background: #ff5b2c24;
}
.setting-icon.cyan {
  color: #7bdbff;
  background: #32c7ff24;
}
.stats-grid span {
  font-size: 8px;
  color: var(--muted);
}
.stats-grid strong {
  font:
    700 13px/1.3 Sora,
    sans-serif;
  white-space: nowrap;
}
.stats-grid small {
  font-size: 7px;
  color: #69718f;
}
.alert-card {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  margin-bottom: 17px;
  border: 1px solid;
}
.alert-card.success {
  background: #38d99614;
  border-color: #38d99633;
}
.alert-card.info {
  background: #32c7ff14;
  border-color: #32c7ff33;
}
.alert-card.warning {
  background: #ffae4814;
  border-color: #ffae4833;
}
.alert-card.error {
  background: #ff4c6214;
  border-color: #ff4c6233;
}
.alert-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff0f;
}
.alert-mark svg {
  width: 14px;
}
.success .alert-mark {
  color: var(--green);
}
.info .alert-mark {
  color: var(--cyan);
}
.warning .alert-mark {
  color: #ffae48;
}
.error .alert-mark {
  color: #ff5269;
}
.alert-card strong {
  font-size: 9px;
}
.alert-card p {
  margin-top: 2px;
  color: #abb3cf;
  font-size: 8px;
  line-height: 1.45;
}
.alert-card > button {
  border: 0;
  background: transparent;
  color: #737c99;
  cursor: pointer;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 18px 1px 9px;
}
.section-title h2,
.settings-heading h2,
.preflight-head h2 {
  font:
    600 13px/1.25 Sora,
    sans-serif;
}
.section-title button {
  border: 0;
  background: transparent;
  color: #a98cff;
  font-size: 8px;
  cursor: pointer;
}
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 4px 12px;
  background: #ffffff06;
}
.timeline-item {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child {
  border-bottom: 0;
}
.timeline-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #8992b3;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff08;
}
.timeline-item.active .timeline-dot {
  color: #bdabff;
  border-color: #7d31ff47;
  background: #7d31ff1a;
}
.timeline-item strong {
  display: block;
  font-size: 9px;
}
.timeline-item p {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}
.timeline-item time {
  font-size: 7px;
  color: #68708b;
}
.safety-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #9ba5c4;
  background: #ffffff06;
  border: 1px dashed rgba(255, 255, 255, 0.11);
}
.safety-row div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.safety-row strong {
  font-size: 9px;
  color: #d4d9eb;
}
.safety-row span {
  font-size: 8px;
}
.safety-row > svg:last-child {
  color: var(--green);
}
.summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 6px;
  border-radius: 17px;
  background: linear-gradient(120deg, #7d31ff21, #ed23880f);
  border: 1px solid rgba(125, 49, 255, 0.2);
}
.summary-card div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.summary-card div:last-child {
  border: 0;
}
.summary-card strong {
  display: block;
  font: 700 15px Sora;
}
.summary-card span {
  color: var(--muted);
  font-size: 7px;
}
.add-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 49, 255, 0.28) !important;
  border-radius: 9px;
  background: #7d31ff17 !important;
}
.army-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.army-card {
  display: grid;
  grid-template-columns: 34px 1fr 38px 38px 25px;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff07;
}
.army-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.army-badge svg {
  width: 16px;
}
.army-badge.violet {
  color: #c5afff;
  background: #7d31ff26;
}
.army-badge.pink {
  color: #ff9acb;
  background: #ed238826;
}
.army-badge.orange {
  color: #ffad8f;
  background: #ff5b2c26;
}
.army-badge.cyan {
  color: #8ae1ff;
  background: #32c7ff24;
}
.army-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.army-main span,
.keycap span,
.quantity span {
  color: #737d9e;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.army-main input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 1px 0;
  background: transparent;
  color: #eef0fb;
  font-size: 9px;
  font-weight: 600;
}
.keycap,
.quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.keycap input,
.quantity input {
  width: 32px;
  height: 25px;
  text-align: center;
  color: #fff;
  outline: 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #ffffff0a;
  font-size: 9px;
  font-weight: 700;
}
.quantity input {
  -moz-appearance: textfield;
}
.delete-button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #737c99;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.validation-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 11px;
  border-radius: 14px;
  background: #38d99612;
  border: 1px solid rgba(56, 217, 150, 0.18);
}
.validation-card > svg {
  color: var(--green);
}
.validation-card strong {
  display: block;
  font-size: 9px;
}
.validation-card p {
  margin-top: 2px;
  color: #8aa99c;
  font-size: 8px;
}
.validation-card.invalid {
  align-items: flex-start;
  background: rgba(255, 73, 93, 0.08);
  border-color: rgba(255, 73, 93, 0.28);
}
.validation-card.invalid > svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #ff6678;
}
.validation-card.invalid strong {
  color: #ff9daa;
}
.validation-card.invalid ul {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding-left: 14px;
  color: #d9a2aa;
  font-size: 9px;
  line-height: 1.35;
}
.keycap input[readonly],
.hotkey-field[readonly] {
  cursor: pointer;
  caret-color: transparent;
}
.keycap input[readonly]:focus,
.hotkey-field[readonly]:focus {
  outline: 2px solid rgba(166, 90, 255, 0.55);
  outline-offset: 1px;
}
.mode-card {
  margin-top: 11px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mode-card > div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mode-card span {
  color: var(--muted);
  font-size: 8px;
}
.mode-card strong {
  font-size: 10px;
}
.settings-section {
  margin-bottom: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: #ffffff06;
}
.settings-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.settings-heading > div:nth-child(2) {
  flex: 1;
}
.settings-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}
.setting-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.setting-icon svg {
  width: 16px;
}
.info-button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #949dbc;
  background: #ffffff08;
  cursor: pointer;
  vertical-align: middle;
}
.info-button.active {
  color: #fff;
  background: #7d31ff40;
  border-color: #7d31ff8c;
}
.resource-row {
  display: grid;
  grid-template-columns: 8px 36px 1fr 82px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.resource-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.resource-dot.gold {
  background: #ffd050;
  box-shadow: 0 0 8px #ffd05088;
}
.resource-dot.elixir {
  background: #ed4ee7;
  box-shadow: 0 0 8px #ed4ee788;
}
.resource-dot.dark {
  background: #8d72b8;
  box-shadow: 0 0 8px #8d72b888;
}
.resource-row > label {
  color: #b7bfd7;
  font-size: 8px;
}
input[type="range"] {
  height: 3px;
  accent-color: var(--purple);
  min-width: 0;
}
.number-field {
  height: 27px;
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff09;
}
.number-field input {
  width: 100%;
  min-width: 0;
  text-align: right;
  border: 0;
  outline: 0;
  color: #f3f4fb;
  background: transparent;
  font-size: 8px;
  font-weight: 600;
}
.number-field span {
  color: #6f7898;
  font-size: 7px;
  white-space: nowrap;
}
.logic-row,
.compact-setting,
.toggle-row {
  min-height: 43px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logic-row > div:first-child,
.label-with-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logic-row span,
.compact-setting span,
.toggle-row span {
  font-size: 9px;
  font-weight: 600;
}
.compact-setting small,
.toggle-row small {
  display: block;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.4;
  margin-top: 2px;
}
.segmented {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0000002e;
}
.segmented button {
  min-width: 48px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7f88a6;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}
.segmented button.selected {
  color: #fff;
  background: linear-gradient(120deg, #7130ed, #9d2ecb);
  box-shadow: 0 4px 10px #531eb84d;
}
.compact-segment button {
  min-width: 42px;
}
.tip-popover {
  margin: 3px 0 8px;
  padding: 10px 11px;
  border: 1px solid rgba(125, 49, 255, 0.27);
  border-radius: 11px;
  background: linear-gradient(120deg, #7d31ff1f, #141932e6);
  box-shadow: 0 10px 25px #0000002e;
  animation: tipIn 0.18s ease;
}
.tip-popover strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dcd2ff;
  font-size: 9px;
}
.tip-popover p {
  margin-top: 4px;
  color: #a9b1cb;
  font-size: 8px;
  line-height: 1.55;
}
.tip-popover small {
  display: block;
  margin-top: 6px;
  color: #8075a5;
  font-size: 7px;
  line-height: 1.45;
}
.tip-popover b {
  color: #fff;
}
.tip-popover.prominent {
  border-color: #ed238847;
  background: linear-gradient(120deg, #7d31ff26, #ed238814);
}
@keyframes tipIn {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.toggle {
  width: 35px;
  height: 20px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #252b42;
  cursor: pointer;
  transition: 0.2s;
}
.toggle span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7c849e;
  transition: 0.2s;
}
.toggle.on {
  background: linear-gradient(100deg, #7130ed, #ca2aa8);
  border-color: transparent;
}
.toggle.on span {
  background: #fff;
  transform: translate(15px);
  box-shadow: 0 2px 7px #0000004d;
}
.threshold-preview {
  padding: 9px 10px;
  border-radius: 11px;
  background: #00000026;
}
.threshold-preview > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.threshold-preview span,
.threshold-preview small {
  color: var(--muted);
  font-size: 7px;
}
.threshold-preview strong {
  font-size: 9px;
}
.progress {
  height: 4px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff12;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7130ed, #ed2388);
}
.inline-value {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 7px;
}
.advanced-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 11px;
  background: #ffffff05;
}
.advanced-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  cursor: pointer;
}
.advanced-card summary::-webkit-details-marker {
  display: none;
}
.advanced-card summary div {
  display: flex;
  flex-direction: column;
}
.advanced-card summary span {
  color: #7d86a6;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.advanced-card summary strong {
  font-size: 9px;
  margin-top: 3px;
}
.advanced-card[open] summary svg {
  transform: rotate(180deg);
}
.advanced-body {
  padding: 0 13px 12px;
}
.advanced-body > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 37px;
  border-top: 1px solid var(--line);
}
.advanced-body span {
  font-size: 8px;
}
.advanced-body p {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.5;
}
.preflight-card {
  padding: 13px;
  border: 1px solid rgba(56, 217, 150, 0.18);
  border-radius: 17px;
  background: linear-gradient(130deg, #38d99612, #080d1f33);
}
.preflight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
}
.preflight-head > svg {
  color: var(--green);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #b7c4c2;
  font-size: 8px;
}
.check-row > span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #38d9961a;
}
.bottom-nav {
  flex: 0 0 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px 24px 8px;
  border-top: 1px solid var(--line);
  background: #070a1bed;
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #626b89;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 7px;
  cursor: pointer;
  transition: color 0.18s;
}
.bottom-nav svg {
  width: 18px;
}
.bottom-nav button.active {
  color: #c7b7ff;
}
.bottom-nav button.active:before {
  content: "";
  position: absolute;
  width: 34px;
  height: 2px;
  top: -7px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 0 12px var(--purple);
}
.app-frame {
  width: min(470px, 100%);
  min-height: 840px;
}
.topbar {
  min-height: 78px;
  padding: 14px 18px;
  position: relative;
  z-index: 20;
}
.brand strong {
  font-size: 20px;
}
.brand span {
  font-size: 11px;
}
.connection-pill {
  gap: 6px;
  padding: 8px 10px;
  font-size: 10px;
}
.profile-wrap {
  position: relative;
}
.profile-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #c8cfe5;
  background: #ffffff0a;
  cursor: pointer;
  transition: 0.18s;
}
.profile-button:hover,
.profile-button.active {
  color: #fff;
  border-color: #7d31ff80;
  background: #7d31ff26;
}
.profile-panel {
  position: absolute;
  width: 268px;
  top: 48px;
  right: 0;
  padding: 14px;
  border: 1px solid rgba(151, 104, 255, 0.34);
  border-radius: 17px;
  background: #0d1227fa;
  box-shadow: 0 22px 55px #00000080;
  backdrop-filter: blur(20px);
  animation: tipIn 0.18s ease;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.profile-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #cfbdff;
  background: #7d31ff26;
}
.profile-head > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.profile-head strong {
  font:
    600 12px Sora,
    sans-serif;
}
.profile-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.license-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  color: var(--green);
  background: #38d99614;
  border: 1px solid rgba(56, 217, 150, 0.18);
}
.license-card div {
  display: flex;
  flex-direction: column;
}
.license-card span {
  color: #7f9f96;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.license-card strong {
  color: #d9f9ec;
  font-size: 11px;
  margin-top: 2px;
}
.license-card b {
  padding: 4px 6px;
  border-radius: 6px;
  background: #38d99621;
  font-size: 8px;
}
.license-days {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 3px;
  color: #929cba;
  font-size: 10px;
}
.license-days span {
  flex: 1;
}
.license-days strong {
  color: #fff;
  font:
    600 12px Sora,
    sans-serif;
}
.logout-button {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 91, 82, 0.2);
  border-radius: 10px;
  color: #ff9a9a;
  background: #ff455012;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}
.screen {
  padding: 22px 20px 32px;
}
.eyebrow,
.section-title span,
.preflight-head span {
  font-size: 9px;
}
h1 {
  font-size: 27px;
}
.page-heading p {
  font-size: 12px;
}
.hero-card {
  padding: 18px;
}
.hero-top span {
  font-size: 9px;
}
.hero-top strong {
  font-size: 16px;
}
.live-dot {
  padding: 6px 8px;
  font-size: 9px;
}
.start-button {
  margin-top: 16px;
  padding: 15px;
  gap: 9px;
  font-size: 14px;
}
.start-button > span {
  min-width: 98px;
}
.start-button kbd {
  margin-left: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #0000002e;
  color: #fff;
  font:
    700 10px Inter,
    sans-serif;
  box-shadow: inset 0 1px #ffffff1f;
}
.hero-card > p {
  font-size: 10px;
}
.stats-grid span {
  font-size: 10px;
}
.stats-grid strong {
  font-size: 15px;
}
.stats-grid small {
  font-size: 9px;
}
.alert-card strong {
  font-size: 11px;
}
.alert-card p {
  margin-top: 3px;
  font-size: 10px;
}
.section-title h2,
.settings-heading h2,
.preflight-head h2 {
  font-size: 15px;
}
.section-title button {
  font-size: 10px;
}
.timeline-item strong {
  font-size: 11px;
}
.timeline-item p {
  font-size: 10px;
}
.timeline-item time {
  font-size: 9px;
}
.summary-card strong {
  font-size: 17px;
}
.summary-card span {
  font-size: 9px;
}
.army-card {
  grid-template-columns: 38px 1fr 43px 43px 28px;
  gap: 8px;
  padding: 11px;
}
.army-main span,
.keycap span,
.quantity span {
  font-size: 8px;
}
.army-main input {
  padding: 2px 0;
  font-size: 11px;
}
.keycap input,
.quantity input {
  width: 38px;
  height: 29px;
  font-size: 11px;
}
.delete-button {
  width: 28px;
  height: 28px;
}
.army-main select {
  width: max-content;
  max-width: 100%;
  margin: 0 0 2px -3px;
  border: 0;
  outline: 0;
  color: #8993b2;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.army-main select option {
  color: #e7e9f4;
  background: #11162e;
}
.validation-card strong {
  font-size: 11px;
}
.validation-card p,
.mode-card span {
  font-size: 10px;
}
.mode-card strong {
  font-size: 12px;
}
.settings-section {
  margin-bottom: 13px;
  padding: 15px;
}
.settings-heading p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
}
.setting-icon {
  width: 36px;
  height: 36px;
}
.setting-icon svg {
  width: 18px;
}
.info-button {
  width: 25px;
  height: 25px;
  padding: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
}
.info-button svg {
  width: 14px;
  height: 14px;
  display: block;
}
.resource-row {
  grid-template-columns: 10px 44px 1fr 94px;
  gap: 8px;
  min-height: 48px;
}
.resource-dot {
  width: 8px;
  height: 8px;
}
.resource-row > label {
  color: #c4cae0;
  font-size: 10px;
}
.resource-range {
  --range-color: var(--purple);
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  accent-color: var(--range-color);
}
.resource-range.gold {
  --range-color: #f8c642;
}
.resource-range.elixir {
  --range-color: #f04bdc;
}
.resource-range.dark {
  --range-color: #8a68d2;
}
.resource-range.runtime {
  --range-color: #9c55ff;
}
.resource-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--range-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--range-color) 35%, transparent);
}
.resource-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #f7f7ff;
  border-radius: 50%;
  background: var(--range-color);
  box-shadow: 0 2px 9px #00000073;
}
.resource-range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--range-color);
}
.resource-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #f7f7ff;
  border-radius: 50%;
  background: var(--range-color);
  box-shadow: 0 2px 9px #00000073;
}
.number-field {
  height: 34px;
  min-width: 80px;
  padding: 0 9px;
}
.number-field input {
  font-size: 10px;
}
.number-field span {
  font-size: 9px;
}
.logic-row,
.compact-setting,
.toggle-row {
  min-height: 52px;
}
.logic-row span,
.compact-setting span,
.toggle-row span {
  font-size: 11px;
}
.compact-setting small,
.toggle-row small {
  font-size: 9px;
  margin-top: 3px;
}
.segmented button {
  min-width: 52px;
  padding: 7px 10px;
  font-size: 10px;
}
.tip-popover {
  margin: 4px 0 10px;
  padding: 12px 13px;
}
.tip-popover strong {
  font-size: 11px;
}
.tip-popover p {
  margin-top: 5px;
  color: #b7bfd6;
  font-size: 10px;
}
.tip-popover small {
  font-size: 9px;
  color: #9b91bc;
}
.toggle {
  width: 40px;
  height: 23px;
}
.toggle span {
  width: 17px;
  height: 17px;
}
.toggle.on span {
  transform: translate(17px);
}
.wall-threshold-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.wall-threshold-title > span {
  font-size: 11px;
  font-weight: 600;
}
.wall-resource {
  border-top: 0;
}
.runtime-control {
  padding: 2px 3px 13px;
}
.runtime-control > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}
.runtime-control > div span:last-child {
  text-align: right;
}
.runtime-control strong {
  color: #d9ccff;
  font:
    600 12px Sora,
    sans-serif;
}
.preflight-card {
  padding: 15px;
}
.check-row {
  gap: 8px;
  min-height: 32px;
  font-size: 10px;
}
.bottom-nav {
  flex-basis: 72px;
  padding: 8px 24px 9px;
}
.bottom-nav button {
  gap: 4px;
  font-size: 9px;
}
.bottom-nav svg {
  width: 20px;
}
.logout-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #02040ec7;
  backdrop-filter: blur(10px);
  animation: modalFade 0.18s ease;
}
.language-modal {
  position: relative;
  width: min(390px, 100%);
  padding: 28px 25px 23px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(144, 91, 255, 0.42);
  border-radius: 23px;
  background: linear-gradient(150deg, #191d3dfc, #0a0d20fc);
  box-shadow:
    0 28px 80px #0000009e,
    0 0 45px #7130ed1f;
  animation: modalRise 0.22s ease;
}
.language-modal:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 130px;
  top: -90px;
  left: 50%;
  transform: translate(-50%);
  border-radius: 50%;
  background: #7d31ff40;
  filter: blur(45px);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8992ae;
  background: #ffffff09;
  cursor: pointer;
}
.modal-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #dacdff;
  border: 1px solid rgba(150, 106, 255, 0.38);
  border-radius: 17px;
  background: linear-gradient(140deg, #7d31ff47, #ed238826);
  box-shadow: 0 10px 28px #38148e4d;
}
.language-modal .eyebrow {
  color: #ae90ff;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.language-modal h2 {
  margin-top: 7px;
  font:
    700 23px/1.2 Sora,
    sans-serif;
}
.language-modal > p {
  margin: 12px auto 17px;
  color: #aeb6ce;
  font-size: 11px;
  line-height: 1.65;
}
.remember-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #c8cee0;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.remember-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.remember-choice > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: transparent;
  background: #ffffff0a;
  transition: 0.15s;
}
.remember-choice input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7130ed, #ca2aa8);
}
.understand-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(110deg, #7130ed, #a52ac1, #ed2388);
  box-shadow: 0 12px 30px #6d20c657;
  cursor: pointer;
  font:
    600 12px Inter,
    sans-serif;
}
.language-modal > small {
  display: block;
  margin-top: 10px;
  color: #69728f;
  font-size: 9px;
}
@keyframes modalFade {
  0% {
    opacity: 0;
  }
}
@keyframes modalRise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@media (max-width: 520px) {
  .site-shell {
    padding: 0;
  }
  .app-frame {
    width: 100%;
    height: 100vh;
    min-height: 650px;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.quantity input:disabled {
  color: #8b93ad;
  background: rgba(255, 255, 255, 0.02);
  cursor: not-allowed;
  opacity: 0.75;
}
.hotkey-field {
  width: 72px;
  height: 34px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  outline: 0;
  border: 1px solid rgba(125, 49, 255, 0.36);
  border-radius: 9px;
  background: rgba(125, 49, 255, 0.09);
}
.stop-key-section .settings-heading {
  margin-bottom: 0;
}

/* v0.12.11 army/configuration QoL */
.army-card {
  grid-template-columns: 34px 1fr 38px 38px 28px 25px;
}
.army-order-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.army-order-controls button {
  width: 26px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #c8cee0;
  background: #ffffff08;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}
.army-order-controls button:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(125, 49, 255, 0.5);
  background: #7d31ff24;
}
.army-order-controls button:disabled {
  opacity: 0.25;
  cursor: default;
}
.settings-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slot-type-modal {
  width: min(430px, 100%);
}
.slot-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}
.slot-type-grid > button {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(125, 49, 255, 0.28);
  border-radius: 14px;
  color: #dcdff0;
  background: linear-gradient(145deg, #ffffff0b, #7d31ff0e);
  cursor: pointer;
  transition: 0.15s ease;
}
.slot-type-grid > button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(150, 106, 255, 0.58);
  background: linear-gradient(145deg, #7d31ff26, #ed238814);
}
.slot-type-grid > button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.slot-type-grid svg {
  color: #cbbcff;
}
.slot-type-grid strong {
  font-size: 10px;
}
.slot-type-grid span {
  color: #7f88a5;
  font-size: 8px;
}

/* --------------------------------------------------------------------------
   Legend theme system
   Layout is deliberately untouched. These rules only change visual treatment.
   -------------------------------------------------------------------------- */
.theme-settings {
  position: relative;
  overflow: hidden;
}
.legend-theme-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 211, 95, 0.24);
  color: #8e94aa;
  background: #ffffff08;
}
.legend-theme-badge.unlocked {
  color: #ffdc6b;
  border-color: rgba(255, 211, 95, 0.5);
  background: rgba(255, 197, 49, 0.1);
  box-shadow: 0 0 16px rgba(255, 197, 49, 0.12);
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.theme-option {
  min-width: 0;
  min-height: 58px;
  padding: 8px 7px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff06;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.theme-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.theme-option.active {
  border-color: color-mix(in srgb, var(--purple) 78%, white 10%);
  background: color-mix(in srgb, var(--purple) 12%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--purple) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--purple) 18%, transparent);
}
.theme-option strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}
.theme-option small {
  grid-column: 2;
  color: var(--muted);
  font-size: 7px;
}
.theme-preview-dot {
  grid-row: 1 / span 2;
  width: 18px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid #ffffff28;
  box-shadow:
    inset 0 0 10px #ffffff12,
    0 0 12px #00000030;
}
.theme-classic .theme-preview-dot {
  background: linear-gradient(180deg, #8b38ff, #ec267f 55%, #ff6637);
}
.theme-dark-matter .theme-preview-dot {
  background: linear-gradient(180deg, #a855ff, #6316df 55%, #17052e);
  box-shadow: 0 0 12px #8d2fff6e;
}
.theme-royal-gold .theme-preview-dot {
  background: linear-gradient(180deg, #ffe36f, #d89400 60%, #241300);
  box-shadow: 0 0 12px #ffbf2968;
}
.theme-ice .theme-preview-dot {
  background: linear-gradient(180deg, #e8fbff, #57cfff 55%, #155db7);
  box-shadow: 0 0 12px #80e9ff70;
}
.theme-fire .theme-preview-dot {
  background: linear-gradient(180deg, #ffb245, #ff312b 55%, #480400);
  box-shadow: 0 0 12px #ff3f2d70;
}
.theme-neon .theme-preview-dot {
  background: linear-gradient(180deg, #24eaff, #138dff 48%, #f41cff);
  box-shadow: 0 0 12px #19dfff78;
}
.theme-forest .theme-preview-dot {
  background: linear-gradient(180deg, #7dff7c, #1faf58 54%, #07311a);
  box-shadow: 0 0 12px #45f46c58;
}
.theme-galaxy .theme-preview-dot {
  background: linear-gradient(180deg, #7585ff, #4732ff 48%, #a126e7);
  box-shadow: 0 0 12px #6c5cff6a;
}
.theme-stealth .theme-preview-dot {
  background: linear-gradient(180deg, #a9b0b8, #3b4148 52%, #0d1013);
  box-shadow: 0 0 12px #aeb8c126;
}

html[data-theme="dark-matter"] {
  --navy: #05020c;
  --panel: #0e071b;
  --panel-2: #160b29;
  --line: rgba(188, 117, 255, 0.14);
  --muted: #a99ac5;
  --text: #fbf8ff;
  --purple: #9148ff;
  --pink: #c33bff;
  --orange: #7d42ff;
  --cyan: #8c7aff;
  --green: #45e5b2;
  --theme-shell:
    radial-gradient(circle at 14% 8%, rgba(138, 45, 255, 0.3), transparent 28%),
    radial-gradient(circle at 94% 24%, rgba(72, 22, 165, 0.28), transparent 30%),
    radial-gradient(circle at 50% 110%, rgba(177, 55, 255, 0.2), transparent 35%),
    #030108;
  --theme-frame: linear-gradient(180deg, rgba(18, 7, 35, 0.98), rgba(5, 2, 12, 0.99));
  --theme-surface: rgba(132, 54, 255, 0.055);
  --theme-surface-strong: rgba(48, 16, 82, 0.84);
  --theme-border: rgba(163, 79, 255, 0.3);
  --theme-border-strong: rgba(179, 96, 255, 0.55);
  --theme-accent-a: #a34fff;
  --theme-accent-b: #6428ff;
  --theme-shadow: rgba(119, 30, 255, 0.24);
}
html[data-theme="royal-gold"] {
  --navy: #090703;
  --panel: #151006;
  --panel-2: #201707;
  --line: rgba(255, 210, 78, 0.14);
  --muted: #bdb08b;
  --text: #fff9e8;
  --purple: #f4c542;
  --pink: #ffb31c;
  --orange: #f19a12;
  --cyan: #ffdb64;
  --green: #8fd469;
  --theme-shell:
    radial-gradient(circle at 12% 0%, rgba(255, 195, 47, 0.22), transparent 30%),
    radial-gradient(circle at 100% 36%, rgba(130, 78, 0, 0.24), transparent 34%),
    linear-gradient(145deg, #080601, #130d02 58%, #050403);
  --theme-frame: linear-gradient(180deg, rgba(24, 18, 5, 0.98), rgba(8, 6, 2, 0.99));
  --theme-surface: rgba(255, 199, 48, 0.045);
  --theme-surface-strong: rgba(49, 35, 7, 0.9);
  --theme-border: rgba(255, 204, 63, 0.28);
  --theme-border-strong: rgba(255, 215, 83, 0.6);
  --theme-accent-a: #ffd95d;
  --theme-accent-b: #e29b16;
  --theme-shadow: rgba(255, 187, 41, 0.2);
}
html[data-theme="ice"] {
  --navy: #06111b;
  --panel: #0d2031;
  --panel-2: #12314a;
  --line: rgba(145, 224, 255, 0.17);
  --muted: #a9c7d7;
  --text: #f3fbff;
  --purple: #42c8ff;
  --pink: #83e5ff;
  --orange: #4a9fff;
  --cyan: #6eeaff;
  --green: #67e7c3;
  --theme-shell:
    radial-gradient(circle at 18% 0%, rgba(146, 235, 255, 0.24), transparent 31%),
    radial-gradient(circle at 90% 22%, rgba(59, 153, 255, 0.25), transparent 33%),
    linear-gradient(155deg, #071521, #0a2337 55%, #06101a);
  --theme-frame: linear-gradient(180deg, rgba(14, 39, 58, 0.98), rgba(5, 17, 28, 0.99));
  --theme-surface: rgba(121, 216, 255, 0.06);
  --theme-surface-strong: rgba(17, 55, 80, 0.88);
  --theme-border: rgba(119, 219, 255, 0.3);
  --theme-border-strong: rgba(144, 229, 255, 0.6);
  --theme-accent-a: #6fe5ff;
  --theme-accent-b: #2c8dff;
  --theme-shadow: rgba(63, 192, 255, 0.22);
}
html[data-theme="fire"] {
  --navy: #0b0201;
  --panel: #1a0705;
  --panel-2: #2a0b08;
  --line: rgba(255, 91, 56, 0.16);
  --muted: #c2a39c;
  --text: #fff8f4;
  --purple: #ff3f30;
  --pink: #ff6047;
  --orange: #ff9a35;
  --cyan: #ff744e;
  --green: #76df8c;
  --theme-shell:
    radial-gradient(circle at 12% 0%, rgba(255, 74, 38, 0.28), transparent 29%),
    radial-gradient(circle at 100% 80%, rgba(255, 139, 31, 0.2), transparent 30%),
    linear-gradient(155deg, #0a0201, #180402 56%, #060100);
  --theme-frame: linear-gradient(180deg, rgba(31, 7, 5, 0.98), rgba(10, 2, 1, 0.99));
  --theme-surface: rgba(255, 67, 39, 0.052);
  --theme-surface-strong: rgba(64, 13, 8, 0.88);
  --theme-border: rgba(255, 74, 43, 0.3);
  --theme-border-strong: rgba(255, 86, 47, 0.62);
  --theme-accent-a: #ff4b35;
  --theme-accent-b: #ff9a2f;
  --theme-shadow: rgba(255, 58, 33, 0.23);
}
html[data-theme="neon"] {
  --navy: #020912;
  --panel: #06131f;
  --panel-2: #0b1830;
  --line: rgba(43, 220, 255, 0.17);
  --muted: #91afc5;
  --text: #f4fcff;
  --purple: #18d9ff;
  --pink: #e826ff;
  --orange: #7a3cff;
  --cyan: #29e8ff;
  --green: #51f0a6;
  --theme-shell:
    radial-gradient(circle at 10% 5%, rgba(24, 216, 255, 0.25), transparent 30%),
    radial-gradient(circle at 98% 85%, rgba(228, 33, 255, 0.23), transparent 35%),
    linear-gradient(150deg, #02070e, #041525 58%, #08031a);
  --theme-frame: linear-gradient(180deg, rgba(5, 20, 33, 0.98), rgba(3, 7, 16, 0.99));
  --theme-surface: rgba(32, 221, 255, 0.048);
  --theme-surface-strong: rgba(6, 35, 51, 0.9);
  --theme-border: rgba(32, 219, 255, 0.31);
  --theme-border-strong: rgba(40, 231, 255, 0.62);
  --theme-accent-a: #22e4ff;
  --theme-accent-b: #c526ff;
  --theme-shadow: rgba(37, 220, 255, 0.22);
}
html[data-theme="forest"] {
  --navy: #031008;
  --panel: #071b0f;
  --panel-2: #0d2818;
  --line: rgba(91, 224, 121, 0.15);
  --muted: #94b39d;
  --text: #f2fff5;
  --purple: #45d76b;
  --pink: #65f28b;
  --orange: #9fd542;
  --cyan: #52e5a5;
  --green: #4be178;
  --theme-shell:
    radial-gradient(circle at 15% 0%, rgba(66, 220, 101, 0.22), transparent 30%),
    radial-gradient(circle at 95% 90%, rgba(76, 139, 32, 0.24), transparent 34%),
    linear-gradient(145deg, #031008, #082015 58%, #020b06);
  --theme-frame: linear-gradient(180deg, rgba(7, 30, 16, 0.98), rgba(3, 13, 7, 0.99));
  --theme-surface: rgba(69, 215, 107, 0.05);
  --theme-surface-strong: rgba(10, 52, 27, 0.88);
  --theme-border: rgba(78, 221, 115, 0.28);
  --theme-border-strong: rgba(84, 236, 124, 0.56);
  --theme-accent-a: #57e77b;
  --theme-accent-b: #21a957;
  --theme-shadow: rgba(55, 218, 96, 0.2);
}
html[data-theme="galaxy"] {
  --navy: #04051a;
  --panel: #0b0d2b;
  --panel-2: #111442;
  --line: rgba(113, 112, 255, 0.17);
  --muted: #a2a4cc;
  --text: #fafaff;
  --purple: #655cff;
  --pink: #a931f6;
  --orange: #6a8cff;
  --cyan: #7ca7ff;
  --green: #53dfb6;
  --theme-shell:
    radial-gradient(circle at 14% 7%, rgba(88, 93, 255, 0.28), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(160, 48, 246, 0.24), transparent 30%),
    radial-gradient(circle at 55% 90%, rgba(41, 95, 219, 0.2), transparent 34%),
    #020314;
  --theme-frame: linear-gradient(180deg, rgba(10, 12, 46, 0.98), rgba(3, 4, 21, 0.99));
  --theme-surface: rgba(97, 89, 255, 0.052);
  --theme-surface-strong: rgba(19, 22, 69, 0.9);
  --theme-border: rgba(111, 105, 255, 0.3);
  --theme-border-strong: rgba(124, 113, 255, 0.6);
  --theme-accent-a: #7266ff;
  --theme-accent-b: #b234f5;
  --theme-shadow: rgba(96, 81, 255, 0.23);
}
html[data-theme="stealth"] {
  --navy: #090b0d;
  --panel: #111417;
  --panel-2: #181c20;
  --line: rgba(202, 211, 220, 0.1);
  --muted: #899199;
  --text: #f1f3f5;
  --purple: #9ca5ae;
  --pink: #777f88;
  --orange: #b5bdc4;
  --cyan: #a8b0b8;
  --green: #6fc39b;
  --theme-shell:
    radial-gradient(circle at 12% 2%, rgba(176, 186, 196, 0.08), transparent 30%),
    linear-gradient(150deg, #090b0d, #111519 58%, #070809);
  --theme-frame: linear-gradient(180deg, rgba(19, 22, 25, 0.99), rgba(8, 10, 12, 0.99));
  --theme-surface: rgba(207, 216, 225, 0.025);
  --theme-surface-strong: rgba(29, 34, 39, 0.92);
  --theme-border: rgba(191, 201, 210, 0.14);
  --theme-border-strong: rgba(196, 207, 217, 0.26);
  --theme-accent-a: #aeb7bf;
  --theme-accent-b: #5d646b;
  --theme-shadow: rgba(172, 183, 194, 0.08);
}

html[data-theme]:not([data-theme="classic"]) body {
  background: var(--navy);
}
html[data-theme]:not([data-theme="classic"]) .site-shell {
  background: var(--theme-shell);
}
html[data-theme]:not([data-theme="classic"]) .site-shell::before,
html[data-theme]:not([data-theme="classic"]) .site-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
}
html[data-theme]:not([data-theme="classic"]) .site-shell::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}
html[data-theme="galaxy"] .site-shell::after,
html[data-theme="dark-matter"] .site-shell::after {
  inset: 0;
  background-image:
    radial-gradient(circle, #ffffff95 0 1px, transparent 1.4px),
    radial-gradient(circle, #ffffff4c 0 1px, transparent 1.3px);
  background-position: 12px 18px, 48px 62px;
  background-size: 78px 78px, 112px 112px;
  opacity: 0.12;
}
html[data-theme="fire"] .site-shell::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: radial-gradient(ellipse at 50% 110%, rgba(255, 99, 34, 0.25), transparent 65%);
}
html[data-theme="ice"] .site-shell::after {
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 43%, rgba(173, 238, 255, 0.035) 44% 45%, transparent 46% 100%),
    linear-gradient(35deg, transparent 0 69%, rgba(173, 238, 255, 0.03) 70% 71%, transparent 72% 100%);
}
html[data-theme]:not([data-theme="classic"]) .ambient-one {
  background: var(--theme-accent-a);
  opacity: 0.2;
}
html[data-theme]:not([data-theme="classic"]) .ambient-two {
  background: var(--theme-accent-b);
  opacity: 0.17;
}
html[data-theme]:not([data-theme="classic"]) .app-frame {
  border-color: var(--theme-border);
  background: var(--theme-frame);
  box-shadow:
    0 45px 110px #00000094,
    0 0 0 1px var(--theme-border),
    0 0 38px var(--theme-shadow);
}
html[data-theme]:not([data-theme="classic"]) .topbar,
html[data-theme]:not([data-theme="classic"]) .bottom-nav {
  background: color-mix(in srgb, var(--navy) 84%, transparent);
  border-color: var(--theme-border);
}
html[data-theme]:not([data-theme="classic"]) .brand-logo {
  box-shadow:
    0 6px 18px var(--theme-shadow),
    0 0 20px color-mix(in srgb, var(--theme-accent-a) 18%, transparent);
}
html[data-theme]:not([data-theme="classic"]) .preview-strip {
  color: color-mix(in srgb, var(--text) 82%, var(--theme-accent-a));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--theme-accent-a) 18%, transparent),
    color-mix(in srgb, var(--theme-accent-b) 7%, transparent)
  );
  border-color: var(--theme-border);
}
html[data-theme]:not([data-theme="classic"]) .hero-card,
html[data-theme]:not([data-theme="classic"]) .settings-section,
html[data-theme]:not([data-theme="classic"]) .army-card,
html[data-theme]:not([data-theme="classic"]) .summary-card,
html[data-theme]:not([data-theme="classic"]) .timeline-card,
html[data-theme]:not([data-theme="classic"]) .preflight-card,
html[data-theme]:not([data-theme="classic"]) .advanced-card,
html[data-theme]:not([data-theme="classic"]) .mode-card,
html[data-theme]:not([data-theme="classic"]) .validation-card,
html[data-theme]:not([data-theme="classic"]) .profile-panel,
html[data-theme]:not([data-theme="classic"]) .language-modal {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 14px 30px rgba(0, 0, 0, 0.18);
}
html[data-theme]:not([data-theme="classic"]) .hero-card {
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--theme-accent-a) 18%, transparent), transparent 40%),
    linear-gradient(145deg, var(--theme-surface-strong), color-mix(in srgb, var(--navy) 88%, transparent));
  border-color: var(--theme-border-strong);
}
html[data-theme]:not([data-theme="classic"]) .hero-glow {
  background: var(--theme-accent-a);
  opacity: 0.24;
}
html[data-theme]:not([data-theme="classic"]) .phase-icon,
html[data-theme]:not([data-theme="classic"]) .start-button,
html[data-theme]:not([data-theme="classic"]) .understand-button {
  background: linear-gradient(145deg, var(--theme-accent-a), var(--theme-accent-b));
  box-shadow: 0 9px 24px var(--theme-shadow);
}
html[data-theme]:not([data-theme="classic"]) .status-orb,
html[data-theme]:not([data-theme="classic"]) .modal-icon,
html[data-theme]:not([data-theme="classic"]) .setting-icon.purple,
html[data-theme]:not([data-theme="classic"]) .info-button.active {
  color: color-mix(in srgb, var(--theme-accent-a) 72%, white);
  border-color: var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-accent-a) 12%, transparent);
}
html[data-theme]:not([data-theme="classic"]) .eyebrow,
html[data-theme]:not([data-theme="classic"]) .section-title span,
html[data-theme]:not([data-theme="classic"]) .preflight-head span {
  color: color-mix(in srgb, var(--theme-accent-a) 72%, white);
}
html[data-theme]:not([data-theme="classic"]) .bottom-nav button.active {
  color: color-mix(in srgb, var(--theme-accent-a) 72%, white);
}
html[data-theme]:not([data-theme="classic"]) .bottom-nav button.active::before {
  background: var(--theme-accent-a);
  box-shadow: 0 0 15px var(--theme-shadow);
}
html[data-theme]:not([data-theme="classic"]) .toggle.enabled {
  background: linear-gradient(90deg, var(--theme-accent-a), var(--theme-accent-b));
  box-shadow: 0 0 14px var(--theme-shadow);
}
html[data-theme]:not([data-theme="classic"]) .segmented button.active,
html[data-theme]:not([data-theme="classic"]) .compact-segment button.active {
  background: color-mix(in srgb, var(--theme-accent-a) 18%, transparent);
  color: color-mix(in srgb, var(--theme-accent-a) 62%, white);
  border-color: var(--theme-border-strong);
}
html[data-theme]:not([data-theme="classic"]) .theme-option.active {
  border-color: var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-accent-a) 11%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--theme-accent-a) 18%, transparent),
    0 0 18px var(--theme-shadow);
}
html[data-theme]:not([data-theme="classic"]) .resource-range.runtime {
  --range-color: var(--theme-accent-a);
}
html[data-theme]:not([data-theme="classic"]) .connection-pill {
  border-color: color-mix(in srgb, var(--green) 34%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
html[data-theme="royal-gold"] .legend-theme-badge.unlocked {
  color: #fff0a4;
  border-color: rgba(255, 216, 84, 0.7);
  background: rgba(255, 198, 41, 0.14);
  box-shadow: 0 0 18px rgba(255, 202, 49, 0.22);
}
html[data-theme="stealth"] .legend-theme-badge.unlocked {
  color: #d4d8dc;
  border-color: rgba(210, 218, 226, 0.24);
  background: rgba(210, 218, 226, 0.06);
  box-shadow: none;
}

/* v0.12.13 Legend skin polish -------------------------------------------------
   Keep the FloForge layout untouched; these rules only deepen the atmosphere
   of the eight Legend skins and fix profile-card readability. */
html[data-theme]:not([data-theme="classic"]) .profile-panel {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--theme-surface-strong) 96%, #070910),
      color-mix(in srgb, var(--navy) 96%, #020306)
    );
  border-color: var(--theme-border-strong);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 24px 62px rgba(0, 0, 0, 0.72),
    0 0 24px var(--theme-shadow);
  backdrop-filter: blur(24px) saturate(1.22);
}
html[data-theme]:not([data-theme="classic"]) .profile-head,
html[data-theme]:not([data-theme="classic"]) .license-card {
  position: relative;
  z-index: 1;
}

/* DARK MATTER — violet plasma / void energy. */
html[data-theme="dark-matter"] {
  --theme-shell:
    radial-gradient(circle at 18% 14%, rgba(187, 76, 255, 0.28), transparent 22%),
    radial-gradient(circle at 82% 28%, rgba(80, 33, 185, 0.30), transparent 26%),
    conic-gradient(from 225deg at 58% 76%, rgba(122, 48, 255, 0.15), transparent 18%, rgba(205, 62, 255, 0.12) 32%, transparent 48%),
    #020106;
  --theme-frame:
    radial-gradient(ellipse at 14% 84%, rgba(161, 53, 255, 0.16), transparent 32%),
    radial-gradient(ellipse at 92% 14%, rgba(89, 28, 198, 0.22), transparent 30%),
    conic-gradient(from 200deg at 82% 86%, transparent 0 24%, rgba(173, 65, 255, 0.09) 27% 31%, transparent 35% 100%),
    linear-gradient(180deg, rgba(18, 7, 35, 0.985), rgba(4, 1, 10, 0.997));
}
html[data-theme="dark-matter"] .site-shell::after {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.35px),
    radial-gradient(circle, rgba(199,132,255,.48) 0 1px, transparent 1.6px),
    radial-gradient(ellipse at 68% 72%, rgba(172,55,255,.20), transparent 28%);
  background-position: 8px 13px, 51px 39px, center;
  background-size: 82px 82px, 131px 131px, auto;
  opacity: .22;
}

/* ROYAL GOLD — dark lacquer, metallic rays and engraved geometry. */
html[data-theme="royal-gold"] {
  --theme-shell:
    radial-gradient(circle at 50% -12%, rgba(255, 213, 95, .26), transparent 34%),
    linear-gradient(125deg, transparent 0 46%, rgba(255, 200, 57, .055) 46.3% 46.8%, transparent 47.1% 100%),
    linear-gradient(55deg, transparent 0 66%, rgba(255, 198, 43, .04) 66.3% 66.8%, transparent 67.1% 100%),
    #080601;
  --theme-frame:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 82, .13), transparent 30%),
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(255, 209, 83, .025) 25px 26px, transparent 27px 48px),
    linear-gradient(180deg, rgba(27, 20, 5, .99), rgba(7, 5, 1, .998));
}
html[data-theme="royal-gold"] .app-frame {
  box-shadow:
    0 45px 110px #000000a0,
    0 0 0 1px rgba(255, 211, 83, .32),
    0 0 42px rgba(255, 181, 31, .18),
    inset 0 0 70px rgba(255, 196, 47, .035);
}
html[data-theme="royal-gold"] .site-shell::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(255,235,157,.38) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255,210,88,.035) 71px 72px, transparent 73px 140px);
  opacity: .28;
}

/* ICE — frosted facets, glacial glow and crystalline fractures. */
html[data-theme="ice"] {
  --theme-shell:
    radial-gradient(circle at 17% 0%, rgba(218, 251, 255, .38), transparent 26%),
    radial-gradient(circle at 88% 15%, rgba(76, 176, 255, .28), transparent 32%),
    linear-gradient(145deg, #071521, #0c2a40 58%, #06111d);
  --theme-frame:
    linear-gradient(135deg, transparent 0 35%, rgba(196,242,255,.065) 35.4% 35.8%, transparent 36.2% 100%),
    linear-gradient(42deg, transparent 0 63%, rgba(157,226,255,.055) 63.3% 63.7%, transparent 64.1% 100%),
    radial-gradient(circle at 84% 8%, rgba(185,241,255,.15), transparent 28%),
    linear-gradient(180deg, rgba(16, 48, 70, .985), rgba(5, 17, 28, .997));
}
html[data-theme="ice"] .site-shell::after {
  inset: -10%;
  background:
    repeating-linear-gradient(132deg, transparent 0 84px, rgba(213,247,255,.055) 85px 86px, transparent 87px 170px),
    repeating-linear-gradient(36deg, transparent 0 116px, rgba(151,222,255,.04) 117px 118px, transparent 119px 234px);
  opacity: .38;
}
html[data-theme="ice"] .app-frame {
  box-shadow:
    0 45px 110px #00101b9c,
    0 0 0 1px rgba(167, 234, 255, .28),
    0 0 44px rgba(70, 194, 255, .20),
    inset 0 0 70px rgba(173, 237, 255, .035);
}

/* FIRE — flame tongues at the base, embers and heat glow. */
html[data-theme="fire"] {
  --theme-shell:
    radial-gradient(ellipse at 12% 108%, rgba(255, 58, 12, .46) 0 8%, rgba(255, 132, 21, .20) 9% 16%, transparent 30%),
    radial-gradient(ellipse at 38% 110%, rgba(255, 102, 15, .42) 0 10%, rgba(255, 43, 12, .20) 11% 20%, transparent 34%),
    radial-gradient(ellipse at 70% 108%, rgba(255, 183, 39, .30) 0 7%, rgba(255, 65, 15, .22) 8% 19%, transparent 34%),
    radial-gradient(ellipse at 94% 106%, rgba(255, 76, 15, .42) 0 8%, rgba(255, 146, 27, .17) 9% 18%, transparent 31%),
    linear-gradient(155deg, #090100, #1b0502 56%, #070100);
  --theme-frame:
    radial-gradient(ellipse at 6% 106%, rgba(255,75,20,.34) 0 8%, rgba(255,169,33,.13) 9% 18%, transparent 28%),
    radial-gradient(ellipse at 34% 108%, rgba(255,148,27,.24) 0 9%, rgba(255,46,18,.15) 10% 21%, transparent 31%),
    radial-gradient(ellipse at 72% 107%, rgba(255,65,20,.30) 0 9%, rgba(255,176,40,.12) 10% 20%, transparent 31%),
    radial-gradient(ellipse at 96% 104%, rgba(255,99,21,.28) 0 8%, transparent 27%),
    linear-gradient(180deg, rgba(31, 7, 5, .99), rgba(9, 1, 1, .998));
}
html[data-theme="fire"] .site-shell::after {
  inset: 0;
  height: auto;
  background-image:
    radial-gradient(circle, rgba(255, 198, 70, .90) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 78, 24, .72) 0 1.2px, transparent 1.8px),
    linear-gradient(to top, rgba(255, 49, 13, .14), transparent 42%);
  background-position: 13px 9px, 51px 37px, bottom;
  background-size: 94px 94px, 137px 137px, auto;
  opacity: .30;
}
html[data-theme="fire"] .app-frame {
  box-shadow:
    0 45px 110px #000000a3,
    0 0 0 1px rgba(255, 78, 45, .30),
    0 0 42px rgba(255, 55, 24, .22),
    inset 0 -55px 80px rgba(255, 68, 19, .055);
}

/* NEON — cyan/magenta rails, cyber grid and electric horizon. */
html[data-theme="neon"] {
  --theme-shell:
    radial-gradient(circle at 12% 12%, rgba(24, 227, 255, .28), transparent 28%),
    radial-gradient(circle at 90% 84%, rgba(233, 35, 255, .24), transparent 30%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(35,224,255,.025) 45px 46px),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(224,35,255,.02) 45px 46px),
    #020710;
  --theme-frame:
    linear-gradient(90deg, rgba(26,225,255,.075), transparent 18%, transparent 82%, rgba(231,36,255,.07)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(38,218,255,.022) 40px 41px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(221,39,255,.018) 40px 41px),
    linear-gradient(180deg, rgba(5, 22, 36, .99), rgba(3, 7, 16, .998));
}
html[data-theme="neon"] .site-shell::after {
  inset: 48% -18% -28%;
  transform: perspective(390px) rotateX(63deg);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(36,229,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,35,255,.13) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .38;
}
html[data-theme="neon"] .app-frame {
  box-shadow:
    0 45px 110px #000000a0,
    -8px 0 32px rgba(29, 221, 255, .13),
    8px 0 32px rgba(222, 36, 255, .12),
    0 0 0 1px rgba(48, 226, 255, .30);
}

/* FOREST — deep canopy, leaf-like pools of light and green mist. */
html[data-theme="forest"] {
  --theme-shell:
    radial-gradient(ellipse at 5% 0%, rgba(96, 241, 126, .23), transparent 30%),
    radial-gradient(ellipse at 100% 18%, rgba(45, 130, 55, .28), transparent 34%),
    radial-gradient(ellipse at 38% 110%, rgba(93, 199, 49, .22), transparent 36%),
    linear-gradient(145deg, #020d06, #082115 58%, #020905);
  --theme-frame:
    radial-gradient(ellipse at -2% 14%, rgba(91, 224, 114, .11), transparent 30%),
    radial-gradient(ellipse at 104% 76%, rgba(122, 196, 53, .12), transparent 32%),
    radial-gradient(circle at 78% 9%, rgba(163, 240, 115, .055) 0 3%, transparent 4%),
    linear-gradient(180deg, rgba(7, 30, 16, .99), rgba(3, 13, 7, .998));
}
html[data-theme="forest"] .site-shell::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(85,214,95,.16) 0 4%, transparent 5%),
    radial-gradient(ellipse at 82% 18%, rgba(90,194,70,.12) 0 5%, transparent 6%),
    radial-gradient(ellipse at 92% 78%, rgba(131,214,71,.11) 0 5%, transparent 6%),
    radial-gradient(ellipse at 24% 86%, rgba(75,178,72,.12) 0 5%, transparent 6%);
  filter: blur(7px);
  opacity: .55;
}

/* GALAXY — visible nebula clouds, layered star fields and cosmic glow. */
html[data-theme="galaxy"] {
  --theme-shell:
    radial-gradient(ellipse at 18% 16%, rgba(61, 105, 255, .34), transparent 31%),
    radial-gradient(ellipse at 78% 22%, rgba(180, 52, 245, .31), transparent 32%),
    radial-gradient(ellipse at 52% 86%, rgba(31, 119, 255, .22), transparent 36%),
    radial-gradient(ellipse at 45% 44%, rgba(82, 42, 185, .17), transparent 42%),
    #01020d;
  --theme-frame:
    radial-gradient(ellipse at 12% 18%, rgba(63, 106, 255, .19), transparent 30%),
    radial-gradient(ellipse at 86% 24%, rgba(187, 48, 244, .18), transparent 31%),
    radial-gradient(ellipse at 58% 84%, rgba(24, 103, 238, .14), transparent 36%),
    radial-gradient(circle, rgba(255,255,255,.42) 0 1px, transparent 1.3px),
    linear-gradient(180deg, rgba(9, 11, 43, .99), rgba(2, 3, 17, .998));
  background-size: auto, auto, auto, 54px 54px, auto;
}
html[data-theme="galaxy"] .site-shell::after {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.35px),
    radial-gradient(circle, rgba(145,173,255,.68) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(224,154,255,.42) 0 1px, transparent 1.7px);
  background-position: 6px 11px, 37px 71px, 83px 31px;
  background-size: 76px 76px, 123px 123px, 169px 169px;
  opacity: .30;
}
html[data-theme="galaxy"] .app-frame {
  box-shadow:
    0 45px 110px #000000a2,
    0 0 0 1px rgba(113,112,255,.31),
    -12px -4px 40px rgba(75,101,255,.11),
    12px 5px 46px rgba(176,48,246,.11);
}

/* STEALTH — carbon weave, graphite panels and restrained scan lines. */
html[data-theme="stealth"] {
  --theme-shell:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.010) 0 1px, transparent 1px 10px),
    radial-gradient(circle at 50% -10%, rgba(197,209,220,.09), transparent 32%),
    #080a0c;
  --theme-frame:
    repeating-linear-gradient(135deg, rgba(255,255,255,.017) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.009) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(20,23,26,.995), rgba(7,9,11,.999));
}
html[data-theme="stealth"] .site-shell::after {
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.012) 6px, transparent 7px);
  opacity: .32;
}
html[data-theme="stealth"] .app-frame {
  box-shadow:
    0 45px 110px #000000b0,
    0 0 0 1px rgba(198,207,216,.14),
    inset 0 0 0 1px rgba(255,255,255,.018);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme="fire"] .ambient-two {
    animation: ffFireGlow 4.8s ease-in-out infinite alternate;
  }
  html[data-theme="galaxy"] .site-shell::after,
  html[data-theme="dark-matter"] .site-shell::after {
    animation: ffStarDrift 28s linear infinite;
  }
  html[data-theme="neon"] .site-shell::after {
    animation: ffNeonGrid 13s linear infinite;
  }
}
@keyframes ffFireGlow {
  from { opacity: .13; transform: scale(.96); }
  to { opacity: .24; transform: scale(1.06); }
}
@keyframes ffStarDrift {
  from { background-position: 6px 11px, 37px 71px, 83px 31px; }
  to { background-position: 82px 87px, 160px 194px, 252px 200px; }
}
@keyframes ffNeonGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 44px, 44px 0; }
}
