﻿:root {
  --bg: #faf6ee;
  --bg-soft: #fffaf2;
  --ink: #112019;
  --muted: #74796f;
  --soft: #9d9f95;
  --panel: #fffdf8;
  --panel-solid: #fffdf8;
  --line: rgba(70, 59, 39, 0.14);
  --line-strong: rgba(70, 59, 39, 0.24);
  --green-950: #062f21;
  --green-900: #083b28;
  --green-800: #0d5438;
  --green-700: #127044;
  --green-500: #2f8f5a;
  --green-100: #e8f4eb;
  --amber-700: #a8671f;
  --amber-600: #c5822f;
  --amber-100: #fff3df;
  --red: #b42318;
  --shadow-sm: 0 10px 24px rgba(63, 49, 28, 0.06);
  --shadow: 0 18px 44px rgba(63, 49, 28, 0.08);
  --shadow-lg: 0 28px 80px rgba(63, 49, 28, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --sidebar: 266px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html,
body { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 0%, rgba(255, 239, 204, 0.84), transparent 30%),
    radial-gradient(circle at 96% 18%, rgba(232, 241, 220, 0.65), transparent 22%),
    linear-gradient(120deg, #fffaf2 0%, #fbf4e9 44%, #f8f1e4 100%);
  font-family: "LXGW WenKai Screen", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(77, 61, 35, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 61, 35, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 74%);
}

.ambient:before,
.ambient:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.ambient:before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 80px;
  background: rgba(235, 196, 132, 0.18);
}

.ambient:after {
  width: 320px;
  height: 320px;
  left: 220px;
  bottom: 80px;
  background: rgba(185, 224, 229, 0.28);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 30px 16px 20px;
  z-index: 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #17211c;
  border: 0;
  border-right: 1px solid rgba(38, 42, 34, 0.08);
  border-radius: 0;
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(222, 232, 238, 0.72), transparent 28%),
    linear-gradient(180deg, rgba(246, 245, 241, 0.98) 0%, rgba(237, 236, 230, 0.98) 100%);
  box-shadow: 14px 0 34px rgba(28, 34, 26, 0.08);
  overflow: hidden;
}

.sidebar:before {
  display: none;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
  padding: 0 8px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 34, 28, 0.12);
  border-radius: 50%;
  color: #255241;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 14%, transparent 15%),
    repeating-radial-gradient(circle, transparent 0 19%, rgba(37, 82, 65, 0.2) 20% 22%, transparent 23% 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 242, 240, 0.86));
  font-weight: 950;
  letter-spacing: -0.05em;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.44);
}

.brand strong,
.brand span,
.side-user-head > span,
.side-user .quota-label,
.side-user b,
.side-user small { display: block; }

.brand strong {
  color: #18221d;
  font-size: 27px;
  letter-spacing: -0.06em;
}

.brand span {
  margin-top: 1px;
  color: #687066;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.app-nav {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
}

.app-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 11px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #536057;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  opacity: .86;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.nav-copy {
  min-width: 0;
}

.nav-copy b,
.nav-copy small {
  display: block;
}

.app-nav a:hover,
.app-nav a.active {
  color: #18221d;
  border-color: rgba(27, 34, 28, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 243, 0.94));
  transform: translateX(1px);
  box-shadow: 0 10px 20px rgba(27, 34, 28, 0.07);
}

.app-nav b { font-weight: 820; font-size: 15px; }
.app-nav small { color: #849084; font-size: 10.5px; }
.app-nav a.active small,
.app-nav a:hover small { color: #677369; }

.side-user {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(27, 34, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.side-user-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.side-user-head > span,
.side-user .quota-label {
  color: #334036;
  font-weight: 820;
}

.side-user-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 34, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.side-user-role > span {
  color: #556257;
  font-size: 12px;
  font-weight: 760;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.role-badge.role-owner {
  color: #0d5133;
  background: #e9f7ef;
}

.role-badge.role-admin {
  color: #8a5418;
  background: #fff3df;
}

.role-badge.role-user {
  color: #556257;
  background: rgba(18, 32, 24, 0.08);
}

.quota-stack {
  display: grid;
  gap: 10px;
}

.side-user .quota-card {
  min-height: auto;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.side-user .quota-label {
  color: #556257;
  font-size: 12px;
  font-weight: 760;
}

.side-user strong {
  display: inline-flex;
  align-items: baseline;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 6px 0 3px;
  white-space: nowrap;
  color: #18221d;
  font-size: 22px;
  line-height: 1;
}

.side-user strong span,
.side-user .quota-unit {
  display: inline-flex;
  align-items: baseline;
  color: #5e6a61;
  font-size: 13px;
  font-weight: 650;
}

.side-user strong [data-quota-remaining] {
  color: #18221d;
  font-size: 22px;
  font-weight: 820;
}

.side-user .quota-unit[hidden] {
  display: none;
}

.side-user strong small {
  display: none;
}

.side-user .quota-card strong {
  display: inline-flex;
}

.quota-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.08);
}

.quota-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb04b, #c77a23);
}

.side-user b,
.side-user > small {
  color: #687066;
  font-size: 12px;
}

.side-user a {
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #314237;
  background: rgba(248, 248, 244, 0.82);
  border: 1px solid rgba(36, 38, 32, 0.09);
  font-size: 12px;
  font-weight: 760;
}

.main {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar);
  padding: 28px 28px 56px;
  min-width: 0;
}

.auth-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 30px;
  position: relative;
  z-index: 1;
}

.auth-body {
  color: #edf2f7;
  background:
    radial-gradient(circle at 18% 12%, rgba(80, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(76, 234, 203, 0.1), transparent 28%),
    linear-gradient(135deg, #06080b 0%, #10151c 48%, #050609 100%);
}

.auth-body .ambient {
  opacity: .72;
  background:
    linear-gradient(rgba(220, 232, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 232, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 86%);
}

.auth-body .ambient:before,
.auth-body .ambient:after {
  display: none;
}

.flash,
.error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(191, 123, 45, 0.24);
  border-radius: 16px;
  color: #87520f;
  background: rgba(255, 244, 223, 0.92);
  box-shadow: var(--shadow-sm);
}

.login-shell {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(690px, calc(100dvh - 60px));
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, 0.12);
  border-radius: 22px;
  background: rgba(10, 13, 18, 0.82);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
}

.login-shell:before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 21px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 72%, rgba(91, 255, 220, 0.07)),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(255, 255, 255, 0.025) 76px 77px);
  opacity: .86;
}

.login-rail {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(230px, .88fr) auto auto;
  min-width: 0;
  gap: 28px;
  padding: 30px;
  color: #edf2f7;
  border-right: 1px solid rgba(229, 236, 248, 0.1);
  background:
    radial-gradient(circle at 18% 20%, rgba(72, 139, 226, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(16, 22, 31, 0.96), rgba(8, 11, 16, 0.92));
}

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

.login-brand .brand-mark {
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(73, 91, 116, .95), rgba(22, 29, 40, .95));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 28px rgba(117, 218, 255, .18);
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  color: #f7fbff;
  font-size: 17px;
  letter-spacing: 0;
}

.login-brand span {
  margin-top: 1px;
  color: rgba(219, 228, 241, 0.58);
  font-size: 11px;
}

.login-visual {
  position: relative;
  align-self: center;
  min-height: 230px;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(circle at 52% 50%, rgba(89, 255, 224, .12), transparent 34%),
    rgba(4, 7, 11, .46);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.login-visual:before,
.login-visual:after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(229, 236, 248, .08);
  border-radius: 18px;
}

.login-visual:after {
  inset: auto 26px 26px auto;
  width: 108px;
  height: 108px;
  border-color: rgba(88, 241, 217, .14);
  border-radius: 50%;
}

.visual-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  color: rgba(244, 249, 255, .9);
  border: 1px solid rgba(229, 236, 248, .14);
  border-radius: 999px;
  background: rgba(9, 14, 21, .82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  font-size: 12px;
  font-weight: 860;
}

.visual-node-main {
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  color: #081015;
  border-color: rgba(107, 255, 224, .7);
  background: linear-gradient(135deg, #74f3de, #b9d5ff);
  transform: translate(-50%, -50%);
}

.visual-node-top {
  left: 32px;
  top: 36px;
}

.visual-node-right {
  right: 30px;
  top: 78px;
}

.visual-node-bottom {
  left: 58px;
  bottom: 42px;
}

.visual-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 224, .55), transparent);
  transform-origin: left center;
}

.visual-line-a {
  left: 88px;
  top: 74px;
  width: 136px;
  transform: rotate(25deg);
}

.visual-line-b {
  left: 196px;
  top: 112px;
  width: 126px;
  transform: rotate(-11deg);
}

.visual-line-c {
  left: 100px;
  bottom: 76px;
  width: 148px;
  transform: rotate(-22deg);
}

.login-rail-copy {
  align-self: end;
}

