/* SINORATE — local fixture presentation. No remote fonts or APIs. */
@font-face {
  font-family: Rey;
  src: url("./assets/fonts/rey-extra-black.ttf") format("truetype");
  font-weight: 800 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: IRANSans;
  src: url("./assets/fonts/iransans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: IRANSans;
  src: url("./assets/fonts/iransans-bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Parastoo;
  src: url("./assets/fonts/parastoo-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Parastoo;
  src: url("./assets/fonts/parastoo-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Parastoo;
  src: url("./assets/fonts/parastoo-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Parastoo;
  src: url("./assets/fonts/parastoo-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
/* One file per real weight. The previous single face was Inter Medium -- one
   static 500 -- declared as the range `400 700`, so with `font-synthesis: none`
   every weight from body to heading resolved to the same Medium: nothing was
   truly normal and nothing was truly bold. That file was also a 230-glyph
   subset without U+0130, U+011E, U+011F, U+015E or U+015F, so Turkish I-dot,
   G-breve and S-cedilla fell out to a fallback face. On screen that is nearly
   invisible; in the PDF it splits the text into two fonts and every extraction
   comes back as "de g i s ti". Each face below states the weight its file
   actually carries, and all three cover Latin Extended-A. */
@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

.signal-lab,
.signal {
  --sr-midnight: #04111f;
  --sr-midnight-2: #07182b;
  --sr-midnight-3: #0c2239;
  --sr-paper: #fbf8f2;
  --sr-ivory: #f7f2e8;
  --sr-ink: #091c31;
  --sr-ink-soft: #314155;
  --sr-muted: #65707b;
  --sr-gold: #c9a961;
  --sr-gold-brand: #b78e3e;
  --sr-gold-mid: #d8bd7a;
  --sr-gold-pale: #e6d09a;
  --sr-gold-light: #f0cc7a;
  --sr-gold-dark: #b8892f;
  --sr-gold-cta: #e4bc62;
  --sr-line: rgb(181 142 79 / 16%);
  --sr-line-strong: rgb(181 142 79 / 28%);
  --sig-paper: var(--sr-ivory);
  --sig-paper-2: #efe6d6;
  --sig-ink: var(--sr-ink);
  --sig-ink-soft: var(--sr-ink-soft);
  --sig-muted: var(--sr-muted);
  --sig-gold: var(--sr-gold);
  --sig-gold-deep: #8c6e2c;
  --sig-line: rgb(9 28 49 / 14%);
  --sig-line-strong: rgb(9 28 49 / 28%);
  --sig-ok: #1b5c45;
  --sig-ok-soft: rgb(27 92 69 / 12%);
  --sig-warn: #8a5314;
  --sig-warn-soft: rgb(138 83 20 / 12%);
  --sig-alert: #8f2d2d;
  --sig-alert-soft: rgb(143 45 45 / 10%);
  --sig-focus: #775615;
  --sig-radius: 18px;
  --sig-radius-sm: 10px;
  --sig-type-body: 15px;
  --sig-type-small: 13px;
  --sig-sans: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --sig-fa: IRANSans, Tahoma, sans-serif;
  --sig-fa-display: Rey, IRANSans, Tahoma, sans-serif;
  --sig-fa-long: IRANSans, Tahoma, sans-serif;
  --sig-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sig-ease: 180ms ease;
  font-synthesis: none;
}

.signal-lab *,
.signal-lab *::before,
.signal-lab *::after,
.signal *,
.signal *::before,
.signal *::after { box-sizing: border-box; }
.signal-lab [hidden],
.signal [hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  max-width: 1px;
  max-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Page-level rules belong to the page, not to a section stylesheet the theme
   loads on its homepage. Declaring overflow on both html and body made body its
   own scroll box: the wheel moved it a few pixels, End did nothing, and the page
   itself never scrolled. Only the standalone lab page opts in, on body alone. */
body.signal-lab { overflow-x: hidden; }
.signal-lab {
  margin: 0;
  min-height: 100svh;
  height: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(42rem 18rem at 12% 0%, rgb(201 169 97 / 10%), transparent 55%),
    radial-gradient(36rem 16rem at 92% 18%, rgb(201 169 97 / 8%), transparent 50%),
    var(--sr-midnight);
  color: var(--sr-paper);
  font-family: var(--sig-sans);
  font-synthesis: none;
}
html[lang="fa"] .signal-lab,
.signal[lang="fa"] { font-family: var(--sig-fa); }

.signal-lab-badge {
  position: fixed;
  z-index: 30;
  top: auto;
  bottom: 12px;
  left: 12px;
  inset-inline-start: auto;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgb(230 208 154 / 35%);
  border-radius: 999px;
  background: rgb(4 17 31 / 72%);
  color: var(--sr-gold-pale);
  font: 600 10px/1.2 var(--sig-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.sinorate-site-header {
  position: relative;
  z-index: 5;
  flex: none;
  min-height: 58px;
  overflow: hidden;
  background: rgb(4 17 31 / 92%);
  border-block-end: 1px solid rgb(201 169 97 / 55%);
  box-shadow: 0 1px 0 rgb(230 208 154 / 18%);
}
.sinorate-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  min-height: 58px;
  width: min(calc(100% - 3vw), 1360px);
  margin-inline: auto;
  padding-inline: 4px;
}
.sinorate-logo-link { flex: none; display: block; }
.sinorate-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
}
.sinorate-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  flex: 1;
  min-width: 0;
}
.sinorate-nav a {
  color: #f4eadc;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  padding-block: 8px;
}
.sinorate-nav a:hover { color: var(--sr-gold-pale); }
.sinorate-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.sinorate-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(7 24 43 / 80%);
}
.sinorate-lang a,
.sinorate-globe {
  color: #d9d0c4;
  text-decoration: none;
  font: 700 11px/1 var(--sig-sans);
  letter-spacing: .06em;
  padding: 7px 10px;
  border-radius: 999px;
}
.sinorate-lang a[aria-current="page"] {
  color: var(--sr-ink);
  background: linear-gradient(180deg, var(--sr-gold-light), var(--sr-gold-dark));
}
.sinorate-globe { display: inline-flex; padding-inline-end: 0; color: var(--sr-gold-pale); }
.sinorate-login,
.sinorate-chat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  color: #f4eadc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: rgb(12 34 57 / 80%);
}
.sinorate-chat { width: 38px; justify-content: center; padding: 0; }
.sinorate-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--sr-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--sr-gold-light), var(--sr-gold-dark));
  border: 1px solid #eab568;
}
[dir="rtl"] .sinorate-arrow { transform: scaleX(-1); }

.sinorate-decoration {
  position: absolute;
  inset: 58px 0 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sinorate-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}

.signal {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--sr-paper);
  background: transparent;
  border: 0;
  isolation: isolate;
  font-size: var(--sig-type-body);
  line-height: 1.5;
  overflow: visible;
}
.signal[lang="fa"] { font-family: var(--sig-fa); }

.sinorate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "intro" "well";
  gap: 10px;
  width: min(calc(100% - 24px), 1360px);
  height: auto;
  min-height: 0;
  margin-inline: auto;
  padding-block: 8px 10px;
}
[lang="fa"] .sinorate-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "well";
}
.sinorate-intro { grid-area: intro; min-width: 0; padding: 0; }
.sinorate-well {
  grid-area: well;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}
#signal-app {
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
[lang="fa"] :is(.sinorate-intro, .sinorate-well) { direction: rtl; }
[lang="tr"] :is(.sinorate-intro, .sinorate-well) { direction: ltr; }

[lang="fa"] .sinorate-well {
  padding: 6px;
  border-radius: 22px;
  background: rgb(201 169 97 / 11%);
  box-shadow:
    0 0 0 1px rgb(230 208 154 / 22%),
    0 0 28px rgb(201 169 97 / 14%);
}

.signal-eyebrow {
  grid-area: eye;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  color: var(--sr-gold);
  letter-spacing: .22em;
  font: 700 11px/1.3 var(--sig-sans);
  text-transform: uppercase;
  direction: ltr;
}
.signal-eyebrow::after,
.signal-eyebrow::before {
  content: "";
  height: 1px;
  width: 42px;
  background: linear-gradient(90deg, var(--sr-gold), transparent);
  opacity: .7;
}
[dir="rtl"] .signal-eyebrow::before { background: linear-gradient(90deg, transparent, var(--sr-gold)); }
[dir="rtl"] .signal-eyebrow::after { background: linear-gradient(90deg, var(--sr-gold), transparent); }
[dir="ltr"] .signal-eyebrow::before { width: 10px; height: 10px; border-radius: 50%; background: var(--sr-gold); }
[dir="ltr"] .signal-eyebrow::after {
  flex: 1;
  max-width: 88px;
  background: linear-gradient(90deg, var(--sr-gold), transparent);
}

.sinorate-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  grid-template-areas:
    "eye steps"
    "title benefits"
    "lede benefits";
  gap: 2px 28px;
  align-items: center;
}
.sinorate-intro h2 { grid-area: title; }
.sinorate-intro .signal-lede { grid-area: lede; }
.sinorate-intro .sinorate-benefits { grid-area: benefits; }
.sinorate-intro .sinorate-steps { grid-area: steps; }

.signal h2 {
  margin: 0 0 6px;
  max-width: none;
  color: #f7f2e8;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: pretty;
  user-select: text;
}
.signal[lang="fa"] h2 {
  font-family: var(--sig-fa-display);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  word-spacing: .12em;
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  max-width: none;
}
.signal h2 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--sr-gold-light);
}
@media (min-width: 900px) {
  .signal[lang="tr"] .sinorate-intro h2 { white-space: nowrap; }
}
.signal h3 {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 14px;
}
.signal h4 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
}
.signal p { margin: 8px 0 14px; overflow-wrap: anywhere; }
.signal-lede {
  margin: 0;
  max-width: 42rem;
  color: #d8d0c4;
  font-size: clamp(.9rem, 1vw, 1.05rem);
  line-height: 1.5;
}
.signal[lang="fa"] .signal-lede,
.signal[lang="fa"] .sinorate-benefits span span {
  font-family: var(--sig-fa-long);
  font-weight: 500;
}
.signal-demo-note {
  /* The sample accent: at least 5.2:1 on every light report ground (pale gold was 1.4:1). */
  color: #805719;
  font-size: 12px;
  margin: 18px 0 0;
}
.signal-muted { color: var(--sr-muted); font-size: var(--sig-type-small); }
/* What the score was read from. Bordered rather than tinted so it survives a
   print with background graphics off, which is the browser default. */
.signal-v4-basis {
  margin: 14px 0 0;
  padding: 8px 12px;
  border-inline-start: 3px solid #805719;
  color: #4a3a1c;
  font-size: 13px;
  line-height: 1.55;
}

.sinorate-intro .signal-demo-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sinorate-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  direction: ltr;
}
.sinorate-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
}
[lang="fa"] .sinorate-benefits li {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
[lang="fa"] .sinorate-benefits strong,
[lang="fa"] .sinorate-benefits span span { text-align: right; }
.sinorate-benefit-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgb(201 169 97 / 70%);
  border-radius: 50%;
  color: var(--sr-gold-mid);
  flex: none;
  background: rgb(201 169 97 / 8%);
}
.sinorate-benefit-icon svg { width: 18px; height: 18px; }
.sinorate-benefits strong {
  display: block;
  color: #f4eadc;
  font-size: .95rem;
  margin-block-end: 0;
}
.sinorate-benefits span span {
  display: block;
  color: #b7b0a5;
  font-size: 12.5px;
  line-height: 1.35;
}

.sinorate-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  margin-block-start: 0;
}
.signal-path {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.signal-path li {
  overflow: hidden;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
  color: transparent;
  font-size: 0;
}
.signal-path li[aria-current="step"] {
  background: var(--sr-gold-light);
  box-shadow: 0 0 0 4px rgb(201 169 97 / 18%);
}
.signal-path li.is-done { background: rgb(230 208 154 / 55%); }
.sinorate-steps-caption {
  margin: 0;
  color: #c5bcae;
  font-size: 13px;
}

.sinorate-panel,
.signal-well {
  color: var(--sr-ink);
  background: var(--sr-paper);
  border: 1px solid #fff7e7;
  border-radius: 16px;
  padding: 10px 14px 12px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
  min-width: 0;
  min-height: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
#signal-app > p { color: var(--sr-ink); }
#signal-report:empty {
  display: none;
}
#signal-report {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.signal[data-has-report="true"] .sinorate-cta-row {
  max-height: none;
  overflow: visible;
  flex-wrap: wrap;
}
.signal[data-has-report="true"] .sinorate-upload {
  flex: 0 0 auto;
}

.sinorate-upload {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sinorate-plan-wrap {
  position: relative;
  order: -1;
  margin-block-end: 6px;
  flex: none;
}
.sinorate-input-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  order: -1;
  margin-block-end: 10px;
  flex: none;
}
.sinorate-input-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgb(181 142 79 / 22%);
  border-radius: 12px;
  background: #f3eee4;
  color: var(--sr-ink);
  font: 700 13.5px/1.2 inherit;
  cursor: pointer;
}
.signal[lang="fa"] .sinorate-input-mode,
.signal[lang="fa"] .sinorate-input-mode > span {
  font-family: var(--sig-fa-display);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}
.sinorate-input-mode-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--sr-gold-dark);
  flex: none;
}
.sinorate-input-mode-icon svg { width: 16px; height: 16px; }
.sinorate-input-mode[aria-selected="true"] {
  color: var(--sr-ink);
  background: linear-gradient(180deg, var(--sr-gold-light), var(--sr-gold-dark));
  border-color: #eab568;
  box-shadow: 0 8px 18px rgb(201 169 97 / 22%);
}
.sinorate-input-mode[aria-selected="true"] .sinorate-input-mode-icon { color: var(--sr-ink); }
.sinorate-script {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-block: 0 10px;
  padding: 16px 16px 14px;
  text-align: center;
  border: 1.5px dashed rgb(184 140 58 / 58%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgb(240 204 122 / 22%), transparent 58%),
    linear-gradient(180deg, #fffdf7, #f3e6c8 78%, #efe0bb);
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 28px rgb(201 169 97 / 12%);
  flex: none;
}
.sinorate-script-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sr-gold-dark);
  background: rgb(255 248 230 / 90%);
  box-shadow: 0 0 0 7px rgb(201 169 97 / 14%);
}
.sinorate-script-icon svg { width: 22px; height: 22px; }
.sinorate-script-title {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sr-ink);
}
.sinorate-script-hint {
  margin: 0;
  color: #7a6a4e;
  font-size: 13px;
  line-height: 1.4;
}
.sinorate-script textarea {
  width: 100%;
  min-height: 110px;
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgb(184 140 58 / 28%);
  border-radius: 12px;
  background: rgb(255 255 255 / 78%);
  color: var(--sr-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.sinorate-script textarea::placeholder { color: #9a8b72; }
[lang="fa"] .sinorate-script textarea { direction: rtl; }
[lang="tr"] .sinorate-script textarea { direction: ltr; }
.sinorate-plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sinorate-plan-tab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid rgb(181 142 79 / 18%);
  border-radius: 10px;
  background: #f3eee4;
  color: var(--sr-ink);
  font: inherit;
  cursor: pointer;
}
.sinorate-plan-tab span { display: inline-flex; align-items: center; gap: 6px; }
.sinorate-plan-tab strong { font-size: 14px; font-weight: 700; }
.sinorate-plan-tab small { color: var(--sr-muted); font-size: 11.5px; }
.sinorate-plan-tab[aria-selected="true"] {
  color: var(--sr-ink);
  background: linear-gradient(180deg, var(--sr-gold-light), var(--sr-gold-dark));
  border-color: #eab568;
  box-shadow: 0 8px 18px rgb(201 169 97 / 22%);
}
.sinorate-plan-tab[aria-selected="true"] small { color: rgb(9 28 49 / 72%); }
.sinorate-plan-tab .sinorate-lock-inline { width: 14px; height: 14px; opacity: .7; }
.sinorate-plan-tab[data-plan="pro"] { padding-inline: 8px; }
.sinorate-plan-tab[data-plan="pro"] span {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.sinorate-plan-tab[data-plan="pro"] strong {
  font-size: 12.5px;
  line-height: 1.3;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}
.signal-tier-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.02;
  inset-inline-start: 0;
  inset-block-start: 0;
  overflow: hidden;
}
/* Reveal the native select on focus WITHOUT returning it to the flow.
   `position: relative` here put a 44px-tall control back into the layout, so
   every button below it moved down on focus and back up on blur. Reaching for
   "start" or "sample" with the mouse pressed the button, blurred the select,
   collapsed it, and the target jumped 44px out from under the cursor -- the
   click then landed on whatever had moved into that spot. It stays absolutely
   positioned over its own slot, so it is visible and operable and nothing
   around it moves. `.sinorate-plan-wrap` is already the positioned ancestor. */
#signal-tier:focus,
#signal-tier:focus-visible {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  width: auto;
  height: 44px;
  opacity: 1;
  overflow: visible;
  outline: 3px solid #775615;
  outline-offset: 4px;
  border-radius: 10px;
  z-index: 2;
  background: var(--sr-paper);
  color: var(--sr-ink);
}

.signal-drop,
.sinorate-dropzone {
  position: relative;
  margin-block: 0 8px;
  min-height: 56px;
  display: grid;
  place-content: center;
  text-align: start;
  border: 1.5px dashed #d8b98d;
  border-radius: 12px;
  background: rgb(225 199 159 / 12%);
  padding: 6px 14px;
  flex: none;
}
.signal-drop-visual {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.sinorate-upload-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(201 169 97 / 14%);
  color: var(--sr-gold-dark);
  flex: none;
}
.sinorate-upload-icon svg { width: 18px; height: 18px; }
.signal-drop:hover,
.signal-drop:focus-within {
  border-color: var(--sr-gold-dark);
  background: rgb(225 199 159 / 18%);
}
.signal-drop-title {
  margin: 0;
  font-weight: 700;
  font-size: .98rem;
  color: var(--sr-ink);
}
#signal-file-help {
  margin: 0;
  font-size: 12px;
}
.signal-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  margin: 0;
}
.signal-drop-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.signal-filecard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 8px;
  min-width: 0;
  flex: none;
}
.signal-filecard-mark {
  width: 48px;
  height: 32px;
  flex: none;
  border: 1px solid var(--sig-line-strong);
  border-radius: 6px;
  background: var(--sig-paper-2);
}
.signal-filecard strong { display: block; overflow-wrap: anywhere; }
.signal-filecard p { margin: 0; }

.sinorate-criteria-head {
  display: none;
}
.sinorate-criteria-head h3 {
  margin: 0;
  font-size: .92rem;
}
.sinorate-criteria-head p {
  margin: 0;
  color: var(--sr-muted);
  font-size: 12px;
}

