:root {
  color-scheme: light;
  --ink: #1f2328;
  --muted: #6a625b;
  --paper: #fffaf2;
  --sand: #f7efe2;
  --line: #e6dccd;
  --blue: #2f6f8f;
  --green: #2f7d5b;
  --amber: #c47a27;
  --coral: #d75d48;
  --shadow: 0 14px 35px rgba(60, 45, 32, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand);
  color: var(--ink);
}

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

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

a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.app-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 14px 116px;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.app-loading img {
  width: min(360px, 84vw);
  height: auto;
}

.app-loading h1,
.app-loading p {
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 0 0 22px 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(28, 65, 81, 0.88), rgba(35, 112, 143, 0.75)),
    url("https://images.unsplash.com/photo-1555993539-1732b0258235?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 4px 0;
  font-size: clamp(2rem, 10vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero .participants {
  margin-top: 8px;
  font-weight: 750;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.hero-side {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  justify-self: start;
  gap: 10px;
}

.hero-logo {
  grid-column: 1 / -1;
  width: min(260px, 72vw);
  max-width: 100%;
  height: auto;
  margin-top: 4px;
  filter: drop-shadow(0 10px 18px rgba(0, 28, 60, 0.22));
}

.hero-card {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  font-size: 2.4rem;
}

.weather-card strong {
  font-size: 1.55rem;
}

.hero-card em {
  max-width: 92px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.hero-card span,
.hero-card small,
.hero-total {
  font-weight: 800;
}

.hero-total {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
}

.session-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.session-main small {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.session-bar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.session-bar select {
  min-width: 112px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}

.session-bar span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.country-info-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(31, 35, 40, 0.58);
}

.country-info-panel article {
  position: relative;
  width: min(820px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.country-info-panel h2 {
  margin: 0;
  padding-right: 46px;
}

.country-close {
  background: var(--ink);
}

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

.country-info-grid section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.country-info-grid span {
  font-size: 1.5rem;
}

.country-info-grid h3,
.country-info-grid p {
  margin: 0;
}

.country-info-grid p {
  color: var(--muted);
  font-weight: 650;
}

.currency-converter {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9f4f8;
}

.currency-converter > div:first-child {
  display: grid;
  gap: 5px;
}

.currency-converter strong {
  color: var(--ink);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.currency-converter small {
  color: var(--muted);
  font-weight: 750;
}

.currency-controls {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(76px, 0.7fr) 42px minmax(76px, 0.7fr);
  align-items: end;
  gap: 8px;
}

.currency-controls label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.currency-controls input,
.currency-controls select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
}

.currency-controls input {
  padding: 0 9px;
}

.currency-swap {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

@media (max-width: 680px) {
  .currency-converter {
    grid-template-columns: 1fr;
  }

  .currency-controls {
    grid-template-columns: minmax(90px, 1fr) minmax(72px, 0.72fr) 42px minmax(72px, 0.72fr);
  }
}

.cabin-bag-panel article {
  width: min(560px, 100%);
}

.bag-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 18px;
}

.bag-illustration {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.bag-handle {
  position: absolute;
  top: 28px;
  width: 72px;
  height: 44px;
  border: 9px solid var(--blue);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}

.bag-body {
  width: 132px;
  height: 154px;
  border: 8px solid var(--blue);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7d9, #cdeefa);
  box-shadow: 0 14px 28px rgba(47, 111, 143, 0.2);
}

.bag-side {
  position: absolute;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bag-height {
  right: 8px;
  top: 82px;
  writing-mode: vertical-rl;
}

.bag-width {
  bottom: 10px;
}

.bag-depth {
  left: 4px;
  top: 80px;
  transform: rotate(-24deg);
}

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

.bag-measures article {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.bag-measures span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.bag-measures strong {
  font-size: 1.45rem;
}

.packing-list-panel article {
  width: min(330px, 100%);
  gap: 12px;
  padding: 18px 18px 20px;
  background: #d8ebf3;
}

.packing-list-panel h2 {
  padding-right: 42px;
  color: #25323a;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
}

.packing-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.packing-list li {
  display: grid;
  grid-template-columns: 14px 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 0;
  color: #30363b;
  font-weight: 500;
}

.drag-dots {
  width: 12px;
  height: 18px;
  background-image: radial-gradient(#6e7c83 1.6px, transparent 1.7px);
  background-size: 6px 6px;
  background-position: 0 0;
}

.packing-list input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.packing-list label {
  line-height: 1.2;
}

.packing-list input:checked + label {
  color: #6c777d;
  text-decoration: line-through;
}

.text-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  padding: 0 10px;
}

.auth-screen {
  display: grid;
  gap: 14px;
}

.auth-hero {
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border-radius: 0 0 28px 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 190, 44, 0.32), transparent 34%),
    linear-gradient(145deg, #fffaf2 0%, #f8e6c4 42%, #eaf7fb 100%);
  box-shadow: var(--shadow);
}

.brand-logo {
  width: min(420px, 86vw);
  height: auto;
  display: block;
  margin: 0 0 12px;
  filter: drop-shadow(0 14px 26px rgba(0, 28, 60, 0.28));
}

.auth-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.1rem, 10vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.auth-hero .eyebrow {
  color: var(--blue);
}

.auth-form h2 {
  margin: 0;
  font-size: 1.15rem;
}

.step-label {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.form-note,
.form-error {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
}

.form-note {
  color: var(--muted);
}

.form-error {
  padding: 10px;
  border-radius: 8px;
  color: #8b281b;
  background: #ffebe8;
}

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

.participant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-buttons button {
  flex: 1 1 120px;
  background: var(--blue);
}

.status-list,
.stack,
.chat-list {
  display: grid;
  gap: 10px;
}

.status-card,
.card,
.form,
.photo-header,
.money-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(74, 59, 42, 0.07);
}

.status-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.status-card p,
.card p,
.photo-header p,
.photo-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.status-icon,
.big-icon {
  font-size: 1.7rem;
}

.pill,
.state {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.pill.ok,
.state.reserve {
  color: #165c41;
  background: #dcf2e4;
}

.pill.warn,
.state.decision {
  color: #865113;
  background: #fff0cc;
}

.state.envisage,
.state.proposition {
  color: #295c78;
  background: #dceff7;
}

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

.module-tile {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.module-tile span {
  font-size: 2rem;
}

.dashboard-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  margin-top: 14px;
}

.dashboard-photo {
  position: relative;
  min-width: 0;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #294d59;
  color: #fff;
  text-align: left;
}

.dashboard-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.dashboard-photo > span {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  font-weight: 850;
  text-align: center;
}

.dashboard-photo > strong {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(20, 28, 30, 0.78);
  color: #fff;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.dashboard-map-panel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dceee7;
}

.dashboard-map {
  position: absolute;
  inset: 0;
}

.dashboard-map-panel > button {
  position: absolute;
  z-index: 500;
  right: 10px;
  bottom: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.2);
  font-weight: 900;
}

.dashboard-weather {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: #e9f4f8;
  color: #193f51;
}

.dashboard-weather span,
.dashboard-weather small {
  font-weight: 800;
}

.dashboard-weather strong {
  font-size: 2.35rem;
  line-height: 1;
}

.dashboard-greek {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.dashboard-greek h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

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

.greek-word-grid article {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-left: 3px solid #2f7d5b;
  background: #f4f8f5;
}

.greek-word-grid span,
.greek-word-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.greek-word-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.dashboard-glance {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 620px) {
  .dashboard-composition {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  }

  .dashboard-photo {
    grid-column: 1 / -1;
    min-height: 250px;
  }

  .dashboard-map-panel {
    min-height: 180px;
  }

  .dashboard-weather {
    min-height: 180px;
    padding: 12px;
  }

  .dashboard-weather strong {
    font-size: 1.75rem;
  }

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

.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.module-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.trip-map-module {
  display: grid;
  gap: 12px;
}

.gps-recorder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gps-recorder > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gps-recorder strong,
.gps-recorder span {
  overflow-wrap: anywhere;
}

.gps-recorder > div span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.gps-rec-button {
  min-width: 84px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #333b42;
  color: #fff;
  font-weight: 950;
}

.gps-rec-button span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ff3b30;
}

.gps-recorder.is-recording {
  border-color: #db2525;
  background: #fff1ef;
}

.gps-recorder.is-recording .gps-rec-button {
  background: #b51f1f;
}

.gps-recorder.is-recording .gps-rec-button span {
  border-radius: 2px;
  background: #fff;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-toolbar button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  padding: 0 12px;
}

.map-toolbar span {
  flex: 1 1 190px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.trip-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dceee7;
  box-shadow: var(--shadow);
}

.map-note-list {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
}

.map-legend,
.important-place-list {
  display: grid;
  gap: 8px;
}

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

.map-legend span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.map-legend b {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.legend-apartment { background: var(--coral); }
.legend-important { background: #d92323; }
.legend-note { background: #2f8fd3; }

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

.important-place-list article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.important-place-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.important-place-list a {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe7e1;
  color: #91301f;
  font-weight: 900;
}

.map-empty,
.map-note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(74, 59, 42, 0.07);
}

.map-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.map-note-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 44px;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
}

.map-note-card button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.map-note-card strong,
.map-note-card span {
  display: block;
  overflow-wrap: anywhere;
}

.map-note-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-note-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: #dcf2e4;
  color: #165c41;
}

.map-delete-button {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.map-marker-apartment,
.map-marker-important {
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px 999px 999px 2px;
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.28);
  color: #fff;
  font-weight: 1000;
  transform: rotate(-45deg);
}

.map-marker-apartment {
  background: var(--coral);
  font-size: 1rem;
}

.map-marker-important {
  background: #d92323;
  font-size: 1.15rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.card {
  padding: 14px;
}

.card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
}

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

.icon-danger {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ffebe8;
  color: var(--coral);
  font-size: 1.2rem;
  font-weight: 900;
}

.icon-approve {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #dcf2e4;
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.cabin-bag-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 2px;
  box-shadow: 0 4px 10px rgba(60, 45, 32, 0.12);
}

.cabin-bag-button img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.passenger-ticket-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.passenger-ticket-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f1c66b;
  border-radius: 8px;
  background: #fff6d8;
  color: #62451a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.passenger-ticket-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.passenger-ticket-group h3 {
  margin: 0;
  font-size: 0.98rem;
}

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

.passenger-ticket-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.passenger-ticket-row strong {
  min-width: 0;
}

.passenger-ticket-row span {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.passenger-ticket-actions {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 6px;
}

.passenger-ticket-actions button,
.ticket-icon-upload {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.ticket-icon-upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 1.15rem;
}

.ticket-icon-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.passenger-ticket-actions button:disabled {
  background: #d6dce2;
  color: #64717c;
}

.ticket-icon-delete {
  background: #d85f5f !important;
}

.ticket-icon-delete:disabled {
  background: #e4caca !important;
}

.packing-list-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 4px 10px rgba(60, 45, 32, 0.12);
}

.packing-list-button span {
  position: relative;
  width: 20px;
  height: 24px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  background:
    linear-gradient(var(--blue), var(--blue)) 7px 6px / 8px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 7px 12px / 8px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 7px 18px / 8px 2px no-repeat,
    #fff;
}

.packing-list-button span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 6px 0 var(--amber), 0 12px 0 var(--amber);
}

.travel-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.travel-details span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.offer-menu,
.form-step {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.offer-menu summary,
.form-step summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.offer-menu a {
  display: inline-flex;
  margin: 0 11px 11px;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.form-step {
  display: grid;
}

.form-step input,
.form-step .split {
  margin: 0 10px 10px;
}

.ticket-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket-panel h3 {
  margin: 0;
  font-size: 1rem;
}

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

.ticket-fields label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.ticket-fields .wide {
  grid-column: 1 / -1;
}

.ticket-fields input {
  width: 100%;
  min-height: 42px;
  border: 2px solid #6da1cf;
  border-radius: 0;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
}

.ticket-fields input:disabled {
  border-color: var(--line);
  background: #fffaf2;
  color: var(--ink);
  opacity: 1;
}

.ticket-links {
  display: grid;
  gap: 6px;
}

.ticket-links a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #5b9bd3;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

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

.ticket-edit-actions button,
.ticket-edit-actions span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: #d8ecfb;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 850;
}

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

.actions button,
.actions a,
.file-action,
.form button,
.expense button,
.transfer button {
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
}

.actions button {
  background: #425466;
}

.file-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.file-action.secondary {
  background: #425466;
}

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

.votes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.votes button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.votes .yes {
  border-color: #8ac7a5;
  background: #e6f6eb;
}

.votes .no {
  border-color: #e2a39a;
  background: #ffebe8;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.add-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.add-panel > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.add-panel > summary::marker {
  color: var(--blue);
}

.add-panel .form {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.form h3,
.module-view h3 {
  margin: 0;
  font-size: 1rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

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

.password-field input {
  padding-right: 54px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 42px;
  min-height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #e8f3f7;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.upload-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.check-row input {
  width: 18px !important;
  min-height: 18px !important;
}

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

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 10px;
}

legend {
  color: var(--muted);
  font-weight: 850;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 6px;
}

fieldset input {
  width: auto !important;
  min-height: auto !important;
}

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

.wide-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 850;
}

.quick-fix {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quick-fix label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.quick-fix select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
}

.money-summary article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.money-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.money-summary strong {
  font-size: 1.3rem;
}

.expense {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.expense button {
  background: var(--green);
}

.expense-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e8;
}

.expense-actions span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.expense-actions button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.expense button.edit {
  background: var(--blue);
}

.expense button.secondary {
  background: var(--blue);
}

.expense button.danger {
  background: var(--coral);
}

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

.expense-edit input,
.expense-edit select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.expense-edit fieldset {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.expense-edit fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 10px 5px 0;
  font-weight: 750;
}

.expense.settled {
  opacity: 0.58;
}

.expense.settled .expense-actions {
  opacity: 1;
}

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

.participant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.participant-row button.danger {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--coral);
  color: #fff;
  font-weight: 850;
}

@media (max-width: 520px) {
  .expense-actions {
    grid-template-columns: 1fr;
  }

  .participant-row {
    grid-template-columns: 1fr;
  }
}

.transfer {
  display: grid;
  gap: 10px;
}

.chat-list {
  max-height: 54vh;
  overflow: auto;
  padding-right: 4px;
}

.message {
  max-width: 84%;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--message-bg, #fff);
  box-shadow: 0 7px 16px rgba(74, 59, 42, 0.08);
}

.message.mine {
  justify-self: end;
  background: var(--message-bg, #dceff7);
  border: 1px solid rgba(47, 127, 159, 0.22);
}

.message p {
  margin: 4px 0;
}

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

.chat-form {
  position: sticky;
  bottom: 82px;
}

.photo-header {
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.export-actions button,
.export-actions a {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.public-photo-link {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.photo-open {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.photo-card img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.photo-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 10px;
  background: #fff;
}

.photo-meta span,
.photo-meta p {
  display: block;
  margin: 0;
}

.photo-meta span {
  font-weight: 850;
}

.photo-meta p {
  color: var(--muted);
}

.photo-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.26);
  font-size: 1.45rem;
  font-weight: 900;
}

.busy-overlay {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 45;
  width: min(360px, calc(100vw - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(31, 35, 40, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
}

.busy-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 999px;
  animation: busy-spin 0.85s linear infinite;
}

@keyframes busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 18px;
  background: rgba(12, 18, 24, 0.92);
}

.photo-viewer figure {
  max-width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 12px;
  justify-self: center;
  margin: 0;
}

.viewer-tools {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer-tools button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 8px 12px;
  font-weight: 900;
}

.photo-viewer img,
.photo-viewer .photo-placeholder {
  max-width: 100%;
  max-height: calc(100vh - 128px);
  width: auto;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 8px;
}

.photo-viewer figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-weight: 850;
}

.photo-viewer figcaption span {
  color: rgba(255, 255, 255, 0.72);
}

.photo-viewer.slideshow-mode {
  grid-template-columns: 1fr;
  padding: 0;
}

.photo-viewer.slideshow-mode figure {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  gap: 0;
}

.photo-viewer.slideshow-mode .viewer-media {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.photo-viewer.slideshow-mode img,
.photo-viewer.slideshow-mode .photo-placeholder {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.photo-viewer.slideshow-mode figcaption {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
}

.photo-viewer.slideshow-mode .viewer-music {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10px;
  bottom: -10px;
  opacity: 0;
  pointer-events: none;
}

.viewer-music {
  width: min(420px, 100%);
  height: 78px;
  border: 0;
  border-radius: 8px;
  justify-self: center;
}

.viewer-close,
.viewer-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 900;
}

.viewer-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
}

.viewer-nav {
  width: 46px;
  height: 64px;
  font-size: 3rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 10;
  width: min(880px, calc(100% - 20px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(230, 220, 205, 0.86);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.bottom-nav button.active {
  background: var(--ink);
  color: #fff;
}

.bottom-nav .nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 24px;
  font-size: 1.15rem;
}

.chat-unread-badge {
  position: absolute;
  top: -7px;
  right: -12px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffaf2;
  border-radius: 999px;
  background: #d92323;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.bottom-nav small {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .app-shell {
    padding-top: 24px;
  }

  .hero {
    min-height: 240px;
    border-radius: 22px;
    grid-template-columns: 1fr auto;
  }

  .hero-side {
    grid-template-columns: auto auto auto;
    justify-self: end;
  }

  .hero-logo {
    grid-column: auto;
    width: 220px;
    max-width: 28vw;
    margin-top: 14px;
  }

  .auth-screen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .auth-hero {
    grid-column: 1 / -1;
    min-height: 340px;
    border-radius: 22px;
  }

  .hero-total {
    align-self: end;
  }

  .status-list,
  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 390px) {
  .country-info-grid,
  .split,
  .ticket-fields,
  .money-summary,
  fieldset {
    grid-template-columns: 1fr;
  }

  .bottom-nav small {
    display: none;
  }

  .photo-viewer {
    grid-template-columns: 42px 1fr 42px;
    padding: 10px;
  }

  .viewer-nav {
    width: 38px;
    height: 54px;
    font-size: 2.4rem;
  }

  .photo-viewer figcaption {
    display: grid;
  }

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

  .bag-illustration {
    min-height: 210px;
  }

  .bag-measures {
    grid-template-columns: 1fr;
  }

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

  .hero-side {
    grid-template-columns: auto auto;
    justify-self: start;
  }

  .hero-logo {
    grid-column: 1 / -1;
    width: min(230px, 72vw);
    max-width: 100%;
    justify-self: start;
  }

  .weather-card {
    grid-column: auto;
  }
}
