:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #66736e;
  --line: #d9e1dd;
  --panel: #ffffff;
  --surface: #f5f7f4;
  --teal: #0d7c66;
  --teal-dark: #07594a;
  --coral: #d95d39;
  --gold: #c99721;
  --blue: #2f5f9f;
  --soft-teal: #e4f4ef;
  --soft-coral: #fff0e9;
  --shadow: 0 8px 24px rgba(16, 34, 29, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
}

.promo-banner {
  position: relative;
  display: grid;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101a17;
  color: white;
}

.promo-banner.wide {
  min-height: 86px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.promo-banner div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(8, 16, 14, 0.08), rgba(8, 16, 14, 0.68));
}

.promo-banner strong {
  font-size: 20px;
}

.promo-banner span {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(245, 247, 244, 0.92);
  border-bottom: 1px solid rgba(217, 225, 221, 0.82);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  letter-spacing: 0;
}

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

.topnav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  background: #e9eeee;
}

.topnav a.active {
  color: var(--teal-dark);
  background: var(--soft-teal);
  font-weight: 800;
}

.hero-inline-link {
  width: fit-content;
  margin-top: 14px;
}

.login-menu {
  position: relative;
}

.login-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}

.login-button.active,
.login-button:hover {
  border-color: rgba(13, 124, 102, 0.34);
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.login-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.login-menu.open .login-popover {
  display: grid;
}

.login-popover a {
  justify-content: flex-start;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.booking-panel,
.visual-panel,
.results-section,
.cabinet-section,
.map-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: clamp(22px, 4vw, 36px);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.page-title {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field-block {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 0 13px;
  font-weight: 800;
}

.choice-pill.active {
  border-color: rgba(13, 124, 102, 0.42);
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.choice-pill:hover {
  border-color: rgba(13, 124, 102, 0.32);
  background: white;
}

.compact-choice-grid {
  gap: 6px;
}

.compact-choice-grid .choice-pill {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 48px;
}

textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.14);
}

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

.form-grid.single-end {
  align-items: end;
}

.primary-action,
.ghost-button,
.select-button,
.mini-action {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 26px rgba(13, 124, 102, 0.22);
}

.primary-action:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.primary-action:disabled {
  cursor: not-allowed;
  background: #aebbb6;
  box-shadow: none;
}

.icon-search {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.visual-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  isolation: isolate;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 18, 0) 44%, rgba(10, 20, 18, 0.76) 100%);
  z-index: 1;
}

.market-snapshot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.banner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.compact-banners {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
}

.cabinet-section .compact-banners[data-banner-group="crew"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-snapshot > div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.market-snapshot span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.market-snapshot strong {
  font-size: 22px;
}

.results-section,
.cabinet-section,
.map-section {
  margin-top: 18px;
  padding: clamp(16px, 2.6vw, 24px);
}

.address-notice {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  font-weight: 800;
}

.address-notice.success {
  border-color: rgba(13, 124, 102, 0.28);
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.address-suggestions {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 95, 159, 0.18);
  border-radius: 8px;
  background: #f5f9fb;
}

.address-suggestions strong {
  font-size: 13px;
}

.address-suggestions > div {
  display: grid;
  gap: 8px;
}

.address-suggestions button {
  min-height: 40px;
  border: 1px solid #d8e2e6;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  padding: 9px 11px;
  font-weight: 750;
}

.address-suggestions button:hover {
  border-color: var(--blue);
  background: #eef5fb;
}

.district-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, 96px);
  gap: 8px;
  min-height: 408px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(47, 95, 159, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 95, 159, 0.08) 1px, transparent 1px),
    #eef4f2;
  background-size: 90px 90px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.map-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.real-map {
  width: 100%;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ece9;
}

.fallback-map {
  margin-top: 12px;
}

.district-map::before {
  content: "";
  position: absolute;
  inset: 12px 11%;
  border: 2px solid rgba(47, 95, 159, 0.16);
  border-radius: 44% 56% 48% 52%;
  pointer-events: none;
}

