:root {
  --ink: #172025;
  --muted: #65727a;
  --paper: #fffaf1;
  --panel: #ffffff;
  --teal: #057c8a;
  --teal-dark: #03535d;
  --coral: #e85d4f;
  --yellow: #f4b942;
  --green: #358263;
  --line: #dce5e5;
  --shadow: 0 20px 60px rgba(23, 32, 37, 0.12);
  --section-title-size: clamp(1.95rem, 3.2vw, 2.55rem);
  font-family: "Google Sans", "Product Sans", Roboto, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6fbfb 0%, var(--paper) 52%, #f7f2e9 100%);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #10262b;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  object-position: center top;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 30, 35, 0.76), rgba(4, 30, 35, 0.28) 52%, rgba(4, 30, 35, 0.12)),
    linear-gradient(0deg, rgba(4, 30, 35, 0.65), transparent 45%);
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 76px;
  color: #fff;
}

.hero__eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1 {
  width: min(780px, 100%);
  margin: 10px 0 12px;
  font-size: clamp(2.45rem, 5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  outline: none;
}

.hero__description {
  width: min(620px, 100%);
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.2vw, 1.32rem);
  line-height: 1.45;
  outline: none;
}

.hero__description.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero__more {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  margin-top: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 900;
}

.hero__when,
.hero__countdown {
  width: min(620px, 100%);
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.35;
  font-weight: 900;
}

