:root {
  color: #17212b;
  background: #f5f6f8;
  font-family: Inter, 'Segoe UI', sans-serif;
  line-height: 1.5;
  --ink: #17212b;
  --muted: #61707d;
  --brand: #49305d;
  --brand-2: #0c6b78;
  --accent: #1c96c5;
  --line: #dce3e7;
  --paper: #fff;
  --soft: #f0edf4;
  --danger: #9f3434;
  --success: #28603b;
  --warning: #785614;
  --shadow: 0 16px 40px rgba(23, 33, 43, 0.08);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0, #f5f6f8 34rem);
}
.topbar {
  min-height: 74px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: 154px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.session {
  color: var(--muted);
  margin-left: auto;
  font-size: 0.88rem;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 5vw 5rem;
}
.notice {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--danger);
  font-weight: 700;
}
.notice-success {
  color: var(--success);
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 850px;
  margin: 0.4rem 0 1.5rem;
}
.hero p:last-child {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 650px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 850;
  font-size: 0.76rem;
  margin: 0;
}
.panel,
.cards > article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.narrow {
  max-width: 720px;
  margin: 2rem auto;
}
.auth-card {
  max-width: 430px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-head h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}
.section-head p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.step {
  color: var(--brand);
  background: var(--soft);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 750;
  font-size: 0.88rem;
  white-space: nowrap;
}
label {
  display: block;
  color: #34444f;
  font-weight: 680;
  margin: 0.85rem 0 0.25rem;
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #bdc8ce;
  border-radius: 10px;
  padding: 0.76rem 0.88rem;
  background: #fff;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(28, 150, 197, 0.24);
  outline-offset: 2px;
  border-color: var(--accent);
}
button {
  font: inherit;
  font-weight: 760;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
nav button,
.secondary,
.quiet,
.link-button {
  background: transparent;
  color: var(--brand);
  border: 1px solid transparent;
}
.secondary {
  border-color: #a999b5;
  background: #fff;
}
nav button[aria-current='page'] {
  background: var(--soft);
}
.link-button {
  padding: 0.7rem 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid.compact {
  margin: 1rem 0;
}
.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 520;
}
.check input {
  margin-top: 0.3rem;
}
.actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.actions.end {
  justify-content: flex-end;
}
.actions.split {
  justify-content: space-between;
  margin-top: 1.4rem;
}
.cards {
  display: grid;
  gap: 1rem;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.05);
}
.catalog-card h3 {
  margin: 0.45rem 0 0.15rem;
  font-size: 1.18rem;
}
.catalog-card p {
  color: var(--muted);
  margin: 0.3rem 0;
}
.catalog-card .scope {
  font-size: 0.9rem;
  color: #34444f;
}
.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 11px;
  margin-bottom: 0.8rem;
}
.service-card {
  min-height: 190px;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}
