:root {
  color-scheme: light;
  --bg: #eef4f7;
  --panel: #ffffff;
  --text: #14202d;
  --muted: #657284;
  --line: #d7e1ea;
  --navy: #111c28;
  --navy-soft: #1c2d3f;
  --blue: #1474b8;
  --cyan: #38b6d8;
  --green: #12805c;
  --orange: #ef5b2a;
  --amber: #b46b00;
  --shadow: 0 16px 36px rgba(17, 28, 40, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.is-cabinet-view .topbar {
  display: none;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 28, 40, 0.98);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: #b8c7d6;
  font-size: 13px;
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(56, 182, 216, 0.22);
}

.main-nav,
.lang {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a,
.tab-link {
  border: 0;
  background: transparent;
  color: #eef5fb;
  padding: 8px 0;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active,
.tab-link:hover,
.tab-link.is-active {
  color: #7dd8ef;
}

.lang {
  gap: 6px;
}

.lang-btn {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0 9px;
  background: transparent;
  color: #b8c7d6;
  font-weight: 700;
}

.lang-btn.is-active {
  border-color: var(--cyan);
  background: rgba(56, 182, 216, 0.14);
  color: #fff;
}

main {
  width: 100%;
}

.view { display: none; }
.view.is-active { display: block; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 466px);
  column-gap: 34px;
  row-gap: 10px;
  align-items: start;
  align-content: start;
  min-height: 500px;
  height: min(calc(100vw * 0.396), calc(100vh - 56px));
  max-height: 789px;
  padding: 30px max(22px, calc((100vw - 1180px) / 2)) 26px;
  overflow: visible;
  background-color: #101b27;
  background-image:
    linear-gradient(90deg, rgba(8, 15, 24, 0.02) 0%, rgba(8, 15, 24, 0) 58%, rgba(8, 15, 24, 0.08) 100%),
    url("/assets/doroga24-hero.png");
  background-position: center, center top;
  background-size: cover, 100% auto;
  background-repeat: no-repeat, no-repeat;
}

.hero:has(.more-fields.is-open) {
  height: min(calc(100vw * 0.396), calc(100vh - 56px));
  min-height: 500px;
  background-size: cover, 100% auto;
}

.hero:has(#requestForm.is-active .more-fields.is-open) {
  margin-bottom: 52px;
}

.hero:has(#driverTripForm.is-active .more-fields.is-open) {
  margin-bottom: 155px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 28, 40, 0), rgba(17, 28, 40, 0.05));
  pointer-events: none;
}

.hero-copy,
.request-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 600px;
  color: #fff;
  align-self: start;
  padding-top: 6px;
}

.hero-copy:empty {
  min-height: 1px;
}

.eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(125, 216, 239, 0.45);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(56, 182, 216, 0.12);
  color: #baf0fb;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 12px;
  max-width: 560px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 540px;
  margin: 0;
  color: #d2dde8;
  font-size: 18px;
  line-height: 1.55;
}

.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.route-chips button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.route-chips button:hover {
  border-color: rgba(125, 216, 239, 0.65);
  background: rgba(56, 182, 216, 0.18);
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
  max-width: 360px;
}

.hero-points span {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecf7fb;
  font-weight: 700;
  line-height: 1.35;
}

.request-panel {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  width: min(100%, 510px);
  padding: 18px 22px 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  align-self: start;
  justify-self: end;
}

.home-form-switch {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: min(100%, 510px);
  justify-self: end;
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 6px;
  background: rgba(17, 28, 40, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.home-form-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #d8e5ee;
  font-weight: 800;
}

.home-form-switch button.is-active {
  background: #fff;
  color: var(--text);
}

.home-request-form {
  grid-column: 2;
  align-self: start;
  display: none;
}

.home-request-form.is-active {
  display: block;
}

.driver-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr) minmax(0, 1.16fr);
  gap: 10px;
  align-items: start;
}

.driver-name-field {
  grid-column: 1 / 2;
}

.driver-phone-field {
  grid-column: 2 / 4;
}

.driver-messenger-row {
  grid-column: 3 / 4;
  align-self: start;
  display: grid;
  gap: 6px;
  margin-top: 0;
  white-space: nowrap;
}

.driver-messenger-row > span {
  color: #4c5b6c;
  font-size: 13px;
  font-weight: 700;
}

.driver-phone-field label,
.driver-email-field {
  margin-bottom: 0;
}

.driver-email-field {
  grid-column: 1 / 3;
  align-self: start;
}

.driver-messenger-row .messenger-options {
  justify-content: flex-start;
  max-width: none;
}

.full-line {
  grid-column: 1 / -1;
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.form-head h2 {
  margin: 0;
  font-size: 24px;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.route-fields {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.route-fields::before {
  display: none;
}

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

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

.grid.three {
  grid-template-columns: 1.05fr 0.7fr 1.16fr;
}

.contact-row {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.16fr;
  align-items: start;
  gap: 10px;
  margin-bottom: 11px;
}

.contact-email {
  grid-column: 1 / 3;
}

.messenger-field {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  margin-bottom: 10px;
  color: #526171;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.messenger-field > span {
  white-space: nowrap;
}

.messenger-options {
  display: flex;
  gap: 10px;
  width: 100%;
}

.messenger-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  background: #fff;
  margin: 0;
  padding: 3px;
  cursor: pointer;
}

.messenger-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
}

.messenger-choice img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.messenger-choice:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 125, 181, 0.14);
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 9px;
  color: #526171;
  font-size: 13px;
  font-weight: 700;
}

label.is-required > span:first-child::after {
  content: " *";
  color: #ef4e2a;
}

.city-autocomplete {
  position: relative;
}

.city-autocomplete input {
  min-height: 54px;
  padding-top: 7px;
  padding-bottom: 20px;
}

.city-autocomplete.has-city-meta input {
  min-height: 54px;
}

.city-selected-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  color: #627180;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.city-selected-meta[hidden] {
  display: none;
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 45;
  max-height: 248px;
  overflow: auto;
  border: 1px solid #c8d3df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 28, 40, 0.2);
}

.city-suggestions[hidden] {
  display: none;
}

.city-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid #edf2f6;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.city-suggestion:last-child {
  border-bottom: 0;
}

.city-suggestion strong {
  font-size: 14px;
  line-height: 1.2;
}

.city-suggestion span {
  color: #627180;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.city-suggestion:hover,
.city-suggestion.is-active {
  background: #eaf6fc;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  min-height: 44px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.date-combo {
  position: relative;
  display: block;
}

.date-combo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #14202d;
  border-radius: 3px;
  transform: translateY(-50%);
  pointer-events: none;
}

.date-combo::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: 15px;
  width: 8px;
  height: 2px;
  background: #14202d;
  pointer-events: none;
  z-index: 1;
}

.date-combo input {
  padding-left: 10px;
  padding-right: 32px;
  font-size: 13px;
}

.date-picker {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 34px;
  height: 46px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  opacity: 1;
  cursor: pointer;
}

.date-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 266px;
  border: 1px solid #c8d3df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 28, 40, 0.22);
  color: var(--text);
}

.carrier-date-filter .date-calendar {
  left: auto;
  right: 0;
}

.date-calendar[hidden] {
  display: none;
}

.calendar-head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-head strong {
  text-align: center;
  font-size: 14px;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d8e3ec;
  border-radius: 6px;
  background: #f6fafc;
  color: var(--text);
  font-size: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  padding: 5px 0;
  color: #657284;
  text-align: center;
  font-size: 12px;
}

