@import "./yim-ai-vision-reference.css";

:root {
  --blue-soft: rgba(10, 132, 255, 0.1);
  --green-soft: rgba(48, 209, 88, 0.12);
  --orange-soft: rgba(255, 159, 10, 0.14);
  --purple-soft: rgba(125, 92, 255, 0.12);
  --red-soft: rgba(255, 55, 95, 0.12);
  --panel-shadow: 0 24px 70px rgba(24, 31, 46, 0.12);
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(230, 243, 255, 0.88), rgba(255, 255, 255, 0) 30%),
    linear-gradient(225deg, rgba(230, 255, 242, 0.72), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fa 54%, #ffffff 100%);
}

.app-shell[data-screen="home"] .workbench-page,
.app-shell[data-screen="home"] .records-page,
.app-shell[data-screen="home"] .event-home-page,
.app-shell[data-screen="workbench"] .home-page,
.app-shell[data-screen="workbench"] .records-page,
.app-shell[data-screen="workbench"] .event-home-page,
.app-shell[data-screen="event-home"] .home-page,
.app-shell[data-screen="event-home"] .workbench-page,
.app-shell[data-screen="event-home"] .records-page,
.app-shell[data-screen="records"] .home-page,
.app-shell[data-screen="records"] .workbench-page,
.app-shell[data-screen="records"] .event-home-page {
  display: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding-inline: max(32px, calc((100vw - 1380px) / 2));
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  background: rgba(251, 252, 255, 0.76);
  border-bottom: 1px solid rgba(17, 18, 22, 0.08);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
}

.nav-links {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.brand-button,
.nav-link,
.dock-item,
.mini-app,
.product-row {
  appearance: none;
}

.brand-button {
  min-width: 0;
  justify-self: start;
  color: var(--ink);
  background: transparent;
  padding: 0;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.brand-button.brand {
  gap: 11px;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 13px;
  background: #050607;
  box-shadow:
    0 16px 36px rgba(17, 18, 22, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-copy em {
  color: #6d727c;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prototype-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.prototype-pill svg {
  width: 14px;
  height: 14px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: rgba(10, 132, 255, 0.08);
}

[data-auth="guest"] [data-auth-user],
[data-auth="user"] [data-auth-guest] {
  display: none;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  position: relative;
}

.auth-login,
.auth-register,
.account-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.auth-login {
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.auth-register {
  padding: 0 17px;
  color: var(--blue);
  border: 1px solid rgba(10, 132, 255, 0.26);
  background: rgba(10, 132, 255, 0.08);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.08);
}

.account-pill {
  gap: 8px;
  padding: 0 12px 0 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(17, 18, 22, 0.18);
}

.account-pill svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.68);
}

.account-pill svg:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.account-pill-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #30d158);
  font-size: 12px;
  font-weight: 900;
}

.account-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 80;
  width: min(430px, calc(100vw - 40px));
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  border: 1px solid rgba(17, 18, 22, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(24, 31, 46, 0.18);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.account-popover[hidden] {
  display: none;
}

.wechat-contact {
  position: fixed;
  top: 78px;
  right: max(22px, calc((100vw - 1380px) / 2 + 22px));
  z-index: 96;
}

.wechat-contact-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 50%;
  color: #20242c;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 34px rgba(24, 31, 46, 0.12);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.wechat-contact-btn:hover,
.wechat-contact[data-open="true"] .wechat-contact-btn {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 46px rgba(10, 132, 255, 0.14),
    0 12px 28px rgba(24, 31, 46, 0.1);
}

.wechat-contact-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wechat-contact-btn svg circle {
  fill: currentColor;
  stroke: none;
}

.wechat-contact-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  padding: 16px;
  border: 1px solid rgba(17, 18, 22, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(24, 31, 46, 0.18);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.wechat-contact-panel[hidden] {
  display: none;
}

.wechat-contact-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.wechat-contact-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0;
}

.wechat-contact-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.wechat-contact-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.wechat-contact-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1110 / 1497;
  object-fit: contain;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 18px;
  background: #fff;
}

.wechat-contact-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.account-profile-card {
  margin: 14px;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(48, 209, 88, 0.08)),
    #eef3fb;
}

.account-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #738c98, #94a9b3);
  font-size: 38px;
  font-weight: 820;
}

.account-profile-card strong {
  color: var(--ink);
  font-size: 20px;
}

.account-profile-card span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.account-menu-list {
  display: grid;
  padding: 0 14px 12px;
}

.account-menu-section {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(10, 132, 255, 0.16);
}

.account-menu-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.account-section-title {
  display: block;
  padding: 8px 10px 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 820;
}

.account-menu-list button,
.account-menu-secondary {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.account-menu-list button:hover,
.account-menu-secondary:hover {
  background: rgba(10, 132, 255, 0.07);
}

.account-menu-list svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  color: #555a62;
  background: rgba(17, 18, 22, 0.06);
}

.account-menu-list strong,
.account-menu-secondary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.account-menu-list small,
.account-menu-secondary small {
  display: block;
  margin-top: 2px;
  color: #747983;
  font-size: 12px;
  font-weight: 680;
}

.account-menu-list em {
  color: #8f939c;
  font-style: normal;
  font-size: 20px;
  font-weight: 760;
}

.account-menu-footer {
  border-top: 1px solid var(--line);
  padding: 8px 14px 12px;
}

.account-menu-secondary {
  grid-template-columns: 30px minmax(0, 1fr);
}

.account-menu-secondary svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  color: #b42318;
  background: rgba(255, 55, 95, 0.08);
}

.account-menu-secondary strong {
  color: #b42318;
}

.wallet-pill {
  appearance: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 12px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
}

.wallet-pill:hover {
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.wallet-pill-guest {
  color: #075ea8;
  background: rgba(10, 132, 255, 0.08);
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.12);
}

.wallet-action {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.wallet-pill strong {
  font-size: 13px;
  line-height: 1;
}

.wallet-pill em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary.needs-credits {
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(255, 159, 10, 0.22);
}

.home-page {
  min-height: calc(100vh - 72px);
}

.agent-hero {
  width: min(1420px, calc(100vw - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 54px 0 72px;
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(620px, 1.14fr);
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.agent-title {
  margin: 16px 0 18px;
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(64px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 860;
}

.agent-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.78;
}

.prototype-status-row {
  max-width: 650px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}

.prototype-status-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(24, 31, 46, 0.06);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.prototype-status-row svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.prototype-status-row .product-ready-pill {
  color: var(--ink);
  border-color: rgba(10, 132, 255, 0.16);
  background: rgba(10, 132, 255, 0.08);
}

.prototype-status-row .product-ready-pill b {
  color: var(--blue);
}

.product-status-row {
  max-width: 610px;
}

.product-status-row span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
}

.product-status-row .product-ready-pill {
  color: var(--blue);
}

.agent-query-card {
  max-width: 660px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}

.query-card-head,
.stage-top,
.analysis-dock,
.signal-card,
.chips {
  display: flex;
  align-items: center;
}

.query-card-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.query-card-head strong {
  color: var(--blue);
}

.query-preview {
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  background: rgba(251, 252, 255, 0.9);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.chip.active,
.chip:hover {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.26);
  background: rgba(10, 132, 255, 0.09);
}

.analysis-stage {
  min-height: 700px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-window);
  position: relative;
  overflow: hidden;
}

.analysis-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.08), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(48, 209, 88, 0.07), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(247, 251, 255, 0.22));
  opacity: 1;
}

.stage-top,
.analysis-core,
.signal-card,
.analysis-dock {
  position: relative;
  z-index: 2;
}

.stage-top {
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.analysis-core {
  width: min(620px, 86%);
  min-height: 285px;
  margin: 148px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 34px 90px rgba(24, 31, 46, 0.16);
}

.analysis-core small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
}

.analysis-core h2 {
  margin: 10px 0 12px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.analysis-core p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.probability-orbit {
  position: relative;
  aspect-ratio: 1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 24%, rgba(10, 132, 255, 0.12), transparent 38%),
    radial-gradient(circle at 74% 72%, rgba(48, 209, 88, 0.08), transparent 36%),
    rgba(10, 132, 255, 0.06);
}

.orbit-ring {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(10, 132, 255, 0.26);
  border-radius: 50%;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 50%;
}

.orbit-node {
  position: absolute;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-weight: 860;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.22);
}

.orbit-node.main {
  left: 52px;
  top: 52px;
  background: var(--blue);
}

.orbit-node.draw {
  right: 20px;
  top: 82px;
  background: var(--orange);
}

.orbit-node.away {
  left: 76px;
  bottom: 24px;
  background: var(--purple);
}

.signal-card {
  position: absolute;
  width: 210px;
  min-height: 112px;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.signal-card.data {
  left: 56px;
  top: 142px;
}

.signal-card.market {
  right: 54px;
  top: 154px;
}

.signal-card.counter {
  left: 78px;
  bottom: 154px;
}

.signal-card.log {
  right: 78px;
  bottom: 154px;
}

.signal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: var(--blue);
}

.signal-icon svg {
  width: 20px;
  height: 20px;
}

.signal-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.analysis-dock {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  max-width: calc(100% - 54px);
  padding: 14px 16px;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.analysis-dock span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(245, 247, 250, 0.78);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.analysis-dock svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.model-hero-panel,
.model-board-grid,
.model-feature-strip,
.model-pipeline-panel,
.model-engine-grid,
.model-bottom-strip {
  position: relative;
  z-index: 2;
}

.model-hero-panel {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: start;
}

.model-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 860;
}

.model-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.14);
}

.model-hero-copy h2 {
  max-width: 520px;
  margin: 12px 0 12px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 880;
}

.model-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  font-weight: 640;
}

.model-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.model-chip-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(24, 31, 46, 0.05);
  font-size: 12px;
  font-weight: 820;
}

.model-chip-row span:first-child {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.09);
}

.model-prob-panel,
.model-feature-strip article,
.model-pipeline-panel,
.model-engine-card,
.model-bottom-strip article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 58px rgba(24, 31, 46, 0.1);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.model-prob-panel {
  padding: 18px;
  border-radius: 26px;
}

.model-simulation-panel {
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.74)),
    radial-gradient(circle at 88% 12%, rgba(48, 209, 88, 0.14), transparent 36%);
}

.simulation-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.09);
  font-size: 11px;
  font-weight: 860;
}

.model-simulation-panel strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 42px;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.model-simulation-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 720;
}

.simulation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.simulation-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(10, 132, 255, 0.08);
  font-size: 10px;
  font-weight: 820;
}

.model-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.model-board-card {
  min-width: 0;
  min-height: 178px;
  padding: 16px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.72)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 58px rgba(24, 31, 46, 0.1);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.model-board-card.primary {
  border-color: rgba(10, 132, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(237, 247, 255, 0.88), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 12% 0%, rgba(10, 132, 255, 0.12), transparent 44%);
}

