:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.76);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d6d6dc;
  --line-soft: #ececf1;
  --accent: #0071e3;
  --accent-strong: #0056b3;
  --accent-soft: #edf6ff;
  --indigo: #5856d6;
  --mint: #00a886;
  --rose: #d70015;
  --coral: #bf4800;
  --gold: #936d00;
  --blue: #0071e3;
  --paper: #fbfbfd;
  --paper-warm: #fff8eb;
  --text-soft: #424245;
  --success: #147a3d;
  --warning-bg: #fff7ed;
  --warning-line: #f0d5bd;
  --shadow: 0 30px 90px rgba(20, 27, 39, 0.16);
  --shadow-soft: 0 18px 44px rgba(20, 27, 39, 0.09);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 24px 70px rgba(29, 29, 31, 0.11);
  --shadow-hairline: 0 1px 2px rgba(0, 0, 0, 0.035);
  --control-bg: #f5f5f7;
  --control-bg-strong: #eeeeef;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(135deg, #fafafc 0%, #eef1f6 46%, #f8f8fb 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shell {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 16px 18px 18px;
}

.product-toolbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(20, 27, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(30px);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.toolbar-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #303136 0%, #101114 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 780;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

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

.toolbar-brand strong {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 740;
}

.toolbar-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.toolbar-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.toolbar-status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 620;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toolbar-status span::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--mint);
  content: "";
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 370px) minmax(600px, 1fr) 258px;
  gap: 14px;
  min-height: calc(100vh - 94px);
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel-glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  backdrop-filter: saturate(180%) blur(28px);
}

.panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(0, 0, 0, 0.035);
  content: "";
}

.input-panel,
.results-panel,
.metrics-panel {
  padding: 20px;
}

.input-panel,
.metrics-panel {
  align-self: start;
  position: sticky;
  top: 86px;
}

.window-chrome {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.window-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.window-chrome span:nth-child(1) {
  background: #ff5f57;
}

.window-chrome span:nth-child(2) {
  background: #ffbd2e;
}

.window-chrome span:nth-child(3) {
  background: #28c840;
}

.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2f3035 0%, #121317 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 740;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 740;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.signal-board div {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 247, 250, 0.72));
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 22px rgba(20, 27, 39, 0.06);
}

.signal-board div::after {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.72), rgba(0, 113, 227, 0.08));
  content: "";
}

.signal-board div:nth-child(2)::after {
  background: linear-gradient(90deg, rgba(0, 168, 134, 0.7), rgba(0, 168, 134, 0.08));
}

.signal-board div:nth-child(3)::after {
  background: linear-gradient(90deg, rgba(88, 86, 214, 0.7), rgba(88, 86, 214, 0.08));
}

.signal-board span,
.signal-board strong {
  position: relative;
  z-index: 1;
  display: block;
}

.signal-board span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
}

.signal-board strong {
  margin-top: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
}

h4 {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 680;
}

.form {
  display: grid;
  gap: 12px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  justify-self: start;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.052);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.055);
}

.lang-button {
  min-width: 58px;
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.lang-button.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: rgba(0, 0, 0, 0.052);
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.055);
}

.mode-button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.mode-button.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.drop-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.smart-hint {
  display: inline-flex;
  max-width: 100%;
  width: fit-content;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 9px;
  background: rgba(237, 246, 255, 0.9);
  color: var(--accent-strong);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.35;
  white-space: normal;
}

.smart-hint.is-muted {
  border-color: rgba(0, 0, 0, 0.04);
  background: rgba(245, 245, 247, 0.8);
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025), 0 1px 0 rgba(255, 255, 255, 0.68);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14), 0 8px 20px rgba(0, 113, 227, 0.08);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dropzone {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 156px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 247, 251, 0.68));
  text-align: center;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(20, 27, 39, 0.055);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.dropzone::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 113, 227, 0.08);
  border-radius: 14px;
  pointer-events: none;
  content: "";
}

