:root {
  color-scheme: light;
  --eh-bg: #f7fafc;
  --eh-surface: #ffffff;
  --eh-surface-subtle: #edf4f9;
  --eh-primary: #005ea8;
  --eh-primary-hover: #004b86;
  --eh-accent: #007c89;
  --eh-text: #102033;
  --eh-muted: #526070;
  --eh-border: #d6e1ea;
  --eh-error: #b42318;
  --eh-success: #087443;
  --eh-warning: #9a5b00;
}

[data-theme="dark"] {
  color-scheme: dark;
  --eh-bg: #071421;
  --eh-surface: #0e2235;
  --eh-surface-subtle: #15324c;
  --eh-primary: #6bb6ff;
  --eh-primary-hover: #9ccdff;
  --eh-accent: #52d6c7;
  --eh-text: #f4f8fb;
  --eh-muted: #b7c8d8;
  --eh-border: #284b68;
  --eh-error: #ffb4ab;
  --eh-success: #77ddb0;
  --eh-warning: #ffd27a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --eh-bg: #071421;
    --eh-surface: #0e2235;
    --eh-surface-subtle: #15324c;
    --eh-primary: #6bb6ff;
    --eh-primary-hover: #9ccdff;
    --eh-accent: #52d6c7;
    --eh-text: #f4f8fb;
    --eh-muted: #b7c8d8;
    --eh-border: #284b68;
    --eh-error: #ffb4ab;
    --eh-success: #77ddb0;
    --eh-warning: #ffd27a;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--eh-bg);
  color: var(--eh-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--eh-primary);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--eh-primary), transparent 62%);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--eh-primary);
  color: var(--eh-surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--eh-border);
  background: var(--eh-surface);
}

.site-footer {
  border-top: 1px solid var(--eh-border);
  border-bottom: 0;
  margin-top: 32px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner,
.footer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--eh-text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--eh-primary);
  color: var(--eh-surface);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav a {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--eh-muted);
  font-weight: 650;
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--eh-surface-subtle);
  color: var(--eh-text);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.auth-page {
  display: grid;
  min-height: 60vh;
  align-items: start;
}

.auth-panel {
  width: min(100%, 520px);
}

.page-actions {
  margin: 0 0 16px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--eh-surface);
  color: var(--eh-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.button-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-button {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  background: var(--eh-surface);
  color: var(--eh-text);
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--eh-primary-hover);
  color: var(--eh-primary-hover);
}

.button.primary {
  border-color: var(--eh-primary);
  background: var(--eh-primary);
  color: var(--eh-surface);
}

.button:hover {
  border-color: var(--eh-primary-hover);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.theme-toggle {
  min-width: 40px;
}

.account-button {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  padding: 24px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
}

.hero h1,
.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--eh-muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0;
  color: var(--eh-primary);
  font-size: .9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.error-page {
  max-width: 760px;
}

.panel,
.card {
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  background: var(--eh-surface);
}

.panel {
  padding: 16px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 16px;
  align-items: start;
}

.home-summary-grid {
  align-items: stretch;
}

.home-summary-panel {
  min-height: 100%;
}

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

.legal-page {
  max-width: 980px;
}

.legal-provider {
  margin-bottom: 16px;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.legal-meta div {
  min-width: 0;
}

.legal-meta dt {
  color: var(--eh-muted);
  font-size: .88rem;
  font-weight: 750;
}

.legal-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.legal-section-grid {
  display: grid;
  gap: 14px;
}

.legal-section-grid h2 {
  margin: 0;
  font-size: 1.15rem;
}

.legal-section-grid p {
  margin: 0;
  color: var(--eh-muted);
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.section-heading-row h2 {
  margin: 0;
}

.section-intro {
  max-width: 760px;
  margin-top: 0;
}

.result-count {
  margin: 0;
  border: 1px solid var(--eh-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--eh-surface-subtle);
  color: var(--eh-text);
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: start;
}

.form-span-full {
  grid-column: 1 / -1;
}

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

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
}

.segmented-control legend {
  width: 100%;
  margin-bottom: 2px;
  font-weight: 800;
}

.segmented-control label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--eh-surface);
  font-weight: 750;
}