.sinorate-criteria-block {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sinorate-criteria,
.sinorate-advanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sinorate-criteria {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(44px, 1fr));
  align-content: stretch;
}
.sinorate-criterion {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 4px 8px;
  align-content: center;
  border: 1px solid rgb(181 142 79 / 16%);
  border-radius: 10px;
  padding: 6px 8px;
  background: #fcfaf5;
  text-align: start;
}
.sinorate-criterion-icon {
  width: 18px;
  height: 18px;
  color: var(--sr-gold-dark);
  display: grid;
  place-items: center;
}
.sinorate-criterion-icon svg { width: 16px; height: 16px; }
.sinorate-criterion-name {
  margin: 0;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sr-ink);
  /* Two lines of room on every card, so a one-line name does not ride high
     while the card beside it carries two (D-055). */
  min-block-size: 2.6em;
  display: flex;
  align-items: center;
}
.sinorate-score {
  inline-size: 34px;
  block-size: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #e5e0d7;
  border-radius: 50%;
  direction: ltr;
  font: 700 10px/1 var(--sig-sans);
  color: #b7b1a7;
  flex: none;
}
.sinorate-score.is-na { border-style: dotted; }
.sinorate-lock {
  position: static;
  width: 12px;
  height: 12px;
  color: #c5bcae;
  justify-self: end;
}
.sinorate-criteria .sinorate-lock { display: none; }
.sinorate-advanced {
  margin-block-start: 0;
  flex: 0 0 auto;
  grid-template-rows: auto repeat(2, minmax(32px, auto));
}
.sinorate-advanced-head {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sr-muted);
  font-size: 12px;
  font-weight: 700;
}
.sinorate-advanced .sinorate-criterion {
  min-height: 36px;
  place-content: center;
  background: #f3eee6;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.sinorate-upload[data-plan-preview="free"] .sinorate-advanced .sinorate-criterion {
  opacity: .62;
}
.sinorate-upload[data-plan-preview="free"] .sinorate-advanced .sinorate-score { display: none; }
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced .sinorate-criterion,
.sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-criterion {
  opacity: 1;
  color: var(--sr-ink);
  border-color: rgb(201 169 97 / 42%);
  background: linear-gradient(180deg, #fffaf1, #f4e6c4);
  box-shadow: 0 4px 14px rgb(201 169 97 / 10%);
  overflow: hidden;
}
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced .sinorate-criterion-icon,
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced .sinorate-criterion-name {
  color: var(--sr-ink);
}
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced .sinorate-lock { display: none; }
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced .sinorate-score {
  display: grid;
  border-color: rgb(184 140 58 / 40%);
  color: var(--sr-ink);
  background: rgb(255 255 255 / 62%);
}
.sinorate-upload[data-plan-preview="pro"] .sinorate-advanced-head {
  color: #9a7a3a;
}

.sinorate-cta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-block-start: auto;
  padding-block-start: 6px;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}
[lang="tr"] .sinorate-cta-row { flex-direction: row-reverse; }
.sinorate-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sr-muted);
  font-size: 12px;
  min-width: 0;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
}
.sinorate-privacy svg { color: var(--sr-gold-dark); flex: none; }

.signal-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
}
.signal-actions button:nth-child(2) {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--sr-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.signal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--sr-ink);
  color: var(--sr-paper);
  border: 1px solid var(--sr-ink);
  border-radius: 10px;
  cursor: pointer;
}
.sinorate-primary,
.signal-actions button:first-child {
  flex: 1 1 180px;
  min-height: 44px;
  color: var(--sr-ink);
  background: linear-gradient(120deg, var(--sr-gold-light), var(--sr-gold-dark));
  border: 1px solid #eab568;
  box-shadow: 0 10px 22px rgb(201 169 97 / 18%);
}
.sinorate-primary::after,
.signal-actions button:first-child::after {
  content: "→";
  font-weight: 400;
}
[dir="rtl"] .sinorate-primary::after,
[dir="rtl"] .signal-actions button:first-child::after { content: "←"; }
.signal-button.signal-quiet {
  color: var(--sr-ink);
  border-color: rgb(9 28 49 / 18%);
  background: transparent;
  box-shadow: none;
  min-height: 44px;
  flex: 0 1 auto;
}
.signal-actions button:first-child.signal-quiet::after { content: none; }
.signal-button:hover { filter: brightness(1.03); }
.signal-button:disabled { opacity: .45; cursor: not-allowed; }
.signal-actions button:first-child:disabled,
.sinorate-primary:disabled {
  opacity: 1;
  cursor: not-allowed;
  filter: none;
}
.signal :is(button, input, select, summary, a):focus-visible,
.sinorate-panel :focus-visible,
.sinorate-intro :focus-visible {
  outline: 3px solid #e6d09a;
  outline-offset: 4px;
}
.sinorate-panel :focus-visible,
.signal-well :focus-visible { outline-color: #775615; }
.signal .signal-drop:focus-within {
  outline: 3px solid #775615;
  outline-offset: 4px;
}
.signal .signal-file-input:focus { outline: none; }
.signal h3:focus-visible { outline: 2px solid #775615; outline-offset: 5px; }
/* The report's heading takes focus when it opens; a tap or click shows no box around it. */
.signal h3:focus:not(:focus-visible) { outline: none; }

#signal-entitlement:empty { display: none; }
.signal-process {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.signal-process li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sr-muted);
  font-size: var(--sig-type-small);
  font-weight: 600;
}
.signal-process li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--sig-line-strong);
  flex: none;
}
.signal-process li.is-done { color: var(--sr-ink-soft); }
.signal-process li.is-done::before { background: var(--sr-ink); border-color: var(--sr-ink); opacity: .4; }
.signal-process li.is-current { color: var(--sr-ink); }
.signal-process li.is-current::before {
  background: var(--sr-gold);
  border-color: var(--sr-gold);
  box-shadow: 0 0 0 4px rgb(201 169 97 / 16%);
}

.signal-progress {
  display: block;
  width: 100%;
  height: 2px;
  margin-block-start: 12px;
  border: 0;
  appearance: none;
  background: var(--sig-line);
  border-radius: 99px;
  overflow: hidden;
}
.signal-progress::-webkit-progress-bar { background: var(--sig-line); }
.signal-progress:indeterminate {
  background: linear-gradient(90deg, var(--sig-line) 0%, var(--sr-gold) 40%, var(--sig-line) 80%);
  background-size: 180% 100%;
  animation: sig-indeterminate 1.4s ease-in-out infinite;
}
.signal-progress:indeterminate::-webkit-progress-value,
.signal-progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes sig-indeterminate {
  from { background-position: 100% 0; }
  to { background-position: -80% 0; }
}

.signal-status {
  margin-block-start: 12px !important;
  min-height: 28px;
  font-weight: 600;
  color: var(--sr-ink);
}
.signal .signal-status[role="alert"],
.signal[data-signal-state="validation_failure"] .signal-status,
.signal[data-signal-state="unsupported_media"] .signal-status,
.signal[data-signal-state="timeout"] .signal-status,
.signal[data-signal-state="retryable_error"] .signal-status,
.signal[data-signal-state="non_retryable_error"] .signal-status,
.signal[data-signal-state="quota_reached"] .signal-status,
.signal[data-signal-state="guest_limit"] .signal-status,
.signal[data-signal-state="PRO_ENTITLEMENT_REQUIRED"] .signal-status {
  color: var(--sig-alert);
  background: var(--sig-alert-soft);
  border-radius: var(--sig-radius-sm);
  padding: 12px 14px;
}
.signal[data-signal-state="cancelled"] .signal-status,
.signal[data-signal-state="email_unlock"] .signal-status {
  background: var(--sig-warn-soft);
  color: var(--sig-warn);
  border-radius: var(--sig-radius-sm);
  padding: 12px 14px;
}

.signal input[type="checkbox"] {
  inline-size: 24px;
  block-size: 24px;
  margin: 0;
  flex: none;
  accent-color: var(--sr-ink);
  cursor: pointer;
}
.signal label {
  display: block;
  font-weight: 600;
  line-height: 1.6;
}
.signal label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-block-size: 24px;
  cursor: pointer;
}
.signal select {
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  padding: 8px 14px;
  color: var(--sr-ink);
  background: var(--sr-paper);
  border: 1px solid var(--sig-line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.signal-report,
.signal-comparison,
.signal-report-heading,
.signal-summary,
.signal-scores,
.signal-findings,
.signal-visual,
.signal-next,
.signal-limitations,
.signal-handoff {
  margin-block-start: 22px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--sig-line);
  color: var(--sr-ink);
}
.signal-report-heading { margin-block-start: 8px; padding-block-start: 8px; border: 0; }
.signal-report-heading h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); max-width: 22ch; }
.signal[lang="fa"] .signal-report-heading h3 { font-family: var(--sig-fa-display); letter-spacing: 0; line-height: 1.5; }

.signal-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-block-end: 12px;
}
.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--sig-sans);
}
.signal-chip.is-complete { background: var(--sig-ok-soft); color: var(--sig-ok); }
.signal-chip.is-partial { background: var(--sig-warn-soft); color: var(--sig-warn); }
.signal-chip.is-tier {
  background: transparent;
  border: 1px solid var(--sig-line-strong);
  color: var(--sr-ink-soft);
}

.signal-next ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: sig-step;
}
.signal-next li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sig-line);
  counter-increment: sig-step;
}
.signal-next li::before {
  content: counter(sig-step);
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--sig-sans);
  color: var(--sr-ink);
  background: var(--sig-paper-2);
  border: 1px solid var(--sig-line-strong);
}
.signal-next li:first-child::before {
  background: var(--sr-ink);
  color: var(--sr-paper);
  border-color: var(--sr-ink);
}
.signal-next li strong { font-size: 1.02rem; }
.signal-next li p { margin: 0; color: var(--sr-muted); font-size: var(--sig-type-small); }
.signal-report.is-partial .signal-next li:first-child::before {
  background: var(--sig-warn-soft);
  color: var(--sig-warn);
  border-color: transparent;
}
.signal-partial-banner {
  background: var(--sig-warn-soft);
  color: var(--sig-warn);
  border-radius: var(--sig-radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.signal-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--sig-line);
}
.signal-score dt { margin: 0; font-weight: 600; }
.signal-score dd {
  margin: 0;
  color: var(--sr-ink);
  flex-shrink: 0;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--sig-sans);
}
.signal-score.is-na dd { color: var(--sr-muted); font-weight: 600; }
.signal-meter { display: flex; gap: 5px; direction: ltr; }
.signal-tick {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 1px solid var(--sig-line-strong);
  background: transparent;
}
.signal-tick.is-on { background: var(--sr-gold); border-color: var(--sr-gold); }
.signal-tick.is-na { border-style: dotted; opacity: .7; }
.signal-score-note { grid-column: 1 / -1; margin: 0; }

