:root {
  --ink: #111315;
  --muted: #646b73;
  --bg: #ffffff;
  --paper: #ffffff;
  --green: #101820;
  --leaf: #f3f6f8;
  --red: #9f3a2f;
  --blue: #315bdc;
  --gold: #b89657;
  --line: rgba(17, 19, 21, 0.12);
  --shadow: 0 28px 90px rgba(16, 24, 32, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 76% 12%, rgba(49, 91, 220, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-color: #fff;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-box {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.topnav a,
.section-heading p,
.eyebrow {
  letter-spacing: 0;
}

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

.topnav {
  display: flex;
  gap: 18px;
}

.topnav a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.landing {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
  min-height: calc(100svh - 132px);
  padding: clamp(34px, 6vw, 76px) clamp(16px, 6vw, 84px) 32px;
}

.landing-only {
  min-height: calc(100svh - 260px);
  margin: 0 0 34px;
  border: 1px solid rgba(255, 223, 138, 0.28);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(124deg, rgba(255, 218, 112, 0.1), transparent 24%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 92px),
    linear-gradient(118deg, #5f0710 0%, #8f111c 47%, #3b1822 100%);
  box-shadow: 0 34px 90px rgba(74, 10, 18, 0.22);
}

.landing-only::before {
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: min(62vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 223, 138, 0.2);
  border-radius: 44% 0 0 0;
  content: "";
}

.landing-only::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 223, 138, 0.9), rgba(255, 255, 255, 0.38), transparent);
  content: "";
}

.landing-copy,
.landing-board {
  position: relative;
  z-index: 1;
}

.landing-only .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 223, 138, 0.32);
  border-radius: 4px;
  color: rgba(255, 248, 226, 0.92);
  background: rgba(255, 255, 255, 0.06);
}

.landing-only .eyebrow::before {
  width: 20px;
  height: 3px;
  background: #d9ad52;
  content: "";
}

.landing-only h1 {
  max-width: 760px;
  margin-top: 32px;
  color: #fff;
  font-size: clamp(40px, 5.8vw, 76px);
  text-wrap: balance;
}

.landing-only .hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
}

.landing-only .primary-action {
  border-color: rgba(255, 223, 138, 0.66);
  color: #4a0a12;
  background: #f7d078;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
.chat-preview strong,
.chat-head h3 {
  font-family: Georgia, "Noto Serif SC", serif;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
}

.hero-text {
  max-width: 730px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-action,
.ghost-action,
.submit-button,
.report-actions button,
.chat-form button {
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
}

.no-wrap {
  white-space: nowrap;
}

.primary-action,
.submit-button,
.chat-form button {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.16);
}

.submit-button:disabled,
.chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.submit-button.is-loading {
  cursor: progress;
  opacity: 1;
  background: #101820;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.22);
}

.submit-button.is-loading::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: button-sheen 1.55s ease-in-out infinite;
}

.ghost-action,
.report-actions button {
  color: var(--ink);
  background: transparent;
}

.inline-retry {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}

.poster-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 34px;
  border: 1px solid rgba(255, 223, 138, 0.24);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.poster-stats span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 223, 138, 0.18);
}

.poster-stats span:last-child {
  border-right: 0;
  background: rgba(247, 208, 120, 0.13);
}

.poster-stats strong {
  color: #fff8df;
  font-size: 15px;
}

.poster-stats small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.landing-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 223, 138, 0.24);
  border-radius: 8px;
  background: rgba(28, 12, 18, 0.36);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.chat-preview {
  padding: 18px;
  border-radius: 8px;
  line-height: 1.75;
}

.chat-preview span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
}

.chat-preview p {
  margin: 0;
}

.chat-preview.user {
  color: #fff;
  background: rgba(17, 19, 21, 0.82);
}