.price-hint {
  display: block;
  color: var(--eh-muted);
  font-size: .9rem;
  font-weight: 650;
}

.segmented-control input {
  width: auto;
  min-height: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: start;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
  min-width: 190px;
}

.filter-actions .button {
  width: 100%;
}

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

.form-actions .button {
  width: auto;
  min-width: 120px;
}

.verification-code {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--eh-surface-subtle);
}

.verification-code span {
  color: var(--eh-muted);
  font-size: .9rem;
  font-weight: 800;
}

.verification-code strong {
  color: var(--eh-text);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.smart-id-logo-row img {
  display: block;
  width: min(186px, 60%);
  height: auto;
}

.smart-id-personal-code {
  max-width: 430px;
}

.smart-id-prefixed-input {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: stretch;
}

.smart-id-country-prefix {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-border);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--eh-surface-subtle);
}

.ee-flag {
  display: grid;
  width: 30px;
  height: 18px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--eh-text), transparent 70%);
  border-radius: 2px;
}

.ee-flag span:nth-child(1) {
  background: #0072ce;
}

.ee-flag span:nth-child(2) {
  background: #000000;
}

.ee-flag span:nth-child(3) {
  background: #ffffff;
}

.field-hint {
  color: var(--eh-muted);
  font-size: .82rem;
  font-weight: 650;
}

.smart-id-prefixed-input input {
  border-radius: 0 6px 6px 0;
}

.smart-id-submit {
  justify-self: start;
  min-width: 140px;
}

.auth-divider {
  display: flex;
  max-width: 430px;
  align-items: center;
  gap: 12px;
  color: var(--eh-muted);
  font-size: .9rem;
  font-weight: 800;
}

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

.google-auth-button {
  justify-self: start;
  min-width: min(100%, 260px);
  gap: 10px;
  border-color: color-mix(in srgb, #1a73e8, var(--eh-border) 40%);
  background: var(--eh-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, #1a73e8, transparent 84%);
}

.google-auth-button:hover {
  border-color: #1a73e8;
  background: color-mix(in srgb, #1a73e8, var(--eh-surface) 94%);
}

.google-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-border);
  border-radius: 50%;
  background: var(--eh-surface);
  color: #1a73e8;
  font-weight: 900;
}

.auth-provider-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--eh-success), var(--eh-border) 35%);
  border-radius: 999px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--eh-success), var(--eh-surface) 92%);
  color: var(--eh-success);
  font-size: .82rem;
  font-weight: 850;
}

.secondary-login-details,
.dev-login-details {
  border-top: 1px solid var(--eh-border);
  padding-top: 12px;
}

.secondary-login-details {
  max-width: 430px;
}

.secondary-login-details form {
  margin-top: 12px;
}

.secondary-login-details .button {
  justify-self: start;
}

.secondary-login-details summary,
.dev-login-details summary {
  cursor: pointer;
  color: var(--eh-muted);
  font-weight: 800;
}

.secondary-login-details[open] summary,
.dev-login-details[open] summary {
  margin-bottom: 12px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--eh-muted);
  font-size: .92rem;
  font-weight: 700;
}

.field-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--eh-surface);
  color: var(--eh-text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.cpv-combobox,
.business-register-combobox {
  position: relative;
  display: block;
}

.cpv-combobox input,
.business-register-combobox input {
  display: block;
}

.cpv-options,
.business-register-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  background: var(--eh-surface);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--eh-text), transparent 88%);
}

.cpv-options[hidden],
.business-register-options[hidden] {
  display: none;
}

.cpv-option,
.business-register-option {
  border: 0;
  border-bottom: 1px solid var(--eh-border);
  padding: 9px 10px;
  background: var(--eh-surface);
  color: var(--eh-text);
  font: inherit;
  text-align: left;
}

.business-register-option {
  display: grid;
  gap: 2px;
}

.business-register-option span {
  color: var(--eh-muted);
  font-size: .9rem;
}

.cpv-option:last-child,
.business-register-option:last-child {
  border-bottom: 0;
}