.dropzone::after {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.24), rgba(0, 113, 227, 0));
  pointer-events: none;
  content: "";
}

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

.dropzone:hover {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.dropzone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f3035, #17181c);
  color: white;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.drop-note,
.privacy,
.api-status,
.report-source,
.empty-state p,
.example-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.privacy {
  margin: 0;
}

.api-status,
.report-source {
  margin: 0;
}

.api-status.ready {
  color: var(--success);
  font-weight: 600;
}

.api-status.fallback {
  color: var(--coral);
  font-weight: 600;
}

.preview {
  display: grid;
  gap: 10px;
}

.preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-hairline);
}

.primary-button,
.secondary-button,
.ghost-button,
.copy-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  font-weight: 650;
  letter-spacing: 0;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.copy-button:active {
  transform: scale(0.985);
}

.primary-button {
  min-height: 44px;
  background: linear-gradient(180deg, #1688ff 0%, #006edb 100%);
  color: white;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.primary-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.22) 45%, transparent 58% 100%);
  opacity: 0.78;
  transform: translateX(-120%);
  transition: transform 0.38s ease;
  content: "";
}

.primary-button:hover::after {
  transform: translateX(120%);
}

.primary-button span,
.primary-button.compact,
.secondary-button,
.ghost-button,
.copy-button {
  isolation: isolate;
}

.primary-button:hover {
  background: linear-gradient(180deg, #057dff 0%, #005fc1 100%);
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.primary-button.compact,
.secondary-button {
  min-height: 40px;
}

.secondary-button {
  background: linear-gradient(180deg, #2c2d31 0%, #141519 100%);
  color: #ffffff;
  padding: 0 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ghost-button,
.copy-button {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.055), 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ghost-button:hover,
.copy-button:hover {
  background: rgba(255, 255, 255, 0.94);
}

.copy-button {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.results-panel {
  min-width: 0;
}

.results-panel::after {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.24), rgba(0, 168, 134, 0.2), rgba(0, 113, 227, 0));
  pointer-events: none;
  content: "";
}

.report-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-meta-strip span {
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.3;
}

.results-top,
.section-heading,
.copy-card-head,
.metrics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.results-top {
  position: relative;
  z-index: 1;
  margin: -2px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 248, 251, 0.6));
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(20, 27, 39, 0.055);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 540px;
  text-align: center;
}

.empty-state p {
  max-width: 360px;
}

.empty-visual {
  width: min(360px, 80%);
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
}

.empty-visual span {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1f2f5, #e4e6eb);
}

.empty-visual span:nth-child(1) {
  width: 70%;
  background: linear-gradient(180deg, #ddecff, #cbdfff);
}

.empty-visual span:nth-child(2) {
  width: 100%;
}

.empty-visual span:nth-child(3) {
  width: 84%;
  background: linear-gradient(180deg, #ffffff, #eceef3);
}

.empty-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.empty-badges span {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 560;
}

.loading-state {
  min-height: 540px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e8ed;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

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

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 16px;
  align-items: stretch;
}

.report-hero-copy {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 251, 253, 0.88)),
    linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(0, 168, 134, 0));
  padding: 22px;
  box-shadow: 0 18px 52px rgba(20, 27, 39, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.report-value-strip span {
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.8);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 560;
}

.score-row {
  display: grid;
  gap: 10px;
}

.score-card,
.mini-scores,
.report-section,
.upgrade-box,
.copy-card,
.example-card,
.verdict-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.score-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(160deg, #ffffff 0%, #eef6ff 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(0, 113, 227, 0.08));
  min-height: 170px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.score-card::after {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.78), rgba(0, 168, 134, 0.56), rgba(88, 86, 214, 0.2));
  content: "";
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.score-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 7px;
  font-size: 68px;
  font-weight: 800;
  line-height: 0.95;
}