.calendar-day {
  display: grid;
  place-items: center;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.calendar-day:hover {
  background: #eaf6fc;
}

.calendar-day.is-muted {
  color: #a5b1bd;
}

.calendar-day.is-disabled,
.calendar-day:disabled {
  color: #c4ccd5;
  cursor: not-allowed;
  opacity: 0.55;
}

.calendar-day.is-disabled:hover,
.calendar-day:disabled:hover {
  background: transparent;
}

.calendar-day.is-selected {
  background: var(--blue);
  color: #fff;
}

textarea {
  resize: vertical;
}

.more-fields {
  margin: 4px 0 16px;
  border: 1px solid #bfd6e7;
  border-radius: 8px;
  background: #eff8fd;
  overflow: hidden;
}

.more-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 0 13px;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.more-toggle::after {
  content: "⌄";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dff0fa;
  color: #0d6da6;
  font-size: 18px;
  line-height: 1;
  transition: transform 280ms ease;
}

.more-fields.is-open .more-toggle::after {
  transform: rotate(180deg);
}

.more-fields.is-open .more-toggle {
  border-bottom: 1px solid #bfd6e7;
}

.more-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms ease, opacity 260ms ease;
}

.more-fields.is-open .more-body {
  max-height: 360px;
  opacity: 1;
}

.more-fields .grid {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.more-fields label {
  padding-left: 0;
  padding-right: 0;
}

.more-fields textarea {
  min-height: 46px;
  max-height: 74px;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--orange);
  color: white;
  font-weight: 800;
}

a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cabinet-submit-request {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}

.primary:hover {
  background: #df4c1e;
}

.secondary {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.secondary:hover {
  border-color: #9ec9dc;
  background: #eef8fc;
}

.primary.ghost {
  min-height: 38px;
  background: #eaf3fb;
  color: #0e4c7d;
}

.submit-request {
  width: 100%;
  font-size: 15px;
}

.form-note {
  margin: 10px 0 0;
  color: #596778;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}

.more-fields.is-open ~ .form-note {
  display: none;
}

.steps-section,
.below-hero,
.carrier-strip {
  max-width: 1180px;
  margin: 0 auto;
}

.steps-section {
  padding: 54px 22px 24px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head.small h2 {
  font-size: 26px;
}

.section-head.small p {
  font-size: 15px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.step-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e9f6fb;
  color: var(--blue);
  font-weight: 900;
}

.step-card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.below-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 22px 34px;
}

.live-panel {
  display: flex;
  flex-direction: column;
}

.live-panel .stack {
  flex: 1;
}

.live-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  border-radius: 7px;
  padding: 0 16px;
  background: #177db5;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23, 125, 181, 0.2);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.live-action-btn:hover {
  background: #0e638e;
  box-shadow: 0 12px 26px rgba(23, 125, 181, 0.25);
  transform: translateY(-1px);
}

.live-action-btn-alt {
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(239, 82, 45, 0.2);
}

.live-action-btn-alt:hover {
  background: #d94322;
  box-shadow: 0 12px 26px rgba(239, 82, 45, 0.25);
}

.passenger-cabinet {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.passenger-cabinet-view {
  min-height: calc(100vh - 64px);
  background: #edf4f8;
}

.auth-view {
  min-height: calc(100vh - 64px);
  padding: 44px 18px 70px;
  background:
    linear-gradient(90deg, rgba(9, 20, 32, 0.92), rgba(9, 20, 32, 0.58)),
    url("/assets/doroga24-hero.png");
  background-position: center;
  background-size: cover;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1fr);
  width: min(920px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.auth-info {
  padding: 34px;
  background: rgba(17, 28, 40, 0.94);
  color: #fff;
}

.auth-info > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border-radius: 6px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  font-weight: 900;
}

.auth-info h1 {
  margin: 0 0 14px;
  font-size: 34px;
}

.auth-info p {
  margin: 0 0 24px;
  color: #d1dce8;
  line-height: 1.55;
}

.auth-info ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.auth-card {
  padding: 28px;
  background: #fff;
}

.auth-tabs,
.cabinet-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 5px;
  background: #eaf1f6;
}

.cabinet-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 14px;
}

.carrier-header-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-tabs button,
.cabinet-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526171;
  font-weight: 900;
}

.auth-tabs button.is-active,
.cabinet-tabs button.is-active {
  background: var(--blue);
  color: #fff;
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form h2,
.profile-form h2 {
  margin: 0 0 4px;
  font-size: 25px;
}

.auth-form label {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}

.auth-form label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #263442;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  min-height: 46px;
  font-weight: 800;
}

.auth-form .primary,
.auth-form .secondary {
  width: 100%;
  min-height: 46px;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 92px;
}

.password-wrap button {
  position: absolute;
  top: 9px;
  right: 8px;
  min-height: 28px;
  border: 1px solid #d6e1ea;
  border-radius: 6px;
  padding: 0 9px;
  background: #f7fbfd;
  color: #0e6d95;
  font-size: 12px;
  font-weight: 900;
}

.link-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
}

.remember-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.remember-choice input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--blue);
}

.remember-choice span {
  margin: 0;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-message {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 800;
}

.auth-message:empty {
  display: none;
}

.auth-message span {
  color: var(--muted);
  font-weight: 700;
}

.cabinet-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.cabinet-lang {
  gap: 6px;
}

.cabinet-lang .lang-btn {
  min-height: 32px;
  padding: 0 9px;
  font-size: 13px;
}

.cabinet-user-menu {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 74px;
}

.cabinet-user-menu span {
  display: block;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b8c7d6;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
}

.cabinet-user-menu .secondary {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}

.carrier-header-tabs {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  width: auto;
  margin: 0 4px 0 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.carrier-header-tabs a,
.carrier-header-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dce8f2;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.carrier-header-tabs button.is-active {
  background: #fff;
  color: #142234;
}

.carrier-header-tabs .driver-publish-link {
  background: var(--orange);
  color: #fff;
  padding-inline: 14px;
}

.carrier-header-tabs .driver-publish-link:hover {
  background: #df4c1e;
}

.carrier-header-tabs .passenger-submit-link {
  background: var(--orange);
  color: #fff;
  padding-inline: 14px;
}

.carrier-header-tabs .passenger-submit-link:hover {
  background: #df4c1e;
}

.tab-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: #ef3f2d;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.tab-alert[hidden] {
  display: none;
}

.inline-alert-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 999px;
  background: #ef3f2d;
  box-shadow: 0 0 0 2px rgba(239, 63, 45, 0.14);
  vertical-align: -1px;
}

.table-alert {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0;
  background: #ef3f2d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(239, 63, 45, 0.1);
}

.request-count-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
}

.profile-panel {
  width: min(800px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px;
  gap: 9px 12px;
  max-width: 760px;
  align-items: end;
}

.profile-form + .profile-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-form h2 {
  margin: 0 0 2px;
  font-size: 24px;
  line-height: 1.15;
}

.profile-form label > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #526171;
  font-size: 13px;
  font-weight: 800;
}

.profile-form h2,
.profile-form .profile-messengers,
.profile-form .auth-note {
  grid-column: 1 / -1;
}

.profile-form .primary {
  grid-column: 1 / 2;
  justify-self: start;
  min-height: 38px;
  padding: 0 18px;
}

.profile-photo-field {
  grid-column: 3;
  grid-row: 2 / span 4;
  align-self: start;
  width: fit-content;
}

.password-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 760px;
}

.password-form .primary {
  grid-column: 1 / 2;
}

.profile-photo-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 104px;
  height: 104px;
  border: 2px dashed #b8d7e6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fbff, #eaf5fa);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.profile-photo-control:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(17, 106, 151, 0.14);
  transform: translateY(-1px);
}

.profile-photo-control img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
  background: #eaf5fa;
}

.profile-photo-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  color: #0f6e9a;
  text-align: center;
}