.map-zone {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
}

.map-zone span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-zone:hover,
.map-zone.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.map-zone:hover span,
.map-zone.active span {
  color: rgba(255, 255, 255, 0.78);
}

.priority-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}

.priority-slot {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border: 1px dashed #b6c2bd;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfb;
}

.priority-slot span {
  display: grid;
  height: 100%;
  place-items: center;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.priority-slot strong {
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  background: #edf2ef;
  color: var(--ink);
}

.ghost-button:hover {
  background: #dde7e1;
}

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

.crew-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.crew-photo-strip {
  position: relative;
  height: 146px;
  overflow: hidden;
  border-radius: 8px;
  background: #dde7e1;
}

.crew-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-photo-strip .rating-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 247, 223, 0.95);
}

.crew-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.11);
}

.crew-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.crew-title {
  min-width: 0;
}

.crew-title h3 {
  font-size: 18px;
  line-height: 1.2;
}

.crew-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rating-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7df;
  color: #835f00;
  font-size: 14px;
  font-weight: 900;
}

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

.meta-item {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid #e7ece9;
}

.meta-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-item strong {
  font-size: 14px;
}

.crew-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.select-button {
  min-height: 42px;
  background: var(--ink);
  color: white;
}

.select-button:hover {
  background: #2d3b36;
}

.select-button.remove {
  background: var(--soft-coral);
  color: #9e3d22;
}

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

.button-row > * {
  flex: 1 1 130px;
}

.review-snippet {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.price-note {
  margin: -4px 0 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.submit-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.routing-hint {
  color: var(--muted);
  font-weight: 700;
}

.confirmation {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 124, 102, 0.28);
  border-radius: 8px;
  background: #edf8f4;
}

.confirmation.compact {
  margin-top: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

.confirmation h3 {
  margin-bottom: 8px;
}

.confirmation p {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.routing-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

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

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-panel,
.metric-card,
.profile-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: none;
}

.summary-panel,
.metric-card,
.profile-preview {
  padding: 18px;
}

.metric-card {
  display: grid;
  gap: 8px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 30px;
}

.pricing-rules {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(13, 124, 102, 0.2);
  border-radius: 8px;
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-weight: 750;
}

.pricing-rules strong {
  color: var(--ink);
}

.work-plan-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

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

.work-plan-row {
  grid-template-columns: minmax(170px, 1fr) 82px 82px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8eeeb;
  border-radius: 8px;
  background: white;
}

.work-plan-row span {
  color: var(--ink);
  font-size: 13px;
}

.work-plan-row input {
  min-height: 40px;
  padding: 0 9px;
}

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

.banner-admin-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.banner-admin-card img {
  width: 150px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
}

.banner-admin-card > div {
  display: grid;
  gap: 8px;
}

.banner-admin-card textarea {
  min-height: 72px;
}

.whatsapp-settings {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: #fbfcfb;
}

.provider-response {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7f4;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.whatsapp-route > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.whatsapp-route span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.whatsapp-route strong {
  overflow-wrap: anywhere;
}

.warning-route,
.warning-message {
  border-color: rgba(217, 93, 57, 0.42) !important;
  background: var(--soft-coral) !important;
}

.results-section.embedded {
  margin-top: 18px;
  box-shadow: none;
}

.cabinet-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.subscription-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: var(--soft-teal);
}

.summary-photo {
  width: 100%;
  height: 142px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.subscription-box span,
.subscription-box small {
  color: var(--muted);
  font-weight: 700;
}

.subscription-box strong {
  font-size: 24px;
}

.cabinet-tabs {
  display: grid;
  gap: 8px;
}

.tab-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: left;
  padding: 0 13px;
  font-weight: 800;
}

.tab-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.cabinet-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.tab-panel {
  display: none;
  padding: 18px;
}

.tab-panel.active {
  display: grid;
  gap: 16px;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft-coral);
  color: #9e3d22;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.muted {
  background: #edf2ef;
  color: var(--muted);
}

.status-pill.success {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.orders-list,
.schedule-list,
.prices-editor,
.profile-details {
  display: grid;
  gap: 12px;
}

.order-item,
.schedule-item,
.price-row,
.profile-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.order-item.accepted {
  border-color: rgba(13, 124, 102, 0.34);
  background: #f6fffb;
}

.order-head,
.schedule-item,
.profile-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.order-head {
  display: grid;
  gap: 10px;
}

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

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.order-head h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.order-head p,
.schedule-item p,
.profile-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mini-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--teal);
  color: white;
}