.cpv-option:hover,
.cpv-option[aria-selected="true"],
.business-register-option:hover,
.business-register-option[aria-selected="true"] {
  background: var(--eh-surface-subtle);
}

.registration-company-fields:not(.is-manual) {
  display: none;
}

.registration-company-fields.is-manual + .meta-grid {
  display: none;
}

.required-marker {
  color: var(--eh-error);
  font-weight: 900;
}

.token-list {
  display: flex;
  min-height: 42px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px dashed var(--eh-border);
  border-radius: 6px;
  padding: 8px;
  background: var(--eh-surface-subtle);
}

.token {
  display: inline-flex;
  max-width: 100%;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--eh-border);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  background: var(--eh-surface);
  color: var(--eh-text);
  font-weight: 700;
}

.token .icon-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
}

.checkbox-label {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: flex-start;
  color: var(--eh-text);
}

.checkbox-label input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.table-wrap {
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.tender-table {
  table-layout: fixed;
}

.tender-col-title {
  width: 31%;
}

.tender-col-buyer {
  width: 17%;
}

.tender-col-country {
  width: 10%;
}

.tender-col-procedure {
  width: 16%;
}

.tender-col-deadline {
  width: 10%;
}

.tender-col-status {
  width: 10%;
}

.tender-col-action {
  width: 6%;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--eh-border);
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.data-table td {
  overflow-wrap: anywhere;
}

.compact-table td,
.compact-table th {
  padding-block: 10px;
}

.numeric-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nowrap-cell {
  overflow-wrap: normal !important;
  white-space: nowrap;
}

.deadline-cell {
  overflow-wrap: normal !important;
  white-space: nowrap;
  word-break: keep-all;
}

.country-cell {
  overflow-wrap: normal !important;
  white-space: nowrap;
  word-break: keep-all;
}

.action-cell {
  width: 72px;
}

.data-table th {
  color: var(--eh-muted);
  font-size: .82rem;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}

.data-table th a {
  white-space: normal;
}

.home-latest-table {
  table-layout: fixed;
}

.home-latest-col-country {
  width: 136px;
}

.home-latest-col-deadline {
  width: 104px;
}

.home-latest-col-action {
  width: 64px;
}

.largest-country-col {
  width: 120px;
}

.largest-value-col {
  width: 190px;
}

.landing-country-col {
  width: 120px;
}

.landing-deadline-col {
  width: 112px;
}

.landing-open-search-row {
  margin-bottom: 20px;
}

.home-latest-table th:nth-child(2),
.home-latest-table th:nth-child(3),
.home-latest-table th:nth-child(4),
.home-latest-table td:nth-child(2),
.home-latest-table td:nth-child(3),
.home-latest-table td:nth-child(4) {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.home-latest-table td:first-child {
  min-width: 0;
}

.tender-table th,
.tender-table .tender-col-status,
.tender-table td:nth-child(5),
.tender-table td:nth-child(6),
.status {
  overflow-wrap: normal;
  word-break: keep-all;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--eh-muted);
  font-size: .88rem;
  text-transform: none;
  overflow-wrap: anywhere;
}

.masked-text {
  display: inline-block;
  max-width: 100%;
  user-select: none;
  color: var(--eh-muted);
  filter: blur(4px);
}

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

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

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.link-list a {
  overflow-wrap: anywhere;
}

.article-body {
  max-width: 78ch;
}

.article-body p,
.article-body h2,
.article-body h3 {
  margin: 0 0 16px;
}

.article-body h2,
.article-body h3 {
  color: var(--eh-text);
  line-height: 1.2;
}

.article-body h2 {
  font-size: 1.35rem;
}

.article-body h3 {
  font-size: 1.12rem;
}

.article-detail-panel .article-body,
.article-detail-panel .lead {
  max-width: none;
}

.article-detail-panel .article-body {
  width: 100%;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-detail-title {
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.article-detail-panel,
.article-detail-related-panel {
  max-width: none;
}

.breadcrumb {
  margin-bottom: 16px;
}

.related-grid,
.seo-home-grid {
  margin-top: 24px;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border-top: 1px solid var(--eh-border);
  padding-top: 16px;
}

.pagination-compact {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.pagination-summary {
  margin: 0;
  color: var(--eh-muted);
  font-size: .92rem;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination-current {
  color: var(--eh-muted);
  font-weight: 700;
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: .56;
  pointer-events: none;
}

.collaboration-table {
  table-layout: fixed;
}

.collaboration-table th:first-child,
.collaboration-table td:first-child {
  width: 24%;
}

.collaboration-table th:last-child,
.collaboration-table td:last-child {
  width: 120px;
}

.collaboration-action {
  white-space: nowrap;
}

.collaboration-action .button,
.response-toggle {
  width: auto;
  min-width: 96px;
  white-space: nowrap;
}

.preserve-line-breaks {
  white-space: pre-line;
}

.response-row {
  display: none;
}

.response-row:target {
  display: table-row;
}

.response-cell {
  padding-top: 0;
}

.response-cell::before {
  content: none;
}

.response-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--eh-surface-subtle);
}

.response-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.response-form {
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-page {
  display: grid;
  gap: 24px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0 8px;
}

.pricing-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.06;
}

.pricing-panel,
.pricing-section {
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  background: var(--eh-surface);
}

.pricing-panel {
  padding: 16px;
}

.pricing-plan {
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--eh-surface-subtle);
}

.pricing-plan.recommended {
  border-color: color-mix(in srgb, var(--eh-primary), var(--eh-border) 42%);
  background: color-mix(in srgb, var(--eh-primary), var(--eh-surface) 94%);
}

.pricing-plan h3,
.pricing-plan p {
  margin: 0;
}

.pricing-plan-label {
  margin-bottom: 6px;
  color: var(--eh-primary);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-price {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}

.pricing-price strong {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.pricing-vat-note {
  margin: 0;
  color: var(--eh-muted);
  font-size: .9rem;
}

.pricing-section {
  padding: 18px;
}

.pricing-section.subtle {
  background: var(--eh-surface-subtle);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-item {
  border-top: 3px solid var(--eh-primary);
  padding-top: 10px;
}

.feature-item h3,
.feature-item p {
  margin: 0;
}

.feature-item p {
  margin-top: 6px;
  color: var(--eh-muted);
}

.pricing-two-column {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  padding: 10px 12px 10px 36px;
  background: var(--eh-surface);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 13px;
  width: 10px;
  height: 6px;
  border-bottom: 3px solid var(--eh-success);
  border-left: 3px solid var(--eh-success);
  transform: rotate(-45deg);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pricing-step;
}

.step-list li {
  counter-increment: pricing-step;
  display: grid;
  gap: 8px;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--eh-surface-subtle);
}

.step-list li::before {
  content: counter(pricing-step);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--eh-primary);
  color: var(--eh-surface);
  font-weight: 850;
}

.step-list span {
  color: var(--eh-muted);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-list details {
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  background: var(--eh-surface);
}

.faq-list summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  border-top: 1px solid var(--eh-border);
  padding: 12px 14px;
  color: var(--eh-muted);
}

.pricing-final-cta {
  margin-top: 16px;
}

.company-choice-list {
  display: grid;
  gap: 12px;
}

.company-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--eh-surface-subtle);
}

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

.requirements-panel {
  grid-column: 1 / -1;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-block {
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--eh-surface-subtle);
}

.requirement-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.requirement-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--eh-muted);
  font-size: .9rem;
}