/* signal-report/4.0.0 ----------------------------------------------------- */
.signal-v4-report { width: 100%; min-width: 0; }
.signal-v4-heading { text-align: center; }
.signal-v4-heading .signal-chiprow { justify-content: center; }
.signal-v4-heading h3 { margin-inline: auto; }
.signal-v4-overall {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 26px;
  margin-block: 24px;
  padding: 24px;
  border: 1px solid rgb(179 139 63 / 35%);
  border-radius: 20px;
  background: linear-gradient(135deg, #071c2d, #102b38);
  color: #fff7e8;
  box-shadow: 0 20px 48px rgb(2 16 27 / 16%);
}
.signal-v4-gauge {
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: #0b2232;
  direction: ltr;
}
.signal-v4-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.signal-v4-gauge text { font: 600 12px var(--sig-sans); }
.signal-v4-display-equivalent { margin: 14px 0 0; color: #fff7e8; font-size: 13px; line-height: 1.7; }
.signal-v4-bubble {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, 38px);
  min-width: 48px;
  padding: 5px 9px;
  border: 1px solid rgb(244 213 143 / 42%);
  border-radius: 999px;
  background: #071c2d;
  color: #f4d58f;
  text-align: center;
  font: 700 15px/1.2 var(--sig-sans);
  font-variant-numeric: tabular-nums;
  z-index: 4;
}
.signal-v4-overall-copy { min-width: 0; }
.signal-v4-overall-label { margin: 0 0 6px; color: #d9c9aa; font-size: 14px; }
.signal-v4-overall-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #f4d58f;
  font: 700 clamp(3.2rem, 8vw, 5.4rem)/1 var(--sig-sans);
  font-variant-numeric: tabular-nums;
}
.signal-v4-overall-value small { color: #fff7e8; font-size: 15px; font-weight: 600; }

/* Every figure above asks for the Latin stack, and Inter carries no Persian
   digit. So `۸٫۶` fell through Inter, SF Pro and Segoe to whatever system face
   could draw it -- which is why the numbers never matched the page around them.
   In Persian they take the reading face, which has the digits; Turkish keeps
   Inter and its tabular figures. */
.signal[lang="fa"] .signal-v4-gauge text,
.signal[lang="fa"] .signal-v4-bubble,
.signal[lang="fa"] .signal-v4-overall-value,
.signal[lang="fa"] .signal-v4-score-value { font-family: var(--sig-fa); }
.signal-v4-section {
  margin-block-start: 26px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--sig-line);
  min-width: 0;
}
.signal-v4-section > h3 { margin-block-end: 6px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.signal-v4-section-note { max-width: 68ch; margin: 4px 0 16px; color: var(--sr-muted); font-size: 12px; line-height: 1.85; }
.signal-v4-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 16px; }
.signal-v4-score-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #ded4c1;
  border-radius: 14px;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 8px 22px rgb(17 39 56 / 5%);
}
.signal-v4-score-card.is-locked { background: #f2ede3; color: #68727a; }
.signal-v4-score-card.is-not_assessed,
.signal-v4-score-card.is-not_applicable { border-style: dashed; }
.signal-v4-score-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.signal-v4-score-head h4 { min-width: 0; margin: 0; color: #102638; font-size: 15px; line-height: 1.6; }
.signal-v4-score-status {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ece2cf;
  color: #735323;
  font-size: 11px;
  font-weight: 700;
}
.signal-v4-score-card.is-locked .signal-v4-score-status { background: #e1e1de; color: #5e676d; }
.signal-v4-score-value { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; color: #8c6422; font: 700 2rem/1 var(--sig-sans); font-variant-numeric: tabular-nums; }
.signal-v4-score-value small { color: #58656d; font-size: 11px; font-weight: 600; }
.signal-v4-scorebar { height: 6px; overflow: hidden; border-radius: 99px; background: #e8e1d5; }
.signal-v4-scorebar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b88332, #e4bf70); }
.signal-v4-empty-value { margin: 14px 0 8px; font-weight: 700; color: #65717a; }
.signal-v4-score-reason,
.signal-v4-score-improvement { margin: 14px 0 0; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.signal-v4-score-reason strong,
.signal-v4-score-improvement strong { color: #102638; }
.signal-v4-excluded { margin: 12px 0 0; padding-block-start: 10px; border-block-start: 1px solid #e4ddcf; color: #6a747a; font-size: 11px; }
.signal-v4-score-evidence { margin-block-start: 10px; }
.signal-v4-score-evidence > summary { min-height: 36px; padding: 6px 0; font-size: 11px; }
.signal-v4-summary,
.signal-v4-actions,
.signal-v4-findings { min-width: 0; }
.signal-v4-partial-warning { margin-block: 20px; }

/* Three optional lines before the upload. Closed by default so the page still
   reads as "choose a file and go", open to anyone who wants the analysis to know
   what they were making. */
.sinorate-context {
  margin-block: 14px;
  padding: 14px 16px;
  border: 1px solid #e4ddcf;
  border-radius: 14px;
  background: #fdfaf4;
}
.sinorate-context > summary { cursor: pointer; color: #102638; font-weight: 700; font-size: 14px; }
.sinorate-context-hint { margin: 10px 0 14px; color: var(--sr-ink-soft); font-size: 13px; line-height: 1.8; }
.sinorate-context-field { display: block; margin-block-end: 12px; }
.sinorate-context-field > span { display: block; margin-block-end: 6px; color: #102638; font-size: 13px; font-weight: 600; }
.sinorate-context-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd3c2;
  border-radius: 10px;
  background: #fff;
  color: #102638;
  /* Under 16px iOS zooms the page on focus and never zooms back. */
  font-size: 16px;
  font-family: inherit;
  unicode-bidi: plaintext;
}
.sinorate-context-field input:focus-visible { outline: 2px solid var(--sig-gold-deep); outline-offset: 1px; }
.sinorate-context-field select { width: 100%; padding: 11px 13px; border: 1px solid #ddd3c2; border-radius: 10px; background: #fff; color: #102638; font-size: 16px; font-family: inherit; }
.sinorate-context-field select:focus-visible { outline: 2px solid var(--sig-gold-deep); outline-offset: 1px; }
/* Deep analysis and the Hook Bank. The light tool ground: surfaces instead of dividers, one gold outline per card. */
.sig-deep-pick { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-block-size: 72px; margin-block: 4px 12px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--sr-gold) 20%, transparent), transparent 62%), var(--sr-paper); box-shadow: 0 12px 28px -22px var(--sig-gold-deep); cursor: pointer; transition: transform 160ms cubic-bezier(.2, .8, .3, 1), box-shadow 240ms ease-out; }
.sig-deep-pick[hidden] { display: none; }
.sig-deep-pick:active { transform: scale(.985); }
.sig-deep-pick.is-on { box-shadow: 0 0 0 1px var(--sig-gold-deep), 0 16px 36px -18px var(--sig-gold-deep); background: linear-gradient(135deg, color-mix(in srgb, var(--sr-gold) 36%, transparent), color-mix(in srgb, var(--sr-gold) 12%, transparent)), var(--sr-paper); }
.sig-deep-pick-rim { position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; background: linear-gradient(135deg, var(--sr-gold-pale), var(--sr-gold-brand) 55%, var(--sr-gold-pale)); -webkit-mask: linear-gradient(var(--sr-ink) 0 0) content-box, linear-gradient(var(--sr-ink) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sig-deep-pick-light { position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--sr-gold) 28%, transparent), transparent 70%); pointer-events: none; transition: opacity 240ms ease-out; }
.sig-deep-pick:hover .sig-deep-pick-light { opacity: 1; }
.sig-deep-pick::after { content: ""; position: absolute; inset: -30% -50%; z-index: -1; opacity: 0; background: linear-gradient(105deg, transparent 42%, color-mix(in srgb, var(--sr-gold-pale) 70%, transparent) 50%, transparent 58%); pointer-events: none; }
.sig-deep-pick.is-seen::after, .sig-deep-pick.is-flash::after { animation: sig-pick-sheen 1.2s cubic-bezier(.22, 1, .36, 1) 1 both; }
.signal[dir="rtl"] .sig-deep-pick.is-seen::after, .signal[dir="rtl"] .sig-deep-pick.is-flash::after { animation-name: sig-pick-sheen-rtl; }
@keyframes sig-pick-sheen { from { opacity: 1; transform: translateX(-45%); } to { opacity: 0; transform: translateX(45%); } }
@keyframes sig-pick-sheen-rtl { from { opacity: 1; transform: translateX(45%); } to { opacity: 0; transform: translateX(-45%); } }
.sig-deep-pick-icon { position: relative; display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 14px; background: linear-gradient(145deg, var(--sr-gold-pale), var(--sr-gold-brand)); color: var(--sr-ink); box-shadow: 0 8px 18px -8px var(--sig-gold-deep); transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1); }
.sig-deep-pick-icon svg { inline-size: 24px; block-size: 24px; }
.sig-deep-pick.is-on .sig-deep-pick-icon { transform: rotate(-12deg) scale(1.08); }
.sig-deep-pick.is-flash .sig-deep-pick-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--sr-gold-brand); animation: sig-pick-ring 620ms cubic-bezier(.2, .8, .3, 1) 1 both; }
@keyframes sig-pick-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.sig-deep-pick-copy { display: grid; gap: 2px; min-inline-size: 0; }
.signal .sig-deep-pick-copy strong { display: flex; flex-wrap: wrap; row-gap: 2px; align-items: center; gap: 8px; white-space: nowrap; color: var(--sig-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.signal[lang="fa"] .sig-deep-pick-copy strong { font-family: var(--sig-fa-display); font-weight: 900; letter-spacing: 0; word-spacing: .12em; line-height: 1.6; }
.signal .sig-deep-pick-copy em { padding: 1px 8px; border-radius: 999px; background: linear-gradient(145deg, var(--sr-gold-pale), var(--sr-gold-brand)); color: var(--sr-ink); font-family: var(--sig-sans); font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 1.5; letter-spacing: .06em; word-spacing: normal; }
.signal[lang="fa"] .sig-deep-pick-copy em { font-family: var(--sig-fa); letter-spacing: 0; font-size: 11px; }
.signal .sig-deep-pick-copy small { color: var(--sig-ink-soft); font-size: var(--sig-type-small); font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.signal[lang="fa"] .sig-deep-pick-copy small { line-height: 1.85; }
.sig-deep-pick-input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.sig-deep-pick-switch { position: relative; inline-size: 48px; block-size: 28px; border-radius: 999px; background: var(--sig-line-strong); transition: background 200ms ease-out; }
.sig-deep-pick-switch::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 22px; block-size: 22px; border-radius: 50%; background: var(--sr-paper); transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1); }
.sig-deep-pick.is-on .sig-deep-pick-switch { background: linear-gradient(145deg, var(--sr-gold-pale), var(--sr-gold-brand)); }
.sig-deep-pick.is-on .sig-deep-pick-switch::after { background: var(--sr-ink); transform: translateX(20px); }
.signal[dir="rtl"] .sig-deep-pick.is-on .sig-deep-pick-switch::after { transform: translateX(-20px); }
.sig-deep-pick-input:focus-visible ~ .sig-deep-pick-switch { outline: 2px solid var(--sig-focus); outline-offset: 3px; }
@media (max-width: 560px) {
  .sig-deep-pick { grid-template-areas: "icon title switch" "hint hint hint"; row-gap: 8px; min-block-size: 0; padding: 12px 14px; }
  .sig-deep-pick-icon { grid-area: icon; inline-size: 40px; block-size: 40px; border-radius: 12px; }
  .sig-deep-pick-icon svg { inline-size: 21px; block-size: 21px; }
  .sig-deep-pick-copy { display: contents; }
  .signal .sig-deep-pick-copy strong { grid-area: title; }
  .signal .sig-deep-pick-copy small { grid-area: hint; }
  .sig-deep-pick-switch { grid-area: switch; }
}
.sig-deep, .sig-bank, .sig-deep p, .sig-bank p, .sig-deep li { color: var(--sr-ink); }
.sig-deep-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-block-end: 12px; }
.sig-deep-head h3, .sig-bank > summary { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.sig-bank > summary { margin-block-end: 12px; }
.sig-deep-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sig-paper-2); }
.sig-deep-seg button { min-block-size: 40px; padding-inline: 16px; border: 0; border-radius: 999px; background: transparent; color: var(--sig-ink-soft); font: inherit; font-size: var(--sig-type-small); cursor: pointer; transition: transform 100ms ease-out; }
.sig-deep-seg button.on { background: var(--sr-paper); color: var(--sig-ink); font-weight: 700; }
.sig-deep-seg button:active { transform: scale(.97); }
.sig-deep-seg button:focus-visible { outline: 2px solid var(--sig-focus); outline-offset: 2px; }
.sig-bank > summary { cursor: pointer; }
.signal[lang="tr"] .sig-deep h3, .signal[lang="tr"] .sig-bank > summary { font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.signal[lang="fa"] .sig-deep h3, .signal[lang="fa"] .sig-bank > summary { font-family: var(--sig-fa-display); font-weight: 900; letter-spacing: 0; word-spacing: .12em; line-height: 1.6; }
.signal .sig-deep-latin { font-family: var(--sig-sans); font-weight: 600; letter-spacing: 0; word-spacing: normal; white-space: nowrap; }
.sig-deep p.sig-deep-status { margin: 0; color: var(--sig-ink-soft); }
.sig-deep-body { container-type: inline-size; animation: sig-deep-in .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sig-deep-in { from { opacity: 0; transform: translateY(6px); } }
.sig-deep-block { display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: 18px 20px; border-radius: 20px; background: var(--sig-paper-2); }
.sig-deep-line { max-inline-size: 68ch; }
.sig-deep-extra .sig-deep-line { margin-block-start: 10px; }
.sig-deep-extra[hidden] { display: none; }
.signal .sig-deep-line p { margin: 0; line-height: 1.7; text-wrap: pretty; }
.signal[lang="fa"] .sig-deep-line p, .signal[lang="fa"] .sig-deep-fixes { line-height: 1.95; }
.sig-deep-label { color: var(--sig-ink-soft); color: color-mix(in srgb, var(--sig-gold-deep) 78%, var(--sig-ink)); display: block; margin-block-end: 2px; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.signal[lang="fa"] .sig-deep-label { font-size: var(--sig-type-small); line-height: 1.7; letter-spacing: 0; text-transform: none; }
.sig-deep-fixes { margin: 0; padding-inline-start: 20px; line-height: 1.7; }
.sig-deep-fixes li + li { margin-block-start: 4px; }
.sig-deep-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sig-deep-post { display: flex; flex-direction: column; padding: 14px 16px 10px; border-radius: 20px; background: var(--sig-paper-2); }
.sig-deep-showall { display: none; margin-block-start: 10px; }
@container (max-width: 900px) { .sig-deep-grid.is-collapsed .sig-deep-post:nth-child(n+5) { display: none; } .sig-deep-showall { display: inline-block; } }
@container (max-width: 640px) { .sig-deep-grid.is-collapsed .sig-deep-post:nth-child(n+3) { display: none; } }
.sig-bank .sig-deep-button:not(.is-gold):not(.is-quiet) { margin-block-start: 10px; }
.sig-deep-button[hidden] { display: none; }
.sig-deep-post.is-used { opacity: .62; }
.sig-deep-topic { display: block; color: var(--sig-ink-soft); font-size: var(--sig-type-small); line-height: 1.5; }
.signal[lang="fa"] .sig-deep-topic { line-height: 1.7; }
.sig-deep-post p.sig-deep-hook { margin: 4px 0 8px; font-size: 1.04rem; font-weight: 700; line-height: 1.5; letter-spacing: -.005em; text-wrap: balance; }
.signal[lang="fa"] .sig-deep-post p.sig-deep-hook { line-height: 1.85; letter-spacing: 0; }
.sig-deep-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-block-start: auto; }
.sig-deep-button { min-block-size: 44px; padding-inline: 16px; border: 1px solid var(--sig-line-strong); border-radius: 999px; background: transparent; color: var(--sig-ink); font: inherit; font-size: var(--sig-type-small); cursor: pointer; transition: transform 100ms ease-out; }
.sig-deep-button.is-gold { border-color: var(--sig-gold-deep); color: var(--sig-ink-soft); color: color-mix(in srgb, var(--sig-gold-deep) 78%, var(--sig-ink)); font-weight: 700; }
.sig-deep-button.is-quiet { padding-inline: 6px; border-color: transparent; color: var(--sig-ink-soft); }
.sig-deep-button:hover:not(:disabled) { color: var(--sig-ink); }
.sig-deep-button:active:not(:disabled) { transform: scale(.97); }
.sig-deep-button:focus-visible { outline: 2px solid var(--sig-focus); outline-offset: 3px; }
.sig-deep-button:disabled { opacity: .55; cursor: default; }
.sig-deep p.sig-deep-note, .sig-bank p.sig-deep-note { margin: 8px 0 0; color: var(--sig-ink-soft); font-size: var(--sig-type-small); line-height: 1.6; }
.signal[lang="fa"] .sig-deep p.sig-deep-note, .signal[lang="fa"] .sig-bank p.sig-deep-note { line-height: 1.85; }
.sig-deep-note:empty { display: none; }
.sig-bank[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sig-deep-body, .sig-deep-pick::after, .sig-deep-pick-icon::after { animation: none !important; } .sig-deep-button, .sig-deep-pick, .sig-deep-pick-icon, .sig-deep-pick-switch::after { transition: none; } }
@media (prefers-contrast: more) { .sig-deep-block, .sig-deep-post { outline: 1px solid var(--sig-ink); } }

/* The proof strip. Four stills from the reader's own video, read as evidence
   rather than decoration, so the tiles stay small and the captions carry the
   timestamp that ties each one to the measurement. */
.signal-v4-frames { margin-block-start: 24px; }
.signal-v4-frames-lead { margin: 0 0 14px; color: var(--sr-ink-soft); font-size: 14px; line-height: 1.8; }
.signal-v4-frames-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.signal-v4-frame { min-width: 0; margin: 0; }
.signal-v4-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #ece4d6;
}
.signal-v4-frame figcaption { margin-top: 6px; color: var(--sr-ink-soft); font-size: 12px; text-align: center; }
@media (max-width: 680px) {
  .signal-v4-frames-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The simple layer: what worked, what is wrong, what to say first. It carries
   the report's own colours so it reads as the same document, not a banner
   bolted on top. Two columns on a desk, stacked on a phone. */
.signal-v4-digest { margin-block-start: 24px; }
.signal-v4-digest-lead { margin: 0 0 18px; color: var(--sr-ink-soft); font-size: 14px; line-height: 1.8; }
.signal-v4-digest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.signal-v4-digest-col {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #e4ddcf;
  border-radius: 16px;
  background: #fdfaf4;
}
.signal-v4-digest-col h4 { margin: 0 0 12px; color: #102638; font-size: 15px; }
.signal-v4-digest-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.signal-v4-digest-col.is-strong { border-inline-start: 3px solid #4f8a5b; }
.signal-v4-digest-col.is-weak { border-inline-start: 3px solid #b4643a; }
.signal-v4-digest-col.is-hook { margin-block-start: 14px; border-inline-start: 3px solid var(--sig-gold-deep); }
.signal-v4-digest-col.is-hook p { margin: 0; font-size: 14px; line-height: 1.9; }
.signal-v4-digest-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.signal-v4-digest-item-head strong { color: #102638; font-size: 14px; }
.signal-v4-digest-score { flex: none; color: var(--sig-gold-deep); font-weight: 700; font-size: 14px; }
.signal-v4-digest-item-body { margin: 0; color: var(--sr-ink-soft); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }

/* One wide, unmistakable way into the whole report. */
.signal-v4-open-full {
  display: block;
  width: 100%;
  margin-block: 22px;
  padding: 16px 20px;
  border: 1px solid var(--sig-gold-deep);
  border-radius: 14px;
  background: #fdfaf4;
  color: var(--sig-gold-deep);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.signal-v4-open-full:hover { background: #f6efe1; }
/* Second in the pair, and quieter: the reader's own copy of what they just read. */
.signal-v4-print {
  display: block;
  width: 100%;
  margin-block-end: 22px;
  padding: 13px 20px;
  border: 1px solid #ddd3c2;
  border-radius: 14px;
  background: transparent;
  color: var(--sr-ink-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.signal-v4-print:hover { background: #f6efe1; color: var(--sig-gold-deep); }
/* The UA gives `strong` and `b` the keyword `bolder`, which against a 600 or
   700 parent computes to 800 or 900 -- weights no Latin file here has. They
   resolved back to the 700 face anyway, so nothing was lost by asking; the
   declaration simply claimed a weight that does not exist. Persian keeps 800,
   which Rey and IRANSans really do carry. Mirrors the print sheet's rule. */
.signal :is(b, strong) { font-weight: 700; }
.signal[lang="fa"] :is(b, strong) { font-weight: 800; }
.signal-v4-print[disabled] { opacity: .6; cursor: progress; }
/* Shown only when the report faces could not be loaded and the PDF was
   therefore refused. It replaces the button's own margin so the layout does
   not jump when it appears. */
.signal-print-note {
  margin: -14px 0 22px;
  padding: 11px 14px;
  border: 1px solid #e0c98f;
  border-radius: 12px;
  background: #fdf7ea;
  color: var(--sr-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

/* The prompt is meant to be copied, so it is shown as text, not prose. */
.signal-v4-prompt {
  margin-block-start: 18px;
  padding: 18px 20px;
  border: 1px dashed var(--sig-gold-deep);
  border-radius: 16px;
  background: #fcf8f0;
}
.signal-v4-prompt h4 { margin: 0 0 6px; color: #102638; font-size: 15px; }
.signal-v4-prompt-lead { margin: 0 0 12px; color: var(--sr-ink-soft); font-size: 13px; line-height: 1.8; }
.signal-v4-prompt-text {
  max-height: 260px;
  margin: 0 0 12px;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  /* The prompt is meant to be copied out, so its lines carry markdown markers.
     Per-line direction keeps a `##` on the reading side in Persian instead of
     flipping it to the far end of the line. */
  unicode-bidi: plaintext;
  color: #102638;
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.signal-v4-prompt-copy { width: 100%; }

@media (max-width: 680px) {
  .signal-v4-digest-grid { grid-template-columns: minmax(0, 1fr); }
  .signal-v4-prompt-text { max-height: 200px; }
  .signal-v4-overall { grid-template-columns: minmax(0, 1fr); padding: 18px; text-align: center; }
  .signal-v4-overall-value { justify-content: center; font-size: 3.25rem; }
  .signal-v4-score-grid { grid-template-columns: minmax(0, 1fr); }
  .signal-v4-score-card { padding: 15px; }
  .signal-v4-score-head { align-items: center; }
}

.signal-finding { margin-block: 18px; max-width: 46rem; }
.signal-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sig-gold-deep);
  font-weight: 700;
  font-family: var(--sig-sans);
  margin-block-end: 4px;
}
.signal summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--sr-ink);
  font-weight: 600;
  list-style: none;
}
.signal summary::-webkit-details-marker { display: none; }
.signal summary::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-inline-end: 10px;
  margin-block-end: 2px;
}
.signal[dir="rtl"] summary::before { transform: rotate(135deg); }
.signal details[open] > summary::before { transform: rotate(45deg); }
.signal[dir="rtl"] details[open] > summary::before { transform: rotate(-45deg); }
.signal-evidence {
  border-inline-start: 2px solid var(--sr-gold);
  padding-inline-start: 16px;
  margin-block: 14px;
}
.signal-evidence p { margin: 4px 0; overflow-wrap: anywhere; }
.signal-code {
  direction: ltr;
  text-align: start;
  font: 13px/1.6 var(--sig-mono);
  color: var(--sr-muted);
  overflow-wrap: anywhere;
}
.signal-visual {
  background: var(--sig-paper-2);
  border-radius: var(--sig-radius-sm);
  padding: 18px 18px 8px;
  border-block-start: 0;
  margin-block-start: 20px;
}
.signal-cut,
.signal-keep { padding-block: 8px; border-bottom: 1px solid var(--sig-line); }
.signal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
}
.signal-consent label { margin: 0; font-weight: 600; }
.signal-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 16px;
}
.signal-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-block: 12px;
}

.signal-depth { display: grid; gap: 16px; }
.signal-depth-card { min-width: 0; padding: 4px 0 8px; }
.signal-depth-card h4 { margin-block-end: 6px; display: flex; align-items: center; gap: 8px; }
.signal-depth-card h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sig-line-strong);
}
.signal-depth-card[data-tier="pro"] h4::before { background: var(--sr-gold); }
.signal-depth-card p { margin: 0 0 8px; color: var(--sr-ink-soft); font-size: 0.95rem; }

.signal-controls {
  position: fixed;
  z-index: 40;
  top: auto;
  right: 10px;
  left: auto;
  bottom: 10px;
  width: auto;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(72dvh, 560px);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgb(230 208 154 / 35%);
  border-radius: 12px;
  background: rgb(4 17 31 / 92%);
  color: #d5cbbd;
  font-size: var(--sig-type-small);
  box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
}
.signal-controls:not([open]) {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
}
.signal-controls:not([open]) summary {
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.signal-controls:not([open]) summary::before {
  position: absolute;
  inset: 0;
  width: 7px;
  height: 7px;
  margin: auto;
  color: var(--sr-gold-pale);
}
.signal-controls[open] {
  overflow: auto;
  width: min(360px, calc(100vw - 24px));
}
.signal-controls summary {
  color: var(--sr-gold-pale);
  min-height: 32px;
  padding: 4px 0;
}
.signal-controls > label { margin-block-start: 8px; }
.signal-controls button { margin-block-start: 8px; }
.signal-controls .signal-muted,
.signal-controls p { color: #c5bcae; }
.signal-credit-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed rgb(230 208 154 / 35%);
  border-radius: 10px;
  color: var(--sr-gold-pale);
}

.signal-upload[data-has-file="true"] .sinorate-upload-icon,
.signal[data-has-report="true"] .sinorate-upload-icon,
.signal-upload[data-has-file="true"] .sinorate-drop-action,
.signal[data-has-report="true"] .sinorate-drop-action { display: none; }
.signal-upload[data-has-file="true"] .signal-drop,
.signal[data-has-report="true"] .signal-drop {
  min-height: 56px;
  padding: 12px 16px;
}
.signal[data-signal-stage="process"] .signal-drop,
.signal[data-signal-stage="process"] .signal-filecard,
.signal[data-signal-stage="process"] .sinorate-criteria-block,
.signal[data-has-report="true"] .sinorate-criteria-block {
  display: none;
}
.signal[data-signal-state="idle"] .signal-status,
.signal[data-signal-state="complete"] .signal-status,
.signal[data-signal-state="partial"] .signal-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  color: var(--sr-ink-soft);
  background: none;
  padding: 0;
}

@media (max-width: 900px) {
  .sinorate-nav { display: none; }
  .sinorate-header-inner { min-height: 52px; }
  .sinorate-logo { height: 36px; }
  .sinorate-intro h2 { white-space: normal; }
}

@media (max-width: 1023px) {
  .sinorate-layout,
  [lang="fa"] .sinorate-layout {
    width: min(calc(100% - 20px), 920px);
    gap: 8px;
    padding-block: 6px 8px;
  }
  .signal h2,
  .signal[lang="fa"] h2 {
    font-size: clamp(1.35rem, 4.6vw, 2rem);
    max-width: none;
  }
}

.sinorate-marquee,
.sinorate-marquee-row { display: contents; }
.sinorate-criterion[data-marquee-clone="true"] { display: none !important; }

@keyframes sinorate-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes sinorate-drop-pulse {
  50% { box-shadow: 0 0 0 11px rgb(201 169 97 / 0%); }
}
.sinorate-drop-action { display: none; }

@media (min-width: 721px) {
  .sinorate-site-header { overflow: visible; }
  .sinorate-layout {
    --sr-tile: clamp(84px, 11svh, 104px);
    --sr-tile-gap: clamp(6px, 1svh, 10px);
    grid-template-rows: auto auto;
    height: auto;
    align-content: start;
    justify-items: center;
    gap: clamp(8px, 1.6svh, 14px) 0;
    width: min(calc(100% - 32px), 1120px);
    padding-block: clamp(6px, 1.2svh, 12px) clamp(10px, 1.8svh, 16px);
  }
  .sinorate-intro {
    width: min(100%, 860px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    grid-template-columns: none;
    grid-template-areas: none;
  }
  .sinorate-intro h2,
  .sinorate-intro .signal-lede,
  .sinorate-intro .sinorate-benefits,
  .sinorate-intro .sinorate-steps,
  .signal-eyebrow { grid-area: auto; }
  .signal-eyebrow {
    justify-content: center;
    margin: 0;
    width: 100%;
  }
  [dir="ltr"] .sinorate-intro .signal-eyebrow::before,
  [dir="ltr"] .sinorate-intro .signal-eyebrow::after,
  [dir="rtl"] .sinorate-intro .signal-eyebrow::before,
  [dir="rtl"] .sinorate-intro .signal-eyebrow::after {
    flex: 1;
    max-width: 72px;
    height: 1px;
    width: auto;
    border-radius: 0;
  }
  .signal h2,
  .signal[lang="fa"] h2 {
    margin: 0;
    text-align: center;
    white-space: normal;
    font-size: clamp(1.55rem, 2vw + 1.4svh, 2.9rem);
    line-height: 1.22;
    max-width: 18ch;
  }
  .signal-lede {
    margin: 0 auto;
    max-width: 36rem;
    text-align: center;
    font-size: clamp(.92rem, 1.05vw, 1.05rem);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sinorate-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(6px, 1svh, 10px);
    width: 100%;
    margin-block-start: clamp(2px, 0.8svh, 6px);
    direction: inherit;
  }
  .sinorate-benefits li,
  [lang="fa"] .sinorate-benefits li {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 154px;
    padding: 10px 10px 8px;
    border: 1px solid rgb(201 169 97 / 28%);
    border-radius: 14px;
    background: rgb(201 169 97 / 8%);
    text-align: center;
  }
  [lang="fa"] .sinorate-benefits strong,
  [lang="fa"] .sinorate-benefits span span { text-align: center; }
  .sinorate-benefits span span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    min-height: 2.6em;
  }
  .sinorate-benefits strong { font-size: .88rem; line-height: 1.35; }
  .sinorate-steps { display: none; }

  .sinorate-well,
  [lang="fa"] .sinorate-well {
    width: min(100%, 680px);
    height: auto;
    max-height: none;
    flex: none;
    justify-self: center;
    overflow: visible;
  }
  #signal-app,
  .sinorate-panel,
  .signal-well {
    width: 100%;
    height: auto;
    flex: none;
    overflow: visible;
  }
  .sinorate-panel,
  .signal-well {
    padding: 12px 14px 12px;
  }
  .sinorate-plan-wrap { margin-block-end: clamp(4px, 0.8svh, 8px); }
  .sinorate-input-modes { margin-block-end: clamp(6px, 1.2svh, 12px); }
  .sinorate-input-mode { min-height: clamp(36px, 5svh, 44px); font-size: 14px; }
  .sinorate-script { margin-block-end: 12px; padding: 18px 16px 16px; }
  .sinorate-criteria-block {
    flex: none;
    min-height: 0;
    gap: 8px;
  }
  .sinorate-criteria-head { display: none; }

  .sinorate-criteria-block > .sinorate-marquee {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--sr-tile) var(--sr-tile);
    gap: var(--sr-tile-gap);
    width: 100%;
    height: calc(var(--sr-tile) * 2 + var(--sr-tile-gap));
    overflow: hidden;
    direction: ltr;
    isolation: isolate;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .sinorate-criteria-block > .sinorate-marquee::before,
  .sinorate-criteria-block > .sinorate-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    z-index: 3;
    pointer-events: none;
  }
  .sinorate-criteria-block > .sinorate-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--sr-paper) 0 28%, transparent);
  }
  .sinorate-criteria-block > .sinorate-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--sr-paper) 0 28%, transparent);
  }
  .sinorate-marquee > .sinorate-marquee-row {
    display: block !important;
    height: var(--sr-tile);
    overflow: hidden;
    direction: ltr;
  }
  .sinorate-marquee .sinorate-criteria,
  .sinorate-marquee .sinorate-advanced {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    width: max-content;
    height: var(--sr-tile);
    margin: 0;
    flex: none;
    min-height: var(--sr-tile);
    position: relative;
    direction: ltr;
    grid-template-columns: none;
    grid-template-rows: none;
    animation: sinorate-marquee 32s linear infinite;
  }
  .sinorate-marquee-row.is-reverse .sinorate-advanced {
    animation-duration: 26s;
    animation-direction: reverse;
  }
  .sinorate-criterion[data-marquee-clone="true"] { display: flex !important; }
  .sinorate-marquee .sinorate-advanced-head { display: none; }
  .sinorate-marquee .sinorate-criterion,
  .sinorate-marquee .sinorate-advanced .sinorate-criterion,
  [lang="fa"] .sinorate-marquee .sinorate-criterion,
  [lang="fa"] .sinorate-marquee .sinorate-advanced .sinorate-criterion {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    flex: none;
    width: max(var(--sr-tile), 124px);
    height: var(--sr-tile);
    min-width: max(var(--sr-tile), 124px);
    min-height: var(--sr-tile);
    max-height: var(--sr-tile);
    padding: clamp(5px, calc(var(--sr-tile) * .07), 8px) 7px 5px;
    text-align: center;
    overflow: hidden;
    margin-inline-end: 8px;
    direction: ltr;
    grid-template-columns: none;
    grid-template-rows: none;
    place-content: unset;
  }
  .sinorate-marquee .sinorate-criterion-icon {
    order: 1;
    flex: 0 0 auto;
    width: clamp(14px, calc(var(--sr-tile) * .2), 20px);
    height: clamp(14px, calc(var(--sr-tile) * .2), 20px);
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .sinorate-marquee .sinorate-criterion-icon svg {
    width: 80%;
    height: 80%;
  }
  .sinorate-marquee .sinorate-criterion-name,
  [lang="fa"] .sinorate-marquee .sinorate-criterion-name,
  [lang="tr"] .sinorate-marquee .sinorate-criterion-name {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    max-height: 3.7em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    white-space: normal;
    text-overflow: unset;
    text-align: center;
    font-size: clamp(9px, calc(var(--sr-tile) * .12), 11px);
    line-height: 1.2;
    position: relative;
    z-index: 1;
  }
  [lang="fa"] .sinorate-marquee .sinorate-criterion-name {
    direction: rtl;
    line-height: 1.5;
    max-height: 4.6em;
  }
  [lang="tr"] .sinorate-marquee .sinorate-criterion-name { direction: ltr; }
  .sinorate-marquee .sinorate-score {
    order: 3;
    flex: 0 0 auto;
    inline-size: clamp(18px, calc(var(--sr-tile) * .24), 24px);
    block-size: clamp(18px, calc(var(--sr-tile) * .24), 24px);
    font-size: 8px;
    margin-block-start: auto;
    margin-inline: auto;
  }
  .sinorate-marquee .sinorate-lock {
    order: 4;
    flex: 0 0 12px;
    margin: 0;
    justify-self: center;
  }
  .sinorate-cta-row,
  [lang="fa"] .sinorate-cta-row,
  [lang="tr"] .sinorate-cta-row {
    position: relative;
    z-index: 2;
    justify-content: center;
    max-height: none;
    overflow: visible;
    margin-block-start: 8px;
  }
  .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-criterion,
  [lang="fa"] .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-criterion {
    background: linear-gradient(180deg, #fffaf1, #f4e6c4);
    border-color: rgb(201 169 97 / 42%);
    color: var(--sr-ink);
    box-shadow: 0 4px 14px rgb(201 169 97 / 10%);
  }
  .sinorate-upload[data-plan-preview="free"] .sinorate-marquee .sinorate-advanced .sinorate-score { display: none; }
  .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-score { display: grid; }
  .signal-drop,
  .sinorate-dropzone {
    text-align: center;
    min-height: clamp(56px, 9svh, 88px);
    padding: clamp(8px, 1.4svh, 12px) 18px;
    border: 1.5px dashed rgb(184 140 58 / 58%);
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgb(240 204 122 / 26%), transparent 58%),
      linear-gradient(180deg, #fffdf7, #f3e6c8 78%, #efe0bb);
    box-shadow:
      inset 0 1px 0 #fff,
      0 10px 28px rgb(201 169 97 / 14%);
    cursor: pointer;
    transition: transform var(--sig-ease), box-shadow var(--sig-ease), border-color var(--sig-ease), background var(--sig-ease);
  }
  .signal-drop::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 12px;
    border: 1px dashed rgb(184 140 58 / 28%);
    pointer-events: none;
  }
  .signal-drop-visual {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 14px 18px;
    position: relative;
    z-index: 1;
  }
  .sinorate-drop-copy {
    display: grid;
    gap: 3px;
    justify-items: start;
    text-align: start;
  }
  [lang="fa"] .sinorate-drop-copy {
    justify-items: end;
    text-align: end;
  }
  .sinorate-upload-icon {
    width: clamp(40px, 6svh, 50px);
    height: clamp(40px, 6svh, 50px);
    color: var(--sr-gold-dark);
    background: rgb(255 248 230 / 90%);
    box-shadow: 0 0 0 7px rgb(201 169 97 / 14%);
    animation: sinorate-drop-pulse 2.4s ease-in-out infinite;
    transition: transform var(--sig-ease), box-shadow var(--sig-ease);
  }
  .sinorate-upload-icon svg { width: 24px; height: 24px; }
  .signal-drop-title { font-size: 1.1rem; letter-spacing: -.01em; }
  #signal-file-help { color: #7a6a4e; }
  .sinorate-drop-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-block-start: 0;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--sr-ink);
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(120deg, var(--sr-gold-light), var(--sr-gold-dark));
    border: 1px solid #eab568;
    box-shadow: 0 8px 16px rgb(201 169 97 / 22%);
  }
  .signal-drop:hover,
  .signal-drop:focus-within,
  .signal-drop.is-hover {
    transform: translateY(-2px);
    border-style: solid;
    border-color: var(--sr-gold-dark);
    background:
      radial-gradient(circle at 50% 0%, rgb(240 204 122 / 38%), transparent 60%),
      linear-gradient(180deg, #fff, #f6e4b3);
    box-shadow:
      inset 0 1px 0 #fff,
      0 16px 36px rgb(201 169 97 / 26%);
  }
  .signal-drop:hover .sinorate-upload-icon,
  .signal-drop:focus-within .sinorate-upload-icon,
  .signal-drop.is-hover .sinorate-upload-icon {
    transform: scale(1.08);
    animation: none;
    box-shadow: 0 0 0 8px rgb(201 169 97 / 20%);
  }
  .signal-drop:hover .sinorate-drop-action,
  .signal-drop:focus-within .sinorate-drop-action {
    filter: brightness(1.05);
  }
  .signal[data-has-report="true"] .sinorate-well,
  .signal[data-has-report="true"] .sinorate-panel,
  .signal[data-has-report="true"] .signal-well {
    width: min(100%, 820px);
    max-height: calc(100svh - 120px);
    overflow: hidden;
  }
  .signal[data-has-report="true"] #signal-report {
    max-height: min(48svh, 420px);
  }
}

@media (min-width: 721px) and (max-height: 960px) {
  .sinorate-site-header,
  .sinorate-header-inner { min-height: 50px; }
  .sinorate-logo { height: 34px; }
  .sinorate-intro { gap: 6px; }
  .signal h2,
  .signal[lang="fa"] h2 {
    font-size: clamp(1.45rem, 2vw + 1svh, 2.1rem);
    line-height: 1.2;
  }
  .signal-lede {
    -webkit-line-clamp: 1;
    line-height: 1.4;
    font-size: 13px;
  }
  .sinorate-benefits span span {
    display: none;
    min-height: 0;
  }
  .sinorate-benefits li,
  [lang="fa"] .sinorate-benefits li {
    width: 140px;
    padding: 8px 8px 6px;
  }
  .sinorate-layout { padding-block: 6px 8px; gap: 8px 0; }
  .sinorate-panel,
  .signal-well { padding: 8px 14px 8px; }
}

@media (min-width: 721px) and (max-height: 820px) {
  .sinorate-plan-tab { min-height: 34px; }
  .sinorate-input-mode { min-height: 36px; }
  .signal-drop,
  .sinorate-dropzone { min-height: 56px; padding: 8px 14px; }
  #signal-file-help { display: none; }
  .sinorate-upload-icon { width: 40px; height: 40px; box-shadow: 0 0 0 5px rgb(201 169 97 / 14%); }
  .sinorate-cta-row { margin-block-start: 6px; }
  .signal-actions button:first-child,
  .sinorate-primary { min-height: 40px; }
}

@media (min-width: 721px) and (max-height: 780px) {
  .sinorate-benefit-icon { width: 30px; height: 30px; }
  .sinorate-script { padding: 12px 14px 10px; }
  .sinorate-script textarea { min-height: 96px; }
  .signal-lede { display: none; }
}

@media (min-width: 721px) and (max-height: 700px) {
  .sinorate-layout { --sr-tile: 72px; }
  .signal-lede { display: none; }
  .sinorate-benefits li { width: 128px; padding: 6px 8px; }
  .sinorate-script textarea { min-height: 88px; }
}

@media (min-width: 721px) and (max-height: 640px) {
  .sinorate-benefits { display: none; }
}

@media (max-width: 720px) {
  .signal-lab {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .signal {
    overflow: visible;
    flex: none;
    height: auto;
  }
  .sinorate-site-header {
    overflow: visible;
    min-height: 52px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .sinorate-header-inner {
    width: 100%;
    max-width: none;
    min-height: 52px;
    gap: 8px;
    flex-wrap: nowrap;
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }
  .sinorate-logo-link { flex: 0 0 auto; }
  .sinorate-logo {
    height: 30px;
    max-width: min(136px, 36vw);
    object-position: left center;
  }
  [dir="rtl"] .sinorate-logo { object-position: right center; }
  .sinorate-header-tools {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .sinorate-chat,
  .sinorate-login,
  .sinorate-globe { display: none; }
  .sinorate-consult {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .sinorate-consult .sinorate-arrow { width: 13px; height: 13px; flex: none; }
  .sinorate-lang a { padding: 7px 9px; }
  .sinorate-decoration { inset: calc(52px + env(safe-area-inset-top, 0px)) 0 0; }

  .sinorate-layout,
  [lang="fa"] .sinorate-layout {
    width: min(calc(100% - 24px), 430px);
    height: auto;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: start;
    gap: 18px;
    padding-block: 16px max(36px, env(safe-area-inset-bottom, 0px));
  }
  .sinorate-well,
  [lang="fa"] .sinorate-well {
    width: 100%;
    height: auto;
    max-height: none;
    flex: none;
    overflow: visible;
  }
  [lang="fa"] .sinorate-well {
    padding: 7px;
    border-radius: 24px;
  }
  #signal-app,
  .sinorate-panel,
  .signal-well,
  .sinorate-upload {
    width: 100%;
    height: auto;
    max-height: none;
    flex: none;
  }
  .sinorate-panel,
  .signal-well {
    padding: 16px 14px 18px;
    border-radius: 20px;
    overflow: hidden;
  }

  .sinorate-intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    grid-template-columns: none;
    grid-template-areas: none;
  }
  .sinorate-intro h2,
  .sinorate-intro .signal-lede,
  .sinorate-intro .sinorate-benefits,
  .sinorate-intro .sinorate-steps,
  .signal-eyebrow { grid-area: auto; }
  .signal-eyebrow {
    justify-content: center;
    margin: 0;
    width: 100%;
  }
  [dir="ltr"] .sinorate-intro .signal-eyebrow::before,
  [dir="ltr"] .sinorate-intro .signal-eyebrow::after,
  [dir="rtl"] .sinorate-intro .signal-eyebrow::before,
  [dir="rtl"] .sinorate-intro .signal-eyebrow::after {
    flex: 1;
    max-width: 56px;
    height: 1px;
    width: auto;
    border-radius: 0;
  }
  .signal h2,
  .signal[lang="fa"] h2 {
    margin: 0;
    text-align: center;
    white-space: normal;
    font-size: clamp(1.7rem, 7.4vw, 2.2rem);
    line-height: 1.22;
    max-width: 16ch;
  }
  .signal-lede {
    margin: 0 auto;
    max-width: 34rem;
    text-align: center;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: .95rem;
    line-height: 1.55;
  }
  .sinorate-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-block-start: 4px;
    direction: inherit;
  }
  .sinorate-benefits li,
  [lang="fa"] .sinorate-benefits li {
    flex: 1 1 96px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    max-width: 132px;
    min-width: 96px;
    padding: 12px 8px 10px;
    border: 1px solid rgb(201 169 97 / 28%);
    border-radius: 14px;
    background: rgb(201 169 97 / 8%);
    text-align: center;
  }
  [lang="fa"] .sinorate-benefits strong,
  [lang="fa"] .sinorate-benefits span span { text-align: center; }
  .sinorate-benefit-icon { width: 34px; height: 34px; }
  .sinorate-benefit-icon svg { width: 16px; height: 16px; }
  .sinorate-benefits span span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    min-height: 2.5em;
    line-height: 1.3;
  }
  .sinorate-benefits strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .8rem;
    line-height: 1.35;
    min-height: 2.6em;
  }
  .sinorate-steps { display: none; }

  .sinorate-plan-wrap { margin-block-end: 10px; }
  .sinorate-input-modes { margin-block-end: 10px; }
  .sinorate-input-mode { min-height: 44px; font-size: 13px; }
  .sinorate-script { margin-block-end: 12px; }
  .sinorate-script textarea { min-height: 128px; }
  .sinorate-plan-tabs { gap: 8px; }
  .sinorate-plan-tab { min-height: 48px; padding: 8px 10px; border-radius: 12px; }
  .sinorate-plan-tab small { display: none; }
  .sinorate-plan-tab[data-plan="pro"] strong {
    font-size: 11.5px;
    line-height: 1.35;
    white-space: normal;
  }

  .signal-drop,
  .sinorate-dropzone {
    text-align: center;
    min-height: 108px;
    margin-block-end: 14px;
    padding: 16px 14px;
    border: 1.5px dashed rgb(184 140 58 / 58%);
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgb(240 204 122 / 26%), transparent 58%),
      linear-gradient(180deg, #fffdf7, #f3e6c8 78%, #efe0bb);
    box-shadow:
      inset 0 1px 0 #fff,
      0 10px 28px rgb(201 169 97 / 14%);
  }
  .signal-drop::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 12px;
    border: 1px dashed rgb(184 140 58 / 28%);
    pointer-events: none;
  }
  .signal-drop-visual {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
  }
  .sinorate-drop-copy {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
  }
  [lang="fa"] .sinorate-drop-copy {
    justify-items: center;
    text-align: center;
  }
  .sinorate-upload-icon {
    width: 52px;
    height: 52px;
    color: var(--sr-gold-dark);
    background: rgb(255 248 230 / 90%);
    box-shadow: 0 0 0 7px rgb(201 169 97 / 14%);
    animation: sinorate-drop-pulse 2.4s ease-in-out infinite;
  }
  .sinorate-upload-icon svg { width: 24px; height: 24px; }
  .signal-drop-title { font-size: 1.05rem; letter-spacing: -.01em; }
  #signal-file-help {
    display: block;
    color: #7a6a4e;
    font-size: 12px;
  }
  .sinorate-drop-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 4px 0 0;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sr-ink);
    background: linear-gradient(120deg, var(--sr-gold-light), var(--sr-gold-dark));
    border: 1px solid #eab568;
    box-shadow: 0 8px 16px rgb(201 169 97 / 22%);
  }

  .sinorate-criteria-block {
    --sr-tile: clamp(90px, 24.5vw, 104px);
    gap: 12px;
    min-height: 0;
    overflow: visible;
  }
  .sinorate-criteria-head { display: none; }
  .sinorate-criteria-block > .sinorate-marquee {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--sr-tile) var(--sr-tile);
    gap: 10px;
    width: calc(100% + 28px);
    margin-inline: -14px;
    height: calc(var(--sr-tile) * 2 + 10px);
    overflow: hidden;
    direction: ltr;
    isolation: isolate;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .sinorate-criteria-block > .sinorate-marquee::before,
  .sinorate-criteria-block > .sinorate-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 3;
    pointer-events: none;
  }
  .sinorate-criteria-block > .sinorate-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--sr-paper) 0 28%, transparent);
  }
  .sinorate-criteria-block > .sinorate-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--sr-paper) 0 28%, transparent);
  }
  .sinorate-marquee > .sinorate-marquee-row {
    display: block !important;
    height: var(--sr-tile);
    overflow: hidden;
    direction: ltr;
  }
  .sinorate-marquee .sinorate-criteria,
  .sinorate-marquee .sinorate-advanced {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    width: max-content !important;
    height: var(--sr-tile) !important;
    margin: 0;
    flex: none;
    min-height: var(--sr-tile);
    position: relative;
    direction: ltr;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    overflow: visible;
    animation: sinorate-marquee 32s linear infinite;
    mask-image: none;
    -webkit-mask-image: none;
    transform: none;
  }
  .sinorate-marquee-row.is-reverse .sinorate-advanced {
    animation-duration: 26s;
    animation-direction: reverse;
  }
  .sinorate-criterion[data-marquee-clone="true"],
  .sinorate-marquee .sinorate-criterion[data-marquee-clone="true"],
  .sinorate-advanced .sinorate-criterion[data-marquee-clone="true"],
  .sinorate-marquee .sinorate-advanced .sinorate-criterion[data-marquee-clone="true"],
  [lang="fa"] .sinorate-marquee .sinorate-criterion[data-marquee-clone="true"],
  [lang="fa"] .sinorate-marquee .sinorate-advanced .sinorate-criterion[data-marquee-clone="true"] {
    display: flex !important;
  }
  .sinorate-marquee .sinorate-advanced-head { display: none; }
  .sinorate-marquee .sinorate-criterion,
  .sinorate-marquee .sinorate-advanced .sinorate-criterion,
  [lang="fa"] .sinorate-marquee .sinorate-criterion,
  [lang="fa"] .sinorate-marquee .sinorate-advanced .sinorate-criterion {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    flex: none;
    width: max(var(--sr-tile), 124px) !important;
    height: var(--sr-tile) !important;
    min-width: max(var(--sr-tile), 124px) !important;
    min-height: var(--sr-tile) !important;
    max-height: var(--sr-tile) !important;
    padding: 8px 7px 6px;
    margin: 0 8px 0 0 !important;
    text-align: center;
    overflow: hidden;
    direction: ltr;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    place-content: unset;
  }
  .sinorate-marquee .sinorate-criterion-icon {
    order: 1;
    flex: 0 0 auto;
    width: clamp(14px, calc(var(--sr-tile) * .2), 20px);
    height: clamp(14px, calc(var(--sr-tile) * .2), 20px);
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .sinorate-marquee .sinorate-criterion-icon svg { width: 80%; height: 80%; }
  .sinorate-marquee .sinorate-criterion-name,
  [lang="fa"] .sinorate-marquee .sinorate-criterion-name,
  [lang="tr"] .sinorate-marquee .sinorate-criterion-name {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    max-height: 3.7em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    white-space: normal;
    text-overflow: unset;
    text-align: center;
    font-size: clamp(9px, calc(var(--sr-tile) * .12), 11px);
    line-height: 1.2;
    position: relative;
    z-index: 1;
  }
  [lang="fa"] .sinorate-marquee .sinorate-criterion-name {
    direction: rtl;
    line-height: 1.5;
    max-height: 4.6em;
  }
  [lang="tr"] .sinorate-marquee .sinorate-criterion-name { direction: ltr; }
  .sinorate-marquee .sinorate-score {
    order: 3;
    flex: 0 0 auto;
    inline-size: clamp(18px, calc(var(--sr-tile) * .24), 24px);
    block-size: clamp(18px, calc(var(--sr-tile) * .24), 24px);
    font-size: 8px;
    margin-block-start: auto;
    margin-inline: auto;
    justify-self: center;
  }
  .sinorate-marquee .sinorate-lock {
    order: 4;
    flex: 0 0 12px;
    margin: 0;
    justify-self: center;
  }
  .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-criterion,
  [lang="fa"] .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-criterion {
    background: linear-gradient(180deg, #fffaf1, #f4e6c4);
    border-color: rgb(201 169 97 / 42%);
    color: var(--sr-ink);
    box-shadow: 0 4px 14px rgb(201 169 97 / 10%);
  }
  .sinorate-upload[data-plan-preview="free"] .sinorate-marquee .sinorate-advanced .sinorate-score { display: none; }
  .sinorate-upload[data-plan-preview="pro"] .sinorate-marquee .sinorate-advanced .sinorate-score { display: grid; }

  .sinorate-cta-row,
  [lang="fa"] .sinorate-cta-row,
  [lang="tr"] .sinorate-cta-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    max-height: none;
    overflow: visible;
    margin-block-start: 14px;
    position: relative;
    z-index: 2;
  }
  .sinorate-privacy {
    order: 2;
    max-width: none;
    max-height: none;
    overflow: visible;
    white-space: normal;
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }
  .signal-actions {
    width: 100%;
    inline-size: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .sinorate-primary,
  .signal-actions button:first-child {
    flex: 1 1 100%;
    min-height: 50px;
    font-size: 15px;
    white-space: nowrap;
    border-radius: 12px;
  }
  .signal-actions button:nth-child(2) {
    flex: 1 1 100%;
    font-size: 13px;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    padding: 0 8px;
  }

  .signal-lab-badge { display: none; }
  /* The preview-modes disclosure stays reachable at phone width. It is how the
     local preview reaches PARTIAL, timeout and quota states, and the browser
     suite drives those at 390px -- hiding it here made real product behaviour
     unverifiable on the viewport it is most likely to be used on. It collapses
     to a 40px button, so it costs almost nothing. */
  .signal-controls { inset-block-end: 8px; inset-inline-end: 8px; }
  .signal-score { grid-template-columns: minmax(0, 1fr) auto; }
  .signal-meter { grid-column: 1 / -1; }

  .signal[data-has-report="true"] .sinorate-well,
  .signal[data-has-report="true"] .sinorate-panel,
  .signal[data-has-report="true"] .signal-well {
    width: 100%;
    max-height: none;
  }
  .signal[data-has-report="true"] #signal-report {
    max-height: none;
    overflow: visible;
  }
  .signal[data-sample-scene="true"] .signal-well { max-height: none; }
}

