:root {
  color-scheme: light;
  --brand: #f88f22;
  --brand-hover: #ea6113;
  --brand-soft: #ffe3b3;
  --ink: #051f20;
  --nav: #0b2b26;
  --dark-surface: #163832;
  --green: #235347;
  --sage: #8eb69b;
  --mint: #daf1de;
  --cream: #f4e1c3;
  --text: #15201d;
  --muted: #64706b;
  --surface: #fff;
  --background: #f7f8f5;
  --border: #dce4df;
  --success: #219653;
  --danger: #d92d20;
  --info: #3b5c51;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-section: 16px;
  --shadow-card: 0 8px 24px rgb(5 31 32 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button,
input,
select,
textarea {
  border-radius: var(--radius-control);
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
}

.shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--ink);
  background: var(--brand);
  border-radius: var(--radius-control);
  font-weight: 700;
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  color: #fff;
  background: var(--nav);
  border-bottom: 1px solid rgb(218 241 222 / 12%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}

.logo {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--brand);
}

.desktop-nav {
  display: flex;
  align-self: stretch;
  gap: 32px;
  font-size: 0.875rem;
}

.desktop-nav a,
.desktop-nav span {
  position: relative;
  display: flex;
  align-items: center;
  color: #d8e5e0;
}

.desktop-nav span {
  opacity: 0.45;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
}

.header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  color: #d8e5e0;
  font-size: 0.875rem;
}

.button,
.staff-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  color: var(--ink);
  background: var(--brand);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.staff-button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.button-outline {
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
}

.button-dark-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--green);
}

.button-full {
  width: 100%;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: var(--dark-surface);
  border: 1px solid rgb(218 241 222 / 18%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.mobile-nav nav a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
}

.mobile-nav nav a:hover {
  background: rgb(218 241 222 / 10%);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 32%, rgb(142 182 155 / 22%), transparent 27rem),
    linear-gradient(125deg, var(--ink), var(--nav) 52%, #123f36);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgb(218 241 222 / 20%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(218 241 222 / 20%) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 590px;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 730px;
  padding-block: 80px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
}

.lead {
  max-width: 690px;
  color: inherit;
  font-size: 1.125rem;
}

.hero .lead {
  color: #cfe0da;
}

.hero .button-row {
  margin-block: 32px;
}

.trust-list,
.check-list {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 14px 24px;
  list-style: none;
}

.trust-list li,
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
}

.trust-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  content: "";
}

.hero-art {
  position: relative;
  height: 340px;
  border: 1px solid rgb(218 241 222 / 16%);
  background:
    linear-gradient(155deg, rgb(255 255 255 / 8%), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgb(218 241 222 / 5%) 72px 73px);
  border-radius: 160px 32px 32px 32px;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
}

.hero-art::before {
  right: 7%;
  bottom: 30%;
  width: 88%;
  height: 34%;
  background: linear-gradient(180deg, #376d60, #0a2522);
  border: 1px solid rgb(218 241 222 / 32%);
  border-radius: 62% 35% 17% 19% / 70% 67% 24% 28%;
  box-shadow: 0 30px 70px rgb(0 0 0 / 35%);
  transform: skewX(-5deg);
}

.hero-art::after {
  right: 23%;
  bottom: 31%;
  width: 46%;
  height: 27%;
  background: linear-gradient(140deg, #9cbeb1, #163832 62%);
  border-radius: 60% 22% 0 0;
  transform: skewX(-18deg);
}

.hero-car::before,
.hero-car::after {
  position: absolute;
  z-index: 2;
  bottom: 21%;
  width: 64px;
  height: 64px;
  background: #071b1a;
  border: 8px solid #274e46;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #8eb69b;
  content: "";
}

.hero-car::before {
  left: 14%;
}

.hero-car::after {
  right: 13%;
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  min-height: 112px;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  display: flex;
  padding: 24px;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong {
  color: var(--green);
  font-size: 1.5rem;
}

.trust-grid span {
  font-size: 0.875rem;
  font-weight: 650;
}

.section {
  padding-block: 96px;
}

.section-heading {
  display: grid;
  margin-bottom: 32px;
  grid-template-columns: 1fr minmax(260px, 450px);
  align-items: end;
  gap: 48px;
}

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

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
}

.service-art {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nav), var(--green));
}

.service-art::before,
.service-art::after,
.service-art span::before,
.service-art span::after {
  position: absolute;
  content: "";
}

.service-art::before {
  inset: 20% 22%;
  border: 12px solid var(--sage);
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px var(--ink), 0 16px 30px rgb(0 0 0 / 28%);
}

.service-art::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 12%) 41%, transparent 42%),
    radial-gradient(circle at 78% 24%, rgb(248 143 34 / 52%), transparent 16%);
}