.card-actions button {
  flex: 1;
  padding: 0.62rem 0.7rem;
}
.card-action {
  margin-top: auto;
  align-self: flex-start;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.26rem 0.66rem;
  background: #e9f3f6;
  color: #0b5966;
  font-size: 0.78rem;
  font-weight: 830;
}
.badge.wait {
  background: #fff2d7;
  color: var(--warning);
}
.badge.done {
  background: #e3f3e8;
  color: var(--success);
}
.badge.danger {
  background: #f9e3e3;
  color: var(--danger);
}
.badge.draft {
  background: var(--soft);
  color: var(--brand);
}
.badge.info {
  background: #e8f1fb;
  color: #1d4f7a;
}
.badge.muted {
  background: #eef1f3;
  color: #5b6670;
}
.request-form {
  max-width: 920px;
  margin: 0 auto;
}
.wizard-step {
  border: 0;
  padding: 0;
  margin: 0;
}
.wizard-step legend {
  font-size: 1.35rem;
  font-weight: 820;
  margin-bottom: 0.5rem;
}
.help {
  color: var(--muted);
  font-size: 0.92rem;
}
.consent-check {
  background: #f6f3f8;
  border: 1px solid #ded5e4;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.25rem;
}
.selected-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  margin-top: 1rem;
}
.selected-product p {
  margin: 0.2rem 0;
  color: var(--muted);
}
.selected-product-image {
  width: 72px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.summary section {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.summary h3,
.summary p {
  margin: 0.2rem 0;
}
.official-delivery {
  background: #edf6f7;
  border-left: 4px solid var(--brand-2);
  padding: 0.9rem;
  border-radius: 8px;
  color: #24474c;
}
.pending-box {
  border: 1px solid #e4c77d;
  background: #fff8e7;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.pending-box p {
  margin: 0.3rem 0 1rem;
}
.success-panel {
  text-align: center;
  padding: 1rem;
}
.success-panel h2 {
  font-size: 2rem;
  margin: 0.4rem 0;
}
.success {
  color: var(--success);
  font-weight: 700;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.04);
}
.filter-bar label {
  margin: 0;
  font-size: 0.83rem;
}
.result-count {
  color: var(--muted);
  font-weight: 700;
}
.request-card {
  padding: 0 !important;
  overflow: hidden;
}
.request-card > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.request-card h2 {
  margin: 0.08rem 0;
  font-size: 1rem;
  color: var(--muted);
}
.candidate-name {
  font-size: 1.14rem;
  font-weight: 820;
  margin: 0;
}
.request-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  align-items: center;
}
.request-overview p {
  margin: 0;
}
.next-step {
  color: #34444f;
  font-weight: 650;
}
.request-details {
  border-top: 1px solid var(--line);
}
.request-details summary {
  cursor: pointer;
  padding: 0.8rem 1.2rem;
  color: var(--brand);
  font-weight: 780;
}
.service-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-top: 1px solid #edf1f2;
}
.service-row h3,
.service-row p {
  margin: 0.1rem 0;
}
.service-row p,
.service-row small {
  color: var(--muted);
}
.preliminary {
  grid-column: 1/-1;
  background: #f9f3e5;
  border-left: 4px solid #b68024;
  padding: 0.8rem;
  border-radius: 8px;
  color: #57441e !important;
}
.empty-state {
  text-align: center;
}
.attention {
  border-color: #e4c77d !important;
}
.stack {
  display: grid;
  gap: 0.7rem;
}
.stack button {
  text-align: left;
}
.package-dialog {
  width: min(760px, calc(100% - 2rem));
  border: 0;
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
.package-dialog::backdrop {
  background: rgba(18, 23, 29, 0.62);
}
.dialog-close {
  float: right;
  background: transparent;
  color: var(--brand);
  font-size: 1.7rem;
  padding: 0.1rem 0.55rem;
}
.detail-image {
  display: block;
  width: min(270px, 42%);
  max-height: 320px;
  object-fit: contain;
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.lead {
  font-size: 1.1rem;
}
.package-dialog ul {
  padding-left: 1.2rem;
}
code,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f5f6;
  border-radius: 8px;
  padding: 0.7rem;
  display: block;
}
a {
  color: var(--brand);
  font-weight: 680;
}
.facts {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: #34444f;
  overflow-wrap: anywhere;
}
.facts .hash,
.hash {
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--muted);
}
.field-help {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
}
.terms-company-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.terms-company-head h2,
.terms-company-head h3 {
  margin: 0.1rem 0;
}
.terms-panel h2 {
  margin: 0.2rem 0 0.4rem;
}
.tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 1rem 0;
}
.tabs .tab {
  border-radius: 10px 10px 0 0;
}
.tabs .tab[aria-selected='true'] {
  background: var(--soft);
}
.tab-body {
  display: grid;
  gap: 1rem;
}
.terms-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 0.6rem;
  margin: 0;
}
.terms-fieldset legend {
  font-weight: 780;
  color: var(--brand);
  padding: 0 0.35rem;
}
.line-editor {
  background: #fbfafc;
}
.save-bar {
  margin-top: 1rem;
  align-items: center;
}
.save-status {
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}
.save-status.pending {
  color: var(--warning);
}
.warning-box,
.success-box {
  border-radius: 12px;
  padding: 1rem;
}
.warning-box {
  background: #fff8e7;
  border: 1px solid #e4c77d;
}
.success-box {
  background: #eef7f0;
  border: 1px solid #b7d7c0;
}
.warning-box ul {
  margin: 0.5rem 0 0;
}
.danger-text {
  color: var(--danger) !important;
  border-color: #d7b0b0 !important;
}
.price-table {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.price-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) 0.7fr 1.1fr auto 0.8fr auto;
  gap: 0.7rem;
  align-items: end;
}
.price-head {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--muted);
}
.group-label {
  display: block;
  font-weight: 680;
  color: #34444f;
  margin: 0.4rem 0;
}
.correction,
.revision {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.7rem 0;
  background: #fff;
}
.amounts {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.amounts th,
.amounts td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
.amounts td:not(:first-child),
.amounts th:not(:first-child) {
  text-align: right;
}
.amounts .grand-total td {
  font-weight: 820;
  border-bottom: 0;
}
.negative-margin {
  color: var(--danger);
  font-weight: 800;
}
.agreement-publisher details {
  margin-top: 1rem;
}
.agreement-publisher summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 1rem;
}
.document-version-list {
  margin-top: 1rem;
}
.document-version-list p {
  margin: 0.4rem 0;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 760;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}