.login-kicker {
  margin: 0 0 12px;
  color: #70f0db;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.login-rail-copy h1 {
  margin: 0 0 14px;
  max-width: 310px;
  color: #f8fafc;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-rail-copy p {
  margin: 0;
  max-width: 330px;
  color: rgba(226, 232, 240, 0.64);
  font-size: 14px;
  line-height: 1.75;
}

.login-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-signal-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.74);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 760;
}

.login-signal-list span:before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #70f0db;
  box-shadow: 0 0 14px rgba(112, 240, 219, .66);
  opacity: .88;
}

.login-workspace {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 52px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 34%),
    rgba(6, 8, 12, 0.52);
}

.login-workspace:before {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(229, 236, 248, .06);
  border-radius: 20px;
  pointer-events: none;
}

.login-center {
  position: relative;
  width: min(470px, 100%);
  display: grid;
  gap: 20px;
  z-index: 1;
}

.login-heading {
  text-align: left;
}

.login-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #70f0db;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.login-heading h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.login-heading p {
  margin: 0;
  max-width: 390px;
  color: rgba(226, 232, 240, .62);
  font-size: 14px;
  line-height: 1.75;
}

.login-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(229, 236, 248, .12);
  border-radius: 16px;
  background: rgba(12, 16, 23, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.login-card label {
  color: rgba(226, 232, 240, .76);
  font-size: 13px;
  font-weight: 800;
}

.login-card input {
  min-height: 48px;
  color: #f8fafc;
  border-color: rgba(229, 236, 248, .12);
  background: rgba(2, 5, 10, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.login-card input:focus {
  border-color: rgba(112, 240, 219, .74);
  box-shadow:
    0 0 0 4px rgba(112, 240, 219, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
  outline: 0;
}

.login-card .primary {
  margin-top: 4px;
  min-height: 48px;
  color: #06131e;
  border: 0;
  background: linear-gradient(135deg, #76f2df, #d5e4ff);
  box-shadow: 0 18px 46px rgba(112, 240, 219, .18);
}

.login-card .primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

/* Public sign-in page: intentionally contains no product, task, or collection details. */
.login-shell.login-shell-simple {
  display: block;
  width: min(440px, calc(100% - 32px));
  min-height: 0;
}

.login-shell-simple:before {
  opacity: .42;
}

.login-shell-simple .login-workspace {
  padding: 42px;
  background: transparent;
}

.login-shell-simple .login-workspace:before {
  display: none;
}

.login-shell-simple .login-center {
  width: 100%;
  gap: 18px;
}

.login-shell-simple .login-heading {
  text-align: center;
}

.login-shell-simple .login-heading h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: .04em;
  line-height: 1.2;
}

.login-shell-simple .login-card {
  gap: 12px;
  padding: 24px;
}

.login-shell-simple .login-card label {
  margin-top: 3px;
}

@media (max-width: 760px) {
  .login-shell.login-shell-simple {
    width: min(100% - 24px, 440px);
  }

  .login-shell-simple .login-workspace {
    padding: 28px 20px;
  }

  .login-shell-simple .login-card {
    padding: 20px;
  }
}

.landing-main {
  display: block;
  place-items: initial;
  padding: 0;
}

.product-home {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: #edf2f7;
}

.product-home:before,
.product-home:after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.product-home:before {
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(112, 240, 219, .1), transparent 16%),
    radial-gradient(circle at 86% 18%, rgba(157, 187, 255, .12), transparent 18%),
    repeating-linear-gradient(115deg, transparent 0 84px, rgba(112, 240, 219, .035) 84px 85px);
  opacity: .86;
  animation: home-field-drift 16s ease-in-out infinite alternate;
}

.product-home:after {
  left: -18vw;
  top: 18vh;
  width: 136vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 240, 219, .28), transparent);
  box-shadow:
    0 110px 0 rgba(157, 187, 255, .08),
    0 220px 0 rgba(112, 240, 219, .07),
    0 330px 0 rgba(157, 187, 255, .05);
  transform: rotate(-8deg);
  animation: home-scan-lines 7.6s linear infinite;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  font-weight: 900;
}

.home-brand .brand-mark {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(73, 91, 116, .95), rgba(22, 29, 40, .95));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 28px rgba(117, 218, 255, .18);
  animation: home-mark-pulse 4.8s ease-in-out infinite;
}

.home-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 999px;
  background: rgba(10, 13, 18, .58);
  backdrop-filter: blur(18px);
}

.home-nav nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
  font-weight: 820;
}

.home-nav nav a:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, .055);
}

.home-nav .home-login {
  color: #06131e;
  background: linear-gradient(135deg, #76f2df, #d5e4ff);
}

.home-nav .home-login-learning {
  color: #f8edf3;
  border: 1px solid rgba(233, 184, 202, .28);
  background: rgba(233, 184, 202, .1);
}

.home-hero {
  position: relative;
  min-height: calc(100dvh - 96px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr);
  align-items: center;
  gap: 54px;
  padding: 54px 0 86px;
}

.home-hero:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 84px;
  width: min(680px, 58vw);
  height: min(680px, 58vw);
  pointer-events: none;
  border-radius: 50%;
  background:
    conic-gradient(from 130deg, transparent, rgba(112, 240, 219, .12), transparent 34%),
    radial-gradient(circle, rgba(112, 240, 219, .12), transparent 62%);
  filter: blur(.2px);
  opacity: .72;
  transform: translateX(-2%);
  animation: home-orbit-glow 12s linear infinite;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
}

.home-kicker {
  margin: 0 0 16px;
  color: #70f0db;
  font-size: 11px;
  font-weight: 940;
  letter-spacing: .14em;
}

.home-hero h1 {
  margin: 0;
  max-width: 680px;
  color: #f8fafc;
  font-size: 62px;
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(112, 240, 219, .12);
  animation: hero-title-breathe 5.8s ease-in-out infinite;
}

.home-hero-copy > p:not(.home-kicker) {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(226, 232, 240, .66);
  font-size: 17px;
  line-height: 1.86;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.home-live-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 999px;
  color: rgba(226, 232, 240, .68);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 840;
}

.home-live-strip span:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70f0db;
  box-shadow: 0 0 14px rgba(112, 240, 219, .72);
}

.home-live-strip span:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-120%);
  animation: home-chip-scan 5.4s ease-in-out infinite;
}

.home-live-strip span:nth-child(2):after { animation-delay: .7s; }
.home-live-strip span:nth-child(3):after { animation-delay: 1.4s; }
.home-live-strip span:nth-child(4):after { animation-delay: 2.1s; }

.home-primary,
.home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.home-primary {
  position: relative;
  overflow: hidden;
  color: #06131e;
  background: linear-gradient(135deg, #76f2df, #d5e4ff);
  box-shadow: 0 18px 46px rgba(112, 240, 219, .18);
}

.home-primary:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: translateX(-130%);
  animation: cta-light-sweep 4.6s ease-in-out infinite;
}

.home-secondary {
  color: rgba(238, 244, 252, .86);
  border: 1px solid rgba(229, 236, 248, .12);
  background: rgba(255, 255, 255, .045);
}

.home-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, .12);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 70% 18%, rgba(91, 255, 220, .12), transparent 34%),
    rgba(9, 13, 20, .78);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: 0 44px 120px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  animation: console-float 7.2s ease-in-out infinite;
}

.home-console:before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(112, 240, 219, .13) 48%, transparent 64%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, .035));
  opacity: .72;
  transform: translateX(-46%);
  animation: console-light-pass 8s ease-in-out infinite;
}

.home-console:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .032) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(112, 240, 219, .055) 72%, transparent 100%);
  mix-blend-mode: screen;
  opacity: .46;
  animation: console-scan-noise 5.8s steps(8) infinite;
}

.console-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(229, 236, 248, .09);
}

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(226, 232, 240, .38);
}

.console-top span:first-child {
  background: #70f0db;
}

.console-top b {
  margin-left: auto;
  color: rgba(226, 232, 240, .54);
  font-size: 12px;
  font-weight: 800;
}

.console-radar {
  position: relative;
  z-index: 1;
  height: 228px;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, .08);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(112, 240, 219, .13), transparent 34%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    rgba(2, 5, 10, .36);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.radar-core,
.radar-ring,
.radar-sweep,
.radar-dot {
  position: absolute;
  left: 50%;
  top: 50%;
}

