:root {
  color-scheme: light;
  --ink: #1f2e3f;
  --soft-ink: #4e6174;
  --line: #d0dce9;
  --paper: #ffffff;
  --bg-a: #fff7ec;
  --bg-b: #edf7f3;
  --blue: #2f6bb2;
  --green: #1f8a5d;
  --green-strong: #156746;
  --gold: #b7822d;
  --rose: #a43856;
  --shadow-soft: 0 12px 30px rgba(31, 45, 61, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
  background: linear-gradient(150deg, var(--bg-a) 0%, #f4f9ff 50%, var(--bg-b) 100%);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
  font-family: "Segoe UI Variable Display", "Franklin Gothic Demi Cond", "Franklin Gothic Medium", sans-serif;
}

p {
  margin-top: 0;
}

.services-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
  display: grid;
  gap: 18px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 18px;
  border: 2px solid #b8cee7;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 107, 178, 0.14), rgba(31, 138, 93, 0.16));
  color: #1a456f;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-name-icon {
  width: clamp(26px, 1em, 50px);
  height: clamp(26px, 1em, 50px);
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(19, 40, 64, 0.28);
}

.site-name-text {
  display: inline-block;
  line-height: 0.98;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  margin-bottom: 12px;
  font-size: 2.75rem;
  line-height: 1;
}

.lede {
  max-width: 850px;
  margin-bottom: 14px;
  color: var(--soft-ink);
  line-height: 1.6;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d4deea;
  background: #fff;
  color: #2c3f53;
  font-size: 0.85rem;
  font-weight: 700;
}

.header-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #c3d1e2;
  border-radius: 8px;
  color: #2b4158;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

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

.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.surface-head h2 {
  margin-bottom: 6px;
  font-size: 1.65rem;
}

.surface-head p {
  margin-bottom: 14px;
  color: var(--soft-ink);
}

.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: flex-end;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: #30465c;
  font-size: 0.88rem;
  font-weight: 700;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #bccbdb;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 107, 178, 0.28);
  border-color: var(--blue);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

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

.inline-check input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #bccadd;
  border-radius: 8px;
  background: #fff;
  color: #2d4359;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  border-color: #17724d;
  background: linear-gradient(180deg, #249667 0%, #1c7e56 100%);
  color: #fff;
}

.status {
  margin: 0;
  min-height: 20px;
  color: #166845;
  font-size: 0.9rem;
  font-weight: 700;
}

.status.error {
  color: #a7324d;
}

.filter-label {
  min-width: 220px;
}

.vendor-list {
  display: grid;
  gap: 10px;
}

.vendor-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cdd9e8;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
}

.vendor-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
}

.vendor-name {
  margin: 0;
  font-size: 1.08rem;
}

.vendor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vendor-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #cddae8;
  background: #fff;
  color: #2f4359;
  font-size: 0.76rem;
  font-weight: 800;
}

.vendor-meta {
  margin: 0;
  color: #4f6174;
  font-size: 0.9rem;
  line-height: 1.45;
}

.vendor-rating-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

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

.vendor-rating-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.vendor-rating-score,
.vendor-review-byline {
  color: #4f6174;
  font-size: 0.84rem;
  font-weight: 700;
}

.vendor-review-text {
  margin: 0;
  color: #32465a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.vendor-offerings {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: #32465a;
  font-size: 0.9rem;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed #c8d7e9;
  border-radius: 8px;
  color: #4f6378;
  background: rgba(255, 255, 255, 0.75);
}

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

.summary-item {
  margin: 0;
  padding: 12px;
  border: 1px solid #cedbeb;
  border-radius: 8px;
  background: #fff;
}

.summary-item p {
  margin: 0 0 6px;
  color: #4f6176;
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-item strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #d9e2ed;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

thead th {
  color: #3a5067;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.review-cell {
  min-width: 220px;
  line-height: 1.45;
}

@media (max-width: 1060px) {
  .workspace-grid,
  .payments-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .services-shell {
    width: min(100% - 16px, 560px);
    padding-top: 16px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .form-grid,
  .summary-grid,
  .header-actions {
    grid-template-columns: 1fr;
  }

  .surface {
    padding: 16px;
  }
}
