/* LawServices.ai design system — matched to the client's reference design
   (tigrangareginyan.bubbleapps.io): Plus Jakarta Sans, navy ink #111c38,
   blue gradient buttons, lavender section washes, soft cards. */

:root {
  /* Interface: Noto Sans (Latin, Cyrillic) + Noto Sans Armenian, one family
     for every script. Legal text: the same, or Noto Serif (reader's choice). */
  --font: "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --font-serif: "Noto Serif", "Noto Serif Armenian", Georgia, serif;
  --font-doc: var(--font);
  /* type scale */
  --fs-page: 26px;     /* page title, 600 */
  --fs-section: 19px;  /* section title, 600 */
  --fs-body: 15px;     /* interface text */
  --fs-doc: 16px;      /* legal document */
  --lh-doc: 1.72;
  --fs-label: 13.5px;  /* field labels, 500 */
  --fs-hint: 12.5px;   /* helper text */
  --font-mono: "IBM Plex Mono", "Noto Sans Armenian", ui-monospace, monospace;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #fafaff;
  --surface: #ffffff;
  --card-soft: #f8f8fa;
  --ink: #111c38;
  --ink-dark: #111c38;
  --ink-muted: #667085;  /* 5:1 on white; the old grey had 3.4:1 */
  --body: #4b5168;
  --border: #e6e8f0;
  --accent: #3155c6;
  --accent-dark: #24429f;
  --accent-soft: #ebf0fb;
  --accent-fill: #3155c6;  /* a fill under white text */
  --success-bg: #ecf7f2;
  --risk-bg: #fef3f2;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --purple: #3155c6;  /* no separate violet: one accent */
  --lavender: #ebf0fb;
  --navy: #111c38;
  --risk: #b42318;
  --success: #16805d;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;
  --grad: linear-gradient(90deg, #24429f 0%, #3155c6 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 60px rgba(17, 28, 56, 0.08);
  --shadow-card: 0 8px 24px rgba(17, 28, 56, 0.08);
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --hero-gradient: linear-gradient(180deg, #fdfcff 0%, #f9f8fe 100%);
  --section-wash: #faf9fe;
  --tools-wash: linear-gradient(180deg, #faf9fe 0%, #eef0fc 55%, #ffffff 100%);
  color-scheme: light;
}

/* Dark theme: follows system preference by default, or the explicit
   data-theme attribute set by the theme toggle (base.html inline script,
   persisted in localStorage). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1228;
    --bg-soft: #131c38;
    --bg-soft-2: #0f1730;
    --surface: #141d3a;
    --card-soft: #18223f;
    --ink: #eef2fb;
    --ink-dark: #070b1c;
    --ink-muted: #a3acc4;
    --body: #c8cfe0;
    --border: #26314f;
    --accent: #7f9cf0;
    --accent-dark: #a9bdf5;
    --accent-soft: #1d2a52;
    --accent-fill: #3d5bc9;
    --lavender: #1d2a52;
    --success: #4cc38f;
    --success-bg: rgba(76, 195, 143, 0.12);
  --warn: #f5b84a;
  --warn-bg: rgba(245, 184, 74, 0.13);
    --warn: #f5b84a;
    --warn-bg: rgba(245, 184, 74, 0.13);
    --danger: #f97066;
    --risk: #f97066;
    --risk-bg: rgba(249, 112, 102, 0.12);
    --danger-bg: rgba(249, 112, 102, 0.12);
    --danger-border: rgba(249, 112, 102, 0.32);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(11, 18, 40, 0.9);
    --hero-gradient: linear-gradient(180deg, #0b1228 0%, #0f1834 100%);
    --section-wash: #0f1834;
    --tools-wash: linear-gradient(180deg, #0b1228 0%, #131c3c 45%, #0b1228 100%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1228;
  --bg-soft: #131c38;
  --bg-soft-2: #0f1730;
  --surface: #141d3a;
  --card-soft: #18223f;
  --ink: #eef2fb;
  --ink-dark: #070b1c;
  --ink-muted: #a3acc4;
  --body: #c8cfe0;
  --border: #26314f;
  --accent: #7f9cf0;
  --accent-dark: #a9bdf5;
  --accent-soft: #1d2a52;
  --accent-fill: #3d5bc9;
  --lavender: #1d2a52;
  --success: #4cc38f;
  --success-bg: rgba(76, 195, 143, 0.12);
  --danger: #f97066;
  --risk: #f97066;
  --risk-bg: rgba(249, 112, 102, 0.12);
  --danger-bg: rgba(249, 112, 102, 0.12);
  --danger-border: rgba(249, 112, 102, 0.32);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --navbar-bg: rgba(11, 18, 40, 0.9);
  --hero-gradient: linear-gradient(180deg, #0b1228 0%, #0f1834 100%);
  --section-wash: #0f1834;
  --tools-wash: linear-gradient(180deg, #0b1228 0%, #131c3c 45%, #0b1228 100%);
  color-scheme: dark;
}

body {
  transition: background-color 0.15s ease, color 0.15s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.heading {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 56px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}

/* Interactive logo (<ls-logo>, static/js/lawservices-logo.js). theme="auto"
   instances read their ink colour from this variable. Before the script
   defines the element, reserve its box so the header doesn't jump. */
:root {
  --ls-logo-ink: #16203a;
}

:root[data-theme="dark"] {
  --ls-logo-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ls-logo-ink: #ffffff;
  }
}

ls-logo:not(:defined) {
  display: inline-block;
  width: 190px;
  height: 36px;
}

ls-logo[icon-only]:not(:defined) {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-menu {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 400;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
}

.lang-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 60;
}

.lang-menu-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
}

.lang-menu-list a:hover,
.lang-menu-list a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .navbar-inner {
    padding: 12px 20px;
  }
}

@media (max-width: 560px) {
  /* phones: language + one action (log in, or the account) */
  .navbar-inner { padding: 10px 12px; }
  .navbar-actions .nav-logout, .navbar-actions .nav-start, .navbar-actions .theme-toggle { display: none; }
}
.navbar .brand-mini { display: none; }
@media (max-width: 420px) {
  .navbar .brand-full { display: none; }
  .navbar .brand-mini { display: inline-flex; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40, 69, 214, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: #c9d2f5;
}

:root[data-theme="dark"] .btn-secondary {
  border-color: var(--border);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-block {
  width: 100%;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 18px;
  margin-top: 20px;
}

.card p {
  font-size: 14px;
  margin-top: 12px;
}

/* Landing (reference design) */

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-h2 {
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.lp-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 18px auto 0;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: 110px 0 150px;
  text-align: center;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
}



.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lp-eyebrow svg {
  width: 20px;
  height: 20px;
}

.lp-h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 960px;
  margin: 18px auto 0;
}

.lp-lead {
  color: var(--ink-muted);
  font-size: 20px;
  max-width: 640px;
  margin: 20px auto 0;
}

.lp-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.lp-actions .btn {
  min-width: 176px;
  padding: 15px 24px;
  font-size: 15px;
}

.lp-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 52px auto 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.lp-trust svg {
  width: 16px;
  height: 16px;
}












.sk {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.lp-risks {
  background: var(--section-wash);
  padding: 104px 0 120px;
}

.lp-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 72px auto 0;
}

.lp-risk-card {
  background: var(--card-soft);
  border-radius: 14px;
  padding: 26px 24px 28px;
}

.lp-risk-icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--danger);
}

.lp-risk-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 70px;
}

.lp-risk-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--body);
}

.lp-risk-card p svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.lp-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 24px;
  font-size: 16px;
  color: var(--body);
}

.lp-banner > svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.lp-banner p {
  flex: 1;
  margin: 0;
}

.lp-banner strong {
  color: var(--ink);
}

.lp-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: break-word;
}

.lp-link:hover {
  text-decoration: underline;
}

.lp-tools {
  background: var(--tools-wash);
  padding: 120px 0;
}

.lp-tool-list {
  display: grid;
  gap: 16px;
  max-width: 730px;
  margin: 72px auto 0;
}

.lp-tool {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
}

.lp-tool-body {
  padding: 28px 24px 24px;
}

.lp-tool-body h3 {
  font-size: 25px;
  font-weight: 600;
}

.lp-tool-desc {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.lp-checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
}

.lp-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-checks svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
  flex-shrink: 0;
}

.lp-tool-body .btn {
  width: 100%;
  max-width: 326px;
  padding: 12px 20px;
  font-size: 15px;
}










.lp-how {
  padding: 120px 0 80px;
}

.lp-tabs {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
  padding: 4px;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.lp-tabs button {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.lp-tabs button.active {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(17, 28, 56, 0.08);
}
























.lp-split {
  padding: 120px 0;
  scroll-margin-top: 60px;
}

.lp-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.lp-split-text .lp-h2 {
  text-align: left;
  margin: 0;
  max-width: 480px;
}

.lp-split-text > p {
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 470px;
  margin: 18px 0 0;
}

.lp-mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 36px;
}

.lp-mini-features svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.lp-mini-features h4 {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.lp-mini-features p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.lp-shot {
  border-radius: 12px;
  padding: 52px 36px;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #24429f 0%, #3155c6 40%, #dbe3f7 75%, #8aa3e6 100%);
}

.lp-app {
  display: grid;
  grid-template-columns: 110px 1fr;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(40, 20, 120, 0.3);
  overflow: hidden;
  min-height: 300px;
  color: #111c38;
}

.lp-app-side {
  background: #f7f8fc;
  padding: 16px 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.lp-app-logo {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}

.lp-app-logo i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ec4d6;
}

.lp-app-logo i + i {
  margin-left: -5px;
  background: #3155c6;
}

.lp-app-side .sk {
  background: #e3e6f2;
  height: 6px;
}

.lp-app-side .sk.active {
  background: #c9d4ff;
}

.lp-app-main {
  padding: 16px 18px;
}

.lp-app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.lp-app-head strong {
  display: block;
  font-size: 12px;
}

.lp-app-head .sk {
  margin-top: 6px;
  width: 120px;
  height: 5px;
  background: #e3e6f2;
}

.lp-app-btn {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #3155c6;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.lp-app-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #eef0f6;
}

.lp-app-row .sk {
  height: 5px;
  background: #e3e6f2;
}

.lp-app-status {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e3f8ec;
  color: #1f9d5b;
  white-space: nowrap;
}

.lp-app-status.risk {
  background: #fdeceb;
  color: #b42318;
}

.lp-doc-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
}

.lp-doc-line .sk {
  flex: 1;
  height: 5px;
  background: #e3e6f2;
}

.lp-doc-line.flag {
  background: #fff1f0;
}

.lp-doc-line.flag .sk {
  background: #f6c3bf;
}

.lp-doc-line.ok {
  background: #effaf4;
}

.lp-doc-line.ok .sk {
  background: #bfe8d0;
}

@media (max-width: 900px) {
  .lp-risk-grid,
  .lp-split-inner,
  .lp-tool {
    grid-template-columns: 1fr;
  }
  .lp-split-inner {
    gap: 40px;
  }
  .lp-split-text {
    order: -1;
  }
}

@media (max-width: 560px) {
  .lp-mini-features {
    grid-template-columns: 1fr;
  }
  .lp-banner {
    flex-wrap: wrap;
  }
  .lp-shot {
    padding: 28px 14px;
  }
  .lp-app {
    grid-template-columns: 1fr;
  }
  .lp-app-side {
    display: none;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Auth forms */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 64px 24px;
  background: var(--hero-gradient);
  min-height: calc(100vh - 65px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
}

.auth-card h1 {
  font-size: 20px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 110, 232, 0.15);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 12px;
  color: rgba(77, 84, 100, 0.7);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-info {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.foot-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-note a {
  font-weight: 600;
  color: var(--accent);
}

/* Dashboard */

.dashboard {
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard h1 {
  font-size: var(--fs-page);
  font-weight: 600;
}

.dashboard-section {
  margin-top: 32px;
}

.dashboard-section h2 {
  font-size: var(--fs-section);
  margin-bottom: 16px;
  font-weight: 600;
}

table.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.members th,
table.members td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--accent);
}

.invite-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.invite-form .field {
  margin-top: 0;
  flex: 1;
  min-width: 200px;
}

.invite-link-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-all;
}

.qr-box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.qr-box img {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.secret-code {
  font-family: ui-monospace, monospace;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 0.05em;
  font-size: 14px;
  word-break: break-all;
}

/* Home: platform tiles */

.home {
  padding: 40px 24px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.home h1 {
  font-size: 24px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 37, 81, 0.12);
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 26px;
  height: 26px;
}

.tile h3 {
  font-size: 18px;
  margin-top: 18px;
}

.tile p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.tile-soon {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Home: news */

.news-section {
  margin-top: 40px;
}

.news-section h2 {
  font-size: var(--fs-section);
  margin-bottom: 16px;
  font-weight: 600;
}

.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.topic-filter a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.topic-filter a.active {
  background: var(--accent-fill);
  border-color: var(--accent);
  color: #fff;
}

.news-grid {
  display: grid;
  gap: 14px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-topic-pill {
  font-size: 11px;
}

.news-date {
  font-size: 12px;
  color: var(--ink-muted);
}

.news-card h3 {
  font-size: 15px;
  margin-top: 6px;
}

.news-card p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.news-empty {
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

/* App shell: sidebar layout for platform sections (Legal / HR) */

/* App shell: full-height dark sidebar, like the aline.co reference — a
   permanent vertical rail from the very top of the viewport, not a light
   column sitting under a separate top navbar (navbar/footer are disabled
   entirely for these pages, see app_shell.html). */

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

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--ink-dark);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 40;
  transition: width 0.15s ease;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 6px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sidebar-brand-logo {
  display: inline-block;
}

.sidebar-brand-icon {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-brand-logo {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-brand-icon {
  display: block;
}

#sidebar-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#sidebar-toggle svg {
  width: 15px;
  height: 15px;
}

.sidebar-locale-switch {
  display: flex;
  gap: 4px;
  padding: 0 6px;
  margin-bottom: 16px;
}

.sidebar-locale-switch a {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-locale-switch a.active {
  background: var(--accent-fill);
  color: #fff;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 14px 6px;
}

.sidebar-sub-title {
  font-family: var(--font);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav a, .sidebar-item, .sidebar-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  white-space: nowrap;
}

.sidebar-support-link {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.sidebar-support-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav a.active .sidebar-icon {
  color: #5ea0ff;
}

.badge-soon {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
}

.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Collapsed sidebar: icons only */

.app-shell.sidebar-collapsed .sidebar {
  width: 64px;
}

.app-shell.sidebar-collapsed .sidebar-sub-title,
.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .badge-soon,
.app-shell.sidebar-collapsed .sidebar-locale-switch,
.app-shell.sidebar-collapsed .sidebar-user-email {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-top {
  flex-direction: column;
  gap: 12px;
}

.app-shell.sidebar-collapsed .sidebar-nav a,
.app-shell.sidebar-collapsed .sidebar-item,
.app-shell.sidebar-collapsed .sidebar-support-link,
.app-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
}

.app-shell.sidebar-collapsed .app-main {
  margin-left: 64px;
}

.app-main {
  margin-left: 240px;
  padding: 32px 24px;
  min-height: 100vh;
  transition: margin-left 0.15s ease;
}

.app-main h1 {
  font-size: var(--fs-page);
  font-weight: 600;
  line-height: 1.25;
}
.app-main h2 { font-weight: 600; }

@media (max-width: 760px) {
  .sidebar {
    width: 64px;
  }
  .sidebar-brand-logo,
  .sidebar-sub-title,
  .sidebar-label,
  .badge-soon,
  .sidebar-locale-switch,
  .sidebar-user-email {
    display: none;
  }
  .sidebar-brand-icon {
    display: inline-block;
  }
  .sidebar-top {
    flex-direction: column;
    gap: 12px;
  }
  .sidebar-nav a, .sidebar-item, .sidebar-support-link, .sidebar-user {
    justify-content: center;
  }
  .app-main {
    margin-left: 64px;
  }
}

/* Support widget */

#support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
}

#support-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent-fill);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 110, 232, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#support-toggle:hover {
  transform: scale(1.05);
}

#support-toggle svg {
  width: 26px;
  height: 26px;
}

#support-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#support-panel-header {
  background: var(--ink-dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 18px;
}

#support-panel-body {
  padding: 16px 18px;
}

#support-intro {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

#support-message, #support-email {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
  resize: vertical;
}

#support-message:focus, #support-email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 110, 232, 0.15);
}

#support-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 480px) {
  #support-panel {
    width: calc(100vw - 40px);
  }
}

html[lang="hy"] .lp-h1 {
  font-size: clamp(32px, 4.2vw, 58px);
}

/* ── Landing: interactive blocks (ported from the reference widgets) ── */

.lp-hero {
  background-color: #fdfcff;
  background-image: url("../img/landing/hero-ribbon.23f011109f62.webp");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 1920px auto;
}

:root[data-theme="dark"] .lp-hero {
  background-color: var(--bg);
  background-image: radial-gradient(55% 45% at 100% 100%, rgba(49, 85, 198, 0.35) 0%, rgba(49, 85, 198, 0) 70%);
  background-size: auto;
}