.model-board-card.secondary {
  border-color: rgba(48, 209, 88, 0.16);
  background:
    linear-gradient(145deg, rgba(242, 255, 248, 0.72), rgba(255, 255, 255, 0.8)),
    radial-gradient(circle at 92% 8%, rgba(48, 209, 88, 0.12), transparent 42%);
}

.model-board-card header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.model-board-card header > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.15);
}

.model-board-card.secondary header > span {
  background: linear-gradient(145deg, #111216, #2a3240);
}

.model-board-card svg {
  width: 19px;
  height: 19px;
}

.model-board-card em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  font-weight: 820;
}

.model-board-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 880;
}

.model-board-card header b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.09);
  font-size: 11px;
  font-weight: 860;
  white-space: nowrap;
}

.model-board-card.secondary header b {
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
}

.model-board-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.model-board-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.model-board-points span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(17, 18, 22, 0.06);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.model-feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.model-feature-strip article {
  min-height: 116px;
  padding: 14px;
  border-radius: 22px;
}

.model-feature-strip article.featured {
  border-color: rgba(10, 132, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(236, 247, 255, 0.88), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at 20% 0%, rgba(48, 209, 88, 0.13), transparent 44%);
}

.model-feature-strip span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.08);
}

.model-feature-strip article.featured span {
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--green));
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.16);
}

.model-feature-strip svg {
  width: 17px;
  height: 17px;
}

.model-feature-strip strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.18;
  font-weight: 860;
}

.model-feature-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 680;
}

.production-model-panel {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.78)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 58px rgba(24, 31, 46, 0.1);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.production-model-head,
.production-readiness-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.production-model-head h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 880;
}

.production-model-head p,
.production-readiness-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.production-score,
.production-mini-score {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 20px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
}

.production-score strong,
.production-mini-score strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.production-score span,
.production-mini-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-align: center;
}

.production-layer-grid,
.production-layer-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.production-layer-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.production-layer {
  min-width: 0;
  min-height: 78px;
  padding: 11px;
  border: 1px solid rgba(17, 18, 22, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.production-layer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.production-layer strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.22;
  font-weight: 850;
}

.production-layer span {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 18, 22, 0.06);
  font-size: 10px;
  font-weight: 840;
  white-space: nowrap;
}

.production-layer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
  font-weight: 700;
}

.production-layer.connected span {
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
}

.production-layer.collecting span {
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
}

.production-layer.partial span {
  color: #8a5a00;
  background: rgba(255, 159, 10, 0.13);
}

.production-layer.missing span {
  color: #9a3412;
  background: rgba(255, 69, 58, 0.09);
}

.production-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px dashed rgba(17, 18, 22, 0.12);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.model-prob-panel h3,
.model-pipeline-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 860;
}

.model-prob-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.model-prob-list span,
.model-engine-card p {
  display: grid;
  align-items: center;
  gap: 8px;
}

.model-prob-list span {
  grid-template-columns: 54px 1fr 36px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.model-prob-list i,
.model-engine-card p i {
  height: 7px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  overflow: hidden;
}

.model-prob-list i::before,
.model-engine-card p i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.model-prob-list em {
  color: var(--ink);
  font-style: normal;
  text-align: right;
}

.model-pipeline-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 26px;
}

.model-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.model-pipeline-grid span {
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 10px 11px;
  border: 1px solid rgba(17, 18, 22, 0.07);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(247, 250, 255, 0.78);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 840;
}

.model-pipeline-grid em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
}

.model-engine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.model-engine-card {
  min-height: 112px;
  padding: 12px;
  border-radius: 22px;
}

.model-engine-card header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.model-engine-card header span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--green));
  font-size: 14px;
  font-weight: 880;
}

.model-engine-card header strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 860;
}

.model-engine-card header em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.model-engine-card p {
  grid-template-columns: 38px 1fr 26px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 760;
}

.model-engine-card p:last-child {
  margin-bottom: 0;
}

.model-engine-card p small {
  color: var(--ink);
  text-align: right;
  font-size: 11px;
  font-weight: 800;
}

.model-bottom-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.model-bottom-strip article {
  min-height: 82px;
  padding: 14px;
  border-radius: 22px;
}

.model-bottom-strip strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 860;
}

.model-bottom-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  font-weight: 620;
}

.home-page::before {
  display: none;
}

.agent-hero.two-board-home {
  width: min(1420px, calc(100vw - 48px));
  min-height: calc(100vh - 72px);
  padding: 48px 0 56px;
  display: block;
}

.two-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}

.two-board-home .agent-title {
  max-width: 880px;
  margin: 18px 0 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 900;
}

.two-board-head .agent-lead {
  max-width: 430px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 700;
}

.prediction-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.prediction-board {
  min-width: 0;
  min-height: 760px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 34px 100px rgba(24, 31, 46, 0.13);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.prediction-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sports-board::before {
  background:
    radial-gradient(circle at 20% 10%, rgba(10, 132, 255, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(238, 248, 255, 0.62));
}

.miro-board::before {
  background:
    radial-gradient(circle at 82% 8%, rgba(48, 209, 88, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 255, 248, 0.62));
}

.prediction-board > * {
  position: relative;
  z-index: 1;
}

.board-topline,
.board-actions,
.home-model-prompt,
.home-model-prompt-actions {
  display: flex;
  align-items: center;
}

.board-topline {
  justify-content: space-between;
  gap: 16px;
}

.board-badge,
.board-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 860;
}

.board-badge {
  gap: 8px;
  padding: 0 12px;
  color: var(--blue);
}

.miro-board .board-badge {
  color: #0b8a3a;
}

.board-badge svg {
  width: 15px;
  height: 15px;
}

.board-status {
  flex: 0 0 auto;
  padding: 0 11px;
  color: var(--ink);
}

.board-title {
  margin-top: 38px;
}

.board-title h2 {
  max-width: 570px;
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.04;
  font-weight: 900;
}

.board-title p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
  font-weight: 700;
}

.board-metric-panel,
.board-path-card,
.home-model-prompt {
  border: 1px solid rgba(17, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(24, 31, 46, 0.09);
}

.board-metric-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
}

.board-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.board-metric-row small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.miro-board .board-metric-row small {
  color: #0b8a3a;
}

.board-metric-row strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 50px;
  line-height: 0.96;
  font-weight: 900;
}

.board-metric-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
  font-weight: 720;
  text-align: right;
}

.board-cap-grid,
.board-step-grid {
  display: grid;
  gap: 10px;
}

.board-cap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.board-cap-grid span,
.board-step-grid span {
  display: grid;
  align-content: center;
  border: 1px solid rgba(17, 18, 22, 0.07);
  background: rgba(247, 250, 255, 0.78);
  color: var(--ink);
  font-weight: 840;
}

.board-cap-grid span {
  min-height: 58px;
  padding: 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.28;
}

.board-cap-grid em,
.board-step-grid em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
}

.board-path-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 28px;
}

.board-path-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.board-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-step-grid span {
  min-height: 74px;
  padding: 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.24;
}

.board-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.board-actions .primary,
.board-actions .secondary {
  min-height: 48px;
}

.board-actions .primary {
  padding-inline: 24px;
}

.miro-board .primary {
  background: #111216;
  box-shadow: 0 18px 40px rgba(17, 18, 22, 0.16);
}

.home-model-prompt {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.56fr);
  gap: 18px;
  align-items: center;
}

.home-model-prompt .query-card-head {
  margin-bottom: 12px;
}

.home-model-prompt .home-prompt-shell {
  border-radius: 22px;
}

.home-model-prompt textarea {
  min-height: 74px;
}

.home-model-prompt-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.home-model-prompt-actions .chips {
  justify-content: flex-end;
}

.agent-hero.predict-anything-home {
  width: min(1420px, calc(100vw - 48px));
  min-height: calc(100vh - 72px);
  padding: 58px 0 64px;
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(620px, 1.24fr);
  gap: 54px;
  align-items: center;
}

.universal-status-panel,
.universal-prompt-panel {
  min-width: 0;
}

.universal-status-kicker,
.workflow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(106, 111, 122, 0.72);
  font-size: 14px;
  font-weight: 780;
}

.status-square {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(48, 209, 88, 0.1);
}

.predict-anything-home .agent-title {
  margin: 26px 0 18px;
  max-width: 560px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
}

.predict-anything-home .agent-lead {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 720;
}

.workflow-kicker {
  margin-top: 70px;
}

.universal-workflow {
  display: grid;
  gap: 30px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.universal-workflow li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
}

.universal-workflow li > span {
  grid-row: span 2;
  color: rgba(106, 111, 122, 0.48);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.universal-workflow strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.universal-workflow p {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 720;
}

.prompt-panel-card {
  overflow: hidden;
  border: 1px solid rgba(17, 18, 22, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(24, 31, 46, 0.11);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.prompt-panel-section {
  padding: 30px;
}

.prompt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(106, 111, 122, 0.82);
  font-size: 14px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.prompt-panel-head em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 800;
}

.seed-input-shell,
.universal-question-shell {
  display: grid;
  gap: 10px;
  position: relative;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 0;
  background: rgba(250, 251, 253, 0.76);
}

.seed-input-shell {
  padding: 18px;
}

.seed-input-shell span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.seed-input-shell textarea,
.universal-question-shell textarea {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
  resize: vertical;
  font-family: inherit;
}

.seed-input-shell textarea {
  min-height: 74px;
  font-size: 15px;
  line-height: 1.6;
}

.prompt-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  color: rgba(106, 111, 122, 0.42);
  font-size: 13px;
  font-weight: 760;
}

.prompt-divider::before,
.prompt-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 18, 22, 0.08);
}

.universal-question-shell {
  min-height: 170px;
  padding: 24px;
}

.universal-question-shell textarea {
  min-height: 128px;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 760;
}

.prompt-engine-label {
  justify-self: end;
  color: rgba(106, 111, 122, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.universal-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px 24px;
}

.universal-template-row .chip {
  margin-top: 0;
}

.prompt-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px 30px;
}

.prompt-panel-actions .home-submit {
  min-width: 210px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 45px rgba(17, 18, 22, 0.18);
}

.prompt-panel-note {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  color: #9a6a11;
  background: rgba(255, 248, 226, 0.78);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 780;
}

.prompt-panel-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.home-copy {
  padding-top: 14px;
}

.live-label {
  color: var(--blue);
}

.product-row,
.dock-item,
.mini-app {
  cursor: pointer;
}

.product-row:hover,
.mini-app:hover,
.dock-item:hover {
  transform: translateY(-2px);
}