.art-oil {
  background: linear-gradient(135deg, #0d332d, #8b6c26);
}

.art-oil::before {
  inset: 23% 35%;
  border: 4px solid var(--brand-soft);
  border-radius: 18px 18px 42% 42%;
  box-shadow: inset 0 -32px 0 rgb(248 143 34 / 42%);
}

.art-diagnostics {
  background: linear-gradient(135deg, var(--ink), #1c5d50);
}

.art-diagnostics::before {
  inset: 24% 22%;
  border: 3px solid var(--sage);
  border-radius: 18px;
  box-shadow: inset 0 0 0 12px rgb(5 31 32 / 65%);
}

.art-diagnostics span::before {
  z-index: 1;
  top: 47%;
  left: 32%;
  width: 36%;
  height: 3px;
  background: var(--brand);
  box-shadow: 28px -20px 0 var(--sage), -24px 20px 0 var(--sage);
  transform: rotate(-8deg);
}

.service-art.large {
  min-height: 250px;
  margin-bottom: 24px;
  border-radius: var(--radius-card);
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  min-height: 52px;
}

.service-meta {
  display: flex;
  padding-block: 18px;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.service-meta strong {
  color: var(--ink);
}

.card-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
}

.process {
  display: grid;
  padding-top: 0;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.process-card {
  padding: 32px;
  background: var(--mint);
  border-radius: var(--radius-section);
}

.process-card p {
  margin-bottom: 8px;
  color: var(--green);
}

.booking-head {
  padding-block: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgb(142 182 155 / 18%), transparent 24rem),
    var(--nav);
}

.booking-head h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.booking-head > .shell > p:last-child {
  margin-bottom: 0;
  color: #cfe0da;
}

.breadcrumbs {
  display: flex;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
  color: #b9d0c7;
  font-size: 0.75rem;
}

.breadcrumbs a:hover {
  color: #fff;
}

.booking-grid {
  display: grid;
  padding-block: 48px 96px;
  grid-template-columns: 4fr 5fr 3fr;
  align-items: start;
  gap: 24px;
}

.booking-grid > *,
.detail-grid > * {
  min-width: 0;
}

.service-summary,
.booking-form,
.booking-total {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.service-summary h2,
.booking-total h2 {
  font-size: 1.5rem;
}

.facts,
.summary-list,
.detail-list {
  margin: 0;
}

.facts > div,
.summary-list > div,
.detail-list > div {
  display: flex;
  padding-block: 14px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.facts dt,
.summary-list dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.facts dd,
.summary-list dd,
.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.check-list {
  display: grid;
  margin-top: 24px;
  gap: 12px;
}

.check-list li::before {
  border-color: var(--green);
}

.booking-total {
  position: sticky;
  top: 24px;
}

.summary-list {
  margin-bottom: 24px;
}

.summary-list > div {
  display: grid;
  gap: 4px;
}

.summary-list dd {
  text-align: left;
}

.secure-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.step-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 14px;
}

.step-heading.compact {
  margin-top: 36px;
}

.step-heading > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.step-heading p,
.step-heading h2 {
  margin: 0;
}

.step-heading p {
  color: var(--muted);
  font-size: 0.75rem;
}

.step-heading h2 {
  font-size: 1.25rem;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9c8c2;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--green);
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 650;
}

.form-alert {
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #8b1e17;
  background: #feeceb;
  border: 1px solid #f7b8b3;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
}

.consent {
  display: flex;
  margin-bottom: 6px;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.result-page {
  max-width: 820px;
  min-height: 620px;
  padding-block: 96px;
  text-align: center;
}

.result-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 2rem;
}

.result-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.result-page .lead {
  margin-inline: auto;
  color: var(--muted);
}

.result-card {
  display: grid;
  padding: 24px;
  margin-block: 32px;
  grid-template-columns: 2fr 1.4fr 1fr;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.result-card > div {
  display: grid;
  padding-inline: 20px;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.result-card > div:last-child {
  border-right: 0;
}

.result-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.centered {
  justify-content: center;
}

.login-page {
  display: grid;
  min-height: 690px;
  padding-block: 72px;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-card);
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.login-card > p {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 650;
}

.site-footer {
  padding-block: 56px;
  color: #cfe0da;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid p,
.footer-grid strong {
  margin: 0;
}

.footer-grid p:not(.logo),
.footer-grid a,
.footer-grid span {
  color: #9db7ad;
  font-size: 0.875rem;
}

/* Staff workspace */

.staff-body {
  color: #e8f1ee;
  background: var(--ink);
}

.staff-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 224px 1fr;
}

.staff-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  padding: 24px 16px 16px;
  flex-direction: column;
  background: #062622;
  border-right: 1px solid rgb(142 182 155 / 15%);
}

.staff-sidebar .logo {
  padding: 0 12px 28px;
}

.staff-sidebar nav {
  display: grid;
  gap: 4px;
}

.staff-sidebar nav a,
.staff-sidebar nav > span {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  color: #b9d0c7;
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 600;
}

.staff-sidebar nav > span {
  opacity: 0.62;
}

.staff-sidebar nav a.active {
  color: var(--ink);
  background: var(--brand);
  font-weight: 750;
}

.staff-sidebar nav a span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  place-items: center;
  background: rgb(5 31 32 / 18%);
  border-radius: 11px;
  font-size: 0.75rem;
}

.staff-user {
  display: flex;
  padding: 16px 12px 0;
  margin-top: auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgb(142 182 155 / 15%);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--sage);
  border-radius: 50%;
  font-weight: 800;
}

.staff-user div {
  display: grid;
}

.staff-user strong {
  font-size: 0.8125rem;
}

.staff-user small {
  color: #8fb0a4;
}

.staff-main {
  min-width: 0;
}

.staff-header {
  display: flex;
  min-height: 72px;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
  background: #082d28;
  border-bottom: 1px solid rgb(142 182 155 / 15%);
}

.staff-header > div {
  display: grid;
}

.staff-kicker {
  color: #8fb0a4;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.staff-logout {
  min-height: 40px;
  padding: 0 14px;
  color: #cfe0da;
  background: transparent;
  border: 1px solid rgb(142 182 155 / 35%);
  cursor: pointer;
}

.staff-mobile-menu {
  display: none;
}

.staff-content {
  padding: 24px;
}

.staff-message {
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #c9f3d8;
  background: rgb(33 150 83 / 18%);
  border: 1px solid rgb(89 190 126 / 34%);
  border-radius: var(--radius-control);
}

.staff-title {
  display: flex;
  margin-bottom: 28px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.staff-title h1 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.staff-title p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #94afa5;
}

.staff-title-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-title-actions > a:not(.staff-button) {
  color: #bcd0c8;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-button {
  min-height: 40px;
  padding-inline: 16px;
}

.staff-button:disabled {
  color: #78928a;
  background: #24453e;
  border-color: #31564e;
  cursor: not-allowed;
  transform: none;
}

.kpi-grid {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-grid article {
  display: grid;
  min-height: 138px;
  padding: 20px;
  background: var(--dark-surface);
  border: 1px solid rgb(142 182 155 / 14%);
  border-radius: var(--radius-card);
}

.kpi-grid span,
.kpi-grid small {
  color: #9bb4aa;
  font-size: 0.75rem;
}

.kpi-grid strong {
  align-self: end;
  color: #fff;
  font-size: 2rem;
}

.staff-panel {
  overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid rgb(142 182 155 / 14%);
  border-radius: var(--radius-card);
}

.content-panel {
  overflow: visible;
}

.staff-search {
  display: flex;
  width: min(520px, 100%);
  gap: 8px;
}

.staff-search input,
.staff-search button,
.staff-editor input,
.staff-editor select,
.staff-editor textarea {
  min-height: 44px;
  color: #e8f1ee;
  background: #0b2b27;
  border: 1px solid rgb(142 182 155 / 28%);
}

.staff-search input {
  width: 100%;
  padding: 0 14px;
}

.staff-search button,
.content-actions button {
  padding: 0 14px;
  color: var(--ink);
  background: var(--brand);
  border: 1px solid var(--brand);
  cursor: pointer;
  font-weight: 750;
}

.content-count {
  color: #8fb0a4;
  font-size: 0.8rem;
}

.content-list {
  display: grid;
}

.content-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.content-pagination a {
  color: var(--brand);
  font-weight: 700;
}

.content-row {
  display: grid;
  min-height: 92px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid rgb(142 182 155 / 12%);
  grid-template-columns: 64px minmax(220px, 1fr) auto auto;
  gap: 16px;
}

.content-row:last-child {
  border-bottom: 0;
}

.content-thumb {
  display: grid;
  width: 64px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  color: var(--brand);
  background: #0b2b27;
  border-radius: 8px;
  font-weight: 850;
}

.content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-main {
  display: grid;
  min-width: 0;
}

.content-main strong {
  overflow: hidden;
  color: #edf6f2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-main small {
  overflow: hidden;
  color: #8fb0a4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-metrics {
  display: flex;
  margin-top: 7px;
  flex-wrap: wrap;
  gap: 6px;
}

.content-metrics span {
  padding: 4px 8px;
  color: #c8dbd4;
  background: rgb(255 255 255 / 7%);
  border-radius: 7px;
  font-size: 0.72rem;
}

.content-metrics b {
  color: #fff;
}

.seo-row {
  grid-template-columns: 64px minmax(260px, 1fr) 160px auto auto;
}

.seo-robots {
  color: #c7d8d2;
  font-size: 0.76rem;
}

.seo-groups,
.analytics-periods {
  display: flex;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-groups a,
.analytics-periods a {
  display: inline-flex;
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
  color: #d8e7e2;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  font-weight: 750;
}

.seo-groups a span {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  color: #163832;
  background: #fff;
  border-radius: 20px;
  font-size: 0.72rem;
}

.seo-groups a.active,
.analytics-periods a.active {
  color: #102e29;
  background: #f5faf7;
}

.analytics-title {
  align-items: flex-end;
}

.analytics-title .analytics-periods {
  margin: 0;
}

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

.analytics-summary article {
  display: grid;
  min-height: 150px;
  padding: 18px;
  align-content: space-between;
  color: #163832;
  background: #f5faf7;
  border: 1px solid #d7e7df;
  border-radius: 14px;
}

.analytics-summary span {
  color: #5d766d;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.analytics-summary strong {
  color: #153f36;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.analytics-summary small {
  color: #607970;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.analytics-table td:first-child {
  min-width: 260px;
}

.analytics-table td strong,
.analytics-table td small {
  display: block;
}

.analytics-table td small {
  margin-top: 4px;
  color: #86a59a;
}

.analytics-days {
  display: grid;
}

.analytics-days article {
  display: grid;
  padding: 14px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  grid-template-columns: 86px 44px minmax(0, 1fr);
  gap: 10px;
}

.analytics-days time,
.analytics-days span {
  color: #9bb5ac;
  font-size: 0.78rem;
}

.analytics-days strong {
  color: #fff;
}

.publish-state {
  padding: 6px 10px;
  color: #a8bcb5;
  background: rgb(91 108 102 / 22%);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.publish-state.active {
  color: #a8e5bd;
  background: rgb(33 150 83 / 18%);
}

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

.content-actions a,
.content-actions button {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  align-items: center;
  border-radius: 7px;
  font-size: 0.75rem;
}

.content-actions a {
  color: #d7e7e1;
  border: 1px solid rgb(142 182 155 / 28%);
}

.staff-editor {
  display: grid;
  gap: 16px;
}

.editor-panel {
  overflow: visible;
}

.editor-fields {
  display: grid;
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.editor-field:has(textarea),
.editor-field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

.editor-field label {
  color: #bcd0c8;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-editor input:not([type="checkbox"]),
.staff-editor select,
.staff-editor textarea {
  width: 100%;
  padding: 10px 12px;
}

.staff-editor textarea {
  min-height: 120px;
  resize: vertical;
}

.staff-editor input[type="file"] {
  padding: 8px;
}

.checkbox-field {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
}

.checkbox-field label {
  order: 2;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.field-error {
  color: #ffb4ad;
  font-size: 0.75rem;
}

.editor-blocks {
  display: grid;
  padding: 20px;
  gap: 16px;
}

.editor-blocks fieldset {
  display: grid;
  padding: 18px;
  border: 1px solid rgb(142 182 155 / 18%);
  border-radius: var(--radius-control);
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.editor-blocks legend {
  padding-inline: 8px;
  color: var(--brand);
  font-weight: 800;
}

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

.editor-actions > a {
  color: #a9beb6;
}

.panel-head {
  display: flex;
  min-height: 72px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgb(142 182 155 / 14%);
}

.panel-head h2,
.panel-head p {
  margin: 0;
}

.panel-head h2 {
  font-size: 1.125rem;
}

.panel-head p {
  color: #8fb0a4;
  font-size: 0.75rem;
}

.filter-row {
  display: flex;
  gap: 4px;
}

.filter {
  min-height: 36px;
  padding: 9px 12px;
  color: #9bb4aa;
  border-radius: 6px;
  font-size: 0.75rem;
}

.filter.active {
  color: var(--ink);
  background: var(--mint);
  font-weight: 700;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid rgb(142 182 155 / 12%);
}

th {
  color: #86a59a;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #d8e5e0;
}

tbody tr {
  transition: background-color 180ms ease;
}

tbody tr:hover {
  background: rgb(218 241 222 / 4%);
}

td small {
  display: block;
  margin-top: 3px;
  color: #86a59a;
}

.status {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  color: #d8e5e0;
  background: rgb(59 92 81 / 28%);
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: currentcolor;
  border-radius: 50%;
  content: "";
}

.status-new {
  color: #b9d8ff;
  background: rgb(53 123 208 / 20%);
}

.status-contacted {
  color: #ffe3a6;
  background: rgb(251 185 49 / 18%);
}

.status-confirmed {
  color: #a8e5bd;
  background: rgb(33 150 83 / 18%);
}

.result-card .status {
  width: max-content;
  color: #245d91;
}

.row-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand);
  border: 1px solid rgb(248 143 34 / 30%);
  border-radius: var(--radius-control);
  font-size: 1.125rem;
}

.empty-state {
  padding: 48px;
  color: #8fb0a4;
  text-align: center;
}

.staff-breadcrumbs {
  display: flex;
  margin-bottom: 20px;
  gap: 8px;
  color: #8fb0a4;
  font-size: 0.75rem;
}

.staff-breadcrumbs a {
  color: #cfe0da;
}

.detail-title {
  align-items: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(190px, 2fr) minmax(210px, 2.2fr) minmax(390px, 4fr) minmax(220px, 2.3fr);
  align-items: start;
  gap: 16px;
}

.detail-column {
  display: grid;
  gap: 16px;
}

.compact-panel .panel-head {
  min-height: 58px;
}

.detail-list {
  padding: 6px 20px 16px;
}

.detail-list > div {
  display: grid;
  gap: 3px;
  border-color: rgb(142 182 155 / 12%);
}

.detail-list dt {
  color: #86a59a;
  font-size: 0.75rem;
}

.detail-list dd {
  color: #e8f1ee;
  text-align: left;
  font-size: 0.875rem;
}

.action-preview {
  display: flex;
  padding: 20px;
  margin: 8px 20px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0e302b;
  border: 1px solid rgb(142 182 155 / 14%);
  border-radius: var(--radius-control);
}

.action-preview div {
  display: grid;
}

.action-preview span {
  color: #86a59a;
  font-size: 0.75rem;
}

.action-preview strong {
  font-size: 0.875rem;
}

.status-flow {
  position: relative;
  display: grid;
  padding: 18px 16px 8px;
  margin: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.status-flow::before {
  position: absolute;
  top: 33px;
  right: 44px;
  left: 44px;
  height: 1px;
  background: #42665f;
  content: "";
}

.status-flow li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.status-flow span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #8da49c;
  background: var(--dark-surface);
  border: 1px solid #52736b;
  border-radius: 50%;
  font-size: 0.6875rem;
}

.status-flow small {
  color: #8da49c;
  font-size: 0.625rem;
}

.status-flow .done span,
.status-flow .current span {
  color: var(--ink);
  background: var(--brand);
  border-color: var(--brand);
}

.status-flow .current small {
  color: #fff;
}

.assigned-preview {
  display: grid;
  padding: 0 20px 20px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assigned-preview > div {
  display: flex;
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  align-items: center;
  gap: 9px;
  background: #0e302b;
  border: 1px solid rgb(142 182 155 / 14%);
  border-radius: 6px;
}

.assigned-preview p,
.assigned-preview small,
.assigned-preview strong {
  display: block;
  margin: 0;
}

.assigned-preview small {
  color: #86a59a;
  font-size: 0.6875rem;
}

.assigned-preview strong {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
}

.timeline {
  padding: 20px 20px 24px 38px;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  padding: 0 0 28px 12px;
  border-left: 1px solid #37685e;
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  position: absolute;
  top: 3px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
  content: "";
}

.timeline span,
.timeline small {
  color: #86a59a;
  font-size: 0.75rem;
}

.timeline strong {
  margin-block: 3px;
  font-size: 0.875rem;
}

.timeline .muted::before {
  background: #57766e;
}

.staff-dashboard-title {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.staff-dashboard-title h1 {
  margin: 0;
  font-size: 1.5rem;
}

.staff-dashboard-title .eyebrow {
  margin-bottom: 4px;
}

.concept-kpi article {
  min-height: 112px;
}

.concept-kpi strong {
  font-size: 1.65rem;
}

.dashboard-board {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.dashboard-schedule,
.recent-orders {
  min-width: 0;
}

.request-list {
  display: grid;
}

.request-list a {
  display: grid;
  min-height: 86px;
  padding: 14px 16px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #dce8e4;
  border-bottom: 1px solid rgb(142 182 155 / 12%);
}

.request-list a:last-child {
  border-bottom: 0;
}

.request-list .avatar {
  width: 34px;
  height: 34px;
}

.request-list div {
  display: grid;
  min-width: 0;
}

.request-list strong,
.request-list small,
.request-list b,
.request-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-list strong {
  font-size: 0.75rem;
}

.request-list small,
.request-list b {
  color: #8fa9a0;
  font-size: 0.6875rem;
  font-weight: 400;
}

.request-list em {
  padding: 5px 8px;
  color: #bce2c8;
  background: rgb(64 150 94 / 20%);
  border-radius: 4px;
  font-size: 0.625rem;
  font-style: normal;
}

.warehouse-panel ul {
  padding: 4px 16px 12px;
  margin: 0;
  list-style: none;
}

.warehouse-panel li {
  display: grid;
  min-height: 68px;
  padding: 10px 0;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgb(142 182 155 / 12%);
}

.warehouse-panel li:last-child {
  border-bottom: 0;
}

.warehouse-panel li > span,
.warehouse-panel li > b {
  color: var(--brand);
}

.warehouse-panel li > div {
  display: grid;
}

.warehouse-panel strong,
.warehouse-panel small,
.warehouse-panel b {
  font-size: 0.6875rem;
}

.warehouse-panel small {
  color: #8fa9a0;
}

.warehouse-panel b {
  white-space: nowrap;
}

.recent-orders table {
  font-size: 0.75rem;
}

/* Light work surface keeps the dark green navigation as an accent. */

.staff-body,
.staff-main {
  color: var(--text);
  background: #eef3ef;
}

.staff-header {
  color: var(--ink);
  background: #fff;
  border-bottom-color: #d9e3dd;
}

.staff-kicker,
.staff-title p:last-child,
.staff-dashboard-title p,
.content-count,
.content-main small,
.panel-head p,
td small,
.detail-list dt,
.timeline span,
.timeline small,
.request-list small,
.request-list b,
.warehouse-panel small {
  color: #66766f;
}

.staff-logout {
  color: var(--green);
  border-color: #b8cac1;
}

.staff-title h1,
.staff-dashboard-title h1,
.panel-head h2,
.content-main strong,
td,
.detail-list dd,
.request-list a,
.action-preview strong,
.assigned-preview strong,
.timeline strong,
.warehouse-panel strong,
.warehouse-panel b {
  color: var(--text);
}

.content-metrics span {
  color: #52645c;
  background: #eef3ef;
}

.content-metrics b {
  color: var(--ink);
}

.staff-title-actions > a:not(.staff-button),
.staff-breadcrumbs a,
.editor-actions > a {
  color: var(--green);
}

.kpi-grid article,
.staff-panel {
  background: #fff;
  border-color: #d9e3dd;
  box-shadow: 0 8px 24px rgb(5 31 32 / 6%);
}

.kpi-grid strong {
  color: var(--ink);
}

.kpi-grid span,
.kpi-grid small,
th,
.empty-state {
  color: #687a72;
}

.panel-head,
.content-row,
th,
td,
.request-list a,
.warehouse-panel li {
  border-color: #e1e8e4;
}

tbody tr:hover {
  background: #f3f7f4;
}

.staff-search input,
.staff-editor input,
.staff-editor select,
.staff-editor textarea {
  color: var(--text);
  background: #f8faf8;
  border-color: #cbd9d1;
}

.content-actions a {
  color: var(--green);
  border-color: #b7cac0;
}

.editor-field label {
  color: #52645c;
}

.editor-blocks fieldset {
  background: #f8faf8;
  border-color: #d9e3dd;
}

.action-preview,
.assigned-preview > div {
  background: #f4f7f5;
  border-color: #d9e3dd;
}

.status-flow span {
  background: #fff;
}

.request-list em {
  color: #287644;
  background: #e3f3e8;
}

.staff-body .status-new {
  color: #245d91;
  background: #e2effc;
}

.staff-body .status-contacted {
  color: #7b5800;
  background: #fff0c7;
}

.staff-body .status-confirmed,
.staff-body .publish-state.active {
  color: #287644;
  background: #e3f3e8;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .phone {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid {
    min-height: 540px;
    grid-template-columns: 3fr 2fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-grid {
    grid-template-columns: 4fr 6fr;
  }

  .booking-total {
    position: static;
    grid-column: 1 / -1;
  }

  .summary-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr 2fr;
  }

  .status-panel,
  .audit-panel {
    grid-column: 1 / -1;
  }

  .dashboard-board {
    grid-template-columns: 1fr;
  }

  .analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 640px);
  }

  .site-header,
  .header-inner {
    min-height: 60px;
  }

  .header-actions > .button {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-block: 56px 32px;
  }

  .hero-art {
    height: 210px;
    margin-bottom: 32px;
  }

  .hero .button-row {
    display: grid;
  }

  .hero .button {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid div {
    padding: 18px 10px;
  }

  .trust-grid div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .section {
    padding-block: 64px;
  }

  .section-heading,
  .service-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .process {
    gap: 24px;
  }

  .booking-head {
    padding-block: 28px;
  }

  .breadcrumbs {
    margin-bottom: 20px;
  }

  .booking-grid {
    padding-block: 24px 64px;
    grid-template-columns: 1fr;
  }

  .service-summary,
  .booking-form,
  .booking-total {
    padding: 18px;
  }

  .booking-total {
    position: static;
    box-shadow: 0 -8px 30px rgb(5 31 32 / 16%);
  }

  .booking-total .summary-list {
    display: block;
  }

  .service-art.large {
    min-height: 180px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .result-page {
    min-height: 560px;
    padding-block: 64px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-card > div {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .result-card > div:last-child {
    border-bottom: 0;
  }

  .result-page .button-row {
    display: grid;
  }

  .login-card {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .staff-layout {
    grid-template-columns: 1fr;
  }

  .staff-sidebar {
    display: none;
  }

  .staff-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .staff-mobile-menu {
    display: block;
    position: relative;
  }

  .staff-mobile-menu summary {
    min-height: 40px;
    padding: 9px 12px;
    list-style: none;
    color: var(--green);
    background: #fff;
    border: 1px solid #b8cac1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
  }

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

  .staff-mobile-menu nav {
    position: absolute;
    z-index: 10;
    top: 46px;
    left: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    background: var(--dark-surface);
    border: 1px solid rgb(142 182 155 / 20%);
    border-radius: var(--radius-control);
  }

  .staff-mobile-menu nav a,
  .staff-mobile-menu nav span {
    min-height: 40px;
    padding: 9px 10px;
    color: #cfe0da;
  }

  .staff-header > div {
    display: none;
  }

  .staff-content {
    padding: 20px 16px 40px;
  }

  .staff-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-dashboard-title {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-dashboard-title .staff-button {
    width: 100%;
  }

  .staff-title .staff-button {
    width: 100%;
  }

  .staff-title-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .content-row {
    grid-template-columns: 54px 1fr;
  }

  .content-thumb {
    width: 54px;
    height: 54px;
  }

  .publish-state,
  .content-actions,
  .seo-robots {
    grid-column: 2;
  }

  .content-actions {
    flex-wrap: wrap;
  }

  .analytics-summary {
    grid-template-columns: 1fr;
  }

  .analytics-title .analytics-periods {
    width: 100%;
  }

  .analytics-periods a {
    flex: 1;
    justify-content: center;
  }

  .analytics-days article {
    grid-template-columns: 80px 36px minmax(0, 1fr);
  }

  .editor-fields,
  .editor-blocks fieldset {
    grid-template-columns: 1fr;
  }

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

  .kpi-grid article {
    min-height: 120px;
    padding: 16px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row {
    width: 100%;
    overflow-x: auto;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    position: relative;
    padding: 14px 58px 14px 14px;
    border-bottom: 1px solid rgb(142 182 155 / 14%);
  }

  td {
    display: grid;
    padding: 6px 0;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    border: 0;
  }

  td::before {
    color: #86a59a;
    content: attr(data-label);
    font-size: 0.6875rem;
    text-transform: uppercase;
  }

  td:last-child {
    position: absolute;
    top: 14px;
    right: 12px;
    display: block;
  }

  td:last-child::before {
    display: none;
  }

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

  .dashboard-board {
    grid-template-columns: 1fr;
  }

  .dashboard-schedule table,
  .recent-orders table {
    min-width: 760px;
  }

  .audit-panel {
    grid-column: auto;
  }

  .action-preview {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .trust-grid span {
    font-size: 0.75rem;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Staff content previews and client analytics. */
.staff-user div {
  min-width: 0;
}

.staff-user strong,
.staff-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-user strong {
  color: #f4faf7;
}

.staff-user small {
  color: #b8cec5;
}

.content-row {
  grid-template-columns: 84px minmax(220px, 1fr) auto auto;
}

.content-thumb {
  width: 84px;
  height: 64px;
}

.content-image-preview {
  display: grid;
  padding: 20px 20px 0;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.content-image-preview img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  background: #edf2ef;
  border: 1px solid #d4dfd9;
  border-radius: 10px;
}

.content-image-preview figcaption {
  color: #667a71;
  font-size: 0.8rem;
}

.content-image-preview.compact {
  padding: 0;
  grid-column: 1 / -1;
  grid-template-columns: 120px 1fr;
}

.content-image-preview.compact img {
  width: 120px;
  height: 80px;
}

.staff-title-row,
.client-profile-head {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.staff-title-row h1,
.client-profile-head h1 {
  margin: 3px 0 5px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  overflow-wrap: anywhere;
}

.staff-title-row p,
.client-profile-head p {
  margin: 0;
  color: #687a72;
  overflow-wrap: anywhere;
}

.client-profile-head {
  padding: 22px;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid #d9e3dd;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(5 31 32 / 6%);
}

.client-profile-head > div {
  min-width: 0;
  flex: 1;
}

.client-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  color: #0d352f;
  background: var(--brand);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 850;
}

.client-tags {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 7px;
}

.client-tags span {
  padding: 6px 9px;
  color: #65766f;
  background: #eef3ef;
  border-radius: 20px;
  font-size: 0.72rem;
}

.client-tags span.active {
  color: #247244;
  background: #e1f3e7;
}

.staff-danger {
  min-height: 40px;
  padding: 0 14px;
  color: #9f2f29;
  background: #fff5f4;
  border: 1px solid #e5b7b3;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.staff-roles form {
  display: grid;
  gap: 16px;
}

.staff-role-options ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.staff-role-options label {
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  color: #24483f;
  background: #f2f6f3;
  border: 1px solid #d7e2dc;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.staff-role-options input {
  accent-color: var(--brand);
}

.client-kpi-grid {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-kpi-grid article {
  display: grid;
  min-height: 136px;
  padding: 18px;
  align-content: space-between;
  background: #fff;
  border: 1px solid #d9e3dd;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(5 31 32 / 6%);
}

.client-kpi-grid span,
.client-kpi-grid small {
  color: #687a72;
  font-size: 0.75rem;
}

.client-kpi-grid span {
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.client-kpi-grid strong {
  color: #103b33;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.client-analytics-grid {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.client-panel {
  margin-bottom: 18px;
}

.client-chart {
  display: block;
  width: 100%;
  height: 260px;
  padding: 18px;
}

.client-chart line {
  stroke: #cbd9d1;
  stroke-width: 1;
}

.client-chart rect {
  fill: var(--brand);
}

.client-chart text {
  fill: #71847b;
  font-size: 7px;
}

.client-top-pages {
  display: grid;
}

.client-top-pages > div {
  display: grid;
  padding: 13px 18px;
  gap: 3px;
  border-bottom: 1px solid #e1e8e4;
}

.client-top-pages > div:last-child {
  border-bottom: 0;
}

.client-top-pages strong {
  overflow: hidden;
  color: #193c35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-top-pages span,
.client-empty {
  color: #71847b;
  font-size: 0.75rem;
}

.client-empty {
  padding: 18px;
}

.staff-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.staff-table th,
.staff-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.staff-table td strong {
  color: #173b34;
}

.staff-table a {
  color: var(--green);
}

.staff-table a small {
  display: block;
}

.staff-pagination {
  display: flex;
  padding: 16px;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .client-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .content-thumb {
    width: 54px;
    height: 54px;
  }

  .publish-state,
  .content-actions,
  .seo-robots {
    grid-column: 2;
  }

  .content-image-preview {
    grid-template-columns: 1fr;
  }

  .content-image-preview img {
    width: 100%;
  }

  .client-profile-head,
  .staff-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .client-profile-head form {
    width: 100%;
  }

  .client-profile-head .staff-danger {
    width: 100%;
  }

  .client-kpi-grid {
    grid-template-columns: 1fr;
  }

  .client-chart {
    height: 210px;
    padding: 10px;
  }
}

/* Structured content editor */

.editor-section {
  overflow: hidden;
}

.editor-section > summary {
  display: flex;
  min-height: 76px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.editor-section > summary::-webkit-details-marker {
  display: none;
}

.editor-section > summary span {
  display: grid;
  gap: 4px;
}

.editor-section > summary strong {
  font-size: 1.05rem;
}

.editor-section > summary small {
  color: #687a72;
}

.editor-section > summary i {
  width: 11px;
  height: 11px;
  border-right: 2px solid #71847b;
  border-bottom: 2px solid #71847b;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.editor-section:not([open]) > summary i {
  transform: rotate(-45deg);
}

.editor-section[open] > summary {
  border-bottom: 1px solid #e1e8e4;
}

.editor-section[open] > :not(summary) {
  animation: editor-section-in 180ms ease-out;
}

@keyframes editor-section-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.field-description,
.field-content,
.field-excerpt,
.field-seo-description,
.field-seo-content,
.field-seo-content_heading,
.image-upload-field {
  grid-column: 1 / -1;
}

.image-upload-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1.35fr);
  align-items: stretch;
  gap: 18px;
}

.image-upload-layout > div {
  display: grid;
  align-content: center;
  gap: 8px;
}

.editor-image-preview {
  display: grid;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  align-content: end;
  background: #eef3ef;
  border: 1px dashed #b8c9c0;
  border-radius: 12px;
}

.editor-image-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.editor-image-preview figcaption {
  padding: 10px 12px;
  color: #687a72;
  font-size: 0.75rem;
}

.rich-toolbar {
  display: flex;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-toolbar button {
  min-height: 36px;
  padding: 0 11px;
  color: #315b50;
  background: #eef4f0;
  border: 1px solid #cddbd4;
  border-radius: 7px;
  cursor: pointer;
}

.rich-toolbar button:hover,
.rich-toolbar button:focus-visible {
  color: var(--ink);
  background: #e0ece5;
  border-color: #92afa1;
}

.field-content textarea {
  min-height: 360px;
}

.seo-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
}

.seo-editor-layout > .editor-fields {
  grid-template-columns: 1fr;
}

.search-preview {
  display: grid;
  padding: 22px;
  margin: 20px 20px 20px 0;
  gap: 6px;
  background: #fff;
  border: 1px solid #d9e3dd;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgb(5 31 32 / 7%);
}

.search-preview > span {
  margin-bottom: 10px;
  color: #687a72;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-preview > small {
  color: #287244;
  overflow-wrap: anywhere;
}

.search-preview > strong {
  color: #2755a5;
  font-size: 1.15rem;
  line-height: 1.25;
}

.search-preview > p {
  margin: 0;
  color: #3f4d47;
  line-height: 1.5;
}

.search-preview > em {
  margin-top: 10px;
  color: #7a8b84;
  font-size: 0.7rem;
}

.settings-warning {
  padding: 18px 20px;
  color: #6d5208;
  background: #fff9e7;
  border-color: #eadba9;
}

.settings-warning p {
  margin: 5px 0 0;
}

.settings-switches {
  display: grid;
  padding: 18px 20px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-switch {
  display: flex;
  min-height: 86px;
  padding: 16px;
  align-items: flex-start;
  gap: 12px;
  background: #f8faf8;
  border: 1px solid #d9e3dd;
  border-radius: 10px;
  cursor: pointer;
}

.settings-switch:hover {
  border-color: #9eb7aa;
  transform: translateY(-1px);
}

.settings-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  background: #c8d4cf;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(5 48 42 / 10%);
  transition: background 160ms ease;
}

.settings-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(5 48 42 / 22%);
  content: "";
  transition: transform 160ms ease;
}

.settings-switch input:checked + .settings-toggle {
  background: var(--brand);
}

.settings-switch input:checked + .settings-toggle::after {
  transform: translateX(20px);
}

.settings-switch input:focus-visible + .settings-toggle {
  outline: 3px solid rgb(234 97 19 / 25%);
  outline-offset: 3px;
}

.settings-switch span {
  display: grid;
  gap: 5px;
}

.settings-switch strong {
  color: var(--ink);
}

.settings-switch small {
  color: #687a72;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .seo-editor-layout {
    grid-template-columns: 1fr;
  }

  .search-preview {
    margin: 0 20px 20px;
  }
}

@media (max-width: 620px) {
  .editor-section > summary {
    min-height: 68px;
    padding: 14px 16px;
  }

  .editor-fields,
  .editor-blocks {
    padding: 16px;
  }

  .image-upload-layout,
  .settings-switches {
    grid-template-columns: 1fr;
  }

  .field-content textarea {
    min-height: 280px;
  }

  .search-preview {
    margin: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-section[open] > :not(summary) {
    animation: none;
  }

  .settings-switch,
  .editor-section > summary i {
    transition: none;
  }
}