.chat-preview.agent {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.chat-preview.agent strong {
  display: block;
  margin-bottom: 6px;
  color: #f7d078;
  font-size: 24px;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.evidence-strip span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.22);
  border-radius: 6px;
  color: #f7d078;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-align: center;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(16px, 6vw, 84px) 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-band div {
  min-height: 116px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.feature-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-band span {
  color: var(--muted);
  line-height: 1.7;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 clamp(16px, 6vw, 84px) 70px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
}

.home-cta h2 {
  max-width: 760px;
}

.home-cta .primary-action {
  min-width: 128px;
  text-align: center;
}

.home-blessing {
  margin: 0 clamp(16px, 6vw, 84px) 22px;
  padding: 24px clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 223, 138, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 226, 142, 0.16), transparent 30%),
    linear-gradient(180deg, #b61f1f 0%, #8f1418 100%);
  box-shadow: 0 22px 54px rgba(143, 20, 24, 0.18);
}

.home-blessing p {
  max-width: 980px;
  margin: 0 auto;
  color: #f9d77b;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.65;
  text-align: center;
  text-shadow: 0 1px 0 rgba(69, 18, 0, 0.42);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 22px clamp(16px, 5vw, 58px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  letter-spacing: 0;
}

.use-page {
  padding-top: 1px;
}

.use-intro {
  max-width: 920px;
  margin: 44px clamp(16px, 6vw, 84px) 0;
}

.use-intro h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.use-intro p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.use-flow {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1fr);
  gap: 22px;
  padding: 28px clamp(16px, 6vw, 84px);
}

.use-flow.report-mode {
  grid-template-columns: minmax(0, 1fr);
}

.use-flow.report-mode .form-panel {
  display: none;
}