.product-row,
.mini-app,
.dock-item {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dock-item {
  border-radius: 18px;
  background: transparent;
}

.dock-item.active {
  color: var(--ink);
}

.product-glyph {
  transition: background 180ms ease;
}

.product-glyph.creator::before,
.product-glyph.creator::after {
  background: var(--green);
}

.product-glyph.web::before,
.product-glyph.web::after {
  background: var(--orange);
}

.product-glyph.fitmind::before,
.product-glyph.fitmind::after {
  background: var(--pink);
}

.product-glyph.playground::before,
.product-glyph.playground::after {
  background: var(--teal);
}

.workbench-page {
  min-height: calc(100vh - 72px);
  padding-bottom: 28px;
}

.workspace-top {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.workbench-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.view-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.switch-btn {
  min-width: 72px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 720;
}

.switch-btn.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 8px rgba(24, 31, 46, 0.12);
}

.primary svg,
.secondary svg {
  width: 16px;
  height: 16px;
}

.workspace {
  width: min(1420px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 0;
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 2;
  transition: grid-template-columns 220ms ease;
}

.workspace[data-layout="split"] {
  grid-template-columns: 250px minmax(0, 1.1fr) minmax(340px, 0.7fr);
}

.workspace[data-layout="graph"] {
  grid-template-columns: 0 minmax(0, 0.82fr) minmax(460px, 1fr);
}

.workspace[data-layout="workbench"] .graph-panel,
.workspace[data-layout="graph"] .entry-rail {
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.workspace[data-layout="workbench"] {
  grid-template-columns: 0 minmax(0, 1fr) 0;
  gap: 0;
  padding-bottom: 34px;
}

.workspace[data-layout="workbench"] .entry-rail {
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 0;
  border: 0;
}

.entry-rail,
.workbench-panel,
.graph-panel {
  min-width: 0;
  overflow: hidden;
}

.entry-rail {
  padding: 14px;
}

.rail-header,
.panel-header,
.section-head,
.input-footer,
.source-chips,
.entry-card,
.probability-row,
.market-row,
.history-item,
.module-item,
.output-header,
.schedule-sync-panel,
.sync-status-group,
.sync-actions,
.header-actions,
.usage-main,
.usage-flow {
  display: flex;
  align-items: center;
}

.rail-header {
  justify-content: space-between;
  padding: 6px 8px 12px;
}

.rail-kicker,
.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-list {
  display: grid;
  gap: 9px;
}

.entry-card {
  width: 100%;
  min-height: 66px;
  gap: 12px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
}

.entry-card:hover {
  background: rgba(255, 255, 255, 0.72);
}

.entry-card.active {
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.1);
}

.entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.16);
}

.entry-icon svg {
  width: 19px;
  height: 19px;
}

.entry-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 780;
}

.entry-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rail-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.rail-block-title {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 780;
  margin-bottom: 10px;
}

.protocol-list,
.quick-prompt-row,
.fixture-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.protocol-list span,
.chip,
.quick-prompt,
.fixture-filter,
.sync-pill,
.status-pill,
.prompt-status,
.confidence-badge,
.reference-badge,
.report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 740;
}

.panel-header {
  min-height: 92px;
  padding: 20px 22px;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.output-header h2,
.forecast-output h2 {
  margin: 7px 0 0;
  letter-spacing: 0;
  line-height: 1.12;
}

.panel-header h2 {
  font-size: 32px;
}

.panel-subtitle {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.primary-btn,
.ghost-btn,
.mini-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.primary-btn,
.ghost-btn {
  min-height: 40px;
  padding: 0 14px;
  font-weight: 720;
}

.ghost-btn,
.mini-btn,
.icon-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
}

.ghost-btn svg,
.mini-btn svg,
.icon-btn svg {
  width: 16px;
  height: 16px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
  align-items: start;
  gap: 16px;
  padding: 18px;
}

.prediction-flow {
  min-width: 0;
  display: grid;
  align-items: start;
  gap: 16px;
}

.input-zone,
.schedule-section,
.forecast-output,
.market-panel,
.history-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.input-zone,
.schedule-section,
.forecast-output {
  align-self: start;
  padding: 18px;
}

.question-layout {
  display: grid;
  gap: 12px;
}

.match-context-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 20px;
  background: rgba(10, 132, 255, 0.08);
}

.match-context-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
}

.match-context-icon svg {
  width: 19px;
  height: 19px;
}

.match-context-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.context-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.match-context-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 820;
}

.match-context-main span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.match-context-status span {
  color: #0d7f35;
  background: var(--green-soft);
  border-color: rgba(48, 209, 88, 0.22);
}

.free-intel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(48, 209, 88, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.09), rgba(10, 132, 255, 0.045)),
    rgba(255, 255, 255, 0.76);
}

.free-intel-card[hidden] {
  display: none;
}

.free-intel-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.free-intel-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-intel-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.free-intel-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.free-intel-actions span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 999px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.1);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.free-intel-actions span.pending {
  color: #a15c00;
  border-color: rgba(255, 159, 10, 0.22);
  background: rgba(255, 159, 10, 0.1);
}

.free-intel-actions .model-sync-status {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
}

.free-intel-actions .model-sync-status.pending {
  color: #a15c00;
  border-color: rgba(255, 159, 10, 0.22);
  background: rgba(255, 159, 10, 0.1);
}

.free-intel-btn {
  border-color: rgba(48, 209, 88, 0.2);
  color: #0d7f35;
  background: rgba(255, 255, 255, 0.74);
}

.model-sync-btn {
  border-color: rgba(10, 132, 255, 0.18);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.74);
}

.free-intel-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.model-sync-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.production-readiness-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.075), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.7);
}

.production-readiness-card[hidden] {
  display: none;
}

.engine-split-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.engine-split-card[hidden] {
  display: none;
}

.engine-split-card article {
  min-width: 0;
  min-height: 102px;
  padding: 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(24, 31, 46, 0.08);
}

.engine-split-card article:first-child {
  border-color: rgba(10, 132, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(240, 248, 255, 0.86), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.72);
}

.engine-split-card article:last-child {
  border-color: rgba(48, 209, 88, 0.14);
  background:
    linear-gradient(145deg, rgba(243, 255, 249, 0.78), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.engine-split-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 880;
}

.engine-split-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.event-workbench-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(24, 31, 46, 0.08);
}

.event-workbench-board[hidden] {
  display: none;
}

.event-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-board-head strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 880;
}

.event-board-head p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 680;
}

.event-mode-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 999px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.1);
  font-size: 12px;
  font-weight: 840;
  white-space: nowrap;
}

.event-definition-grid,
.event-evidence-lanes {
  display: grid;
  gap: 10px;
}

.event-definition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-evidence-lanes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-definition-grid article,
.event-evidence-lanes article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.event-definition-grid article {
  border-color: rgba(10, 132, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(240, 248, 255, 0.8), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.68);
}

.event-evidence-lanes article {
  border-color: rgba(48, 209, 88, 0.12);
}

.event-definition-grid span,
.event-evidence-lanes span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.event-definition-grid strong,
.event-evidence-lanes strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.22;
  font-weight: 860;
}

.event-definition-grid p,
.event-evidence-lanes p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 680;
}

.production-readiness-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.production-readiness-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-mini-score {
  min-width: 64px;
  min-height: 58px;
  border-radius: 16px;
}

.production-mini-score strong {
  font-size: 22px;
}

.production-layer-strip .production-layer {
  min-height: 64px;
  padding: 9px;
  border-radius: 14px;
}

.production-layer-strip .production-layer-top {
  display: grid;
  gap: 6px;
}

.production-layer-strip .production-layer p {
  margin-top: 6px;
}

.prompt-composer {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.input-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  min-height: 152px;
  resize: vertical;
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
  line-height: 1.68;
}

textarea::placeholder {
  color: var(--muted-2);
}

textarea:focus {
  border-color: rgba(10, 132, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
  background: #fff;
}

.quick-prompt {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
}

.input-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.composer-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.prediction-cost-summary {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.prediction-cost-summary strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 860;
  white-space: nowrap;
}

.prediction-cost-summary em {
  color: var(--muted-2);
  font-style: normal;
  white-space: nowrap;
}

.model-tier-selector {
  min-height: 42px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(17, 18, 22, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(24, 31, 46, 0.08);
}

.model-tier-option {
  min-height: 34px;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.model-tier-option span,
.model-tier-option em {
  display: block;
  min-width: 0;
  line-height: 1.1;
  font-style: normal;
  text-align: left;
}

.model-tier-option em {
  max-width: 112px;
  overflow: hidden;
  color: color-mix(in srgb, currentColor 68%, #5f6b7a);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 720;
  text-overflow: ellipsis;
}

.model-tier-option svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  grid-row: 1 / span 2;
}

.model-tier-option.active {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.1);
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.12);
}

.composer-run-btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 860;
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.22);
}

.composer-run-btn svg {
  width: 17px;
  height: 17px;
}

.source-chips {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .free-intel-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .free-intel-actions {
    justify-content: space-between;
  }

  .free-intel-btn,
  .model-sync-btn {
    min-height: 38px;
  }

  .production-model-head,
  .production-readiness-head {
    display: grid;
  }

  .production-score,
  .production-mini-score {
    width: 100%;
    min-height: 56px;
    justify-items: start;
    padding: 0 12px;
  }

  .production-layer-grid,
  .production-layer-strip {
    grid-template-columns: 1fr;
  }

  .record-calibration-head,
  .record-calibration-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .prompt-composer textarea {
    min-height: 220px;
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.68;
  }

  .prediction-cost-summary,
  .mini-btn,
  .model-tier-selector,
  .composer-run-btn {
    width: 100%;
  }

}

.usage-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 20px;
  background: rgba(10, 132, 255, 0.06);
}

.usage-main {
  justify-content: space-between;
  gap: 10px;
}

.usage-credit-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.usage-main span,
.usage-panel p {
  color: var(--muted);
  font-size: 12px;
}

.usage-main strong {
  color: var(--blue);
  font-size: 15px;
}

.usage-flow {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.usage-flow span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.usage-flow svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.usage-panel p {
  margin: 0;
  line-height: 1.45;
}

.usage-panel.warning {
  border-color: rgba(255, 159, 10, 0.32);
  background: var(--orange-soft);
}

.output-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.fixture-filter.active {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.09);
}

.schedule-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.schedule-view-tabs button {
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.schedule-view-tabs button.active {
  color: #075ea8;
  background: rgba(10, 132, 255, 0.12);
}

.schedule-sync-panel {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(48, 209, 88, 0.16);
  border-radius: 20px;
  background: rgba(48, 209, 88, 0.08);
}

.sync-status-group,
.sync-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.sync-pill.live {
  color: #0d7f35;
}

.sync-pill.live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
}

.sync-time {
  color: var(--muted);
  font-size: 12px;
}

.mini-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.mini-btn.is-loading svg {
  animation: spin 900ms linear infinite;
}

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

.fixture-board {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.fixture-date-rail {
  --date-rail-height: clamp(360px, calc(100vh - 210px), 610px);
  --date-card-height: 82px;
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--date-rail-height);
  padding: 4px 10px 52px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}

.fixture-date-rail::-webkit-scrollbar {
  display: none;
}

.fixture-date-card {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 82px;
  padding: 14px 13px;
  text-align: left;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 14px 34px rgba(17, 18, 22, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  scroll-snap-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.fixture-date-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 870;
  letter-spacing: 0;
}

.fixture-date-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 820;
}