@media (max-width: 360px) {
  .sinorate-consult { display: none; }
  .sinorate-logo { max-width: min(140px, 46vw); }
}

@media (prefers-reduced-motion: reduce) {
  .signal-lab *,
  .signal-lab *::before,
  .signal-lab *::after,
  .signal *,
  .signal *::before,
  .signal *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .signal-progress:indeterminate {
    background: var(--sr-gold);
    background-size: auto;
  }
  .sinorate-criteria,
  .sinorate-advanced {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100%;
    justify-content: center;
  }
  .sinorate-criterion[data-marquee-clone="true"] { display: none !important; }
}

@media print {
  /* This list was written against the bare preview page, where the report was
     the only thing on it. On the real site it left the whole homepage in the
     print sheet: twenty-one A4 pages, the report starting on the sixth, behind
     a cookie banner and a floating chat button -- and because the site is dark
     and the browser's Save-as-PDF leaves backgrounds off by default, the pages
     that were not the report came out as white paper with near-white text.
     So print is scoped the other way round now: nothing is printable except the
     branch the report lives on. Each step names only the next child to keep, so
     a new homepage section cannot quietly rejoin the sheet. */
  /* The printed document is a body child too, and `:not(#sinorate)` carries an
     id's weight, so without naming it here it would hide the very sheet it is
     meant to let through. */
  body > *:not(#sinorate):not(.signal-print-doc) { display: none !important; }
  #sinorate > *:not(.sinorate-layout) { display: none !important; }
  .sinorate-layout > *:not(.sinorate-main-grid) { display: none !important; }
  .sinorate-main-grid > *:not(.sinorate-well) { display: none !important; }
  .sinorate-well > *:not(#signal-app) { display: none !important; }
  #signal-app > *:not(.signal-well) { display: none !important; }
  .signal-well > *:not(#signal-report) { display: none !important; }
  /* Anything pinned to the viewport has no meaning on paper. */
  [style*="position:fixed"], [style*="position: fixed"],
  .sinora-cookie-consent, #floating-wa, #mobileMenu, #siteHeader,
  .sinora-concierge__overlay { display: none !important; }
  /* Paper is white whatever the screen was, and the report carries its own dark
     panels. Dropping their backgrounds keeps the text readable when the print
     dialogue declines to paint them, which is its default. */
  html, body, #sinorate, #signal-report { background: #fff !important; }
  #signal-report *:not(svg):not(svg *) { background-image: none !important; background-color: transparent !important; }
  .sinorate-site-header,
  .signal-lab-badge,
  .sinorate-decoration,
  .signal-upload,
  .signal-comparison,
  .signal-controls,
  .signal-path,
  .sinorate-benefits,
  .signal-handoff button { display: none !important; }
  .signal-lab,
  .signal { background: white; color: black; }
  .signal * { color: black !important; box-shadow: none !important; }
  .sinorate-layout { display: block; width: auto; }
  .signal-well { border: 0; padding: 0; background: white; }
  .signal details { break-inside: avoid; }
  .signal-lede { display: block !important; }
  /* Paper has no disclosure. Whatever the reader left collapsed on screen, the
     printed sheet is the whole report -- otherwise saving a PDF from the simple
     summary would quietly produce a one-page document. */
  .signal-v4-full[hidden] { display: block !important; }
  .signal-v4-open-full,
  .signal-v4-print,
  .signal-v4-prompt-copy { display: none !important; }
  .signal-v4-prompt-text { max-height: none !important; overflow: visible !important; }
  .signal-v4-digest-col,
  .signal-v4-score-card,
  .signal-v4-frame,
  .signal-v4-prompt { break-inside: avoid; }
  /* On screen the prompt is quieter than the report around it, because it is a
     thing to copy rather than a thing to read. On paper nobody copies anything,
     so the same grey just reads as faint. It takes the body's ink and keeps its
     smaller size, which is where the hierarchy actually lives. */
  .signal-v4-prompt-text { color: #1a1a1a !important; border: 1px solid #ccc !important; }
  /* A row of tool logos is an invitation to click. Paper cannot take it up, and
     the icons print as empty outlines, so the prompt appears as what it is on a
     page: a section of the report. */
  .sr-kit-apps, .sr-kit-download, .sr-kit-disclaimer { display: none !important; }

  /* ---- The printed report as a document, not a screen with the lights off ----
     The print dialogue leaves background graphics off by default, so anything
     resting on a fill disappears. Borders, text colour and SVG always print, so
     the brand is carried by those: navy ink, gold rules, and the gauge keeping
     its own colours. The rest is density -- the screen spaces things to be
     scrolled past, and paper wants them close enough to read as one page. */
  @page { size: A4; margin: 13mm 11mm; }
  .signal-v4-report { font-size: 10.5pt; line-height: 1.5; }
  /* sample-scene.mjs calls itself a presentation-only concept, and the frame it
     draws says in words that it is not a video. It belongs on a screen that is
     selling the idea, not in the document a customer keeps. The disclosure
     summary goes with it: paper has nothing to disclose. */
  .sr-sample-scene, .sr-sample-details > summary, .signal-report > .signal-muted { display: none !important; }
  /* The masthead: chips on the reading edge, the verdict as the title, and one
     gold rule under it across the sheet. The rule belongs to the title, not to
     the header box around it, or it floats away from the words it underlines. */
  .sr-sample-details { border: 0 !important; padding: 0 !important; margin: 0 !important; }
  .signal-v4-heading { border: 0 !important; text-align: start !important; margin: 0 0 10px !important; padding: 0 !important; }
  .signal-chiprow { justify-content: flex-start !important; margin: 0 0 6px !important; }
  .signal-chip { font-size: 7.5pt !important; padding: 2px 8px !important; border: 1px solid rgb(9 28 49 / 30%) !important; color: #091c31 !important; }
  h3.signal-v4-verdict {
    border: 0 !important;
    border-bottom: 2.5px solid #b78e3e !important;
    padding: 0 0 7px !important;
    margin: 0 !important;
    color: #091c31 !important;
    font-size: 18pt !important;
    line-height: 1.25 !important;
    text-align: start !important;
  }
  /* Honest demo labelling stays, quietly. */
  .signal-demo-note { font-size: 8pt !important; color: #65707b !important; margin: 4px 0 8px !important; }

  /* Headings carry the brand rather than a banner behind them. */
  .signal-v4-report h2, .signal-v4-report h3 {
    color: #091c31 !important;
    border-bottom: 1px solid rgb(183 142 62 / 55%) !important;
    padding-bottom: 4px !important;
    margin: 14px 0 8px !important;
    font-size: 12.5pt !important;
  }
  .signal-v4-report h4 { color: #091c31 !important; font-size: 11pt !important; margin: 0 0 6px !important; }

  /* Every panel becomes a bordered card with a gold spine, so the sheet reads as
     sections instead of a column of paragraphs. */
  .signal-v4-digest-col, .signal-v4-score-card, .signal-v4-prompt,
  .signal-summary, .signal-next, .signal-limitations, .signal-handoff {
    border: 1px solid rgb(9 28 49 / 22%) !important;
    border-radius: 6px !important;
    padding: 11px 13px !important;
    margin-block: 8px !important;
  }
  .signal-v4-digest-col.is-strong { border-inline-start: 3px solid #1b5c45 !important; }
  .signal-v4-digest-col.is-weak   { border-inline-start: 3px solid #b4643a !important; }
  .signal-v4-digest-col.is-hook   { border-inline-start: 3px solid #b78e3e !important; }
  .signal-v4-prompt { border: 1px solid #b78e3e !important; }
  .signal-v4-score-card { border-inline-start: 3px solid #b78e3e !important; }

  /* Scores and the overall figure keep the gold they have on screen. */
  .signal-v4-digest-score, .signal-v4-overall-value, .signal-v4-score-value { color: #8c6e2c !important; }


  /* Two columns on paper: fourteen criteria down one column is what made this
     eight pages of mostly margin. */
  .signal-v4-score-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .signal-v4-digest-grid { gap: 8px !important; }

  /* Paper does not scroll, so the generous screen rhythm is just emptiness. */
  .signal-v4-report > * { margin-block: 8px !important; }
  .signal-v4-digest, .signal-v4-frames { margin-block-start: 10px !important; }
  .signal-v4-report p { margin-block: 4px !important; }
  .signal-v4-prompt-text { font-size: 8.5pt !important; line-height: 1.5 !important; padding: 9px !important; }
  .signal-v4-overall { padding: 10px 14px !important; border: 1px solid rgb(9 28 49 / 22%) !important; border-radius: 6px !important; align-items: center !important; }
  .signal-v4-gauge { max-width: 150px !important; }
  .signal-v4-overall-value { font-size: 26pt !important; }
  .signal-v4-frames-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sample concept: all colors scoped to the result well, never to real reports. */
.sinorate-panel[data-verdict-tone] {
  --sample-accent: #805719;
  --sample-soft: #f4e7cd;
  --sample-dark: #342718;
  border-color: var(--sample-accent);
  background: linear-gradient(140deg, #fbf8f2, var(--sample-soft));
}
.sinorate-panel[data-verdict-tone="red"] {
  --sample-accent: #a63239; --sample-soft: #f8e4e4; --sample-dark: #3a1010;
}
.sinorate-panel[data-verdict-tone="green"] {
  --sample-accent: #176b52; --sample-soft: #e3f0e8; --sample-dark: #102c25;
}
.signal[data-sample-scene="true"] .signal-upload { display: none; }
.signal[data-sample-scene="true"] .sinorate-intro { display: none; }
.signal[data-sample-scene="true"] .sinorate-layout {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding-block: 20px; height: auto;
}
.signal[data-sample-scene="true"] #signal-report {
  max-height: none; overflow: visible; margin: 0; padding: 0; border: 0;
}
.signal[data-sample-scene="true"] .signal-well {
  overflow-y: auto; overscroll-behavior: contain;
  max-height: calc(100dvh - 155px);
  scrollbar-color: var(--sample-accent) transparent;
}
.sr-sample-scene { color: var(--sample-dark); padding: 4px; }
.sr-sample-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 20px; flex-wrap: wrap; }
.sr-sample-wordmark { letter-spacing: .2em; font: 600 11px/1.4 Inter, sans-serif; color: var(--sample-accent); }
.sr-sample-badge { font-size: 11px; padding: 5px 10px; border: 1px solid var(--sample-accent); border-radius: 999px; color: var(--sample-accent); }
.sr-sample-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; direction: ltr; }
.sr-sample-frame { margin: 0; min-width: 0; }
.sr-frame-placeholder {
  aspect-ratio: 4/5; border: 1px solid var(--sample-accent); border-radius: 16px;
  background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--sample-accent) 35%, transparent), transparent 65%), var(--sample-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; gap: 12px; color: #fbf8f2; text-align: center; position: relative;
  box-shadow: inset 0 0 0 7px rgb(255 255 255 / 4%);
}
.sr-frame-placeholder::before { content: ''; width: 45%; aspect-ratio: 4/5; border: 1px dashed rgb(255 255 255 / 28%); border-radius: 8px; }
.sr-frame-ratio { position: absolute; top: 16px; left: 18px; letter-spacing: .12em; font: 11px Inter, sans-serif; opacity: .6; }
.sr-frame-placeholder strong { font-size: 14px; }
.sr-frame-placeholder > span:last-child { font-size: 11px; opacity: .7; }
.sr-sample-frame figcaption { font-size: 10px; line-height: 1.8; margin-block-start: 8px; opacity: .8; }
[lang="fa"] :is(.sr-sample-reading, .sr-sample-frame) { direction: rtl; }
[lang="tr"] :is(.sr-sample-reading, .sr-sample-frame) { direction: ltr; }
.sr-sample-reading { min-width: 0; }
.sr-sample-eyebrow { font-size: 11px; color: var(--sample-accent); margin: 0; }
.sr-sample-gauge { width: 100%; max-width: 330px; margin-inline: auto; color: var(--sample-accent); }
.sr-sample-gauge svg { width: 100%; display: block; overflow: visible; }
.sr-arc { fill: none; stroke-width: 15; }
.sr-arc-red { stroke: #b24c50; }
.sr-arc-amber { stroke: #c9a552; }
.sr-arc-green { stroke: #38856b; }
.sr-gauge-ticks { fill: none; stroke: #fbf8f2; stroke-width: 2; }
.sr-gauge-needle { transform-origin: 160px 150px; transform: rotate(var(--needle-angle)); transition: transform 450ms ease; animation: sr-needle-enter 600ms ease both; }
@keyframes sr-needle-enter { from { transform: rotate(-90deg); } to { transform: rotate(var(--needle-angle)); } }
.sr-sample-band { display: block; text-align: center; color: var(--sample-accent); font-size: 14px; margin-block-start: -10px; }
.sr-sample-zones { display: flex; justify-content: space-between; direction: ltr; font-size: 10px; margin-block: 10px 4px; }
.sr-sample-zones .is-red { color: #a63239; }
.sr-sample-zones .is-amber { color: #805719; }
.sr-sample-zones .is-green { color: #176b52; }
.sr-sample-scale { text-align: center; font-size: 9px; opacity: .8; margin: 4px 0 16px; }
.signal h3.sr-sample-verdict { font-size: 21px; line-height: 1.65; margin: 0 0 14px; color: var(--sample-accent); }
.sr-sample-analysis { margin: 0; font-size: 12px; line-height: 1.8; }
.sr-sample-analysis > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; border-block-start: 1px solid color-mix(in srgb, var(--sample-accent) 18%, transparent); padding-block: 7px; }
.sr-sample-analysis dt { font-weight: 700; color: var(--sample-accent); }
.sr-sample-analysis dd { margin: 0; }
.sr-sample-levels { border: 0; padding: 0; margin: 16px 0 8px; display: flex; gap: 8px; }
.sr-sample-levels legend { font-size: 11px; margin-block-end: 8px; }
.sr-sample-levels button { cursor: pointer; width: 44px; height: 36px; border: 1px solid var(--sample-accent); border-radius: 8px; color: var(--sample-accent); background: transparent; font: inherit; }
.sr-sample-levels button[aria-pressed="true"] { background: var(--sample-accent); color: #fff; }
.sr-sample-disclaimer { font-size: 10px; line-height: 1.8; opacity: .85; margin-block: 8px 12px; }
.sr-sample-scene .sr-sample-back { color: #fff; background: var(--sample-accent); border: 1px solid var(--sample-accent); min-height: 40px; font-size: 12px; }
.sr-sample-details { margin-block-start: 16px; border-block-start: 1px solid var(--sample-accent); padding-block-start: 12px; }
.sr-sample-details > summary { cursor: pointer; color: var(--sample-accent); font-weight: 700; font-size: 13px; padding-block: 8px; }
.sr-sample-details .signal-button { background: var(--sample-accent); color: #fff; border-color: var(--sample-accent); }
.sinorate-panel[data-verdict-tone] :focus-visible { outline: 3px solid var(--sample-accent); outline-offset: 3px; }
@media (max-width: 720px) {
  .signal[data-sample-scene="true"] .signal-well { max-height: none; }
  .sr-sample-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sr-sample-frame { width: min(100%, 144px); margin-inline: auto; }
  .sr-frame-placeholder { padding: 12px; gap: 6px; }
  .sr-frame-placeholder::before { width: 28%; }
  .sr-frame-placeholder strong { font-size: 11px; }
  .sr-frame-placeholder > span:last-child { font-size: 9px; }
  .sr-sample-frame figcaption { font-size: 9px; line-height: 1.5; }
  .signal[data-sample-scene="true"] .sinorate-layout { padding-block: 10px; }
  .sr-sample-reading { width: 100%; }
  .sr-sample-gauge { max-width: 215px; }
  .sr-sample-top { gap: 8px; margin-block-end: 12px; }
  .signal h3.sr-sample-verdict { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-gauge-needle { animation: none !important; transition: none !important; }
}
@media print {
  .signal[data-sample-scene="true"] .signal-well { max-height: none; overflow: visible; }
  .sr-sample-levels, .sr-sample-back { display: none; }
  /* Paper cannot download, and forced black text vanished on the dark buttons and frame. */
  .sr-sample-actions, [data-kit-download], [data-practice-kit] { display: none !important; }
  .sr-frame-placeholder { background: white !important; box-shadow: none; }
}

/* Detailed coaching: evidence stays in the original report below this layer. */
.sr-detailed-guidance { margin-block: 24px; color: #152b39; line-height: 1.95; }
.sr-detailed-guidance h3 { font-size: 24px; margin: 0 0 12px; }
.sr-guide-kicker { color: #8b6524; font-size: 11px; letter-spacing: .03em; margin: 0 0 8px; }
.sr-guide-note { font-size: 12px; color: #59656b; }
.sr-guide-block { padding-block: 22px; border-block-end: 1px solid rgb(150 120 65 / 20%); }
.sr-guide-block h4 { font-size: 17px; margin: 0 0 10px; color: #102638; }
.sr-guide-block p { margin: 8px 0; font-size: 14px; }
.sr-guide-audience { padding: 20px; background: #f0e5d0; border-inline-start: 3px solid #bd9448; border-radius: 12px; margin-block: 22px; }
.sr-guide-audience > p:first-of-type { font-size: 19px; font-weight: 700; }
.sr-guide-criteria { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-block: 24px; align-items: start; }
.sr-guide-criterion { background: rgb(255 255 255 / 55%); border: 1px solid #dfd7c8; border-radius: 10px; min-width: 0; }
.sr-guide-criterion > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 12px; font-size: 12px; }
.sr-guide-criterion > summary::after { content: '+'; flex: none; color: #8b6524; }
.sr-guide-criterion[open] > summary::after { content: '−'; }
.sr-guide-score { direction: ltr; white-space: nowrap; font: 600 13px Inter,sans-serif; color: #745019; margin-inline-start: auto; }
.sr-guide-na { font-size: 10px; white-space: nowrap; color: #66717a; margin-inline-start: auto; }
.sr-guide-criterion-body { border-block-start: 1px solid #dfd7c8; padding: 12px; font-size: 12px; }
.sr-guide-criterion-body p { margin: 6px 0 12px; }
.sr-guide-hooks article { position: relative; padding: 16px 20px; margin-block: 12px; border: 1px solid #d8bc85; border-radius: 12px; background: #fcf6e9; }
.sr-guide-hooks article > span { color: #b99043; font-size: 12px; }
.sr-guide-hooks h5 { margin: 4px 0 8px; font-size: 17px; color: #112738; }
.sr-guide-hooks article p { font-size: 12px; color: #52616b; }
.sr-guide-tips { padding: 20px; background: #fffaf2; border: 1px solid #e1d3b8; border-radius: 14px; margin-block: 24px; }
.sr-guide-tips .sr-guide-block { padding-block: 14px; }
.sr-guide-tips .sr-guide-warning { padding: 18px; margin-block-start: 16px; border: 1px solid #bc3c42; border-inline-start-width: 4px; border-radius: 10px; background: #f9e9e8; color: #6c1f25; }
.sr-guide-warning h4 { color: #a02630; }
.sr-guide-warning .sr-guide-note { color: #7b4649; }
.sr-kit-premium {
  position: relative; overflow: hidden; margin-block: 28px; padding: 30px;
  color: #f5eedf; background: radial-gradient(ellipse at 0 0, #364036, transparent 65%), #071b2b;
  border: 1px solid #b99550; border-radius: 18px; box-shadow: inset 0 0 0 5px rgb(201 169 97 / 6%);
}
.sr-kit-premium .sr-guide-kicker { color: #d7b773; }
.signal .sr-kit-premium h3 { color: #f0d39a; font-size: 25px; line-height: 1.7; }
.sr-kit-premium > p, .sr-kit-premium li { font-size: 14px; }
.sr-kit-premium ol { padding-inline-start: 24px; margin-block: 24px; }
.sr-kit-premium li { padding-block: 10px; }
.sr-kit-premium .sr-kit-disclaimer { color: #b5c0c5; font-size: 11px; line-height: 1.9; }
.sr-kit-apps { display: flex; gap: 10px; flex-wrap: wrap; direction: ltr; margin-block: 20px 10px; }
.sr-kit-apps > span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #43534f; border-radius: 10px; font: 12px Inter,sans-serif; }
.sr-kit-app-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #203b40; color: #f1d395; }
.sr-kit-app-icon img { display: block; width: 20px; height: 20px; filter: invert(1); }
.sr-sample-details .sr-kit-premium .sr-kit-download, .sr-kit-premium .sr-kit-download { background: linear-gradient(115deg,#f4d99c,#c3984c); color: #0a2131; border: 1px solid #ebc879; font-size: 15px; min-height: 48px; padding-inline: 22px; }
@media(max-width:720px) {
  .sr-guide-criteria { grid-template-columns: minmax(0,1fr); }
  .sr-kit-premium { padding: 20px; }
  .signal .sr-kit-premium h3 { font-size: 21px; }
  .sr-guide-tips { padding: 14px; }
  .sr-guide-hooks article { padding: 14px; }
  .sr-kit-premium .sr-kit-download { width: 100%; }
}

/* SINORATE hero + audience proof — homepage #sinorate (Founder-approved screenshot) */
#sinorate.signal {
  justify-content: flex-start;
  min-height: 0;
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 80px);
  background:
    radial-gradient(42rem 18rem at 18% 0%, rgb(90 140 190 / 8%), transparent 58%),
    radial-gradient(36rem 16rem at 88% 12%, rgb(201 169 97 / 9%), transparent 52%),
    #04111f;
  overflow: visible;
}
#sinorate.signal .sinorate-layout,
#sinorate.signal[lang="fa"] .sinorate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "intro" "main";
  gap: clamp(24px, 3vw, 36px);
  width: min(calc(100% - 48px), 1300px);
  height: auto;
  min-height: 0;
  justify-items: stretch;
  align-content: start;
  padding-block: 0;
}
#sinorate.signal .sinorate-intro {
  grid-area: intro;
  width: min(100%, 920px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  grid-template-columns: none;
  grid-template-areas: none;
}
#sinorate.signal .sinorate-main-grid {
  grid-area: main;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "well" "proof";
  gap: 28px;
  width: 100%;
  min-width: 0;
  align-items: start;
}
#sinorate.signal .sinorate-well { grid-area: well; }
#sinorate.signal .sinorate-proof { grid-area: proof; }
#sinorate.signal .signal-eyebrow {
  justify-content: center;
  width: 100%;
  margin: 0;
  gap: 14px;
  color: var(--sr-gold);
  letter-spacing: .02em;
  text-transform: none;
  direction: ltr;
  unicode-bidi: isolate;
  font: 700 13px/1.5 var(--sig-sans);
}
#sinorate.signal[lang="fa"] .signal-eyebrow {
  font-family: var(--sig-fa);
  font-size: 13px;
  letter-spacing: 0;
}
#sinorate.signal .signal-eyebrow > [dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
#sinorate.signal .signal-eyebrow::before,
#sinorate.signal .signal-eyebrow::after {
  content: "";
  flex: 1;
  max-width: 88px;
  height: 1px;
  width: auto;
  border-radius: 0;
  opacity: .75;
}
#sinorate.signal .signal-eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--sr-gold));
}
#sinorate.signal .signal-eyebrow::after {
  background: linear-gradient(90deg, var(--sr-gold), transparent);
}
#sinorate.signal h2,
#sinorate.signal[lang="fa"] h2 {
  margin: 0;
  max-width: none;
  width: 100%;
  text-align: center;
  white-space: normal;
  text-wrap: wrap;
  overflow-wrap: normal;
  font-size: clamp(2.5rem, 3.8vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: 0;
}
#sinorate.signal h2 span {
  display: block;
  white-space: nowrap;
}
#sinorate.signal[lang="fa"] h2 {
  font-family: var(--sig-fa-display) !important;
  font-weight: 900;
  word-spacing: .08em;
}
#sinorate.signal[lang="tr"] {
  font-family: var(--sig-sans);
}
#sinorate.signal[lang="tr"] .sinorate-intro h2,
#sinorate.signal[lang="tr"] .signal-lede,
#sinorate.signal[lang="tr"] .sinorate-trust-line,
#sinorate.signal[lang="tr"] .sinorate-proof,
#sinorate.signal[lang="tr"] .sinorate-proof h3,
#sinorate.signal[lang="tr"] .sinorate-proof-list,
#sinorate.signal[lang="tr"] .sinorate-proof-cta {
  font-family: var(--sig-sans);
}
#sinorate.signal[lang="tr"] .sinorate-intro {
  text-align: center;
}
#sinorate.signal[lang="tr"] .sinorate-intro h2 {
  white-space: normal;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.22;
  text-align: center;
  margin-inline: auto;
}
#sinorate.signal[lang="tr"] h2 span {
  white-space: normal;
  text-wrap: balance;
}
@media (min-width: 1200px) {
  #sinorate.signal[lang="tr"] .sinorate-intro { width: min(100%, 1100px); }
  #sinorate.signal[lang="tr"] h2 span { white-space: nowrap; }
}
#sinorate.signal .signal-lede {
  display: block;
  margin: 0 auto;
  max-width: 44rem;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  text-align: center;
  font-size: clamp(1.125rem, 1.25vw, 1.3rem);
  line-height: 1.75;
  overflow-wrap: break-word;
}
#sinorate.signal[lang="fa"] .signal-lede {
  font-family: var(--sig-fa-long);
}
#sinorate.signal .sinorate-trust-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  max-width: 40rem;
  color: #d8d0c4;
  font-size: clamp(.92rem, 1vw, 1.02rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}
#sinorate.signal .sinorate-trust-line::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sr-gold);
  box-shadow: 0 0 0 4px rgb(201 169 97 / 14%);
}
#sinorate.signal .sinorate-well,
#sinorate.signal[lang="fa"] .sinorate-well {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  height: auto;
}
#sinorate.signal .sinorate-proof {
  min-width: 0;
  color: var(--sr-paper);
  padding-block: 8px 0;
}
#sinorate.signal .sinorate-proof h3 {
  margin: 0 0 18px;
  color: #f7f2e8;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
}
#sinorate.signal[lang="fa"] .sinorate-proof h3 {
  font-family: var(--sig-fa-display) !important;
  font-weight: 900;
  letter-spacing: 0;
  word-spacing: .08em;
}
#sinorate.signal .sinorate-proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sinorate.signal .sinorate-proof-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-block-end: 1px solid rgb(230 208 154 / 16%);
  color: #ece6da;
  font-size: clamp(1.05rem, 1.2vw, 1.28rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}
#sinorate.signal[lang="fa"] .sinorate-proof-list li {
  flex-direction: row;
  justify-content: flex-start;
  text-align: right;
  font-family: var(--sig-fa);
}
#sinorate.signal[lang="tr"] .sinorate-proof-list li {
  flex-direction: row;
  text-align: left;
}
#sinorate.signal .sinorate-proof-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--sr-gold);
}
#sinorate.signal .sinorate-proof-icon svg { display: block; }
#sinorate.signal .sinorate-proof-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-start: 22px;
  padding: 16px 18px;
  border: 1px solid rgb(201 169 97 / 55%);
  border-radius: 16px;
  background: rgb(4 17 31 / 55%);
  box-shadow: 0 0 0 1px rgb(201 169 97 / 8%);
}
#sinorate.signal[lang="fa"] .sinorate-proof-cta {
  flex-direction: row;
}
#sinorate.signal[lang="tr"] .sinorate-proof-cta {
  flex-direction: row;
}
#sinorate.signal .sinorate-proof-cta p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #f4eadc;
  font-size: clamp(.95rem, 1.05vw, 1.08rem);
  line-height: 1.7;
  overflow-wrap: break-word;
}
#sinorate.signal .sinorate-proof-cta span { display: block; }
#sinorate.signal .sinorate-proof-cta strong {
  display: block;
  margin-block-start: 4px;
  color: var(--sr-gold-light);
  font-weight: 700;
}
#sinorate.signal[lang="fa"] .sinorate-proof-cta strong {
  font-family: var(--sig-fa-display) !important;
  font-weight: 900;
}
#sinorate.signal .sinorate-proof-growth {
  flex: none;
  color: var(--sr-gold);
  display: grid;
  place-items: center;
}
#sinorate.signal .sinorate-proof-growth svg { display: block; }

@media (min-width: 1024px) {
  #sinorate.signal .sinorate-main-grid,
  #sinorate.signal[lang="fa"] .sinorate-main-grid {
    direction: ltr;
    grid-template-columns: minmax(560px, 620px) minmax(0, 1fr);
    grid-template-areas: "well proof";
    gap: clamp(48px, 5vw, 68px);
    align-items: center;
  }
  #sinorate.signal[lang="tr"] .sinorate-main-grid,
  #sinorate.signal[dir="ltr"] .sinorate-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 620px);
    grid-template-areas: "proof well";
  }
  #sinorate.signal[lang="fa"] .sinorate-proof,
  #sinorate.signal[lang="fa"] .sinorate-well { direction: rtl; }
  #sinorate.signal[lang="tr"] .sinorate-proof,
  #sinorate.signal[lang="tr"] .sinorate-well { direction: ltr; }
  #sinorate.signal .sinorate-proof-list li {
    white-space: nowrap;
  }
}

@media (min-width: 721px) and (max-height: 960px) {
  #sinorate.signal .signal-lede {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: clamp(1.125rem, 1.25vw, 1.3rem);
    line-height: 1.75;
  }
  #sinorate.signal .sinorate-layout {
    padding-block: 0;
    gap: clamp(24px, 3vw, 36px);
  }
}

@media (max-width: 1023px) {
  #sinorate.signal .sinorate-proof-list li { white-space: normal; }
  #sinorate.signal .sinorate-proof-cta {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  #sinorate.signal {
    padding-block: 36px max(40px, env(safe-area-inset-bottom, 0px));
  }
  #sinorate.signal .sinorate-layout,
  #sinorate.signal[lang="fa"] .sinorate-layout {
    width: min(calc(100% - 32px), 430px);
    gap: 22px;
    padding-block: 0;
  }
  #sinorate.signal h2,
  #sinorate.signal[lang="fa"] h2 {
    font-size: clamp(1.875rem, 8vw, 2.25rem);
    line-height: 1.35;
  }
  #sinorate.signal h2 span { white-space: normal; }
  #sinorate.signal .signal-lede {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  #sinorate.signal .sinorate-proof h3 {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
    text-align: start;
  }
  #sinorate.signal .sinorate-proof-list li {
    align-items: flex-start;
    white-space: normal;
    font-size: 1.05rem;
  }
  #sinorate.signal .sinorate-proof-cta {
    padding: 14px 14px 14px 16px;
  }
  #sinorate.signal .signal-button,
  #sinorate.signal .sinorate-input-mode,
  #sinorate.signal .sinorate-plan-tab {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sinorate.signal .sinorate-proof-icon,
  #sinorate.signal .sinorate-proof-cta {
    transition: none;
  }
}