.hero__when {
  display: flex;
  gap: clamp(22px, 4vw, 54px);
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero__countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__countdown span {
  color: rgba(255, 255, 255, 0.78);
}

.hero__countdown strong {
  color: #fff;
}

.hero__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.hero__meta label,
.hero__meta .meta-item {
  width: 160px;
}

.hero__meta span {
  color: rgba(255, 255, 255, 0.74);
}

.meta-item {
  display: grid;
  gap: 7px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.meta-item strong {
  color: #fff;
  font-size: 1.12rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(5, 124, 138, 0.12);
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding-top: 12px;
  line-height: 1.45;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.top-actions {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-fab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: min(260px, calc(100vw - 24px));
  min-width: 46px;
  height: 46px;
  border: 1px solid rgba(220, 229, 229, 0.92);
  border-radius: 999px;
  padding: 0 14px 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(23, 32, 37, 0.16);
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-settings-button {
  min-height: 46px;
  border: 1px solid rgba(220, 229, 229, 0.92);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(23, 32, 37, 0.16);
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.top-bell-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(220, 229, 229, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-dark);
  box-shadow: 0 12px 30px rgba(23, 32, 37, 0.16);
  backdrop-filter: blur(18px);
}

.top-bell-button.has-items {
  border-color: rgba(232, 93, 79, 0.35);
  background: #fff5f3;
}

.bell-glyph {
  position: relative;
  width: 18px;
  height: 19px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 5px 5px;
}

.bell-glyph::before,
.bell-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.bell-glyph::before {
  bottom: -4px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
}

.bell-glyph::after {
  bottom: -9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.top-bell-button strong {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  padding: 0 5px;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

.person-glyph {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf6f6;
}

.person-glyph::before,
.person-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-dark);
}

.person-glyph::before {
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.person-glyph::after {
  bottom: 5px;
  width: 13px;
  height: 7px;
  border-radius: 9px 9px 4px 4px;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 229, 229, 0.76);
}

.section-nav a,
.mobile-tabs a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.section-nav a {
  padding: 10px 16px;
  border-radius: 8px;
}

.section-nav a:hover {
  background: #fff;
}

.guest-mode .section-nav a[href="#expenses"],
.guest-mode .section-nav a[href="#settings"],
.guest-mode .mobile-tabs a[href="#expenses"],
.guest-mode .mobile-tabs a[href="#settings"] {
  display: none;
}

main {
  display: grid;
  gap: 24px;
  align-items: start;
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 96px;
  position: relative;
  z-index: 2;
}

.summary-band,
.people-panel,
#expenses,
#route,
#attractions {
  scroll-margin-top: 88px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

.auth-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(220, 229, 229, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

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

.auth-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.auth-current {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.auth-current strong {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf6f6;
  color: var(--teal-dark);
}

.form-error {
  grid-column: 1 / -1;
  color: #a53227 !important;
  font-weight: 800;
}

.metric,
.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 229, 229, 0.9);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 108px;
  padding: 22px;
  border-radius: 8px;
}

.summary-card {
  cursor: pointer;
}

.summary-card summary {
  list-style: none;
  outline: none;
}

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

.summary-card summary::after {
  content: "+";
  float: right;
  margin-top: -22px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 950;
}

.summary-card[open] summary::after {
  content: "−";
}

.metric > summary > span {
  color: var(--muted);
  font-weight: 750;
}

.metric > summary > strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.metric--accent {
  background: var(--teal-dark);
  color: #fff;
}

.metric--accent > summary > span {
  color: rgba(255, 255, 255, 0.72);
}

.metric--accent .summary-card summary::after,
.metric--accent summary::after {
  color: rgba(255, 255, 255, 0.72);
}

.summary-details {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 229, 229, 0.72);
  cursor: default;
}

.metric--accent .summary-details {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.summary-group {
  display: grid;
  gap: 8px;
}

.summary-group h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.98rem;
}

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

.paying-for-box {
  display: grid;
  gap: 8px;
}

.paying-for-box > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  border-radius: 8px;
  padding: 0 12px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.paying-for-box > summary::-webkit-details-marker {
  display: none;
}

.paying-for-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.paying-for-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.payment-group-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7df;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #fbfdfd;
  border: 1px solid var(--line);
}

.summary-row--settlement {
  display: block;
  padding: 0;
  overflow: hidden;
}

.summary-row--settlement > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  list-style: none;
  cursor: pointer;
}

.summary-row--settlement > summary::-webkit-details-marker {
  display: none;
}

.summary-row--settlement[open] > summary {
  border-bottom: 1px solid rgba(220, 229, 229, 0.72);
}

.metric--accent .summary-row {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.metric--accent .summary-row--settlement[open] > summary {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

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

.summary-row strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.summary-row small,
.summary-empty {
  color: var(--muted);
}

.metric--accent .summary-row small,
.metric--accent .summary-empty {
  color: rgba(255, 255, 255, 0.72);
}

.summary-row b {
  font-size: 0.98rem;
  white-space: nowrap;
}

.summary-row.is-paid {
  opacity: 0.72;
}

.summary-row.is-paid b,
.summary-row.is-paid strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.settlement-paid-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
}

.metric--accent .settlement-paid-toggle {
  color: #fff;
}

.settlement-paid-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.summary-empty {
  margin: 0;
  line-height: 1.4;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
  margin-top: 0;
}

.people-panel {
  margin-top: 0;
}

.people-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.people-panel summary::-webkit-details-marker {
  display: none;
}

.people-panel summary > strong {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #edf6f6;
  color: var(--teal-dark);
}

.people-panel h2 {
  margin: 0;
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.people-panel[open] {
  display: grid;
  gap: 16px;
}

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

.ride-quick-panel {
  display: grid;
  gap: 10px;
}

.ride-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ride-main-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.ride-main-button.is-active {
  background: var(--teal);
  color: #fff;
}

.driver-choice {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbfb;
  border: 1px solid var(--line);
}

.driver-choice small,
.ride-quick-note {
  color: var(--muted);
  font-weight: 850;
}

.driver-choice__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.driver-choice__button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 900;
}

.driver-choice__button.is-active {
  background: var(--teal);
  color: #fff;
}

.driver-choice__button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.layout--route {
  align-items: start;
}

.panel {
  border-radius: 8px;
  padding: 22px;
}

.panel--wide {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.section-heading--compact {
  align-items: flex-start;
}

.kicker {
  margin: 0 0 6px;
  color: var(--coral);
}

.expense-form,
.route-form,
.attraction-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.route-form,
.attraction-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.split-box {
  grid-column: 1 / -1;
  border: 1px dashed #b8caca;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
}

.chip-list,
.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbfb;
  font-weight: 750;
}

.chip input {
  width: auto;
  min-height: auto;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
}

.primary-button {
  align-self: end;
  background: var(--coral);
  color: #fff;
}

.primary-button:hover {
  background: #cf493d;
}

.ghost-button {
  background: #edf6f6;
  color: var(--teal-dark);
}

.danger-button {
  min-height: 34px;
  padding: 0 10px;
  background: #fff0ed;
  color: #a53227;
}

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

.carry-header-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 420px;
}

.personal-list-button {
  min-height: 46px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.personal-list-button:hover {
  background: #cf493d;
}

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

.expense-details {
  display: grid;
  gap: 14px;
}

.expense-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.expense-heading::-webkit-details-marker {
  display: none;
}

.expense-heading h2 {
  margin: 0;
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.expense-heading > strong {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.expense-action-row {
  margin-top: 18px;
}

.expense-groups {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.expense-person {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.expense-person summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.expense-person summary::-webkit-details-marker {
  display: none;
}

.admin-settlement-details {
  display: grid;
  gap: 14px;
}

.settlement-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.settlement-heading::-webkit-details-marker {
  display: none;
}

.settlement-heading h2 {
  margin: 0;
  font-size: var(--section-title-size);
  letter-spacing: 0;
}

.admin-settlement-body {
  display: grid;
  gap: 14px;
}

.expense-person__items {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.expense-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.expense-entry small {
  display: block;
  color: var(--muted);
}

.receipt-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff7df;
  color: #7a4b00;
  font-weight: 900;
}

.purchase-items {
  display: grid;
  gap: 12px;
}

.purchase-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.8fr) minmax(120px, 0.6fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.purchase-row__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.purchase-row__head .icon-button {
  width: 34px;
  height: 34px;
  color: #a53227;
}

.receipt-upload {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #b9caca;
  border-radius: 8px;
  background: #fbfdfd;
}

.receipt-upload input {
  min-height: auto;
  padding: 12px;
}

.receipt-upload small {
  color: var(--muted);
  font-weight: 800;
}

.receipt-preview {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f7f7;
}

.empty-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--muted);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  min-width: 680px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
}

.amount {
  font-weight: 900;
}

.balance-list,
.settlement-list,
.route-list {
  display: grid;
  gap: 10px;
}

.balance-item,
.settlement-item,
.route-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfd;
}

.balance-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
}

.balance-item small,
.settlement-item small,
.route-item small {
  color: var(--muted);
}

.balance-item strong.positive {
  color: var(--green);
}

.balance-item strong.negative {
  color: #b23c31;
}

.settlement-box {
  margin-top: 22px;
}

.settlement-box h3,
.panel--map h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.route-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.route-item::before {
  counter-increment: route;
  content: counter(route);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.route-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.panel--map {
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 185, 66, 0.35), transparent 32%),
    linear-gradient(145deg, #ffffff, #e9f7f7);
}

.route-guide {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.route-lead {
  max-width: 780px;
  margin: -6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-actions .primary-button,
.route-actions .ghost-button {
  min-height: 44px;
}

.route-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.route-guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-route;
  min-width: 0;
}

.route-guide-list li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  min-width: 0;
}

.route-guide-list li::before {
  counter-increment: guide-route;
  content: counter(guide-route);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.route-guide-list li > div {
  min-width: 0;
}

.route-guide-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.route-guide-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.route-photo {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f4;
  color: #fff;
  text-decoration: none;
}

.route-photo--map {
  grid-row: span 2;
}

.route-photo img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  display: block;
}

.route-photo span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(11, 39, 43, 0.78);
  font-weight: 900;
}

.route-map {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf6f6;
}

.route-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.route-map.is-empty::before {
  content: "Конечная точка пока не указана";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.map-expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(23, 32, 37, 0.16);
  font-weight: 900;
}

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

.attraction-form {
  padding-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attraction-form label:has(#attractionDescription) {
  grid-column: 1 / -1;
}

.large-textarea {
  min-height: 180px;
}

.compact-textarea {
  min-height: 96px;
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker + small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.attraction-form .primary-button {
  justify-self: start;
}

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

.attraction-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attraction-card__image {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(5, 124, 138, 0.86), rgba(244, 185, 66, 0.78)),
    url("assets/trip-hero.png") center / cover;
}

.attraction-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.attraction-card__body {
  padding: 14px;
}

.attraction-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.attraction-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.42;
}

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

.event-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 850;
}