.profile-photo-placeholder strong {
  font-size: 12px;
  line-height: 1.15;
}

.profile-photo-placeholder small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.profile-photo-control.has-photo .profile-photo-placeholder {
  display: none;
}

.profile-photo-remove {
  margin-top: 6px;
  justify-self: start;
  width: 104px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.profile-camera-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
}

.contact-person {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid #e4edf4;
}

.contact-person strong {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-person span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #cbdde8;
  border-radius: 8px;
  padding: 0;
  background: #eef6fb;
  color: #7b96a8;
  overflow: hidden;
  flex: 0 0 auto;
}

button.person-avatar {
  cursor: zoom-in;
}

.person-avatar[data-open-profile-photo] {
  cursor: zoom-in;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-avatar .profile-camera-icon {
  width: 30px;
  height: 30px;
}

.person-avatar .profile-camera-icon::before {
  top: 4px;
  width: 11px;
  height: 11px;
}

.person-avatar .profile-camera-icon::after {
  bottom: 3px;
  width: 24px;
  height: 13px;
}

.profile-camera-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  background: currentColor;
  border-radius: 999px;
}

.profile-camera-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 32px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 18px 18px 7px 7px;
  background: currentColor;
}

.passenger-dashboard .carrier-dashboard-top {
  align-items: end;
}

.passenger-top-search {
  width: min(430px, 100%);
}

.passenger-top-search label span {
  color: #b8c7d6;
}

.passenger-dashboard .passenger-summary {
  margin: 14px 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.passenger-dashboard .passenger-summary div {
  min-height: 86px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 28, 40, 0.08);
}

.passenger-dashboard .passenger-workspace {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  min-height: 0;
}

.passenger-list-panel {
  overflow: hidden;
}

.passenger-list-panel .passenger-request-list {
  border-right: 0;
  background: #fff;
}

.passenger-request-detail {
  overflow: hidden;
}

.passenger-cabinet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: end;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(247, 252, 255, 0.98), rgba(232, 244, 250, 0.98)),
    radial-gradient(circle at 88% 20%, rgba(56, 182, 216, 0.18), transparent 34%);
}

.passenger-cabinet-head > div {
  min-width: 0;
}

.passenger-cabinet-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.passenger-cabinet-head h2 {
  margin: 0 0 7px;
  font-size: 27px;
}

.passenger-cabinet-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.passenger-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.passenger-search-form label {
  display: grid;
  gap: 6px;
}

.passenger-search-form label span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.passenger-search-form input {
  min-height: 44px;
}

.passenger-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.passenger-summary:empty {
  display: none;
}

.passenger-summary div {
  min-height: 72px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  padding: 13px 14px;
  background: #f7fbfd;
}

.passenger-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.passenger-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.passenger-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 0;
  min-height: 340px;
}

.passenger-request-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fbfdff;
}

.passenger-request-list h3 {
  margin: 0 0 4px;
  color: #526171;
  font-size: 13px;
  text-transform: uppercase;
}

.passenger-request-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  border: 1px solid #d7e2ea;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 18px rgba(17, 28, 40, 0.05);
}

.passenger-request-row.driver-trip-list-row {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.passenger-request-number-wrap {
  display: grid;
  gap: 3px;
  align-self: center;
}

.passenger-request-number-wrap small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.passenger-request-row:hover {
  border-color: #9fcde4;
  background: #f4fbff;
}

.passenger-request-row.is-selected {
  border-color: #62b6df;
  background: #e4f4fc;
  box-shadow: 0 0 0 2px rgba(98, 182, 223, 0.22);
}

.passenger-request-row.is-closed {
  border-color: #ffc7c0;
  background: #fff7f6;
}

.passenger-request-row.is-closed.is-selected {
  background: #ffe8e5;
  box-shadow: 0 0 0 2px rgba(239, 124, 115, 0.2);
}

.passenger-request-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e9f6fb;
  color: var(--blue);
  font-weight: 900;
}

.passenger-request-row strong,
.passenger-request-row small {
  display: block;
  min-width: 0;
}

.passenger-request-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passenger-request-row small {
  margin-top: 4px;
  color: var(--muted);
}

.passenger-request-detail {
  min-width: 0;
  background: #f4f9fc;
}

.passenger-detail-title {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(14, 120, 177, 0.94), rgba(17, 30, 47, 0.98)),
    radial-gradient(circle at 92% 12%, rgba(99, 202, 225, 0.34), transparent 36%);
  color: #fff;
}

.passenger-detail-title.is-closed {
  background:
    linear-gradient(135deg, rgba(147, 35, 28, 0.94), rgba(17, 30, 47, 0.98)),
    radial-gradient(circle at 92% 12%, rgba(255, 185, 176, 0.26), transparent 36%);
}

.passenger-detail-title > span:first-child {
  color: #b8e9f6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.passenger-detail-title h3 {
  margin: 6px 0;
  font-size: 22px;
}

.passenger-detail-title p {
  margin: 0;
  color: #d8e8f5;
}

.passenger-detail-title .detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f6ef;
  color: #0c7d55;
  font-size: 13px;
  font-weight: 900;
}

.passenger-detail-title .detail-status.danger {
  background: #ffe2df;
  color: #b42318;
}

.passenger-detail-body {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.passenger-compact-card {
  margin: 6px;
  padding: 8px 9px;
}

.passenger-compact-card .contact-stack {
  gap: 3px;
}

.passenger-compact-card .contact-stack-item {
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  padding: 4px 0;
}

.passenger-compact-card .contact-stack-item > span {
  font-size: 12px;
}

.passenger-compact-card .contact-stack-item > strong,
.passenger-compact-card .phone-copy-line strong {
  font-size: 14px;
}

.passenger-compact-card .contact-region-value {
  font-size: 13px;
}

.passenger-compact-card .phone-copy-line,
.passenger-compact-card .phone-actions {
  grid-column: 2;
}

.passenger-compact-card .copy-phone {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  box-shadow: none;
}

.passenger-compact-card .contact-count-btn {
  min-height: 28px;
  padding: 4px 10px;
}

.passenger-compact-card.detail-block dl {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: start;
}

.passenger-compact-card.detail-block dt {
  font-size: 14px;
  line-height: 1.18;
}

.passenger-compact-card.detail-block dd {
  font-size: 14px;
  line-height: 1.18;
}

.passenger-compact-card.detail-block .comment-value {
  max-height: 54px;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 7px;
  line-height: 1.25;
}

.passenger-request-details-compact {
  margin: 4px 6px;
  padding: 8px 10px;
}

.passenger-request-details-compact h3 {
  margin-bottom: 6px;
  font-size: 12px;
}

.passenger-request-details-compact dl {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 3px 8px;
}

.passenger-request-details-compact dt,
.passenger-request-details-compact dd {
  font-size: 14px;
  line-height: 1.18;
}

.passenger-request-details-compact .comment-value {
  max-height: 48px;
  min-height: 0;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.18;
}

.passenger-tip {
  margin: 16px;
  border: 1px solid #d6e5ef;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--muted);
  line-height: 1.45;
}

.passenger-tip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.passenger-tip p {
  margin: 0;
}

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

.passenger-offer-card {
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.passenger-offer-card.is-selected {
  border-color: #55b987;
  background: #f0fbf5;
}

.passenger-offer-toggle {
  background: #fff;
}

.passenger-offer-toggle .trip-response-person {
  grid-template-columns: 58px minmax(0, 1fr);
}

.passenger-offer-toggle .person-avatar {
  width: 58px;
  height: 58px;
}

.passenger-offer-toggle .trip-response-short:empty {
  display: none;
}

.passenger-offer-toggle .trip-response-arrow {
  grid-column: 3;
}

.passenger-offer-card.is-selected .passenger-offer-toggle {
  background: #f0fbf5;
}

.passenger-offer-main strong,
.passenger-offer-main span,
.passenger-offer-main small {
  display: block;
}

.passenger-offer-main strong {
  font-size: 17px;
}

.passenger-offer-main span {
  margin-top: 5px;
  font-weight: 900;
}

.passenger-offer-main small {
  margin-top: 5px;
  color: var(--muted);
}

.passenger-offer-main p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.offer-detail-list {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0 0 10px;
}

.offer-detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.offer-detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.passenger-offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.passenger-offer-actions .small-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(17, 28, 40, 0.12);
}

.offer-check-btn {
  border: 1px solid #0f6e9a;
  background: #0f6e9a;
  color: #fff;
}

.offer-choose-btn {
  border: 1px solid #178653;
  background: #178653;
  color: #fff;
}

.offer-check-btn:hover {
  background: #0a5c82;
}

.offer-choose-btn:hover {
  background: #0f7245;
}

.selected-offer-hint {
  margin: 10px 0 0;
  border: 1px solid #bfe2d0;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f0fbf5;
  color: #0c7d55;
  font-weight: 850;
  line-height: 1.35;
}

.driver-contact-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e4edf4;
  margin-top: 10px;
  padding-top: 10px;
}