.button-link.secondary {
  border: 1px solid #a999b5;
  background: #fff;
  color: var(--brand);
}
#company-profile {
  margin-top: 1.2rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.05);
  display: grid;
  gap: 0.35rem;
}
.metric strong {
  font-size: 1.65rem;
  color: var(--brand);
}
.metric span {
  color: var(--muted);
}
.subnav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.subnav button {
  white-space: nowrap;
}
#admin-content {
  display: grid;
  gap: 1rem;
}
#admin-content > .request-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem !important;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.05);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  margin: 0.7rem 0;
}
.invitation-link {
  margin-top: 1rem;
  border: 1px solid #b7d8de;
}
.request-card > .actions {
  margin-top: 0.8rem;
}
@media (max-width: 1050px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-bar label:first-child {
    grid-column: span 2;
  }
  .request-overview {
    grid-template-columns: 1fr 1fr;
  }
  .request-overview .next-step {
    grid-column: 1/-1;
  }
}
@media (max-width: 800px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 5vw;
    gap: 0.6rem;
  }
  .brand img {
    width: 138px;
  }
  .session {
    margin: 0;
    max-width: 100%;
  }
  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }
  nav button {
    white-space: nowrap;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .form-grid,
  .summary {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .service-row {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar label:first-child {
    grid-column: 1/-1;
  }
  .request-overview {
    grid-template-columns: 1fr;
  }
  .request-overview .next-step {
    grid-column: auto;
  }
  main {
    padding-top: 1.25rem;
  }
  .detail-image {
    float: none;
    width: 100%;
    height: 240px;
    margin: 0 0 1rem;
  }
  .actions.split {
    gap: 0.8rem;
  }
  .actions.split button {
    flex: 1;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
@media (max-width: 520px) {
  .catalog-grid,
  .filter-bar,
  .metric-grid,
  .check-grid,
  .price-row {
    grid-template-columns: 1fr;
  }
  .filter-bar label:first-child {
    grid-column: auto;
  }
  .product-image {
    aspect-ratio: 16/10;
  }
  .request-card > header {
    flex-direction: column;
  }
  .actions button {
    width: 100%;
  }
  .card-actions button {
    width: auto;
  }
  .topbar {
    padding-inline: 1rem;
  }
  main {
    padding-inline: 1rem;
  }
  .panel,
  .cards > article {
    border-radius: 14px;
    padding: 1rem;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .step {
    white-space: normal;
  }
}
.study-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid #a999b5;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
}
.password-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.8rem;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}
.password-entry input {
  min-width: 0;
}
.password-toggle {
  min-width: 2.8rem;
  padding: 0.45rem;
  font-size: 1.05rem;
  line-height: 1;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}
.password-toggle[aria-pressed='true'] {
  background: #f1ebf5;
}
.candidate-address {
  margin: 0;
}
.compact-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
}
.compact-fieldset legend {
  font-weight: 780;
  color: var(--brand);
}
.compact-head {
  margin-top: 1.5rem;
}
.batch-candidates {
  display: grid;
  gap: 1rem;
}
.batch-candidate {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fbfcfd;
}
.batch-candidate h3 {
  margin: 0.2rem 0;
}
.batch-candidate details {
  grid-column: 1/-1;
}
.batch-candidate summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 750;
}
.batch-candidate .terms-company-head button {
  padding: 0.45rem 0.7rem;
}
.traffic-light {
  font-weight: 800;
}
.free-trial-notice {
  grid-column: 1/-1;
  background: #eef7f0;
  border-color: #b7d7c0;
}
.free-trial-notice h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.15rem;
}