#sinorate.signal[data-sample-scene="true"] .sinorate-intro,
#sinorate.signal[data-has-report="true"] .sinorate-intro,
#sinorate.signal[data-sample-scene="true"] .sinorate-proof,
#sinorate.signal[data-has-report="true"] .sinorate-proof {
  display: none;
}
#sinorate.signal[data-sample-scene="true"] .sinorate-layout,
#sinorate.signal[data-has-report="true"] .sinorate-layout,
#sinorate.signal[lang="fa"][data-sample-scene="true"] .sinorate-layout,
#sinorate.signal[lang="fa"][data-has-report="true"] .sinorate-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(calc(100% - 32px), 880px);
  gap: 16px;
  padding-block: 12px 24px;
}
#sinorate.signal[data-sample-scene="true"] .sinorate-main-grid,
#sinorate.signal[data-has-report="true"] .sinorate-main-grid {
  display: block;
  width: 100%;
}
#sinorate.signal[data-has-report="true"] .sinorate-well,
#sinorate.signal[data-sample-scene="true"] .sinorate-well,
#sinorate.signal[data-has-report="true"] .sinorate-panel,
#sinorate.signal[data-sample-scene="true"] .sinorate-panel,
#sinorate.signal[data-has-report="true"] .signal-well,
#sinorate.signal[data-sample-scene="true"] .signal-well,
#sinorate.signal[data-has-report="true"] #signal-report,
#sinorate.signal[data-sample-scene="true"] #signal-report {
  max-height: none;
  height: auto;
  overflow: visible;
  width: 100%;
}
#sinorate.signal[data-sample-scene="true"] .signal-well,
#sinorate.signal[data-has-report="true"] .signal-well {
  overflow-y: visible;
  max-height: none;
}
.sr-sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block-start: 4px;
}
.sr-sample-actions .sr-sample-back,
.sr-sample-actions [data-kit-download],
.sr-sample-actions [data-practice-kit] {
  min-height: 44px;
}