:root[data-theme="dark"] .dp-box {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .dp-status {
  background: rgba(255, 255, 255, 0.08);
}

.lp-eyebrow img {
  width: 24px;
  height: 28px;
}

/* Hero demo: alternates Contract Analysis / Hiring Pack */
.dp {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 64px auto 0;
}

.dp-box {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.dp-status {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1a1a1a;
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.5s ease;
}

:root[data-theme="dark"] .dp-status {
  color: var(--ink);
}

.dp-doc {
  position: absolute;
  z-index: 2;
  width: 220px;
  height: 280px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: all 0.8s ease;
}

.dp-doc-contract {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.dp-doc-hiring {
  top: 52%;
  left: -140px;
  transform: translateY(-50%);
}

.dp-doc-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.9rem;
  line-height: 1;
}

.dp-doc-inner img {
  width: 80px;
  height: 80px;
}

.dp-lines {
  width: 80%;
  margin-top: 18px;
}

.dp-doc-hiring .dp-lines {
  width: 72%;
  margin-top: 14px;
}

.dp-lines i {
  display: block;
  height: 4px;
  margin: 12px 0;
  border-radius: 2px;
  background: #3155c6;
  opacity: 0.22;
}

.dp-doc-hiring .dp-lines i {
  background: #3155c6;
  opacity: 0.28;
}

.dp-scan {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 6px;
  opacity: 0;
  transition: all 0.5s ease;
}

.dp-scan-contract {
  top: 0;
  background: linear-gradient(90deg, transparent, #3155c6, #3155c6, transparent);
  box-shadow: 0 0 28px rgba(40, 69, 214, 0.6);
}

.dp-scan-hiring {
  top: 52%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #3155c6, #3155c6, transparent);
  box-shadow: 0 0 28px rgba(135, 98, 204, 0.6);
}

.dp-marks {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.5s ease;
}

.dp-marks span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  background: #3155c6;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.dp-marks-hiring span {
  background: #3155c6;
}

/* Tool cards: client's orb artwork + diagonal background */
.lp-tool-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: url("../img/landing/tool-card-bg.2ba03ede3a8a.webp") no-repeat center / cover;
}

.lp-tool-art img {
  width: 150px;
  height: 150px;
}

/* How it works: auto-advancing 3-stage workflows (click a step to take over) */
.lp-how .lp-tabs {
  margin-bottom: 0;
}

.wf {
  max-width: 1100px;
  margin: 16px auto 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Armenian", sans-serif;
}

.wf-box {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 40px 0;
  border-radius: 28px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  box-shadow: inset 0 6px 24px rgba(0, 0, 0, 0.03), 0 15px 60px rgba(0, 0, 0, 0.08);
}

.wf-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.wf-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.wf-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-circle:hover {
  transform: scale(1.08);
}

.wf-circle.active {
  background: linear-gradient(135deg, #3155c6, #3155c6);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
  animation: wfPulseGlow 2s ease-in-out infinite;
}

.wf-circle.completed {
  background: linear-gradient(135deg, #16805d, #34d399);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.wf-line {
  position: absolute;
  z-index: 1;
  top: 35px;
  height: 4px;
  background: #e2e8f0;
  background-size: 200% 100%;
}

.wf-line-1 {
  left: calc(16px + 105px);
  right: calc(50% + 35px);
}

.wf-line-2 {
  left: calc(50% + 35px);
  right: calc(16px + 105px);
}

.wf-line.active {
  background-image: linear-gradient(90deg, #3155c6, #3155c6, #3155c6);
  animation: wfLineFlow 2s ease-in-out infinite;
}

.wf-title {
  margin-top: 15px;
  max-width: 140px;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.wf-title.active {
  color: #1e40af;
  font-weight: 700;
  opacity: 1;
  transform: translateY(-2px);
}

.wf-stages {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
}

.wf-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-stage[data-stage="1"] {
  min-height: 340px;
}

.wf-stage.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wf-upload {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 300px;
  margin: 0 auto;
  border: 4px dashed #cbd5e1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.wf-upload:hover {
  border-color: #3155c6;
  background: rgba(59, 130, 246, 0.02);
}

.wf-upload-icon {
  margin-bottom: 25px;
  font-size: 4.5rem;
  line-height: 1;
  animation: wfFloat 4s ease-in-out infinite;
}

.wf-upload-title {
  margin-bottom: 12px;
  padding: 0 14px;
  color: #334155;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.wf-upload-text {
  max-width: 520px;
  margin-bottom: 30px;
  padding: 0 16px;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.wf-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.wf-badges span {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  background: #fff;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.wf-badges span:hover {
  border-color: #3155c6;
  transform: translateY(-2px);
}

.wf-bar {
  display: none;
  width: 420px;
  max-width: 80%;
  height: 8px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: #e2e8f0;
}

.wf-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #3155c6, #3155c6);
  transition: width 3s ease;
}

.wf-files {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  opacity: 0;
}

.wf-file {
  width: 160px;
  height: 220px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-file-icon {
  margin-bottom: 20px;
  font-size: 3rem;
  line-height: 1;
}

.wf-file-name {
  padding: 0 15px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

.wf-analysis {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 420px;
  margin: 0 auto;
}

.wf-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  background: linear-gradient(135deg, #3155c6, #6f8bdc);
  box-shadow: 0 25px 80px rgba(49, 85, 198, 0.5);
  transform: translate(-50%, -50%);
  animation: wfCorePulse 3s ease-in-out infinite;
}

.wf-flow {
  position: absolute;
  inset: 0;
}

.wf-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3155c6, #3155c6);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
  animation: wfDataFlow 4s linear infinite;
}

.wf-grid {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 600px;
  max-width: 100%;
  opacity: 0;
}

.wf-card {
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
}

.wf-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(59, 130, 246, 0.1);
}

.wf-stats {
  display: flex;
  gap: 15px;
}

.wf-stats b {
  display: block;
  color: #1e40af;
  font-size: 1.3rem;
  font-weight: 800;
}

.wf-stats span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
}

.wf-report {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.wf-report-head {
  padding: 24px 32px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.wf-report-title {
  margin-bottom: 5px;
  font-size: 1.5rem;
  font-weight: 800;
}

.wf-report-sub {
  font-size: 0.95rem;
  opacity: 0.8;
}

.wf-report-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 26px 32px 30px;
}

.wf-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
}

.wf-col-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wf-dot, #16805d);
}

.wf-item {
  padding: 14px 18px;
  border-radius: 16px;
  border-left: 4px solid var(--wf-item, #16805d);
  background: #f8fafc;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.wf-item.medium {
  border-left-color: var(--wf-item-medium, #3155c6);
}

.wf-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
}

.wf-item-head b {
  color: var(--wf-score, #16805d);
  font-size: 1.3rem;
  font-weight: 800;
}

.wf-item-desc {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wf-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wf-tag, #059669);
  background: var(--wf-tag-bg, rgba(16, 185, 129, 0.12));
}

.wf-rec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border-left: 4px solid #3155c6;
  background: #f0f9ff;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.wf-rec::before {
  content: "✓";
  flex-shrink: 0;
  color: #3155c6;
  font-size: 1.3rem;
  line-height: 1.1;
}

.wf-contract {
  --wf-dot: #ef4444;
  --wf-item: #ef4444;
  --wf-item-medium: #f59e0b;
  --wf-score: #ef4444;
  --wf-tag: #dc2626;
  --wf-tag-bg: rgba(239, 68, 68, 0.1);
}

.wf-desc {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 0;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.wf-desc-title {
  margin-bottom: 10px;
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 800;
}

.wf-desc-text {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

@keyframes wfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes wfPulseGlow {
  0%, 100% { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6); }
}

@keyframes wfLineFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wfCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 25px 80px rgba(49, 85, 198, 0.5); }
  50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 30px 90px rgba(49, 85, 198, 0.6); }
}

@keyframes wfDataFlow {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}

@media (max-width: 900px) {
  .wf-box {
    min-height: 0;
    padding: 24px 0;
  }
  .wf-circle {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .wf-line {
    top: 22px;
  }
  .wf-line-1 {
    left: calc(16px + 92px);
    right: calc(50% + 22px);
  }
  .wf-line-2 {
    left: calc(50% + 22px);
    right: calc(16px + 92px);
  }
  .wf-step {
    width: 120px;
  }
  .wf-title {
    font-size: 0.8rem;
  }
  .wf-progress {
    margin-bottom: 24px;
  }
  .wf-stages {
    min-height: 740px;
  }
  .wf-files {
    flex-direction: column;
    gap: 12px;
  }
  .wf-file {
    width: 220px;
    height: 70px;
    flex-direction: row;
    gap: 12px;
  }
  .wf-file-icon {
    margin: 0;
    font-size: 1.8rem;
  }
  .wf-analysis {
    height: 680px;
  }
  .wf-core {
    top: 48px;
    width: 90px;
    height: 90px;
    font-size: 2.6rem;
  }
  .wf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 0;
  }
  .wf-card {
    padding: 16px;
  }
  .wf-report-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .wf-report-head {
    padding: 20px;
  }
  .wf-upload {
    height: 360px;
  }
  .wf-badges {
    gap: 8px;
  }
  .wf-badges span {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .dp-doc {
    width: 170px;
    height: 220px;
  }
  .dp-box {
    height: 320px;
  }
  .dp-marks span {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* FAQ */
.lp-faq {
  padding: 120px 0;
}

.lp-faq-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
}

.lp-faq-side {
  display: flex;
  flex-direction: column;
}

.lp-faq-side .lp-h2 {
  text-align: left;
  margin: 0;
  max-width: 480px;
}

.lp-faq-side > p {
  max-width: 400px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.lp-faq-still {
  margin-top: auto;
  padding-top: 40px;
  color: var(--ink-muted);
  font-size: 16px;
}

.lp-faq-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lp-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.lp-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.25s ease;
}

.lp-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.lp-faq-item p {
  margin: -6px 0 0;
  padding: 0 16px 18px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* CTA band + landing footer */
.lp-cta {
  position: relative;
  overflow: hidden;
  background: #3155c6 url("../img/landing/cta-circles.d4aa3d612e43.webp") no-repeat left 150px / 1440px auto;
  color: #fff;
  padding: 120px 0 0;
  text-align: center;
}

.lp-cta .lp-h2 {
  color: #fff;
  max-width: 620px;
}

.lp-cta > .lp-container > p {
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.lp-cta .lp-actions .btn-light {
  background: #fff;
  color: var(--accent-dark);
}

.lp-cta .lp-actions .btn-primary {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.lp-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1000px;
  margin: 110px auto 0;
  padding: 0 24px 110px;
  text-align: left;
  font-size: 15px;
}

.lp-footer-brand ls-logo {
  display: inline-block;
}

.lp-footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.lp-footer nav {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lp-footer a,
.lp-footer button {
  color: #fff;
  opacity: 0.92;
}

.lp-footer button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lp-footer a:hover,
.lp-footer button:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .lp-faq-inner,
  .lp-footer {
    grid-template-columns: 1fr;
  }
  .lp-faq-still {
    padding-top: 20px;
  }
}

:root[data-theme="dark"] .wf-box {
  background: linear-gradient(145deg, #141b44, #10173a);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .wf-circle:not(.active):not(.completed) {
  background: #1d2657;
  color: #9aa1bc;
}

:root[data-theme="dark"] .wf-line:not(.active) {
  background: #252f5e;
}

:root[data-theme="dark"] .wf-title {
  color: #c3c8dc;
}

:root[data-theme="dark"] .wf-title.active,
:root[data-theme="dark"] .wf-desc-title {
  color: #8fa8ff;
}

:root[data-theme="dark"] .wf-upload {
  background: rgba(255, 255, 255, 0.03);
  border-color: #2b3766;
}

:root[data-theme="dark"] .wf-upload-title,
:root[data-theme="dark"] .wf-card-head,
:root[data-theme="dark"] .wf-col-title,
:root[data-theme="dark"] .wf-item-head,
:root[data-theme="dark"] .wf-file-name {
  color: #f2f4ff;
}

:root[data-theme="dark"] .wf-upload-text,
:root[data-theme="dark"] .wf-stats span,
:root[data-theme="dark"] .wf-item-desc,
:root[data-theme="dark"] .wf-desc-text,
:root[data-theme="dark"] .wf-rec {
  color: #b7bdd4;
}

:root[data-theme="dark"] .wf-badges span,
:root[data-theme="dark"] .wf-file,
:root[data-theme="dark"] .wf-card,
:root[data-theme="dark"] .wf-report,
:root[data-theme="dark"] .wf-desc {
  background: #131a3f;
  border-color: #2b3766;
  color: #c3c8dc;
}

:root[data-theme="dark"] .wf-stats b {
  color: #8fa8ff;
}

:root[data-theme="dark"] .wf-item {
  background: #182052;
}

:root[data-theme="dark"] .wf-rec {
  background: rgba(59, 130, 246, 0.12);
}

/* ── Contracts: wizard, register, dashboard widgets ── */

.wiz {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0 60px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-lead {
  margin: 8px 0 20px;
  color: var(--ink-muted);
  font-size: 15px;
}

.muted {
  color: var(--ink-muted);
  font-size: 13px;
  margin: 0;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 16px;
}

.form-card h2 {
  font-size: var(--fs-section);
  font-weight: 600;
  margin: 0 0 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}

.field input,
.field select {
  background: var(--surface);
}

.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 69, 214, 0.15);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: 12.5px;
}

.hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: var(--fs-hint);
}

.info-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.note {
  margin: 4px 0 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.note-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #f3dc97;
}

.note-ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bfe8d0;
}

.note-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

:root[data-theme="dark"] .note-warn {
  background: rgba(245, 181, 74, 0.12);
  color: #f5c46b;
  border-color: rgba(245, 181, 74, 0.3);
}

:root[data-theme="dark"] .note-ok {
  background: rgba(22, 128, 93, 0.12);
  color: #5fd9a8;
  border-color: rgba(22, 128, 93, 0.3);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.check.has-error {
  color: var(--danger);
}

.consent {
  margin-top: 22px;
}

.nda-penalty {
  max-width: 320px;
  margin: 8px 0 0 26px;
}

.wiz-submit {
  margin-top: 18px;
  min-width: 260px;
}

.wiz-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.weekday-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-picks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.employer-summary {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
  font-size: 14px;
  color: var(--body);
}

.employer-summary strong {
  color: var(--ink);
  font-size: 15px;
}

.minor-card {
  border-color: var(--danger-border);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 11, 34, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.red-shield {
  border-top: 6px solid var(--danger);
}

.red-shield h3 {
  color: var(--danger);
  font-size: 18px;
  margin: 0 0 8px;
}

.red-shield ol {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.red-shield .btn {
  margin-top: 16px;
  width: 100%;
}

.red-shield .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  transition: box-shadow 0.15s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-card);
}

.stat-card span {
  color: var(--ink-muted);
  font-size: 13px;
}

.stat-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.dash-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
}

.dash-cols .form-card {
  margin-top: 16px;
}

.deadline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.deadline-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.deadline-date {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .deadline-date {
  color: var(--accent);
}

.law-flag {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--body);
}

.law-flag + .law-flag {
  margin-top: 10px;
}

.law-flag strong {
  color: var(--ink);
  font-size: 14.5px;
}

.law-flag-hot {
  border-color: #f3dc97;
  background: var(--warn-bg);
}

:root[data-theme="dark"] .law-flag-hot {
  border-color: rgba(245, 181, 74, 0.35);
  background: rgba(245, 181, 74, 0.08);
}

.law-affects {
  color: var(--warn);
}

:root[data-theme="dark"] .law-affects {
  color: #f5c46b;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}

.pill-muted {
  background: var(--bg-soft);
  color: var(--ink-muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.facts div {
  display: grid;
  gap: 2px;
}

.facts span {
  color: var(--ink-muted);
  font-size: 12.5px;
}

.facts strong {
  color: var(--ink);
  font-size: 15px;
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.tile-disabled {
  opacity: 0.6;
  cursor: default;
}

.tile-disabled:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .form-grid,
  .dash-cols,
  .stat-row {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
}

/* ── Contract review ─────────────────────────────────────────────────────── */

.review-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.review-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--body);
}

.review-steps strong {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
}

.review-upload {
  display: grid;
  gap: 12px;
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft-2);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone strong {
  overflow-wrap: anywhere;
}

.review-busy {
  display: flex;
  gap: 16px;
  align-items: center;
}

.review-busy p {
  margin: 4px 0 0;
}

.spinner {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.field textarea.review-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  min-height: 360px;
}

.review-hidden,
.review-passed {
  margin: 4px 0 16px;
  font-size: 13.5px;
  color: var(--body);
}

.review-hidden summary,
.review-passed summary,
.risk-card summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.review-hidden ul,
.review-passed ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}

.review-prose {
  color: var(--body);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.risk-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--body);
}

.risk-card + .risk-card {
  margin-top: 12px;
}

.risk-card p {
  margin: 0;
}

.risk-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.risk-head strong {
  flex: 1 1 200px;
  color: var(--ink);
}

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.risk-high { border-left-color: var(--danger); }
.risk-high .risk-dot { background: var(--danger); }
.risk-warning { border-left-color: #e0a100; }
.risk-warning .risk-dot { background: #e0a100; }
.risk-info { border-left-color: var(--accent); }
.risk-info .risk-dot { background: var(--accent); }

.pill.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill.pill-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

:root[data-theme="dark"] .pill.pill-warn {
  background: rgba(245, 181, 74, 0.14);
  color: #f5c46b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.pill-warn {
    background: rgba(245, 181, 74, 0.14);
    color: #f5c46b;
  }
}

.review-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--border);
  background: var(--bg-soft-2);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review-delete {
  margin-top: 18px;
}

.city-other {
  margin-top: 8px;
}

.id-scan {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
}

.dropzone-compact {
  padding: 18px 16px;
}

.dropzone-compact svg {
  width: 28px;
  height: 28px;
}

.id-scan-status {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--body);
}

.id-scan-status .spinner {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
}

.id-scan-result {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--body);
}

.id-scan-result p {
  margin: 0;
}

.id-flags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.id-flags li {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
}

.id-flags .flag-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.id-flags .flag-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

:root[data-theme="dark"] .id-flags .flag-warn {
  background: rgba(245, 181, 74, 0.14);
  color: #f5c46b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .id-flags .flag-warn {
    background: rgba(245, 181, 74, 0.14);
    color: #f5c46b;
  }
}

.field input.is-autofilled,
.field select.is-autofilled {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 128, 93, 0.15);
}

.id-scan-status[hidden] {
  display: none;
}

.form-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.fix-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.fix-card {
  border-color: var(--accent);
}

.fix-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.fix-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.fix-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: 12px;
  font-size: 14px;
  color: var(--body);
}

.fix-item p {
  margin: 0;
}

.fix-not_found {
  border-left-color: #e0a100;
}

.fix-covered,
.fix-no_change {
  border-left-color: var(--border);
}

.fix-failed {
  border-left-color: var(--danger);
}

.fix-before,
.fix-after {
  display: grid;
  gap: 4px;
}

.fix-before del,
.fix-after ins {
  padding: 8px 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.fix-before del {
  background: var(--danger-bg);
  color: var(--danger);
  text-decoration: line-through;
}

.fix-after ins {
  background: rgba(22, 128, 93, 0.12);
  color: var(--ink);
}

.field input.is-not-hy,
.field textarea.is-not-hy {
  border-color: var(--danger);
}

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

.own-positions li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.own-positions li div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* ── Lawyer section / contract updates ──────────────────────────────────── */

.lawyer-clauses {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}

.lawyer-clause-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.lawyer-clause {
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
}

.lawyer-clause:hover {
  border-color: var(--accent);
}

.lawyer-clause.is-stale {
  border-left: 4px solid var(--danger);
}

.lawyer-clause-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lawyer-clause-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-doc);
  font-size: var(--fs-doc);
  line-height: var(--lh-doc);
}

.article-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
}

.update-card {
  border-color: #e0a100;
}

.alert-update {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #f3dc97;
}

:root[data-theme="dark"] .alert-update {
  background: rgba(245, 181, 74, 0.12);
  color: #f5c46b;
  border-color: rgba(245, 181, 74, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert-update {
    background: rgba(245, 181, 74, 0.12);
    color: #f5c46b;
    border-color: rgba(245, 181, 74, 0.35);
  }
}

.law-flag,
.law-flag span,
.lawyer-clauses li,
.lawyer-clauses .lp-link {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.blanks-card {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: 1px dashed #e0a100;
  border-radius: 12px;
}

.blanks-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.blank-row {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.blank-row input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.alert-ok {
  background: rgba(22, 128, 93, 0.1);
  color: var(--ink);
  border: 1px solid rgba(22, 128, 93, 0.4);
}

.bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.icon-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
}

.icon-btn:hover {
  background: var(--danger-bg);
}

.blank-scan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blank-scan .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.blank-row input.is-autofilled {
  border-color: var(--success);
}

.bulk-clauses {
  display: grid;
  gap: 8px;
}

.bulk-clauses .lawyer-clauses li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.update-all {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Scan / AI progress: a page being scanned + percent */
.review-busy .scan-progress { flex: 1; }
.scan-progress {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}
.scan-progress[hidden] { display: none; }
.scan-progress-doc {
  flex: 0 0 56px;
  width: 56px;
  height: 70px;
  overflow: hidden;
}
.scan-progress-doc .sp-sheet { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.scan-progress-doc .sp-line { fill: var(--accent); opacity: 0.35; }
.scan-progress-doc .sp-bar { fill: var(--accent); }
.scan-progress-doc .sp-glow { fill: var(--accent); opacity: 0.18; }
.scan-progress-doc .sp-beam { animation: sp-scan 1.8s ease-in-out infinite alternate; }
@keyframes sp-scan {
  from { transform: translateY(0); }
  to { transform: translateY(68px); }
}
.scan-progress-body { flex: 1; min-width: 0; }
.scan-progress-body p { margin: 6px 0 0; }
.scan-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.scan-progress-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}
.scan-progress-track {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
}
.scan-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.2s linear;
}
.blank-scan-progress { flex-basis: 100%; }
@media (prefers-reduced-motion: reduce) {
  .scan-progress-doc .sp-beam { animation-duration: 6s; }
}

/* ── Contract review workspace: document + Word-like comments ─────────── */
.wiz.wiz-wide { max-width: 1320px; }
.rv-summary {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(17, 28, 56, 0.06);
}
.rv-summary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--body);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.rv-chip b { color: var(--ink); }
.rv-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rv-sev); }
.rv-chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.rv-summary-text { margin-top: 8px; }
.rv-summary-text summary { cursor: pointer; color: var(--ink-muted); font-size: 13px; }
.rv-summary-text p { margin: 6px 0 0; }
.pill.pill-ok { background: rgba(22, 128, 93, 0.14); color: var(--success); }

/* severity palette: soft, no red blocks */
/* the problem fragment: a very light red ground; full red only for the risk badge and title */
.sev-high { --rv-sev: var(--risk); --rv-bg: var(--risk-bg); --rv-line: color-mix(in srgb, var(--risk) 50%, transparent); --rv-fill: #b42318; }
.sev-warning { --rv-sev: #e0a33a; --rv-bg: rgba(224, 163, 58, 0.12); --rv-line: rgba(224, 163, 58, 0.6); --rv-fill: #a15c07; }
.sev-info { --rv-sev: #5b77cf; --rv-bg: rgba(91, 119, 207, 0.10); --rv-line: rgba(91, 119, 207, 0.55); --rv-fill: #3155c6; }
.sev-change { --rv-sev: var(--success); --rv-bg: var(--success-bg); --rv-line: color-mix(in srgb, var(--success) 55%, transparent); --rv-fill: #16805d; }

.rv-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}
.rv-doc { min-width: 0; }
.rv-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.rv-tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.rv-tab.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rv-page {
  padding: 36px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(17, 28, 56, 0.04);
  font-family: var(--font-doc);
  font-size: var(--fs-doc);
  line-height: var(--lh-doc);
  color: var(--ink);
}
.rv-page-hint {
  margin: -16px -24px 18px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 13px;
}
.rv-p { margin: 0 0 8px; padding: 2px 6px; border-radius: 6px; }
.rv-page[data-editable] .rv-p { cursor: pointer; }
.rv-page[data-editable] .rv-p:hover { background: var(--bg-soft-2); outline: 1px dashed var(--border); }
.rv-p.is-picked { background: var(--accent-soft) !important; outline: 1px solid var(--accent) !important; }
.rv-mark, .rv-change {
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
  cursor: help;
  transition: background 0.15s;
}
.rv-mark { background: var(--rv-bg, rgba(224, 163, 58, 0.12)); border-bottom: 2px solid var(--rv-line, #e0a33a); }
.rv-change { background: var(--success-bg); border-bottom: 2px solid color-mix(in srgb, var(--success) 55%, transparent); }
.rv-mark.is-flash { background: color-mix(in srgb, var(--rv-sev) 26%, transparent); }
.rv-mark.is-dim { background: transparent; border-bottom-color: var(--border); }
.rv-mark.is-flash, .rv-card.is-flash { animation: rv-flash 1.4s ease; }
@keyframes rv-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--accent-soft); } 100% { box-shadow: none; } }

.rv-notes {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 4px;
}
.rv-notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 13px; }
.rv-card {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rv-sev);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(17, 28, 56, 0.04);
}
.rv-card[hidden] { display: none; }
.rv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}
.rv-card-head::-webkit-details-marker { display: none; }
.rv-card-head::after { content: "›"; margin-left: 2px; color: var(--ink-muted); transition: transform 0.15s; }
.rv-card[open] > .rv-card-head::after { transform: rotate(90deg); }
.rv-dot { flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--rv-sev); }
.rv-card-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rv-pick input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.rv-card-body { padding: 0 14px 12px 30px; font-size: 13.5px; color: var(--body); }
.rv-card-body p { margin: 6px 0; }
.rv-sev { display: inline-block; margin-right: 8px; font-size: 12px; color: var(--rv-sev); font-weight: 600; }
.rv-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.rv-missing { padding: 6px 10px; border-radius: 8px; background: var(--rv-bg); color: var(--ink); }
.rv-more summary { cursor: pointer; color: var(--ink-muted); font-size: 12.5px; }

/* Было / Стало side by side — no strikethrough, no red blocks */
.rv-fix { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.rv-fix-label { font-weight: 600; color: var(--ink); }
.rv-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-before, .rv-after { padding: 8px 10px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.rv-before { background: var(--bg-soft); color: var(--ink-muted); }
.rv-after { background: rgba(22, 128, 93, 0.10); color: var(--ink); }
.rv-before p, .rv-after p { margin: 2px 0 0; overflow-wrap: anywhere; }
.rv-diff-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.rv-decide { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rv-state { font-size: 12.5px; color: var(--ink-muted); }
.rv-state-ok { color: var(--success); font-weight: 600; }
.rv-fix-rejected .rv-after { background: var(--bg-soft); color: var(--ink-muted); }
.rv-fix-accepted .rv-after { box-shadow: inset 0 0 0 1px rgba(22, 128, 93, 0.45); }

/* hover hint */
.rv-tip {
  position: fixed;
  z-index: 60;
  max-width: 380px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(17, 28, 56, 0.16);
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  pointer-events: none;
}
.rv-tip strong { display: block; color: var(--ink); margin-bottom: 4px; }
.rv-tip p { margin: 4px 0 0; }
.rv-tip-change { border-left: 3px solid #16805d; }

/* "fix this clause" */
.rv-clause-btn {
  position: absolute;
  z-index: 30;
  transform: translateY(-100%);
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-fill);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(40, 69, 214, 0.3);
  cursor: pointer;
}
.rv-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}
.rv-dialog::backdrop { background: rgba(17, 28, 56, 0.35); }
.rv-dialog h3 { margin: 0 0 10px; }
.rv-dialog blockquote { max-height: 220px; overflow-y: auto; }
.rv-dialog textarea { width: 100%; }
.rv-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* bottom action bar */
.rv-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -6px 18px rgba(17, 28, 56, 0.07);
}
.rv-bar form { margin: 0; }
.rv-menu { position: relative; }
.rv-menu summary { list-style: none; }
.rv-menu summary::-webkit-details-marker { display: none; }
.rv-menu-list {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 28, 56, 0.16);
}
.rv-menu-list a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.rv-menu-list a:hover { background: var(--bg-soft); }