.driver-contact-line span {
  color: var(--muted);
  font-weight: 800;
}

.driver-contact-line strong {
  margin-right: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 28px 22px 0;
}

.carrier-cabinet-view {
  min-height: 100vh;
  background: #edf4f8;
}

.carrier-dashboard {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 22px 36px;
}

.carrier-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
  padding: 14px 16px;
  background: #111c28;
  color: #fff;
  box-shadow: var(--shadow);
}

.carrier-account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.carrier-logo-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.carrier-account strong,
.carrier-account span {
  display: block;
}

.carrier-account strong {
  font-size: 19px;
}

.carrier-account span {
  margin-top: 3px;
  color: #b8c7d6;
  font-size: 13px;
}

.refresh-carrier {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}

.refresh-carrier-blue {
  background: var(--blue);
}

.refresh-carrier-blue:hover {
  background: #0a6f9c;
}

@media (max-width: 1220px) {
  .carrier-dashboard-top {
    align-items: flex-start;
  }

  .cabinet-account-actions {
    flex-wrap: wrap;
  }

  .cabinet-user-menu span {
    max-width: 190px;
  }
}

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

.carrier-stats div {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 28, 40, 0.08);
}

.carrier-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.carrier-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
  line-height: 1;
}

.carrier-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.carrier-list-panel,
.carrier-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.carrier-list-panel {
  overflow: visible;
}

.carrier-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.carrier-list-head > div {
  min-width: 0;
  flex: 1;
}

.carrier-list-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.carrier-list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.carrier-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 10px;
  margin-top: 12px;
}

.carrier-search,
.carrier-date-filter {
  display: grid;
  gap: 5px;
  margin: 0;
}

.carrier-search span,
.carrier-date-filter > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.carrier-search input,
.carrier-date-filter input {
  min-height: 40px;
  border-radius: 7px;
}

.feed-badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: #e5f6ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.carrier-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.carrier-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.carrier-table th,
.carrier-table td {
  padding: 9px 14px;
  text-align: left;
  vertical-align: middle;
}

.carrier-table th {
  color: #697788;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.carrier-table td {
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.carrier-table tr {
  cursor: pointer;
}

.carrier-table tr:hover {
  background: #f5fbfe;
}

.carrier-table tr.is-selected {
  background: #dff1fb;
  outline: 2px solid #62b6df;
  outline-offset: -2px;
}

.carrier-table tr.is-booked {
  background: #eefaf3;
}

.carrier-table tr.is-booked:hover {
  background: #e3f6ea;
}

.carrier-table tr.is-booked.is-selected {
  background: #daf3e4;
  outline: 2px solid #55b987;
  outline-offset: -2px;
}

.carrier-table tr.is-booked td,
.carrier-table tr.is-booked span {
  color: #126b45;
}

.carrier-table tr.is-closed {
  background: #fff2f1;
}

.carrier-table tr.is-closed:hover {
  background: #ffe8e5;
}

.carrier-table tr.is-closed.is-selected {
  background: #ffdeda;
  outline: 2px solid #ef7c73;
  outline-offset: -2px;
}

.carrier-table tr.is-closed td,
.carrier-table tr.is-closed span {
  color: #9f241d;
}

.carrier-table strong,
.carrier-table span {
  display: block;
}

.carrier-table span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.carrier-table .trip-seats-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.carrier-table .trip-seats-status strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffe3df;
  color: #9f241d;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.carrier-table .request-count-cell {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  margin-top: 0;
}

.carrier-table .request-count-cell > span:first-child {
  display: inline;
  margin-top: 0;
  color: var(--text);
  font-size: 14px;
}

.carrier-table .table-alert {
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  width: 9px;
  min-width: 9px;
  height: 9px;
  margin-top: 0;
  border-radius: 999px;
  padding: 0;
  background: #ef3f2d;
  box-shadow: 0 0 0 3px rgba(239, 63, 45, 0.12);
  transform: translateY(-50%);
}

.carrier-table button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
}

.carrier-status-select {
  width: 150px;
  min-height: 38px;
  border: 1px solid #b9ccd9;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.carrier-status-select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 127, 180, 0.18);
}

.carrier-status-select.status-new {
  border-color: #b9ccd9;
  background: #f8fbfd;
  color: #142234;
}

.carrier-status-select.status-saved {
  border-color: #8fc7e6;
  background: #e6f5fc;
  color: #0e6f9f;
}

.carrier-status-select.status-processed {
  border-color: #9bd8bd;
  background: #e8f8f0;
  color: #08734d;
}

.carrier-status-select.status-not_actual {
  border-color: #f2aca6;
  background: #fff0ee;
  color: #a52720;
}

.remove-passenger-btn {
  width: fit-content;
  margin-top: 4px;
}

.remove-passenger-table-btn {
  min-height: 34px;
  white-space: nowrap;
}

.saved-passengers-table {
  min-width: 760px;
}