.radar-core {
  z-index: 4;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #071116;
  border-radius: 50%;
  background: linear-gradient(135deg, #76f2df, #d5e4ff);
  box-shadow:
    0 0 0 18px rgba(112, 240, 219, .045),
    0 0 54px rgba(112, 240, 219, .28);
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.radar-ring {
  z-index: 2;
  border: 1px solid rgba(112, 240, 219, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-a {
  width: 178px;
  height: 178px;
  animation: radar-pulse 3.8s ease-in-out infinite, radar-spin-slow 18s linear infinite;
}

.radar-ring-b {
  width: 282px;
  height: 282px;
  border-color: rgba(157, 187, 255, .13);
  box-shadow: 0 0 80px rgba(112, 240, 219, .06) inset;
  animation: radar-pulse 4.8s ease-in-out infinite reverse, radar-spin-slow 24s linear infinite reverse;
}

.radar-sweep {
  z-index: 3;
  width: 150px;
  height: 150px;
  background: conic-gradient(from 0deg, rgba(112, 240, 219, .22), transparent 36%);
  clip-path: polygon(50% 50%, 100% 0, 100% 100%);
  transform-origin: 0 0;
  animation: radar-sweep 5.2s linear infinite;
}

.radar-dot {
  z-index: 5;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70f0db;
  box-shadow: 0 0 16px rgba(112, 240, 219, .82);
  animation: radar-dot-blink 2.6s ease-in-out infinite;
}

.radar-dot-a {
  transform: translate(92px, -54px);
}

.radar-dot-b {
  transform: translate(-126px, 34px);
  background: #9dbbff;
}

.radar-dot-c {
  transform: translate(34px, 92px);
}

.console-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 12px;
  padding: 16px;
}

.console-panel {
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(229, 236, 248, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  animation: panel-drift 6.8s ease-in-out infinite;
}

.console-panel:nth-child(2) {
  animation-delay: .6s;
}

.console-panel:nth-child(3) {
  animation-delay: 1.2s;
}

.console-panel-main {
  grid-row: span 2;
  min-height: 230px;
}

.console-panel small {
  color: rgba(112, 240, 219, .86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.console-panel strong {
  display: block;
  margin-top: 12px;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.15;
}

.console-panel p {
  margin: 12px 0 0;
  color: rgba(226, 232, 240, .62);
  line-height: 1.75;
}

.console-progress {
  margin-top: 56px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.console-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #70f0db, #9dbbff);
  animation: progress-breathe 3.2s ease-in-out infinite;
}

.console-command {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  margin: 0 16px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 236, 248, .09);
  border-radius: 14px;
  background: rgba(2, 5, 10, .46);
  overflow: hidden;
}

.console-command:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #70f0db, transparent);
  animation: command-line-run 3.4s linear infinite;
}

.console-command span {
  color: #70f0db;
  font-size: 11px;
  font-weight: 940;
  letter-spacing: .1em;
}

.console-command p {
  margin: 0;
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
}

.console-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}

.console-timeline span {
  padding: 10px 8px;
  border: 1px solid rgba(229, 236, 248, .08);
  border-radius: 12px;
  color: rgba(226, 232, 240, .68);
  background: rgba(255, 255, 255, .03);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
}

.home-section,
.home-flow,
.home-delivery {
  padding: 92px 0;
  border-top: 1px solid rgba(229, 236, 248, .08);
}

.home-section-head,
.home-flow {
  display: grid;
  grid-template-columns: minmax(260px, .6fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.home-section h2,
.home-flow h2,
.home-delivery h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 40px;
  line-height: 1.12;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.home-feature-grid article,
.flow-steps article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.home-feature-grid article:before,
.flow-steps article:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(112, 240, 219, .12), transparent 36%);
  opacity: 0;
  transition: opacity .22s ease;
}

.home-feature-grid article:hover:before,
.flow-steps article:hover:before {
  opacity: 1;
}

.home-feature-grid span,
.flow-steps b {
  color: #70f0db;
  font-size: 12px;
  font-weight: 940;
}

.home-feature-grid h3,
.flow-steps span {
  display: block;
  margin: 16px 0 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 920;
}

.home-feature-grid p,
.flow-steps p,
.home-delivery p {
  margin: 12px 0 0;
  color: rgba(226, 232, 240, .62);
  line-height: 1.78;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-learning {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, .72fr);
  gap: 54px;
  align-items: center;
  padding: 92px 0;
  border-top: 1px solid rgba(229, 236, 248, .08);
}

.home-learning:before {
  content: "";
  position: absolute;
  inset: 22px -32px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 34%, rgba(233, 184, 202, .13), transparent 31%),
    radial-gradient(circle at 12% 78%, rgba(157, 187, 255, .08), transparent 25%),
    linear-gradient(135deg, rgba(255, 255, 255, .03), transparent);
}

.learning-copy h2 {
  margin: 0;
  max-width: 660px;
  color: #f8fafc;
  font-size: 42px;
  line-height: 1.12;
}

.learning-copy > p:not(.home-kicker) {
  margin: 18px 0 0;
  max-width: 680px;
  color: rgba(226, 232, 240, .66);
  font-size: 16px;
  line-height: 1.86;
}

.learning-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.learning-feature-list li {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(229, 236, 248, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .03);
}

.learning-feature-list b,
.learning-feature-list span {
  display: block;
}

.learning-feature-list b {
  color: #f3d5e1;
  font-size: 13px;
}

.learning-feature-list span {
  margin-top: 5px;
  color: rgba(226, 232, 240, .55);
  font-size: 12px;
  line-height: 1.55;
}

.learning-actions,
.home-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.learning-actions {
  margin-top: 30px;
}

.learning-actions > span {
  color: rgba(226, 232, 240, .52);
  font-size: 12px;
}

.home-primary-learning {
  color: #25151d;
  background: linear-gradient(135deg, #e9b8ca, #d8d6ff);
  box-shadow: 0 18px 46px rgba(233, 184, 202, .16);
}

.learning-card {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(233, 184, 202, .24);
  border-radius: 28px;
  color: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 52% 42%, rgba(233, 184, 202, .2), transparent 34%),
    linear-gradient(145deg, #17131a, #0b1017 68%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 42px 110px rgba(0, 0, 0, .4);
}

.learning-card:focus-visible {
  outline: 3px solid rgba(233, 184, 202, .8);
  outline-offset: 5px;
}

.learning-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(247, 237, 243, .7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.learning-card-top i {
  padding: 5px 8px;
  border: 1px solid rgba(233, 184, 202, .18);
  border-radius: 999px;
  color: #e9b8ca;
  font-size: 9px;
  font-style: normal;
}

.learning-card-stage {
  position: absolute;
  inset: 54px 0 94px;
  display: grid;
  place-items: center;
}

.learning-orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(233, 184, 202, .18);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(233, 184, 202, .12);
}

.learning-orbit:before,
.learning-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 214, 255, .1);
  border-radius: 50%;
}

.learning-orbit:before { inset: 28px; }
.learning-orbit:after { inset: 58px; }

.learning-monogram {
  position: relative;
  z-index: 1;
  color: #f2c6d7;
  font-family: Georgia, serif;
  font-size: 92px;
  font-style: italic;
  text-shadow: 0 0 42px rgba(233, 184, 202, .3);
}

.learning-card-copy {
  position: absolute;
  left: 24px;
  bottom: 58px;
  z-index: 2;
}

.learning-card-copy small,
.learning-card-copy strong,
.learning-card-copy p {
  display: block;
}

.learning-card-copy small {
  color: rgba(226, 232, 240, .52);
  font-size: 10px;
  letter-spacing: .08em;
}

.learning-card-copy strong {
  margin-top: 5px;
  color: #f8edf3;
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
}

.learning-card-copy p {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, .6);
  font-size: 12px;
}

.learning-card-tags {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.learning-card-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(229, 236, 248, .09);
  border-radius: 999px;
  color: rgba(226, 232, 240, .55);
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
}

.home-game-lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 92px 0;
  border-top: 1px solid rgba(229, 236, 248, .08);
}

.home-game-lab:before {
  content: "";
  position: absolute;
  inset: 18px -32px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 36%, rgba(112, 240, 219, .12), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(157, 187, 255, .1), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent);
  opacity: .8;
}

.game-lab-copy h2 {
  margin: 0;
  max-width: 640px;
  color: #f8fafc;
  font-size: 42px;
  line-height: 1.1;
}

.game-lab-copy > p:not(.home-kicker) {
  margin: 18px 0 0;
  max-width: 640px;
  color: rgba(226, 232, 240, .64);
  font-size: 16px;
  line-height: 1.86;
}

.game-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.game-lab-actions span {
  color: rgba(226, 232, 240, .54);
  font-size: 13px;
  font-weight: 820;
}

.game-card {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, .12);
  border-radius: 28px;
  color: inherit;
  background:
    radial-gradient(circle at 50% 18%, rgba(112, 240, 219, .14), transparent 32%),
    linear-gradient(145deg, rgba(12, 18, 28, .94), rgba(5, 8, 14, .96));
  box-shadow: 0 44px 120px rgba(0, 0, 0, .38);
  transform-style: preserve-3d;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}

.game-card:hover {
  border-color: rgba(112, 240, 219, .32);
  box-shadow: 0 54px 140px rgba(0, 0, 0, .46), 0 0 70px rgba(112, 240, 219, .12);
  transform: translateY(-6px) rotateX(1deg) rotateY(-1deg);
}

