:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --ink: #18342c;
  --muted: #687a73;
  --line: #dce6e0;
  --brand: #16795e;
  --brand-dark: #0e4e3c;
  --brand-pale: #dff4eb;
  --gold: #d99a28;
  --coral: #d76b48;
  --danger: #ad3e3e;
  --shadow: 0 24px 70px rgba(24, 52, 44, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 5% 12%, rgba(213, 236, 226, .75), transparent 26rem),
    radial-gradient(circle at 94% 34%, rgba(243, 218, 167, .28), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }
.topbar {
  min-height: 72px;
  background: rgba(15, 58, 46, .96);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100% - 1220px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px rgba(4, 30, 23, .12);
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #113f31;
  background: linear-gradient(145deg, #f8d881, #e9aa34);
  font-size: 13px;
  letter-spacing: -.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.nav-link, .settings-link { color: #dff4eb; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-link:hover, .settings-link:hover { color: #fff; }
.install-app-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
}
.install-app-button span { color: #f5d184; font-size: 16px; line-height: 1; }
.container { max-width: 1220px; margin: 0 auto; padding: 42px 24px 84px; }

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 28px;
  margin: 0 0 36px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding: 30px 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #cfe3da;
  background: rgba(255,255,255,.66);
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb980; box-shadow: 0 0 0 5px rgba(47,185,128,.13); }
.hero h1, .title-row h1 {
  margin: 18px 0 18px;
  max-width: 700px;
  font-size: clamp(43px, 5.4vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--brand); }
.hero-copy > p { margin: 0; color: var(--muted); font-size: 19px; max-width: 650px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #34574d; font-size: 14px; font-weight: 700; }
.hero-benefits span::first-letter { color: var(--brand); }
.hero-visual { min-height: 410px; position: relative; display: grid; place-items: center; }
.hero-visual img { width: 115%; max-width: 710px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 28px 35px rgba(17, 61, 47, .17)); }
.visual-glow { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: rgba(221, 238, 228, .7); filter: blur(4px); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .65fr); gap: 22px; align-items: start; }
.panel, .winner, .process-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(210, 225, 217, .95);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.panel { margin: 20px 0; }
.upload-panel { margin: 0; }
.panel h2, .process-card h2 { margin: 2px 0 18px; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.secure-note { font-size: 12px; color: #32725f; background: var(--brand-pale); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }

form label { display: grid; gap: 7px; margin-bottom: 18px; font-weight: 700; font-size: 14px; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdcec5;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .16s, box-shadow .16s;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,121,94,.12); }
.upload-zone {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 25px;
  border: 2px dashed #a8c8ba;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fbf8, #edf7f2);
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}
.upload-zone:hover, .upload-zone.dragging { border-color: var(--brand); background: #e8f7f0; transform: translateY(-1px); }
.upload-zone.has-files { border-style: solid; border-color: #3a9c7d; background: #e5f7ef; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone strong { font-size: 20px; }
.upload-zone > span:not(.upload-icon) { color: var(--muted); font-weight: 500; }
.upload-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 15px; background: var(--brand); color: #fff; font-size: 29px; line-height: 1; box-shadow: 0 10px 25px rgba(22,121,94,.22); }
.format-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -7px; }
.format-row span { padding: 5px 9px; border-radius: 7px; background: #eef2ef; color: #52665f; font-size: 11px; font-weight: 800; }
.hint, .empty, small { color: var(--muted); }
.criteria { margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.criteria summary { display: flex; justify-content: space-between; gap: 15px; cursor: pointer; font-weight: 800; }
.criteria summary span { color: var(--muted); font-weight: 500; font-size: 13px; }
.weights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.weights label { font-size: 12px; }

button, .button {
  border: 0;
  border-radius: 11px;
  padding: 13px 19px;
  background: var(--brand);
  color: #fff;
  font: 750 15px inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, filter .15s;
}
button:hover, .button:hover { filter: brightness(.94); transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary-action { width: 100%; min-height: 52px; font-size: 16px; }
.primary-action span { font-size: 21px; }
.button.secondary { background: #dcebe5; color: #174f3d; }
.danger { background: var(--danger); }

.process-card { margin: 0; background: #143d32; color: #fff; position: sticky; top: 94px; overflow: hidden; }
.process-card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(70,174,137,.12); right: -70px; top: -70px; }
.process-card .eyebrow { color: #76d5b3; }
.process-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 22px; }
.process-list li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; }
.process-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(118,213,179,.16); color: #8be1c2; font-size: 13px; font-weight: 850; }
.process-list div { display: grid; gap: 2px; }
.process-list small { color: #b9cec6; line-height: 1.4; }
.privacy-card { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); border-radius: 15px; }
.privacy-card div { display: grid; gap: 3px; }
.privacy-card small { color: #bdd0c9; }

.history { margin-top: 64px; }
.empty-state { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 17px; padding: 22px; border: 1px dashed #9dbcae; border-radius: 17px; background: rgba(255,255,255,.5); }
.empty-state-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--brand-pale); color: var(--brand); font-size: 30px; font-weight: 850; }
.empty-state h3 { margin: 0 0 3px; font-size: 18px; }
.empty-state p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: rgba(255,255,255,.87); border: 1px solid var(--line); border-radius: 16px; padding: 19px; color: inherit; text-decoration: none; display: grid; gap: 9px; transition: .16s; }
.card:hover { border-color: #79ae9a; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(24,52,44,.07); }
.status, .pill { display: inline-flex; width: max-content; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.status.ok, .pill.done { background: #daf4e9; color: #075f44; }
.status.warn, .pill.ready { background: #fff0c7; color: #7c5000; }
.pill.error { background: #fde1df; color: var(--danger); }
.pill.processing { background: #dfeaff; color: #315b9f; }

.back { color: var(--brand); text-decoration: none; font-weight: 750; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 28px 0 18px; }
.title-row h1 { font-size: 44px; margin: 5px 0 0; }
.actions { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.actions form { margin: 0; }
.document-list { display: grid; gap: 4px; }
.document { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.document:last-child { border: 0; }
.notice { border-radius: 13px; padding: 14px 18px; margin: 15px 0; }
.notice.ok { background: var(--brand-pale); color: #075f44; }
.notice.warn { background: #fff2cf; color: #714500; }
.notice.error { background: #ffe5e2; color: #842222; }
.winner { background: linear-gradient(135deg, #123d32, #1d674f); color: #fff; margin: 20px 0; }
.winner .eyebrow { color: #80dcbc; }
.winner h2 { font-size: 36px; margin: 6px 0; }
.decision-summary { max-width: 950px; font-size: 16px; line-height: 1.55; }
.result-warning { margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,193,79,.14); color: #fff0c8; }
.methodology { margin-top: 16px; }
.methodology p { max-width: 900px; color: #d3e6df; line-height: 1.5; }
.admin-cost { margin: 18px 0 0; opacity: .72; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
tr.best { background: #e8f8f1; }
.details td { padding-top: 6px; font-size: 14px; color: #405049; }
.score-details { margin-top: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.score-grid { display: grid; gap: 7px; margin-top: 12px; }
.score-row { display: grid; grid-template-columns: minmax(150px, 1fr) 86px 82px 58px; gap: 9px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.score-row:last-child { border: 0; padding-bottom: 0; }
.score-row > span, .score-row > b { white-space: nowrap; font-size: 12px; }
.score-row > b { color: var(--brand); text-align: right; }
.score-row > small { grid-column: 1 / -1; line-height: 1.4; }
details summary { cursor: pointer; font-weight: 750; }
code { background: rgba(0,0,0,.07); padding: 2px 5px; border-radius: 4px; }
.setup-page { max-width: 650px; margin-left: auto; margin-right: auto; }
.setup-page h1 { font-size: 40px; line-height: 1.08; margin: 8px 0 14px; }
.error-page { max-width: 680px; margin: 70px auto; text-align: center; padding: 54px 38px; }
.error-page h1 { margin: 8px 0; font-size: 38px; }
.error-page p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.error-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; background: #ffe5e2; color: var(--danger); font-size: 30px; font-weight: 850; }
.footer { max-width: 1220px; margin: 0 auto; padding: 24px; border-top: 1px solid rgba(193,208,200,.7); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-support { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px 13px; }
.footer-support strong { color: var(--ink); }
.support-link, .support-inline {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.support-link:hover, .support-inline:hover { filter: none; transform: none; color: var(--brand-dark); }
.support-inline { display: inline-flex; margin-top: 16px; color: #8de2c3; font-weight: 750; }
.support-dialog {
  width: min(600px, calc(100% - 28px));
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.support-dialog::backdrop { background: rgba(5, 23, 18, .62); backdrop-filter: blur(4px); }
.support-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.support-dialog-head h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.15; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border-radius: 11px; background: var(--surface-soft); color: var(--ink); font-size: 25px; font-weight: 400; }
.support-contacts { display: grid; gap: 10px; margin-top: 22px; }
.support-contact { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.support-contact > div { display: grid; min-width: 0; }
.support-contact strong { overflow-wrap: anywhere; }
.support-contact small { font-size: 12px; }
.contact-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-pale); color: var(--brand); font-size: 12px; font-weight: 900; }
.contact-action { min-width: 105px; padding: 9px 12px; font-size: 12px; }
.support-admin-note { margin: 16px 0 0; padding: 11px 13px; border-radius: 11px; background: #fff2cf; color: #714500; font-size: 13px; }
.install-native-action { margin-top: 20px; }
.install-help { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.install-help ol { margin: 10px 0 0; padding-left: 21px; }
.install-help li + li { margin-top: 8px; }
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 20px;
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.user-chip > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: rgba(255,255,255,.13); color: #f5d184; font-weight: 850; }
.user-chip small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dcebe5; }
.logout-form { margin: 0; }
.logout-form button { min-height: 34px; padding: 7px 11px; background: rgba(255,255,255,.1); font-size: 12px; }
.settings-shell { max-width: 820px; margin: 22px auto 0; }
.settings-card h1 { margin: 7px 0 8px; font-size: 38px; line-height: 1.1; }
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.theme-choice {
  display: grid;
  justify-items: start;
  min-height: 126px;
  padding: 17px;
  border: 2px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}
.theme-choice > span { font-size: 25px; line-height: 1; }
.theme-choice strong { font-size: 15px; }
.theme-choice small { color: var(--muted); }
.theme-choice.active { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 4px rgba(22,121,94,.1); }
.service-settings { padding: 0; overflow: hidden; }
.service-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; }
.service-settings > summary::-webkit-details-marker { display: none; }
.service-settings > summary > span:first-child { display: grid; }
.service-settings > summary small { color: var(--muted); }
.service-settings > summary strong { font-size: 17px; }
.service-content { border-top: 1px solid var(--line); padding: 25px 26px 28px; }
.criteria-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.criteria-presets button { padding: 8px 11px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.criteria-presets button.active { background: var(--brand-pale); border-color: var(--brand); color: var(--brand-dark); }
.weights label { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.weights label strong { line-height: 1.25; }
.weights label small { min-height: 34px; line-height: 1.3; font-weight: 500; }
.weight-total { margin: 5px 0 0; color: var(--muted); text-align: right; font-size: 13px; }
.weight-total strong { color: var(--brand); }

.auth-layout { min-height: 650px; display: grid; grid-template-columns: minmax(360px, .78fr) minmax(430px, 1.22fr); align-items: center; gap: 44px; }
.auth-card { width: 100%; max-width: 510px; margin: 20px 0; padding: 38px; }
.auth-card h1 { margin: 7px 0 8px; font-size: 39px; line-height: 1.08; }
.auth-card form { margin-top: 25px; }
.auth-foot { margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 750; }
.auth-aside { position: relative; text-align: center; padding: 30px; }
.auth-aside img { width: 100%; max-width: 650px; height: auto; filter: drop-shadow(0 28px 35px rgba(17,61,47,.17)); }
.auth-aside h2 { max-width: 570px; margin: -15px auto 8px; font-size: 30px; line-height: 1.15; }
.auth-aside p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.support-aside { max-width: 520px; margin: auto; padding: 44px; border-radius: 25px; background: #143d32; color: #fff; text-align: left; box-shadow: var(--shadow); }
.support-aside h2 { margin: 18px 0; }
.support-aside ul { display: grid; gap: 10px; padding-left: 22px; color: #d7e8e2; }
.support-aside a { display: inline-block; margin-top: 16px; color: #8de2c3; font-weight: 750; }
.auth-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: #dff4eb; color: #16795e; font-size: 30px; font-weight: 900; }
.auth-result { max-width: 700px; margin: 90px auto; padding: 55px; text-align: center; }
.auth-result .auth-icon { margin: 0 auto 18px; }
.auth-result h1 { font-size: 39px; line-height: 1.1; margin: 8px 0; }
.auth-result > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.auth-result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.admin-stats > div { display: grid; gap: 3px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 12px 35px rgba(24,52,44,.05); }
.admin-stats strong { color: var(--brand); font-size: 28px; }
.admin-stats span { color: var(--muted); font-size: 13px; }
.user-list { display: grid; }
.user-row { display: grid; grid-template-columns: 42px minmax(190px, 1fr) auto minmax(190px, auto); align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.user-row:last-child { border: 0; }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-pale); color: var(--brand); font-weight: 850; }
.user-info { display: grid; }
.user-info span { color: var(--muted); font-size: 13px; }
.user-actions { display: flex; justify-content: flex-end; gap: 7px; }
.user-actions form { margin: 0; }
.user-actions button { padding: 8px 11px; font-size: 12px; }
.admin-label { color: var(--brand); font-size: 12px; font-weight: 800; }
.support-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.support-panel h2 { margin-bottom: 4px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1714;
  --surface: #16231f;
  --surface-soft: #1b2c27;
  --ink: #eef8f3;
  --muted: #9db1a9;
  --line: #2c423a;
  --brand: #55c49d;
  --brand-dark: #a5ead1;
  --brand-pale: #203f35;
  --shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 5% 12%, rgba(30, 82, 65, .42), transparent 26rem),
    radial-gradient(circle at 94% 34%, rgba(110, 77, 26, .22), transparent 28rem),
    var(--bg);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card { background: rgba(22,35,31,.94); border-color: var(--line); }
html[data-theme="dark"] .empty-state { background: rgba(22,35,31,.58); border-color: #38594d; }
html[data-theme="dark"] .hero-badge { background: rgba(22,35,31,.72); border-color: var(--line); }
html[data-theme="dark"] .visual-glow { background: rgba(37,88,70,.37); }
html[data-theme="dark"] input { background: #101c18; border-color: #365247; color: var(--ink); }
html[data-theme="dark"] .upload-zone { background: linear-gradient(145deg, #172722, #14221e); border-color: #477665; }
html[data-theme="dark"] .upload-zone:hover,
html[data-theme="dark"] .upload-zone.dragging,
html[data-theme="dark"] .upload-zone.has-files { background: #1c352c; border-color: var(--brand); }
html[data-theme="dark"] .format-row span { background: #1e302a; color: #b6c9c2; }
html[data-theme="dark"] .button.secondary { background: #29473d; color: #dcf6ed; }
html[data-theme="dark"] tr.best { background: #1d382f; }
html[data-theme="dark"] .details td { color: #bfd0ca; }
html[data-theme="dark"] .notice.warn { background: #47391e; color: #f5d891; }
html[data-theme="dark"] .notice.error { background: #472526; color: #ffbcbc; }
html[data-theme="dark"] code { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .support-admin-note { background: #47391e; color: #f5d891; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 280px; margin-top: -30px; }
  .hero-visual img { max-width: 620px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .process-card { position: static; }
  .weights { grid-template-columns: repeat(3, 1fr); }
  .auth-layout { grid-template-columns: 1fr; min-height: auto; }
  .auth-card { margin-left: auto; margin-right: auto; }
  .auth-aside { display: none; }
  .user-row { grid-template-columns: 42px 1fr auto; }
  .user-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 650px) {
  .container { padding: 26px 14px 60px; }
  .topbar { padding: 10px 14px; }
  .nav-link { display: none; }
  .install-app-button { width: 36px; height: 36px; padding: 0; font-size: 0; }
  .install-app-button span { font-size: 20px; }
  .status { display: none; }
  .user-chip small, .logout-form { display: none; }
  .hero { margin-bottom: 20px; }
  .hero h1 { font-size: 44px; }
  .hero-visual { min-height: 230px; }
  .hero-visual img { width: 125%; }
  .hero-benefits { gap: 9px 14px; }
  .panel, .winner, .process-card { padding: 22px; border-radius: 19px; }
  .section-heading, .title-row { display: block; }
  .secure-note { display: inline-flex; margin-top: 10px; }
  .weights { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .empty-state { grid-template-columns: 44px minmax(0, 1fr); }
  .empty-state-icon { width: 44px; height: 44px; }
  .empty-state .button { grid-column: 1 / -1; width: 100%; }
  .title-row h1 { font-size: 36px; }
  .title-row form { margin-top: 18px; }
  .document { align-items: flex-start; flex-direction: column; }
  .footer { margin: 0 14px; padding: 20px 0; display: grid; gap: 10px; }
  .footer-support { justify-content: flex-start; }
  .support-dialog { padding: 21px; }
  .support-contact { grid-template-columns: 38px minmax(0, 1fr); }
  .contact-mark { width: 38px; height: 38px; }
  .contact-action { grid-column: 2; justify-self: start; }
  .theme-picker { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 38px 1fr; }
  .user-row > .pill { grid-column: 2; }
  .user-actions { grid-column: 2; flex-wrap: wrap; }
  .support-panel { display: block; }
  .support-panel .button { margin-top: 12px; }
  .score-row { grid-template-columns: 1fr auto; }
  .score-row > span:nth-of-type(2) { display: none; }
}

/* Product navigation and reusable dashboard blocks */
.main-nav { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); }
.main-nav .nav-link { padding: 7px 11px; border-radius: 9px; color: #cfe3dc; font-size: 13px; }
.main-nav .nav-link.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.support-fab { position: fixed; right: 24px; bottom: 24px; z-index: 9; width: 52px; height: 52px; padding: 0; border-radius: 17px; background: linear-gradient(145deg, #1d8d6c, #0e5742); box-shadow: 0 15px 35px rgba(8,74,54,.3); }
.support-fab svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-mark.telegram { background: #dceeff; color: #2677ac; }
.contact-mark.max { background: #eee7ff; color: #7150bd; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 24px; }
.metric-strip > div, .metric-strip > a { min-width: 0; display: grid; grid-template-columns: 42px auto; grid-template-rows: auto auto; column-gap: 13px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.78); color: inherit; text-decoration: none; box-shadow: 0 10px 35px rgba(24,52,44,.045); }
.metric-strip .metric-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-pale); color: var(--brand); font-size: 20px; font-weight: 850; }
.metric-strip strong { font-size: 24px; line-height: 1; }
.metric-strip small { margin-top: 4px; font-size: 12px; }
.metric-strip a { transition: transform .16s, border-color .16s; }
.metric-strip a:hover { transform: translateY(-2px); border-color: #8bbbaa; }
.metric-strip a small b { color: var(--brand); }
.home-metrics { margin-top: -12px; margin-bottom: 34px; }

.page-hero.compact { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 27px 0 12px; }
.page-hero h1 { margin: 4px 0 4px; font-size: clamp(42px, 6vw, 62px); line-height: 1; letter-spacing: -.05em; }
.page-hero p:not(.eyebrow) { max-width: 720px; margin: 11px 0 0; color: var(--muted); font-size: 17px; }
.page-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Supplier knowledge base */
.supplier-browser { padding: 0; overflow: hidden; }
.supplier-tools { margin: 0; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.supplier-tools h2 { margin: 2px 0 0; }
.supplier-search { width: min(390px, 100%); display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.supplier-search svg { width: 19px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.supplier-search input { min-width: 0; padding: 11px 0; border: 0; background: transparent; box-shadow: none; }
.supplier-search a { color: var(--muted); text-decoration: none; font-size: 20px; }
.supplier-list { display: grid; }
.supplier-row { display: grid; grid-template-columns: 48px minmax(220px, 1.35fr) minmax(90px,.45fr) minmax(100px,.45fr) minmax(180px,.8fr) 24px; align-items: center; gap: 15px; padding: 17px 25px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .15s; }
.supplier-row:last-child { border-bottom: 0; }
.supplier-row:hover { background: var(--surface-soft); }
.supplier-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #dff4eb, #cae8dc); color: var(--brand); font-size: 13px; font-weight: 900; }
.supplier-avatar.large { width: 72px; height: 72px; border-radius: 21px; font-size: 20px; }
.supplier-main, .supplier-number, .supplier-price { min-width: 0; display: grid; }
.supplier-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.supplier-main small, .supplier-number small, .supplier-price small { font-size: 11px; }
.supplier-number strong { font-size: 17px; }
.supplier-price { text-align: right; }
.supplier-price strong { font-size: 14px; }
.row-arrow { color: var(--brand); font-size: 20px; transition: transform .15s; }
.supplier-row:hover .row-arrow { transform: translateX(3px); }
.supplier-empty { margin: 25px; }

.supplier-profile-head { display: grid; grid-template-columns: 72px minmax(0,1fr) minmax(230px,auto); gap: 19px; align-items: center; margin: 25px 0 20px; }
.supplier-profile-title h1 { margin: 4px 0 9px; font-size: clamp(35px, 5vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.supplier-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.supplier-tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 750; }
.verification-badge { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.verification-badge { color: inherit; text-decoration: none; }
.verification-actions { display: flex; align-items: stretch; gap: 8px; }
.verification-actions form { margin: 0; display: flex; }
.verification-actions > .verification-badge { flex: 1; }
.verification-actions .button.secondary { padding: 10px 12px; }
.verification-badge > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff0c7; color: #805a08; font-weight: 900; }
.verification-badge.verified > span { background: var(--brand-pale); color: var(--brand); }
.verification-badge > div { display: grid; }
.verification-badge small { font-size: 11px; }
.supplier-detail-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); gap: 20px; align-items: start; }
.supplier-history { margin-top: 0; }
.supplier-side { position: sticky; top: 94px; }
.supplier-side .panel { margin-top: 0; }
.offer-timeline-item { position: relative; margin-left: 8px; padding: 0 0 28px 28px; border-left: 1px solid var(--line); }
.offer-timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale); }
.offer-timeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.offer-timeline-head > div { display: grid; }
.offer-timeline-head a { color: var(--ink); text-decoration: none; }
.offer-timeline-head a:hover { color: var(--brand); }
.offer-score { white-space: nowrap; color: var(--brand); font-size: 19px; font-weight: 850; }
.offer-score small { font-size: 10px; font-weight: 650; }
.offer-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 14px 0; }
.offer-facts > div { min-width: 0; display: grid; padding: 11px; border-radius: 11px; background: var(--surface-soft); }
.offer-facts small { font-size: 10px; }
.offer-facts strong { overflow-wrap: anywhere; font-size: 13px; }
.offer-scope { margin: 9px 0; color: var(--muted); font-size: 13px; }
.items-details { margin-top: 12px; }
.items-table { min-width: 570px; font-size: 12px; }
.source-card h2 { margin-top: 4px; }
.registry-overview { margin: 20px 0; padding: 32px; }
.registry-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.registry-status-line { display: flex; align-items: center; gap: 15px; margin-top: 8px; }
.registry-status-line h2 { margin: 0 0 2px; font-size: 30px; }
.registry-status-line small { font-size: 12px; }
.registry-status-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: #fff0c7; color: #805a08; font-size: 20px; font-weight: 900; }
.registry-status-icon.active { background: var(--brand-pale); color: var(--brand); }
.registry-source-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.registry-primary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 25px; }
.registry-primary-card { min-width: 0; min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 16px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.registry-primary-card.wide { grid-column: span 2; }
.registry-primary-card.warning { border-color: rgba(173,62,62,.25); background: rgba(173,62,62,.07); }
.registry-primary-card small, .registry-detail-group p small { margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.registry-primary-card strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.registry-primary-card.wide strong { font-size: 16px; }
.registry-primary-card span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.registry-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.registry-detail-group { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 16px; }
.registry-detail-group h3 { margin: 0 0 13px; font-size: 15px; }
.registry-detail-group p { display: grid; margin: 10px 0 0; }
.registry-detail-group p strong { overflow-wrap: anywhere; font-size: 12px; }
.registry-code-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; }
.registry-code-grid > div { min-width: 0; display: grid; padding: 9px 10px; border-radius: 9px; background: var(--surface-soft); }
.registry-code-grid dt { color: var(--muted); font-size: 9px; font-weight: 800; }
.registry-code-grid dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 850; }
.registry-access-note { display: grid; grid-template-columns: 38px minmax(0,1fr) minmax(0,1fr); gap: 13px; align-items: start; margin-top: 18px; padding: 16px 18px; border-radius: 15px; background: rgba(22,121,94,.08); }
.registry-access-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font: 850 15px Georgia,serif; }
.registry-access-note strong { font-size: 12px; }
.registry-access-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.registry-unavailable { padding-left: 15px; border-left: 1px solid var(--line); }
.source-status { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; margin-top: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.source-status > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 900; }
.source-status.ok > span { background: var(--brand-pale); color: var(--brand); }
.source-status > div { display: grid; }
.source-status small { font-size: 11px; }
.privacy-explain { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.privacy-explain svg { width: 42px; padding: 8px; border-radius: 12px; background: var(--brand-pale); fill: none; stroke: var(--brand); stroke-width: 1.7; }
.privacy-explain div { display: grid; }

/* Comparison report */
.page-subtitle { margin: 8px 0 0; color: var(--muted); }
.documents-panel { padding: 0; overflow: hidden; }
.documents-panel > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; list-style: none; }
.documents-panel > summary::-webkit-details-marker { display: none; }
.documents-panel > summary > span:first-child { display: grid; }
.documents-panel > summary > span:last-child { color: var(--brand); font-size: 12px; font-weight: 750; }
.documents-panel .document-list { padding: 0 22px 12px; border-top: 1px solid var(--line); }
.winner { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 20px; align-items: start; }
.winner-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 19px; background: rgba(255,255,255,.1); color: #97e7c9; font-size: 28px; font-weight: 900; }
.winner-copy { min-width: 0; }
.result-overview { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0; }
.result-overview > div { display: grid; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.result-overview span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.result-overview strong { margin: 5px 0 2px; color: var(--brand); font-size: 25px; }
.result-overview small { font-size: 11px; }
.result-nav { display: flex; gap: 7px; margin: 18px 0; padding: 6px; width: max-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.result-nav a { padding: 7px 11px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 750; }
.result-nav a:hover { background: var(--surface-soft); color: var(--brand); }
.comparison-panel { scroll-margin-top: 90px; }
.supplier-inline-link { color: var(--brand); text-decoration: none; font-size: 12px; font-weight: 750; }
.compact-items { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-top: 10px; }
.compact-items > span { display: grid; padding: 8px 10px; border-radius: 9px; background: var(--surface-soft); }
.compact-items strong { font-size: 12px; }
.integration-head { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.integration-head h1 { margin: 2px 0 0; }
.integration-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--brand-pale); color: var(--brand); }
.integration-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.integration-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; margin: 20px 0; }
.integration-flow > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 4px 9px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); font-size: 13px; font-weight: 750; }
.integration-flow b { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-pale); color: var(--brand); font-size: 11px; }
.integration-flow small { font-size: 10px; font-weight: 500; }
.integration-flow i { color: var(--brand); font-style: normal; }
.mail-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mail-flow span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: 11px; font-weight: 750; }
.mail-flow i { color: var(--brand); font-style: normal; }

/* Registry lookup */
.lookup-hero { margin: 25px 0 20px; }
.lookup-hero h1 { margin: 4px 0 10px; font-size: clamp(42px,6vw,64px); line-height: 1; letter-spacing: -.052em; }
.lookup-hero p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.lookup-panel { padding: 24px; }
.lookup-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
.lookup-form label { margin: 0; }
.lookup-input { display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #bdcec5; border-radius: 12px; background: var(--surface); }
.lookup-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,121,94,.12); }
.lookup-input svg { width: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.lookup-input input { border: 0; padding-left: 0; box-shadow: none; }
.lookup-results { margin-top: 36px; }
.registry-list { display: grid; gap: 13px; }
.registry-card { padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 13px 40px rgba(24,52,44,.05); }
.registry-card-head { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.registry-card-head h3 { margin: 0; font-size: 19px; }
.registry-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.legal-status { padding: 6px 10px; border-radius: 999px; background: #fff0c7; color: #7c5000; font-size: 11px; font-weight: 800; }
.legal-status.active { background: var(--brand-pale); color: var(--brand); }
.registry-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 18px 0; }
.registry-facts > div { min-width: 0; padding: 11px; border-radius: 11px; background: var(--surface-soft); }
.registry-facts > div.wide { grid-column: span 2; }
.registry-facts dt { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.registry-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }

html[data-theme="dark"] .metric-strip > div,
html[data-theme="dark"] .metric-strip > a,
html[data-theme="dark"] .supplier-tags span,
html[data-theme="dark"] .verification-badge,
html[data-theme="dark"] .result-overview > div,
html[data-theme="dark"] .result-nav { background: rgba(22,35,31,.94); }
html[data-theme="dark"] .supplier-avatar { background: linear-gradient(145deg,#254a3e,#1d392f); }
html[data-theme="dark"] .contact-mark.telegram { background: #203b4c; color: #7bc6f5; }
html[data-theme="dark"] .contact-mark.max { background: #342d4b; color: #c1aefa; }

@media (max-width: 1020px) {
  .topbar-actions { gap: 10px; }
  .supplier-row { grid-template-columns: 48px minmax(200px,1fr) 90px minmax(160px,.7fr) 24px; }
  .supplier-row .supplier-number:nth-of-type(2) { display: none; }
  .supplier-detail-grid { grid-template-columns: 1fr; }
  .supplier-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .registry-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .metric-strip, .result-overview { grid-template-columns: 1fr; }
  .page-hero.compact { display: grid; align-items: start; }
  .page-hero.compact .button { justify-self: start; }
  .supplier-tools { display: grid; }
  .supplier-search { width: 100%; }
  .supplier-row { grid-template-columns: 44px minmax(0,1fr) 22px; padding: 15px; }
  .supplier-row .supplier-number, .supplier-row .supplier-price { display: none; }
  .supplier-profile-head { grid-template-columns: 58px minmax(0,1fr); }
  .supplier-avatar.large { width: 58px; height: 58px; border-radius: 17px; }
  .verification-badge { grid-column: 1 / -1; }
  .verification-actions { grid-column: 1 / -1; }
  .supplier-side { grid-template-columns: 1fr; }
  .registry-overview { padding: 22px; }
  .registry-overview-head { display: grid; }
  .registry-source-pill { justify-self: start; }
  .registry-status-line h2 { font-size: 25px; }
  .registry-details-grid, .registry-access-note { grid-template-columns: 1fr; }
  .registry-access-icon { display: none; }
  .registry-unavailable { padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .offer-facts { grid-template-columns: repeat(2,1fr); }
  .winner { grid-template-columns: 1fr; }
  .winner-mark { width: 50px; height: 50px; border-radius: 15px; }
  .compact-items { grid-template-columns: 1fr; }
  .integration-head { grid-template-columns: 48px minmax(0,1fr); }
  .integration-head > .pill { grid-column: 2; }
  .integration-flow { grid-template-columns: 1fr; }
  .integration-flow i { transform: rotate(90deg); justify-self: center; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form button { width: 100%; }
  .registry-card-head { grid-template-columns: 48px minmax(0,1fr); }
  .registry-card-head .legal-status { grid-column: 2; justify-self: start; }
  .registry-facts { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .support-fab { right: 15px; bottom: 15px; width: 48px; height: 48px; }
  .home-metrics { margin-top: 0; }
  .metric-strip > div, .metric-strip > a { padding: 14px; }
  .supplier-browser { margin-left: -2px; margin-right: -2px; }
  .supplier-tools { padding: 20px; }
  .offer-timeline-item { padding-left: 21px; }
  .offer-timeline-head { display: grid; }
  .registry-primary-grid { grid-template-columns: 1fr; }
  .registry-primary-card.wide { grid-column: auto; }
  .registry-code-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-score { grid-row: 1; }
  .comparison-title-row h1 { font-size: 34px; }
}