.list-pagination {
  display: grid;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.list-pagination:empty {
  display: none;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-controls button,
.pagination-controls input,
.pagination-controls select {
  min-height: 36px;
  border: 1px solid #d6e2ea;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.pagination-controls button {
  width: 36px;
  cursor: pointer;
}

.pagination-controls button:disabled {
  opacity: 0.42;
  cursor: default;
}

.pagination-controls input {
  width: 58px;
  padding: 0 8px;
  text-align: center;
}

.pagination-controls select {
  width: 64px;
  padding: 0 8px;
  cursor: pointer;
}

.pagination-summary {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.carrier-detail-panel {
  position: sticky;
  top: 12px;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  background: #f3f8fb;
}

.carrier-detail-title {
  position: relative;
  padding: 14px 14px;
  background:
    linear-gradient(135deg, rgba(14, 120, 177, 0.95), rgba(17, 30, 47, 0.98)),
    radial-gradient(circle at 92% 12%, rgba(99, 202, 225, 0.34), transparent 36%);
  color: #fff;
}

.carrier-detail-title span {
  color: #b8e9f6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.carrier-detail-title .detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f6ef;
  color: #0c7d55;
  text-transform: none;
}

.carrier-detail-title .detail-status.danger {
  background: #ffe2df;
  color: #b42318;
}

.request-inactive-alert {
  margin: 12px 12px 0;
  border: 1px solid #ffc7c0;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff1ef;
  color: #9f241d;
  font-weight: 900;
  line-height: 1.35;
}

.carrier-detail-title h2 {
  margin: 5px 0;
  max-width: 280px;
  font-size: 20px;
  line-height: 1.15;
}

.carrier-detail-title p {
  margin: 0;
  color: #d8e8f5;
}

.detail-block {
  margin: 10px;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(14, 47, 74, 0.07);
}

.carrier-card-compact {
  margin: 6px;
  padding: 8px;
}

.carrier-card-compact h3 {
  margin-bottom: 6px;
  font-size: 12px;
}

.carrier-card-compact.detail-block dl {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 3px 8px;
}

.carrier-card-compact.detail-block dt,
.carrier-card-compact.detail-block dd {
  font-size: 13px;
  line-height: 1.16;
}

.carrier-card-compact .comment-value {
  max-height: 48px;
  padding: 5px 7px;
  font-size: 13px;
  line-height: 1.18;
}

.carrier-card-compact .contact-person {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  padding-bottom: 6px;
}

.carrier-card-compact .person-avatar {
  width: 42px;
  height: 42px;
}

.carrier-card-compact .contact-person strong {
  font-size: 15px;
}

.carrier-card-compact .contact-person span,
.carrier-card-compact .contact-stack-item > span {
  font-size: 12px;
}

.carrier-card-compact .contact-stack-item {
  gap: 2px;
  padding: 4px 0;
}

.carrier-card-compact .contact-stack-item > strong,
.carrier-card-compact .phone-copy-line strong {
  font-size: 13px;
}

.carrier-card-compact .copy-phone {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.carrier-card-compact .reply-field {
  gap: 4px;
}

.carrier-card-compact .reply-field textarea {
  min-height: 64px;
  padding: 7px 9px;
  font-size: 13px;
}

.carrier-card-compact .carrier-send-reply {
  min-height: 40px;
  font-size: 14px;
}

.detail-block h3 {
  margin: 0 0 9px;
  color: #526171;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-block dl {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.compact-detail-block dl {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 5px 9px;
  align-items: start;
}

.compact-detail-block dt,
.compact-detail-block dd {
  font-size: 14px;
  line-height: 1.2;
}

.compact-detail-block .comment-value {
  max-height: 56px;
  padding: 6px 8px;
  border-radius: 7px;
  line-height: 1.25;
}

.detail-block dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-block dt::after {
  content: ":";
}

.detail-block dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.comment-value {
  max-height: 92px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  background: #f8fbfd;
  font-weight: 800;
  line-height: 1.45;
}

.carrier-detail-panel .carrier-card-compact {
  margin: 5px 6px;
  padding: 7px 8px;
  box-shadow: none;
}

.carrier-detail-panel .carrier-card-compact h3 {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.1;
}

.carrier-detail-panel .carrier-card-compact dl {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 3px 7px;
}

.carrier-detail-panel .carrier-card-compact dt,
.carrier-detail-panel .carrier-card-compact dd {
  font-size: 13px;
  line-height: 1.14;
}

.carrier-detail-panel .carrier-card-compact .comment-value {
  max-height: 42px;
  padding: 5px 7px;
  font-size: 13px;
  line-height: 1.16;
}

.carrier-detail-panel .carrier-card-compact .reply-field textarea {
  min-height: 56px;
  padding: 6px 8px;
  font-size: 13px;
}

.carrier-detail-panel .carrier-card-compact .carrier-send-reply {
  min-height: 38px;
  font-size: 13px;
}

.carrier-detail-panel .carrier-trip-details-compact {
  margin: 6px;
  padding: 8px 9px;
}

.carrier-detail-panel .carrier-trip-details-compact h3 {
  margin-bottom: 6px;
  font-size: 12px;
}

.detail-collapse-toggle {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #526171;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-collapse-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9f7fc;
  color: #0b719d;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.detail-collapse-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding-top 0.28s ease;
}

.carrier-trip-details-compact.is-open .detail-collapse-body,
.passenger-trip-details-compact.is-open .detail-collapse-body {
  max-height: 260px;
  opacity: 1;
  padding-top: 4px;
}

.carrier-trip-details-compact.is-open .detail-collapse-arrow,
.passenger-trip-details-compact.is-open .detail-collapse-arrow {
  transform: rotate(180deg);
}

.carrier-detail-panel .carrier-trip-details-compact dl {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px 8px;
}

.carrier-detail-panel .carrier-trip-details-compact dt,
.carrier-detail-panel .carrier-trip-details-compact dd {
  font-size: 13px;
  line-height: 1.18;
}

.carrier-detail-panel .carrier-trip-details-compact .comment-value {
  max-height: 46px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.18;
}

.contact-stack {
  display: grid;
  gap: 3px;
}

.contact-stack-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 5px 0;
  border-bottom: 1px solid #e4edf4;
}

.contact-stack-item:first-child {
  padding-top: 0;
}

.contact-stack-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-stack-item > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-stack-item > strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.phone-copy-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.phone-copy-line strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.contact-count-btn {
  justify-self: start;
  min-height: 30px;
  border: 1px solid #9ccfe4;
  border-radius: 999px;
  padding: 5px 11px;
  background: #e9f7fc;
  color: #0f6e9a;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(23, 125, 181, 0.12);
}

.contact-count-btn:hover {
  border-color: var(--blue);
  background: #dff2fb;
}

.contact-region-value {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.region-route,
.region-place {
  display: grid;
  gap: 2px;
}

.region-route {
  gap: 5px;
}

.region-country {
  color: #0f2437;
  font-size: 14px;
  font-weight: 900;
}

.region-name {
  color: #5f6d7a;
  font-size: 13px;
  font-weight: 800;
}

.region-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8f6fb;
  color: #0f6e9a;
  font-size: 16px;
  font-weight: 900;
}

.contact-email-value {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.carrier-messenger-buttons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.carrier-messenger-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cad7e2;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.carrier-messenger-icon:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 125, 181, 0.12);
  transform: translateY(-1px);
}

.carrier-messenger-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.copy-phone {
  justify-self: start;
  min-height: 32px;
  width: auto;
  padding: 6px 12px;
  border-color: #177db5;
  background: #177db5;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(23, 125, 181, 0.18);
}

.copy-phone:hover {
  border-color: #0e638e;
  background: #0e638e;
}

.carrier-reply-block {
  display: grid;
  gap: 11px;
  background: #fff;
}

.carrier-reply-block h3 {
  margin-bottom: 0;
}

.carrier-reply-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.carrier-reply-block.is-muted {
  background: #f7f9fb;
}

.carrier-reply-block.is-muted .reply-field {
  opacity: 0.58;
}

.carrier-reply-block .carrier-send-reply:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.request-card.is-closed {
  border-color: #ffc7c0;
  background: #fff7f6;
}

.request-status-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.small-btn.danger {
  border-color: #ffc7c0;
  background: #fff1ef;
  color: #b42318;
}

.reply-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.reply-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #526171;
  font-weight: 900;
  cursor: pointer;
}

.reply-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reply-tabs label:has(input:checked) {
  background: #132132;
  border-color: #132132;
  color: #fff;
}

.reply-tabs label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reply-field {
  display: grid;
  gap: 5px;
  color: #526171;
  font-weight: 900;
}

.reply-field input,
.reply-field textarea,
.reply-field select {
  width: 100%;
  border: 1px solid #cbd6df;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 9px 11px;
}

.reply-field textarea {
  min-height: 82px;
  resize: vertical;
}

.trip-response-form {
  padding: 10px;
}

.trip-response-form.is-sent {
  border-color: #bfe2d0;
  background: #fbfffd;
}

.booking-confirmed-note {
  margin: 0 0 9px;
  border: 1px solid #bfe2d0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f0fff7;
  color: #0f7a48;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.booking-confirmed-note.is-rejected {
  border-color: #f1c8c8;
  background: #fff6f6;
  color: #9b1c1c;
}

.trip-booking-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 9px;
  background: #f4fbfe;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.trip-booking-toggle > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trip-booking-toggle strong {
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-booking-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trip-response-form .trip-response-arrow {
  margin-top: 0;
}

.trip-response-form.is-open .trip-response-arrow {
  transform: rotate(180deg);
}

.trip-booking-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transition: max-height 0.3s ease, opacity 0.22s ease, padding-top 0.3s ease;
}