.mini-action.secondary {
  background: #edf2ef;
  color: var(--ink);
}

.mini-action.danger {
  background: var(--soft-coral);
  color: #9e3d22;
}

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

.order-details.roomy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-chip {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f3;
}

.detail-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-chip strong {
  font-size: 13px;
}

.price-row {
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
}

.price-row input {
  min-height: 42px;
  text-align: right;
}

.profile-row strong {
  word-break: break-word;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 14px;
}

.media-card,
.document-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.media-card {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
}

.media-card img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
}

.media-card p,
.document-card p,
.review-item p,
.application-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.document-card {
  align-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef6f2 100%);
}

.document-card.small {
  box-shadow: none;
}

.document-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-card strong {
  font-size: 22px;
}

.review-stack {
  display: grid;
  gap: 10px;
}

.review-item {
  padding: 12px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.service-list {
  display: grid;
  gap: 8px;
}

.service-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5f3;
  font-weight: 800;
}

.service-list.compact-list > div {
  font-size: 13px;
}

.review-form,
.inline-form {
  display: grid;
  gap: 12px;
}

.review-form {
  grid-template-columns: 1fr 160px;
}

.review-form .wide-field,
.review-form .primary-action {
  grid-column: 1 / -1;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) 180px auto;
  align-items: end;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #bac6c1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.empty-state.grid-span {
  grid-column: 1 / -1;
}

.empty-state h2 {
  color: var(--ink);
}

.empty-state p {
  max-width: 620px;
  margin: 8px auto 18px;
  color: var(--muted);
  line-height: 1.55;
}

.link-action {
  text-decoration: none;
}

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

.payment-summary > div {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: #f7faf8;
}

.payment-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-form {
  grid-template-columns: 150px minmax(0, 1fr) auto;
}

.bot-log {
  display: grid;
  gap: 10px;
}

.bot-log article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: #fbfcfb;
}

.bot-log span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bot-log p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.compact-panel {
  box-shadow: none;
}

.compact-empty {
  padding: 18px;
}

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

.district-cell,
.application-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.district-cell span {
  color: var(--muted);
  font-weight: 800;
}

.district-cell.full {
  border-color: rgba(13, 124, 102, 0.3);
  background: #f6fffb;
}

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

.admin-filter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-filter-heading label {
  width: min(360px, 100%);
}

.admin-filter-block {
  width: min(520px, 100%);
}

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

.crew-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.crew-control-card.suspended {
  background: #fff8f5;
  border-color: rgba(217, 93, 57, 0.22);
}

.crew-control-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.district-picker {
  position: relative;
  min-width: 0;
}

.district-picker summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.district-picker summary::-webkit-details-marker {
  display: none;
}

.district-picker summary::after {
  content: "Выбрать";
  color: var(--teal-dark);
  font-size: 12px;
  white-space: nowrap;
}

.district-picker[open] summary {
  border-color: rgba(13, 124, 102, 0.34);
  background: var(--soft-teal);
}

.district-picker .choice-grid {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 12;
  max-height: 260px;
  margin-top: 6px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-bot-log {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-editor {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

#employeesEditor {
  display: grid;
  gap: 10px;
}

.employee-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.employee-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
  background: white;
}

.employee-card h3 {
  font-size: 17px;
}

.employee-card > div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f1f5f3;
}