.packing-block {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.packing-block h4 {
  margin: 0;
  font-size: 0.98rem;
}

.mini-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mini-add input {
  min-height: 40px;
}

.mini-add button,
.status-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #edf6f6;
  color: var(--teal-dark);
  font-weight: 850;
}

.gear-list,
.personal-list {
  display: grid;
  gap: 10px;
}

.gear-item,
.personal-item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.gear-item__head,
.personal-item__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.gear-owners {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.owner-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 750;
}

.owner-check input {
  width: auto;
  min-height: auto;
}

.personal-person {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
}

.personal-person__top {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

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

.status-button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.status-button.is-active {
  background: var(--teal);
  color: #fff;
}

.status-button:disabled,
.owner-check.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status-button[data-status="need_help"].is-active {
  background: var(--coral);
}

.helper-select {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.helper-select small {
  color: var(--muted);
  font-weight: 800;
}

.helper-select select {
  min-height: 38px;
}

.helper-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.helper-action small {
  color: var(--muted);
  font-weight: 800;
}

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

.profile-form {
  display: grid;
  gap: 14px;
}

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

.public-field {
  display: grid;
  gap: 7px;
}

.public-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.public-toggle input {
  width: auto;
  min-height: auto;
}

.settings-toggles {
  display: grid;
  gap: 12px;
}

.password-row,
.map-pick-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.password-row {
  grid-template-columns: minmax(0, 1fr) 46px auto;
}

.eye-button {
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: #edf6f6;
}

.eye-button::before {
  content: "";
  position: absolute;
  inset: 14px 10px;
  border: 2px solid var(--teal-dark);
  border-radius: 999px / 70%;
}

.eye-button::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-dark);
}