.game-card:before,
.game-card:after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.game-card:before {
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, .16) 47%, transparent 62%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.026) 0 1px, transparent 1px 8px);
  transform: translateX(-62%);
  animation: game-card-scan 6.8s ease-in-out infinite;
}

.game-card:after {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 240, 219, .86), transparent);
  animation: game-card-line 3.2s linear infinite;
}

.game-card-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: .22;
}

.game-card-grid i {
  border-right: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.game-card-orbit {
  position: absolute;
  right: -96px;
  top: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(112, 240, 219, .18);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(112, 240, 219, .12) inset;
  animation: game-orbit 14s linear infinite;
}

.game-card-window {
  position: absolute;
  inset: 34px;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 248, .1);
  border-radius: 22px;
  background: rgba(2, 5, 10, .44);
  backdrop-filter: blur(18px);
}

.game-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(229, 236, 248, .08);
}

.game-card-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(226, 232, 240, .36);
}

.game-card-top span:first-child {
  background: #70f0db;
  box-shadow: 0 0 16px rgba(112, 240, 219, .74);
}

.game-card-top b {
  margin-left: auto;
  color: rgba(226, 232, 240, .52);
  font-size: 12px;
}

.game-scene {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(53, 87, 118, .34), transparent 42%),
    linear-gradient(0deg, rgba(112, 240, 219, .1) 0 2px, transparent 2px 100%),
    linear-gradient(90deg, rgba(112, 240, 219, .08) 0 2px, transparent 2px 100%);
  background-size: auto, 34px 34px, 34px 34px;
  perspective: 720px;
}

.game-scene:after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -48px;
  height: 150px;
  background: linear-gradient(135deg, rgba(112, 240, 219, .18), rgba(157, 187, 255, .08));
  transform: rotateX(62deg);
  transform-origin: bottom;
}

.voxel {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, #76f2df, #9dbbff);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.voxel.sun {
  right: 54px;
  top: 34px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  animation: game-sun-pulse 4.4s ease-in-out infinite;
}

.voxel.tree-a,
.voxel.tree-b {
  width: 34px;
  height: 112px;
  bottom: 56px;
  background: linear-gradient(180deg, #70f0db 0 34%, #1c6a55 34% 100%);
}

.voxel.tree-a { left: 56px; }
.voxel.tree-b { right: 118px; bottom: 74px; transform: scale(.8); }

.voxel.cube-a,
.voxel.cube-b,
.voxel.cube-c {
  width: 58px;
  height: 58px;
  bottom: 64px;
  transform: rotateX(58deg) rotateZ(45deg);
  animation: game-cube-float 4.8s ease-in-out infinite;
}

.voxel.cube-a { left: 138px; background: linear-gradient(135deg, #76f2df, #4da3ff); }
.voxel.cube-b { left: 224px; bottom: 92px; animation-delay: .7s; }
.voxel.cube-c { right: 70px; bottom: 52px; animation-delay: 1.2s; }

.voxel.player {
  left: 50%;
  top: 48%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 0 24px rgba(255, 255, 255, .72);
  transform: translate(-50%, -50%);
}

.voxel.crosshair {
  left: 50%;
  top: 48%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(248, 250, 252, .5);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.voxel.crosshair:before,
.voxel.crosshair:after {
  content: "";
  position: absolute;
  background: rgba(248, 250, 252, .62);
}

.voxel.crosshair:before {
  left: 50%;
  top: -8px;
  width: 1px;
  height: 70px;
}

.voxel.crosshair:after {
  left: -8px;
  top: 50%;
  width: 70px;
  height: 1px;
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid rgba(229, 236, 248, .08);
}

.game-hud span {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  border: 1px solid rgba(229, 236, 248, .08);
  border-radius: 12px;
  color: rgba(226, 232, 240, .68);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 860;
  text-align: center;
}

.home-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 120px;
}

.home-delivery > div {
  max-width: 720px;
}

.home-delivery-actions {
  justify-content: flex-end;
}

@keyframes home-chip-scan {
  0%, 58% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@keyframes home-field-drift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .72; }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); opacity: .96; }
}

@keyframes home-scan-lines {
  from { transform: translateY(-160px) rotate(-8deg); opacity: .18; }
  45% { opacity: .58; }
  to { transform: translateY(520px) rotate(-8deg); opacity: .16; }
}

@keyframes home-mark-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(117, 218, 255, .16); }
  50% { box-shadow: 0 0 42px rgba(112, 240, 219, .34); }
}

@keyframes home-orbit-glow {
  from { transform: translateX(-2%) rotate(0deg); }
  to { transform: translateX(-2%) rotate(360deg); }
}

@keyframes hero-title-breathe {
  0%, 100% { text-shadow: 0 0 28px rgba(112, 240, 219, .09); }
  50% { text-shadow: 0 0 48px rgba(112, 240, 219, .19), 0 0 90px rgba(157, 187, 255, .1); }
}

@keyframes cta-light-sweep {
  0%, 54% { transform: translateX(-130%); }
  76%, 100% { transform: translateX(130%); }
}

@keyframes console-light-pass {
  0%, 48% { transform: translateX(-56%); }
  72%, 100% { transform: translateX(56%); }
}

@keyframes console-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotateX(1.2deg) rotateY(-1.1deg); }
}

@keyframes console-scan-noise {
  0% { opacity: .34; transform: translateY(-2px); }
  50% { opacity: .52; transform: translateY(2px); }
  100% { opacity: .38; transform: translateY(-1px); }
}

@keyframes radar-pulse {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.98); }
  50% { opacity: .92; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes radar-spin-slow {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radar-dot-blink {
  0%, 100% { opacity: .44; filter: brightness(.9); }
  45%, 60% { opacity: 1; filter: brightness(1.4); }
}

@keyframes progress-breathe {
  0%, 100% { filter: brightness(.92); }
  50% { filter: brightness(1.2); }
}

@keyframes panel-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes command-line-run {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes game-card-scan {
  0%, 46% { transform: translateX(-62%); }
  72%, 100% { transform: translateX(62%); }
}

@keyframes game-card-line {
  from { transform: translateX(-36%); }
  to { transform: translateX(36%); }
}

@keyframes game-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes game-sun-pulse {
  0%, 100% { filter: brightness(.92); box-shadow: 0 0 28px rgba(112, 240, 219, .34); }
  50% { filter: brightness(1.26); box-shadow: 0 0 58px rgba(112, 240, 219, .58); }
}

@keyframes game-cube-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-home:before,
  .product-home:after,
  .home-brand .brand-mark,
  .home-hero:before,
  .home-hero h1,
  .home-primary:after,
  .home-live-strip span:after,
  .home-console:before,
  .home-console:after,
  .home-console,
  .radar-ring-a,
  .radar-ring-b,
  .radar-sweep,
  .radar-dot,
  .console-progress i,
  .console-panel,
  .console-command:after,
  .game-card:before,
  .game-card:after,
  .game-card-orbit,
  .voxel.sun,
  .voxel.cube-a,
  .voxel.cube-b,
  .voxel.cube-c {
    animation: none;
  }
}

.eyebrow {
  margin: 0;
  color: var(--amber-600);
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
  color: #33443a;
  font-size: 13px;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #ddd9cc;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255, 255, 251, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea { resize: vertical; }

.builder-form textarea {
  min-height: 64px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 122, 77, 0.76);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
  background: #fff;
}

button,
.primary {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 860;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, #163b2d, #247b50);
  box-shadow: 0 12px 24px rgba(31, 122, 80, 0.16);
}

.primary:hover { transform: translateY(-1px); }

.workspace-header {
  display: grid;
  grid-template-columns: minmax(240px, .66fr) minmax(520px, 1.45fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.workspace-title {
  min-width: 0;
  padding: 4px 0;
}

.workspace-title h1 {
  margin: 0 0 7px;
  color: #07351f;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.workspace-title p {
  margin: 0;
  color: #62685e;
  font-size: 14px;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 12px;
}

.workspace-actions small {
  color: #687066;
  font-size: 12px;
}

.owner-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(21, 58, 43, 0.12);
  border-radius: 999px;
  color: #173126;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(31, 41, 35, 0.08);
  font-size: 13px;
  font-weight: 820;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.owner-entry-link:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 77, 0.34);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(31, 122, 77, 0.12);
}

.status-deck {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-sm);
}

.status-deck article {
  min-width: 0;
  padding: 15px 18px;
  border-left: 1px solid rgba(51, 54, 43, 0.1);
}

.status-deck article:first-child {
  border-left: 0;
}

.status-deck span,
.status-deck small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.status-deck strong {
  display: block;
  margin: 6px 0 6px;
  color: #153a2b;
  font-size: 26px;
  line-height: .95;
  letter-spacing: -0.04em;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  justify-content: flex-end;
}

.notify-dot {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 58, 43, 0.12);
  border-radius: 999px;
  color: #22342a;
  background: rgba(255, 253, 248, 0.94);
  font-size: 0;
  box-shadow: var(--shadow-sm);
}