.trip-response-form.is-open .trip-booking-body {
  max-height: 420px;
  opacity: 1;
  padding-top: 9px;
}

.trip-response-form .reply-field textarea {
  min-height: 70px;
}

.trip-manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 7px;
  margin-bottom: 8px;
}

.trip-manage-block .reply-field input,
.trip-manage-block .reply-field select {
  min-height: 40px;
}

.trip-booking-row {
  display: grid;
  grid-template-columns: 96px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.trip-seats-field input {
  min-height: 40px;
}

.trip-booking-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr);
  gap: 8px;
  margin-top: 9px;
}

.trip-booking-actions.has-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-booking-actions .secondary,
.trip-booking-actions .primary {
  min-height: 40px;
  width: 100%;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
}

.trip-booking-actions .secondary {
  border-color: #b9d7e5;
  background: #eaf7fc;
  color: #0b6f99;
  box-shadow: inset 0 0 0 1px rgba(15, 110, 154, 0.06);
}

.trip-booking-actions.has-three .primary {
  grid-column: 1 / -1;
  min-height: 44px;
}

.danger-soft {
  border-color: #f1c8c8 !important;
  background: #fff1f1 !important;
  color: #a51f1f !important;
}

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

.trip-response-card {
  border: 1px solid #d7e4ed;
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.trip-response-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: start;
  gap: 5px 8px;
  border: 0;
  min-height: 58px;
  padding: 7px 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.trip-response-toggle:hover {
  background: #eef7fc;
}

.trip-response-toggle > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trip-response-person > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.trip-response-toggle strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.trip-response-toggle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.trip-response-short {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  padding-left: 40px;
  color: #536476;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-response-status {
  justify-self: end;
  align-self: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff6d9;
  color: #9a6a00;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.trip-response-status.is-confirmed {
  background: #dff7ea;
  color: #0d7a47;
}

.trip-response-status.is-rejected {
  background: #fff1f1;
  color: #9b1c1c;
}

.confirm-booking-btn {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  font-size: 14px;
}

.trip-response-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.trip-response-actions .secondary,
.trip-response-actions .primary {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
}

.trip-response-arrow {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e1f1f8;
  color: #0f6e9a;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.22s ease, background 0.22s ease;
}

.trip-response-card.is-open .trip-response-arrow {
  transform: rotate(180deg);
  background: #d3ebf6;
}

.trip-response-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid #dbe8f0;
  padding: 0 9px;
  background: #fff;
  opacity: 0;
  transition: max-height 0.32s ease, padding 0.32s ease, opacity 0.22s ease;
}

.trip-response-card.is-open .trip-response-body {
  max-height: 320px;
  padding: 8px 9px;
  opacity: 1;
}

.trip-response-person {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.trip-response-toggle > .trip-response-person:first-child {
  display: grid;
}

.trip-response-person .person-avatar {
  width: 32px;
  height: 32px;
}

.passenger-offer-toggle.trip-response-toggle {
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
}

.passenger-offer-toggle .trip-response-person {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.passenger-offer-toggle .trip-response-person .person-avatar {
  width: 64px;
  height: 64px;
}

.passenger-offer-toggle .trip-response-short {
  grid-column: 1 / -1;
  padding-left: 74px;
}

.passenger-offer-card.is-open .trip-response-body {
  max-height: 420px;
}

.passenger-offer-card:not(.is-open) .passenger-offer-body {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 0;
  opacity: 0;
}

.passenger-offer-card.is-open .passenger-offer-body {
  max-height: 420px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #dbe8f0;
  opacity: 1;
}

.trip-response-card dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 0;
}

.trip-response-card dt {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.trip-response-card dd {
  margin: 0;
  font-weight: 850;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.carrier-send-reply {
  width: 100%;
  min-height: 46px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.compact-panel {
  box-shadow: var(--shadow);
}

.live-panel {
  min-height: 250px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}

.inline-form button,
.small-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  min-height: 40px;
  padding: 0 13px;
  font-weight: 700;
}

.passenger-offer-actions .small-btn {
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(17, 28, 40, 0.14);
}

.passenger-offer-actions .offer-check-btn {
  border-color: #0f6e9a;
  background: #0f6e9a;
  color: #fff;
}

.passenger-offer-actions .offer-choose-btn {
  border-color: #178653;
  background: #178653;
  color: #fff;
}

.passenger-offer-actions .offer-check-btn:hover {
  background: #0a5c82;
}

.passenger-offer-actions .offer-choose-btn:hover {
  background: #0f7245;
}

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

.request-card,
.carrier-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.request-head,
.carrier-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.request-head h3,
.carrier-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.request-head p,
.carrier-card p,
.request-comment {
  margin: 0;
  color: var(--muted);
}

.request-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.request-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  align-self: flex-start;
  border-radius: 999px;
  background: #fff5df;
  color: var(--amber);
  padding: 5px 9px;
  font-size: 13px;
  white-space: nowrap;
}

.status.ok {
  background: #e5f6ef;
  color: var(--green);
}

.status.danger {
  background: #ffe2df;
  color: #b42318;
}

.offers-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #f8fafc;
}

.offer-row.is-selected {
  border-color: var(--green);
  background: #eefaf4;
}

.offer-row strong,
.offer-row span,
.offer-row small {
  display: block;
}

.offer-row small {
  color: var(--muted);
}

.empty,
.empty-mini {
  border: 1px dashed #c8d3df;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #fbfdff;
}

.empty-mini {
  padding: 10px;
}

.carrier-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 52px;
  border-radius: 8px;
  padding: 26px 28px;
  background: linear-gradient(135deg, #1474b8, #154964);
  color: #fff;
  box-shadow: var(--shadow);
}

.carrier-strip h2,
.carrier-strip p {
  margin: 0;
}

.carrier-strip h2 {
  font-size: 26px;
}

.carrier-strip p {
  margin-top: 8px;
  max-width: 680px;
  color: #d7edf7;
  line-height: 1.55;
}

.support-section {
  margin-bottom: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-section .section-head {
  margin-bottom: 16px;
}

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

.support-form textarea {
  min-height: 110px;
  resize: vertical;
}

.support-form .primary {
  justify-self: start;
  min-height: 44px;
  padding: 0 22px;
}

.cta-white {
  min-height: 48px;
  border-radius: 6px;
  padding: 0 22px;
  background: #fff;
  color: #0e4c7d;
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px max(22px, calc((100vw - 1180px) / 2));
  background: var(--navy);
  color: #b8c7d6;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.verify-carrier-view {
  min-height: calc(100vh - 140px);
  padding: 46px 18px 70px;
}

.verify-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.verify-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.verify-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  background: #eaf7fb;
  color: #0e6d95;
  font-size: 13px;
  font-weight: 800;
}

.verify-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.verify-card p {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.verify-form {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.verify-role-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #cbdde8;
  border-radius: 8px;
  padding: 4px;
  background: #eef6fb;
}

.verify-role-tabs label {
  position: relative;
  cursor: pointer;
}

.verify-role-tabs input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.verify-role-tabs span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 900;
  color: #526171;
}

.verify-role-tabs input:checked + span {
  background: #132132;
  color: #fff;
}

.verify-result {
  margin-top: 20px;
  border: 1px solid #c9e4f0;
  border-radius: 8px;
  padding: 16px;
  background: #eef8fc;
}

.verify-result.is-visible {
  border-color: #9ec9dc;
}

.verify-result h3 {
  margin: 0 0 8px;
}

.verify-result p:last-child {
  margin-bottom: 0;
}

.verify-profile-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #d7e7ef;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.verify-profile-media {
  min-width: 0;
}