.control-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: center;
  border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(77, 193, 209, 0.34), transparent 34%),
    linear-gradient(135deg, #382348 0%, #49305d 58%, #0c6b78 130%);
  box-shadow: 0 24px 65px rgba(43, 30, 54, 0.2);
}
.control-hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -145px;
  bottom: -210px;
  border: 46px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.control-hero h1 {
  max-width: 760px;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.control-hero p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.control-hero .eyebrow { color: #bfeaf0; }
.control-hero .secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.contract-status {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.contract-status p { margin: 0; }
.home-block { padding: 2.4rem 0 1rem; }
.compact-headline { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.compact-headline h2, .home-guide h2, .compare-group h2 { margin: 0.2rem 0; letter-spacing: -0.02em; }
.solution-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.solution-item {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.solution-item strong { color: var(--brand); }
.solution-item span { color: var(--muted); font-size: 0.88rem; }
.solution-item.featured { background: var(--soft); border-color: #cfc2d7; }
.home-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  margin: 1rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.home-guide ol { display: grid; gap: 0.65rem; list-style: none; counter-reset: guide; margin: 0; padding: 0; }
.home-guide li { counter-increment: guide; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.55rem; align-items: center; }
.home-guide li::before { content: counter(guide); grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 800; }
.home-guide li span { color: var(--muted); font-size: 0.88rem; }
.quick-access { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.quick-access button { display: flex; gap: 0.55rem; align-items: center; justify-content: center; background: #fff; color: var(--brand); border: 1px solid var(--line); }
.quick-access span { font-size: 1.25rem; color: var(--brand-2); }

.contract-banner { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; margin-bottom: 1rem; border: 1px solid #e4c77d; border-radius: 14px; background: #fff8e7; }
.contract-banner.active { border-color: #b7d7c0; background: #eef7f0; }
.catalog-comparator { display: grid; gap: 1.5rem; }
.compare-group { min-width: 0; }
.compare-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-top: 0.8rem; }
.compare-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compare-card { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05); }
.compare-card h3, .compare-card p { margin: 0; }
.compare-card > p { color: var(--muted); }
.compare-image { width: 100%; height: 150px; object-fit: contain; border-radius: 12px; background: #fff; }
.component-list { display: grid; gap: 0.35rem; list-style: none; margin: 0.2rem 0; padding: 0; }
.component-list li { position: relative; padding-left: 1.2rem; color: #34444f; font-size: 0.9rem; }
.component-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-2); font-weight: 900; }
.catalog-explanation { margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.catalog-explanation summary { cursor: pointer; color: var(--brand); font-weight: 760; }
.catalog-explanation p { margin-top: 0.55rem; }
.constancia-note { padding: 0.65rem; border-radius: 10px; background: #eef6f7; color: #24474c !important; font-size: 0.84rem; }
.orientation-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--brand-2); background: #fff; border-radius: 0 12px 12px 0; }
.orientation-note p { margin: 0.25rem 0 0; color: var(--muted); }
.constancia-dossier { margin-top: 1rem; background: #fbfcfd; }

.verification-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.verification-card { width: min(620px, 100%); padding: clamp(1.4rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--brand); border-radius: 22px; box-shadow: var(--shadow); }
.verification-card > img { width: 150px; height: auto; margin-bottom: 1rem; }
.verification-card h1 { margin: 0.35rem 0 0.8rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.verification-status { margin-bottom: 0.7rem; }

@media (max-width: 1050px) {
  .solution-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-grid, .compare-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .control-hero, .home-guide { grid-template-columns: 1fr; }
  .quick-access { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-status { max-width: 440px; }
}
@media (max-width: 520px) {
  .control-hero { border-radius: 20px; padding: 1.35rem; }
  .solution-strip, .compare-grid, .compare-grid.compact, .quick-access { grid-template-columns: 1fr; }
  .solution-item { min-height: auto; }
  .contract-banner { flex-direction: column; }
  .compare-image { height: 180px; }
}

/* Seguimiento: nombres agrupados, folios y evaluaciones independientes siempre visibles. */
#board { display: block; }
.candidate-group { background: #fff; border: 1px solid #dce1e8; border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.candidate-group h2 { margin: 0 0 8px; font-size: 1.05rem; }
.compact-context { margin: 0 0 8px; font-size: .8rem; }
.follow-up-scroll { overflow-x: auto; }
.follow-up-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.follow-up-table th { text-align: left; padding: 7px 9px; color: #526277; font-size: .75rem; border-bottom: 1px solid #dce1e8; }
.follow-up-table td { padding: 10px 9px; vertical-align: top; border-bottom: 1px solid #edf0f3; }
.follow-up-table tr:last-child td { border-bottom: 0; }
.follow-up-table small { display: block; margin-top: 3px; color: #526277; font-size: .74rem; }
.follow-up-table td:nth-child(4) { min-width: 170px; max-width: 400px; overflow-wrap: anywhere; }
.follow-up-table button { font-size: .76rem; padding: 6px 9px; min-height: 32px; }
.follow-up-pages { justify-content: center; align-items: center; }
.admin-cancellation-form { max-width: 640px; display: grid; gap: 12px; margin-top: 10px; }
@media (max-width: 650px) {
  .follow-up-table thead { display: none; }
  .follow-up-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid #dce1e8; }
  .follow-up-table td { border: 0; padding: 4px; }
  .follow-up-table td:nth-child(4) { grid-column: 1 / -1; min-width: 0; max-width: none; }
  .candidate-group { padding: 12px; }
}