.fixture-date-card.active {
  color: #065fb8;
  border-color: rgba(10, 132, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(255, 255, 255, 0.88)),
    rgba(10, 132, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(10, 132, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: scale(1.035);
}

.fixture-date-card.active span {
  color: #5d6878;
}

@media (max-width: 760px) {
  .fixture-board {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 9px;
  }

  .fixture-date-rail {
    --date-rail-height: clamp(430px, calc(100vh - 180px), 590px);
    --date-card-height: 76px;
    top: 8px;
    padding: 4px 6px 44px;
    gap: 11px;
  }

  .fixture-date-card {
    min-height: 76px;
    padding: 12px 10px;
    border-radius: 22px;
  }

  .fixture-date-card strong {
    font-size: 20px;
  }

  .fixture-date-card span {
    margin-top: 7px;
    font-size: 11px;
  }
}

.fixture-table {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.fixture-table-head,
.fixture-table-row {
  display: grid;
  grid-template-columns: 50px minmax(190px, 1fr) 88px 78px 50px 56px;
  align-items: center;
  gap: 7px;
}

.fixture-table-head {
  padding: 10px;
  color: var(--muted);
  background: rgba(247, 250, 255, 0.82);
  font-size: 11px;
  font-weight: 840;
}

.fixture-list {
  display: grid;
  max-height: 456px;
  overflow: auto;
}

.fixture-card.fixture-table-row {
  width: 100%;
  min-height: 108px;
  padding: 12px 9px;
  text-align: left;
  border: 0;
  border-top: 1px solid rgba(17, 18, 22, 0.07);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.fixture-card.fixture-table-row:hover {
  background: rgba(255, 255, 255, 0.9);
}

.fixture-card.fixture-table-row.active {
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.13), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.76);
  box-shadow: inset 3px 0 0 rgba(10, 132, 255, 0.8);
}

.fixture-stage,
.fixture-venue,
.fixture-status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fixture-stage strong,
.fixture-venue strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 860;
}

.fixture-stage em,
.fixture-venue em,
.fixture-status em,
.fixture-home-note {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
  font-weight: 700;
}

.fixture-matchup {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fixture-teamline {
  display: grid;
  grid-template-columns: 42px 25px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fixture-side {
  justify-self: start;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 18, 22, 0.055);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 840;
  white-space: normal;
}

.fixture-side.home {
  color: #075ea8;
  background: rgba(10, 132, 255, 0.1);
}

.fixture-side.host {
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
}

.fixture-team-token {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 920;
  background: var(--blue);
}

.fixture-team-token.green {
  background: var(--green);
}

.fixture-team-token.orange {
  background: var(--orange);
}

.fixture-team-token.red {
  background: #ff3b30;
}

.fixture-team-token.cyan {
  background: #30b0c7;
}

.fixture-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 870;
}

.fixture-home-note {
  text-align: right;
}

.fixture-vs-line {
  position: relative;
  height: 1px;
  margin-left: 58px;
  background: rgba(17, 18, 22, 0.08);
}

.fixture-vs-line span {
  position: absolute;
  left: 46%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 20px;
  border-radius: 999px;
  color: var(--muted);
  background: #f2f5f9;
  font-size: 10px;
  font-weight: 900;
}

.fixture-vs-line span.done,
.fixture-vs-line span.live {
  width: auto;
  min-width: 42px;
  padding: 0 8px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.14);
}

.fixture-vs-line span.live {
  color: #9a5700;
  background: rgba(255, 159, 10, 0.16);
}

.fixture-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.fixture-signals em {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 18, 22, 0.055);
  font-size: 9px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.fixture-signals em.primary {
  color: #075ea8;
  background: rgba(10, 132, 255, 0.1);
}

.fixture-signals em.warn {
  color: #9a5700;
  background: rgba(255, 159, 10, 0.12);
}

.fixture-status strong {
  display: inline-flex;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 999px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
  font-size: 10px;
  font-weight: 850;
}

.fixture-status strong.pending {
  color: #586070;
  background: rgba(17, 18, 22, 0.065);
}

.fixture-status strong.live {
  color: #9a5700;
  background: rgba(255, 159, 10, 0.14);
}

.group-schedule-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.group-schedule-card,
.fixture-history-summary,
.fixture-history-list,
.fixture-snapshot-list {
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.group-schedule-card {
  min-width: 0;
  overflow: hidden;
}

.group-schedule-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 18, 22, 0.07);
  background: rgba(247, 250, 255, 0.78);
}

.group-schedule-card header span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.group-schedule-card header strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.group-standings {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.group-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 38px;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.group-team-row b {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 860;
}

.group-team-row em {
  justify-self: end;
  font-style: normal;
  color: #075ea8;
  font-weight: 900;
}

.group-fixture-list,
.fixture-history-list {
  display: grid;
}

.group-fixture-row,
.history-fixture-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid rgba(17, 18, 22, 0.06);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.group-fixture-row:hover,
.history-fixture-row:hover {
  background: rgba(10, 132, 255, 0.06);
}

.group-fixture-row span,
.history-fixture-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 760;
}

.group-fixture-row strong,
.history-fixture-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 860;
}

.group-fixture-row strong em,
.history-fixture-row strong em {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  margin: 0 4px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #075ea8;
  background: rgba(10, 132, 255, 0.09);
  font-style: normal;
  font-weight: 900;
}

.group-fixture-row i,
.history-fixture-row i {
  justify-self: end;
  padding: 5px 7px;
  border-radius: 999px;
  color: #586070;
  background: rgba(17, 18, 22, 0.065);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.group-fixture-row i.done,
.history-fixture-row i.done {
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.14);
}

.group-fixture-row i.live,
.history-fixture-row i.live {
  color: #9a5700;
  background: rgba(255, 159, 10, 0.15);
}

.fixture-history-board {
  display: grid;
  gap: 12px;
}

.fixture-history-summary {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 14px;
  padding: 13px 14px;
}

.fixture-history-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.fixture-history-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.fixture-history-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.fixture-snapshot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.fixture-snapshot-list span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-top: 1px solid rgba(17, 18, 22, 0.06);
}

.fixture-snapshot-list span:nth-child(odd) {
  border-right: 1px solid rgba(17, 18, 22, 0.06);
}

.fixture-snapshot-list b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.fixture-snapshot-list em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
}

.schedule-empty {
  padding: 18px;
  border: 1px dashed rgba(17, 18, 22, 0.14);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 760;
}

@media (max-width: 760px) {
  .group-schedule-board,
  .fixture-history-summary,
  .fixture-snapshot-list {
    grid-template-columns: 1fr;
  }

  .fixture-snapshot-list span:nth-child(odd) {
    border-right: 0;
  }

  .group-fixture-row,
  .history-fixture-row {
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    padding-inline: 10px;
  }
}

.fixture-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(10, 132, 255, 0.22);
}

.forecast-output {
  align-self: stretch;
}

.confidence-badge,
.reference-badge {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
}

.forecast-output h2 {
  margin: 16px 0 18px;
  font-size: 28px;
}

.probability-stack {
  display: grid;
  gap: 14px;
}

.probability-stack.is-loading .probability-row-skeleton {
  opacity: 0.92;
}

.probability-row-skeleton .probability-name,
.probability-row-skeleton .probability-value {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 18, 22, 0.08), rgba(17, 18, 22, 0.03), rgba(17, 18, 22, 0.08));
  background-size: 180% 100%;
  animation: predictionShimmer 1.2s ease-in-out infinite;
}

.probability-row-skeleton .bar-fill {
  width: 42%;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.28), rgba(48, 209, 88, 0.2), rgba(10, 132, 255, 0.28));
  background-size: 180% 100%;
  animation: predictionShimmer 1.2s ease-in-out infinite;
}

.probability-row {
  min-height: 42px;
  gap: 12px;
}

.probability-name {
  width: 90px;
  font-size: 14px;
  font-weight: 780;
}

.bar-track {
  flex: 1;
  height: 11px;
  border-radius: 999px;
  background: rgba(17, 18, 22, 0.08);
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.probability-value {
  width: 52px;
  text-align: right;
  font-weight: 820;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.insight-block {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 247, 250, 0.72);
}

.insight-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  margin-bottom: 7px;
}

.insight-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.58;
}

.workbench-original-analysis-card,
.workbench-prompt-card,
.agent-framework-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.06), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.68);
}

.agent-framework-card {
  border-color: rgba(48, 209, 88, 0.16);
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.08), rgba(10, 132, 255, 0.04), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.68);
}

.agent-framework-card[hidden] {
  display: none;
}

.agent-framework-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-framework-title {
  min-width: 0;
}

.agent-framework-title strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 860;
}

.agent-status-pill {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.agent-sync-strip {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(10, 132, 255, 0.13);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 820;
}

.agent-sync-strip svg {
  width: 16px;
  height: 16px;
}

.agent-sync-strip.is-connected {
  color: #0a7a34;
  border-color: rgba(48, 209, 88, 0.2);
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.12), rgba(10, 132, 255, 0.06));
}

.agent-sync-strip.is-pending {
  color: var(--muted);
}

.agent-framework-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.agent-framework-block {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 18, 22, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.agent-framework-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}

.agent-framework-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agent-framework-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.agent-framework-list li {
  display: grid;
  grid-template-columns: minmax(72px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agent-framework-list b {
  color: var(--ink);
  font-weight: 820;
}

.agent-framework-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 18, 22, 0.07);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workbench-original-analysis {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.workbench-original-analysis.is-typing::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.1);
  animation: reportCursorBlink 0.82s steps(2, start) infinite;
}

.workbench-original-analysis p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.68;
}

.analysis-report-placeholder {
  display: block;
}

.report-placeholder-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(48, 209, 88, 0.05)),
    rgba(255, 255, 255, 0.76);
}

.report-placeholder-status {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.report-placeholder-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.report-placeholder-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.report-typing-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.report-typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.35;
  animation: reportDotPulse 1s ease-in-out infinite;
}

.report-typing-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.report-typing-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.workbench-original-analysis.detailed-report,
.record-original-analysis.detailed-report {
  gap: 12px;
}

.report-cover,
.report-section {
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.report-cover {
  display: grid;
  gap: 6px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(40, 199, 111, 0.06)),
    rgba(255, 255, 255, 0.78);
}

.report-cover strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.report-cover span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.report-section {
  padding: 15px 16px;
}

.report-section h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}

.report-section p {
  margin: 0 0 8px;
}

.report-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.report-section li {
  display: list-item;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.68;
}

.record-original-analysis .report-cover strong {
  font-size: 17px;
}

.record-original-analysis .report-section h3 {
  font-size: 16px;
}

.insight-block-loading {
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.06), rgba(48, 209, 88, 0.05), rgba(10, 132, 255, 0.06)),
    rgba(255, 255, 255, 0.66);
}

@keyframes predictionShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes reportCursorBlink {
  0%, 45% {
    opacity: 1;
  }
  46%, 100% {
    opacity: 0;
  }
}

@keyframes reportDotPulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.32;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