.score-card span:last-child {
  color: var(--muted);
  font-weight: 600;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.preview-card {
  min-height: 136px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 22px rgba(20, 27, 39, 0.045);
}

.preview-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.preview-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.preview-card.accent {
  border-color: rgba(0, 113, 227, 0.16);
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.preview-card.accent p {
  color: var(--ink);
  font-weight: 560;
}

.mini-scores {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mini-scores div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border-left: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
  padding: 0 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
}

.mini-scores div:first-child {
  border-top: 0;
}

.mini-scores span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.mini-scores strong {
  font-size: 24px;
  font-weight: 680;
}

.report-section,
.copy-card {
  padding: 18px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.copy-card,
.report-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 252, 0.78));
}

.verdict-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.92));
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.verdict-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 760;
}

.verdict-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.verdict-priority {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 104px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fbff, #eef6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.verdict-priority span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.verdict-priority strong {
  color: var(--accent-strong);
  font-size: 38px;
  font-weight: 780;
}

.domestic-report {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 52%);
  padding: 20px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.domestic-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.domestic-score,
.domestic-list-block,
.wechat-copy {
  border: 1px solid rgba(0, 113, 227, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.domestic-score {
  display: grid;
  align-content: start;
  gap: 8px;
}

.domestic-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.domestic-score strong {
  color: var(--accent);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.domestic-score p,
.wechat-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.domestic-list-block h5,
.wechat-copy h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.domestic-list-block .plain-list li {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.08);
}

.insight {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-top: 14px;
}

.primary-insight p {
  color: var(--ink);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.55;
}

.insight-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.insight p {
  margin-bottom: 0;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.88);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge.dark {
  background: linear-gradient(180deg, #2c2d31, #15161a);
  color: white;
}

.upgrade-box,
.cn-pay-box,
.share-box {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, rgba(88, 86, 214, 0.07), rgba(0, 168, 134, 0.02));
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.upgrade-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.upgrade-copy {
  display: grid;
  gap: 10px;
  max-width: 620px;
}

.upgrade-copy h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 760;
}

.report-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.09);
  color: var(--accent-strong);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}

.deliverables-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-left: 0;
  list-style: none;
}

.deliverables-list li {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.deliverables-list li::before {
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #30d158, #248a3d);
  box-shadow: inset 0 0 0 2px #ffffff;
  content: "";
}

.upgrade-action-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 280px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 247, 249, 0.88), rgba(239, 241, 246, 0.72));
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.upgrade-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.share-box {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.share-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-all;
}

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

.cn-pay-box {
  flex-wrap: wrap;
  border: 1px solid rgba(191, 72, 0, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf3, #fff7ed);
}

.cn-pay-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cn-pay-box img {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: white;
  object-fit: contain;
  box-shadow: var(--shadow-hairline);
}

.order-id {
  margin-top: 8px;
  color: var(--ink) !important;
  font-weight: 600;
  word-break: break-all;
}

.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.proof-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  flex: 1 1 360px;
}

.payment-status {
  margin-top: 8px;
  color: var(--coral) !important;
  font-weight: 600;
}

.price-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.paid-report.locked {
  position: relative;
  overflow: hidden;
  max-height: 780px;
}

.paid-report.locked > :not(.section-heading):not(.report-depth-nav):not(.locked-cover) {
  opacity: 0.2;
  filter: blur(1.8px);
  pointer-events: none;
  user-select: none;
}

.locked-cover {
  position: absolute;
  left: 50%;
  top: 360px;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: min(440px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 252, 0.82));
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  transform: translate(-50%, -50%);
}

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

.locked-cover span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.paid-report:not(.locked) .locked-cover {
  display: none;
}

.paid-report:not(.locked) {
  max-height: none;
}