.eye-button.is-active {
  background: #dff0ef;
}

.map-pick-row {
  align-items: center;
}

.map-pick-row--address {
  grid-template-columns: minmax(0, 1fr) auto;
}

.map-pick-row small,
.empty-note {
  color: var(--muted);
}

.profile-fields > .primary-button {
  grid-column: 1 / -1;
}

.participant-pill {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf6f6;
  font-weight: 850;
}

.participant-pill.has-request {
  border-color: #f1b4ad;
  background: #fff0ed;
}

.participant-pill.is-incomplete {
  border-color: #c8d0d3;
  background: #f1f4f5;
}

.participant-pill.is-complete {
  border-color: #a8d8c2;
  background: #edf8f2;
}

.participant-pill__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.participant-pill--compact {
  width: 100%;
  min-width: 0;
}

.participant-pill--compact .participant-pill__head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.participant-pill--compact strong,
.participant-pill--compact span {
  overflow-wrap: anywhere;
}

.participant-name-line {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.18;
}

.admin-mark {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.participant-contact {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.participant-contact--inline {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 950;
}

.icon-button img {
  display: block;
  width: 25px;
  height: 25px;
}

.icon-button--whatsapp img {
  width: 26px;
  height: 26px;
}

.icon-button--location img {
  width: 24px;
  height: 24px;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.participant-detail {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ride-label {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  line-height: 1.25;
}

.ride-subline {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.ride-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.ride-control {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.ride-control.is-active {
  background: var(--teal);
  color: #fff;
}

.participant-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.request-label {
  color: #a53227;
  font-size: 0.82rem;
  line-height: 1.35;
}

.support-label {
  color: #2d7558;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pending-label {
  color: #65727a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.ride-actions,
.rider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ride-toggle {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 850;
}

.ride-toggle.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.participant-pill button {
  min-height: 30px;
}

.participant-pill > button[aria-label] {
  width: 100%;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #a53227;
  font-weight: 900;
}

.pending-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pending-box h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

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

.pending-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.pending-approval {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
}

.pending-approval input {
  width: auto;
  min-height: auto;
}

.pending-approval small {
  display: block;
}

.pending-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.help-summary {
  display: grid;
  gap: 10px;
}

.carry-panel-details {
  display: grid;
  gap: 14px;
}

.carry-panel-summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  padding-right: 42px;
}

.carry-panel-summary::-webkit-details-marker {
  display: none;
}

.carry-panel-summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf6f6;
  color: var(--teal-dark);
  font-weight: 900;
  transform: translateY(-50%);
}

.carry-panel-details[open] > .carry-panel-summary::after {
  content: "-";
}

.carry-panel-body {
  display: grid;
  gap: 12px;
}

.carry-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  overflow: hidden;
}

.carry-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

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

.carry-section h3 {
  margin: 0;
  font-size: 1rem;
}

.carry-section summary > strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #edf6f6;
  color: var(--teal-dark);
}

.carry-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.carry-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4f5;
}

.carry-card--shared,
.carry-card--personal {
  grid-template-columns: minmax(0, 1fr) auto;
}

.carry-inline-button {
  min-width: 82px;
  white-space: nowrap;
}

.carry-shared-actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.carry-edit-button {
  margin-top: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal-dark);
  font: 800 16px/1 "Google Sans", Arial, sans-serif;
  cursor: pointer;
}

.carry-edit-button:hover {
  background: #edf6f6;
}

.carry-card.is-covered {
  border-color: #a8d8c2;
  background: #edf8f2;
}

.carry-card.needs-help {
  border-color: #f1b4ad;
  background: #fff0ed;
}

.carry-card strong,
.carry-card small {
  display: block;
}

.carry-card em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.carry-card small,
.carry-empty {
  color: var(--muted);
  font-weight: 800;
}

.carry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.carry-actions--approval {
  flex-wrap: wrap;
}

.choice-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 0;
  background: #fff;
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
}