.employee-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-form {
  grid-template-columns: 160px 130px 130px 150px minmax(0, 1fr) auto;
  margin-top: 4px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 22px;
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.site-footer h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.site-footer p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

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

.support-form textarea,
.support-form .primary-action,
.support-form .link-action {
  grid-column: 1 / -1;
}

.support-form textarea {
  min-height: 96px;
}

.support-form .link-action {
  justify-content: center;
}

@media (max-width: 980px) {
  .workspace,
  .cabinet-layout,
  .customer-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel,
  .visual-panel img {
    min-height: 360px;
  }

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

  .metrics-grid,
  .banner-strip,
  .compact-banners,
  .site-footer,
  .district-grid,
  .employee-row,
  .crew-control-card,
  .admin-bot-log,
  .banner-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .priority-board .ghost-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    background: #f7f8f6;
  }

  .promo-banner {
    min-height: 104px;
  }

  .promo-banner div {
    padding: 14px;
  }

  .promo-banner strong {
    font-size: 17px;
  }

  .promo-banner span {
    font-size: 13px;
    line-height: 1.35;
  }

  .topbar {
    position: static;
    align-items: center;
    flex-direction: row;
    padding: 10px 12px;
  }

  .topnav {
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    min-width: 0;
  }

  .topnav a,
  .login-button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 14px;
    white-space: nowrap;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  main {
    width: min(100% - 16px, 1180px);
    padding-top: 12px;
  }

  .booking-panel,
  .results-section,
  .cabinet-section,
  .map-section {
    padding: 14px;
    border-radius: 8px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .page-title {
    font-size: 28px;
  }

  .lead,
  .routing-hint,
  .address-notice {
    font-size: 14px;
    line-height: 1.45;
  }

  .form-grid,
  .market-snapshot,
  .crew-grid,
  .priority-board,
  .order-details,
  .order-details.roomy,
  .price-row,
  .order-head,
  .schedule-item,
  .profile-row,
  .metrics-grid,
  .district-grid,
  .review-form,
  .inline-form,
  .calendar-form,
  .employee-row,
  .district-map,
  .payment-summary,
  .payment-form,
  .crew-control-card,
    .admin-row-actions,
    .admin-bot-log,
    .media-card,
    .banner-strip,
    .compact-banners,
    .cabinet-section .compact-banners[data-banner-group="crew"],
    .banner-admin-grid,
    .banner-admin-card,
    .support-form {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    display: none;
  }

  .workspace {
    gap: 12px;
  }

  .order-form {
    gap: 12px;
  }

  label {
    gap: 6px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
  }

  .primary-action,
  .mini-action,
  .ghost-button,
  .select-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .hero-inline-link {
    width: 100%;
  }

  .button-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .district-picker .choice-grid {
    position: static;
    max-height: none;
  }

  .promo-banner.wide {
    min-height: 118px;
  }

  .login-popover {
    left: 0;
    right: auto;
  }

  .banner-admin-card img {
    width: 100%;
  }

  .district-map {
    grid-template-rows: none;
    gap: 8px;
  }

  .map-zone {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 58px;
    padding: 10px;
  }

  .media-card img {
    width: 100%;
    height: 180px;
  }

  .submit-row,
  .panel-toolbar,
  .map-toolbar,
  .admin-filter-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .real-map {
    height: 320px;
  }

  .submit-row .primary-action {
    width: 100%;
  }

  .priority-slot {
    min-height: 64px;
  }

  .crew-card,
  .order-item,
  .application-card,
  .summary-panel {
    border-radius: 8px;
  }

  .crew-photo-strip img {
    height: 170px;
  }

  .cabinet-sidebar {
    position: static;
  }

  .cabinet-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-button {
    justify-content: center;
    min-height: 44px;
  }

  .site-footer {
    width: min(100% - 16px, 1180px);
    margin-bottom: 18px;
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    justify-content: stretch;
    width: 100%;
  }

  .topnav > a,
  .login-menu,
  .login-button {
    flex: 1;
  }

  .login-button {
    width: 100%;
  }

  .login-popover {
    left: auto;
    right: 0;
  }

  h1 {
    font-size: 27px;
  }
}