.report-depth-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.report-depth-nav span {
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compact-section {
  min-height: 220px;
}

ol,
ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.copy-text {
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  line-height: 1.55;
}

.copy-text p {
  margin: 0;
}

.plain-list {
  list-style: none;
  padding-left: 0;
  counter-reset: report-list;
}

.plain-list li {
  position: relative;
  margin-bottom: 8px;
  padding: 11px 12px 11px 40px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.055);
  color: var(--text-soft);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.plain-list li::before {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  counter-increment: report-list;
  content: counter(report-list, decimal-leading-zero);
}

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

.prescription-item,
.diagnostic-item,
.blueprint-item,
.experiment-item {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
  padding: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.prescription-item {
  grid-template-columns: 140px 1fr;
  align-items: start;
}

.prescription-item strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.prescription-item p {
  margin-bottom: 0;
  line-height: 1.48;
}

.diagnostic-list,
.blueprint-list,
.experiment-list {
  display: grid;
  gap: 10px;
}

.diagnostic-item {
  grid-template-columns: 1fr;
}

.diagnostic-item strong,
.blueprint-item strong,
.experiment-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
}

.diagnostic-item p,
.blueprint-item p,
.experiment-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.diagnostic-item span,
.experiment-item span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(237, 246, 255, 0.95);
  color: var(--accent);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
}

.blueprint-item {
  grid-template-columns: 42px 1fr;
  align-items: start;
}

.blueprint-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2c2d31, #15161a);
  color: white;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.metric-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.metric-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.metric-list strong {
  font-size: 24px;
  font-weight: 740;
}

.example-card {
  padding: 16px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.example-card h3 {
  margin-top: 12px;
}

.side-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.side-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.legal-copy {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.legal-copy h2,
.legal-copy p {
  margin-bottom: 0;
}

.admin-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
}

.admin-top,
.admin-order-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
  padding: 18px;
}

.admin-login .primary-button {
  min-width: 132px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.admin-summary div,
.admin-empty {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.admin-summary.has-pending div:first-child {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  box-shadow: 0 0 0 4px rgba(191, 72, 0, 0.07), var(--shadow-soft);
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.admin-orders {
  display: grid;
  gap: 14px;
}

.admin-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  padding: 17px;
  box-shadow: var(--shadow-soft);
}

.admin-order.needs-review {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.admin-order h2 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 680;
}

.admin-order p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-order a {
  color: var(--accent);
  font-weight: 600;
}

.admin-ai-error {
  max-width: 520px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-proof img,
.admin-proof-placeholder {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: var(--shadow-hairline);
}

.admin-proof-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 48px));
  border-radius: 16px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  color: white;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .input-panel {
    top: 86px;
  }

  .metrics-panel {
    grid-column: 1 / -1;
    position: static;
  }

  .metric-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 10px;
  }

  .product-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    border-radius: 18px;
  }

  .toolbar-status {
    justify-content: flex-start;
  }

  .toolbar-status span {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .workspace,
  .report-hero,
  .score-row,
  .report-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .input-panel,
  .metrics-panel {
    position: static;
  }

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

  .input-panel,
  .results-panel,
  .metrics-panel {
    padding: 16px;
  }

  .mini-scores {
    grid-template-columns: 1fr;
  }

  .mini-scores div {
    min-height: 64px;
  }

  .mini-scores div:first-child {
    border-top: 0;
  }

  .upgrade-box,
  .cn-pay-box,
  .share-box,
  .results-top,
  .section-heading,
  .copy-card-head,
  .metrics-head {
    align-items: stretch;
    flex-direction: column;
  }

  .report-depth-nav {
    grid-template-columns: 1fr 1fr;
  }

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

  .locked-cover {
    top: 330px;
  }

  .price-actions,
  .metric-list,
  .proof-fields,
  .admin-login,
  .admin-summary,
  .admin-order {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-top,
  .admin-top-actions,
  .admin-order-main {
    flex-direction: column;
  }

  .admin-order-actions {
    justify-content: stretch;
  }

  .admin-order-actions button,
  .admin-proof img,
  .admin-proof-placeholder {
    width: 100%;
  }

  .prescription-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 23px;
  }

  h2 {
    font-size: 22px;
  }
}