/* Pro by bank transfer (D-032) ---------------------------------------------
   The purchase panel speaks the approved UI lab's language: the upload card's
   dashed gold frame and radial wash for the price and the tracking reference,
   the plan tabs' gold pills for the purchase steps, the criterion cards for the
   terms and payment rows, Rey for Persian headings and actions. */
#sinorate.signal[data-buy-open] .sinorate-upload { display: none; }
/* One line, no tick (D-076): what happens to the upload, and the privacy text beside it. */
.sinorate-processing-notice { margin: 4px 0 6px; font-size: 12.5px; color: var(--sr-ink-soft); }
.sinorate-legal-doc { color: var(--sr-gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.sinorate-legal-doc:hover, .sinorate-legal-doc:focus-visible { color: #6d4a13; }
/* Optional, and separated from the notice above so the two never read as one. */
.sinorate-consult-consent {
  margin: 0 0 10px;
  padding-top: 8px;
  border-top: 1px solid rgb(9 28 49 / 10%);
  font-size: 12.5px;
  color: var(--sr-ink-soft);
}
.sinorate-consult-consent input { accent-color: var(--sr-gold-dark); }
.signal .sinorate-consent-hint { margin: 3px 0 0; font-size: 11.5px; color: var(--sr-muted); }

.sinorate-buy { display: grid; gap: 14px; padding: 8px 2px 4px; color: var(--sr-ink); }
.signal .sinorate-buy p { margin: 0; }
.sinorate-buy-head { display: grid; justify-items: center; gap: 4px; text-align: center; padding-block: 6px 2px; }
.signal .sinorate-buy-eyebrow { grid-area: auto; justify-content: center; margin: 0 0 2px; color: var(--sig-gold-deep); }
.signal .sinorate-buy-title { margin: 0; color: var(--sr-ink); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.3; letter-spacing: -.02em; }
.signal[lang="fa"] .sinorate-buy-title { font-family: var(--sig-fa-display); font-weight: 900; line-height: 1.45; letter-spacing: 0; word-spacing: .14em; }
.sinorate-buy-title em { font-style: normal; color: var(--sr-gold-dark); }
.sinorate-buy-title:focus { outline: none; }
.sinorate-buy-sub { color: #7a6a4e; font-size: 14px; line-height: 1.6; }
.signal[lang="fa"] .sinorate-buy-sub { font-family: var(--sig-fa-long); font-weight: 600; }

.sinorate-buy-price,
.sinorate-buy-reference {
  border: 1.5px dashed rgb(184 140 58 / 58%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgb(240 204 122 / 22%), transparent 58%),
    linear-gradient(180deg, #fffdf7, #f3e6c8 78%, #efe0bb);
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgb(201 169 97 / 12%);
}
.sinorate-buy-price { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px; }
.sinorate-buy-price > div { display: grid; gap: 2px; }
.sinorate-buy-price strong { color: var(--sr-ink); font-size: clamp(1.75rem, 3.6vw, 2.3rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sinorate-buy-price span { color: #7a6a4e; font-size: 13px; }
.sinorate-buy-badge { width: 50px; height: 50px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--sr-gold-dark); background: rgb(255 248 230 / 90%); box-shadow: 0 0 0 7px rgb(201 169 97 / 14%); }
.sinorate-buy-badge svg { width: 24px; height: 24px; }

.sinorate-buy-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: buy-step; }
.sinorate-buy-steps li { counter-increment: buy-step; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 10px; border: 1px solid rgb(181 142 79 / 22%); border-radius: 12px; background: #f3eee4; color: var(--sr-ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: center; }
.signal[lang="fa"] .sinorate-buy-steps li { font-family: var(--sig-fa-display); font-weight: 900; word-spacing: .14em; }
.sinorate-buy-steps li::before { content: counter(buy-step); width: 22px; height: 22px; display: grid; place-items: center; flex: none; border-radius: 50%; background: rgb(201 169 97 / 18%); color: var(--sig-gold-deep); font: 700 12px/1 var(--sig-sans); }
.signal[lang="fa"] .sinorate-buy-steps li::before { content: counter(buy-step, persian); font-family: var(--sig-fa); }
.sinorate-buy-steps li[aria-current="step"] { background: linear-gradient(180deg, var(--sr-gold-light), var(--sr-gold-dark)); border-color: #eab568; box-shadow: 0 8px 18px rgb(201 169 97 / 22%); }
.sinorate-buy-steps li[aria-current="step"]::before { background: rgb(9 28 49 / 12%); color: var(--sr-ink); }
.signal[lang] .sinorate-buy-steps li.is-done::before { content: "✓"; background: var(--sig-ok); color: #fff; }

.sinorate-buy-terms { display: grid; gap: 10px; }
.signal .sinorate-buy h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.sinorate-buy-termlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sinorate-buy-termlist li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(181 142 79 / 16%); border-radius: 10px; background: #fcfaf5; font-size: 13.5px; line-height: 1.6; }
/* The binding term first and full width: it is the one a reader must not miss. */
.sinorate-buy-termlist li:first-child { grid-column: 1 / -1; border-color: rgb(184 140 58 / 45%); background: rgb(240 204 122 / 16%); font-weight: 700; }
.sinorate-buy-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; background: rgb(201 169 97 / 14%); color: var(--sr-gold-dark); }
.sinorate-buy-icon svg { width: 17px; height: 17px; }
.sinorate-buy-accept { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid rgb(184 140 58 / 40%); border-radius: 12px; background: #fffdf7; font-size: 14px; font-weight: 700; }
.sinorate-buy-accept label { cursor: pointer; line-height: 1.6; }
.sinorate-buy-accept input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sr-gold-dark); }
.sinorate-buy-accept:has(input:checked) { border-color: var(--sr-gold-dark); background: rgb(240 204 122 / 18%); }

.sinorate-buy-step { display: grid; gap: 10px; padding: 14px; border: 1px solid rgb(181 142 79 / 16%); border-radius: 14px; background: #fcfaf5; }
.sinorate-buy-step-head { display: flex; align-items: center; gap: 10px; }
.sinorate-buy-hint { color: var(--sr-muted); font-size: 13px; line-height: 1.6; }
.sinorate-buy-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.sinorate-buy-form label { flex: 1 0 100%; color: var(--sr-ink-soft); font-size: 12.5px; font-weight: 700; }
.sinorate-buy-form input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 8px 14px; border: 1px solid rgb(184 140 58 / 32%); border-radius: 12px; background: #fff; color: var(--sr-ink); font: inherit; font-size: 15px; }
.sinorate-buy .sinorate-primary { min-height: 46px; border-radius: 12px; }
.sinorate-buy-form .sinorate-primary { flex: 0 1 auto; }
.signal-button.sinorate-buy-secondary { min-height: 44px; border: 1px solid rgb(181 142 79 / 30%); border-radius: 12px; background: #f3eee4; color: var(--sr-ink); box-shadow: none; }
.signal[lang="fa"] .sinorate-buy :is(.sinorate-primary, .sinorate-buy-secondary) { font-family: var(--sig-fa-display); font-weight: 900; word-spacing: .14em; }
.sinorate-buy-done { display: flex; align-items: center; gap: 8px; color: var(--sig-ok); font-weight: 700; }
.sinorate-buy-done-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sig-ok-soft); }
.sinorate-buy-done-icon svg { width: 15px; height: 15px; }
.sinorate-buy-order-step > .sinorate-primary,
.sinorate-buy-order > .signal-button { width: 100%; }

.sinorate-buy-order { display: grid; gap: 10px; }
.sinorate-buy-pill { justify-self: center; padding: 5px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.sinorate-buy-pill[data-buy-status="PENDING"] { color: var(--sig-warn); background: var(--sig-warn-soft); }
.sinorate-buy-pill[data-buy-status="CONFIRMED"] { color: var(--sig-ok); background: var(--sig-ok-soft); }
.sinorate-buy-pill:is([data-buy-status="EXPIRED"], [data-buy-status="CANCELLED"]) { color: var(--sig-alert); background: var(--sig-alert-soft); }
.sinorate-buy-reference { display: grid; justify-items: center; gap: 6px; padding: 16px; }
.sinorate-buy-label { color: #7a6a4e; font-size: 12.5px; font-weight: 700; }
.sinorate-buy-mono { direction: ltr; unicode-bidi: isolate; color: var(--sr-ink); font: 700 15px/1.4 var(--sig-mono); overflow-wrap: anywhere; }
.sinorate-buy-reference .sinorate-buy-mono { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: .08em; }
.sinorate-buy-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sinorate-buy-row { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid rgb(181 142 79 / 16%); border-radius: 10px; background: #fcfaf5; }
.sinorate-buy-row[data-buy-field="destination"] { grid-column: 1 / -1; }
.sinorate-buy-row dt { color: var(--sr-muted); font-size: 12px; font-weight: 700; }
.sinorate-buy-row dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-weight: 700; }
.sinorate-buy-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid #eab568; border-radius: 99px; background: linear-gradient(180deg, var(--sr-gold-light), var(--sr-gold-dark)); color: var(--sr-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sinorate-buy-copy-icon, .sinorate-buy-copy-icon svg { width: 14px; height: 14px; display: grid; }
.sinorate-buy-note { padding: 10px 12px; border-radius: 10px; background: rgb(201 169 97 / 10%); font-size: 13.5px; line-height: 1.7; }
.sinorate-buy-confirmed { display: grid; justify-items: center; gap: 10px; padding: 16px; }
.sinorate-buy-confirmed .sinorate-buy-badge { color: var(--sig-ok); box-shadow: 0 0 0 7px var(--sig-ok-soft); }

.sinorate-buy-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.sinorate-buy-support:empty { display: none; }
.sinorate-buy-support > span { flex: 1 0 100%; text-align: center; color: var(--sr-muted); font-size: 12.5px; font-weight: 700; }
.sinorate-buy-support a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid rgb(181 142 79 / 26%); border-radius: 99px; background: #f3eee4; color: var(--sr-ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.sinorate-buy-support a:hover { border-color: var(--sr-gold-dark); }
.sinorate-buy-link-icon, .sinorate-buy-link-icon svg { width: 17px; height: 17px; display: grid; color: var(--sr-gold-dark); }
.sinorate-buy-handle { font-family: var(--sig-sans); font-size: 12.5px; color: var(--sr-ink-soft); }

.sinorate-buy-status { padding: 10px 14px; border-radius: 10px; color: var(--sig-ok); background: var(--sig-ok-soft); font-weight: 600; }
.sinorate-buy-status:empty { display: none; }
.sinorate-buy-status[data-tone="alert"] { color: var(--sig-alert); background: var(--sig-alert-soft); }
.sinorate-buy-link { justify-self: center; min-height: 40px; padding: 4px 10px; border: 0; background: none; color: var(--sr-muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sinorate-buy-link:hover { color: var(--sr-ink); }

@media (max-width: 560px) {
  .sinorate-buy-termlist,
  .sinorate-buy-rows { grid-template-columns: minmax(0, 1fr); }
  .sinorate-buy-steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; }
  .sinorate-buy-price { flex-direction: column; gap: 10px; text-align: center; }
  .sinorate-buy-form .sinorate-primary { flex: 1 1 100%; }
}
/* Focus moves to the title for screen readers only; an id-scoped rule elsewhere
   would otherwise draw a control's outline around a heading. */
#sinorate .sinorate-buy-title:is(:focus, :focus-visible) { outline: none; }
/* The report area's divider belongs to reports, not to the purchase panel. */
#sinorate.signal[data-buy-open] #signal-report { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
/* No account step (D-042): the tracking code is what the buyer keeps, and the
   same code brings Pro back in another browser. */
.sinorate-buy-keep { text-align: center; color: #7a6a4e; font-size: 12.5px; line-height: 1.6; }
.sinorate-buy-restore { padding: 0 14px; border: 1px solid rgb(181 142 79 / 16%); border-radius: 12px; background: #fcfaf5; }
.sinorate-buy-restore > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--sr-ink-soft); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.sinorate-buy-restore[open] { padding-block-end: 14px; }

/* Free analyses for a WhatsApp lead (D-043): the same card language as the purchase panel. */
.sinorate-lead-form { display: grid; gap: 10px; }
.sinorate-lead-field { display: grid; gap: 4px; }
.sinorate-lead-field input { width: 100%; }
.sinorate-lead-form .sinorate-buy-accept input { width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; flex: none; }
.sinorate-lead-form .sinorate-buy-accept label { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Who is selling (D-044, D-046): one quiet line that opens in place. */
.sinorate-buy-seller:empty { display: none; }
.sinorate-buy-seller { margin: 14px 0 0 auto; font-size: .78rem; width: fit-content; text-align: right; }
.sinorate-buy-seller > summary { cursor: pointer; opacity: .45; list-style: none; width: fit-content;
  margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.sinorate-buy-seller .sinorate-buy-docs { justify-content: flex-end; margin: 8px 0 0; font-size: .78rem; }
.sinorate-buy-seller > summary::-webkit-details-marker { display: none; }
.sinorate-buy-seller > summary:hover, .sinorate-buy-seller[open] > summary { opacity: .9; }
.sinorate-buy-seller[open] { opacity: .88; }
.sinorate-buy-sellerlist { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.sinorate-buy-sellerlist dt { opacity: .72; }
.sinorate-buy-sellerlist dd { margin: 0; }
@media (max-width: 480px) { .sinorate-buy-sellerlist { grid-template-columns: 1fr; gap: 2px; }
  .sinorate-buy-sellerlist dd { margin-bottom: 6px; } }

/* The four documents, linked before anything is accepted (D-044). */
.sinorate-buy-docs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 14px; font-size: .9rem; }
.sinorate-buy-doc { text-decoration: underline; text-underline-offset: 3px; }

/* How to use it, and what Pro adds (D-048): an invitation, not a legal notice. */
.sinorate-buy-howto { margin: 14px 0 0; border: 1px solid rgba(210,171,103,.42); border-radius: 12px;
  background: rgba(210,171,103,.07); }
.sinorate-buy-howto > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 8px; }
.sinorate-buy-howto > summary::-webkit-details-marker { display: none; }
.sinorate-buy-howto > summary::after { content: '+'; margin-inline-start: auto; opacity: .7; }
.sinorate-buy-howto[open] > summary::after { content: '\2212'; }
.sinorate-buy-howto-body { padding: 0 16px 14px; }
.sinorate-buy-howto-steps { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 8px; }
.sinorate-buy-howto-body h5 { margin: 0 0 4px; font-size: .95rem; }
.sinorate-buy-howto-body p { margin: 0; opacity: .88; }

/* Pay first, read if you want to (D-048). The destination is one card, lit from
   above, with every line copyable on its own (D-049). */
.sinorate-buy-payment { margin: 16px 0 0; perspective: 1000px; }
.sinorate-pay-card { position: relative; display: grid; gap: 10px; padding: 18px 18px 16px;
  border-radius: 18px; color: #F7F2E9;
  background: linear-gradient(145deg, #12233d 0%, #0a1526 55%, #070f1c 100%);
  box-shadow: 0 18px 34px -22px rgba(3,8,19,.95), 0 2px 0 rgba(255,255,255,.07) inset,
    0 0 0 1px rgba(210,171,103,.28);
  transform: rotateX(1.2deg); transform-style: preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease; }
.sinorate-pay-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 80% at 12% 0%, rgba(255,255,255,.14), transparent 55%); pointer-events: none; }
.sinorate-pay-card:hover { transform: rotateX(0) translateY(-2px);
  box-shadow: 0 26px 44px -24px rgba(3,8,19,.95), 0 2px 0 rgba(255,255,255,.09) inset,
    0 0 0 1px rgba(210,171,103,.42); }
@media (prefers-reduced-motion: reduce) { .sinorate-pay-card, .sinorate-pay-card:hover { transform: none; transition: none; } }
.sinorate-pay-head { display: flex; align-items: center; gap: 10px; opacity: .9; }
.sinorate-pay-chip { display: inline-flex; width: 34px; height: 26px; align-items: center; justify-content: center;
  border-radius: 7px; background: linear-gradient(140deg, #e8cd93, #b98f45); color: #0a1526; }
.sinorate-pay-brand { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
/* Label above, value below, one copy button beside both. */
.sinorate-pay-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding-top: 10px; border-top: 1px solid rgba(247,242,233,.12); }
.sinorate-pay-label { grid-column: 1; font-size: .74rem; opacity: .62; }
.sinorate-pay-value, .sinorate-pay-line .sinorate-buy-mono { grid-column: 1; color: #F7F2E9; font-weight: 600; }
.sinorate-pay-line .sinorate-buy-copy { grid-column: 2; grid-row: 1 / span 2; align-self: center;
  background: rgba(247,242,233,.1); color: #F7F2E9; border-color: rgba(247,242,233,.22); }
.sinorate-pay-line .sinorate-buy-copy:hover { background: rgba(247,242,233,.18); }
.sinorate-pay-line.is-wide .sinorate-buy-mono { font-size: 1.22rem; letter-spacing: .14em; direction: ltr; }
.sinorate-pay-card .sinorate-buy-copy-icon { color: inherit; }

/* The box that opens when the buyer says they paid: the code, the receipt, nothing else. */
.sinorate-buy-dialog { border: 0; padding: 0; background: transparent; max-width: min(92vw, 420px); }
.sinorate-buy-dialog::backdrop { background: rgba(4,9,18,.72); backdrop-filter: blur(3px); }
.sinorate-buy-dialog-box { display: grid; gap: 14px; padding: 22px 20px; border-radius: 20px;
  background: var(--signal-ground, #0b1526); color: #F7F2E9;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(210,171,103,.32); }
.sinorate-buy-dialog-title { margin: 0; font-size: 1.1rem; }
.sinorate-buy-code { display: grid; gap: 6px; justify-items: center; padding: 14px;
  border-radius: 14px; background: rgba(210,171,103,.12); border: 1px dashed rgba(210,171,103,.5); }
.sinorate-buy-code .sinorate-buy-mono { font-size: 1.5rem; letter-spacing: .18em; color: #e8cd93; }
.sinorate-buy-dialog .sinorate-buy-mono { color: #F7F2E9; }
.sinorate-buy-code-label { color: rgba(247,242,233,.72); }
.sinorate-buy-code-label { font-size: .78rem; opacity: .7; }
.sinorate-buy-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sinorate-buy-drop { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 18px 14px; border-radius: 14px; border: 1.5px dashed rgba(210,171,103,.55);
  background: rgba(210,171,103,.07); text-align: center; transition: border-color .2s, background .2s; }
.sinorate-buy-drop:hover, .sinorate-buy-drop:focus-within { border-color: rgba(210,171,103,.9); background: rgba(210,171,103,.12); }
.sinorate-buy-drop.is-chosen { border-style: solid; border-color: rgba(120,190,140,.8); background: rgba(120,190,140,.12); }
.sinorate-buy-drop-icon { display: inline-flex; color: #e8cd93; }
.sinorate-buy-orsupport { margin: 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; color: rgba(247,242,233,.82); }
.sinorate-buy-orsupport a { color: #e8cd93; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sinorate-buy-dialog .sinorate-buy-link { color: rgba(247,242,233,.78); justify-self: center; }
.sinorate-buy-dialog .sinorate-buy-link:hover { color: #F7F2E9; }
.sinorate-buy-dialog label { color: rgba(247,242,233,.78); font-size: .86rem; }
.sinorate-buy-dialog textarea { background: rgba(247,242,233,.06); color: #F7F2E9;
  border: 1px solid rgba(247,242,233,.22); }
.sinorate-buy-dialog .sinorate-buy-keep { color: rgba(247,242,233,.66); }
.sinorate-buy-ordersummary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sinorate-buy-reading { margin: 0 0 12px; }
.sinorate-buy-reading > summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.sinorate-buy-receipt { margin: 14px 0 0; display: grid; gap: 8px; }
.sinorate-buy-receipt h4 { margin: 0; font-size: 1rem; }
.sinorate-buy-receipt textarea { width: 100%; border-radius: 10px; padding: 10px; font: inherit; }
.sinorate-buy-receipt input[type="file"] { font: inherit; }
.sinorate-buy-done-note { margin: 4px 0 0; opacity: .85; }

.sinorate-buy-receipt-done { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0;
  padding: 12px 14px; border-radius: 12px; background: rgba(120,190,140,.12); }
.sinorate-buy-receipt-done p { margin: 0; }

/* The act, directly under the card: gold with black type, green with white
   type the moment the order opens (D-050, D-051). */
.sinorate-buy-paid { width: 100%; justify-content: center; margin-top: 12px; padding-block: 16px;
  font-size: 1.04rem; border-radius: 14px; font-weight: 700;
  background: linear-gradient(140deg, #efd49a, #c9a552); color: #0a1526; border-color: rgba(201,165,82,.9);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.sinorate-buy-paid:hover:not([disabled]) { background: linear-gradient(140deg, #f5dfae, #d4b264); color: #0a1526; }
.sinorate-buy-paid.is-paid, .sinorate-buy-paid.is-paid:hover:not([disabled]) {
  background: linear-gradient(140deg, #3f9d6b, #2a7d4f); color: #ffffff; border-color: rgba(42,125,79,.9);
  box-shadow: 0 10px 24px -14px rgba(47,143,91,.9); }
.sinorate-buy-paid.is-paid .sinorate-buy-arrow, .sinorate-buy-paid.is-paid svg { color: #ffffff; }
/* What follows the act: the status check first, then how it stands. */
.sinorate-buy-orderlater { display: grid; gap: 10px; margin-top: 12px; }
.sinorate-buy-terms { margin-top: 14px; }
.sinorate-buy-readingblock { margin-top: 16px; }

/* Pro is an upgrade offered beside the analysis, not a plan to pick first (D-052). */
.sinorate-plan-upgrade { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; margin: 12px 0 0; padding: 13px 18px; border-radius: 14px;
  font: inherit; font-weight: 700; letter-spacing: .02em;
  color: #F7F2E9; border: 1px solid rgb(201 165 82 / 62%);
  background: linear-gradient(145deg, #12233d 0%, #0a1526 58%, #070f1c 100%);
  box-shadow: 0 14px 26px -18px rgb(3 8 19 / 95%), 0 1px 0 rgb(255 255 255 / 10%) inset,
    0 0 0 1px rgb(201 165 82 / 18%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sinorate-plan-upgrade strong { background: linear-gradient(120deg, #f6e3b6, #c9a552 55%, #f6e3b6);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sinorate-plan-upgrade .sinorate-lock-inline { color: #e8cd93; }
.sinorate-plan-upgrade:hover:not([disabled]) { transform: translateY(-1px); border-color: rgb(201 165 82 / 95%);
  box-shadow: 0 18px 30px -18px rgb(3 8 19 / 95%), 0 1px 0 rgb(255 255 255 / 14%) inset,
    0 0 0 1px rgb(201 165 82 / 34%); }
@media (prefers-reduced-motion: reduce) { .sinorate-plan-upgrade:hover:not([disabled]) { transform: none; } }
.sinorate-plan-upgrade[hidden] { display: none; }

/* The upgrade spans the pane and catches the light once, slowly (D-053). */
.sinorate-plan-upgrade { width: 100%; justify-content: center; position: relative; overflow: hidden; }
.sinorate-plan-upgrade::after { content: ''; position: absolute; inset-block: 0; inline-size: 38%;
  inset-inline-start: -45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,245,222,.5), transparent);
  animation: sinorate-shine 5.5s ease-in-out infinite; }
@keyframes sinorate-shine { 0%, 62% { inset-inline-start: -45%; } 92%, 100% { inset-inline-start: 115%; } }
@media (prefers-reduced-motion: reduce) { .sinorate-plan-upgrade::after { animation: none; display: none; } }

/* A Pro criterion wears its name in gold while it drifts past. */
.sinorate-criterion.is-pro { border-color: rgba(201,165,82,.55); }
/* A Pro card is one centred column: icon, name, then the badge under it, so the
   word sits in the middle of the card and never lands on the words (D-055). */
.sinorate-criterion.is-pro { grid-template-columns: minmax(0, 1fr); justify-items: center;
  text-align: center; gap: 6px; padding-block: 10px; }
.sinorate-criterion.is-pro .sinorate-criterion-name { justify-content: center; min-block-size: 2.4em; }
.sinorate-criterion-pro { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; color: #0a1526;
  background: linear-gradient(140deg, #f3dcab, #c9a552);
  box-shadow: 0 2px 8px -3px rgb(120 92 28 / 55%), 0 0 0 1px rgb(255 255 255 / 45%) inset; }
.sinorate-criterion { position: relative; }


/* ---------------------------------------------------------------------------
   The printed document. Built by print-document.mjs, alive only while the
   browser's print dialogue is open, and never shown on screen.
   --------------------------------------------------------------------------- */
.signal-print-doc { display: none; }

/* ---- The second pass of a script (enrichment) -------------------------------
   Built from the report's own pieces: the digest cards for the problem and the
   fixes, the prompt box for the script to record, the script-entry textarea
   for answers. Nothing here introduces a colour or a radius the report did not
   already use. */
.signal-v4-optimize { margin-block-start: 18px; display: grid; gap: 14px; }
.signal-v4-optimize > h4 { margin: 0; color: #102638; font-size: 16px; }
.signal-v4-optimize > h4:focus { outline: none; }
.signal-v4-optimize-lead { margin: 0; color: var(--sr-ink-soft); font-size: 14px; line-height: 1.9; }
.signal-v4-optimize > p { margin: 0; font-size: 14px; line-height: 1.9; }
.signal-v4-optimize .signal-v4-digest-col ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.8; }
.signal-v4-optimize .signal-v4-digest-col p { margin: 0; font-size: 14px; line-height: 1.9; }
.signal-v4-optimize-form { display: grid; gap: 16px; padding: 18px 20px; border: 1px solid #e4ddcf; border-radius: 16px; background: #fdfaf4; }
.signal-v4-optimize-question { display: grid; gap: 6px; min-width: 0; }
.signal-v4-optimize-question label { color: #102638; font-size: 14px; font-weight: 700; line-height: 1.8; }
.signal-v4-optimize-quote { margin: 0; color: var(--sr-ink-soft); font-size: 13px; line-height: 1.7; }
.signal-v4-optimize-quote q { color: #6b4a16; font-weight: 700; }
.signal-v4-optimize-question textarea {
  box-sizing: border-box; width: 100%; min-height: 84px; padding: 12px 14px; resize: vertical;
  border: 1px solid rgb(184 140 58 / 28%); border-radius: 12px; background: #fff; color: var(--sr-ink);
  font: inherit; font-size: 14px; line-height: 1.8;
}
.signal-v4-optimize-question textarea:focus-visible { outline: 2px solid var(--sig-gold-deep); outline-offset: 2px; }
.signal-v4-optimize-count { justify-self: end; color: var(--sr-ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.signal-v4-optimize-hint, .signal-v4-optimize-credit, .signal-v4-optimize-note { margin: 0; font-size: 13px; line-height: 1.8; }
.signal-v4-optimize-consent { margin: 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--sig-gold-deep); color: #102638; font-size: 13px; line-height: 1.8; }
.signal-v4-optimize-submit { justify-self: start; }
.signal-v4-optimize-running { padding: 14px 18px; border: 1px dashed var(--sig-gold-deep); border-radius: 16px; background: #fcf8f0; }
.signal-v4-optimize-running p { margin: 0; }
.signal-v4-optimize-running-title { color: #102638; font-weight: 700; }
.signal-v4-optimize-error { margin: 0; color: #9a3b1b; font-size: 13px; line-height: 1.8; }
.signal-v4-optimize-hook, .signal-v4-optimize-cta { padding: 14px 18px; border: 1px solid #e4ddcf; border-radius: 16px; background: #fdfaf4; }
.signal-v4-optimize-hook p, .signal-v4-optimize-cta p { margin: 4px 0 0; font-size: 14px; line-height: 1.9; }
.signal-v4-optimize-script { margin-block-start: 0; }
.signal-v4-optimize-script .signal-v4-prompt-text { max-height: none; font-size: 14px; line-height: 2; }
.signal-v4-optimize-changes { padding: 14px 18px; border: 1px solid #e4ddcf; border-radius: 16px; background: #fff; }
.signal-v4-optimize-changes summary { cursor: pointer; color: #102638; font-weight: 700; }
.signal-v4-optimize-changes ol { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 12px; }
.signal-v4-optimize-change p { margin: 4px 0 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.signal-v4-optimize-rule code { font-size: 12px; }
.signal-v4-optimize-kept ul { margin: 8px 0 0; padding-inline-start: 20px; font-size: 13px; line-height: 1.8; }
@media (max-width: 520px) {
  .signal-v4-optimize-form, .signal-v4-optimize-hook, .signal-v4-optimize-cta, .signal-v4-optimize-changes { padding: 14px; }
  .signal-v4-optimize-submit { justify-self: stretch; }
}

@media print {
  body.is-printing-doc > *:not(.signal-print-doc) { display: none !important; }
  body.is-printing-doc { background: #fff !important; }

  /* `font-synthesis` is not inherited into the print sheet from the screen rule,
     so it has to be restated here. Without it Chromium drew a fake bold for the
     800s below -- a smeared Medium, embedded in the PDF as one more reason the
     text came apart. `--sp-bold` is the heaviest weight the Latin files really
     carry; the Persian override below raises it because Rey and IRANSans do
     carry 800. Nothing here asks for a weight that has no file. */
  .signal-print-doc { display: block !important; color: #091c31; font-family: Inter, system-ui, sans-serif;
    font-size: 9.5pt; line-height: 1.55; text-align: start; overflow-wrap: anywhere;
    font-synthesis: none;
    --sp-bold: 700;
    --sig-fa: IRANSans, Tahoma, sans-serif; --sp-heading: Inter, system-ui, sans-serif;
    --sp-reading: Inter, system-ui, sans-serif; }
  .signal-print-doc[lang="fa"] { font-family: var(--sig-fa);
    --sp-bold: 800;
    --sp-heading: Rey, IRANSans, Tahoma, sans-serif; --sp-reading: IRANSans, Tahoma, sans-serif; }
  .signal-print-doc, .signal-print-doc * { box-sizing: border-box; background: none !important; box-shadow: none !important; }
  /* The UA gives `strong` and `b` the keyword `bolder`, which against a 700
     parent computes to 900 -- a weight no Latin file here has. It resolved back
     to the 700 face anyway, so nothing was gained and the declaration lied
     about what was available. Emphasis is pinned to the real bold instead. */
  .signal-print-doc :is(b, strong) { font-weight: var(--sp-bold); }
  .signal-print-doc p { orphans: 3; widows: 3; }

  /* Sections flow. Only whole cards refuse to split, so pages fill to the
     bottom instead of breaking early and leaving the sheet half empty. */
  .sp-sec { margin: 0 0 10px; }
  .sp-h2 { margin: 14px 0 7px; padding-bottom: 5px; border-bottom: 1.5px solid #b78e3e;
           color: #091c31; font-size: 13pt; font-weight: var(--sp-bold); break-after: avoid;
           font-family: var(--sp-heading); letter-spacing: 0; line-height: 1.45; }
  .sp-h3 { margin: 10px 0 5px; color: #35424f; font-size: 10pt; font-weight: var(--sp-bold);
           letter-spacing: 0; break-after: avoid; }
  .sp-lead { margin: 0 0 8px; color: #35424f; font-size: 9pt; break-after: avoid; }

  /* --- masthead: a band, not a page --- */
  .sp-masthead { padding-bottom: 9px; border-bottom: 3px double #b78e3e; margin-bottom: 12px; break-inside: avoid; }
  .sp-masthead-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .sp-brand { display: flex; align-items: center; gap: 10px; }
  .sp-wordmark { color: #8c6e2c; font-size: 9pt; font-weight: var(--sp-bold); letter-spacing: .32em; }
  .sp-plan { border: 1px solid #aeb6bc; border-radius: 4px; padding: 2px 8px;
    color: #35424f; font-size: 8pt; font-weight: 700; direction: ltr; }
  .sp-plan.is-pro { color: #8c6e2c; border-color: #b78e3e; border-bottom-width: 3px; }
  .sp-mast-score { margin: 0; color: #091c31; font-size: 28pt; font-weight: var(--sp-bold); line-height: 1; }
  .sp-mast-suffix { font-size: 10pt; font-weight: 600; }
  .sp-mast-title { margin: 2px 0 5px; color: #091c31; font-size: 21pt; font-weight: var(--sp-bold); line-height: 1.15;
                   font-family: var(--sp-heading); }
  .sp-mast-lead { margin: 0; color: #35424f; font-size: 9.5pt; max-width: 50em; }
  .sp-mast-meta { margin: 5px 0 0; color: #65707b; font-size: 8.5pt; }
  .sp-mast-basis { margin: 7px 0 0; padding: 5px 9px; border: 1px solid rgb(128 87 25 / 55%);
                   color: #6b4a16; font-size: 9pt; line-height: 1.5; break-inside: avoid; }

  /* --- the map --- */
  .sp-road { margin: 0; padding: 0; list-style: none; }
  .sp-road li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0;
                border-top: 1px solid rgb(9 28 49 / 12%); break-inside: avoid;
                border-inline-start: 3px solid var(--sp-urgency, transparent); padding-inline-start: 7px; }
  .sp-road li:last-child { border-bottom: 1px solid rgb(9 28 49 / 12%); }
  .sp-road-num { flex: none; width: 23px; color: #091c31; border-bottom: 3px solid var(--sp-urgency, #b78e3e);
    font-size: 11pt; font-weight: var(--sp-bold); text-align: center; }
  .sp-road-body { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 10px; }
  .sp-road-body strong { color: #091c31; font-size: 10pt; }
  .sp-road-score { flex: none; color: #8c6e2c; font-weight: 700; font-size: 9.5pt; }

  /* --- priorities: dense cards that never split --- */
  .sp-priority { margin: 0 0 9px; padding: 8px 11px; border: 1px solid #d5dbe0;
                 border-inline-start: 4px solid var(--sp-urgency, #b78e3e);
                 border-inline-end-width: 3px; border-bottom: 4px solid var(--sp-urgency, #b78e3e);
                 border-radius: 7px; break-inside: avoid; }
  .sp-priority-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px;
    padding-bottom: 4px; border-bottom: 1px solid #d5dbe0; }
  .sp-rail-num { flex: none; color: #091c31; font-size: 22pt; font-weight: var(--sp-bold); line-height: 1.2;
    min-width: 30px; padding-inline-end: 8px; border-inline-end: 3px solid var(--sp-urgency, #b78e3e);
    font-family: var(--sp-heading); }
  .sp-priority-titles { flex: 1; }
  .sp-rail-label { margin: 0 0 2px; color: #65707b; font-size: 7.5pt; }
  .sp-priority-name { margin: 0; color: #091c31; font-size: 11.5pt; font-weight: var(--sp-bold);
                      font-family: var(--sp-heading); }
  .sp-priority-score { flex: none; margin: 0; color: #8c6e2c; font-size: 8.5pt; }
  .sp-priority-score strong { font-size: 15pt; font-weight: var(--sp-bold); }

  .sp-block { margin: 0 0 5px; padding-inline-start: 9px; border-inline-start: 2.5px solid #d9d2c4; }
  .sp-block.is-seen { border-color: #1b5c45; }
  .sp-block.is-means { border-color: #b78e3e; }
  .sp-block.is-do { border-color: #091c31; }
  .sp-block:last-child { margin-bottom: 0; }
  .sp-block-title { margin: 0; color: #091c31; font-size: 8.5pt; font-weight: var(--sp-bold); }
  .sp-block-body { margin: 0; color: #35424f; font-size: 9.5pt; line-height: 1.6; }

  /* The rewrite pages. The script may run past one page; each change row may not. */
  .sp-optimize .sp-opt-note, .sp-opt-meta { margin: 2px 0 6px; color: #35424f; font-size: 8.5pt; }
  .sp-opt-hook, .sp-opt-cta { margin: 0 0 8px; padding: 6px 9px; border-inline-start: 2.5px solid #b78e3e; break-inside: avoid; }
  .sp-opt-hook p, .sp-opt-cta p { margin: 2px 0 0; }
  .sp-opt-script { margin: 0 0 8px; }
  .sp-opt-script .sp-block-title { break-after: avoid; }
  .sp-opt-script-text { margin: 2px 0 0; white-space: pre-wrap; unicode-bidi: plaintext; font-size: 10pt; line-height: 1.8; }
  .sp-opt-changes { margin: 0; padding-inline-start: 16px; }
  .sp-opt-change { margin: 0 0 7px; break-inside: avoid; }
  .sp-opt-change p { margin: 1px 0; unicode-bidi: plaintext; }
  .sp-opt-kept { margin: 2px 0 0; padding-inline-start: 16px; font-size: 9pt; }

  /* --- the full detail, two to a row --- */
  .sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sp-card { padding: 7px 9px; border: 1px solid rgb(9 28 49 / 16%); border-radius: 5px;
             border-inline-start: 2.5px solid #b78e3e; break-inside: avoid; }
  .sp-card:only-child { grid-column: 1 / -1; }
  .sp-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0 0 2px; }
  .sp-card-head strong { color: #091c31; font-size: 9.5pt; }
  .sp-card-score { flex: none; color: #8c6e2c; font-weight: 700; font-size: 9pt; }
  .sp-card-body { margin: 0; color: #35424f; font-size: 8.5pt; line-height: 1.5; }
  .sp-card-fix { margin: 3px 0 0; color: #5a4a22; font-size: 8.5pt; line-height: 1.5; }
  .sp-card[data-status="LOCKED"] { border-inline-start-color: #aeb6bc; border-style: dashed; }
  .sp-card[data-status="LOCKED"] .sp-card-score { color: #35424f; }

  /* --- findings and actions --- */
  .sp-finding { margin: 0 0 7px; padding-inline-start: 9px; border-inline-start: 2.5px solid #b78e3e; break-inside: avoid; }
  .sp-finding-obs { margin: 0; color: #091c31; font-size: 9.5pt; font-weight: 700; }
  .sp-finding-int { margin: 1px 0 0; color: #35424f; font-size: 9pt; }
  .sp-finding-rec { margin: 1px 0 0; color: #5a4a22; font-size: 9pt; }
  .sp-actions { margin: 0; padding-inline-start: 18px; list-style-type: decimal; }
  .sp-actions li { margin: 0 0 4px; color: #091c31; font-size: 9.5pt; break-inside: avoid; }
  .signal-print-doc[lang="fa"] .sp-actions, .signal-print-doc[lang="fa"] .sp-hooks { list-style-type: persian; }
  .sp-action-why { color: #65707b; font-weight: 400; }

  /* --- the Pro pages: gold enough to feel bought, quiet enough to read --- */
  .sp-pro > .sp-h2 { border-bottom-color: #8c6e2c; color: #6d5420; }
  .sp-pro > .sp-h2::after { content: " · PRO"; color: #b78e3e; font-size: 8pt; letter-spacing: .12em; }
  .sp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 0 8px; }
  .sp-stat { padding: 9px; border: 1px solid #b78e3e; border-bottom-width: 3px;
    border-inline-end-width: 3px; border-radius: 5px; text-align: center; break-inside: avoid; }
  .sp-stat strong { display: block; color: #8c6e2c; font-size: 16pt; font-weight: var(--sp-bold); line-height: 1.1;
                    font-family: var(--sp-heading); }
  .sp-stat span { color: #65707b; font-size: 7.5pt; }
  .sp-pro-type { margin: 0 0 6px; color: #35424f; font-size: 9pt; }
  .sp-obs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .sp-obs-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px;
    padding: 5px 8px; border: 1px solid rgb(183 142 62 / 40%); border-radius: 4px; break-inside: avoid; }
  .sp-obs-id { color: #8c6e2c; font-size: 8pt; font-weight: var(--sp-bold);
    direction: ltr; unicode-bidi: isolate; }
  .sp-obs-bits { color: #35424f; font-size: 8pt; }
  .sp-obs-note { grid-column: 1 / -1; margin: 0; color: #65707b; font-size: 8pt; }
  .sp-pro-card { margin: 0 0 9px; padding: 8px 11px; border: 1px solid #b78e3e;
    border-inline-start: 4px solid #b78e3e; border-inline-end-width: 3px;
    border-bottom: 4px solid #8c6e2c; border-radius: 7px; break-inside: avoid; }
  .sp-pro-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin-bottom: 5px; padding-bottom: 4px; border-bottom: 1px solid #d8bd7a; }
  .sp-pro-score { flex: none; color: #8c6e2c; font-size: 11pt; font-weight: var(--sp-bold); }
  .sp-hooks { margin: 0; padding-inline-start: 18px; list-style-type: decimal; }
  .sp-hooks li { margin: 0 0 5px; color: #091c31; font-size: 10pt; break-inside: avoid; }

  /* --- closing --- */
  /* The prompt opens the report, so it is sized to be the first thing seen and
     the easiest thing to select. */
  .sp-prompt-heading { font-size: 19pt; line-height: 1.45; margin-top: 9px; border: 0; padding: 0; }
  .sp-prompt-sec > .sp-lead { color: #1b5c45; font-weight: 600; margin-bottom: 9px; }
  .sp-prompt { margin: 0; padding: 12px 15px; border: 1.5px solid #b78e3e;
    border-inline-start-width: 4px; border-inline-end-width: 4px; border-bottom: 5px solid #8c6e2c;
    border-radius: 7px; color: #091c31; font-size: 10pt; line-height: 1.55;
    font-family: var(--sp-reading); letter-spacing: normal; word-spacing: normal;
    user-select: text; -webkit-user-select: text; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .sp-prompt-part { margin: 0 0 9px; white-space: pre-wrap; unicode-bidi: plaintext; }
  .sp-prompt-part:last-child { margin-bottom: 0; }
  .sp-prompt-part::first-line { font-weight: 700; }
  .sp-prompt-service { margin: 7px 0 0; padding-inline-start: 9px; border-inline-start: 2.5px solid #b78e3e;
                       color: #5a4a22; font-size: 9pt; line-height: 1.6; }
  .sp-limit { margin: 0 0 4px; color: #4a5866; font-size: 8.5pt; }
}

/* ── Under a finished analysis: turn the engine on (founder, 2026-10-03) ── */
.signal-engine-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #f6eedd); border: 1px solid rgb(181 142 79 / 38%);
  box-shadow: 0 8px 22px rgb(60 45 20 / 8%);
}
.signal-engine-cta-go { flex: none; }
.signal-engine-cta-note { flex: 1 1 220px; margin: 0; color: var(--sr-ink); opacity: .78; font-size: 13.5px; line-height: 1.7; }
@media (max-width: 720px) {
  .signal-engine-cta { padding: 12px; }
  .signal-engine-cta-go { width: 100%; }
}
@media print { .signal-engine-cta { display: none !important; } }

/* ── The finished report takes the phone's and the tablet's width (founder, 2026-10-03) ──
   While a report is shown, the frames around it step back; the report keeps its own layout. */
@media (max-width: 720px) {
  .signal[data-has-report="true"] .sinorate-layout { margin-inline: 8px; }
  .signal[data-has-report="true"] .sinorate-well { padding: 0; }
  .signal[data-has-report="true"] .signal-well { padding-inline: 12px; }
}
@media (min-width: 721px) and (max-width: 1023px) {
  .signal[data-has-report="true"] .sinorate-layout { margin-inline: 12px; }
  .signal[data-has-report="true"] .sinorate-well { padding: 0; }
}