.choice-mark--yes {
  color: var(--green);
}

.choice-mark--no {
  color: var(--coral);
}

.choice-mark.is-active {
  background: currentColor;
}

.choice-mark.is-active span {
  color: #fff;
}

.status-button--danger.is-active {
  background: var(--coral);
  color: #fff;
}

.help-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdfd;
}

.help-item strong {
  color: var(--teal-dark);
}

.help-item small {
  color: var(--muted);
}

.modal-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.personal-carry-list {
  display: grid;
  gap: 14px;
}

.personal-carry-section {
  display: grid;
  gap: 6px;
}

.personal-carry-section strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.personal-carry-section ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
}

.personal-carry-section li,
.personal-carry-section p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.file-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #b8caca;
  border-radius: 8px;
  background: #fbfdfd;
}

.file-card span {
  color: var(--ink);
  font-size: 1rem;
}

.mobile-tabs {
  display: none;
}

.modal {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.modal--wide {
  width: min(860px, calc(100% - 28px));
}

.modal::backdrop {
  background: rgba(12, 27, 31, 0.52);
}

.modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #edf6f6;
  color: var(--teal-dark);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.modal-close:hover {
  background: #dfeeee;
}

.auth-modal {
  width: min(860px, calc(100% - 28px));
}

.auth-modal .auth-panel {
  margin: 0;
  box-shadow: var(--shadow);
}

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

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #edf6f6;
}

.settings-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 900;
}

.settings-tab.is-active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 32, 37, 0.1);
}

.settings-pane,
.admin-participants,
.admin-participant-list {
  display: grid;
  gap: 12px;
}