.notify-dot:before {
  content: "";
  width: 17px;
  height: 17px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322342a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5a4 4 0 0 0-4 4v2.2c0 .6-.2 1.2-.5 1.7L6.1 15h11.8l-1.4-1.6c-.3-.5-.5-1.1-.5-1.7V9.5a4 4 0 0 0-4-4Z'/%3E%3Cpath d='M10.2 17.5a2.1 2.1 0 0 0 3.6 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.notify-dot:after {
  content: attr(data-count);
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d93025;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(217, 48, 37, 0.22);
}

.user-bubble {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #174331, #c9822e);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.top-user strong,
.top-user small {
  display: block;
}

.top-user strong {
  color: #26362c;
  font-size: 13.5px;
}

.top-user small {
  color: var(--muted);
  font-size: 12px;
}

.top-user > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.command-copy {
  min-height: 210px;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #10271b 0%, #236142 60%, #b66b2c 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.command-copy:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 48px solid rgba(255, 255, 255, 0.1);
}

.command-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -0.08em;
}

.command-copy p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.quota-card {
  display: block;
  min-height: 0;
  padding: 15px 17px;
  border: 0;
  border-radius: 0;
  color: var(--green-950);
  background: transparent;
  box-shadow: none;
}

.quota-card span,
.quota-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.quota-card strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 27px;
  line-height: .95;
  letter-spacing: -0.04em;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-strip article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
}

.metric-strip span,
.metric-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.metric-strip strong {
  display: block;
  margin: 8px 0 3px;
  color: var(--green-900);
  font-size: 34px;
  line-height: .9;
  letter-spacing: -0.04em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.hero.compact { grid-template-columns: 1fr; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -0.06em; }
.hero p:not(.eyebrow) { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); }

.panel,
.mission-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}

.panel { padding: 17px; }
.mission-panel { padding: 16px; }

.panel-title,
.mission-head,
.site-filter-head,
.filter-title-row,
.guide-card-head,
.submit-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-title { margin-bottom: 16px; }
.panel-title h2,
.mission-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.mission-head p,
.panel-title span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mission-head {
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 388px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.intel-rail {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}

.mission-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 16px;
  padding: 0;
}

.mission-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 11px;
  align-items: center;
  padding: 4px 14px 4px 0;
  border: 0;
  background: transparent;
}

.mission-steps li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 64px;
  right: 18px;
  top: 21px;
  height: 2px;
  background: linear-gradient(90deg, #0b5d3b, rgba(80, 72, 58, 0.28));
}

.mission-steps span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #e1d7c6;
  border-radius: 999px;
  color: #7b6e5b;
  background: #fffdf8;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(61, 50, 31, 0.06);
}

.mission-steps li:first-child span {
  color: #fffaf0;
  border-color: transparent;
  background: linear-gradient(135deg, #c98b38, #a46423);
}

.mission-steps b { font-size: 15px; }
.mission-steps small { color: var(--muted); font-size: 11px; }

.builder-form,
.task-form,
.stack,
.keyword-group-stack,
.site-config-stack,
.guide-card-stack,
.guide-points,
.chat-form,
.stack-form,
.user-list {
  display: grid;
  gap: 12px;
}

.compact-keywords {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 92px;
  overflow: auto;
  padding-right: 4px;
}

.builder-section {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(78, 62, 38, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 251, 0.62);
}

.site-section { padding: 14px; }

#site-matrix {
  padding: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.section-heading h3,
.site-filter-head h4,
.filter-title-row h5,
.guide-card-head h3,
.site-card h3 {
  margin: 0;
}

.section-heading p,
.site-filter-head p,
.filter-title-row p,
.guide-card-head p,
.site-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.step-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 920;
  font-size: 12px;
}

.mission-split,
.form-row,
.site-filter-grid,
.guide-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hint { margin: 0; color: var(--muted); font-size: 12px; }

.site-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.site-toggle {
  position: relative;
  display: block;
  min-height: 96px;
  padding: 9px;
  border: 1px solid rgba(87, 64, 35, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 252, 0.92);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.matrix-more {
  justify-self: center;
  margin-top: -2px;
  padding: 8px 18px;
  border: 1px solid rgba(178, 125, 58, 0.18);
  border-radius: 999px;
  color: #986526;
  background: rgba(255, 247, 232, 0.82);
  font-size: 13px;
  font-weight: 760;
}

.site-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 77, 0.34);
  box-shadow: var(--shadow-sm);
}

.site-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.site-toggle.is-active {
  border-color: rgba(190, 122, 39, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(255, 250, 238, 0.98));
  box-shadow: 0 12px 26px rgba(168, 103, 31, 0.11);
}

.site-toggle.is-active:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 30px solid #0f744a;
  border-left: 30px solid transparent;
}

.site-placeholder {
  cursor: default;
  border-style: dashed;
  color: var(--soft);
  background: rgba(255, 253, 248, 0.46);
}

.site-planned {
  color: #6e7469;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.62), rgba(238, 247, 249, 0.42));
}

.site-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(18, 32, 24, 0.12);
}

.site-toggle-body {
  display: grid;
  gap: 7px;
}

.site-toggle-top,
.site-capabilities,
.site-notes,
.choice-list,
.tiny-actions,
.task-links,
.task-actions,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-capabilities {
  display: none;
  min-width: 0;
  overflow: hidden;
}

.site-toggle-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  justify-content: normal;
  align-items: center;
}

.site-logo {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 62, 43, 0.14);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #166b48, #269b67);
  font-size: 16px;
  font-weight: 900;
}