.requirement-text {
  max-width: 86ch;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--eh-success), transparent 55%);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--eh-success);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-item,
.notice {
  border: 1px solid var(--eh-border);
  border-radius: 6px;
  padding: 10px;
  background: var(--eh-surface-subtle);
}

.notice {
  font-weight: 700;
}

.notice.success {
  border-color: color-mix(in srgb, var(--eh-success), var(--eh-border) 38%);
  background: color-mix(in srgb, var(--eh-success), var(--eh-surface) 86%);
  color: var(--eh-success);
}

.notice.error {
  border-color: color-mix(in srgb, var(--eh-error), var(--eh-border) 35%);
  background: color-mix(in srgb, var(--eh-error), var(--eh-surface) 88%);
  color: var(--eh-error);
}

.notice.warning {
  border-color: color-mix(in srgb, var(--eh-warning), var(--eh-border) 38%);
  background: color-mix(in srgb, var(--eh-warning), var(--eh-surface) 88%);
  color: var(--eh-warning);
}

.notice :where(h2, h3, p) {
  color: inherit;
}

.muted {
  color: var(--eh-muted);
}

.error-summary {
  border: 1px solid var(--eh-error);
  border-radius: 6px;
  padding: 10px;
  color: var(--eh-error);
  background: color-mix(in srgb, var(--eh-error), transparent 92%);
}