.admin-participant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.admin-participant-toggle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #edf6f6;
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.admin-participant-toggle small,
.admin-participant-details small {
  color: var(--muted);
}

.creator-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf8f2;
  color: var(--green);
  font-weight: 900;
}

.admin-participant-row > .danger-button,
.admin-participant-row > .creator-label {
  justify-self: end;
}

.admin-participant-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.profile-map {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #edf6f6;
}

.profile-map > div {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.map-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero {
    min-height: 560px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 30, 35, 0.2), rgba(4, 30, 35, 0.84)),
      linear-gradient(90deg, rgba(4, 30, 35, 0.42), transparent);
  }

  .hero__content {
    width: min(100% - 28px, 640px);
    padding-bottom: 82px;
  }

  .hero__meta label,
  .hero__meta .meta-item {
    width: min(180px, calc(50% - 6px));
  }

  .section-nav {
    display: none;
  }

  main {
    width: calc(100% - 20px);
    gap: 26px;
    margin-top: -34px;
    margin-bottom: 92px;
  }

  .summary-band,
  .auth-panel,
  .layout,
  .attraction-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    padding: 18px;
  }

  .panel {
    padding: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .expense-form,
  .purchase-row,
  .route-form,
  .attraction-form,
  .auth-form,
  .participant-form,
  .profile-fields,
  .admin-participant-details,
  .password-row,
  .map-pick-row,
  .mini-add,
  .personal-person__top,
  .helper-select,
  .helper-action,
  .pending-item {
    grid-template-columns: 1fr;
  }

  .password-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .password-row #changePasswordButton {
    grid-column: 1 / -1;
  }

  .expense-entry {
    grid-template-columns: 1fr;
  }

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

  .carry-card--shared,
  .carry-card--personal {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .carry-actions {
    justify-content: stretch;
  }

  .carry-card--personal .carry-actions {
    justify-content: flex-end;
  }

  .carry-actions .status-button,
  .carry-card > .status-button {
    width: 100%;
  }

  .carry-card--shared > .status-button,
  .carry-inline-button {
    width: auto;
  }

  .carry-header-actions {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
  }

  #openCarryItemModal,
  #openPersonalCarryList {
    width: 100%;
    padding-inline: 12px;
  }

  #openPersonalCarryList {
    min-width: 0;
  }

  .participant-pill--compact .participant-pill__head {
    grid-template-columns: 1fr auto;
  }

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

  .ride-main-button {
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .account-fab {
    height: 44px;
    max-width: min(160px, calc(100vw - 218px));
    padding-right: 12px;
  }

  .top-actions {
    top: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
  }

  .top-settings-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .top-bell-button {
    width: 44px;
    height: 44px;
  }

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

  .settings-tab {
    min-height: 40px;
    padding: 0 6px;
    font-size: 0.9rem;
  }

  .button-row {
    width: 100%;
  }

  .auth-current {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-current strong {
    justify-content: center;
  }

  .profile-map {
    min-height: 340px;
  }

  .profile-map > div {
    min-height: 340px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  td {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
    border: 0;
    padding: 8px 4px;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

  .route-item {
    grid-template-columns: auto 1fr;
  }

  .route-item .danger-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .route-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-actions .primary-button,
  .route-actions .ghost-button {
    width: 100%;
  }

  .route-photo-grid {
    grid-template-columns: 1fr;
  }

  .route-photo--map {
    grid-row: auto;
  }

  .route-photo,
  .route-photo img {
    min-height: 190px;
  }

  .route-guide-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .route-guide-list h3 {
    font-size: 0.98rem;
  }

  .status-group {
    grid-template-columns: 1fr;
  }

  .mobile-tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(220, 229, 229, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(23, 32, 37, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-tabs a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 8px;
    background: #edf6f6;
    font-size: 0.84rem;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.32rem;
  }

  .hero__meta label,
  .hero__meta .meta-item {
    width: 100%;
  }

  .balance-item {
    grid-template-columns: 1fr;
  }

  td {
    grid-template-columns: 1fr;
  }
}