.site-logo-1 { background: linear-gradient(135deg, #176b9d, #38a0cc); }
.site-logo-2 { background: linear-gradient(135deg, #cf2e1c, #f2b23e); }
.site-logo-3 { background: linear-gradient(135deg, #b71925, #f0bc39); }
.site-logo-4 { background: linear-gradient(135deg, #2278b8, #f2a84b); }
.site-logo-5 { background: linear-gradient(135deg, #ca2b2a, #f5b54c); }
.muted-logo { color: #879082; background: #f4f1e9; }

.site-toggle-body b {
  position: relative;
  min-width: 0;
  color: #233629;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-name-tooltip {
  display: block;
  min-width: 0;
  overflow: visible;
  cursor: help;
  isolation: isolate;
  z-index: 2;
}

.site-name-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-name-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: min(320px, 52vw);
  padding: 10px 12px;
  border: 1px solid rgba(26, 39, 32, 0.14);
  border-radius: 12px;
  color: #203127;
  background: rgba(255, 253, 248, 0.995);
  box-shadow: 0 16px 32px rgba(28, 34, 26, 0.18);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.site-name-tooltip:hover .site-name-popup,
.site-name-tooltip:focus-visible .site-name-popup,
.site-name-tooltip:focus-within .site-name-popup {
  opacity: 1;
  transform: translateY(0);
}

.site-toggle-body small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-capabilities em,
.guide-tags em,
.site-notes span,
.micro-tag,
.field-badge,
.links a,
.badge,
.status,
.quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 760;
}

.site-capabilities em {
  display: block;
  color: #47564b;
  background: rgba(34, 43, 36, 0.052);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-facts {
  display: grid;
  gap: 4px;
  margin: 0;
}

.site-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.site-facts dt,
.site-facts dd {
  margin: 0;
  min-width: 0;
  font-size: 11.5px;
}

.site-facts dt {
  color: #666f66;
}

.site-facts dd {
  overflow: hidden;
  color: #2e3b32;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.micro-tag {
  color: #587266;
  background: #ecf4ed;
  text-transform: uppercase;
}

.muted-tag {
  color: #7e887f;
  background: rgba(18, 32, 24, 0.06);
}

.field-badge,
.links a,
.badge {
  color: var(--green-700);
  background: var(--green-100);
}

.keyword-group {
  padding: 8px;
  border: 1px solid rgba(18, 32, 24, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 251, 0.72);
}

.keyword-group-head {
  margin-bottom: 7px;
  color: #876437;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.choice-list.dense {
  max-height: 108px;
  overflow: auto;
  padding-right: 4px;
}

.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.choice-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid #ddd5c9;
  border-radius: 999px;
  color: #33443a;
  background: rgba(255, 255, 251, 0.9);
  font-size: 12px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.choice-pill input:checked + span {
  color: var(--green-950);
  border-color: rgba(31, 122, 77, 0.55);
  background: var(--green-100);
  transform: translateY(-1px);
}

.keyword-pill span { font-weight: 760; }

.site-filter-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(18, 32, 24, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 251, 0.78);
}

.site-filter-card.is-inactive { display: none; }

#site-rules .site-config-stack {
  max-height: 92px;
  overflow: auto;
  padding-right: 4px;
}

#site-rules .section-heading,
.builder-form > .submit-bar {
  display: none;
}

#site-rules .section-heading p,
#keyword-rules .section-heading p,
#site-matrix .section-heading p,
#site-rules .site-filter-head p,
#site-rules .filter-title-row p,
#site-rules .site-notes {
  display: none;
}

#site-rules .site-filter-card {
  padding: 10px;
}

#site-rules .filter-box {
  padding: 8px;
}

#site-rules .choice-list.dense {
  max-height: 52px;
}

#keyword-rules {
  max-height: 200px;
  overflow: auto;
}

.pending-panel {
  display: none;
}

.filter-box {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(18, 32, 24, 0.09);
  border-radius: 15px;
  background: rgba(248, 246, 236, 0.72);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 12px;
  font-weight: 860;
}

.text-button[disabled] { color: #9ba49c; cursor: default; }

.muted-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(18, 32, 24, 0.06);
  font-size: 13px;
  line-height: 1.6;
}

.locked-filter {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--green-100);
}

.locked-label {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 860;
}

.locked-filter strong { font-size: 18px; }

.site-notes span {
  color: #8b6536;
  background: var(--amber-100);
}

.submit-bar {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.submit-button { min-width: 150px; }

.guide-overview {
  background: rgba(255, 253, 248, 0.86);
}

.guide-point {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(18, 32, 24, 0.09);
}

.guide-point:first-child { padding-top: 0; border-top: 0; }

.guide-point span,
.capacity-node span {
  display: grid;
  place-items: center;
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 900;
}

.guide-point span {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.guide-point p {
  margin: 0;
  color: #33443a;
  font-size: 13px;
  line-height: 1.6;
}

.capacity-track {
  display: grid;
  gap: 8px;
}

.capacity-node {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px dashed rgba(18, 32, 24, 0.12);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(255, 255, 251, 0.54);
}

.capacity-node.is-live {
  color: var(--ink);
  border-style: solid;
  border-color: rgba(31, 122, 77, 0.2);
  background: rgba(235, 247, 240, 0.68);
}

.capacity-node span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 12px;
}

.capacity-node b { font-size: 13px; }
.capacity-node small { color: var(--muted); font-size: 11px; }

.radar-visual {
  display: grid;
  place-items: center;
  gap: 6px;
  margin: -4px 0 14px;
  padding: 8px 0 12px;
}

.radar-visual svg {
  width: min(230px, 100%);
  height: auto;
  overflow: visible;
}

.radar-visual line,
.radar-grid {
  fill: rgba(232, 242, 234, 0.55);
  stroke: rgba(59, 71, 61, 0.22);
  stroke-width: 1;
}

.radar-grid-outer {
  fill: rgba(232, 242, 234, 0.42);
}

.radar-area {
  fill: rgba(31, 122, 80, 0.15);
}

.radar-line {
  fill: none;
  stroke: #127044;
  stroke-width: 3;
}

.radar-line.alt {
  fill: none;
  stroke: #d3862f;
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.radar-legend {
  display: flex;
  gap: 20px;
  color: #536258;
  font-size: 12px;
}

.radar-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.radar-legend i {
  width: 24px;
  height: 2px;
  background: #127044;
}

.radar-legend i.alt {
  background: linear-gradient(90deg, #d3862f 0 50%, transparent 50% 100%);
  background-size: 8px 2px;
}

.guide-card,
.site-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(18, 32, 24, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 251, 0.74);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.guide-card-stack {
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.guide-card-head p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card.is-active,
.capacity-node.is-active {
  border-color: rgba(31, 122, 77, 0.45);
  box-shadow: 0 14px 30px rgba(31, 122, 77, 0.1);
}

.guide-card-pending {
  border-style: dashed;
  background: rgba(255, 253, 248, 0.52);
}

.pending-list {
  display: grid;
  gap: 10px;
}

.pending-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed rgba(18, 32, 24, 0.13);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.62);
}

.pending-row span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #7e887f;
  background: rgba(18, 32, 24, 0.06);
  font-weight: 900;
  font-size: 12px;
}

.pending-row b,
.pending-row small {
  display: block;
}

.pending-row b {
  color: #314237;
  font-size: 13px;
}

.pending-row small {
  color: var(--muted);
  font-size: 12px;
}

.pending-row em {
  color: #7e887f;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.guide-card-head a {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 860;
}

.guide-meta-grid div,
.guide-block {
  display: grid;
  gap: 6px;
}

.guide-meta-grid span,
.guide-block > span {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 860;
}

.guide-meta-grid strong {
  color: #33443a;
  font-size: 13px;
  line-height: 1.5;
}

.guide-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-tags em { color: #536057; background: rgba(18, 32, 24, 0.06); }

.task-history-panel { margin-top: 18px; }
.task-history-panel { overflow: hidden; }

.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(18, 32, 24, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 251, 0.8);
}

table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(18, 32, 24, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #fbfaf1;
  font-size: 12px;
}

tbody tr:hover { background: rgba(245, 240, 218, 0.42); }

.status.failed { background: #fff0ec; color: var(--red); }
.status.running { background: var(--amber-100); color: #87520f; }
.status.queued { background: rgba(18, 32, 24, 0.08); color: #5f6b62; }
.status.done { background: var(--green-100); color: var(--green-700); }
.status.partial { background: var(--amber-100); color: #87520f; }
.status.cancelling { background: var(--amber-100); color: #87520f; }
.status.cancelled { background: rgba(18, 32, 24, 0.08); color: #5f6b62; }

.status-cell { min-width: 138px; }
.status-cell .status { min-width: 76px; justify-content: center; }

.progress-track {
  width: 116px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e1d3;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), #91bd5f);
}

.task-progress-text,
.retry-note {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.retry-note { margin-left: 6px; color: #8b6536; }

.quality-badge {
  justify-content: center;
  min-width: 58px;
  color: #5f6b62;
  background: rgba(18, 32, 24, 0.08);
}

.quality-badge.quality-ok { background: var(--green-100); color: var(--green-700); }
.quality-badge.quality-empty { background: var(--amber-100); color: #87520f; }
.quality-badge.quality-warning { background: #fff0ec; color: var(--red); }
.quality-badge.quality-failed { background: #fdecec; color: #b42318; }

.site-quality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 320px;
  padding: 2px 0;
}

.site-quality-row + .site-quality-row { margin-top: 6px; }

.site-quality-name {
  min-width: 0;
  overflow: hidden;
  color: #26362d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.error-inline {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 12px;
}

td.links.task-output {
  display: table-cell;
  min-width: 190px;
}

.task-actions { margin-top: 8px; }
.task-output .task-actions:first-child { margin-top: 0; }
.small-action { margin: 0; }

.task-summary-block {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.task-summary-block strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.task-summary-block span,
.task-subline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.small-action button {
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #ddd7c9;
  border-radius: 999px;
  color: #435247;
  background: #fffdf8;
  font-size: 12px;
  font-weight: 780;
}

.small-action button:hover {
  color: var(--green-700);
  border-color: rgba(31, 122, 77, 0.36);
}

.admin-queue table { min-width: 1120px; }

.user-row {
  display: grid;
  grid-template-columns: minmax(136px, 0.9fr) minmax(0, 2.8fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(18, 32, 24, 0.1);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.76);
}

.user-row > * {
  min-width: 0;
}

.user-row-name {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 0 4px;
}

.user-row-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #18221d;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.18;
}

.user-row-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.user-row select,
.user-row input[type="number"] {
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  font-size: 14px;
}

.user-row select {
  flex: 1 1 116px;
  max-width: 150px;
}

.user-row input[type="number"] {
  flex: 0 1 86px;
  max-width: 102px;
}

.user-row button {
  flex: 0 0 66px;
  min-height: 44px;
  padding: 10px 12px;
}

.user-row span { display: block; color: var(--muted); font-size: 12px; }
.inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.inline input { width: auto; }

.user-row .inline {
  flex: 0 0 auto;
  min-height: 44px;
  justify-content: center;
}

.status-help-list {
  display: grid;
  gap: 12px;
}

.status-help-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(18, 32, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.status-help-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.asset-panel pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #eaf5ed;
  background: #143328;
  border-radius: 16px;
  line-height: 1.65;
}

.asset-panel pre {
  max-height: 520px;
  padding: 14px;
  font-size: 12px;
}

.site-stack { display: grid; gap: 12px; }

.codex-chat-shell {
  height: calc(100dvh - 84px);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.codex-chat-rail,
.codex-thread-panel {
  border: 1px solid rgba(36, 38, 32, 0.11);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-sm);
}

.codex-chat-rail {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 16px;
  max-height: 100%;
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
}

.rail-kicker {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(23, 67, 49, 0.13);
  border-radius: 999px;
  color: #526057;
  background: rgba(255, 255, 251, 0.7);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.codex-chat-rail h1 {
  margin: 0;
  color: #111812;
  max-width: 11ch;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.codex-chat-rail p {
  margin: 0;
  color: #687166;
  font-size: 14px;
  line-height: 1.75;
}

.rail-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 251, 0.72);
}

.rail-panel span,
.codex-thread-head span {
  color: #73786f;
  font-size: 12px;
  font-weight: 780;
}

.rail-panel strong {
  color: #1d2c23;
  font-size: 15px;
  line-height: 1.4;
}

.compact-list button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 13px;
  color: #314237;
  background: rgba(248, 248, 244, 0.82);
  text-align: left;
  font-size: 13px;
  font-weight: 760;
}

.compact-list button:hover {
  border-color: rgba(31, 122, 80, 0.26);
  background: #fff;
}

.codex-thread-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.92), rgba(250, 250, 246, 0.82)),
    var(--panel);
}

.codex-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(36, 38, 32, 0.08);
}

.codex-thread-head h2 {
  margin: 3px 0 0;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.codex-thread-head small {
  color: #6d746a;
  font-size: 12px;
}

.codex-thread {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 24px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.codex-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 820px);
  gap: 12px;
  align-items: start;
}

.codex-message.user {
  justify-content: end;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.codex-message.user .message-avatar {
  grid-column: 2;
  grid-row: 1;
}

.codex-message.user .message-body {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: fit-content;
  max-width: min(100%, 720px);
  background: #f2f1ec;
}

.message-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 38, 32, 0.12);
  border-radius: 10px;
  color: #37433a;
  background: #fffefa;
  font-size: 12px;
  font-weight: 880;
}

.codex-message.assistant .message-avatar {
  color: #f6fff8;
  border-color: rgba(20, 51, 40, 0.12);
  background: #143328;
}

.message-body {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 18px;
  color: #242821;
  background: rgba(255, 255, 251, 0.86);
  box-shadow: 0 10px 28px rgba(42, 40, 30, 0.045);
}

.message-body p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.72;
}

.assistant-copy {
  display: grid;
  gap: 14px;
  font-size: 14px;
  line-height: 1.72;
}

.assistant-section {
  display: grid;
  gap: 6px;
}

.assistant-section h3 {
  margin: 0;
  color: #17211c;
  font-size: 13px;
  font-weight: 820;
}

.assistant-section p {
  margin: 0;
  color: #344036;
  white-space: pre-wrap;
}

.message-body.is-pending {
  opacity: 0.82;
}

.message-checklist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.message-checklist span {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: #586259;
  font-size: 13px;
}

.message-checklist span:before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #1f7a50;
}

.tool-result-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 80, 0.13);
  border-radius: 15px;
  background: rgba(235, 247, 240, 0.55);
}

.tool-result-card > span,
.usage-note {
  color: #667169;
  font-size: 12px;
  font-weight: 760;
}

.chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-office-panel {
  border-color: rgba(31, 122, 80, 0.24);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 229, 177, 0.58), transparent 34%),
    rgba(235, 247, 240, 0.68);
}

.owner-artifacts .artifact-link {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 13px;
  color: #314237;
  background: rgba(248, 248, 244, 0.82);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-artifacts .artifact-link:hover {
  border-color: rgba(31, 122, 80, 0.26);
  background: #fff;
}

.codex-composer {
  align-self: end;
  display: grid;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid rgba(36, 38, 32, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 251, 0.94);
  box-shadow: var(--shadow-sm);
}

.codex-composer textarea {
  min-height: 54px;
  max-height: 190px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
  resize: none;
  overflow-y: auto;
  box-shadow: none;
}

.codex-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.composer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 38, 32, 0.08);
}