.verify-photo-button {
  display: block;
  width: 150px;
  height: 150px;
  border: 1px solid #b9d8e7;
  border-radius: 8px;
  padding: 0;
  background: #eef6fb;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 10px 20px rgba(15, 72, 104, 0.1);
}

.verify-photo-button.is-empty {
  cursor: default;
  box-shadow: none;
}

.verify-profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 0;
  background: #eef6fb;
}

.verify-profile-photo.is-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: #7b96a8;
  background: linear-gradient(135deg, #f7fbfe, #eaf5fa);
}

.verify-profile-info {
  min-width: 0;
}

.verify-profile-head {
  margin-bottom: 10px;
}

.verify-profile-head span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.verify-profile-head strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  color: var(--text);
}

.verify-profile-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px 26px;
  align-items: baseline;
  margin: 0;
  max-width: 620px;
}

.verify-profile-list dt {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.verify-profile-list dd {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.verify-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.verify-metric {
  border: 1px solid #d9e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.verify-metric span {
  display: block;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.verify-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.verify-reviews {
  margin-top: 14px;
}

.verify-reviews h4 {
  margin: 0 0 8px;
}

.verify-review {
  border-top: 1px solid #d7e7ef;
  padding: 10px 0;
}

.verify-review div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.verify-review div span {
  color: #f2a60d;
}

.verify-review p {
  margin: 6px 0;
  color: var(--text);
}

.verify-review small {
  color: var(--muted);
}

.verify-review-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid #d9e8f0;
  padding-top: 18px;
}

.verify-review-form h3,
.verify-review-form .wide,
.verify-review-form button {
  grid-column: 1 / -1;
}

.support-view {
  min-height: calc(100vh - 140px);
  padding: 44px 18px 70px;
}

.support-view .support-section {
  width: min(900px, 100%);
  margin: 0 auto;
}

.admin-view {
  padding: 26px 18px 70px;
}

.admin-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-top h1 {
  margin: 0 0 4px;
  font-size: 32px;
}

.admin-top p {
  margin: 0;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-stats div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-stats span {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.admin-tabs button {
  position: relative;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #354456;
  font-weight: 900;
}

.admin-tabs button.is-active {
  border-color: #132132;
  background: #132132;
  color: #fff;
}

.admin-tabs .tab-alert {
  position: absolute;
  top: -8px;
  right: -7px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.admin-list {
  display: grid;
  gap: 5px;
  padding: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8e3ec;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfdff;
}

.admin-list > .admin-row {
  border: 1px solid #d8e3ec;
}

button.admin-row {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-row-wrap {
  border: 1px solid #d8e3ec;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.admin-row-wrap > .admin-row {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-row-wrap.is-open {
  border-color: #72bddc;
  box-shadow: 0 0 0 1px rgba(15, 110, 154, 0.12);
}

.admin-row-wrap.is-open > .admin-row {
  background: #eef8fd;
}

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

.admin-main h3 {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.15;
}

.admin-main p,
.admin-main small,
.admin-meta span,
.admin-event-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.admin-number {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f6fb;
  color: #0f6e9a;
  font-weight: 900;
}

.admin-meta {
  display: grid;
  gap: 2px;
}

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

.admin-row-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e7f4fa;
  color: #0f6e9a;
  font-weight: 900;
  transition: transform 0.22s ease;
}

.admin-row-wrap.is-open .admin-row-arrow {
  transform: rotate(180deg);
}

.admin-account-details {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  padding: 0 10px;
  opacity: 0;
  transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.admin-row-wrap.is-open .admin-account-details {
  max-height: 360px;
  border-top-color: #d7e7ef;
  padding: 8px 10px 10px;
  opacity: 1;
}

.admin-request-wrap.is-open .admin-request-details {
  max-height: 520px;
}

.admin-trip-wrap.is-open .admin-trip-details {
  max-height: 560px;
}

.admin-review-wrap.is-open .admin-review-details {
  max-height: 420px;
}

.admin-support-wrap.is-open .admin-support-details {
  max-height: 430px;
}

.admin-support-wrap.is-pending > .admin-row {
  background: #eefaf4;
}

.admin-review-wrap.is-pending > .admin-row {
  background: #fff8ed;
}

.admin-error-wrap > .admin-row {
  background: #fff7f4;
}

.admin-error-wrap .admin-number {
  background: #ffe1d9;
  color: #b8321d;
}

.admin-error-wrap.is-open .admin-error-details {
  max-height: 620px;
}

.admin-request-row-compact {
  grid-template-columns: minmax(360px, 1fr) 220px 190px;
  min-height: 54px;
  padding: 6px 9px;
  align-items: center;
}

.admin-request-row-compact .admin-number {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
}

.admin-request-row-compact .admin-main {
  gap: 7px;
}

.admin-request-row-compact .admin-main h3 {
  margin-bottom: 1px;
  font-size: 14px;
}

.admin-request-row-compact .admin-main p,
.admin-request-row-compact .admin-main small,
.admin-request-row-compact .admin-meta span {
  font-size: 12px;
  line-height: 1.15;
}

.admin-request-row-compact .admin-meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
}

.admin-request-row-compact .admin-meta {
  justify-self: start;
  width: 220px;
  min-width: 220px;
  align-self: center;
}

.admin-request-row-compact .admin-actions {
  justify-self: end;
  width: 190px;
  min-width: 190px;
}

.admin-offer-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-review-comment {
  border: 1px solid #dce8f0;
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
}

.admin-review-comment span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-review-comment p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-request-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 7px;
}

.admin-offers {
  display: grid;
  gap: 5px;
}

.admin-offers h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-offer-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dce8f0;
  border-radius: 7px;
  padding: 6px 8px;
  background: #fff;
}

.admin-offer-row.is-selected {
  border-color: #93d6b8;
  background: #f1fcf6;
}

.admin-offer-row strong,
.admin-offer-row b {
  display: block;
  font-size: 13px;
  line-height: 1.18;
}

.admin-offer-row span,
.admin-offer-row p {
  display: block;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

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

.admin-info-cell {
  min-width: 0;
  border: 1px solid #dce8f0;
  border-radius: 7px;
  padding: 7px 8px;
  background: #fff;
}

.admin-info-cell span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-info-cell strong {
  display: block;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 8px;
}

.admin-detail-actions .primary {
  border-color: transparent;
  background: #15855a;
  color: #fff;
}

.admin-row .person-avatar {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.admin-row .person-avatar .profile-camera-icon {
  width: 25px;
  height: 25px;
}

.admin-event-row {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 7px 10px;
}

.admin-event-row > div {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

.admin-event-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.admin-event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-event-details {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 4px;
  margin-top: 1px;
}

.admin-event-details span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #d5e5ee;
  border-radius: 999px;
  background: #f3fbff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-event-details b {
  color: var(--text);
  margin-right: 4px;
}

.admin-row .status {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 12px;
}

.admin-row .small-btn {
  min-height: 34px;
  padding: 0 12px;
}

.admin-statistics-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-statistics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-statistics-head h3 {
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.2;
}

.admin-statistics-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-statistics-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.admin-statistics-cards article {
  min-height: 72px;
  border: 1px solid #d8e3ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.admin-statistics-cards span {
  display: block;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-statistics-cards strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
}

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

.admin-statistics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-statistics-table th,
.admin-statistics-table td {
  border-top: 1px solid #d8e3ec;
  padding: 10px;
  text-align: left;
  font-size: 13px;
}

.admin-statistics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-statistics-table td:first-child {
  width: 260px;
}

.admin-statistics-table strong {
  font-size: 14px;
}

dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(24, 33, 44, 0.24);
}

dialog::backdrop {
  background: rgba(24, 33, 44, 0.42);
}

dialog form {
  padding: 18px;
}

.info-modal {
  width: min(540px, calc(100vw - 28px));
}

.photo-modal {
  width: auto;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.photo-modal-body {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.photo-modal-frame {
  position: relative;
  display: inline-block;
  max-width: min(430px, calc(100vw - 36px));
  max-height: calc(100vh - 72px);
  transform-origin: center center;
}

.photo-modal-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 72px);
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  transform-origin: center center;
  box-shadow: 0 24px 70px rgba(10, 20, 30, 0.36);
}

.photo-modal-close {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(10, 20, 30, 0.68);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 20, 30, 0.2);
  transition: opacity 0.16s ease;
}

.photo-modal-frame.is-opening .photo-modal-close {
  opacity: 0;
  pointer-events: none;
}

.photo-modal-close:hover {
  background: rgba(10, 20, 30, 0.86);
}

.info-modal-body {
  padding: 20px;
}

.info-modal-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
}

#requestSuccessModal .modal-head h2,
#driverTripSuccessModal .modal-head h2 {
  color: var(--green);
}

.modal-warning-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff2df;
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
}