.use-flow.report-mode .report-panel {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.form-panel,
.report-panel {
  padding: clamp(19px, 3vw, 34px);
}

.form-panel {
  display: grid;
  gap: 17px;
}

.form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.form-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-toolbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.form-toolbar button:hover {
  border-color: rgba(16, 24, 32, 0.32);
  background: #f6f8fb;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 78px;
  resize: vertical;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

textarea::-webkit-scrollbar {
  display: none;
}

.wide textarea {
  min-height: 118px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.segmented legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.segmented label,
.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.segmented input,
.consent input {
  width: auto;
}

.consent {
  align-items: flex-start;
  line-height: 1.65;
}

.form-warning {
  margin: -4px 0 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 320px;
  align-content: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.report {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.loading-dots::after {
  display: inline-block;
  width: 1.4em;
  margin-left: 2px;
  content: "";
  text-align: left;
  animation: loading-dots 1.2s steps(4, end) infinite;
}

.generation-status {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(49, 91, 220, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(49, 91, 220, 0.08), rgba(255, 255, 255, 0.95) 54%),
    #fff;
}

.generation-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

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

.generation-orbit {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(49, 91, 220, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    conic-gradient(from 0deg, var(--blue), var(--gold), var(--green), rgba(49, 91, 220, 0.16), var(--blue));
  box-shadow: 0 0 0 7px rgba(49, 91, 220, 0.07);
  animation: orbit-rotate 0.9s linear infinite;
  will-change: transform;
}

.generation-orbit::before {
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(49, 91, 220, 0.14);
  border-right-color: var(--blue);
  border-bottom-color: var(--gold);
  border-radius: 50%;
  content: "";
  animation: orbit-rotate 0.65s linear infinite reverse;
}

.generation-orbit::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(49, 91, 220, 0.65);
  content: "";
  transform: translateX(-50%);
}

.generation-orbit span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.generation-orbit span:nth-child(1) {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.generation-orbit span:nth-child(2) {
  right: 4px;
  bottom: 9px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(184, 150, 87, 0.12);
}

.generation-orbit span:nth-child(3) {
  bottom: 9px;
  left: 4px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(16, 24, 32, 0.08);
}

.generation-progress {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.08);
}

.generation-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--green));
  animation: progress-scan 1.65s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.agent-steps {
  display: grid;
  gap: 12px;
}

.agent-steps div {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 3px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agent-steps div::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(49, 91, 220, 0.08) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-80%);
}

.is-generating-report .agent-steps .step-active {
  animation: step-focus 5.6s ease-in-out infinite;
}

.is-generating-report .agent-steps .step-active::after {
  animation: step-sheen 5.6s ease-in-out infinite;
}

.is-generating-report .agent-steps .step-two,
.is-generating-report .agent-steps .step-two::after {
  animation-delay: 1.4s;
}

.is-generating-report .agent-steps .step-three,
.is-generating-report .agent-steps .step-three::after {
  animation-delay: 2.8s;
}

.is-generating-report .agent-steps .step-four,
.is-generating-report .agent-steps .step-four::after {
  animation-delay: 4.2s;
}

.agent-steps span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.is-generating-report .agent-steps .step-active span {
  animation: step-badge 5.6s ease-in-out infinite;
}

.is-generating-report .agent-steps .step-two span {
  animation-delay: 1.4s;
}

.is-generating-report .agent-steps .step-three span {
  animation-delay: 2.8s;
}

.is-generating-report .agent-steps .step-four span {
  animation-delay: 4.2s;
}

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

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.agent-report {
  padding: 4px 0 0;
}

.agent-report h3,
.report-block h3,
.evidence-box h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.agent-report h4 {
  margin: 18px 0 8px;
  color: var(--green);
  font-size: 17px;
}

.agent-report p,
.report-block p,
.evidence-box p,
.agent-report li,
.report-block li,
.evidence-box li {
  line-height: 1.9;
}

.agent-report ul,
.agent-report ol,
.report-block ul,
.evidence-box ul {
  margin: 0;
  padding-left: 22px;
}

.markdown-table-wrap {
  width: 100%;
  margin: 14px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.markdown-table-wrap::-webkit-scrollbar {
  display: none;
}

.markdown-table-wrap table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

.markdown-table-wrap th,
.markdown-table-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.markdown-table-wrap th {
  color: var(--ink);
  background: #f6f8fb;
  font-weight: 900;
  white-space: nowrap;
}

.markdown-table-wrap td {
  color: #1f252c;
}

.evidence-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.evidence-box summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.chat-panel {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.chat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chat-head p {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.chat-head h3 {
  margin: 0;
  font-size: 24px;
}

.chat-head span {
  color: var(--muted);
  font-size: 12px;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-bubble {
  display: grid;
  gap: 6px;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.7;
}

.chat-bubble span {
  font-size: 12px;
  font-weight: 900;
}

.chat-content {
  display: grid;
  gap: 8px;
}

.chat-content p {
  margin: 0;
}

.chat-content h3,
.chat-content h4 {
  margin: 8px 0 2px;
  font-size: 17px;
  line-height: 1.45;
}

.chat-content h4 {
  color: var(--green);
  font-size: 15px;
}

.chat-content ul,
.chat-content ol {
  margin: 0;
  padding-left: 20px;
}

.chat-content li {
  margin: 4px 0;
}

.chat-content hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.chat-bubble.assistant {
  justify-self: start;
  background: #f4f7fb;
}

.chat-bubble.user {
  justify-self: end;
  color: #fff;
  background: var(--green);
}

.chat-bubble.user .chat-content {
  color: #fff;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 12px;
}

.chat-form textarea {
  min-height: 54px;
  max-height: 160px;
}

.chat-form .ghost-send {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.notice-band {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 10px clamp(16px, 6vw, 84px) 70px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.notice-band strong {
  color: var(--red);
  white-space: nowrap;
}

.usage-page {
  padding: 42px clamp(16px, 6vw, 84px) 70px;
}

.usage-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.usage-login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.usage-login-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.usage-login-card h1 {
  margin: -4px 0 4px;
  font-size: 30px;
}

.usage-head {
  max-width: 880px;
}

.usage-head h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.usage-head p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.usage-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 18px;
}

.usage-summary div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.usage-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.usage-summary strong {
  font-size: 30px;
}

.usage-panel {
  padding: 22px;
}

.usage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.usage-panel-actions {
  display: flex;
  gap: 10px;
}

.usage-panel-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
}

.usage-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.usage-controls label {
  width: min(260px, 100%);
}

.usage-controls select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 36px 8px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.usage-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.usage-table-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.usage-table-wrap::-webkit-scrollbar {
  display: none;
}

.usage-table-wrap table {
  min-width: 920px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.usage-table-wrap th,
.usage-table-wrap td {
  border-top: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.usage-table-wrap th {
  color: var(--muted);
  background: #f6f8fb;
  font-weight: 900;
}

.usage-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.usage-pagination button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
}

.usage-panel-actions button:hover,
.usage-pagination button:hover,
.usage-controls select:hover {
  border-color: rgba(16, 24, 32, 0.32);
  background-color: #f6f8fb;
}

.usage-panel-actions button:disabled,
.usage-pagination button:disabled {
  color: var(--muted);
  background: #f6f8fb;
  cursor: not-allowed;
}

.danger {
  border-color: var(--red) !important;
  color: var(--red) !important;
}

.hidden {
  display: none !important;
}

@keyframes button-sheen {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes loading-dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

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

@keyframes progress-scan {
  0% {
    transform: translateX(-105%);
  }

  55% {
    transform: translateX(105%);
  }

  100% {
    transform: translateX(105%);
  }
}

@keyframes step-focus {
  0%,
  22% {
    border-color: rgba(49, 91, 220, 0.42);
    background: #f7f9ff;
    box-shadow: 0 12px 34px rgba(49, 91, 220, 0.1);
    transform: translateY(-1px);
  }

  32%,
  100% {
    border-color: var(--line);
    background: #fff;
    box-shadow: none;
    transform: translateY(0);
  }
}

@keyframes step-sheen {
  0% {
    opacity: 0;
    transform: translateX(-80%);
  }

  8% {
    opacity: 1;
  }

  24% {
    opacity: 0;
    transform: translateX(90%);
  }

  100% {
    opacity: 0;
    transform: translateX(90%);
  }
}

@keyframes step-badge {
  0%,
  22% {
    background: var(--blue);
    box-shadow: 0 0 0 8px rgba(49, 91, 220, 0.13);
    transform: scale(1.04);
  }

  32%,
  100% {
    background: var(--blue);
    box-shadow: none;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .submit-button.is-loading::after,
  .loading-dots::after,
  .is-generating-report .agent-steps .step-active,
  .is-generating-report .agent-steps .step-active::after,
  .is-generating-report .agent-steps .step-active span {
    animation: none;
  }
}

@media (max-width: 980px) {
  .landing,
  .use-flow {
    grid-template-columns: 1fr;
  }

  .landing {
    min-height: auto;
  }

  .landing-only {
    padding-block: 46px;
  }

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

  .usage-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    background-size: 24px 24px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0 12px;
    padding: 10px 14px;
  }

  .brand-logo-box {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .topnav {
    display: none;
    flex: 1 0 100%;
    gap: 8px;
    margin: 10px 0 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(16, 24, 32, 0.12);
  }

  .nav-open .topnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .topnav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .landing,
  .use-flow {
    padding-inline: 14px;
  }

  .landing {
    padding-top: 28px;
  }

  .landing-only {
    margin: 0 0 28px;
    padding: 26px 18px 20px;
  }

  .landing-only h1 {
    margin-top: 22px;
  }

  .landing-only .eyebrow {
    max-width: 100%;
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.14;
  }

  h2 {
    font-size: 25px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions,
  .report-actions {
    display: grid;
  }

  .primary-action,
  .ghost-action,
  .submit-button,
  .report-actions button,
  .chat-form button {
    width: 100%;
    text-align: center;
  }

  .landing-board {
    padding: 12px;
  }

  .poster-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .poster-stats span:nth-child(2) {
    border-right: 0;
  }

  .poster-stats span {
    min-height: 70px;
  }

  .evidence-strip,
  .form-grid,
  .segmented {
    grid-template-columns: 1fr;
  }

  .feature-band,
  .notice-band {
    margin-inline: 14px;
  }

  .home-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-inline: 14px;
  }

  .form-panel,
  .report-panel {
    padding: 18px;
  }

  .chat-head,
  .notice-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .usage-page {
    padding-inline: 14px;
  }

  .usage-summary {
    grid-template-columns: 1fr;
  }

  .usage-panel {
    padding: 16px;
  }

  .usage-panel-head,
  .usage-controls,
  .usage-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-panel-actions,
  .usage-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .usage-controls label {
    width: 100%;
  }

  .usage-controls span {
    white-space: normal;
  }
}