.composer-bar span {
  color: #777d72;
  font-size: 12px;
}

.owner-assistant {
  height: calc(100dvh - 84px);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
}

.owner-rail,
.owner-main-panel,
.owner-inspector {
  min-height: 0;
  border: 1px solid rgba(36, 38, 32, 0.11);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
}

.owner-rail {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 18px;
  overflow: auto;
}

.owner-title-block {
  display: grid;
  gap: 8px;
}

.owner-title-block h1 {
  margin: 0;
  color: #111812;
  font-size: clamp(24px, 2.1vw, 32px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.owner-title-block p,
.owner-boundary p,
.inspector-card p {
  margin: 0;
  color: #687166;
  font-size: 13px;
  line-height: 1.7;
}

.owner-runtime-card {
  gap: 7px;
}

.owner-runtime-card strong {
  font-size: 14px;
}

.owner-runtime-card small,
.owner-adapter-item small {
  color: #6d746a;
  font-size: 12px;
  line-height: 1.6;
}

.owner-runtime-card--ready {
  border-color: rgba(31, 122, 80, 0.18);
  background: rgba(235, 247, 240, 0.72);
}

.owner-runtime-card--chromium_unavailable,
.owner-runtime-card--missing_playwright {
  border-color: rgba(196, 116, 24, 0.18);
  background: rgba(255, 245, 224, 0.76);
}

.owner-adapter-list {
  display: grid;
  gap: 10px;
}

.owner-adapter-item {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(36, 38, 32, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.owner-adapter-item a {
  color: #145f3f;
  font-size: 12px;
  font-weight: 780;
}

.owner-new-chat {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 122, 80, 0.18);
  border-radius: 15px;
  color: #f8fff8;
  background: #183b2f;
  font-size: 14px;
  font-weight: 820;
}

.owner-conversation-list > div {
  display: grid;
  gap: 8px;
}

.owner-conversation-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 13px;
  color: #2f3b32;
  background: rgba(248, 248, 244, 0.78);
  text-decoration: none;
}

.owner-conversation-list a.active {
  border-color: rgba(31, 122, 80, 0.32);
  background: rgba(235, 247, 240, 0.88);
}

.owner-conversation-list b,
.owner-artifact-pill {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-conversation-list b {
  font-size: 13px;
}

.owner-conversation-list small {
  color: #7b8277;
  font-size: 11px;
}

.owner-main-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.94), rgba(250, 250, 246, 0.86)),
    var(--panel);
}

.owner-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(36, 38, 32, 0.08);
}

.owner-thread-head span,
.inspector-card > span {
  color: #73786f;
  font-size: 12px;
  font-weight: 780;
}

.owner-thread-head h2 {
  margin: 3px 0 0;
  color: #17211c;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.owner-run-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.owner-run-controls > span {
  padding: 7px 10px;
  border: 1px solid rgba(31, 122, 80, 0.15);
  border-radius: 999px;
  color: #1f4d3a;
  background: rgba(235, 247, 240, 0.78);
}

.owner-run-controls button {
  padding: 8px 10px;
  border: 1px solid rgba(36, 38, 32, 0.1);
  border-radius: 11px;
  background: #fffefa;
  color: #2c382f;
  font-size: 12px;
  font-weight: 780;
}

.owner-run-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.owner-result-summary {
  display: grid;
  gap: 8px;
}

.owner-result-summary strong {
  color: #17211c;
  font-size: 14px;
  line-height: 1.35;
}

.owner-result-summary.result {
  border-color: rgba(31, 122, 80, 0.16);
  background: rgba(235, 247, 240, 0.58);
}

.owner-result-summary.diagnostic {
  border-color: rgba(196, 116, 24, 0.18);
  background: rgba(255, 245, 224, 0.72);
}

.owner-result-summary.diagnostic strong,
.owner-result-summary.diagnostic p {
  color: #7a4a09;
}

.owner-result-metrics {
  display: grid;
  gap: 8px;
  margin: 0;
}

.owner-result-metrics > div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.owner-result-metrics dt {
  color: #6b7368;
  font-size: 11px;
  font-weight: 700;
}

.owner-result-metrics dd {
  margin: 0;
  color: #17211c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.owner-result-reason {
  display: grid;
  gap: 6px;
}

.owner-result-reason strong {
  color: #17211c;
  font-size: 12px;
}

.owner-result-reason p {
  margin: 0;
  color: #4f5d52;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.owner-result-evidence {
  display: grid;
  gap: 8px;
}

.owner-result-evidence strong {
  color: #17211c;
  font-size: 12px;
}

.owner-result-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-result-evidence-list span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 38, 32, 0.08);
  color: #3d4a41;
  font-size: 11px;
  font-weight: 700;
}

.owner-acceptance {
  display: grid;
  gap: 8px;
}

.owner-acceptance strong {
  color: #17211c;
  font-size: 12px;
}

.owner-acceptance p {
  margin: 0;
  color: #4f5d52;
  font-size: 12px;
  line-height: 1.65;
}

.owner-acceptance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-acceptance-list span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36, 38, 32, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.owner-acceptance-list span.passed {
  color: #24513f;
  background: rgba(235, 247, 240, 0.78);
}

.owner-acceptance-list span.failed {
  color: #8a4b12;
  background: rgba(255, 245, 224, 0.82);
}