.warning-modal .modal-head {
  align-items: center;
}

.modal-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.safety-note {
  border: 1px solid #f0d2bf;
  border-radius: 8px;
  padding: 14px;
  background: #fff5ef;
}

.safety-note strong {
  display: block;
  margin-bottom: 6px;
  color: #9c3f18;
}

.safety-note p {
  margin: 0;
  color: #4d5967;
}

.info-modal-body .modal-action-hint {
  margin: 14px 0 0;
  color: #b42318;
  font-size: 15px;
  font-weight: 700;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 36px));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--text);
  color: white;
  transition: 160ms ease;
}

#toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .layout,
  .below-hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    min-height: 620px;
    height: calc(100vh - 56px);
    max-height: 760px;
    padding-top: 22px;
    background-position: center, center top;
    background-size: cover, cover;
  }

  .hero:has(.more-fields.is-open) {
    min-height: 620px;
    height: calc(100vh - 56px);
    max-height: 760px;
  }

  .hero:has(#requestForm.is-active .more-fields.is-open) {
    margin-bottom: 52px;
  }

  .hero:has(#driverTripForm.is-active .more-fields.is-open) {
    margin-bottom: 155px;
  }

  .home-form-switch,
  .home-request-form {
    grid-column: 1;
    justify-self: center;
  }

  .hero-copy:empty {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-points,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .carrier-strip {
    margin-left: 14px;
    margin-right: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .support-section {
    margin-left: 14px;
    margin-right: 14px;
    padding: 18px;
  }

  .carrier-dashboard {
    padding: 16px 14px 28px;
  }

  .carrier-workspace {
    grid-template-columns: 1fr;
  }

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

  .passenger-cabinet-head,
  .passenger-workspace {
    grid-template-columns: 1fr;
  }

  .passenger-request-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .carrier-detail-panel {
    position: static;
  }

  .verify-form {
    grid-template-columns: 1fr;
  }

  .verify-metrics,
  .verify-review-form {
    grid-template-columns: 1fr;
  }

  .verify-profile-head {
    display: grid;
  }

  .auth-shell,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-photo-field {
    grid-column: 1;
    grid-row: auto;
  }

  .password-form {
    grid-template-columns: 1fr;
  }

  .auth-info,
  .auth-card {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .verify-profile-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .verify-photo-button {
    width: 104px;
    height: 104px;
  }

  .verify-profile-head strong {
    font-size: 19px;
  }

  .verify-profile-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .verify-profile-list dt {
    white-space: normal;
  }

  .verify-profile-list dd {
    margin-bottom: 8px;
  }

  .hero {
    min-height: auto;
    height: auto;
    max-height: none;
    margin-bottom: 0;
    padding-left: 14px;
    padding-right: 14px;
    background-image: none;
    background-color: #071321;
  }

  .hero:has(.more-fields.is-open) {
    min-height: auto;
    height: auto;
    max-height: none;
    margin-bottom: 0;
  }

  .hero:has(#requestForm.is-active .more-fields.is-open),
  .hero:has(#driverTripForm.is-active .more-fields.is-open) {
    margin-bottom: 0;
  }

  .messenger-field > span {
    white-space: normal;
  }

  .request-panel {
    justify-self: stretch;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 18px 16px;
  }

  .home-form-switch,
  .home-request-form {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-head {
    margin-bottom: 12px;
  }

  .form-head h2 {
    font-size: 23px;
  }

  .form-head p {
    font-size: 13px;
  }

  .route-fields,
  .grid.three,
  .driver-contact-grid,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .driver-messenger-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .route-fields::before {
    display: none;
  }

  label {
    margin-bottom: 9px;
  }

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

  .more-fields {
    margin-bottom: 14px;
  }

  .more-toggle {
    min-height: 44px;
  }

  .more-fields input,
  .more-fields textarea {
    min-height: 41px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 14px;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding: 18px 14px 26px;
    background-image: none;
    background-color: #071321;
  }

  .request-panel {
    padding: 18px 14px 16px;
  }

  .grid.two,
  .more-fields .grid.two {
    grid-template-columns: 1fr;
  }

  .route-fields::before {
    display: none;
  }

  .steps-section,
  .below-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .carrier-dashboard-top,
  .carrier-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .passenger-dashboard .carrier-dashboard-top {
    align-items: stretch;
  }

  .carrier-filters {
    grid-template-columns: 1fr;
  }

  .refresh-carrier {
    width: 100%;
  }

  .carrier-header-tabs {
    width: 100%;
    margin: 0;
  }

  .carrier-header-tabs button {
    flex: 1 1 0;
  }

  .carrier-stats {
    grid-template-columns: 1fr;
  }

  .passenger-cabinet-head {
    padding: 18px 14px;
  }

  .passenger-search-form {
    grid-template-columns: 1fr;
  }

  .passenger-summary {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .passenger-request-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .passenger-request-row.driver-trip-list-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .passenger-request-row .status {
    grid-column: 2;
    justify-self: start;
  }

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

  .trip-booking-actions {
    grid-template-columns: 1fr;
  }

  .auth-view {
    padding: 18px 14px 42px;
    background-image: none;
    background-color: #071321;
  }

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

  .cabinet-account-actions {
    justify-content: stretch;
  }

  .cabinet-account-actions .primary,
  .cabinet-account-actions .secondary {
    width: 100%;
  }

  .profile-panel {
    padding: 16px 14px;
  }

  .passenger-offer-actions {
    grid-template-columns: 1fr;
  }

  .carrier-table {
    min-width: 820px;
  }

  .pagination-controls {
    flex-wrap: wrap;
  }

  .detail-block dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .carrier-detail-panel .detail-block dl {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .detail-block dd {
    margin-bottom: 8px;
  }

  .carrier-detail-panel .detail-block dd {
    margin-bottom: 0;
  }

  .verify-carrier-view {
    padding: 20px 14px 42px;
  }

  .verify-card {
    padding: 20px 14px;
  }

  .verify-card h1 {
    font-size: 28px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .primary,
  .modal-actions .secondary {
    width: 100%;
  }
}