@media (max-width: 1100px) {
  .rv-work { grid-template-columns: 1fr; }
  .rv-notes { position: static; max-height: none; overflow: visible; }
  .rv-page { padding: 24px 18px; }
  .rv-page-hint { margin: -8px -6px 14px; }
}
@media (max-width: 600px) {
  .rv-diff { grid-template-columns: 1fr; }
  .rv-summary { position: static; }
}

/* the link between a marked place and its comment */
.rv-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rv-fill, var(--accent-fill));
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.rv-card-head .rv-num { flex: 0 0 auto; margin-top: 1px; }
sup.rv-num {
  min-width: 15px;
  height: 15px;
  margin-left: 2px;
  padding: 0 4px;
  font-size: 10px;
  vertical-align: super;
}
.rv-change { --rv-sev: #16805d; }
.rv-card.is-hot { border-color: var(--rv-sev); box-shadow: 0 0 0 3px var(--rv-bg), 0 6px 16px rgba(17, 28, 56, 0.08); }
.rv-mark.is-hot { background: color-mix(in srgb, var(--rv-sev) 26%, transparent); }
.rv-change.is-hot { background: rgba(22, 128, 93, 0.32); }
.rv-link-line {
  position: fixed;
  inset: 0;
  z-index: 15;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
.rv-link-line path { fill: none; stroke-width: 2; stroke-dasharray: 6 4; }
.rv-tip > div + div { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.rv-card.is-resolved { border-left-color: #16805d; }
.rv-card.is-resolved .rv-num { background: #16805d; }
.rv-done { font-style: normal; font-size: 12px; font-weight: 600; color: var(--success); white-space: nowrap; }
.rv-add { margin: 4px 0 6px; }
.rv-add-title { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.rv-dialog select { width: 100%; }
.rv-followup { margin: 8px 0 0; font-size: 13px; color: var(--body); }
.rv-minor { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--body); }
.rv-minor li { margin: 4px 0; }
.rv-modes { display: flex; gap: 4px; margin: 0 0 12px; padding: 3px; border-radius: 10px; background: var(--bg-soft); }
.rv-mode { flex: 1; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font: inherit; font-size: 14px; cursor: pointer; }
.rv-mode.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(17, 28, 56, 0.1); }
.rv-dialog textarea[data-clause-edit] { font-family: var(--font-doc); font-size: var(--fs-doc); line-height: 1.6; }

/* ── The scanning window ─────────────────────────────────────────────── */
.sm {
  width: min(720px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(17, 28, 56, 0.28);
}
.sm::backdrop { background: rgba(17, 28, 56, 0.45); backdrop-filter: blur(3px); }
.sm-body { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 26px; align-items: center; }
.sm-preview {
  position: relative;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-preview img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.sm-doc { width: 70%; height: auto; }
.sm-sheet { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.sm-line { fill: var(--accent); opacity: 0.3; }
.sm-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(49, 85, 198, 0) 0%, rgba(49, 85, 198, 0.35) 85%, rgba(40, 69, 214, 0.95) 100%);
  animation: sm-scan 2.2s ease-in-out infinite alternate;
}
@keyframes sm-scan { from { transform: translateY(-56px); } to { transform: translateY(280px); } }
.sm-check {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  background: rgba(22, 128, 93, 0.82);
  animation: sm-pop 0.35s ease;
}
@keyframes sm-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.sm.is-done .sm-beam, .sm.is-failed .sm-beam { display: none; }
.sm.is-done .sm-check { display: flex; }
.sm-main h3 { margin: 0 0 4px; font-size: 19px; }
.sm-file { margin: 0 0 14px; color: var(--ink-muted); font-size: 13px; overflow-wrap: anywhere; }
.sm-pct { display: flex; align-items: baseline; gap: 12px; }
.sm-pct strong { font-size: 34px; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1; }
.sm-pct span { color: var(--body); font-size: 13.5px; }
.sm-track { height: 8px; margin: 10px 0 16px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.sm-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.15s linear; }
.sm.is-done .sm-track span { background: #16805d; }
.sm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-steps li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}
.sm-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-sizing: border-box;
}
.sm-steps li.is-active { color: var(--ink); font-weight: 600; }
.sm-steps li.is-active::before { border-color: var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.sm-steps li.is-done { color: var(--body); }
.sm-steps li.is-done::before {
  content: "✓";
  border-color: #16805d;
  background: #16805d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.sm-hint { margin: 14px 0 0; color: var(--ink-muted); font-size: 12.5px; }
.sm .alert { margin: 14px 0 0; }
.sm-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .sm-body { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .sm-preview { height: 170px; }
  @keyframes sm-scan { from { transform: translateY(-56px); } to { transform: translateY(170px); } }
}
@media (prefers-reduced-motion: reduce) {
  .sm-beam { animation-duration: 6s; }
}
.sm [hidden] { display: none !important; }
.sm-track span { transition: none; }
.sm:focus, .sm:focus-visible { outline: none; }

/* ── Legal entities: the switcher in the sidebar, the account pages ─── */
.entity-switch { margin: 4px 12px 10px; position: relative; }
.entity-switch summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.entity-switch summary::-webkit-details-marker { display: none; }
.entity-switch summary:hover { background: rgba(255, 255, 255, 0.06); }
.entity-switch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.entity-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.entity-switch-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 28, 56, 0.25);
}
.entity-switch-menu a, .entity-switch-menu span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
}
.entity-switch-menu a:hover { background: var(--bg-soft); }
.entity-switch-menu .is-current { color: var(--accent); font-weight: 600; }
.entity-switch-menu .entity-switch-add { color: var(--accent); border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; }
.app-shell.sidebar-collapsed .entity-switch { margin: 4px 8px 10px; }
.app-shell.sidebar-collapsed .entity-switch summary { justify-content: center; padding: 6px; }
.app-shell.sidebar-collapsed .entity-switch-menu { width: 220px; }
a.sidebar-user { text-decoration: none; color: inherit; border-radius: 10px; }
a.sidebar-user:hover, a.sidebar-user.active { background: rgba(255, 255, 255, 0.08); }

.acc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 20px; padding: 4px; border-radius: 12px; background: var(--bg-soft); width: fit-content; max-width: 100%; }
.acc-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.acc-tabs a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(17, 28, 56, 0.1); }
.entity-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.entity { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.entity.is-current { border-color: var(--accent); background: var(--accent-soft); }
.entity-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.entity-main .muted { font-size: 13px; }
.billing-soon p { color: var(--ink-muted); }
.entity-filter { margin: 0 0 14px; }
.entity-filter { display: inline-flex; align-items: center; gap: 10px; }
.entity-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--body); font-size: 12.5px; white-space: nowrap; }
.entity-chip.is-current { background: var(--accent-soft); color: var(--accent); }
.entity-pick { padding: 16px 20px; border-color: var(--accent); background: var(--accent-soft); }
.entity-pick .field { margin: 0; }
.entity-pick select { max-width: 420px; font-weight: 600; }
.entity-pick .hint { margin: 6px 0 0; }
.register-card { border-style: dashed; border-color: var(--accent); }
.register-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.register-head > div { flex: 1; min-width: 220px; }
.register-head h2 { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.register-head .hint { margin: 4px 0 0; }
.register-icon { font-size: 30px; }
.register-card .alert { margin: 12px 0 0; }

/* ── Home: quick actions, overview, recent activity, empty state ─────── */
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hero h1 { margin: 2px 0 0; }
.dash-hello { margin: 0; color: var(--ink-muted); font-size: 15px; }
.dash-hero .entity-filter { margin: 0; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.qa {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qa::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.qa:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(17, 28, 56, 0.18); }
.qa-check { background: linear-gradient(135deg, #24429f 0%, #4a6bd1 100%); }
.qa-hire { background: linear-gradient(135deg, #111c38 0%, #24429f 100%); }
.qa-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; }
.qa-icon svg { width: 38px; height: 38px; }
.qa-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.qa-text strong { font-size: 19px; }
.qa-text span { font-size: 13.5px; opacity: 0.88; line-height: 1.45; }
.qa-arrow { font-size: 24px; transition: transform 0.15s; }
.qa:hover .qa-arrow { transform: translateX(4px); }
.ov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.ov {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.ov:hover { box-shadow: 0 6px 16px rgba(17, 28, 56, 0.07); }
.ov strong { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov-label { font-size: 13px; color: var(--body); font-weight: 600; }
.ov-sub { font-size: 12.5px; color: var(--ink-muted); }
.ov-red { border-left-color: #b42318; }
.ov-red strong { color: #d24c4c; }
.ov-yellow { border-left-color: #e0a33a; }
.ov-green { border-left-color: #16805d; }
.act-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.act-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.lv-red, .act-red .act-dot { background: #b42318; }
.lv-yellow, .act-yellow .act-dot { background: #e0a33a; }
.lv-green, .act-green .act-dot { background: #16805d; }
.act-list { list-style: none; margin: 8px 0 0; padding: 0; }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.act-list li + li .act { border-top: 1px solid var(--border); border-radius: 0; }
.act:hover { background: var(--bg-soft-2); }
.act-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; }
.act-icon { font-size: 18px; }
.act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.act-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.act-main .muted { font-size: 12.5px; }
.act-status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.act-red .act-status { background: rgba(180, 35, 24, 0.12); color: var(--risk); }
.act-yellow .act-status { background: rgba(224, 163, 58, 0.14); color: var(--warn); }
.act-green .act-status { background: rgba(22, 128, 93, 0.13); color: var(--success); }
.dash-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: 20px; background: var(--bg-soft-2); margin-bottom: 20px; }
.dash-empty-art { width: 160px; height: 120px; }
.de-sheet { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.de-line { fill: var(--accent); opacity: 0.25; }
.de-badge { fill: #16805d; }
.de-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.dash-empty h2 { margin: 12px 0 6px; }
.dash-empty p { margin: 0 auto; max-width: 520px; color: var(--body); }
.dash-team { margin-top: 24px; border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; background: var(--surface); }
.dash-team > summary { padding: 12px 0; cursor: pointer; font-weight: 600; }
@media (max-width: 900px) {
  .qa-grid { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ov-grid { grid-template-columns: 1fr; }
  .act-status { display: none; }
}

/* ── Sign-in / sign-up: the form on the left, what the service is on the right ── */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - 72px); }
.auth-side-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-side-form .auth-card { margin: 0; width: 100%; max-width: 420px; }
.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 48px 56px;
  background: radial-gradient(120% 90% at 100% 0%, #3d5fe0 0%, #24429f 45%, #111c38 100%);
  color: #fff;
  overflow: hidden;
}
.auth-panel::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -160px; border-radius: 50%; background: rgba(155, 107, 255, 0.25); filter: blur(10px); }
.auth-panel-inner { position: relative; max-width: 560px; }
.auth-panel-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.auth-panel h2 { margin: 14px 0 10px; font-size: 30px; line-height: 1.2; color: #fff; }
.auth-panel p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 15.5px; line-height: 1.55; }
.auth-points { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; }
.auth-points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.92); font-size: 14.5px; }
.auth-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #16805d; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { padding: 36px 20px; }
  .auth-panel .pm { display: none; }
}

/* ── Product mocks (pure HTML/CSS, looping) ─────────────────────────── */
.pm { position: relative; border-radius: 18px; background: #fff; color: #111c38; box-shadow: 0 24px 60px rgba(17, 28, 56, 0.28); font-family: var(--font); }
.pm-sk { display: inline-block; height: 7px; margin: 0 6px 6px 0; border-radius: 4px; background: #e6e8f0; }
.pm-sk.w50 { width: 50%; } .pm-sk.w60 { width: 60%; } .pm-sk.w70 { width: 70%; } .pm-sk.w80 { width: 80%; } .pm-sk.w90 { width: 90%; }

.pm-review { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; padding: 16px; }
.pm-doc { padding: 14px 16px; border: 1px solid #e6e8f0; border-radius: 12px; font-family: var(--font-doc); font-size: 12.5px; line-height: 1.6; }
.pm-doc p { margin: 0 0 6px; }
.pm-doc-title { margin-bottom: 10px; text-align: center; font-weight: 700; font-size: 11.5px; letter-spacing: 0.03em; }
.pm-mark { position: relative; padding: 0 2px; border-radius: 3px; color: inherit; }
.pm-mark sup { margin-left: 2px; padding: 0 4px; border-radius: 999px; color: #fff; font-size: 9px; font-family: var(--font); font-weight: 700; }
.pm-m1 { background: rgba(180, 35, 24, 0.14); border-bottom: 2px solid rgba(180, 35, 24, 0.6); animation: pm-m1 9s infinite; }
.pm-m1 sup { background: #b42318; animation: pm-m1sup 9s infinite; }
.pm-m2 { background: rgba(224, 163, 58, 0.14); border-bottom: 2px solid rgba(224, 163, 58, 0.6); }
.pm-m2 sup { background: #e0a33a; }
.pm-m1 .pm-old, .pm-m1 .pm-new { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.pm-m1 .pm-old { max-width: 160px; animation: pm-old 9s infinite; }
.pm-m1 .pm-new { max-width: 0; animation: pm-new 9s infinite; }
@keyframes pm-old { 0%, 65% { max-width: 160px; opacity: 1; } 67%, 100% { max-width: 0; opacity: 0; } }
@keyframes pm-new { 0%, 65% { max-width: 0; opacity: 0; } 67%, 100% { max-width: 160px; opacity: 1; } }
@keyframes pm-m1 {
  0%, 10% { background: rgba(180, 35, 24, 0.14); }
  14%, 30% { background: rgba(180, 35, 24, 0.32); }
  34%, 66% { background: rgba(180, 35, 24, 0.18); }
  67%, 100% { background: rgba(22, 128, 93, 0.18); border-bottom-color: rgba(22, 128, 93, 0.7); }
}
@keyframes pm-m1sup { 0%, 66% { background: #b42318; } 67%, 100% { background: #16805d; } }
.pm-notes { display: flex; flex-direction: column; gap: 10px; }
.pm-card { position: relative; padding: 10px 12px; border: 1px solid #e6e8f0; border-left: 3px solid #b42318; border-radius: 10px; font-size: 12px; background: #fff; }
.pm-card-head { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; line-height: 1.35; }
.pm-card-head b { flex: 0 0 18px; height: 18px; border-radius: 50%; background: #b42318; color: #fff; font-size: 10px; text-align: center; line-height: 18px; }
.pm-c2 { border-left-color: #e0a33a; }
.pm-c2 .pm-card-head b { background: #e0a33a; }
.pm-c1 { opacity: 0; animation: pm-c1 9s infinite; }
@keyframes pm-c1 {
  0%, 12% { opacity: 0; transform: translateY(6px); }
  18%, 100% { opacity: 1; transform: none; }
}
.pm-c1 { animation-name: pm-c1, pm-c1fix; animation-duration: 9s, 9s; animation-iteration-count: infinite, infinite; }
@keyframes pm-c1fix { 0%, 66% { border-left-color: #b42318; } 67%, 100% { border-left-color: #16805d; } }
.pm-diff { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 11.5px; }
.pm-was { padding: 2px 6px; border-radius: 6px; background: #f6f8fc; color: #667085; }
.pm-now { padding: 2px 6px; border-radius: 6px; background: rgba(22, 128, 93, 0.14); color: #16805d; font-weight: 600; }
.pm-arrow { color: #667085; }
.pm-swap { display: inline-grid; }
.pm-btn, .pm-done { grid-area: 1 / 1; padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pm-btn { background: #3155c6; color: #fff; animation: pm-btn 9s infinite; }
.pm-done { color: #16805d; background: rgba(22, 128, 93, 0.12); opacity: 0; animation: pm-done 9s infinite; }
@keyframes pm-btn { 0%, 55% { transform: none; opacity: 1; } 58% { transform: scale(0.92); } 62% { transform: none; opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pm-done { 0%, 65% { opacity: 0; } 67%, 100% { opacity: 1; } }
.pm-link { position: absolute; left: 47%; top: 26%; width: 18%; height: 18%; overflow: visible; pointer-events: none; }
.pm-link path { fill: none; stroke: #b42318; stroke-width: 1.8; stroke-dasharray: 160; stroke-dashoffset: 160; animation: pm-link 9s infinite; }
@keyframes pm-link { 0%, 14% { stroke-dashoffset: 160; } 24%, 64% { stroke-dashoffset: 0; } 67%, 100% { stroke-dashoffset: 0; stroke: #16805d; } }

.pm-scan { display: grid; grid-template-columns: 0.9fr 1fr; gap: 20px; padding: 22px; align-items: center; }
.pm-scan-page { position: relative; height: 200px; padding: 18px 16px; border-radius: 12px; background: #ebf0fb; overflow: hidden; }
.pm-scan-page .pm-sk { display: block; background: #c9d2f5; }
.pm-beam { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, rgba(49, 85, 198, 0) 0%, rgba(49, 85, 198, 0.35) 85%, #3155c6 100%); animation: sm-scan 2s ease-in-out infinite alternate; }
.pm-pct { display: block; font-size: 34px; color: #3155c6; font-variant-numeric: tabular-nums; }
.pm-track { height: 7px; margin: 8px 0 14px; border-radius: 999px; background: #ebf0fb; overflow: hidden; }
.pm-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #24429f, #4a6bd1); animation: pm-track 8s linear infinite; }
@keyframes pm-track { 0% { width: 4%; } 82%, 100% { width: 100%; } }
.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pm-steps li { position: relative; padding-left: 26px; color: #667085; }
.pm-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e6e8f0; box-sizing: border-box; }
.pm-steps li { animation: pm-step 8s infinite; }
.pm-steps li::before { animation: pm-stepdot 8s infinite; }
.pm-steps .s2, .pm-steps .s2::before { animation-delay: 1.6s; }
.pm-steps .s3, .pm-steps .s3::before { animation-delay: 3.2s; }
.pm-steps .s4, .pm-steps .s4::before { animation-delay: 4.8s; }
@keyframes pm-step { 0% { color: #667085; } 5%, 100% { color: #111c38; } }
@keyframes pm-stepdot { 0% { background: transparent; border-color: #e6e8f0; } 18%, 100% { background: #16805d; border-color: #16805d; } }

.pm-hire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; align-items: center; }
.pm-form { display: grid; gap: 10px; font-size: 12px; color: #667085; }
.pm-form label { display: grid; gap: 4px; }
.pm-input { display: block; height: 30px; padding: 0 10px; border: 1px solid #e6e8f0; border-radius: 8px; line-height: 30px; color: #111c38; font-family: "Noto Sans Armenian", var(--font); font-size: 12.5px; white-space: nowrap; overflow: hidden; width: 0; animation: pm-type 9s steps(14) infinite; max-width: 100%; }
.pm-i2 { animation-delay: 0.9s; }
.pm-i3 { animation-delay: 1.8s; }
@keyframes pm-type { 0% { width: 22px; color: transparent; } 4% { color: #111c38; } 14%, 100% { width: 100%; } }
.pm-go { justify-self: start; padding: 8px 14px; border-radius: 10px; background: #3155c6; color: #fff; font-weight: 600; font-size: 12.5px; animation: pm-go 9s infinite; }
@keyframes pm-go { 0%, 34% { transform: none; } 37% { transform: scale(0.93); } 40%, 100% { transform: none; } }
.pm-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-docs li { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e6e8f0; border-radius: 10px; font-size: 12.5px; opacity: 0; animation: pm-doc 9s infinite; }
.pm-docs li i { font-style: normal; }
.pm-docs li b { margin-left: auto; color: #16805d; }
.pm-docs .d2 { animation-delay: 0.4s; } .pm-docs .d3 { animation-delay: 0.8s; } .pm-docs .d4 { animation-delay: 1.2s; }
@keyframes pm-doc { 0%, 42% { opacity: 0; transform: translateX(10px); } 48%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pm *, .pm *::before { animation: none !important; }
  .pm-c1, .pm-docs li { opacity: 1; }
  .pm-input { width: 100%; }
}

/* ── Landing: the product tour ──────────────────────────────────────── */
.lp-tour { padding: 90px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.lp-tour-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 70px; }
.lp-tour-row.rev .lp-tour-text { order: 2; }
.lp-tour-num { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 700; }
.lp-tour-text h3 { margin: 14px 0 10px; font-size: 26px; line-height: 1.25; }
.lp-tour-text p { margin: 0 0 14px; color: var(--body); font-size: 16px; line-height: 1.6; }
.lp-tour-row .pm { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lp-tour-row.is-in .pm { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .lp-tour-row { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .lp-tour-row.rev .lp-tour-text { order: 0; }
}
.pm p, .auth-panel .pm p { color: #111c38; font-size: inherit; line-height: inherit; }
.pm-review { align-items: start; }
.pm-notes { padding-top: 34px; }
.pm-link { left: 41%; top: 27%; width: 20%; height: 10%; }
.lp-tour .lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-tour .lp-checks li { position: relative; padding-left: 30px; color: var(--ink); }
.lp-tour .lp-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }

/* ── The icon rail: big live icons with their names under them ───────── */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  background: linear-gradient(180deg, #111c38 0%, #1a2650 100%);
  color: #fff;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-shell .app-main { margin-left: 104px; }
.rail-logo { display: flex; padding: 6px; margin-bottom: 6px; border-radius: 12px; }
.rail-logo:hover { background: rgba(255, 255, 255, 0.08); }
.rail-entity { position: relative; width: 100%; margin-bottom: 8px; }
.rail-entity summary { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; cursor: pointer; list-style: none; }
.rail-entity summary::-webkit-details-marker { display: none; }
.rail-entity summary:hover { background: rgba(255, 255, 255, 0.08); }
.rail-entity .entity-avatar { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
.rail-entity-name { max-width: 88px; }
.rail-pop { position: fixed; left: 108px; top: 64px; width: 260px; right: auto; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.rail-nav form { width: 100%; margin: 0; }
.rail-spacer { flex: 1; min-height: 12px; }
.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 7px 2px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rail-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.rail-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-item .rail-icon { color: #ffffff; }
.rail-item:hover .rail-icon, .rail-item.active .rail-icon { color: #fff; }
.rail-label { max-width: 100%; padding: 0 4px; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; letter-spacing: -0.01em; overflow-wrap: anywhere; hyphens: auto; }
.rail-item:hover { color: #fff; }
.rail-item:hover .rail-icon { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px) scale(1.06); }
.rail-item:hover .rail-icon svg { animation: rail-wiggle 0.5s ease; }
@keyframes rail-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.rail-item:active .rail-icon { transform: scale(0.94); }
.rail-item.active { color: #fff; }
.rail-item.active .rail-icon { background: linear-gradient(135deg, #4a6bd1 0%, #3155c6 100%); box-shadow: 0 8px 20px rgba(49, 85, 198, 0.45); }
.rail-item.active .rail-icon::after { content: ""; position: absolute; left: -15px; top: 11px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: #9fb4ee; }
.rail-avatar { background: rgba(255, 255, 255, 0.12); font-weight: 700; font-size: 17px; }
.rail-item.rail-user.active .rail-avatar { background: linear-gradient(135deg, #4a6bd1 0%, #3155c6 100%); }
.rail-logout:hover .rail-icon { background: rgba(180, 35, 24, 0.2); }
.rail .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .rail .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .rail .theme-toggle .icon-moon { display: none; }
.rail-locales { display: flex; gap: 2px; margin-top: 8px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); }
.rail-locales a { padding: 4px 6px; border-radius: 7px; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10.5px; font-weight: 700; }
.rail-locales a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .rail-item:hover .rail-icon, .rail-item:hover .rail-icon svg { transform: none; animation: none; }
}
@media (max-width: 760px) {
  .rail { width: 76px; padding: 10px 4px; }
  .rail-shell .app-main { margin-left: 76px; padding: 20px 14px; }
  .rail-icon { width: 40px; height: 40px; }
  .rail-icon svg { width: 22px; height: 22px; }
  .rail-label { font-size: 10px; }
  .rail-pop { left: 80px; }
  .rail-item.active .rail-icon::after { left: -8px; }
}

/* the section's pages above the content */
.section-tabs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 1320px; margin: 0 auto 18px; }
.section-tabs a, .section-tabs span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.section-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.section-tabs a.is-active { background: var(--accent-fill); border-color: var(--accent); color: #fff; }
.section-tabs .is-soon { color: var(--ink-muted); cursor: default; }
.section-tabs .is-soon em { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); font-style: normal; font-size: 11px; }
.rail { width: 112px; }
.rail-shell .app-main { margin-left: 112px; }
.rail-pop { left: 116px; }
.rail-label { font-size: 10.5px; letter-spacing: -0.025em; padding: 0 1px; overflow-wrap: normal; word-break: keep-all; max-width: 104px; }
.rail-item.active .rail-icon::after { left: -19px; }
.section-tabs { justify-content: center; }
@media (max-width: 760px) {
  .rail { width: 84px; }
  .rail-shell .app-main { margin-left: 84px; }
  .rail-label { font-size: 9.5px; max-width: 80px; }
  .rail-pop { left: 88px; }
  .rail-item.active .rail-icon::after { left: -10px; }
}

/* ── The support chat ───────────────────────────────────────────────── */
#support-panel { width: 370px; display: flex; flex-direction: column; max-height: min(600px, calc(100vh - 110px)); }
#support-panel[hidden] { display: none; }
#support-panel-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #24429f 0%, #4a6bd1 100%); }
#support-panel-header > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#support-panel-header span { font-weight: 400; font-size: 12px; opacity: 0.85; }
.sp-avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: flex !important; align-items: center; justify-content: center; font-size: 16px !important; opacity: 1 !important; }
.sp-close { border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: 0.8; }
#support-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft-2); min-height: 220px; }
.sp-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink); }
.sp-me { align-self: flex-end; background: var(--accent-fill); color: #fff; border-bottom-right-radius: 4px; }
.sp-bot a { color: var(--accent); font-weight: 600; }
.sp-human { border-left: 3px solid #16805d; }
.sp-typing { color: var(--ink-muted); animation: sp-blink 1s infinite; }
@keyframes sp-blink { 50% { opacity: 0.35; } }
.sp-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sp-suggest button { padding: 6px 11px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.sp-suggest button:hover { background: var(--accent-soft); }
#support-form { padding: 10px; border-top: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
#support-form input[type=email] { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 13px; }
.sp-row { display: flex; gap: 8px; align-items: flex-end; }
.sp-row textarea { flex: 1; resize: none; max-height: 120px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); }
#support-send { flex: 0 0 40px; height: 40px; border: 0; border-radius: 12px; background: var(--accent-fill); color: #fff; font-size: 16px; cursor: pointer; }
#support-send:disabled { opacity: 0.5; }
@media (max-width: 480px) { #support-panel { width: calc(100vw - 32px); } }

/* ── More product mocks (the visual guide) ──────────────────────────── */
.pm-edit, .pm-passport, .pm-entities, .pm-law { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; align-items: center; }
.pm-num-row { margin: 0 0 8px; }
.pm-num-row b { display: inline-flex; min-width: 30px; font-family: var(--font); color: #3155c6; }
.pm-n-old, .pm-n-new { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.pm-n-old { max-width: 40px; animation: pm-old 9s infinite; }
.pm-n-new { max-width: 0; animation: pm-new 9s infinite; color: #16805d; }
.pm-added { max-height: 0; opacity: 0; overflow: hidden; margin: 0; animation: pm-added 9s infinite; background: rgba(22, 128, 93, 0.12); border-radius: 6px; }
@keyframes pm-added { 0%, 64% { max-height: 0; opacity: 0; margin: 0; } 68%, 100% { max-height: 40px; opacity: 1; margin: 0 0 8px; } }
.pm-dialog { padding: 12px; border: 1px solid #e6e8f0; border-radius: 12px; display: grid; gap: 10px; }
.pm-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f6f8fc; font-size: 11.5px; }
.pm-tabs span { flex: 1; padding: 5px; border-radius: 7px; text-align: center; color: #667085; }
.pm-tabs .on { background: #fff; color: #111c38; font-weight: 600; box-shadow: 0 1px 3px rgba(17, 28, 56, 0.1); }
.pm-area { min-height: 54px; padding: 8px 10px; border: 1px solid #3155c6; border-radius: 9px; font-family: "Noto Sans Armenian", serif; font-size: 12px; }
.pm-typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; animation: pm-typed 9s steps(30) infinite; }
@keyframes pm-typed { 0%, 8% { max-width: 0; } 45%, 100% { max-width: 260px; } }
.pm-caret { display: inline-block; width: 1px; height: 14px; background: #111c38; vertical-align: middle; animation: sp-blink 0.8s infinite; }
.pm-dialog .pm-go { animation: pm-go2 9s infinite; }
@keyframes pm-go2 { 0%, 55% { transform: none; } 59% { transform: scale(0.92); } 63%, 100% { transform: none; } }

.pm-card-id { position: relative; height: 150px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #e8edfb, #d9e2fa); overflow: hidden; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-content: start; }
.pm-id-photo { height: 66px; border-radius: 6px; background: #b8c6ee; }
.pm-id-lines .pm-sk { display: block; background: #b8c6ee; }
.pm-mrz { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: #24429f; line-height: 1.5; }
.pm-card-id .pm-beam { height: 30px; animation-duration: 1.8s; }

.pm-entities { grid-template-columns: 54px 1fr 1.2fr; position: relative; }
.pm-rail { height: 170px; padding: 8px 0; border-radius: 12px; background: #111c38; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pm-ent-btn i { display: flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: linear-gradient(135deg, #24429f, #4a6bd1); color: #fff; font-style: normal; font-weight: 700; font-size: 13px; transition: transform 0.2s; animation: pm-entbtn 8s infinite; }
@keyframes pm-entbtn { 0%, 10% { box-shadow: none; } 14%, 30% { box-shadow: 0 0 0 3px rgba(143, 177, 255, 0.6); } 34%, 100% { box-shadow: none; } }
.pm-rail-ico { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); }
.pm-rail-ico.on { background: linear-gradient(135deg, #4a6bd1, #3155c6); }
.pm-ent-menu { display: grid; gap: 4px; padding: 6px; border: 1px solid #e6e8f0; border-radius: 10px; font-size: 11.5px; opacity: 0; animation: pm-entmenu 8s infinite; }
@keyframes pm-entmenu { 0%, 14% { opacity: 0; transform: translateX(-6px); } 20%, 52% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; } }
.pm-ent { padding: 6px 8px; border-radius: 7px; }
.pm-ent.cur { color: #3155c6; font-weight: 600; }
.pm-ent.pick { animation: pm-entpick 8s infinite; }
@keyframes pm-entpick { 0%, 34% { background: transparent; } 38%, 52% { background: #f6f8fc; } 100% { background: transparent; } }
.pm-ent.add { border-top: 1px solid #e6e8f0; color: #3155c6; }
.pm-ent-list { display: grid; gap: 8px; font-size: 11.5px; }
.pm-ent-head { color: #667085; }
.pm-ent-row { display: flex; gap: 8px; align-items: center; padding: 8px; border: 1px solid #e6e8f0; border-radius: 9px; }
.pm-ent-row .pm-sk { margin: 0; }
.pm-ent-row .chip { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; background: #ebf0fb; color: #3155c6; }
.pm-ent-row .chip.b { background: #ebf0fb; color: #24429f; }

.pm-law { grid-template-columns: 1fr 30px 1.2fr; }
.pm-law-card { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #f3dca6; font-size: 12px; }
.pm-law-card b { color: #9a6608; }
.pm-law-arrow { font-size: 22px; color: #667085; text-align: center; }
.pm-law-list { display: grid; gap: 8px; }
.pm-law-row { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e6e8f0; border-radius: 9px; }
.pm-law-row .pm-sk { margin: 0; }
.pm-law-row .upd { margin-left: auto; font-style: normal; animation: pm-upd 9s infinite; }
@keyframes pm-upd { 0%, 50% { opacity: 1; } 56%, 100% { opacity: 0; } }
.pm-law-list .pm-go { justify-self: start; animation: pm-go2 9s infinite; }
.pm-law-done { padding: 8px 10px; border-radius: 9px; background: rgba(22, 128, 93, 0.12); color: #16805d; font-size: 12px; font-weight: 600; opacity: 0; animation: pm-lawdone 9s infinite; }
@keyframes pm-lawdone { 0%, 60% { opacity: 0; } 66%, 100% { opacity: 1; } }

.pm-chat { padding: 0; overflow: hidden; max-width: 420px; }
.pm-chat-head { padding: 12px 14px; background: linear-gradient(135deg, #24429f, #4a6bd1); color: #fff; font-weight: 600; font-size: 13px; }
.pm-chat-log { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fafaff; min-height: 220px; }
.pm-bubble { max-width: 84%; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.45; opacity: 0; animation: pm-bubble 12s infinite; }
.pm-bubble.me { align-self: flex-end; background: #3155c6; color: #fff; }
.pm-bubble.bot { align-self: flex-start; background: #fff; border: 1px solid #e6e8f0; }
.pm-bubble.a { animation-delay: 1.2s; } .pm-bubble.q2 { animation-delay: 3.4s; } .pm-bubble.a2 { animation-delay: 4.6s; border-left: 3px solid #16805d; }
@keyframes pm-bubble { 0% { opacity: 0; transform: translateY(6px); } 4%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@media (max-width: 640px) {
  .pm-edit, .pm-passport, .pm-law, .pm-entities { grid-template-columns: 1fr; }
  .pm-law-arrow { transform: rotate(90deg); }
  .pm-rail { display: none; }
}

/* ── The visual guide ───────────────────────────────────────────────── */
.guide { padding: 50px 0 90px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.guide-head { text-align: center; margin-bottom: 40px; }
.guide-eyebrow { background: var(--accent-soft); color: var(--accent); }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.guide-toc { position: sticky; top: 90px; display: grid; gap: 4px; }
.guide-toc a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.guide-toc a b { flex: 0 0 24px; height: 24px; border-radius: 7px; background: var(--bg-soft); color: var(--ink-muted); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.guide-toc a:hover { background: var(--bg-soft); }
.guide-toc a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.guide-toc a.is-active b { background: var(--grad); color: #fff; }
.guide-sec { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.guide-sec:last-child { border-bottom: 0; }
.guide-text h2 { margin: 12px 0 8px; font-size: 24px; }
.guide-text p { margin: 0 0 14px; color: var(--body); line-height: 1.6; }
.guide-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink); line-height: 1.5; }
.guide-art { display: grid; gap: 16px; }
.guide-sec .pm { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.guide-sec.is-in .pm { opacity: 1; transform: none; }
.auth-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(5, 12, 40, 0.25);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.auth-guide-link:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(5, 12, 40, 0.32); }
.auth-guide-icon { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #3155c6; font-size: 11px; }
.auth-guide-arrow { transition: transform 0.18s; }
.auth-guide-link:hover .auth-guide-arrow { transform: translateX(4px); }
#support-panel-header .sp-guide { color: #fff; font-size: 12px; text-decoration: underline; opacity: 0.9; white-space: nowrap; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; display: flex; flex-wrap: wrap; }
  .guide-sec { grid-template-columns: 1fr; }
}
.pm-edit { grid-template-columns: 1.15fr 1fr; } .pm-edit .pm-doc { font-size: 11.5px; }

/* ── Colleagues on the same review ──────────────────────────────────── */
.rv-work { position: relative; }
.live-layer { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
.live-cursor { position: absolute; transform: translate(-2px, -2px); transition: left 0.85s linear, top 0.85s linear; }
.live-cursor svg path { fill: var(--live); stroke: #fff; stroke-width: 1.2; }
.live-cursor span { position: absolute; left: 14px; top: 14px; padding: 2px 7px; border-radius: 6px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.live-people { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.live-label { margin-right: 4px; font-size: 12.5px; color: var(--ink-muted); }
.live-avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 12.5px; font-weight: 700; border: 2px solid var(--surface); margin-left: -6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.live-label + .live-avatar { margin-left: 0; }
.rv-p.live-picked { outline: 2px solid var(--live) !important; position: relative; }
.rv-p.live-picked::after { content: attr(data-live-name); position: absolute; right: 4px; top: -11px; padding: 1px 6px; border-radius: 5px; background: var(--live); color: #fff; font-size: 10.5px; font-family: var(--font); }
.live-changed { margin: 8px 0 0; }
.rv-by { margin: 0 0 6px; font-size: 12px; color: var(--ink-muted); }

/* ── Discussions and consultations ──────────────────────────────────── */
.rv-talk { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.rv-talk-toggle { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rv-talk-toggle b { margin-left: 2px; }
.rv-talk-body { margin-top: 8px; }
.rv-talk-log { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.rv-talk-empty { margin: 0; font-size: 12px; }
.rv-talk-msg { align-self: flex-start; max-width: 92%; padding: 6px 9px; border-radius: 10px; background: var(--bg-soft); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-talk-msg.mine { align-self: flex-end; background: var(--accent-soft); }
.rv-talk-who { display: block; font-size: 10.5px; color: var(--ink-muted); margin-bottom: 2px; }
.rv-talk-form { display: flex; gap: 6px; margin-top: 8px; }
.rv-talk-form textarea { flex: 1; resize: none; padding: 6px 9px; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 12.5px; background: var(--surface); color: var(--ink); }
.rv-talk-form button { flex: 0 0 32px; border: 0; border-radius: 9px; background: var(--accent-fill); color: #fff; cursor: pointer; }
.rv-talk-lock { margin: 6px 0 0; font-size: 11px; color: var(--ink-muted); }
.rv-talk-badge { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
.rv-talk-badge[hidden] { display: none; }
.consult-about { padding: 8px 12px; border-radius: 10px; background: var(--bg-soft); }
.consult-list { list-style: none; margin: 0; padding: 0; }
.consult-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.consult-list li + li .consult-row { border-top: 1px solid var(--border); border-radius: 0; }
.consult-row:hover { background: var(--bg-soft-2); }
.consult-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; }
.consult-dot.waiting { background: #e0a33a; } .consult-dot.answered { background: #16805d; } .consult-dot.closed { background: var(--border); }
.consult-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.consult-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consult-main .muted { font-size: 12.5px; }
.consult-chat { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.consult-log { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 280px; max-height: 60vh; overflow-y: auto; background: var(--bg-soft-2); }
.consult-msg { align-self: flex-start; max-width: 78%; padding: 10px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap; overflow-wrap: anywhere; }
.consult-msg.mine { align-self: flex-end; background: var(--accent-fill); border-color: var(--accent); color: #fff; }
.consult-msg.mine .consult-who { color: rgba(255, 255, 255, 0.8); }
.consult-msg.specialist:not(.mine) { border-left: 3px solid #16805d; }
.consult-who { display: block; font-size: 11.5px; color: var(--ink-muted); margin-bottom: 3px; }
.consult-wait { align-self: center; color: var(--ink-muted); font-size: 13px; }
.consult-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.consult-form textarea { flex: 1; resize: vertical; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; background: var(--surface); color: var(--ink); }
.consult-chat .hint { margin: 0; padding: 0 14px 12px; }

/* ── E-signature on the contract page ───────────────────────────────── */
.esign-how { margin: 6px 0 14px; }
.esign-how summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.esign-how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.esign-list { display: grid; gap: 10px; }
.esign-row { padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 12px; }
.esign-row.is-new { box-shadow: 0 0 0 3px var(--accent-soft); }
.esign-issued { border-left-color: var(--accent); }
.esign-partial { border-left-color: #e0a33a; }
.esign-signed { border-left-color: #16805d; }
.esign-invalid { border-left-color: #b42318; }
.esign-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.esign-signed .esign-pill { background: rgba(22, 128, 93, 0.13); color: var(--success); }
.esign-partial .esign-pill { background: rgba(224, 163, 58, 0.14); color: var(--warn); }
.esign-invalid .esign-pill { background: rgba(180, 35, 24, 0.12); color: var(--risk); }
.esign-sigs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.esign-sigs li.ok { color: var(--ink); }
.esign-sigs li.bad { color: var(--risk); }
.esign-sigs .muted { font-size: 12.5px; }
.esign-warn { display: block; color: var(--risk); font-size: 13px; margin: 4px 0 0; }
.esign-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.esign-upload { margin: 0; }
.esign-upload .is-disabled { opacity: 0.5; cursor: not-allowed; }

/* ── The profile menu on the rail: account, language, theme, log out ── */
.rail-profile { position: relative; width: 100%; }
.rail-profile > summary { list-style: none; }
.rail-profile > summary::-webkit-details-marker { display: none; }
.profile-menu {
  position: fixed;
  left: 120px;
  bottom: 16px;
  z-index: 60;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(17, 28, 56, 0.22);
  display: grid;
  gap: 6px;
}
.profile-who { display: flex; gap: 10px; align-items: center; padding: 6px 6px 10px; border-bottom: 1px solid var(--border); }
.profile-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.profile-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.profile-who .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link { display: block; width: 100%; padding: 9px 8px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.profile-link:hover { background: var(--bg-soft); }
.profile-logout { color: var(--risk); }
.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: 13px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-soft); }
.seg a, .seg button { padding: 5px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--body); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.seg .on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(17, 28, 56, 0.12); }
.profile-menu form { margin: 0; border-top: 1px solid var(--border); padding-top: 6px; }
@media (max-width: 760px) { .profile-menu { left: 90px; width: min(280px, calc(100vw - 100px)); } }

.esign-unverified { border-left-color: #5b77cf; }

/* ── Forms: required star, drag & drop, phone with country ──────────── */
.req { color: #e0484a; font-weight: 700; }
.drop-ready { position: relative; transition: box-shadow 0.15s, background 0.15s; }
.is-dragover { box-shadow: 0 0 0 3px var(--accent) inset !important; background: var(--accent-soft) !important; }
.is-dragover::after {
  content: "⬇";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 85%, transparent);
  border-radius: inherit;
  pointer-events: none;
  animation: drop-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes drop-pulse { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.phone-wrap { display: flex; gap: 6px; }
.phone-wrap input { flex: 1; min-width: 0; }
.phone-country { flex: 0 0 auto; width: auto; max-width: 120px; padding-right: 6px; }
.rv-fold {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.rv-fold:hover { background: var(--accent-soft); border-color: var(--accent); }
.registry-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.registry-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.registry-search input { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent; padding: 11px 0; outline: none; }
.registry-search-icon { opacity: 0.6; }

/* ── Side panel: duotone icons, entity count, entities in the profile ─ */
.rail-icon svg .duo { fill: #8aa3e6; fill-opacity: 0.6; transition: fill-opacity 0.2s; }
.rail-item:hover .rail-icon svg .duo { fill-opacity: 0.7; }
.rail-item.active .rail-icon svg .duo { fill: #fff; fill-opacity: 0.38; }
.entity-avatar { position: relative; }
.entity-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff8a3d;
  color: #fff;
  font-size: 10.5px;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--rail-bg, #101a3f);
}
.entity-switch-head { display: block; padding: 4px 10px 6px; font-size: 12px; }
.profile-entities { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profile-entities > .muted { padding: 2px 8px 4px; font-size: 12px; }
.profile-entity { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.profile-entity .entity-avatar { width: 24px; height: 24px; flex: 0 0 24px; font-size: 11px; border-radius: 7px; }
.profile-entity b { margin-left: auto; color: var(--accent); }
a.profile-entity:hover { background: var(--bg-soft); }
.profile-entity.is-current { background: var(--accent-soft); font-weight: 600; }
.profile-entity-add { color: var(--accent); font-weight: 600; }
.rail-profile[open] .profile-menu, .rail-entity[open] .rail-pop { animation: pop-in 0.16s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ── Dialogs: confirm, add entity, congratulations ─────────────────── */
.ls-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 26px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(17, 28, 56, 0.35);
  overflow: auto;
}
.ls-dialog[open] { animation: dlg-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.ls-dialog.is-closing { animation: dlg-out 0.16s ease-in forwards; }
.ls-dialog::backdrop { background: rgba(9, 14, 40, 0.45); backdrop-filter: blur(3px); animation: fade-in 0.2s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.ls-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.ls-dialog form { margin: 0; }
.ls-dialog-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--ink-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.ls-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.ls-confirm { text-align: center; width: min(420px, calc(100vw - 32px)); }
.ls-confirm .ls-dialog-actions { justify-content: center; }
.ls-confirm .ls-dialog-actions .btn { min-width: 140px; }
.confirm-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
}
.ls-confirm.is-danger .confirm-icon { background: var(--danger-bg); color: var(--danger); }
.confirm-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.confirm-icon .bin-body { fill: currentColor; fill-opacity: 0.15; }
.confirm-icon .bin-lid { transform-origin: 34px 13px; animation: bin-lid 1.6s ease-in-out 0.25s infinite; }
@keyframes bin-lid { 0%, 55%, 100% { transform: none; } 20%, 35% { transform: rotate(18deg) translateY(-2px); } }
.confirm-text { margin: 6px 0 0; color: var(--body); }
.confirm-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--body); font-size: 13px; }
.confirm-list { margin: 10px auto 0; padding: 0; max-width: 340px; list-style: none; text-align: left; display: grid; gap: 4px; }
.confirm-list li { padding: 6px 10px; border-radius: 8px; background: var(--danger-bg); color: var(--ink); font-size: 13.5px; }
.confirm-list li::before { content: "○ "; color: var(--danger); }
.btn-danger-ghost { border: 1px solid var(--danger-border); background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
@media (prefers-reduced-motion: reduce) {
  .ls-dialog[open], .ls-dialog.is-closing, .confirm-icon .bin-lid { animation: none; }
}

/* congratulations + confetti */
.ls-celebrate { text-align: center; overflow: hidden; }
.celebrate-badge { font-size: 54px; line-height: 1; margin: 4px 0 10px; animation: badge-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both 0.1s; }
@keyframes badge-pop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.celebrate-name { margin: 2px 0 8px; font-size: 18px; font-weight: 700; color: var(--accent); }
.celebrate-steps { margin: 16px auto 0; padding: 0; max-width: 360px; list-style: none; counter-reset: st; text-align: left; display: grid; gap: 8px; }
.celebrate-steps li { counter-increment: st; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.celebrate-steps li::before { content: counter(st); flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.celebrate-steps li.is-done { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }
.celebrate-steps li.is-done::before { content: "✓"; background: var(--success); color: #fff; }
.ls-celebrate .ls-dialog-actions { justify-content: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: confetti-fall linear forwards; }
@keyframes confetti-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), 520px) rotate(var(--r)); }
}

/* ── Legal entities: cards ─────────────────────────────────────────── */
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.ent-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.ent-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(17, 28, 56, 0.12); }
.ent-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.ent-card-head { display: flex; align-items: center; gap: 12px; }
.ent-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; font-size: 18px; }
.ent-card-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ent-card-title strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-card-title .muted { font-size: 12.5px; }
.ent-facts { display: grid; gap: 6px; margin: 0; }
.ent-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; font-size: 13.5px; }
.ent-facts dt { flex: 0 0 auto; color: var(--ink-muted); }
.ent-facts dd { min-width: 0; margin: 0; font-weight: 600; text-align: right; overflow-wrap: break-word; }
.ent-progress { display: grid; gap: 6px; font-size: 12.5px; }
.ent-progress-bar { height: 7px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.ent-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a3d, #facc15); animation: grow 0.8s ease-out; }
.ent-progress.is-done .ent-progress-bar span { background: linear-gradient(90deg, #16805d, #4ade80); }
.ent-progress.is-done .muted { color: var(--success); }
@keyframes grow { from { width: 0 !important; } }
.ent-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ent-card-add {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  border: 2px dashed var(--border);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.ent-card-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.ent-card-add .muted { font-size: 13px; max-width: 240px; }
.ent-add-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 26px; transition: transform 0.2s; }
.ent-card-add:hover .ent-add-plus { transform: rotate(90deg) scale(1.08); }

/* ── Trash ─────────────────────────────────────────────────────────── */
.trash-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.trash-actions form { margin: 0; }
.trash-empty { display: grid; place-items: center; gap: 6px; padding: 30px 0; }
.trash-empty span { font-size: 42px; opacity: 0.5; }
.trash-toast { animation: dlg-in 0.3s ease-out; }

/* ── Missing data: ticks, misses, the result of a save ─────────────── */
.blank-row input.is-filled { border-color: color-mix(in srgb, var(--success) 60%, var(--border)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2322c38e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; padding-right: 28px; }
.blank-row input.is-missing { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.fill-result { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; animation: dlg-in 0.4s ease-out; }
.fill-result strong { font-size: 16px; }
.fill-result p { margin: 2px 0 0; }
.fill-result.is-done { border: 1px solid color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.fill-result.is-partial { border: 1px solid #f5c26b; background: color-mix(in srgb, #f5a524 10%, var(--surface)); }
.fill-result-icon { font-size: 28px; }
.fill-missing { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 2px; }
.fill-check { flex: 0 0 46px; width: 46px; height: 46px; }
.fill-check circle { fill: var(--success); stroke: none; transform-origin: center; animation: badge-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.fill-check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s ease-out 0.35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fill-check path { animation: none; stroke-dashoffset: 0; }
  .ent-card, .ent-progress-bar span, .fill-result, .blank-row input.is-missing { animation: none; transition: none; }
}

/* ── @mentions and notifications ───────────────────────────────────── */
.rv-talk-form { position: relative; }
.rv-talk-at { flex: 0 0 auto; width: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--accent); font-weight: 800; font-size: 16px; cursor: pointer; }
.rv-talk-at:hover { background: var(--accent-soft); border-color: var(--accent); }
.rv-talk-tip { margin: 4px 0 0; font-size: 11.5px; }
.mention-pop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(17, 28, 56, 0.2);
  animation: pop-in 0.14s ease-out;
}
.mention-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mention-row:hover, .mention-row.is-active { background: var(--accent-soft); }
.mention-row .entity-avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; border-radius: 8px; }
.mention-who { display: flex; flex-direction: column; min-width: 0; }
.mention-who strong { font-size: 13.5px; }
.mention-who .muted { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-empty { padding: 8px; font-size: 13px; color: var(--body); }
b.mention { color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 0 3px; font-weight: 700; }
.rv-talk.is-called { animation: called 1.6s ease-out 2; border-radius: 12px; }
@keyframes called { 0% { box-shadow: 0 0 0 0 rgba(49, 85, 198, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(49, 85, 198, 0); } }
.rail-bell summary { list-style: none; }
.rail-bell summary::-webkit-details-marker { display: none; }
.rail-bell .rail-icon { position: relative; }
.bell-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #101a3f;
  animation: bell-pulse 2s ease-in-out infinite;
}
@keyframes bell-pulse { 50% { transform: scale(1.15); } }
.bell-menu {
  position: fixed;
  left: 120px;
  bottom: 90px;
  z-index: 60;
  width: 330px;
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(17, 28, 56, 0.22);
  display: grid;
  gap: 4px;
  animation: pop-in 0.16s ease-out;
}
@media (max-width: 760px) { .bell-menu { left: 90px; width: min(330px, calc(100vw - 100px)); } }
.bell-head { padding: 4px 8px 8px; border-bottom: 1px solid var(--border); }
.bell-item { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.bell-item:hover { background: var(--bg-soft); }
.bell-item.is-unread { background: var(--accent-soft); }
.bell-item .entity-avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; border-radius: 9px; }
.bell-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bell-item > span:last-child > b { display: inline; }
.bell-snippet { margin: 3px 0; padding: 4px 8px; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--bg-soft); color: var(--body); font-size: 12.5px; }
.bell-item .muted { font-size: 11.5px; }
.bell-empty { padding: 14px 8px; text-align: center; }
.bell-all { padding: 8px; border-top: 1px solid var(--border); color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; text-align: center; }
@media (prefers-reduced-motion: reduce) { .bell-count, .rv-talk.is-called { animation: none; } }

/* ── Support widget: persona, structured answers, ask a lawyer ─────── */
.sp-hello { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sp-hello p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.sp-hello-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 16px; }
.sp-answer { white-space: normal; max-width: 94%; }
.sp-answer .sp-summary { margin: 0 0 6px; }
.sp-answer strong { color: var(--ink); font-weight: 700; }
.sp-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: sp; display: grid; gap: 6px; }
.sp-steps li { counter-increment: sp; position: relative; padding-left: 30px; }
.sp-steps li::before {
  content: counter(sp);
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
}
.sp-legal { border-left: 3px solid var(--purple); }
.sp-tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--lavender); color: var(--purple); font-size: 11.5px; font-weight: 700; }
.sp-law { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.sp-law-chip { padding: 3px 8px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--body); font-size: 11.5px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sp-law-chip:hover { border-color: var(--accent); color: var(--accent); }
.sp-note { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-muted); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sp-cta { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--grad); color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 6px 16px rgba(40, 69, 214, 0.25); }
.sp-cta:hover { filter: brightness(1.08); }
.sp-ask-lawyer { padding: 7px 12px; border: 1px solid var(--purple); border-radius: 10px; background: var(--surface); color: var(--purple); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sp-ask-lawyer:hover { background: var(--lavender); }
.sp-done { border-left: 3px solid var(--success); }
.sp-lawyer-btn { flex: 0 0 40px; height: 40px; border: 1px solid var(--purple); border-radius: 12px; background: var(--surface); color: var(--purple); font-size: 17px; cursor: pointer; }
.sp-lawyer-btn:hover { background: var(--lavender); }
.sp-lawyer { padding: 12px; border-top: 1px solid var(--border); background: var(--surface); display: grid; gap: 8px; animation: pop-in 0.16s ease-out; }
.sp-lawyer[hidden], #support-form[hidden] { display: none; }
.sp-lawyer-head { display: flex; justify-content: space-between; align-items: center; color: var(--purple); }
.sp-lawyer-head .sp-close { color: var(--ink-muted); }
.sp-lawyer-price { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--lavender); color: var(--ink); font-size: 12px; line-height: 1.45; }
.sp-lawyer textarea, .sp-lawyer input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); resize: vertical; }
.sp-lawyer .btn { justify-self: end; }


/* ── Legal text: sans by default, serif for reading (the reader's choice) ── */
html[data-doc-font="serif"] { --font-doc: var(--font-serif); }
.doc-font-toggle {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.doc-font-toggle button {
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.doc-font-toggle button[data-doc-font="serif"] { font-family: var(--font-serif); }
.doc-font-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(17, 28, 56, 0.12); }
.doc-font-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
/* rail labels wrap inside the rail instead of being cut (long Armenian words) */
.rail-nav { width: 100%; }
.rail-item { min-width: 0; }
.rail-label { width: 100%; }
.rail-label-long { font-size: 9.6px; letter-spacing: -0.03em; }

/* ── Legal entity menu (filter on lists / dashboard) ──────────────────── */
.ent-menu { position: relative; }
.ent-menu > summary { list-style: none; }
.ent-menu > summary::-webkit-details-marker { display: none; }
.ent-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 360px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ent-menu-btn:hover, .ent-menu[open] .ent-menu-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ent-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-menu-chev { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--ink-muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }
.ent-menu[open] .ent-menu-chev { transform: rotate(180deg); }
.ent-menu-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-fill);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.ent-menu-avatar.is-all { background: var(--ink); color: var(--surface); }
.ent-menu-avatar.is-add { background: var(--accent-soft); color: var(--accent); font-size: 15px; }
.ent-menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 320px;
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(17, 28, 56, 0.18);
  display: grid;
  gap: 2px;
  animation: pop-in 0.16s ease-out;
}
.ent-menu.is-right .ent-menu-pop { left: auto; right: 0; }
.ent-menu-head { padding: 4px 8px 6px; color: var(--ink-muted); font-size: var(--fs-hint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ent-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s;
}
.ent-menu-item:hover { background: var(--bg-soft); }
.ent-menu-item.is-on { background: var(--accent-soft); }
.ent-menu-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ent-menu-text strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-menu-text span { color: var(--ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-menu-check { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ent-menu-add { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--accent); }
.ent-menu-add strong { color: var(--accent); }
@media (max-width: 560px) { .ent-menu-pop { width: min(320px, calc(100vw - 32px)); } }
.field-label { display: block; margin-bottom: 6px; color: var(--ink-muted); font-size: var(--fs-label); font-weight: 500; }
.entity-pick { overflow: visible; }
/* native drop-downs follow the theme where the browser allows it */
select { color-scheme: inherit; }
select option, select optgroup { background-color: var(--surface); color: var(--ink); }

.nav-logout { display: inline; }
.ent-card-title .muted { overflow-wrap: break-word; }

.news-grid { grid-template-columns: minmax(0, 1fr); }
.news-card-meta { flex-wrap: wrap; }
.news-card h3, .news-card p { overflow-wrap: break-word; }

/* ── Nothing sticks out of its card (long names, file names, Armenian words) ── */
.ent-card, .ent-card-title, .form-card, .wiz, .page-head > div, .rv-card, .act, .dash-hero > * { min-width: 0; }
h1, h2, h3, .page-lead { overflow-wrap: break-word; }
.td-file { max-width: 340px; }
.td-file .lp-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.entity-filter { flex-wrap: wrap; max-width: 100%; }
.ent-menu { min-width: 0; max-width: 100%; }
.ent-menu-btn { max-width: min(360px, 100%); }
.ent-menu-name { min-width: 0; }
.bulk-clauses .btn { white-space: normal; text-align: center; }
@media (max-width: 560px) {
  .td-file { max-width: 180px; }
  .ent-menu-btn { max-width: 100%; }
}

/* ── Grid/flex children may shrink; long words wrap inside their card ── */
.lp-tour-row > *, .guide-sec > *, .guide-layout > *, .qa-grid > *, .ov-grid > *, .ent-grid > * { min-width: 0; }
.ent-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.qa-text strong, .qa-text span, .act .muted, .act strong, .ent-card-add .muted { overflow-wrap: break-word; }
.act-legend { flex-wrap: wrap; }
.rv-tabs, .bulk-bar { flex-wrap: wrap; }
.rv-tab { white-space: normal; text-align: center; }
.bulk-bar .btn { white-space: normal; text-align: center; }

@media (max-width: 860px) {
  .lp-tour-row { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .lp-tour-row.rev .lp-tour-text { order: 0; }
}

.lang-menu-code { display: none; }

/* ── Phones: icon-only rail, tighter page padding, stacked blocks ── */
@media (max-width: 560px) {
  .rail { width: 60px; padding: 10px 4px; }
  .rail-label { display: none; }
  .rail-icon { width: 42px; height: 42px; }
  .rail-shell .app-main { margin-left: 60px; padding: 16px 12px; }
  .rail-item.active .rail-icon::after { left: -6px; }
  .profile-menu, .bell-menu { left: 66px; width: min(300px, calc(100vw - 76px)); }
  .qa-grid { grid-template-columns: 1fr; }
  .qa { gap: 12px; padding: 16px; }
  .qa-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
  .qa-icon svg { width: 26px; height: 26px; }
  .qa-text strong { font-size: 16px; }
  .qa-arrow { display: none; }
  .ent-card-head { flex-wrap: wrap; }
  .ent-card-title { flex: 1 1 150px; }
  .ent-card-head .pill { margin-left: 56px; }
  .app-main h1 { font-size: 22px; }
  .page-head { gap: 10px; }
  .navbar-actions { gap: 6px; }
  .navbar-actions .btn-sm { padding: 6px 10px; font-size: 12.5px; }
  .lang-menu-label { display: none; }
  .lang-menu-code { display: inline; font-weight: 600; }
  .theme-toggle { width: 34px; height: 34px; }
  .guide-toc { gap: 6px; }
  .guide-toc a { padding: 6px 8px; font-size: 13px; }
  .lp-tour-text h3, .guide-text h2 { font-size: 21px; }
  .pm { max-width: 100%; }
  .td-file { max-width: 160px; }
}

/* ── One look for every pop-up list: lists, menus, the position picker ── */
:root { --pop-shadow: 0 18px 44px rgba(17, 28, 56, 0.16), 0 2px 6px rgba(17, 28, 56, 0.06); }
:root[data-theme="dark"] { --pop-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pop-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); } }
.ls-select-pop, .combo-pop, .lang-menu-list, .rv-menu-list, .mention-pop, .ent-menu-pop, .bell-menu, .profile-menu {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--pop-shadow);
}
.lang-menu[open] .lang-menu-list, .rv-menu[open] .rv-menu-list { animation: pop-in 0.16s ease-out; }
.lang-menu-list { padding: 6px; min-width: 170px; }
.lang-menu-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--ink); transition: background 0.12s; }
.lang-menu-list a:hover { background: var(--bg-soft); color: var(--ink); }
.lang-menu-list a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang-menu-list a.active::after { content: "✓"; font-weight: 700; }
.rv-menu-list { padding: 6px; }
.rv-menu-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; transition: background 0.12s; }
.rv-menu-list a::before { content: "⬇"; display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }

/* the select: a button like the inputs, the real select stays underneath */
.ls-select { position: relative; width: 100%; }
.ls-select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ls-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ls-select-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ls-select-btn:focus-visible, .ls-select.is-open .ls-select-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ls-select-btn:disabled { cursor: default; opacity: 0.6; }
.ls-select.is-placeholder .ls-select-label { color: var(--ink-muted); }
.ls-select.is-invalid .ls-select-btn, .has-error .ls-select-btn { border-color: var(--danger); }
.ls-select-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-select-btn svg, .combo-toggle svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ink-muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }
.ls-select.is-open .ls-select-btn svg, .combo.is-open .combo-toggle svg { transform: rotate(180deg); stroke: var(--accent); }
.ls-select-pop, .combo-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 45;
  min-width: 200px;
  padding: 6px;
  animation: pop-in 0.15s ease-out;
}
.ls-select.is-up .ls-select-pop { top: auto; bottom: calc(100% + 6px); }
.ls-select-search { width: 100%; margin: 0 0 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 14px; }
.ls-select-search:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.ls-select-list, .combo-pop { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.ls-select-group { padding: 8px 10px 4px; color: var(--ink-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ls-select-item, .combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.ls-select-item span { flex: 1; min-width: 0; }
.ls-select-item:hover, .ls-select-item.is-active, .combo-item:hover, .combo-item.is-active { background: var(--bg-soft); }
.ls-select-item.is-on, .combo-item.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ls-select-item.is-placeholder { color: var(--ink-muted); }
.ls-select-item:disabled { opacity: 0.45; cursor: default; }
.ls-select-item svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ls-select-empty, .combo-empty { padding: 12px 10px; color: var(--ink-muted); font-size: 13.5px; text-align: center; }
.phone-wrap .ls-select { flex: 0 0 120px; width: 120px; }

/* the position picker */
.combo { position: relative; }
.combo input { padding-right: 40px; }
.combo-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.combo-toggle:hover { background: var(--bg-soft); }
.combo.is-open input { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.combo-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.combo-text strong { font-weight: 600; }
.combo-text span { color: var(--ink-muted); font-size: 12.5px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-tag { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 11.5px; font-weight: 600; }
.combo-add { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; padding-top: 11px; }
.combo-add strong { color: var(--accent); }
.combo-plus { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 16px; }
.combo-add.is-busy .combo-plus { animation: spin-soft 1s linear infinite; }
.combo-add.is-error strong { color: var(--danger); white-space: normal; }
@keyframes spin-soft { to { transform: rotate(360deg); } }
.ai-note { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 13px; line-height: 1.5; border-left: 3px solid var(--accent); animation: dlg-in 0.3s ease-out; }
.combo-new { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 4px; position: sticky; bottom: -6px; background: var(--surface); }
.combo-new .combo-add { margin-top: 0; border-top: 0; padding-top: 9px; }
.combo-new-form { display: flex; gap: 8px; padding: 6px 4px 4px; }
.combo-new-form input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; box-shadow: 0 0 0 3px var(--accent-soft); }
.combo-new-form input:focus { outline: none; }
.combo-new [hidden], .combo-pop [hidden] { display: none !important; }

/* ── "The AI is working": a living panel ───────────────────────────── */
.ai-working-host { position: relative; }
.ai-working {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(2px);
  overflow: hidden;
  animation: dlg-in 0.25s ease-out;
}
.ai-working::before {  /* a gradient border that runs around */
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--ai-angle, 0deg), #3155c6, #8aa3e6, #16805d, #3155c6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ai-spin 2.4s linear infinite;
}
@property --ai-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ai-spin { to { --ai-angle: 360deg; } }
.ai-working.is-full { inset: 0; z-index: 20; flex-direction: column; justify-content: center; text-align: center; border-radius: inherit; background: color-mix(in srgb, var(--surface) 94%, transparent); }
.ai-working.is-done { opacity: 0; transform: scale(0.98); transition: opacity 0.2s, transform 0.2s; }
.ai-orb { position: relative; flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; }
.ai-orb i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #3155c6, #8aa3e6, #16805d, #3155c6); animation: ai-rot 1.6s linear infinite; filter: blur(0.5px); }
.ai-orb i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ai-orb b { position: relative; color: var(--accent); font-size: 18px; animation: ai-pulse 1.2s ease-in-out infinite; }
.ai-orb.is-small { flex-basis: 22px; width: 22px; height: 22px; }
.ai-orb.is-small i::after { inset: 2.5px; }
.ai-orb.is-small b { font-size: 10px; }
@keyframes ai-rot { to { transform: rotate(360deg); } }
@keyframes ai-pulse { 50% { transform: scale(1.25); opacity: 0.7; } }
.ai-working-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-working-text strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.ai-step { color: var(--ink-muted); font-size: 13px; opacity: 0; transform: translateY(4px); transition: opacity 0.18s, transform 0.18s; }
.ai-step.is-in { opacity: 1; transform: none; }
.ai-dots { display: inline-flex; gap: 4px; margin-left: auto; }
.ai-working.is-full .ai-dots { margin: 0; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ai-bounce 1s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: 0.15s; }
.ai-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-6px); opacity: 1; } }
.ai-shimmer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: ai-sweep 1.4s ease-in-out infinite; }
@keyframes ai-sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
textarea.is-typing { caret-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-note.is-error { background: var(--danger-bg); border-left-color: var(--danger); }
.sp-typing { display: inline-flex; align-items: center; gap: 8px; animation: none; color: var(--ink-muted); }
.sp-typing .ai-dots i { width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) {
  .ai-working::before, .ai-orb i, .ai-orb b, .ai-dots i, .ai-shimmer { animation: none; }
}

/* ── Field errors: our message under the field ─────────────────────── */
input.is-invalid, textarea.is-invalid, .ls-select.is-invalid .ls-select-btn, .phone-wrap.is-invalid input, .combo.is-invalid input {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-bg) !important;
}
label.is-invalid { color: var(--danger); }
.ls-invalid {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  animation: invalid-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ls-invalid::before {  /* a small pointer to the field */
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--danger-border);
  border-top: 1px solid var(--danger-border);
  background: var(--danger-bg);
  transform: rotate(45deg);
}
:root[data-theme="dark"] .ls-invalid::before { background: #2a1b2b; }
.ls-invalid-icon { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; }
.ls-invalid.is-leaving { opacity: 0; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s; }
@keyframes invalid-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.is-shake { animation: shake 0.4s; }
@media (prefers-reduced-motion: reduce) { .ls-invalid, .is-shake { animation: none; } }
.doc-no { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.number-hint { margin: 6px 0 0; font-size: var(--fs-hint); min-height: 1em; }
/* rail icons: regular strokes, bright white, no blue tint */
.rail-icon svg .duo, .rail-item:hover .rail-icon svg .duo, .rail-item.active .rail-icon svg .duo { fill: #ffffff; fill-opacity: 0.16; }

/* ── Section icons: duotone ───────────────────────────────────────────
   Each section has its colour (--c, accent --c2): coloured lines with a
   soft fill inside. On hover the lines redraw and the accent does its move. */
.dt { width: 26px; height: 26px; overflow: visible; position: relative; z-index: 1; }
.dt-home   { --c: #5b8fff; --c2: #8b7bff; }
.dt-search { --c: #4f8dff; --c2: #22b8f0; }
.dt-people { --c: #2dd4bf; --c2: #14b8a6; }
.dt-scales { --c: #6d84ff; --c2: #a78bfa; }
.dt-doc    { --c: #9b87ff; --c2: #c06cff; }
.dt-chat   { --c: #f472b6; --c2: #fb7185; }
.dt-build  { --c: #2dd4bf; --c2: #38bdf8; }
.dt-pen    { --c: #fbbf24; --c2: #f97316; }
.dt-bell   { --c: #f472b6; --c2: #c084fc; }
.dt-help   { --c: #4f8dff; --c2: #2dd4bf; }
.dt-user   { --c: #8fb4ff; --c2: #5fd3ad; }
.dt-more   { --c: #8fb4ff; --c2: #5b8fff; }
.dt .ln { fill: color-mix(in srgb, var(--c) 16%, transparent); stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.25s; }
.dt .ac { fill: none; stroke: var(--c2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dt .dot { fill: var(--c2); stroke: none; }
.dt-build .win { opacity: 0.4; }
.dt-help .acc.ac, .dt-search .acc.ac { stroke: var(--c2); }

/* the tile behind the icon takes the section's colour */
.rail-icon:has(.dt) { background: color-mix(in srgb, var(--dt-c, #8fb4ff) 9%, transparent); }
.rail-item:hover .rail-icon:has(.dt) { transform: translateY(-2px) rotate(-4deg); }
.rail-item:hover .rail-icon svg.dt { animation: none; }
.rail-item.active .rail-icon::after { background: var(--dt-c, #9fb4ee); }
.rail-item.active .rail-icon:has(.dt) { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dt-c) 60%, transparent), 0 6px 18px -6px var(--dt-c); }
.rail-item.active .dt .ln { fill: color-mix(in srgb, var(--c) 32%, transparent); }
.rail-icon:has(.dt-home)   { --dt-c: #5b8fff; } .rail-icon:has(.dt-search) { --dt-c: #4f8dff; }
.rail-icon:has(.dt-people) { --dt-c: #2dd4bf; } .rail-icon:has(.dt-scales) { --dt-c: #6d84ff; }
.rail-icon:has(.dt-doc)    { --dt-c: #9b87ff; } .rail-icon:has(.dt-chat)   { --dt-c: #f472b6; }
.rail-icon:has(.dt-build)  { --dt-c: #2dd4bf; } .rail-icon:has(.dt-pen)    { --dt-c: #fbbf24; }
.rail-icon:has(.dt-bell)   { --dt-c: #f472b6; } .rail-icon:has(.dt-help)   { --dt-c: #4f8dff; }
.rail-icon:has(.dt-user)   { --dt-c: #8fb4ff; }
.rail-item:hover .rail-icon:has(.dt), .rail-item.active .rail-icon:has(.dt), .rail-item.active:hover .rail-icon:has(.dt) { background: color-mix(in srgb, var(--dt-c) 22%, transparent); }

/* hover: the lines draw themselves again, each accent its own move */
:is(.rail-item:hover, .m-tabbar > :hover) .dt .ln { stroke-dasharray: 80; animation: dt-draw 0.9s ease-out both; }
@keyframes dt-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.dt .acc, .dt .badge, .dt .t, .dt .q, .dt .b { transform-box: fill-box; transform-origin: center; }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-home .acc { animation: dt-pop 0.6s 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes dt-pop { from { transform: scale(0); } }
.dt-search .glass { transform-box: view-box; transform-origin: 11px 11px; }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-search .glass { animation: dt-scan 1.2s ease-in-out; }
@keyframes dt-scan { 30% { transform: translate(-2px, 1px) rotate(-12deg); } 65% { transform: translate(2px, -1px) rotate(10deg); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-people .acc { animation: dt-slide 0.6s 0.3s ease-out both; }
@keyframes dt-slide { from { transform: translateX(5px); opacity: 0; } }
.dt-scales .beam { transform-box: view-box; transform-origin: 12px 6px; }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-scales .beam { animation: dt-tilt 1.4s ease-in-out; }
@keyframes dt-tilt { 25% { transform: rotate(-9deg); } 60% { transform: rotate(7deg); } 85% { transform: rotate(-2deg); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-doc .acc { stroke-dasharray: 8; animation: dt-write 0.5s 0.45s linear both; }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-doc .acc2 { stroke-dasharray: 8; animation: dt-write 0.4s 0.8s linear both; }
@keyframes dt-write { from { stroke-dashoffset: 8; } to { stroke-dashoffset: 0; } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-chat .t { animation: dt-typing 1s infinite; }
.dt-chat .t:nth-child(2) { animation-delay: 0.15s !important; } .dt-chat .t:nth-child(3) { animation-delay: 0.3s !important; }
@keyframes dt-typing { 50% { transform: translateY(-1.6px); opacity: 0.4; } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt .badge { animation: dt-ping 1.2s ease-out; }
@keyframes dt-ping { 0% { transform: scale(0.4); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-build .win { animation: dt-light 0.9s ease-out both; }
.dt-build .win:nth-of-type(2) { animation-delay: 0.12s !important; } .dt-build .win:nth-of-type(3) { animation-delay: 0.24s !important; } .dt-build .win:nth-of-type(4) { animation-delay: 0.36s !important; }
@keyframes dt-light { to { opacity: 1; } }
.dt-pen .nib { transform-box: view-box; transform-origin: 5px 19px; }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-pen .nib { animation: dt-pen 1.1s ease-in-out; }
@keyframes dt-pen { 30% { transform: translate(2px, -1px) rotate(-6deg); } 60% { transform: translate(-1px, 1px) rotate(4deg); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-pen .acc { stroke-dasharray: 14; animation: dt-scribble 0.8s 0.3s ease-out both; }
@keyframes dt-scribble { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
.dt-bell .body { transform-box: view-box; transform-origin: 12px 3px; }
:is(.rail-item:hover, .m-tabbar > :hover, .m-bell:hover) .dt-bell .body { animation: dt-swing 1s ease-in-out; }
@keyframes dt-swing { 20% { transform: rotate(14deg); } 40% { transform: rotate(-11deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-help .q { animation: dt-bounce 0.8s ease; }
@keyframes dt-bounce { 30% { transform: translateY(-2px); } 60% { transform: translateY(1px); } }
:is(.rail-item:hover, .m-tabbar > :hover) .dt-user .acc, :is(.rail-item:hover, .m-tabbar > :hover) .dt-more .acc { animation: dt-pop 0.5s 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
/* the current section: its accent breathes */
:is(.rail-item.active, .m-tabbar .on) .dt .acc { animation: dt-breathe 2.4s ease-in-out infinite; }
@keyframes dt-breathe { 50% { opacity: 0.55; } }
@media (max-width: 760px) { .dt { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .dt, .dt * { animation: none !important; } }
.bell-count { z-index: 2; }
.td-check { width: 34px; }

/* ── Upload zone: a chosen file is unmistakable ───────────────────── */
.dropzone .dz-done { display: none; }
.dropzone.is-ready { border-style: solid; border-color: var(--success); background: var(--success-bg); animation: dz-in 0.35s ease-out; }
.dropzone.is-ready .dz-up, .dropzone.is-bad .dz-up { display: none; }
.dropzone.is-ready .dz-done { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--success); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--success) 40%, transparent); animation: badge-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.dropzone.is-ready .dz-done svg { width: 28px; height: 28px; color: #fff; }
.dropzone.is-ready strong { color: var(--ink); font-size: 16px; }
.dropzone.is-ready .hint { color: var(--success); font-weight: 600; }
.dropzone.is-bad { border-style: solid; border-color: var(--danger); background: var(--danger-bg); }
.dropzone.is-bad .hint { color: var(--danger); font-weight: 600; }
.dz-remove { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.dz-remove:hover { color: var(--danger); border-color: var(--danger); }
.dz-remove[hidden] { display: none; }
@keyframes dz-in { from { transform: scale(0.98); } to { transform: none; } }
.btn.is-pulse { animation: btn-pulse 1.6s ease-in-out infinite; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .dropzone.is-ready, .dropzone.is-ready .dz-done, .btn.is-pulse { animation: none; } }

/* ── Review results: header, KPI rings, document viewer, severity tabs ── */
.rv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.rv-head-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, var(--accent), var(--navy)); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.rv-head-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-head-text { flex: 1 1 260px; min-width: 0; }
.rv-head-text h1 { margin: 0; }
.rv-head-text .page-lead { margin: 4px 0 0; }
.rv-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-head-actions form { margin: 0; }
.rv-menu.is-down .rv-menu-list { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; z-index: 40; }

.rv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 0 0 18px; }
.metric { --m: var(--accent); display: flex; align-items: center; gap: 14px; padding: 16px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 2px 10px rgba(17, 28, 56, 0.04); }
.metric.lvl-high { --m: var(--risk); }
.metric.lvl-warning { --m: #d48a1c; }
.metric.lvl-low, .metric.lvl-ok { --m: var(--success); }
.metric.lvl-info { --m: var(--accent); }
.m-dial { position: relative; flex: 0 0 64px; height: 64px; }
.m-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke-width: 6; }
.m-track { stroke: color-mix(in srgb, var(--m) 14%, transparent); }
.m-fill { stroke: var(--m); stroke-linecap: round; animation: m-grow 0.9s ease-out both; }
@keyframes m-grow { from { stroke-dasharray: 0 100; } }
.m-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.m-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-label { font-size: 12.5px; color: var(--ink-muted); overflow-wrap: break-word; }
.m-value { font-size: 18px; font-weight: 700; color: var(--m); line-height: 1.25; overflow-wrap: break-word; }
.m-sub { font-size: 12px; color: var(--ink-muted); overflow-wrap: break-word; }

.rv-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 2px 10px rgba(17, 28, 56, 0.04); overflow: hidden; }
.rv-doc > .rv-tabs { padding: 8px 12px 0; margin: 0; }
.rv-doc .rv-page { border: 0; border-radius: 0; box-shadow: none; font-size: calc(var(--fs-doc) * var(--doc-zoom, 1)); }
.rv-doc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft-2); }
.rv-file-icon { flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 6px; display: grid; place-items: center; border-radius: 9px; background: var(--risk-bg); color: var(--risk); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.rv-file { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.rv-file strong { color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-file .muted { font-size: 12.5px; }
.rv-doc-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-zoom { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.rv-zoom button, .rv-wide-btn { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; width: 32px; height: 32px; cursor: pointer; }
.rv-zoom button:hover, .rv-wide-btn:hover { background: var(--accent-soft); color: var(--accent); }
.rv-zoom span { min-width: 48px; text-align: center; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rv-wide-btn { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.rv-wide-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-wide-btn.is-on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.rv-work.is-wide { grid-template-columns: minmax(0, 1fr); }
.rv-work.is-wide .rv-notes { display: none; }

.rv-tabs-sev { display: flex; gap: 0; flex-wrap: wrap; margin: 0 0 8px; padding: 4px; border-radius: 12px; background: var(--bg-soft-2); border: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.rv-tabs-sev .rv-chip { flex: 1 1 auto; justify-content: center; gap: 5px; border: 0; border-radius: 9px; background: transparent; padding: 7px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.rv-tabs-sev .rv-chip b { padding: 0 7px; border-radius: 999px; background: var(--rv-sev, var(--ink-muted)); color: #fff; font-size: 11.5px; line-height: 18px; }
.rv-tabs-sev .rv-chip[data-filter=""] b { background: var(--navy); }
.rv-tabs-sev .rv-chip.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(17, 28, 56, 0.1); }

.rv-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.sev-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--rv-bg); color: var(--rv-fill); font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; }
.rv-card.is-resolved .sev-tag { background: var(--success-bg); color: var(--success); }
.law-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.law-chip { padding: 2px 8px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--rv-sev) 35%, transparent); background: color-mix(in srgb, var(--rv-sev) 6%, transparent); color: var(--body); font-size: 11.5px; white-space: nowrap; }
.rv-card-body > .rv-sev { display: none; }
@media (max-width: 760px) {
  .rv-head-actions { width: 100%; }
  .rv-head-icon { display: none; }
  .rv-doc .rv-page { padding: 22px 16px; }
}
:root[data-theme="dark"] .sev-tag { color: var(--rv-sev); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sev-tag { color: var(--rv-sev); } }
@media (min-width: 1101px) { .rv-work:not(.is-wide) { grid-template-columns: minmax(0, 1fr) 410px; } }
.rv-tabs-sev .rv-chip { padding: 7px 6px; font-size: 12px; }
:root[data-theme="dark"] .rv-tabs-sev .rv-chip[data-filter=""] b { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-tabs-sev .rv-chip[data-filter=""] b { background: var(--accent); } }

/* "fill in the missing data": what each gap is, an example, the gap shown in its sentence */
.gap-row { gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.gap-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.gap-head strong { color: var(--ink); font-size: 14px; }
.gap-num { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); font-size: 12px; font-weight: 700; }
.gap-ex { margin-left: auto; font-size: 12.5px; color: var(--ink-muted); }
.gap-ex b { color: var(--ink); font-weight: 600; }
.gap-ctx { font-size: 13px; color: var(--ink-muted); line-height: 1.55; overflow-wrap: break-word; }
.gap-ctx mark { font-style: italic; opacity: 0.85; padding: 1px 6px; margin: 0 2px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border: 1px dashed currentColor; font-weight: 600; }
@media (max-width: 600px) { .gap-ex { margin-left: 0; width: 100%; } }

/* ══ Landing (home): hero with a live product mock, products, steps, prices, FAQ ══ */
.is-home .navbar { background: rgba(10, 18, 44, 0.86); border-bottom: 1px solid rgba(255, 255, 255, 0.06); --ls-logo-ink: #fff; }
.is-home .navbar .nav-links, .is-home .navbar .nav-links a, .is-home .navbar .lang-menu > summary, .is-home .navbar .theme-toggle, .is-home .navbar .nav-login { color: #e8edff; }
.is-home .navbar .nav-links a:hover { color: #fff; }
.is-home .navbar .nav-login, .is-home .navbar .theme-toggle { border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.is-home .navbar .nav-login:hover, .is-home .navbar .theme-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.is-home .navbar .lang-menu > summary { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }

.hx { position: relative; overflow: hidden; color: #fff; padding: 64px 0 120px; background: radial-gradient(900px 500px at 85% 20%, rgba(49, 85, 198, 0.45), transparent 70%), linear-gradient(165deg, #0a122c 0%, #111c38 50%, #182a66 100%); }
.hx-glow { position: absolute; inset: auto -10% -40% 40%; height: 70%; background: radial-gradient(closest-side, rgba(111, 139, 220, 0.35), transparent); filter: blur(30px); animation: hx-drift 12s ease-in-out infinite alternate; }
@keyframes hx-drift { to { transform: translateX(-12%) translateY(-6%); } }
.hx-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; color: #dfe6ff; }
.hx-eyebrow svg { width: 16px; height: 16px; fill: #8fa8ff; }
.hx-title { margin: 20px 0 16px; font-size: clamp(32px, 3.7vw, 50px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; color: #fff; overflow-wrap: break-word; }
.hx-lead { margin: 0 0 28px; font-size: 17.5px; line-height: 1.6; color: #c9d3f2; max-width: 560px; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-btn { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.hx-btn.btn-primary { box-shadow: 0 10px 30px rgba(49, 85, 198, 0.55); }
.hx-btn span { transition: transform 0.2s; display: inline-block; }
.hx-btn:hover span { transform: translateX(4px); }
.hx-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.hx-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hx-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hx-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #dfe6ff; max-width: 190px; line-height: 1.35; }
.hx-trust svg { flex: 0 0 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; padding: 5px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 50%; }
.hx-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--bg); }

/* the product mock */
.hm { --hm-ink: var(--ink); display: grid; grid-template-columns: 54px minmax(0, 1fr); min-height: 420px; border-radius: 18px; overflow: hidden; background: var(--surface); color: var(--hm-ink); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform 0.6s; }
.hm:hover { transform: perspective(1600px) rotateY(-2deg); }
.hm-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: #111c38; }
.hm-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(140deg, #6f8bdc, #3155c6); margin-bottom: 8px; }
.hm-side i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.hm-side i.on { border-color: #8fa8ff; box-shadow: 0 0 12px #3155c6; background: rgba(49, 85, 198, 0.4); }
.hm-main { display: flex; flex-direction: column; min-width: 0; }
.hm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.hm-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-title b { font-size: 15px; }
.hm-title span { font-size: 12px; color: var(--ink-muted); }
.hm-score { display: flex; align-items: center; gap: 10px; position: relative; }
.hm-score svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.hm-score circle { fill: none; stroke-width: 6; }
.hm-track { stroke: var(--bg-soft-2); }
.hm-fill { stroke: #16805d; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s ease-out, stroke 0.4s; }
.hm.score .hm-fill { stroke-dasharray: 62 100; stroke: #d48a1c; }
.hm.fixed .hm-fill { stroke-dasharray: 81 100; stroke: #16805d; }
.hm-pct { position: absolute; left: 0; width: 52px; top: 0; height: 52px; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 12px; font-weight: 700; }
.hm-score-label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; }
.hm-score-label small { font-weight: 400; color: var(--ink-muted); font-size: 11.5px; }
.hm-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; padding: 14px; flex: 1; background: var(--bg-soft); }
.hm-doc { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; line-height: 1.75; }
.hm-doc p { margin: 0 0 4px; }
.hm-doc .hm-h { text-align: center; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; font-size: 11px; }
.hm-doc .sk { display: inline-block; height: 6px; margin: 0 4px 0 0; border-radius: 4px; background: var(--bg-soft-2); vertical-align: middle; }
.sk.w50 { width: 40%; } .sk.w60 { width: 50%; } .sk.w70 { width: 58%; } .sk.w80 { width: 66%; } .sk.w90 { width: 76%; }
.hm-scan { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(49, 85, 198, 0.16), transparent); border-bottom: 2px solid rgba(49, 85, 198, 0.55); opacity: 0; }
.hm.scan .hm-scan { animation: hm-scan 2.8s ease-in-out forwards; }
@keyframes hm-scan { 0% { top: -20%; opacity: 1; } 90% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
.hm-m { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; border-bottom: 2px solid transparent; transition: background 0.4s, border-color 0.4s; }
.hm-m sup { font-size: 9px; font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.hm.m1 .hm-m1, .hm.m2 .hm-m2, .hm.m3 .hm-m3 { background: var(--rv-bg); border-color: var(--rv-line); }
.hm.m1 .hm-m1 sup, .hm.m2 .hm-m2 sup, .hm.m3 .hm-m3 sup { opacity: 1; }
.hm-m1 { --rv-bg: var(--risk-bg); --rv-line: var(--risk); }
.hm-m2 { --rv-bg: rgba(224, 163, 58, 0.16); --rv-line: #e0a33a; }
.hm-m3 { --rv-bg: rgba(91, 119, 207, 0.12); --rv-line: #5b77cf; }
.hm-m1 s { text-decoration: none; }
.hm-m1 ins { display: none; text-decoration: none; }
.hm.fixed .hm-m1 { --rv-bg: var(--success-bg); --rv-line: var(--success); }
.hm.fixed .hm-m1 s { display: none; }
.hm.fixed .hm-m1 ins { display: inline; animation: hm-pop 0.5s ease; }
@keyframes hm-pop { from { opacity: 0; } }
.hm-notes { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 10.5px; font-weight: 600; color: var(--ink-muted); }
.hm-tabs span { flex: 1; text-align: center; padding: 4px 2px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tabs span.on { background: var(--bg-soft); color: var(--ink); }
.hm-tabs b { display: inline-block; min-width: 15px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 9.5px; }
.hm-tabs .t-high b { background: var(--risk); } .hm-tabs .t-warn b { background: #d48a1c; }
.hm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--rv-sev); font-size: 11.5px; opacity: 0; transform: translateX(24px); transition: opacity 0.45s, transform 0.45s cubic-bezier(.2, .9, .3, 1.2), border-color 0.4s; }
.hm.c1 .hm-c1, .hm.c2 .hm-c2, .hm.c3 .hm-c3 { opacity: 1; transform: none; }
.hm-card b { font-size: 12px; line-height: 1.3; }
.hm-pill { padding: 1px 8px; border-radius: 999px; background: var(--rv-bg); color: var(--rv-fill); font-size: 10px; font-weight: 700; }
.hm-p-new { display: none; }
.hm.fixed .hm-c1 { --rv-sev: var(--success); --rv-bg: var(--success-bg); --rv-fill: var(--success); }
.hm.fixed .hm-p-old { display: none; }
.hm.fixed .hm-p-new { display: inline; }
.hm-law { font-size: 10px; color: var(--ink-muted); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); }
.hm-act { align-self: flex-end; margin-top: -18px; padding: 3px 9px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; transition: transform 0.15s, opacity 0.3s; }
.hm.press .hm-act { transform: scale(0.9); box-shadow: 0 0 0 4px var(--accent-soft); }
.hm.fixed .hm-act { opacity: 0; }
.hm.out .hm-card, .hm.out .hm-m, .hm.out .hm-fill { opacity: 0.0; transition: opacity 0.5s; }
:root[data-theme="dark"] .hm-pill { color: var(--rv-sev); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hm-pill { color: var(--rv-sev); } }

/* sections */
.hs { padding: 80px 0; }
.hs-soft { background: var(--bg-soft); }
.hs-tight { padding: 30px 0 80px; }
.hs-title { margin: 0 0 10px; text-align: center; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }
.hs-sub { margin: 0 auto 40px; text-align: center; max-width: 640px; font-size: 16.5px; color: var(--ink-muted); line-height: 1.55; }
[data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
[data-rise].is-in { opacity: 1; transform: none; }

/* products */
.hp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.hp { display: flex; flex-direction: column; gap: 20px; padding: 26px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 10px 40px rgba(17, 28, 56, 0.06); transition: transform 0.3s, box-shadow 0.3s; min-width: 0; }
.hp:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(17, 28, 56, 0.12); }
.hp-blue { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 60%); }
.hp-peach { background: linear-gradient(160deg, color-mix(in srgb, #f08a5d 9%, var(--surface)), var(--surface) 60%); }
.hp-head { display: flex; gap: 16px; align-items: flex-start; }
.hp-head h3 { margin: 4px 0 6px; font-size: 21px; color: var(--ink); }
.hp-head p { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.55; }
.hp-icon { flex: 0 0 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(140deg, #3155c6, #24429f); box-shadow: 0 10px 24px rgba(49, 85, 198, 0.35); }
.hp-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: center; }
.hp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hp-checks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.hp-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2316805d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hp-art { position: relative; height: 170px; }
.hp-paper { position: absolute; inset: 0 10px 20px 0; padding: 14px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(17, 28, 56, 0.1); display: flex; flex-direction: column; gap: 7px; transform: rotate(-2deg); }
.hp-ph { font-size: 7.5px; font-weight: 700; text-align: center; color: var(--ink); letter-spacing: 0.03em; }
.hp-paper i { height: 5px; border-radius: 3px; background: var(--bg-soft-2); }
.hp-paper i.s { width: 70%; }
.hp-paper i.r { background: color-mix(in srgb, var(--risk) 35%, transparent); }
.hp-badge { position: absolute; right: 0; bottom: 6px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(17, 28, 56, 0.16); font-size: 11.5px; font-weight: 600; animation: hp-float 4s ease-in-out infinite; }
.hp-badge span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; }
.hp-badge-risk { color: var(--risk); } .hp-badge-risk span { background: var(--risk); }
.hp-badge-ok { color: var(--success); } .hp-badge-ok span { background: var(--success); }
@keyframes hp-float { 50% { transform: translateY(-6px); } }
.hp-btn { justify-content: center; padding: 13px; border-radius: 12px; margin-top: auto; }
.hp-btn-soft { background: color-mix(in srgb, #f08a5d 16%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #f08a5d 30%, transparent); }
.hp-btn-soft:hover { background: color-mix(in srgb, #f08a5d 24%, var(--surface)); color: var(--ink); }

/* facts */
.hf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; margin-top: 36px; }
.hf-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.hf-icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); }
.hf-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hf-item b { display: block; font-size: 24px; color: var(--ink); line-height: 1.1; }
.hf-item div span { font-size: 13px; color: var(--ink-muted); line-height: 1.35; display: block; }

/* four steps */
.hw { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: none; }
.hw::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); transform-origin: left; transform: scaleX(0); transition: transform 1.6s ease; opacity: 0.5; }
.hw.is-in::before { transform: scaleX(1); }
.hw li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; opacity: 0; transform: translateY(18px) scale(0.96); transition: opacity 0.5s, transform 0.5s; }
.hw.is-in li { opacity: 1; transform: none; }
.hw li:nth-child(2) { transition-delay: 0.35s; } .hw li:nth-child(3) { transition-delay: 0.7s; } .hw li:nth-child(4) { transition-delay: 1.05s; }
.hw-icon { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(49, 85, 198, 0.15); }
.hw-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hw.is-in li .hw-icon { animation: hw-ping 0.8s ease both; }
.hw.is-in li:nth-child(2) .hw-icon { animation-delay: 0.35s; } .hw.is-in li:nth-child(3) .hw-icon { animation-delay: 0.7s; } .hw.is-in li:nth-child(4) .hw-icon { animation-delay: 1.05s; }
@keyframes hw-ping { 40% { box-shadow: 0 0 0 10px var(--accent-soft); } }
.hw-n { position: absolute; top: -6px; left: calc(50% - 46px); z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.hw b { margin-top: 6px; font-size: 16px; color: var(--ink); }
.hw li > span:last-child { font-size: 14px; color: var(--ink-muted); }

/* prices */
.pr-toggle { display: flex; width: max-content; max-width: 100%; margin: -16px auto 30px; padding: 4px; border-radius: 999px; background: var(--bg-soft-2); border: 1px solid var(--border); }
.pr-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.pr-toggle button.on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(49, 85, 198, 0.35); }
.pr-save { padding: 1px 6px; border-radius: 6px; background: var(--success-bg); color: var(--success); font-size: 12px; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 22px; align-items: stretch; }
.pr { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(17, 28, 56, 0.05); min-width: 0; }
.pr-hot { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(49, 85, 198, 0.2); transform: translateY(-8px); }
.pr-hot[data-rise]:not(.is-in) { transform: translateY(26px); }
.pr-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pr-head { display: flex; justify-content: space-between; gap: 12px; }
.pr-head h3 { margin: 0; font-size: 20px; color: var(--ink); }
.pr-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.pr-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); }
.pr-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pr-price b { font-size: 36px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pr-price b.flip { animation: pr-flip 0.4s ease; }
@keyframes pr-flip { from { opacity: 0; transform: translateY(-8px); } }
.pr-price span { color: var(--ink-muted); font-size: 14px; }
.pr-custom b { font-size: 24px; }
.pr-custom span { width: 100%; }
.pr-note { margin: -10px 0 0; font-size: 12.5px; color: var(--success); }
.pr-btn { justify-content: center; margin-top: auto; padding: 12px; border-radius: 12px; }

/* reviews (examples) */
.rv3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.rq { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.rq-mark { font-size: 48px; line-height: 0.6; color: var(--accent); font-family: Georgia, serif; }
.rq blockquote { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; flex: 1; }
.rq figcaption { display: flex; align-items: center; gap: 10px; }
.rq-ava { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.rq figcaption b { display: block; color: var(--ink); font-size: 14.5px; }
.rq figcaption small { color: var(--ink-muted); font-size: 12.5px; }
.rq-stars { margin-left: auto; color: #f5a524; letter-spacing: 1px; }

/* FAQ */
.hq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
.hq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: box-shadow 0.2s, border-color 0.2s; }
.hq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 8px 24px rgba(49, 85, 198, 0.08); }
.hq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 15px; }
.hq-item summary::-webkit-details-marker { display: none; }
.hq-plus { position: relative; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.hq-plus::before, .hq-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform 0.25s; }
.hq-plus::after { transform: rotate(90deg); }
.hq-item[open] .hq-plus::after { transform: rotate(0); }
.hq-item p { margin: 0; padding: 0 18px 16px; color: var(--body); font-size: 14.5px; line-height: 1.6; }

/* call to action */
.hc { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 34px; border-radius: 22px; color: #fff; background: radial-gradient(600px 200px at 20% 0%, rgba(49, 85, 198, 0.5), transparent), linear-gradient(135deg, #0a122c, #182a66); box-shadow: 0 30px 60px rgba(17, 28, 56, 0.25); }
.hc-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(140deg, #3155c6, #6f8bdc); }
.hc-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.hc h2 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.hc p { margin: 0; color: #c9d3f2; font-size: 15px; line-height: 1.5; }
.hc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hc-list li { position: relative; padding-left: 26px; font-size: 14px; color: #e8edff; }
.hc-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 11px; text-align: center; line-height: 18px; }
.hc-btn { padding: 14px 24px; border-radius: 12px; white-space: nowrap; box-shadow: 0 10px 30px rgba(49, 85, 198, 0.55); }

/* footer */
.hfoot { background: #0a122c; color: #c9d3f2; padding: 56px 0 24px; }
.hfoot-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.hfoot-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; max-width: 320px; }
.hfoot nav { display: flex; flex-direction: column; gap: 10px; }
.hfoot nav b { color: #fff; font-size: 14.5px; margin-bottom: 4px; }
.hfoot nav a, .hfoot nav button { color: #c9d3f2; font: inherit; font-size: 14px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: none; }
.hfoot nav a:hover, .hfoot nav button:hover { color: #fff; }
.hfoot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #8d99c2; }

@media (max-width: 1080px) {
  .hx-inner { grid-template-columns: minmax(0, 1fr); }
  .hm { transform: none; }
  .hc { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hc-icon { display: none; }
}
@media (max-width: 760px) {
  .hx { padding: 36px 0 90px; }
  .hm { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hm-side { display: none; }
  .hm-body { grid-template-columns: minmax(0, 1fr); }
  .hm-score-label { display: none; }
  .hp-body { grid-template-columns: minmax(0, 1fr); }
  .hp-art { display: none; }
  .hp-head { flex-direction: column; gap: 12px; }
  .hp-icon { flex-basis: auto; width: 50px; height: 50px; }
  .hm-doc .sk { display: none; }
  .hw { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .hw::before { display: none; }
  .hq { grid-template-columns: minmax(0, 1fr); }
  .hfoot-inner { grid-template-columns: 1fr 1fr; }
  .hfoot-brand { grid-column: 1 / -1; }
  .hs { padding: 56px 0; }
  .pr-hot { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rise], .hw li, .hm-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hx-glow, .hp-badge { animation: none; }
}

/* landing, interactive: section tabs over the mock, the HR and law scenes, ⤢ dialog, clickable steps */
.hm-wrap { min-width: 0; }
.hm-tabs-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.hm-tabs-top [role="tab"] { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #c9d3f2; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.hm-tabs-top [role="tab"]:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hm-tabs-top [role="tab"].on { background: #fff; color: #111c38; border-color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.hm-expand { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.hm-expand:hover { background: rgba(255, 255, 255, 0.16); }
.hm-expand svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-hint { margin: 10px 0 0; font-size: 12.5px; color: #9fb0e0; text-align: center; }
.hm-side button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: rgba(255, 255, 255, 0.55); cursor: pointer; transition: background 0.2s, color 0.2s; }
.hm-side button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-side button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.hm-side button.on { color: #fff; background: rgba(49, 85, 198, 0.55); box-shadow: 0 0 14px rgba(49, 85, 198, 0.8); }
.hm-scene { animation: hm-in 0.45s ease; }
.hm-scene[hidden] { display: none !important; }
@keyframes hm-in { from { opacity: 0; transform: translateY(8px); } }
button.hm-card { font: inherit; text-align: left; width: 100%; color: inherit; cursor: pointer; }
button.hm-card:hover { box-shadow: 0 6px 16px rgba(17, 28, 56, 0.12); }
.hm-m.is-flash { animation: hm-flash 1.1s ease; }
@keyframes hm-flash { 0%, 60% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--rv-line) 35%, transparent); } }
.hm-act { cursor: pointer; }

/* HR scene */
.hm-hr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.hm-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.hm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-muted); }
.hm-form i { font-style: normal; min-height: 30px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font-size: 12.5px; }
.hm.f1 .hm-form label:nth-child(1) i, .hm.f2 .hm-form label:nth-child(2) i, .hm.f3 .hm-form label:nth-child(3) i { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hm.f2 .hm-form label:nth-child(1) i, .hm.f3 .hm-form label:nth-child(-n+2) i, .hm.gen .hm-form i { border-color: var(--border); box-shadow: none; }
.hm-gen { align-self: flex-start; padding: 7px 14px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; transition: transform 0.15s; }
.hm.gen .hm-gen { transform: scale(0.92); box-shadow: 0 0 0 5px var(--accent-soft); }
.hm-docs { display: flex; flex-direction: column; gap: 8px; }
.hm-docs > b { font-size: 12.5px; color: var(--ink); opacity: 0; transition: opacity 0.3s; }
.hm.d1 .hm-docs > b { opacity: 1; }
.hm-doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--ink); opacity: 0; transform: translateX(20px); transition: opacity 0.4s, transform 0.4s cubic-bezier(.2, .9, .3, 1.2); }
.hm-doc-item i { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #2b579a; color: #fff; font-size: 11px; font-weight: 800; }
.hm-doc-item em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--ink-muted); font-size: 11px; }
.hm-doc-item::after { content: "✓"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-size: 10px; }
.hm.d1 .hm-doc-item:nth-of-type(1), .hm.d2 .hm-doc-item:nth-of-type(2), .hm.d3 .hm-doc-item:nth-of-type(3) { opacity: 1; transform: none; }

/* law scene */
.hm-law-body { grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.hm-edition { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px 70px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); opacity: 0; transform: translateY(-10px); transition: opacity 0.4s, transform 0.4s; }
.hm.e1 .hm-edition { opacity: 1; transform: none; }
.hm-edition b { font-size: 13px; color: var(--ink); }
.hm-edition span:last-child { font-size: 11.5px; color: var(--ink-muted); }
.hm-new { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); padding: 4px 8px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; animation: hm-ping 1.6s ease-in-out infinite; }
@keyframes hm-ping { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
.hm-affects { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.hm-affects > b { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.hm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--bg-soft); font-size: 12px; opacity: 0; transform: translateX(-14px); transition: opacity 0.35s, transform 0.35s; }
.hm.r1 .hm-row:nth-of-type(1), .hm.r2 .hm-row:nth-of-type(2), .hm.r3 .hm-row:nth-of-type(3) { opacity: 1; transform: none; }
.hm-row i { font-style: normal; color: var(--ink); font-weight: 600; }
.hm-st { font-style: normal; font-size: 11px; font-weight: 700; }
.hm-st s { text-decoration: none; color: #b26a00; background: rgba(224, 163, 58, 0.16); padding: 2px 8px; border-radius: 999px; }
.hm-st ins { display: none; text-decoration: none; color: var(--success); background: var(--success-bg); padding: 2px 8px; border-radius: 999px; }
.hm.done .hm-st s { display: none; }
.hm.done .hm-st ins { display: inline; animation: hm-pop 0.4s ease; }
.hm-upd { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; transition: transform 0.15s, opacity 0.3s; }
.hm.upd .hm-upd { transform: scale(0.92); box-shadow: 0 0 0 5px var(--accent-soft); }
.hm.done .hm-upd { opacity: 0.45; }
.hm-agr { font-size: 12px; color: var(--success); font-weight: 600; opacity: 0; transition: opacity 0.4s; }
.hm.agr .hm-agr { opacity: 1; }
.hm.out .hm-doc-item, .hm.out .hm-row, .hm.out .hm-edition, .hm.out .hm-agr { opacity: 0; }

/* ⤢ dialog */
.hm-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 20px; background: #0d1736; color: #fff; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.hm-dialog::backdrop { background: rgba(5, 10, 28, 0.72); backdrop-filter: blur(4px); }
.hm-dialog[open] { animation: hm-zoom 0.3s ease; }
@keyframes hm-zoom { from { opacity: 0; transform: scale(0.94); } }
.hm-dialog-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 14px 0; }
.hm-dialog-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.hm-dialog-body { padding: 8px 24px 24px; }
.hm-wrap.is-big .hm { transform: none; min-height: 560px; }
.hm-wrap.is-big .hm-doc { font-size: 14px; }
.hm-wrap.is-big .hm-card { font-size: 13px; }
.hm-wrap.is-big .hm-card b { font-size: 14px; }
.hm-wrap.is-big .hm-expand, .hm-wrap.is-big .hm-hint { display: none; }

/* clickable steps */
.hw-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px 12px; border: 0; border-radius: 16px; background: transparent; font: inherit; color: inherit; text-align: center; cursor: pointer; position: relative; transition: background 0.25s; }
.hw-btn:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.hw-btn .hw-t { font-size: 14px; color: var(--ink-muted); }
.hw-btn.on .hw-icon { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 30px rgba(49, 85, 198, 0.45); transform: scale(1.08); }
.hw-btn.on .hw-icon svg { stroke: #fff; }
.hw-btn.on b { color: var(--accent); }
.hw-icon { transition: background 0.3s, transform 0.3s, box-shadow 0.3s; }
.hw-panel { position: relative; margin: 26px auto 0; max-width: 820px; min-height: 104px; padding: 20px 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(17, 28, 56, 0.08); overflow: hidden; }
.hw-detail { display: none; gap: 16px; align-items: flex-start; }
.hw-detail.on { display: flex; animation: hm-in 0.4s ease; }
.hw-detail .hw-icon { flex: 0 0 52px; width: 52px; height: 52px; }
.hw-detail .hw-icon svg { width: 24px; height: 24px; }
.hw-detail b { font-size: 17px; color: var(--ink); }
.hw-detail p { margin: 6px 0 0; color: var(--body); font-size: 15px; line-height: 1.6; }
.hw-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bg-soft-2); }
.hw-progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.hw-hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .hm-hr { grid-template-columns: minmax(0, 1fr); }
  .hm-tabs-top [role="tab"] { padding: 6px 10px; font-size: 12px; }
  .hm-expand { display: none; }
  .hw-panel { padding: 16px; }
}
.hm-tabs-top { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.hm-tabs-top::-webkit-scrollbar { display: none; }
.hm-tabs-top [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
.hm-expand { flex: 0 0 34px; }
.hm-doc-item em { white-space: nowrap; }

/* landing mock: the side menu like the real one, and the other sections */
.hm { grid-template-columns: 74px minmax(0, 1fr); }
.hm-side { gap: 6px; padding: 12px 4px; }
.hm-side button { width: 64px; height: auto; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 10px; }
.hm-side button small { font-size: 8.5px; line-height: 1.1; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-side button.on small { color: #fff; }
.hm-home { grid-template-columns: minmax(0, 1fr); align-content: start; }
.hm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 10.5px; color: var(--ink-muted); line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.hm.hk .hm-kpi { opacity: 1; transform: none; }
.hm-kpi:nth-child(2) { transition-delay: 0.1s; } .hm-kpi:nth-child(3) { transition-delay: 0.2s; } .hm-kpi:nth-child(4) { transition-delay: 0.3s; }
.hm-kpi b { font-size: 24px; color: var(--ink); }
.hm-kpi.k-risk b { color: var(--risk); } .hm-kpi.k-warn b { color: #d48a1c; }
.hm-feed { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.hm-feed > b { font-size: 12px; color: var(--ink); }
.hm-ev { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink); padding: 6px 0; border-top: 1px solid var(--border); opacity: 0; transform: translateX(-12px); transition: opacity 0.35s, transform 0.35s; }
.hm-ev i { flex: 0 0 9px; height: 9px; border-radius: 50%; }
.hm-ev i.ok { background: var(--success); } .hm-ev i.info { background: var(--accent); } .hm-ev i.warn { background: #d48a1c; }
.hm-ev em { margin-left: auto; font-style: normal; color: var(--ink-muted); font-size: 11px; }
.hm.hv1 .hm-ev:nth-of-type(1), .hm.hv2 .hm-ev:nth-of-type(2), .hm.hv3 .hm-ev:nth-of-type(3) { opacity: 1; transform: none; }
.hm-reg { grid-template-columns: minmax(0, 1fr); align-content: start; }
.hm-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; }
.hm.rt .hm-search { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hm-search i { font-style: normal; color: var(--ink); min-height: 1em; }
.hm-search i::after { content: "|"; color: var(--accent); animation: hm-caret 1s steps(1) infinite; }
@keyframes hm-caret { 50% { opacity: 0; } }
.hm-table { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.hm-tr { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 0 12px; max-height: 44px; font-size: 11.5px; color: var(--ink); border-top: 1px solid var(--border); opacity: 0; transition: opacity 0.35s, max-height 0.4s, padding 0.4s; }
.hm-tr i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px 0; }
.hm-th { font-weight: 700; color: var(--ink-muted); font-size: 10.5px; background: var(--bg-soft-2); border-top: 0; }
.hm.rs .hm-tr { opacity: 1; }
.hm.rf .hm-tr:not(.keep):not(.hm-th) { opacity: 0; max-height: 0; border-top-width: 0; }
.hm.rf .hm-tr.keep { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.hm-tr em { font-style: normal; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.st-ok { background: var(--success-bg); color: var(--success); } .st-draft { background: var(--bg-soft-2); color: var(--ink-muted); }
.hm-chat { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
.hm-msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.hm-msg small { font-size: 10.5px; font-weight: 700; opacity: 0.75; }
.hm-msg.me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.hm-msg.them { justify-self: start; background: var(--surface); border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.hm-msg.small { font-size: 11.5px; padding: 7px 12px; background: color-mix(in srgb, var(--accent) 80%, #000); }
.hm-msg .hm-law { align-self: flex-start; font-style: normal; }
.hm.cq .hm-msg.me:first-child, .hm.ca .hm-msg.them, .hm.cm .hm-msg.small { opacity: 1; transform: none; }
.hm-typing { justify-self: start; display: none; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.hm.ct:not(.ca) .hm-typing { display: inline-flex; }
.hm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: hm-dot 1s infinite; }
.hm-typing i:nth-child(2) { animation-delay: 0.15s; } .hm-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hm-dot { 50% { transform: translateY(-4px); opacity: 0.4; } }
.hm-ents { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.hm-ent { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 11px; color: var(--ink-muted); opacity: 0; transform: scale(0.94); transition: opacity 0.35s, transform 0.35s; }
.hm-ent.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hm-ent > i { font-style: normal; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; }
.hm-ent b { color: var(--ink); font-size: 12.5px; }
.hm-ent.add { align-items: center; justify-content: center; border-style: dashed; }
.hm-ent.add > i { background: var(--accent-soft); color: var(--accent); }
.hm.en1 .hm-ent:nth-child(1), .hm.en2 .hm-ent:nth-child(2), .hm.en3 .hm-ent:nth-child(3), .hm.en4 .hm-ent:nth-child(4) { opacity: 1; transform: none; }
.hm-bar { height: 5px; border-radius: 3px; background: var(--bg-soft-2); overflow: hidden; }
.hm-bar u { display: block; height: 100%; width: 0; background: var(--success); transition: width 0.9s ease; }
.hm.eb .hm-bar u { width: var(--w); }
.hm.out .hm-kpi, .hm.out .hm-ev, .hm.out .hm-tr, .hm.out .hm-msg, .hm.out .hm-ent { opacity: 0; }
@media (max-width: 760px) {
  .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-ents { grid-template-columns: minmax(0, 1fr); }
  .hm-tr { grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr); }
  .hm-tr i:nth-child(3) { display: none; }
}
.hm-tabs-top { overflow: visible; }
.hm-tabs-scroll { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.hm-tabs-scroll::-webkit-scrollbar { display: none; }

/* dashboard: the company's details are not filled in yet */
.setup-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-md); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.setup-banner-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); font-size: 20px; }
.setup-banner > div { flex: 1 1 260px; min-width: 0; }
.setup-banner strong { color: var(--ink); overflow-wrap: break-word; }
.setup-banner p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-muted); }

/* a new legal entity: saved only with its details */
.new-entity-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.new-entity-note strong { color: var(--ink); }
.new-entity-note p { margin: 3px 0 0; color: var(--ink-muted); font-size: 14px; }
.new-entity-step { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.new-entity-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ══════════════════════════════════════════════════════════════════════
   PHONES. The public site: a burger menu. The app: a top bar, a bottom tab
   bar and the rail as a drawer. Last in the file so it wins.
   ══════════════════════════════════════════════════════════════════════ */
.nav-burger, .nav-sheet-cta, .m-top, .m-tabbar, .m-backdrop, .m-drawer-close { display: none; }
.nav-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.25s, opacity 0.2s; transform-origin: center; }
.nav-burger path { transition: transform 0.25s, opacity 0.2s; transform-origin: 12px 12px; }
.navbar.is-open .nav-burger .b1 { transform: translateY(5px) rotate(45deg); }
.navbar.is-open .nav-burger .b2 { opacity: 0; }
.navbar.is-open .nav-burger .b3 { transform: translateY(-5px) rotate(-45deg); }
html.no-scroll, html.no-scroll body { overflow: hidden; }

@media (max-width: 980px) {
  .navbar-inner { position: relative; }
  .nav-burger { display: grid; place-items: center; order: 3; width: 42px; height: 42px; margin-left: 4px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; }
  .is-home .navbar .nav-burger { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
  .navbar.is-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(17, 28, 56, 0.18); animation: hm-in 0.25s ease; }
  .is-home .navbar.is-open .nav-links { background: #0d1736; border-color: rgba(255, 255, 255, 0.08); }
  .navbar.is-open .nav-links a:not(.nav-sheet-cta) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .is-home .navbar.is-open .nav-links a:not(.nav-sheet-cta) { border-color: rgba(255, 255, 255, 0.08); }
  .navbar.is-open .nav-sheet-cta { display: flex; justify-content: center; margin-top: 14px; padding: 13px; border-radius: 12px; color: #fff; }
}

@media (max-width: 760px) {
  /* ── the public site ── */
  .navbar-inner { padding: 10px 14px; gap: 10px; }
  .navbar-actions { gap: 8px; }
  .hx { padding: 28px 0 80px; }
  .hx-title { font-size: 31px; margin: 16px 0 12px; }
  .hx-lead { font-size: 16px; margin-bottom: 22px; }
  .hx-actions { flex-direction: column; }
  .hx-btn { width: 100%; justify-content: center; padding: 15px 18px; }
  .hx-trust { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hx-trust li { max-width: none; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
  .hx-trust svg { flex-basis: 40px; height: 40px; padding: 8px; border-radius: 11px; border-color: rgba(255, 255, 255, 0.2); background: rgba(49, 85, 198, 0.25); }
  .hx-inner { gap: 34px; }
  .hm { grid-template-columns: minmax(0, 1fr) !important; transform: none; min-height: 0; }
  .hm-side { display: none !important; }
  .hm-body { grid-template-columns: minmax(0, 1fr) !important; padding: 10px; }
  .hm-hint { font-size: 12px; }
  .hs-sub { margin-bottom: 28px; font-size: 15.5px; }
  .hp { padding: 20px; border-radius: 18px; }
  .hf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hf-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .hw { gap: 8px; }
  .hw-btn .hw-t { display: none; }
  .hw-btn b { font-size: 13.5px; }
  .hw-icon { width: 56px; height: 56px; }
  .hw-n { left: calc(50% - 38px); }
  .pr { padding: 22px; }
  .hc { padding: 24px 20px; }
  .hc-btn { width: 100%; justify-content: center; }
  .lp-tour-row { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 44px; }
  .lp-tour-row.rev .lp-tour-text { order: 0; }
  .lp-tour-text h3 { font-size: 21px; }

  /* ── the app ── */
  .m-top { display: flex; align-items: center; gap: 8px; position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0; background: linear-gradient(90deg, #111c38, #1a2650); color: #fff; box-shadow: 0 4px 16px rgba(17, 28, 56, 0.2); }
  .m-icon-btn { position: relative; flex: 0 0 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
  .m-icon-btn:active { background: rgba(255, 255, 255, 0.12); }
  .m-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .m-bell b { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--risk); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; }
  .m-logo { display: flex; }
  .m-entity { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
  .m-entity .entity-avatar { flex: 0 0 24px; width: 24px; height: 24px; font-size: 12px; }
  .m-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-entity svg { flex: 0 0 16px; height: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.7; }

  .m-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(17, 28, 56, 0.08); }
  .m-tabbar > * { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; background: transparent; color: var(--ink-muted); font: inherit; font-size: 10.5px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 12px; }
  .m-tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
  .m-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-tabbar .on { color: var(--accent); }
  .m-tabbar .on svg { transform: translateY(-1px); }
  .m-tabbar svg.dt { width: 30px; height: 30px; padding: 3px; border-radius: 9px; stroke: none; fill: none; transition: background 0.2s, transform 0.2s; }
  .m-tabbar .on svg.dt { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 50%, transparent); }
  .m-icon-btn svg.dt { width: 24px; height: 24px; }
  .m-tabbar .on::before { content: ""; position: absolute; }
  .m-tabbar > *:active { background: var(--accent-soft); }

  /* the rail → a drawer from the left */
  .rail, .rail-shell .rail { width: min(300px, 84vw) !important; padding: calc(14px + env(safe-area-inset-top)) 12px 16px !important; align-items: stretch; z-index: 60; transform: translateX(-102%); transition: transform 0.28s cubic-bezier(.2, .8, .2, 1); box-shadow: none; }
  .drawer-open .rail { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35); }
  .m-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(5, 10, 28, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .drawer-open .m-backdrop { opacity: 1; pointer-events: auto; }
  .m-drawer-close { display: grid; place-items: center; position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 22px; cursor: pointer; }
  .rail-logo { align-self: flex-start; }
  .rail-nav { width: 100%; }
  .rail-item { flex-direction: row !important; justify-content: flex-start !important; gap: 12px !important; width: 100%; padding: 8px 10px !important; border-radius: 12px; }
  .rail-label, .rail-label-long { display: block !important; max-width: none !important; font-size: 15px !important; letter-spacing: 0 !important; text-align: left; white-space: nowrap; }
  .rail-icon { flex: 0 0 38px; width: 38px !important; height: 38px !important; }
  .rail-icon svg { width: 24px !important; height: 24px !important; }
  .rail-item.active { background: rgba(255, 255, 255, 0.1); }
  .rail-item.active .rail-icon::after { display: none; }
  .profile-menu, .bell-menu { position: static !important; width: auto !important; margin: 6px 0 0; transform: none !important; }

  .rail-shell .app-main, .app-main { margin-left: 0 !important; padding: calc(70px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom)) !important; }
  .app-main h1 { font-size: 24px; }
  .section-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: -4px -14px 16px; padding: 2px 14px; }
  .section-tabs::-webkit-scrollbar { display: none; }
  .section-tabs a, .section-tabs span { flex: 0 0 auto; white-space: nowrap; font-size: 13.5px; padding: 8px 13px; }

  /* the support chat: no floating bubble over the tab bar (Help is in the menu); the panel full screen */
  .rail-shell ~ #support-widget #support-toggle, body:has(.rail-shell) #support-toggle { display: none; }
  #support-panel { position: fixed !important; inset: 0 !important; width: auto !important; max-height: none !important; border-radius: 0 !important; z-index: 120; padding-bottom: env(safe-area-inset-bottom); }
  #support-widget { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* sticky bars sit above the tab bar */
  .rv-bar { bottom: calc(64px + env(safe-area-inset-bottom)); margin: 16px -14px 0; border-radius: 16px 16px 0 0; padding: 10px 12px; }
  .rv-bar { flex-wrap: nowrap; gap: 8px; }
  .rv-bar > *, .rv-bar form { flex: 1 1 0; min-width: 0; }
  .rv-bar .btn { width: 100%; justify-content: center; padding: 11px 8px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-align: center; }
  .rail-bell, .rail-profile, .rail-nav-bottom > * { width: 100%; }
  .rail-nav-bottom summary.rail-item, .rail-nav-bottom button.rail-item { margin: 0; }
  .rail-nav, .rail-nav-bottom { align-items: stretch !important; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-head .btn { width: 100%; justify-content: center; }
  .form-card { padding: 18px 16px; border-radius: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .form-grid .span-2 { grid-column: auto; }
  .ls-dialog { width: calc(100vw - 24px); max-width: none; }
  input, select, textarea { font-size: 16px; } /* iOS doesn't zoom into 16px fields */

  /* the review results */
  .rv-head { gap: 12px; }
  .rv-head-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rv-head-actions > *, .rv-head-actions .btn, .rv-head-actions summary { width: 100%; justify-content: center; }
  .rv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .m-dial, .m-ring { width: 52px; height: 52px; flex-basis: 52px; }
  .m-value { font-size: 15.5px; }
  .rv-doc-head { padding: 10px; }
  .rv-doc-tools { width: 100%; justify-content: space-between; }
  .rv-wide-btn { display: none; }
  .rv-notes { position: static; max-height: none; }
}
@media (max-width: 380px) {
  .hx-title { font-size: 27px; }
  .rv-metrics { grid-template-columns: minmax(0, 1fr); }
  .m-tabbar > * { font-size: 9.5px; }
}

/* the data cards: the save button with room around it, not on the frame */
.blanks-card { padding: 16px 18px 20px; }
.employee-form { display: grid; gap: 10px; }
.blanks-card > .btn, .employee-form > .btn { justify-self: start; margin-top: 12px; padding: 11px 22px; }
@media (max-width: 760px) {
  .blanks-card > .btn, .employee-form > .btn { justify-self: stretch; }
}

/* all the data filled in: the employee card folds into a link */
.fill-result.is-quiet { animation: none; }
.data-edit { margin: 0 0 14px; }
.data-edit > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.data-edit > summary::-webkit-details-marker { display: none; }
.data-edit[open] > summary { margin-bottom: 10px; }
.fill-result.is-quiet .fill-check path, .fill-result.is-quiet .fill-check circle { animation: none; stroke-dashoffset: 0; }
.saved-note { margin-bottom: 18px; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.employer-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.employer-form .ls-select, .employer-form select { flex: 1 1 260px; min-width: 0; }
.employer-ok { margin: 0; color: var(--success); font-weight: 600; }
.employer-add { justify-self: start; font-size: 13.5px; }

/* the checked contract → the registry */
.registry-dialog { width: min(680px, calc(100vw - 24px)); }
.registry-form h2 { margin: 0 0 6px; }
.registry-form h3 { margin: 18px 0 8px; font-size: 15px; }
.registry-reading { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.registry-docs { display: grid; gap: 8px; margin-bottom: 14px; }
.registry-docs .is-fixed { opacity: 0.75; }
.fill-next { margin-top: 10px; }

/* "saved": a toast at the top of the screen */
.ls-toast { position: fixed; top: 18px; left: 50%; z-index: 200; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 14px; background: var(--success); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 14px 40px rgba(22, 128, 93, 0.35); transform: translate(-50%, -140%); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2); }
.ls-toast.is-in { transform: translate(-50%, 0); }
.ls-toast-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.22); font-size: 15px; }
@media (max-width: 760px) { .ls-toast { top: calc(66px + env(safe-area-inset-top)); max-width: calc(100vw - 28px); } }
.gap-use { justify-self: start; border: 1px dashed var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; cursor: pointer; }
.gap-use:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.employer-gaps { margin: 0; font-size: 13px; color: var(--warn); }

/* the parties' data after the fix: three blocks, a filled one folds */
.data-steps { display: grid; gap: 12px; margin: 6px 0 18px; }
.data-progress { display: flex; flex-wrap: wrap; gap: 8px; }
.data-progress a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.data-progress a b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.data-progress a.is-done { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: var(--success-bg); }
.data-progress a.is-done b { background: var(--success); color: #fff; }
.data-step { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.data-step:not(.is-done) { border-color: color-mix(in srgb, #e0a100 55%, var(--border)); }
.data-step > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.data-step > summary::-webkit-details-marker { display: none; }
.data-step > summary::after { content: "›"; margin-left: 4px; color: var(--ink-muted); font-size: 20px; transition: transform 0.2s; }
.data-step[open] > summary::after { transform: rotate(90deg); }
.data-step > summary b { color: var(--ink); font-size: 15px; }
.step-n { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 700; }
.data-step.is-done .step-n { background: var(--success); color: #fff; }
.step-status { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--warn); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.data-step.is-done .step-status { color: var(--success); }
.data-step-body { display: grid; gap: 10px; padding: 0 16px 18px; }
.data-step-body .employee-form { display: grid; gap: 10px; }
.data-step-body > .btn, .data-step-body .employee-form > .btn { justify-self: start; margin-top: 8px; padding: 11px 22px; }
.employer-links { margin: 0; font-size: 13.5px; }
.gap-ctx mark.gap-hole { display: inline-block; min-width: 64px; height: 1.1em; vertical-align: -2px; border: 0; border-bottom: 2px dashed var(--warn); border-radius: 0; background: var(--warn-bg); padding: 0; }
@media (max-width: 760px) {
  .step-status { max-width: 40%; }
  .data-step-body > .btn, .data-step-body .employee-form > .btn { justify-self: stretch; }
}

/* passport / ID scan: a small drop zone */
.id-drop { display: grid; gap: 8px; }
.id-drop-zone { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.id-drop-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.id-drop.is-dragover .id-drop-zone { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.id-drop-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.id-drop-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.id-drop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.id-drop-text strong { color: var(--ink); font-size: 14.5px; }
.id-drop-text span { color: var(--ink-muted); font-size: 12.5px; line-height: 1.4; }
.id-drop-btn { flex: 0 0 auto; pointer-events: none; }
@media (max-width: 600px) {
  .id-drop-zone { flex-wrap: wrap; }
  .id-drop-btn { width: 100%; justify-content: center; }
}

/* "Open in Google Docs" */
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.head-actions form { margin: 0; }
.gdocs-ico { display: inline-block; width: 14px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 2px; background: linear-gradient(180deg, #4285f4 0 100%); box-shadow: inset 0 -12px 0 -9px #fff, inset 0 -8px 0 -5px #4285f4; position: relative; }
.rv-menu-list form { margin: 0; }
.rv-menu-gdocs { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.rv-menu-gdocs::before { content: "G"; display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; background: #e8f0fe; color: #1a73e8; font-weight: 700; font-size: 13px; }
.rv-menu-gdocs:hover { background: var(--bg-soft); }
.rv-menu-list a.rv-menu-gdocs::before { content: "G"; background: #e8f0fe; color: #1a73e8; font-weight: 700; }

/* privacy policy / terms */
.legal-page { padding: 40px 0 70px; }
.legal-inner { max-width: 820px; }
.legal-inner h1 { margin: 18px 0 4px; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.legal-inner h2 { margin: 28px 0 8px; font-size: 18px; color: var(--ink); }
.legal-inner p { margin: 6px 0; color: var(--body); line-height: 1.65; font-size: 15.5px; }
.legal-inner .legal-li { position: relative; padding-left: 20px; }
.legal-inner .legal-li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal-switch { display: flex; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.legal-switch a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-muted); text-decoration: none; font-size: 14px; }
.legal-switch a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.hfoot-bottom a { color: #c9d3f2; }

/* landing hero: the three points under the title; the product mock bigger, out to the right */
.hx-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; max-width: 540px; }
.hx-points li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.2s, border-color 0.2s; }
.hx-points li:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(143, 168, 255, 0.35); }
.hx-pi { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, rgba(49, 85, 198, 0.55), rgba(111, 139, 220, 0.25)); }
.hx-pi svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hx-points b { display: block; color: #fff; font-size: 15.5px; font-weight: 600; }
.hx-points small { display: block; margin-top: 2px; color: #b9c5ea; font-size: 13.5px; line-height: 1.4; }
@media (min-width: 1081px) {
  /* the text lines up with the logo; the mock keeps the same free space on the right as the text on the left */
  .hx .lp-container.hx-inner { max-width: 1440px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; padding: 0 56px; }
  .hx .hm { min-height: 500px; }
  .hx .hm-doc { font-size: 12.5px; }
  .hx .hm-card { font-size: 12.5px; }
  .hx .hm-card b { font-size: 13px; }
}
@media (min-width: 1081px) { .hx-title { font-size: clamp(32px, 3.3vw, 46px); } }

/* «Open in Google Docs»: the page's own status while Google's small window works */
.gdocs-dialog { width: min(460px, calc(100vw - 24px)); }
.gdocs-state { display: flex; gap: 16px; align-items: flex-start; }
.gdocs-state strong { color: var(--ink); font-size: 16px; }
.gdocs-state p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.gdocs-g { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #e8f0fe; color: #1a73e8; font-weight: 800; font-size: 22px; }
.gdocs-dialog[data-state="wait"] .gdocs-g { animation: gdocs-pulse 1.2s ease-in-out infinite; }
.gdocs-dialog[data-state="done"] .gdocs-g { background: var(--success-bg); color: var(--success); }
.gdocs-dialog[data-state="error"] .gdocs-g { background: var(--risk-bg); color: var(--risk); }
@keyframes gdocs-pulse { 50% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.15); } }

/* dashboard: "entity added" at the very top, clear of the tiles; fades by itself */
.dash-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--success-bg); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); color: var(--ink); font-size: 14.5px; animation: notice-in 0.35s ease-out, notice-out 0.6s ease-in 7s forwards; }
.dash-notice strong { overflow-wrap: anywhere; }
.dash-notice-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-weight: 700; }
.dash-notice-close { margin-left: auto; flex: 0 0 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); font-size: 20px; cursor: pointer; }
.dash-notice-close:hover { background: rgba(0, 0, 0, 0.06); }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes notice-out { to { opacity: 0; height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { .dash-notice { animation: none; } }
.law-avatar { background: var(--accent-soft) !important; color: var(--accent) !important; }
.law-checked { color: var(--success); font-size: 13px; }

/* support chat: the greeting and topic chips arrive one by one */
#support-log .sp-msg { animation: sp-in 0.3s ease-out both; }
.sp-chips { margin: 2px 0 4px; }
.sp-chips button { animation: sp-in 0.3s ease-out both; }
.sp-chips button.is-picked { background: var(--accent); color: #fff; }
.sp-chips button:disabled:not(.is-picked) { opacity: 0.45; cursor: default; }
.sp-greet { font-weight: 500; }
.sp-typing .ai-dots { display: inline-flex; gap: 4px; }
.sp-typing .ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); animation: hm-dot 1s infinite; }
.sp-typing .ai-dots i:nth-child(2) { animation-delay: 0.15s; } .sp-typing .ai-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { #support-log .sp-msg, .sp-chips button { animation: none; } }

/* the employment wizard: the week the chosen working times add up to */
.week-total { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); color: var(--body); font-size: 14px; }
.week-total:empty { display: none; }
.week-total.is-bad { background: color-mix(in srgb, #b42318 10%, var(--surface)); color: #b42318; }
.hint[hidden], .week-total[hidden] { display: none; }
/* the review: a foreign employee — high risk above the figures */
.rv-foreign { margin: 0 0 16px; font-size: 15px; border-left: 4px solid #b42318; }

/* the legal radar's inbox (lawyer section) */
.radar-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; }
.radar-item h3 { margin: 10px 0 6px; font-size: 16.5px; line-height: 1.45; }
.radar-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.radar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.radar-actions input[type=text] { flex: 1 1 260px; }

/* the support chat: the team's answer, and the dot on the button while one waits */
#support-toggle.has-answer::after { content: ""; position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px #fff; animation: sp-dot 1.6s infinite; }
@keyframes sp-dot { 50% { transform: scale(1.25); } }
#support-toggle { position: relative; }
.sp-reply { border-left: 3px solid #22c55e; }
.sp-reply-q { color: var(--ink-muted, #6b7280); font-size: 12.5px; margin: 4px 0 6px; }
.sp-reply-by { display: block; color: var(--ink-muted, #6b7280); margin-top: 4px; }
/* the support chat: when each message was said */
.sp-msg .sp-time { display: block; margin-top: 4px; font-size: 10.5px; opacity: 0.55; text-align: right; }
.sp-reply-when { display: block; margin-top: 6px; font-size: 11px; opacity: 0.6; }

/* 2FA: the choice of a second factor */
.mfa-methods { display: grid; gap: 10px; margin: 18px 0 6px; }
.mfa-method {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: inherit; text-decoration: none; background: var(--bg, transparent);
}
.mfa-method:hover, .mfa-method:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.mfa-method .ic { font-size: 22px; line-height: 1; flex: none; width: 28px; text-align: center; }
.mfa-method b { display: block; margin-bottom: 2px; }
.mfa-method .d { display: block; font-size: 13px; color: var(--ink-muted); }
.mfa-method .tag { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.mfa-alt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.mfa-alt form { display: inline; }
.mfa-alt button { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 4px; text-decoration: underline; }