.owner-baseline-comparison {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.owner-baseline-comparison strong {
  color: #17211c;
  font-size: 12px;
}

.owner-baseline-comparison p {
  margin: 0;
  color: #4f5d52;
  font-size: 12px;
  line-height: 1.65;
}

.owner-baseline-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.owner-baseline-metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(36, 38, 32, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.owner-baseline-metrics dt {
  color: #6c776e;
  font-size: 11px;
  font-weight: 700;
}

.owner-baseline-metrics dd {
  margin: 0;
  color: #17211c;
  font-size: 12px;
  font-weight: 700;
}

.owner-baseline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-baseline-list span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36, 38, 32, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.owner-baseline-list span.matched {
  color: #24513f;
  background: rgba(235, 247, 240, 0.78);
}

.owner-baseline-samples {
  display: grid;
  gap: 6px;
}

.owner-baseline-samples strong {
  color: #17211c;
  font-size: 12px;
}

.owner-baseline-samples p {
  margin: 0;
  font-size: 12px;
  color: #556056;
  line-height: 1.6;
}

.owner-thread {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 22px;
}

.owner-composer {
  align-self: end;
  display: grid;
  gap: 10px;
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid rgba(36, 38, 32, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 251, 0.95);
  box-shadow: var(--shadow-sm);
}

.owner-composer textarea {
  min-height: 58px;
  max-height: 190px;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
  resize: none;
  overflow-y: auto;
  box-shadow: none;
}

.owner-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.owner-inspector {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.inspector-card {
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 13px;
  border: 1px solid rgba(36, 38, 32, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 251, 0.78);
}

.inspector-card strong {
  color: #1d2c23;
  font-size: 15px;
  line-height: 1.45;
}

.owner-screenshot-card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(36, 38, 32, 0.12);
  border-radius: 14px;
}

.owner-screenshot-card small {
  display: block;
  margin-top: 7px;
  color: #6c746b;
  font-size: 12px;
}

.owner-events-card {
  min-height: 250px;
}

.owner-event-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  max-height: 36dvh;
  overflow: auto;
}

.owner-event {
  display: grid;
  gap: 6px;
  padding: 11px;
  border-left: 3px solid rgba(31, 122, 80, 0.45);
  border-radius: 13px;
  background: rgba(248, 248, 244, 0.88);
}

.owner-event[data-event-type="error"] {
  border-left-color: #a94635;
  background: rgba(255, 239, 234, 0.9);
}

.owner-event[data-event-type="screenshot"],
.owner-event[data-event-type="artifact"],
.owner-event[data-event-type="done"] {
  border-left-color: #1f7a50;
  background: rgba(235, 247, 240, 0.78);
}

.owner-event b {
  color: #1f2a23;
  font-size: 13px;
}

.owner-event p {
  margin: 0;
  color: #4f5d52;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.owner-event a,
.owner-artifact-pill {
  color: #145f3f;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.owner-artifact-card > div {
  display: grid;
  gap: 8px;
}

.owner-artifact-pill {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(31, 122, 80, 0.16);
  border-radius: 12px;
  background: rgba(235, 247, 240, 0.65);
}

@media (max-width: 1360px) {
  .owner-assistant {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .owner-inspector {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .owner-events-card,
  .owner-artifact-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .owner-assistant {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .owner-main-panel {
    height: min(780px, calc(100dvh - 24px));
    min-height: 580px;
  }

  .owner-inspector {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .owner-run-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .codex-chat-shell,
  .mission-layout,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .codex-chat-shell {
    height: auto;
    min-height: auto;
  }

  .codex-chat-rail {
    position: static;
    max-height: none;
  }

  .codex-thread-panel {
    height: min(760px, calc(100dvh - 24px));
    min-height: 560px;
  }

  .codex-chat-rail h1 {
    max-width: none;
  }

  .intel-rail { position: static; }
}

@media (max-width: 1100px) {
  :root { --sidebar: 0px; }

  .sidebar {
    position: static;
    width: auto;
    margin: 12px;
    min-height: auto;
    display: block;
    padding: 14px;
    border: 1px solid rgba(54, 57, 46, 0.12);
    border-radius: 20px;
  }

  .brand { margin-bottom: 14px; }
  .app-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-nav a { padding: 10px; }
  .side-user {
    margin-top: 12px;
  }
  .side-user-head {
    align-items: flex-start;
  }

  .main {
    margin-left: 0;
    padding: 12px 12px 42px;
  }

  .command-hero,
  .workspace-header,
  .status-deck,
  .metric-strip,
  .mission-split,
  .mission-steps,
  .login-shell,
  .hero,
  .form-row,
  .site-filter-grid,
  .guide-meta-grid {
    grid-template-columns: 1fr;
  }

  .status-deck article {
    border-left: 0;
    border-top: 1px solid rgba(51, 54, 43, 0.1);
  }

  .status-deck article:first-child {
    border-top: 0;
  }

  .login-copy { min-height: 360px; }
  .login-shell {
    overflow: visible;
  }
  .login-rail {
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(54, 57, 46, 0.12);
  }
  .login-rail-copy {
    align-self: auto;
  }
  .login-rail-copy h1,
  .login-rail-copy p {
    max-width: none;
  }
  .login-signal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-workspace {
    padding: 34px;
  }
  .site-toggle-grid { grid-template-columns: 1fr; }

  .mission-head,
  .site-filter-head,
  .filter-title-row,
  .guide-card-head,
  .submit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .user-row { grid-template-columns: 1fr; }

  .product-home {
    width: min(100% - 28px, 760px);
  }

  .home-nav {
    min-height: 70px;
  }

  .home-nav nav a:not(.home-login) {
    display: none;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 0 72px;
  }

  .home-hero h1 {
    font-size: 48px;
    line-height: 1.08;
  }

  .home-section-head,
  .home-flow {
    grid-template-columns: 1fr;
  }

  .home-feature-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-learning {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-game-lab {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .game-card {
    min-height: 390px;
  }

  .home-delivery {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #fbf8d9, #eef9fb);
  }

  .auth-body {
    background:
      radial-gradient(circle at 24% 0%, rgba(30, 126, 229, 0.32), transparent 34%),
      linear-gradient(180deg, #071019, #050910);
  }

  .sidebar {
    padding: 12px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .app-nav {
    gap: 5px;
  }

  .app-nav a {
    gap: 0 9px;
    padding: 9px;
  }

  .auth-main {
    padding: 12px;
  }

  .login-shell {
    min-height: auto;
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  .login-rail {
    padding: 20px;
    grid-template-rows: auto auto auto;
  }

  .login-visual {
    display: none;
  }

  .login-rail-copy h1 {
    max-width: none;
    font-size: 28px;
    line-height: 1.14;
  }

  .login-signal-list {
    grid-template-columns: 1fr;
  }

  .login-workspace {
    padding: 24px 18px 20px;
  }

  .login-workspace:before {
    display: none;
  }

  .login-center {
    gap: 16px;
  }

  .login-heading {
    text-align: left;
  }

  .login-heading h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .login-card {
    padding: 18px;
    border-radius: 16px;
  }

  .workspace-title h1 {
    font-size: 31px;
    white-space: normal;
  }

  .workspace-header {
    gap: 12px;
  }

  .product-home {
    width: min(100% - 24px, 520px);
  }

  .home-nav {
    min-height: 62px;
  }

  .home-nav nav {
    padding: 4px;
  }

  .home-nav nav a {
    min-height: 44px;
    padding: 0 10px;
  }

  .home-hero {
    gap: 26px;
    padding: 32px 0 58px;
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .home-hero-copy > p:not(.home-kicker) {
    font-size: 15px;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-primary,
  .home-secondary {
    width: 100%;
  }

  .console-grid,
  .console-timeline,
  .home-feature-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .home-game-lab {
    padding: 62px 0;
  }

  .home-learning {
    padding: 62px 0;
  }

  .learning-copy h2 {
    font-size: 30px;
  }

  .learning-feature-list {
    grid-template-columns: 1fr;
  }

  .learning-actions,
  .home-delivery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .learning-actions > span {
    text-align: center;
  }

  .learning-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .game-lab-copy h2 {
    font-size: 30px;
  }

  .game-lab-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .game-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .game-card-window {
    inset: 18px;
    border-radius: 18px;
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .game-hud span {
    flex-basis: 100%;
  }

  .console-panel-main {
    min-height: 230px;
  }

  .home-section,
  .home-flow,
  .home-delivery {
    padding: 62px 0;
  }

  .home-section h2,
  .home-flow h2,
  .home-delivery h2 {
    font-size: 30px;
  }

  .status-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-deck article {
    padding: 13px 14px;
    border-top: 1px solid rgba(51, 54, 43, 0.1);
    border-left: 1px solid rgba(51, 54, 43, 0.1);
  }

  .status-deck article:nth-child(1),
  .status-deck article:nth-child(2) {
    border-top: 0;
  }

  .status-deck article:nth-child(odd) {
    border-left: 0;
  }

  .status-deck strong {
    font-size: 24px;
  }

  .command-copy,
  .mission-panel,
  .panel,
  .builder-section {
    border-radius: 16px;
    padding: 15px;
  }

  .command-copy h1 { font-size: 38px; }
  .quota-card { min-height: auto; }
  .metric-strip article { padding: 14px; }
  .codex-chat-rail h1 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.04em;
  }
  table { min-width: 860px; }
}