.workbench-prompt-card {
  display: grid;
  gap: 10px;
  border-color: rgba(17, 18, 22, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.workbench-prompt-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.workbench-record-note {
  padding-top: 10px;
  border-top: 1px solid rgba(17, 18, 22, 0.07);
  color: var(--muted) !important;
}

.result-graph-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.result-graph-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result-graph-header h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.result-graph-header .icon-btn {
  width: 34px;
  height: 34px;
}

.result-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.graph-panel {
  background: rgba(255, 255, 255, 0.7);
}

.panel-header.compact {
  min-height: 78px;
}

.graph-canvas {
  position: relative;
  height: 300px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 18%, rgba(10, 132, 255, 0.1), transparent 34%),
    radial-gradient(circle at 76% 70%, rgba(48, 209, 88, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-lines path {
  fill: none;
  stroke: rgba(10, 132, 255, 0.24);
  stroke-width: 2;
  stroke-dasharray: 5 8;
}

.graph-node {
  position: absolute;
  min-width: 92px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(24, 31, 46, 0.1);
}

.graph-node.root {
  left: 30px;
  top: 48px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.graph-node.teal {
  left: 58%;
  top: 54px;
  color: #005e58;
  background: rgba(0, 166, 166, 0.12);
}

.graph-node.amber {
  left: 52%;
  top: 145px;
  color: #8a5600;
  background: var(--orange-soft);
}

.graph-node.violet {
  left: 34%;
  top: 220px;
  color: #312b91;
  background: var(--purple-soft);
}

.graph-node.green {
  right: 26px;
  bottom: 34px;
  color: #0d7f35;
  background: var(--green-soft);
}

.module-list,
.market-panel,
.history-panel {
  padding: 16px;
}

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

.module-item {
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.module-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.module-title,
.module-desc,
.history-item p {
  margin: 0;
}

.module-title {
  font-size: 13px;
  font-weight: 780;
}

.module-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.section-head span {
  color: var(--muted);
  font-weight: 760;
}

.section-head strong {
  color: var(--blue);
  font-weight: 820;
}

.market-table,
.history-list {
  display: grid;
  gap: 8px;
}

.market-row,
.history-item {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.market-row strong,
.history-item strong {
  font-size: 13px;
}

.market-row span,
.history-item span:last-child,
.history-item p {
  color: var(--muted);
  font-size: 12px;
}

.floating-dock {
  width: fit-content;
  max-width: calc(100vw - 36px);
  margin-top: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 18, 22, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.recharge-modal {
  width: min(620px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

.auth-modal {
  width: min(1120px, 100%);
  min-height: 680px;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(28px) saturate(1.36);
  -webkit-backdrop-filter: blur(28px) saturate(1.36);
}

.auth-close-floating {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  color: var(--ink-soft);
  background: rgba(17, 18, 22, 0.06);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-right: 54px;
}

.modal-head #rechargeCloseBtn,
.modal-head #authCloseBtn {
  position: absolute;
  top: 0;
  right: 0;
}

.modal-head h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.modal-head p,
.billing-rules p,
.payment-status,
.auth-intent-card p,
.auth-scan-panel p,
.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-dialog-grid {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  min-height: 680px;
  gap: 0;
  margin-top: 0;
}

.auth-intent-card,
.auth-form-panel {
  min-width: 0;
}

.auth-intent-card {
  padding: 44px 34px;
  border-right: 1px solid rgba(17, 18, 22, 0.08);
  background:
    linear-gradient(160deg, rgba(10, 132, 255, 0.12), transparent 46%),
    rgba(248, 250, 253, 0.82);
}

.auth-intent-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
}

.auth-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 16px;
  font-weight: 900;
}

.auth-intent-card h3 {
  margin: 18px 0 0;
  max-width: 270px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-side-list {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.auth-side-list span {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.auth-side-list i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.auth-credit-preview {
  margin-top: 24px;
  padding: 22px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: #111216;
}

.auth-credit-preview span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 780;
}

.auth-credit-preview strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 46px;
  line-height: 1;
}

.auth-credit-preview p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 720;
}

.auth-form-panel {
  padding: 48px 54px 44px;
  background: rgba(255, 255, 255, 0.78);
}

.auth-form-heading {
  max-width: 650px;
}

.auth-form-heading h2 {
  margin: 10px 0 0;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-form-heading p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
  font-weight: 720;
}

.auth-mode-tabs,
.auth-method-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}

.auth-mode-tabs {
  width: 330px;
  margin: 30px 0 22px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-mode-tabs button,
.auth-method-tabs button {
  flex: 1;
  min-height: 46px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 780;
}

.auth-mode-tabs button.active,
.auth-mode-tabs button.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(17, 18, 22, 0.18);
}

.auth-method-tabs button {
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 840;
}

.auth-method-tabs button.active {
  border-color: rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
  box-shadow: none;
}

.auth-fields {
  display: grid;
  gap: 15px;
  margin-top: 0;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
}

.auth-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(17, 18, 22, 0.11);
  border-radius: 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  background: rgba(251, 252, 255, 0.92);
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 8px;
}

.auth-code-row button {
  min-height: 48px;
  border-radius: 17px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
  font-size: 13px;
  font-weight: 820;
}

.auth-scan-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.auth-scan-panel[hidden] {
  display: none;
}

.auth-qr-box {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  border: 12px solid #fff;
  border-radius: 26px;
  background:
    linear-gradient(90deg, var(--ink) 9px, transparent 9px) 0 0 / 34px 34px,
    linear-gradient(var(--ink) 9px, transparent 9px) 0 0 / 34px 34px,
    #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 34px rgba(24, 31, 46, 0.12);
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 22px 48px rgba(10, 132, 255, 0.28);
  font-size: 17px;
  font-weight: 900;
}

.auth-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.auth-social-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 780;
}

.auth-register-links {
  grid-template-columns: 1fr;
}

.auth-note {
  margin-top: 13px;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.auth-field[hidden],
.password-strength[hidden],
.auth-social-row[hidden] {
  display: none;
}

.wallet-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  padding: 14px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 22px;
  background: rgba(10, 132, 255, 0.08);
}

.wallet-summary span {
  color: var(--muted);
}

.wallet-summary strong {
  color: var(--blue);
}

.prototype-modal-note {
  margin: 0 0 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 18px;
  color: #8a5600;
  background: rgba(255, 159, 10, 0.1);
  font-size: 12px;
  line-height: 1.55;
}

.credit-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.credit-plan {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.credit-plan.featured {
  border-color: rgba(10, 132, 255, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.credit-plan span,
.credit-plan em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.credit-plan strong {
  font-size: 20px;
}

.billing-rules {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(245, 247, 250, 0.72);
}

.billing-rules span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 820;
}

.payment-status {
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .agent-hero {
    grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1fr);
    gap: 24px;
  }

  .analysis-stage {
    min-height: 640px;
  }

  .analysis-core {
    width: min(520px, 82%);
    grid-template-columns: 1fr;
    margin-top: 128px;
  }

  .probability-orbit {
    display: none;
  }

  .signal-card {
    width: 188px;
  }

  .workspace,
  .workspace[data-layout="split"],
  .workspace[data-layout="graph"] {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .production-layer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graph-panel {
    display: none;
  }

  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .records-workspace {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
  }

  .record-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .home-page {
    min-height: auto;
  }

  .agent-hero {
    width: min(100vw - 28px, 720px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0 50px;
    align-items: start;
  }

  .agent-title {
    max-width: 620px;
    font-size: clamp(58px, 13vw, 86px);
  }

  .agent-lead {
    max-width: 660px;
  }

  .agent-query-card {
    max-width: none;
  }

  .analysis-stage {
    min-height: auto;
    padding: 20px;
    border-radius: 34px;
  }

  .model-hero-panel {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .model-hero-copy h2 {
    max-width: none;
    font-size: 34px;
  }

  .model-hero-copy p {
    max-width: none;
  }

  .model-feature-strip,
  .model-engine-grid,
  .model-bottom-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .analysis-core {
    width: 100%;
    min-height: auto;
    margin: 24px 0 14px;
    padding: 24px;
    border-radius: 28px;
  }

  .analysis-core h2 {
    font-size: 30px;
  }

  .signal-card {
    position: relative;
    width: 100%;
    min-height: auto;
    margin-top: 10px;
  }

  .signal-card.data,
  .signal-card.market,
  .signal-card.counter,
  .signal-card.log {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .analysis-dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    margin-top: 12px;
  }

  .nav {
    width: 100%;
    padding-inline: 14px;
    grid-template-columns: 1fr auto;
    min-height: 68px;
    row-gap: 8px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .nav-actions .primary {
    display: none;
  }

  .workspace-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workbench-actions {
    justify-content: stretch;
  }

  .view-switcher,
  .workbench-actions .secondary,
  .workbench-actions .primary {
    width: 100%;
  }

  .switch-btn {
    flex: 1;
  }

  .workspace,
  .workspace[data-layout="split"],
  .workspace[data-layout="graph"] {
    width: min(100vw - 28px, 720px);
    grid-template-columns: 1fr;
  }

  .entry-rail {
    display: block;
  }

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

  .event-definition-grid,
  .event-evidence-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graph-panel {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .records-top,
  .records-workspace {
    width: min(100vw - 28px, 720px);
  }

  .records-top,
  .records-workspace,
  .record-detail-head,
  .record-prompt-card {
    grid-template-columns: 1fr;
  }

  .records-top,
  .record-detail-head,
  .record-prompt-card {
    display: grid;
    justify-items: start;
  }

  .records-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .model-board-grid,
  .engine-split-card {
    grid-template-columns: 1fr;
  }

  .event-board-head {
    display: grid;
  }

  .event-definition-grid,
  .event-evidence-lanes {
    grid-template-columns: 1fr;
  }

  .model-board-card {
    min-height: auto;
  }

  .model-board-card header {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .model-board-card header b {
    grid-column: 2;
    justify-self: start;
  }

  .agent-hero {
    width: min(100vw - 20px, 390px);
    padding-top: 24px;
  }

  .agent-title {
    margin-top: 12px;
    font-size: 52px;
    line-height: 1.02;
  }

  .agent-lead {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.72;
  }

  .prototype-pill {
    display: none;
  }

  .prototype-status-row {
    gap: 6px;
    margin: -6px 0 18px;
  }

  .prototype-status-row span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .prototype-status-row span:nth-child(3) {
    display: none;
  }

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

  .agent-query-card {
    padding: 14px;
    border-radius: 24px;
  }

  .query-card-head {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .query-preview {
    min-height: auto;
    padding: 14px;
    border-radius: 20px;
    font-size: 15px;
  }

  .analysis-stage {
    padding: 16px;
    border-radius: 28px;
  }

  .model-hero-panel {
    margin-top: 22px;
  }

  .model-hero-copy h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .model-feature-strip,
  .model-pipeline-grid,
  .model-engine-grid,
  .model-bottom-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .model-feature-strip article,
  .model-engine-card,
  .model-bottom-strip article {
    min-height: auto;
    padding: 12px;
  }

  .model-pipeline-panel {
    padding: 13px;
  }

  .model-pipeline-grid span {
    min-height: 66px;
    padding: 9px;
  }

  .stage-top {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .analysis-core {
    padding: 20px;
    border-radius: 24px;
  }

  .analysis-core h2 {
    font-size: 27px;
  }

  .signal-card {
    border-radius: 20px;
  }

  .auth-modal {
    width: min(100%, 560px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 12px;
    border-radius: 28px;
  }

  .auth-dialog-grid {
    grid-template-columns: 1fr;
  }

  .auth-intent-card {
    display: none;
  }

  .auth-intent-card,
  .auth-form-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .auth-intent-card h3 {
    font-size: 30px;
  }

  .auth-code-row,
  .auth-social-row {
    grid-template-columns: 1fr;
  }

  .workspace-title h1 {
    font-size: 32px;
  }

  .panel-header,
  .output-header,
  .match-context-card,
  .schedule-sync-panel,
  .modal-head {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .panel-header h2,
  .forecast-output h2 {
    font-size: 28px;
  }

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

  .prediction-grid {
    padding: 14px;
  }

  .input-zone,
  .schedule-section,
  .forecast-output {
    padding: 14px;
  }

  .fixture-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .fixture-teams {
    white-space: normal;
  }

  .probability-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .probability-name {
    width: auto;
  }

  .bar-track {
    grid-column: 1 / -1;
  }

  .credit-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .agent-title {
    font-size: 48px;
  }

  .nav {
    width: 100%;
    padding-inline: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy em {
    display: none;
  }

  .auth-actions {
    gap: 6px;
  }

  .prototype-status-row span:nth-child(2) {
    display: none;
  }

  .auth-login,
  .auth-register,
  .account-pill {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .account-pill em {
    display: none;
  }

  .wallet-pill {
    padding-left: 10px;
    gap: 6px;
  }

  .wallet-pill em,
  .wallet-pill-guest em {
    display: none;
  }

  .wallet-pill strong {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .workspace-top,
  .workspace,
  .home-hero,
  .agent-hero {
    width: min(100vw - 20px, 390px);
  }

  .hero-title {
    font-size: 42px;
  }

  .home-hero {
    padding-top: 22px;
  }

  .launcher,
  .desktop-stage,
  .glass,
  .workbench-panel,
  .entry-rail,
  .graph-panel {
    border-radius: 24px;
  }

  .product-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .product-row .arrow {
    display: none;
  }

  .usage-flow svg {
    display: none;
  }
}

/* Unified analysis-agent interface */
.agent-workbench {
  padding-top: 10px;
}

.agent-workspace-top,
.agent-rail,
.agent-panel,
.agent-graph-panel,
.analysis-result-card,
.recharge-modal {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.agent-workspace-top::before,
.agent-panel::before,
.agent-graph-panel::before,
.recharge-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(10, 132, 255, 0.06), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(247, 251, 255, 0.12));
  pointer-events: none;
}

.agent-workspace-top > *,
.agent-panel > *,
.agent-graph-panel > *,
.recharge-modal > * {
  position: relative;
  z-index: 1;
}

.agent-workspace-top {
  width: min(1420px, calc(100vw - 36px));
  min-height: 58px;
  margin: 10px auto 16px;
  padding: 0 18px;
  border-radius: 22px;
}

.agent-workspace-top::after {
  display: none;
}

.workspace-strip-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(48, 209, 88, 0.12);
}

.workspace-strip-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.workspace-strip-title p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-credit {
  margin-left: 8px;
  color: var(--blue);
  font-weight: 860;
}

.agent-workspace-top .workbench-actions {
  flex-wrap: nowrap;
}

.agent-workspace-top .view-switcher {
  background: rgba(118, 118, 128, 0.1);
}

.agent-workspace-top .primary {
  min-height: 40px;
  padding: 0 17px;
}

.agent-rail {
  border-radius: 32px;
}

.agent-rail .rail-header {
  padding: 8px 10px 14px;
}

.entry-card {
  border-color: rgba(17, 18, 22, 0.05);
  background: rgba(255, 255, 255, 0.42);
}

.entry-card.active {
  border-color: rgba(10, 132, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(255, 255, 255, 0.82)),
    rgba(10, 132, 255, 0.08);
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.12);
}

.entry-icon,
.match-context-icon,
.signal-icon {
  background:
    linear-gradient(145deg, #0a84ff, #0071e3 54%, #30d158);
}

.rail-block {
  background: rgba(255, 255, 255, 0.66);
}

.protocol-list span {
  color: var(--ink-soft);
  background: rgba(247, 251, 255, 0.82);
}

.agent-panel,
.agent-graph-panel {
  border-radius: 34px;
}

.panel-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
}

.analysis-status-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(48, 209, 88, 0.22);
  border-radius: 999px;
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.12);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.analysis-status-chip svg {
  width: 15px;
  height: 15px;
}

.input-zone,
.schedule-section,
.forecast-output,
.market-panel,
.history-panel,
.prompt-composer,
.usage-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(250, 252, 255, 0.58)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 42px rgba(24, 31, 46, 0.08);
}

.match-context-card {
  border-color: rgba(10, 132, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.13), rgba(255, 255, 255, 0.78));
}

.prompt-composer textarea {
  min-height: clamp(270px, 31vh, 360px);
  padding: 22px 24px;
  border-color: rgba(10, 132, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.88));
  font-size: 18px;
  line-height: 1.78;
}

@media (max-width: 760px) {
  .prompt-composer textarea {
    min-height: 220px;
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.68;
  }
}

.quick-prompt,
.fixture-filter.active {
  color: var(--blue);
  border-color: rgba(10, 132, 255, 0.24);
  background: rgba(10, 132, 255, 0.1);
}

.usage-panel {
  border-color: rgba(10, 132, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.09), rgba(255, 255, 255, 0.8));
}

.schedule-sync-panel {
  border-color: rgba(48, 209, 88, 0.2);
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.12), rgba(255, 255, 255, 0.78));
}

.fixture-card {
  border-color: rgba(17, 18, 22, 0.06);
  background: rgba(255, 255, 255, 0.74);
}

.fixture-card.active {
  border-color: rgba(10, 132, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.13), rgba(255, 255, 255, 0.86));
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.11);
}

.analysis-result-card {
  border-color: rgba(255, 255, 255, 0.76);
}

.analysis-result-card::before {
  display: none;
}

.analysis-result-card .confidence-badge,
.analysis-result-card .reference-badge,
.analysis-result-card h2,
.analysis-result-card .probability-stack,
.analysis-result-card .workbench-original-analysis-card,
.analysis-result-card .agent-framework-card,
.analysis-result-card .insight-grid,
.analysis-result-card .workbench-prompt-card,
.analysis-result-card .result-graph-card,
.analysis-result-card .result-disclaimer {
  position: relative;
  z-index: 1;
}

.bar-track {
  background: rgba(17, 18, 22, 0.08);
}

.insight-block {
  background: rgba(255, 255, 255, 0.68);
}

.analysis-result-card .insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.analysis-result-card .insight-block {
  min-height: 0;
  padding: 12px;
  border-radius: 16px;
}

.agent-graph-panel .graph-canvas {
  background:
    radial-gradient(circle at 28% 18%, rgba(10, 132, 255, 0.11), transparent 36%),
    radial-gradient(circle at 74% 72%, rgba(48, 209, 88, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.result-graph-canvas {
  height: 188px;
  margin: 12px 0 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 18%, rgba(10, 132, 255, 0.12), transparent 36%),
    radial-gradient(circle at 74% 74%, rgba(48, 209, 88, 0.08), transparent 34%),
    rgba(251, 252, 255, 0.7);
}

.result-graph-canvas .graph-lines path {
  stroke: rgba(10, 132, 255, 0.24);
  stroke-dasharray: 7 9;
}

.result-graph-canvas .graph-node {
  min-width: 86px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 15px;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(24, 31, 46, 0.09);
}

.result-graph-canvas .graph-node.root {
  left: 18px;
  top: 78px;
}

.result-graph-canvas .graph-node.teal {
  left: 46%;
  top: 36px;
}

.result-graph-canvas .graph-node.amber {
  left: 39%;
  top: 114px;
}

.result-graph-canvas .graph-node.violet {
  left: 15%;
  top: 132px;
}

.result-graph-canvas .graph-node.green {
  right: 18px;
  bottom: 22px;
}

.prediction-records-page {
  min-height: calc(100vh - 72px);
  padding: 10px 0 42px;
}

.records-top {
  width: min(1420px, calc(100vw - 36px));
  min-height: 62px;
  margin: 10px auto 16px;
  padding: 0 18px;
  border-radius: 22px;
}

.records-retention-notice {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.records-retention-notice svg {
  width: 15px;
  height: 15px;
}

.records-workspace {
  width: min(1420px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.records-list-panel,
.records-detail-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.records-list-panel::before,
.records-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.06), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(247, 251, 255, 0.1));
  pointer-events: none;
}

.records-list-panel > *,
.records-detail-panel > * {
  position: relative;
  z-index: 1;
}

.records-list-panel {
  padding: 20px;
}

.records-detail-panel {
  min-height: 640px;
  padding: 28px 26px;
}

.records-panel-head h2 {
  margin: 6px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.records-panel-head p,
.record-detail-head p,
.record-prompt-card p,
.record-retention-card p,
.records-detail-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.records-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.records-search {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.records-search svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.records-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.records-search input::placeholder {
  color: var(--muted);
}

.records-count {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

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

.record-list-item {
  width: 100%;
  min-height: 102px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(17, 18, 22, 0.06);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.record-list-item.active {
  border-color: rgba(10, 132, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(10, 132, 255, 0.1);
}

.record-list-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-size: 19px;
  font-weight: 900;
}

.record-list-main {
  min-width: 0;
  flex: 1;
}

.record-list-main strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.record-list-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.record-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.record-meta-row span,
.record-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.record-meta-row .fresh {
  color: #0d7f35;
  border-color: rgba(48, 209, 88, 0.22);
  background: rgba(48, 209, 88, 0.1);
}

.record-meta-row .expires,
.record-retention-card {
  color: #8a5600;
  border-color: rgba(255, 159, 10, 0.24);
  background: rgba(255, 159, 10, 0.1);
}

.record-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.record-detail-head h2,
.records-detail-empty h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

.record-continue-btn {
  min-height: 44px;
  white-space: nowrap;
}

.record-probability-card,
.record-original-analysis-card,
.record-analysis-card,
.record-calibration-card,
.record-prompt-card,
.record-retention-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.record-probability-card {
  padding: 16px;
}

.record-original-analysis-card {
  margin-top: 14px;
  padding: 17px;
  border-color: rgba(10, 132, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.07), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.7);
}

.record-original-analysis {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.record-original-analysis p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.record-probability-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.record-analysis-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.record-analysis-card {
  min-height: 126px;
  padding: 15px;
}

.record-analysis-card strong,
.record-retention-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.record-analysis-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.record-calibration-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-color: rgba(48, 209, 88, 0.18);
  background:
    linear-gradient(135deg, rgba(48, 209, 88, 0.075), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.68);
}

.record-calibration-card[hidden] {
  display: none;
}

.record-calibration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.record-calibration-head > div {
  min-width: 0;
}

.record-calibration-head strong {
  display: block;
  margin: 5px 0 6px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.24;
  font-weight: 860;
}

.record-calibration-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.record-calibration-head > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #8a5a00;
  background: rgba(255, 159, 10, 0.12);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.record-calibration-head > span.settled {
  color: #0d7f35;
  background: rgba(48, 209, 88, 0.13);
}

.record-calibration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.record-calibration-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.record-calibration-grid input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(17, 18, 22, 0.1);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 760;
}

.record-prompt-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
}

.record-retention-card {
  margin-top: 14px;
  padding: 16px;
}

.records-detail-empty {
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.records-detail-empty[hidden],
.records-detail-content[hidden] {
  display: none;
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
}

.empty-icon svg {
  width: 26px;
  height: 26px;
}

.module-item,
.market-row,
.history-item {
  background: rgba(255, 255, 255, 0.68);
}

.workbench-analysis-dock {
  display: none;
}

.workbench-analysis-dock button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(245, 247, 250, 0.78);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.workbench-analysis-dock button:first-child {
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
}

.workbench-analysis-dock svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.prediction-module-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 24;
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 52px rgba(24, 31, 46, 0.14);
  backdrop-filter: blur(28px) saturate(1.28);
  -webkit-backdrop-filter: blur(28px) saturate(1.28);
  transform: translateX(-50%);
}

.workspace:not([data-layout="workbench"]) .prediction-module-dock {
  display: none;
}

.module-dock-item {
  width: 82px;
  height: 58px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 21px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 840;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.module-dock-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.module-dock-item.active {
  color: var(--ink);
  border-color: rgba(10, 132, 255, 0.18);
  background: #fff;
  box-shadow: 0 13px 30px rgba(10, 132, 255, 0.13);
}

.module-dock-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 920;
  box-shadow: 0 10px 20px rgba(24, 31, 46, 0.12);
}

.module-dock-icon-worldcup {
  background: var(--blue);
}

.module-dock-icon-sports {
  background: #30d158;
}

.module-dock-icon-football {
  background: #30d158;
}

.module-dock-icon-basketball {
  background: #ff9f0a;
}

.module-dock-icon-tennis {
  background: #30b0c7;
}

.module-dock-icon-event {
  background: #ff3b68;
}

.modal-backdrop {
  background:
    radial-gradient(circle at 48% 18%, rgba(10, 132, 255, 0.18), transparent 34%),
    rgba(17, 18, 22, 0.16);
}

.recharge-modal {
  width: min(930px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.wallet-summary {
  min-height: 180px;
  align-items: end;
  margin: 18px 0 12px;
  padding: 24px;
  border-color: rgba(17, 18, 22, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(48, 209, 88, 0.24), transparent 32%),
    linear-gradient(135deg, #111216, #2c3038);
  color: #fff;
  box-shadow: 0 24px 60px rgba(17, 18, 22, 0.2);
}

.wallet-summary div {
  display: grid;
  gap: 10px;
}

.wallet-summary span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 820;
}

.wallet-summary strong {
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.wallet-summary small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 720;
}

.wallet-rules {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.wallet-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #62666f;
  font-size: 13px;
  font-weight: 740;
}

.wallet-rule i,
.ledger-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.1);
}

.payment-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.payment-stepper span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #6d727c;
  font-size: 12px;
  font-weight: 850;
}

.payment-stepper b {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
  font-size: 11px;
}

.payment-stepper span.active {
  border-color: rgba(10, 132, 255, 0.26);
  background: rgba(10, 132, 255, 0.1);
  color: var(--ink);
}

.credit-plan {
  min-height: 128px;
  align-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(250, 252, 255, 0.64));
}

.credit-plan.active {
  border-color: rgba(10, 132, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.13), rgba(255, 255, 255, 0.82));
  box-shadow: 0 16px 34px rgba(10, 132, 255, 0.11);
}

.recharge-order-panel,
.recharge-payment-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.recharge-order-panel {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
}

.recharge-order-panel strong,
.recharge-payment-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.recharge-order-panel p,
.recharge-payment-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.alipay-method-pill {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(255, 255, 255, 0.78));
}

.alipay-method-pill span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 12px;
  background: #1677ff;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.alipay-method-pill strong {
  font-size: 15px;
}

.alipay-method-pill em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.payment-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-provider-badge {
  align-self: start;
  border: 1px solid rgba(22, 119, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  font-size: 12px;
  font-weight: 900;
}

.payment-order-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-order-lines span {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(17, 18, 22, 0.07);
  border-radius: 16px;
  padding: 12px;
  background: rgba(250, 252, 255, 0.72);
}

.payment-order-lines b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.payment-order-lines em {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.wallet-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.ledger {
  border: 1px solid rgba(17, 18, 22, 0.08);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.ledger-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ledger-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(17, 18, 22, 0.07);
  color: #4f535b;
  font-size: 13px;
  font-weight: 760;
}

.ledger-row:first-of-type {
  border-top: 0;
}

.ledger-row b {
  color: var(--ink);
}

.wallet-actions {
  display: grid;
  align-content: end;
  gap: 10px;
}

.wallet-confirm {
  width: 100%;
}

.modal-secondary {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 780;
}

.billing-rules {
  background: rgba(255, 255, 255, 0.66);
}

.template-link {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  font-size: 12px;
  font-weight: 820;
}

.home-prompt-shell {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 24px;
  background: rgba(251, 252, 255, 0.9);
}

.home-prompt-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

#homePromptInput {
  min-height: 116px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

#homePromptInput:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-prompt-shell:focus-within {
  border-color: rgba(10, 132, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.home-prompt-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.home-submit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.22);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.home-submit svg {
  width: 15px;
  height: 15px;
}

button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

button:active {
  transform: scale(0.98);
}

.auth-password-group {
  display: grid;
  gap: 13px;
}

.auth-password-group[hidden] {
  display: none;
}

.password-strength {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.password-strength span {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 18, 22, 0.08);
}

.password-strength i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--red-soft);
  transition:
    width 180ms ease,
    background 180ms ease;
}

.password-strength[data-level="weak"] i {
  width: 34%;
  background: var(--orange);
}

.password-strength[data-level="medium"] i {
  width: 66%;
  background: var(--blue);
}

.password-strength[data-level="strong"] i {
  width: 100%;
  background: var(--green);
}

.password-strength em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.auth-note.error {
  color: #b42318;
  border-color: rgba(255, 55, 95, 0.2);
  background: rgba(255, 55, 95, 0.08);
}

.auth-note.success {
  color: #0d7f35;
  border-color: rgba(48, 209, 88, 0.22);
  background: rgba(48, 209, 88, 0.1);
}

.transition-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: rgba(251, 252, 255, 0.28);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.transition-layer[hidden] {
  display: none;
}

.transition-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.transition-card strong {
  font-size: 18px;
}

.transition-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.transition-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(10, 132, 255, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 130;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 18, 22, 0.9);
  box-shadow: 0 24px 60px rgba(17, 18, 22, 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font-size: 13px;
  font-weight: 760;
}

.app-toast::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 999px;
  background: #30d158;
}

.app-toast[hidden] {
  display: none;
}

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

@media (max-width: 640px) {
  .wechat-contact {
    top: 72px;
    right: 14px;
  }

  .wechat-contact-btn {
    width: 44px;
    height: 44px;
  }

  .wechat-contact-btn svg {
    width: 24px;
    height: 24px;
  }

  .wechat-contact-panel {
    width: min(292px, calc(100vw - 28px));
    padding: 14px;
    border-radius: 22px;
  }

  .home-prompt-footer {
    grid-template-columns: 1fr;
  }

  .home-submit {
    width: 100%;
  }

  #homePromptInput {
    min-height: 104px;
    font-size: 15px;
    line-height: 1.62;
  }

  .password-strength {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .agent-workspace-top {
    width: min(100vw - 28px, 720px);
    grid-template-columns: 1fr;
  }

  .agent-workspace-top::after {
    right: -80px;
    top: 36px;
    transform: none;
    opacity: 0.42;
  }

  .workspace-metrics {
    max-width: 520px;
  }

  .workbench-analysis-dock {
    max-width: min(100vw - 28px, 720px);
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .agent-workbench {
    padding-top: 10px;
  }

  .agent-workspace-top {
    width: min(100vw - 20px, 390px);
    min-height: auto;
    padding: 18px;
    border-radius: 28px;
  }

  .workspace-title h1 {
    font-size: 40px;
  }

  .workspace-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analysis-status-chip {
    min-height: 34px;
  }

  .analysis-result-card::before {
    height: 96px;
  }

  .billing-flow-visual {
    grid-template-columns: 1fr;
  }

  .usage-main,
  .usage-credit-actions {
    align-items: flex-start;
  }

  .usage-credit-actions {
    width: 100%;
    justify-content: space-between;
  }

  .workbench-analysis-dock {
    max-width: min(100vw - 20px, 390px);
    border-radius: 24px;
  }

  .payment-stepper,
  .payment-order-lines,
  .recharge-order-panel {
    grid-template-columns: 1fr;
  }
}

.recharge-modal {
  max-height: calc(100vh - 56px);
  overflow: auto;
}

@media (max-width: 980px) {
  .two-board-head,
  .prediction-boards,
  .home-model-prompt {
    grid-template-columns: 1fr;
  }

  .two-board-head {
    align-items: start;
  }

  .two-board-head .agent-lead {
    max-width: 720px;
  }

  .prediction-board {
    min-height: auto;
  }

  .home-model-prompt-actions {
    align-items: flex-start;
  }

  .home-model-prompt-actions .chips {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .agent-hero.two-board-home {
    width: min(100vw - 20px, 430px);
    padding: 24px 0 40px;
  }

  .two-board-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .two-board-home .eyebrow {
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.28;
  }

  .two-board-home .agent-title {
    max-width: 100%;
    font-size: 44px;
    line-height: 1.04;
  }

  .two-board-head .agent-lead {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.58;
  }

  .prediction-boards {
    gap: 14px;
  }

  .prediction-board {
    padding: 18px;
    border-radius: 30px;
  }

  .board-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .board-badge,
  .board-status {
    min-height: 32px;
    font-size: 12px;
  }

  .board-title {
    margin-top: 26px;
  }

  .board-title h2 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .board-title p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .board-metric-panel,
  .board-path-card {
    padding: 14px;
    border-radius: 22px;
  }

  .board-metric-row,
  .board-cap-grid,
  .board-step-grid {
    grid-template-columns: 1fr;
  }

  .board-metric-row {
    gap: 12px;
  }

  .board-metric-row strong {
    font-size: 40px;
  }

  .board-metric-row p {
    text-align: left;
  }

  .board-actions {
    align-items: stretch;
  }

  .board-actions .primary,
  .board-actions .secondary {
    width: 100%;
    min-height: 44px;
  }

  .home-model-prompt {
    padding: 16px;
    border-radius: 24px;
  }

  .home-model-prompt .query-card-head {
    display: grid;
    gap: 8px;
  }

  .home-model-prompt textarea {
    min-height: 120px;
  }

  .home-model-prompt-actions {
    align-items: stretch;
  }

  .home-model-prompt-actions .chips {
    justify-content: flex-start;
  }

  .home-model-prompt .home-submit {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .agent-hero.predict-anything-home {
    width: min(100vw - 28px, 760px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 52px;
  }

  .workflow-kicker {
    margin-top: 36px;
  }

  .universal-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .prompt-panel-card {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .agent-hero.predict-anything-home {
    width: min(100vw - 20px, 430px);
    padding: 24px 0 40px;
  }

  .predict-anything-home .agent-title {
    max-width: 100%;
    font-size: 44px;
    line-height: 1.04;
  }

  .predict-anything-home .agent-lead {
    font-size: 15px;
    line-height: 1.62;
  }

  .universal-workflow {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .universal-workflow li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .prompt-panel-section,
  .prompt-panel-actions {
    padding: 18px;
  }

  .universal-template-row {
    padding: 0 18px 18px;
  }

  .seed-input-shell,
  .universal-question-shell {
    border-radius: 18px;
  }

  .universal-question-shell {
    min-height: 190px;
    padding: 18px;
  }

  .universal-question-shell textarea {
    min-height: 150px;
    font-size: 15px;
  }

  .prompt-panel-actions {
    display: grid;
  }

  .prompt-panel-actions .home-submit {
    width: 100%;
    min-width: 0;
  }

  .prompt-panel-note {
    align-items: flex-start;
    min-height: auto;
    padding: 14px 18px;
  }
}

/* Mobile web and WeChat browser adaptation */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    min-width: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(145deg, rgba(231, 244, 255, 0.92), rgba(255, 255, 255, 0) 34%),
      linear-gradient(215deg, rgba(233, 255, 244, 0.76), rgba(255, 255, 255, 0) 30%),
      #f8fbff;
  }

  .nav {
    min-height: 86px;
    padding: 8px 10px 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-copy strong {
    max-width: 132px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy em {
    display: none;
  }

  .nav-actions {
    min-width: 0;
    gap: 6px;
  }

  .auth-login,
  .auth-register,
  .wallet-pill,
  .wallet-pill-guest,
  .account-pill {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
  }

  .auth-register {
    font-size: 0;
  }

  .auth-register::after {
    content: "注册";
    font-size: 12px;
  }

  .wallet-pill strong,
  .wallet-pill-guest strong {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wallet-pill-guest strong {
    font-size: 0;
  }

  .wallet-pill-guest strong::after {
    content: "积分";
    font-size: 12px;
  }

  .wallet-pill em,
  .wallet-pill-guest em {
    display: none;
  }

  .nav-links {
    width: 100%;
    gap: 6px;
    padding: 2px 0 0;
    scroll-padding-inline: 10px;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
  }

  .wechat-contact {
    top: 92px;
    right: 12px;
  }

  .agent-hero.two-board-home,
  .agent-hero.predict-anything-home,
  .workspace,
  .workspace[data-layout="workbench"],
  .agent-workspace-top,
  .records-top,
  .records-workspace {
    width: calc(100vw - 20px);
  }

  .agent-hero.two-board-home {
    padding: 24px 0 38px;
  }

  .two-board-head {
    gap: 14px;
  }

  .agent-title,
  .predict-anything-home .agent-title {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.06;
  }

  .agent-lead {
    font-size: 15px;
    line-height: 1.68;
  }

  .prediction-board,
  .home-model-prompt,
  .prompt-panel-card,
  .agent-workspace-top,
  .agent-panel,
  .analysis-result-card,
  .records-list-panel,
  .records-detail-panel {
    border-radius: 28px;
  }

  .prediction-board {
    padding: 20px;
  }

  .board-title h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  .board-metric-panel,
  .board-path-card {
    padding: 14px;
    border-radius: 20px;
  }

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

  .board-metric-row strong {
    font-size: 48px;
  }

  .board-actions,
  .home-model-prompt-actions,
  .home-model-prompt .chips {
    grid-template-columns: 1fr;
  }

  .home-model-prompt .chip,
  .board-actions .primary,
  .board-actions .secondary {
    width: 100%;
  }

  .agent-workspace-top {
    display: none;
  }

  .workspace-strip-title {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    gap: 8px 10px;
  }

  .workspace-strip-title p {
    grid-column: 2;
    white-space: normal;
  }

  .strip-status-dot {
    margin-top: 5px;
  }

  .workspace[data-layout="workbench"] {
    display: block;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }

  .workspace[data-layout="workbench"] .entry-rail,
  .workspace[data-layout="workbench"] .graph-panel {
    display: none;
  }

  .workbench-panel,
  .agent-panel {
    width: 100%;
    overflow: visible;
  }

  .panel-header {
    min-height: 0;
    padding: 14px;
    gap: 8px;
  }

  .panel-header h2,
  .forecast-output h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .panel-subtitle {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .header-actions > * {
    width: 100%;
  }

  .prediction-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .prediction-flow {
    display: contents;
  }

  .input-zone {
    order: 1;
  }

  .forecast-output {
    order: 2;
  }

  .schedule-section {
    order: 3;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
  }

  .input-zone,
  .schedule-section,
  .forecast-output {
    padding: 14px;
    border-radius: 24px;
  }

  .prompt-composer {
    order: 1;
    padding: 12px;
    border-radius: 22px;
  }

  .match-context-card {
    order: 2;
  }

  .free-intel-card {
    order: 3;
  }

  .production-readiness-card {
    order: 4;
  }

  .engine-split-card,
  .event-workbench-board {
    order: 5;
  }

  .match-context-card,
  .free-intel-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .match-context-main strong,
  .free-intel-main strong {
    white-space: normal;
  }

  .match-context-status {
    justify-self: stretch;
  }

  .match-context-status span {
    justify-content: center;
    width: 100%;
  }

  .free-intel-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .free-intel-actions span,
  .free-intel-actions button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .production-readiness-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px;
  }

  .production-readiness-head strong {
    white-space: normal;
  }

  .production-mini-score {
    min-width: 58px;
    min-height: 54px;
  }

  .production-layer-strip {
    grid-template-columns: 1fr;
  }

  .engine-split-card,
  .event-definition-grid,
  .event-evidence-lanes {
    grid-template-columns: 1fr;
  }

  .composer-head {
    display: grid;
    gap: 8px;
  }

  .prompt-composer textarea {
    min-height: 136px;
    padding: 14px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.56;
  }

  .composer-action-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .prediction-cost-summary {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
  }

  .prediction-cost-summary em {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .model-tier-selector,
  .composer-run-btn,
  #sampleBtn {
    width: 100%;
  }

  .model-tier-option {
    padding: 0 8px;
  }

  .schedule-board-header {
    order: 0;
    gap: 12px;
  }

  .schedule-view-tabs {
    order: 1;
  }

  .fixture-board,
  .group-schedule-board,
  .fixture-history-board {
    order: 2;
  }

  .schedule-sync-panel {
    order: 3;
    margin-top: 12px;
  }

  .fixture-tools,
  .schedule-view-tabs,
  .sync-status-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .fixture-filter,
  .schedule-view-tabs button,
  .sync-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .fixture-tools::-webkit-scrollbar,
  .schedule-view-tabs::-webkit-scrollbar,
  .sync-status-group::-webkit-scrollbar {
    display: none;
  }

  .schedule-sync-panel,
  .sync-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .sync-time,
  .sync-actions .mini-btn {
    width: 100%;
    justify-content: center;
  }

  .fixture-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fixture-date-rail {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    flex-direction: row;
    gap: 10px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fixture-date-card {
    width: 118px;
    min-width: 118px;
    min-height: 72px;
    padding: 11px 12px;
    border-radius: 20px;
  }

  .fixture-date-card strong {
    font-size: 20px;
  }

  .fixture-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .fixture-table-head {
    display: none;
  }

  .fixture-list {
    max-height: none;
    overflow: visible;
    gap: 10px;
  }

  .fixture-card.fixture-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 13px;
    border: 1px solid rgba(17, 18, 22, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(24, 31, 46, 0.08);
  }

  .fixture-stage,
  .fixture-matchup,
  .fixture-venue,
  .fixture-signals {
    grid-column: 1 / -1;
  }

  .fixture-stage {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
  }

  .fixture-stage strong {
    font-size: 22px;
  }

  .fixture-stage em,
  .fixture-venue em,
  .fixture-status em {
    font-size: 11px;
  }

  .fixture-teamline {
    grid-template-columns: 38px 28px minmax(0, 1fr);
  }

  .fixture-team-name {
    font-size: 18px;
  }

  .fixture-home-note {
    display: none;
  }

  .fixture-vs-line {
    margin-left: 48px;
  }

  .fixture-venue {
    padding: 10px 0;
    border-top: 1px solid rgba(17, 18, 22, 0.06);
    border-bottom: 1px solid rgba(17, 18, 22, 0.06);
  }

  .fixture-signals em {
    white-space: normal;
  }

  .fixture-status {
    grid-column: 1;
    align-self: center;
  }

  .fixture-action {
    grid-column: 2;
    align-self: end;
    min-height: 38px;
    padding: 0 13px;
  }

  .group-fixture-row,
  .history-fixture-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fixture-history-summary,
  .fixture-snapshot-list {
    grid-template-columns: 1fr;
  }

  .forecast-output {
    align-self: start;
  }

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

  .analysis-result-card .insight-grid,
  .agent-framework-grid,
  .record-analysis-grid {
    grid-template-columns: 1fr;
  }

  .agent-framework-head,
  .result-graph-header,
  .record-detail-head,
  .record-calibration-head,
  .record-prompt-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-graph-canvas {
    height: 160px;
    overflow: hidden;
  }

  .report-section {
    padding: 13px;
  }

  .prediction-module-dock {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    min-height: 68px;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    transform: none;
  }

  .module-dock-item {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    height: 54px;
    border-radius: 18px;
    font-size: 11px;
  }

  .module-dock-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: end;
  }

  .auth-modal,
  .recharge-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 28px 28px 18px 18px;
  }

  .recharge-modal {
    padding: 12px;
  }

  .wallet-summary {
    min-height: 136px;
    padding: 18px;
  }

  .wallet-summary strong {
    font-size: 38px;
  }

  .payment-stepper {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-bottom,
  .recharge-order-panel,
  .payment-order-lines,
  .payment-card-head,
  .record-calibration-grid {
    grid-template-columns: 1fr;
  }

  .app-toast {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .auth-login,
  .auth-register,
  .wallet-pill,
  .wallet-pill-guest {
    padding: 0 8px;
  }

  .brand-copy strong {
    max-width: 112px;
    font-size: 17px;
  }

  .nav-link {
    padding: 0 12px;
  }

  .fixture-date-card {
    width: 108px;
    min-width: 108px;
  }
}