.field-error {
  color: var(--eh-error);
  font-size: .9rem;
  font-weight: 700;
}

.tender-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
}

.tender-chat-trigger {
  display: inline-flex;
  min-width: 112px;
  min-height: 48px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--eh-primary);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--eh-primary);
  color: var(--eh-surface);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--eh-text), transparent 84%);
}

.tender-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  width: min(420px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 112px));
  grid-template-rows: auto minmax(140px, 1fr) auto;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  background: var(--eh-surface);
  color: var(--eh-text);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--eh-text), transparent 84%);
}

.tender-chat-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--eh-border);
  padding: 14px;
}

.tender-chat-header h2,
.tender-chat-header p {
  margin: 0;
}

.tender-chat-header h2 {
  font-size: 1.1rem;
}

.tender-chat-header p {
  color: var(--eh-muted);
  font-size: .92rem;
}

.tender-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.tender-chat-message {
  max-width: 92%;
  border: 1px solid var(--eh-border);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-line;
}

.tender-chat-message.assistant {
  justify-self: start;
  background: var(--eh-surface-subtle);
}

.tender-chat-message.loading {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 54px;
  font-weight: 800;
  letter-spacing: 0;
}

.tender-chat-dot {
  display: inline-block;
  animation: tender-chat-dot 1s infinite ease-in-out;
}

@keyframes tender-chat-dot {
  0%, 80%, 100% {
    opacity: .25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tender-chat-dot {
    animation: none;
  }
}

.tender-chat-message.user {
  justify-self: end;
  border-color: color-mix(in srgb, var(--eh-primary), var(--eh-border) 42%);
  background: color-mix(in srgb, var(--eh-primary), var(--eh-surface) 88%);
}

.tender-chat-source {
  margin: 8px 0 0;
  color: var(--eh-muted);
  font-size: .86rem;
}

.tender-chat-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--eh-border);
  padding: 14px;
}

.tender-chat-form textarea {
  min-height: 88px;
  resize: vertical;
}

.tender-chat-disclaimer {
  margin: 0;
  font-size: .88rem;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .pricing-hero,
  .pricing-two-column,
  .filter-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-actions .button {
    width: 100%;
  }

  .form-actions .button {
    width: 100%;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .header-inner,
  .footer-inner,
  .actions,
  .meta-grid,
  .legal-meta,
  .contact-grid,
  .company-choice {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .account-button {
    max-width: 100%;
  }

  .company-choice-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .smart-id-submit {
    justify-self: stretch;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    margin: 0 0 12px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: var(--eh-surface);
  }

  .data-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    border-top: 1px solid var(--eh-border);
    overflow-wrap: anywhere;
  }

  .data-table td:first-child {
    border-top: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--eh-muted);
    font-weight: 800;
  }

  .collaboration-table th:first-child,
  .collaboration-table td:first-child,
  .collaboration-table th:last-child,
  .collaboration-table td:last-child {
    width: auto;
  }

  .collaboration-action .button,
  .response-toggle {
    min-width: 0;
    width: 100%;
  }

  .response-row:target {
    display: block;
  }

  .response-row {
    border: 0;
    background: transparent;
  }

  .response-cell {
    display: block;
    padding: 0 0 12px;
    border-top: 0;
  }

  .response-panel {
    border-radius: 6px;
  }

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

  .tender-chat {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .tender-chat-trigger {
    width: auto;
    margin-left: auto;
  }

  .tender-chat-panel {
    right: 0;
    bottom: calc(100% + 10px);
    width: 100%;
    max-height: min(78vh, 620px);
  }
}
