:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e6e8eb;
  --text: #1a1d21;
  --muted: #6b7280;
  --accent: #1769ff;
  --accent-hover: #0f55d8;
  --danger: #c5221f;
  --ok: #188038;
  --warn: #b06000;
  --fill: #eef3fb;
  --ink: #111827;
  --soft-shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea {
  font-family: inherit;
  font-weight: 400;
}
code, pre, kbd, samp {
  font-family: var(--font-mono);
}
h1, h2, h3, h4, h5, h6, b, strong, th {
  font-weight: 400;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.appbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.appbar-main {
  height: 56px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 13px;
}
.page-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-nav a.nav-link {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
  padding: 6px 0;
}
.page-nav a.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}
.page-nav a.nav-link.on {
  color: var(--accent);
}
.account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 18px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}
.userbar {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d9ecff;
  color: #182536;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.user-caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #53606f;
}
.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}
.userbar.open .user-menu { display: block; }
.user-name {
  display: block;
  padding: 7px 10px 9px;
  color: var(--text);
  font-weight: 400;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.user-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.user-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
}
.user-menu a:hover {
  background: #fafbfc;
  text-decoration: none;
}
.nav-meta {
  color: var(--muted);
}
@media (max-width: 720px) {
  .appbar-main {
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .page-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .account-nav {
    padding-left: 12px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.muted { color: var(--muted); }
.landing-body {
  background:
    radial-gradient(circle at top left, rgba(23, 105, 255, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(24, 128, 56, 0.12), transparent 28rem),
    #f7f9fc;
  overflow-x: hidden;
}
.landing-bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}
.landing {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 42px;
}
.ambient-orb {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(38px);
  opacity: .35;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-a {
  left: -130px;
  top: 120px;
  background: #7fb0ff;
}
.orb-b {
  right: -160px;
  top: 420px;
  background: #9ee7c2;
  animation-delay: -5s;
}
.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 42px 46px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,248,255,0.78));
  box-shadow: var(--soft-shadow);
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 18%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(23,105,255,.12), transparent);
  transform: rotate(-8deg);
  animation: sheen 8s ease-in-out infinite;
}
.hero-copy > * {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  margin: 10px 0 16px;
  max-width: 620px;
  color: var(--ink);
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero-copy p {
  max-width: 540px;
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 400;
  text-decoration: none;
}
.hero-btn:hover { text-decoration: none; }
.hero-btn.primary {
  background: var(--ink);
  color: #fff;
}
.hero-btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  background: #111827;
  color: #fff;
  box-shadow: var(--soft-shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(23, 105, 255, .34);
  filter: blur(20px);
}
.hero-panel > * {
  position: relative;
  z-index: 1;
}
.panel-title {
  color: #a7b0c0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.status-intro {
  margin: -8px 0 18px;
  color: #c3cad6;
  font-size: 12px;
  line-height: 1.6;
}
.flow-stack {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}
.flow-stack span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(109,167,255,.9), rgba(122,232,177,.55), rgba(255,255,255,.08));
  background-size: 220% 100%;
  animation: flowMove 3.8s linear infinite;
}
.flow-stack span:nth-child(2) {
  width: 76%;
  animation-duration: 4.7s;
  animation-direction: reverse;
}
.flow-stack span:nth-child(3) {
  width: 52%;
  animation-duration: 5.4s;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.metric-grid > div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.metric-k {
  display: block;
  color: #a7b0c0;
  font-size: 12px;
  margin-bottom: 18px;
}
.metric-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}
.platform-metrics {
  display: grid;
  gap: 10px;
}
.platform-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.platform-metric strong {
  grid-column: 2;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.platform-metric .metric-k {
  margin: 0;
}
.landing-directions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.direction-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.direction-card::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23,105,255,.45), transparent);
  transform: translateX(-35%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.direction-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  border-color: rgba(23,105,255,.22);
}
.direction-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.direction-card.dark {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}
.direction-label {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
}
.direction-card h2 {
  margin: 16px 0 10px;
  font-size: 25px;
  letter-spacing: -0.03em;
}
.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.direction-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
}
.process-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  padding: 12px 16px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(230,232,235,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(17,24,39,.05);
  backdrop-filter: blur(12px);
}
.process-flow span {
  white-space: nowrap;
  color: #374151;
  font-size: 13px;
  font-weight: 400;
}
.process-flow i {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(23,105,255,.18), rgba(23,105,255,.8), rgba(24,128,56,.42));
  background-size: 180% 100%;
  animation: flowMove 2.8s linear infinite;
}
@keyframes flowMove {
  from { background-position: 0 0; }
  to { background-position: 220% 0; }
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(34px, -28px, 0) scale(1.08); }
}
@keyframes sheen {
  0%, 70%, 100% { transform: translateX(-10%) rotate(-8deg); opacity: .2; }
  35% { transform: translateX(18%) rotate(-8deg); opacity: .75; }
}
@media (max-width: 900px) {
  .landing { padding-top: 36px; }
  .landing-hero, .landing-directions { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px; }
  .process-flow {
    align-items: stretch;
    width: 100%;
    border-radius: 22px;
    flex-wrap: wrap;
  }
  .process-flow i { width: 24px; }
}
.lab-home {
  position: relative;
  background:
    radial-gradient(circle at 12% -8%, rgba(23, 105, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(23, 105, 255, 0.08), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}
.lab-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 105, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
  pointer-events: none;
}
.lab-glow {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .42;
  pointer-events: none;
  animation: labOrb 14s ease-in-out infinite alternate;
}
.lab-glow.a {
  left: -160px;
  top: 80px;
  background: rgba(23, 105, 255, 0.38);
}
.lab-glow.b {
  right: -180px;
  top: 380px;
  width: 340px;
  height: 340px;
  background: rgba(15, 85, 216, 0.22);
  animation-delay: -6s;
}
.lab-bar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.lab-stage {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 28px 64px;
}
.lab-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
  animation: labRise .7s ease both;
}
.lab-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
}
.lab-intro .kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  animation: labTick 2.4s ease-in-out infinite;
}
.lab-intro h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.lab-intro .lead {
  max-width: 42em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.lab-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.lab-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 400;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.lab-cta a:hover { text-decoration: none; transform: translateY(-1px); }
.lab-cta .primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.22);
}
.lab-cta .primary:hover { background: var(--accent-hover); }
.lab-cta .ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(23, 105, 255, 0.28);
}
.lab-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.lab-stat {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.05);
  animation: labRise .7s ease both;
}
.lab-stat:nth-child(1) { animation-delay: .06s; }
.lab-stat:nth-child(2) { animation-delay: .12s; }
.lab-stat:nth-child(3) { animation-delay: .18s; }
.lab-stat:nth-child(4) { animation-delay: .24s; }
.lab-stat::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(23, 105, 255, 0));
}
.lab-stat span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.lab-stat b {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.lab-stat em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}
.lab-stat em[hidden] { display: none; }
.lab-stat[data-state="busy"] b,
.lab-stat[data-state="idle"] b { color: var(--accent); }
.lab-live {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}
.lab-stat[data-state="idle"] .lab-live {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(23, 105, 255, 0.45);
  animation: labPulse 2.2s ease-out infinite;
}
.lab-stat[data-state="busy"] .lab-live {
  background: var(--warn);
  animation: labPulse 1.1s ease-out infinite;
}
.lab-shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.lab-shelf {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--fill);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  animation: labRise .75s ease both;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.lab-shelf:nth-child(1) { animation-delay: .16s; }
.lab-shelf:nth-child(2) { animation-delay: .22s; }
.lab-shelf:nth-child(3) { animation-delay: .28s; }
.lab-shelf:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.22);
}
.lab-shelf:hover h2,
.lab-shelf:hover p { color: #fff; }
.lab-shelf:hover .go {
  background: #fff;
  color: var(--accent);
}
.lab-shelf .copy {
  min-width: 0;
}
.lab-shelf h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}
.lab-shelf p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
.lab-shelf .go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}
.lab-shelf .go::after {
  content: " →";
}
.lab-shelf ul {
  display: none;
}
.lab-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  animation: labRise .8s ease both;
  animation-delay: .32s;
}
.lab-path li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.lab-path li:last-child { border-right: 0; }
.lab-path li::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(23,105,255,.15), rgba(23,105,255,.85), rgba(23,105,255,.15));
  background-size: 220% 100%;
  animation: flowMove 3.2s linear infinite;
}
.lab-path b {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lab-path span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
.lab-recent {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  animation: labRise .85s ease both;
  animation-delay: .38s;
}
.lab-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--fill);
}
.lab-recent-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.lab-recent-head a {
  font-size: 13px;
  font-weight: 400;
}
.lab-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lab-recent-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px 128px 140px;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--fill);
  color: inherit;
  text-decoration: none;
  transition: background .16s ease;
}
.lab-recent-list a:first-child { border-top: 0; }
.lab-recent-list a:hover {
  background: var(--fill);
  text-decoration: none;
}
.lab-recent-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
}
.lab-recent-task {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.lab-recent-task small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-recent-list small,
.lab-recent-list em,
.lab-recent-score {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}
.score-chip.score-na {
  color: var(--muted);
  background: #f3f4f6;
}
.score-chip.score-pass,
.score-chip.score-band-pass_adjust {
  color: var(--ok);
  background: #eaf6ee;
}
.score-chip.score-fail,
.score-chip.score-band-review {
  color: var(--danger);
  background: #fdecea;
}
.score-chip.score-band-fail {
  color: var(--warn);
  background: #fff6e5;
}
.score-chip.score-band-pass_easy {
  color: #0f766e;
  background: #ccfbf1;
}
.score-cap {
  font-size: 11px;
  opacity: 0.85;
}
.score-cell .score-chip { max-width: 100%; }
.lab-recent-empty {
  display: block;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}
@keyframes labRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes labOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -22px, 0) scale(1.08); }
}
@keyframes labPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 105, 255, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(23, 105, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 105, 255, 0); }
}
@keyframes labTick {
  0%, 100% { width: 14px; opacity: .7; }
  50% { width: 26px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-glow,
  .lab-intro .kicker::before,
  .lab-stat,
  .lab-shelf,
  .lab-path,
  .lab-path li::after,
  .lab-recent,
  .lab-live { animation: none; }
  .lab-shelf:hover,
  .lab-cta a:hover { transform: none; }
}
@media (max-width: 980px) {
  .lab-intro,
  .lab-shelves,
  .lab-stats,
  .lab-path { grid-template-columns: 1fr 1fr; }
  .lab-cta { flex-direction: row; }
  .lab-intro h1 { max-width: none; }
  .lab-recent-list a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .lab-recent-list small,
  .lab-recent-list em,
  .lab-recent-score { justify-self: end; }
}
@media (max-width: 640px) {
  .lab-stage { padding: 28px 16px 48px; }
  .lab-intro,
  .lab-shelves,
  .lab-stats,
  .lab-path,
  .lab-cta { grid-template-columns: 1fr; }
  .lab-cta { display: grid; }
  .lab-path li { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-path li:last-child { border-bottom: 0; }
}
.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 24px 24px;
  min-height: calc(100vh - 56px);
}
.wrap.fill {
  display: flex;
  flex-direction: column;
}
.wrap.fill > .card:last-child {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wrap.fill > .card:last-child .scroll {
  flex: 1;
  overflow: auto;
}
.wrap.narrow {
  max-width: 640px;
  margin: 0 auto;
  min-height: auto;
}
.wrap.form {
  max-width: 800px;
  margin: 0 auto;
  min-height: auto;
  padding-bottom: 96px;
}
.kicker {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 400;
}
.help {
  background: var(--fill);
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #31598a;
  margin-bottom: 16px;
}
.help a { margin-right: 12px; }
.help code, .hint code, .field-help code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}
.req { color: var(--danger); font-weight: 400; }
.field-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.chip.on {
  border-color: var(--accent);
  background: var(--fill);
  color: var(--accent);
  font-weight: 400;
}
.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f3f5f7;
  color: var(--muted);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 14px;
  cursor: pointer;
}
.consent input { margin-top: 3px; }
table.data .btn-ghost {
  padding: 4px 10px;
  font-size: 12px;
}
.missing {
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  color: #7a5a00;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 10px;
}
.missing ul { margin: 8px 0 0; padding-left: 18px; }
.missing.okbox {
  background: #eaf6ee;
  border-color: #b7e0c2;
  color: var(--ok);
}
.submit-bar {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 12px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 16px; font-size: 15px; font-weight: 400; }
.card .step-no {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--fill);
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}
.card .lead {
  margin: -10px 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
label.field { display: block; font-size: 13px; font-weight: 400; margin: 0 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .row2 { grid-template-columns: 1fr; } }
select, input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: inherit;
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid #c9dbf7;
  border-color: var(--accent);
}
button, .btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
}
.btn-primary, button.primary {
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.btn-primary:hover, button.primary:hover { background: var(--accent-hover); }
.btn-primary:disabled, button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fafbfc; }
.msg { min-height: 18px; margin-top: 8px; font-size: 12px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }
.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f0c7c5;
  padding: 4px 10px;
  font-size: 12px;
}
.btn-danger:hover { background: #fdecea; }
.err { color: var(--danger); font-size: 13px; white-space: pre-wrap; min-height: 18px; margin: 10px 0; }
.ok { color: var(--ok); }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 400;
}
.b-run { background: #fff6e5; color: var(--warn); }
.b-idle, .b-ok { background: #eaf6ee; color: var(--ok); }
.b-wait { background: var(--fill); color: var(--accent); }
.b-off, .b-bad { background: #fdecea; color: var(--danger); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .slots { grid-template-columns: 1fr; } }
.slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.slot.required { border-color: #ead7a8; background: #fffdf6; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slot-head .field { margin: 0; }
.slot-guide {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
}
.slot-guide:hover { text-decoration: underline; }
.slot.required .slot-guide { color: var(--accent); }
.slot .drop { padding: 18px 14px; }
.drop {
  border: 1px dashed #c5ccd6;
  border-radius: 12px;
  background: #fafbfc;
  padding: 28px 16px;
  text-align: center;
}
.drop.has {
  border-style: solid;
  border-color: rgba(23, 105, 255, 0.35);
  background: #f7faff;
}
.drop.drag { border-color: var(--accent); background: var(--fill); }
.drop.zip {
  min-height: 168px;
  padding: 32px 16px 20px;
  cursor: pointer;
}
.drop.zip:focus {
  outline: 2px solid #c9dbf7;
  border-color: var(--accent);
}
.card.compact {
  padding: 14px 16px 16px;
}
.card.compact h2 { margin-bottom: 10px; }
.card.compact .lead { margin-bottom: 10px; }
.submit-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.mode-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
}
.mode-card.on {
  border-color: var(--accent);
  background: var(--fill);
}
.mode-card input {
  margin: 0 8px 8px 0;
  vertical-align: middle;
}
.mode-card strong {
  display: inline;
  font-size: 15px;
}
.mode-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.mode-card code { font-size: 12px; }
.submit-rest.is-locked {
  opacity: 0.48;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 720px) {
  .mode-pick { grid-template-columns: 1fr; }
}
.submit-opts .field-help { margin-top: 4px; }
.card.compact .picked { margin-top: 8px; }
.card.compact .picked-item { padding: 4px 6px 4px 10px; }
.card.compact .form-actions { margin-top: 14px; padding-top: 12px; }
@media (max-width: 720px) {
  .submit-opts { grid-template-columns: 1fr; }
}
.drop .name { font-size: 14px; font-weight: 400; }
.drop .meta { font-size: 12px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.slot-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.slot-actions .btn {
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 6px 10px;
}
.check { margin-top: 14px; font-size: 13px; }
.check ul { margin: 8px 0 0; padding-left: 18px; }
.check.bad { color: var(--danger); }
.check.good { color: var(--ok); }
.progress {
  display: none;
  margin-top: 14px;
}
.progress.on { display: block; }
.progress .bar {
  height: 8px;
  background: #e8edf3;
  border-radius: 99px;
  overflow: hidden;
}
.progress .fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.12s linear;
}
.progress .label {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(23,105,255,.18), transparent 28rem),
    radial-gradient(circle at 88% 86%, rgba(24,128,56,.14), transparent 28rem),
    #f7f9fc;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 22px;
  align-items: stretch;
}
.auth-hero,
.auth-card {
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(239,246,255,.78));
}
.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% 12%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(23,105,255,.14), rgba(24,128,56,.1), transparent);
  transform: rotate(-8deg);
  animation: sheen 8s ease-in-out infinite;
}
.auth-hero > * {
  position: relative;
  z-index: 1;
}
.auth-brand {
  margin-bottom: 62px;
}
.auth-hero h1 {
  margin: 12px 0 16px;
  max-width: 540px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.auth-hero p {
  max-width: 520px;
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}
.auth-flow {
  justify-content: flex-start;
  margin: 34px 0 0;
  width: 100%;
}
.auth-card {
  padding: 34px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}
.auth-card h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.auth-card .field {
  margin-top: 14px;
}
.auth-card input {
  width: 100%;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}
.password-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b8494;
  cursor: pointer;
}
.password-eye:hover,
.password-eye.on {
  background: #eef3fb;
  color: var(--accent);
}
.password-eye svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}
.auth-alt {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { margin-bottom: 34px; }
}
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #f0f2f4;
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 400; font-size: 12px; }
table.data td a { font-weight: 400; }
table.data td a:hover { text-decoration: underline; }
table.data.env-table {
  table-layout: fixed;
  min-width: 900px;
}
table.data.env-table th,
table.data.env-table td {
  vertical-align: middle;
}
table.data.env-table .col-suite { width: 46%; }
table.data.env-table .col-lab { width: 13%; }
table.data.env-table .col-mode { width: 12%; }
table.data.env-table .col-status { width: 8%; }
table.data.env-table .col-source { width: 7%; }
table.data.env-table .col-actions { width: 14%; }
table.data.env-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data.env-table .suite-name a,
table.data.env-table .lab-cell,
table.data.env-table .env-actions {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data.env-table .field-help {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data.env-table .env-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
}
table.data.env-table .env-actions button {
  padding: 4px 8px;
  font-size: 12px;
}
.status-link {
  font-weight: 400;
  text-decoration: none;
}
.status-link.bad {
  color: var(--danger);
}
.work-list {
  min-height: 0;
}
.work-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.work-list-head h2 {
  margin: 0;
}
.work-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 10px;
  align-items: end;
  margin: 0 0 12px;
}
.work-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.work-filters input[type="text"],
.work-filters select {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: inherit;
}
.work-filters input[type="text"]:focus,
.work-filters select:focus {
  outline: 2px solid #c9dbf7;
  border-color: var(--accent);
}
.work-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}
.work-filter-actions .btn-primary,
.work-filter-actions .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.work-list .scroll {
  margin-top: 4px;
}
.work-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.work-pager[hidden] {
  display: none;
}
.work-pager-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.work-pager button {
  min-width: 32px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.work-pager button:hover:not(:disabled) {
  background: #fafbfc;
}
.work-pager button.on {
  border-color: #c9dbf7;
  background: var(--fill);
  color: var(--accent);
}
.work-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.work-pager-gap {
  color: var(--muted);
  font-size: 12px;
  padding: 0 2px;
}
.work-pager-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
table.data.runs {
  table-layout: fixed;
  width: 100%;
  min-width: 1040px;
  font-size: 12px;
}
table.data.runs th,
table.data.runs td {
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 400;
}
table.data.runs th {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
table.data.runs td a { font-weight: 400; }
table.data.runs tbody tr:hover td { background: #fafbfc; }
table.data.runs .col-id { width: 12%; }
table.data.runs .col-task { width: 15%; }
table.data.runs .col-who { width: 7%; }
table.data.runs .col-status { width: 7%; }
table.data.runs .col-score { width: 9%; }
table.data.runs .col-model { width: 15%; }
table.data.runs .col-mcp { width: 10%; }
table.data.runs .col-time { width: 9%; }
table.data.runs .col-ops { width: 9%; }
table.data.runs td.task,
table.data.runs td.models { white-space: normal; }
table.data.runs th:last-child,
table.data.runs td.ops {
  text-align: right;
  overflow: visible;
}
table.data.runs .task-title,
table.data.runs .clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}
table.data.runs .task-domain {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data.runs a.run-id,
#wrun a.run-id,
#workerHint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
}
table.data.runs a.run-id:hover,
#wrun a.run-id:hover,
#workerHint a:hover { text-decoration: underline; }
table.data.runs .ops-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
table.data.runs .ops-menu { display: inline-block; }
.ops-menu { position: relative; }
.ops-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.ops-trigger:hover { background: #fafbfc; }
.ops-menu.open .ops-trigger { border-color: #c9dbf7; background: var(--fill); }
.ops-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #53606f;
}
.ops-panel {
  display: none;
  position: fixed;
  z-index: 40;
  min-width: 148px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}
.ops-menu.open .ops-panel { display: block; }
.ops-panel a,
.ops-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}
.ops-panel a:hover,
.ops-panel button:hover {
  background: #fafbfc;
  text-decoration: none;
}
.ops-panel .ops-danger { color: var(--danger); }
.ops-panel .ops-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}
.device {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.device-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.device-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  min-width: 140px;
  background: var(--fill);
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  padding: 14px 18px;
}
.stat b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 400;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.scroll { overflow: auto; }
pre.dark {
  background: #111418;
  color: #d7e0ea;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  max-height: 280px;
  font-size: 12px;
  white-space: pre-wrap;
}
.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.suite-ops {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.file-list button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-list button.linkish:hover { text-decoration: underline; }
.file-list .file-table {
  table-layout: fixed;
}
.file-list .file-path-cell {
  width: auto;
  max-width: 0;
}
.file-list .file-size-cell {
  width: 96px;
  text-align: right;
  white-space: nowrap;
}
.file-preview {
  margin-top: 12px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.file-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}
.file-preview pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 280px;
  overflow: auto;
}
.check-row {
  display: grid;
  grid-template-columns: 28px 1fr 88px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f4;
}
.check-row:last-child { border-bottom: 0; }
.check-row input[type="text"] { padding: 7px 10px; }
.check-row textarea { min-height: 56px; }
.hint {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.hint a { margin-right: 14px; }
.wrap.doc { max-width: 820px; margin: 0 auto; }
.doc-actions { display: flex; gap: 16px; font-size: 13px; margin-bottom: 8px; }
.doc-body { font-size: 14px; line-height: 1.65; }
.doc-body h1 { font-size: 22px; margin: 0 0 12px; }
.doc-body h2 { font-size: 16px; margin: 28px 0 10px; }
.doc-body h3 { font-size: 14px; margin: 22px 0 8px; }
.doc-body p { margin: 0 0 10px; }
.doc-body ul, .doc-body ol { margin: 0 0 12px; padding-left: 22px; }
.doc-body li { margin: 4px 0; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.doc-body pre {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.doc-body table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 0 0 14px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.doc-body th { background: #fafbfc; font-weight: 400; }
.doc-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #f6f8fa;
  padding: 1px 5px;
  border-radius: 4px;
}
.doc-body pre code { background: none; padding: 0; }

.wrap.review-page {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}
.review-eval {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
@media (max-width: 980px) {
  .review-eval { grid-template-columns: 1fr; }
}
.verdict-hero {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 10px;
}
.verdict-hero.ok { color: var(--ok); }
.verdict-hero.bad { color: var(--danger); }
.verdict-hero.wait { color: var(--muted); }
.verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.verdicts.one { grid-template-columns: 1fr; }
.verdict-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--fill);
}
.ruler-hero {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 10px;
}
.ruler-hero.ok { color: var(--ok); }
.ruler-hero.bad { color: var(--danger); }
.ruler-hero.muted { color: var(--muted); font-weight: 400; font-size: 14px; }
.ruler-rows {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.ruler-rows .row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.ruler-rows .k { color: var(--muted); font-weight: 400; }
.ruler-hints .k { font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.ruler-hints ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.ruler-hints li { margin: 0 0 6px; }
.review-subsection {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.verdict-box .k { font-size: 12px; color: var(--muted); font-weight: 400; }
.verdict-box .v { font-size: 22px; font-weight: 400; margin: 4px 0 6px; }
.verdict-box .h { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }
.score-break {
  font-size: 13px;
  margin: 0 0 10px;
  padding-left: 18px;
  line-height: 1.55;
}
.score-break .short { color: var(--danger); }
.review-main {
  display: block;
  min-height: 0;
  flex: 1;
}
.review-main .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.review-traj {
  overflow: auto;
  flex: 1;
  padding-right: 4px;
}
.mid-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.mid-toolbar[hidden] { display: none !important; }
.mid-toolbar select { max-width: 320px; }
.turn { margin: 0 0 20px; }
.role {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.role.user { color: var(--accent); }
.role.assistant { color: var(--ok); }
.bubble {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.clamp { max-height: 220px; overflow: hidden; position: relative; }
.bubble.clamp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(transparent, #fafbfc);
}
.more { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; padding: 6px 0 0; }
.tool { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tool summary { cursor: pointer; padding: 8px 12px; font-size: 13px; color: var(--text); list-style: none; }
.is-hidden { display: none !important; }
textarea.prompt-box { min-height: 220px; }
textarea.paste-box {
  min-height: 140px;
  font-family: var(--font-mono);
  font-size: 13px;
}
#lab-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
#task-id-note { margin-top: 8px; }
details.run-opts {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 22px 8px;
  margin-bottom: 16px;
}
details.run-opts > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  list-style: none;
  padding: 12px 0;
}
details.run-opts > summary::-webkit-details-marker { display: none; }
details.run-opts[open] > summary { padding-bottom: 4px; }
details.run-opts .lead { margin: 0 0 16px; }
.tool pre {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  overflow: auto;
  max-height: 200px;
  white-space: pre-wrap;
  font-size: 12px;
}
.empty { color: var(--muted); padding: 24px 8px; }
.review-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 420px);
  gap: 14px;
  align-items: start;
}
.review-trace-col,
.review-result-col {
  margin-bottom: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.review-trace-col {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 84px);
}
.review-result-col {
  position: static;
  max-height: none;
  overflow: visible;
}
.review-trace-col .review-traj { min-height: 280px; }
.trace-digest {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: #fff;
}
.digest-title { font-size: 14px; font-weight: 400; margin: 0 0 4px; }
.digest-note { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.digest-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.digest-kpis span {
  background: var(--fill);
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}
.digest-alert {
  border: 1px solid #f0c36d;
  background: #fff8e8;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 10px;
  font-size: 13px;
}
.digest-alert .digest-k { font-weight: 400; color: var(--warn); margin-bottom: 6px; }
.digest-alert ul, .digest-fails ul { margin: 0; padding-left: 18px; }
.digest-ok { font-size: 12px; color: var(--ok); margin: 0 0 10px; }
.digest-fails, .digest-steps { margin: 0 0 8px; }
.digest-fails > summary, .digest-steps > summary, .raw-trace > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}
.digest-msg, .digest-hint { color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-word; }
.digest-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.digest-table-wrap { max-height: 320px; overflow: auto; margin-top: 8px; }
.digest-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.digest-table th, .digest-table td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.digest-table th { color: var(--muted); font-weight: 400; position: sticky; top: 0; background: #fff; }
.digest-kind {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 7px;
  background: #f3f4f6;
  font-size: 11px;
}
.digest-kind.mcp { background: #eef3fb; color: #31598a; }
.digest-kind.think { background: #f6f3ff; color: #5b4b8a; }
.digest-st { font-weight: 400; }
.digest-st.ok, .digest-st.success { color: var(--ok); }
.digest-st.error { color: var(--danger); }
.raw-trace { margin-top: 8px; }
.result-block {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.result-block:first-of-type { border-top: 0; padding-top: 0; }
.result-k {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.review-summary .row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 6px;
}
.review-summary .k { color: var(--muted); }
.review-result-col .item { margin: 0 0 12px; }
.review-result-col .item h3 { font-size: 12px; }
.review-result-col .item p { margin: 0 0 8px; }
#closeNotes {
  min-height: 72px;
  overflow: hidden;
  resize: none;
  line-height: 1.55;
}
.close-bar {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 0 0;
  background: linear-gradient(#ffffffd8, #fff 28%);
  border-top: 1px solid var(--line);
}
.close-bar .btns { display: flex; gap: 8px; }
.close-state {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 8px;
}
.close-state.ok { color: var(--ok); }
.close-state.bad { color: var(--danger); }
.btn-pass, .btn-fail {
  font-weight: 400;
  min-width: 88px;
}
.btn-pass { background: var(--ok); color: #fff; }
.btn-pass:hover { background: #146c2e; }
.btn-fail {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f0c7c5;
}
.btn-fail:hover { background: #fdecea; }
.btn-pass:disabled, .btn-fail:disabled { opacity: 0.45; cursor: not-allowed; }
.step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  background: #fafbfc;
}
.step-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.step-role {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-role.user { color: var(--accent); }
.step-role.assistant { color: var(--ok); }
@media (max-width: 980px) {
  .review-shell { grid-template-columns: 1fr; }
  .review-trace-col, .review-result-col { position: static; max-height: none; }
}
.instruct {
  background: var(--fill);
  border: 1px solid #d7e3f4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #31598a;
  margin-bottom: 16px;
}
.item { margin: 0 0 18px; }
.item h3 { margin: 0 0 4px; font-size: 13px; }
.item p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
}
.opt:hover { border-color: #c9d4ea; }
.opt.on { border-color: var(--accent); background: var(--fill); }
.opt:disabled { opacity: 0.55; cursor: not-allowed; }
.opt .lab { font-weight: 400; font-size: 13px; }
.opt .desc { color: var(--muted); font-size: 12px; }
.example {
  margin-top: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.example h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.example ol {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 13px;
}
.example li { margin: 4px 0; }
.example pre {
  margin: 8px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  overflow: auto;
}
.score-scroll { overflow: auto; flex: 1; }
.score-foot { border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill.Pass { background: #eaf6ee; color: var(--ok); }
.pill.Partial { background: #fff6e5; color: var(--warn); }
.pill.Fail { background: #fdecea; color: var(--danger); }
.pill.needs_review { background: var(--fill); color: var(--muted); }

.zone-switch { margin: 0 0 18px; }
.zone-switch .chip { font-size: 14px; padding: 9px 16px; }
.zone[hidden] { display: none !important; }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
table.data tr.pick { cursor: pointer; }
table.data tr.pick:hover td { background: #f8fafc; }
table.data td .btn,
table.data td .btn-ghost,
table.data td .btn-danger {
  padding: 4px 10px;
  font-size: 12px;
}
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
pre.detail {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 280px;
  overflow: auto;
}
.stub-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.picker-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.picker-row select { flex: 1; min-width: 0; }
.picker-row input { flex: 0.9; min-width: 120px; }
.picker-row .btn-ghost { flex: 0 0 auto; }
.picker-row.domain-new { margin-top: 8px; }
.env-page .soft-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.env-page .soft-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.env-page .soft-link:hover { text-decoration: underline; }
.env-page .soft-panel {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.env-page .soft-list { padding: 2px 0; }
.env-page .soft-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}
.env-page .soft-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
}
.env-page .soft-item + .soft-item { border-top: 1px solid var(--line); }
.env-page .soft-item .name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.env-page .soft-item .acts {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.env-page .soft-item .acts button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.env-page .soft-item .acts button:hover { color: var(--accent); }
.env-page .soft-item .acts button.danger:hover { color: var(--danger); }
.env-page .soft-item .acts button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.env-page .soft-item input[type="text"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 5px 8px;
}
.env-page .soft-add {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #f7f8fa;
}
.env-page .soft-add input { flex: 1; min-width: 0; }
.picked {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.picked.empty {
  color: var(--muted);
  font-size: 13px;
}
.picked-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--fill);
  padding: 6px 8px 6px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.picked-item .id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.picked-item .meta {
  color: var(--muted);
  font-size: 12px;
}
.picked-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
}

.env-page .env-stage {
  padding-top: 36px;
}
.env-page .env-intro {
  margin-bottom: 22px;
}
.env-page .env-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.env-page .env-intro .kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}
.env-page .env-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.env-page .env-intro p {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.env-page .err {
  margin: 0 0 14px;
  min-height: 0;
  font-size: 12px;
}
.env-page .card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.05);
  padding: 18px 20px 16px;
}
.env-page .card h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
.env-page .card .lead,
.env-page .field-help {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}
.env-page .card .lead {
  margin: 0 0 14px;
}
.env-page label.field {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.env-page .req { font-weight: 400; }
.env-page .chips { margin-bottom: 14px; }
.env-page .chip {
  font-size: 12px;
  font-weight: 400;
  padding: 7px 12px;
  border-radius: 10px;
}
.env-page .chip.on {
  font-weight: 400;
}
.env-page .zone-switch {
  display: inline-flex;
  gap: 0;
  margin: 0 0 16px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}
.env-page .zone-switch .chip {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 14px;
}
.env-page .zone-switch .chip.on {
  background: var(--fill);
  color: var(--accent);
}
.env-page input[type="text"],
.env-page select {
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 10px;
}
.env-page .btn-primary {
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 10px;
}
.env-page .drop .name {
  font-size: 13px;
  font-weight: 400;
}
.env-page table.data {
  font-size: 12px;
}
.env-page table.data th {
  font-size: 11px;
  font-weight: 400;
}
.env-page table.data td,
.env-page table.data td a,
.env-page table.data .name {
  font-weight: 400;
}
.env-page .form-actions { margin-top: 14px; }
.env-page .dep-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.env-page .dep-item {
  border: 1px solid var(--line);
  background: #fafbfe;
  border-radius: 10px;
  padding: 10px 12px 12px;
}
.env-page .dep-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.env-page .dep-item label.field {
  margin-top: 8px;
}
.env-page .dep-item input[type="text"],
.env-page .dep-item textarea {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
}
.env-page .dep-item textarea {
  min-height: 64px;
  font-family: var(--font-mono);
  line-height: 1.45;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.work-page .work-stage {
  padding-top: 36px;
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}
.work-page .work-intro {
  margin-bottom: 22px;
}
.work-page .work-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.work-page .work-intro .kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}
.work-page .work-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.work-page .work-intro p {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.work-page .err {
  margin: 0 0 14px;
  min-height: 0;
  font-size: 12px;
}
.work-page .card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.05);
  padding: 18px 20px 16px;
}
.work-page .card h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
.work-page .work-list-head h2 {
  margin: 0;
}
.work-page .btn-primary {
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 10px;
}
.work-page table.data {
  font-size: 12px;
}
.work-page table.data th {
  font-size: 11px;
  font-weight: 400;
}
.work-page table.data td,
.work-page table.data td a {
  font-weight: 400;
}
.work-page .field-help {
  font-size: 12px;
  font-weight: 400;
}

.submit-page .submit-stage {
  padding-top: 36px;
}
.submit-page .submit-intro {
  margin-bottom: 22px;
}
.submit-page .submit-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.submit-page .submit-intro .kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}
.submit-page .submit-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.submit-page .submit-intro p {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.submit-page .err {
  margin: 0 0 14px;
  min-height: 0;
  font-size: 12px;
}
.submit-page .card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(23, 105, 255, 0.05);
  padding: 18px 20px 16px;
}
.submit-page .card h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
}
.submit-page .card .lead,
.submit-page .field-help {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}
.submit-page .card .lead {
  margin: 0 0 14px;
}
.submit-page label.field {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.submit-page .req { font-weight: 400; }
.submit-page select {
  padding: 8px 11px;
  font-size: 13px;
  border-radius: 10px;
}
.submit-page .btn-primary,
.submit-page .btn,
.submit-page .btn-ghost {
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 10px;
}
.submit-page .btn-ghost {
  display: inline-flex;
  align-items: center;
}
.submit-page .drop {
  padding: 22px 16px 16px;
}
.submit-page .drop.zip {
  min-height: 132px;
}
.submit-page .drop .name {
  font-size: 13px;
  font-weight: 400;
}
.submit-page table.data {
  font-size: 12px;
}
.submit-page table.data th {
  width: 5.5em;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: top;
}
.submit-page table.data td,
.submit-page table.data td a,
.submit-page table.data code {
  font-weight: 400;
}
.submit-page .form-actions { margin-top: 14px; }
.submit-page .picked-item {
  font-size: 13px;
  font-weight: 400;
}

.env-readonly .env-write {
  display: none !important;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.42);
}
.job-modal[hidden] { display: none; }
.job-modal-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  padding: 22px 22px 18px;
  font-size: 13px;
  line-height: 1.5;
}
.job-modal-card .kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.job-modal-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.job-modal-card .hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.job-modal-card .hint:last-of-type {
  margin-bottom: 14px;
}
.regrade-field {
  margin: 0 0 12px;
}
.regrade-field .field,
.job-modal-card label.field {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}
.regrade-field input[type="file"],
.regrade-field select,
.job-modal-card select,
.job-modal-card input[type="file"] {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.regrade-field .field-help,
.job-modal-card .field-help {
  margin-top: 4px;
  font-size: 13px;
}
.job-modal-card .form-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.job-modal-card .form-actions button,
.work-page .job-modal-card .form-actions button,
.work-page .job-modal-card .form-actions .btn-primary {
  flex: none;
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  box-sizing: border-box;
}
.job-modal-card .form-actions button:not(.btn-primary) {
  background: #eceff3;
  color: var(--text);
}
.job-modal .progress { margin-top: 0; }
.progress .fill.indeterminate {
  width: 36%;
  animation: job-indeterminate 1.15s ease-in-out infinite;
}
@keyframes job-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.job-btn {
  position: relative;
  overflow: hidden;
  min-width: 96px;
}
.job-btn.busy { opacity: 1; cursor: wait; }
.job-inline {
  display: none;
  margin-top: 6px;
  height: 4px;
  background: #e8edf3;
  border-radius: 99px;
  overflow: hidden;
}
.job-inline.on { display: block; }
.job-inline .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
}
.drop .progress { margin-top: 12px; }
.quota-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quota-actions input[type="number"] {
  width: 72px;
  padding: 4px 8px;
}
.quota-left.out { color: var(--danger); }
