/* ── Desktop-only elements — hidden on mobile ── */
.dk-actions       { display: none; }
.expense-table-head { display: none; }

/* ── Cards ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.card-title { font-size: var(--text-body); margin-bottom: var(--space-1); }
.card-sub   { font-size: var(--text-sm);   color: var(--ink-3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius);
  font-size: var(--text-body);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background   var(--dur-fast) var(--ease-smooth),
    color        var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow   var(--dur-fast) var(--ease-smooth),
    transform    var(--dur-fast) var(--ease-smooth),
    opacity      var(--dur-fast) var(--ease-smooth);
}
.btn:active { transform: scale(0.97); }

.btn-primary   { background: var(--accent);       color: white; }
.btn-secondary { background: var(--accent-light);  color: var(--accent); }
.btn-ghost     { background: transparent; color: var(--ink-2); border: 1px solid var(--border); }
.btn-danger    { background: var(--danger-light);  color: var(--danger); }
.btn-full      { width: 100%; margin-top: 8px; }
.btn-sm        { height: 34px; padding: 0 12px; font-size: var(--text-sm); }

@media (hover: hover) {
  .btn-primary:hover   { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(45,90,78,0.3); }
  .btn-secondary:hover { background: #d4e8e3; }
  .btn-ghost:hover     { background: var(--sand); border-color: var(--border-strong); }
  .btn-danger:hover    { background: #fbd0cd; }
}

/* ── Icon button ── */
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--stone);
  font-size: 15px;
  flex-shrink: 0;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    transform  var(--dur-fast) var(--ease-smooth);
}
.icon-btn:active { transform: scale(0.92); }
@media (hover: hover) {
  .icon-btn:hover { background: var(--border); }
}

/* ── Inputs ── */
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 16px; /* keep 16px explicitly — prevents iOS auto-zoom */
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow   var(--dur-fast) var(--ease-smooth);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 90, 78, 0.12);
}
.input::placeholder { color: var(--ink-4); }
.input-emoji { text-align: center; font-size: 20px; padding: 0 6px; }

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b64' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: white;
  padding-right: 32px;
  cursor: pointer;
}

textarea.input {
  height: auto;
  padding: 12px;
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}

.form-group { margin-bottom: var(--space-3); }
.form-label {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; min-width: 0; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body);
  cursor: pointer;
  padding: 6px 0;
  min-height: 44px;
}
.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* ── Chips ── */
.chip-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
.chip-strip::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-sm);
  white-space: nowrap;
  background: white;
  border: 1px solid var(--border);
  color: var(--ink-2);
  min-height: 34px;
  cursor: pointer;
  transition:
    background    var(--dur-fast) var(--ease-smooth),
    color         var(--dur-fast) var(--ease-smooth),
    border-color  var(--dur-fast) var(--ease-smooth);
}
.chip-active, .chip.active { background: var(--accent); color: white; border-color: var(--accent); }

@media (hover: hover) {
  .chip:not(.active):not(.chip-active):hover {
    background: var(--sand);
    border-color: var(--border-strong);
  }
}

/* ── Hero card ── */
.hero-card {
  background: var(--accent);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  color: white;
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 24px);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform   var(--dur-fast) var(--ease-smooth),
    box-shadow  var(--dur-fast) var(--ease-smooth);
}
/* Decorative circles */
.hero-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -24px; right: 56px;
  width: 90px; height: 90px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
@media (hover: hover) {
  .hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45,90,78,0.35);
  }
}
.hero-card:active { transform: scale(0.99); }

.hero-emoji      { font-size: clamp(26px, 4.5vw, 32px); display: block; margin-bottom: 8px; }
.hero-title      { font-size: clamp(18px, 3.5vw, 22px); margin-bottom: 4px; line-height: 1.2; letter-spacing: -0.01em; }
.hero-dates      { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-sm); opacity: 0.8; margin-bottom: 8px; }
.hero-meta       { display: flex; gap: 14px; font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-sm); opacity: 0.85; }
.hero-countdown  { position: absolute; top: clamp(12px, 2.5vw, 18px); right: clamp(14px, 3vw, 20px); text-align: right; }
.hero-days       { font-size: clamp(22px, 4.5vw, 28px); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-days-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px;
}

/* ── Clock widget ── */
.clock-widget {
  display: flex;
  align-items: stretch;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  overflow: hidden;
}
.clock-col {
  flex: 1;
  padding: clamp(14px, 2.5vw, 18px) clamp(14px, 2.8vw, 20px);
}
.clock-divider { width: 1px; background: var(--border); margin: 12px 0; }
.clock-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: var(--space-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clock-time {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: normal; line-height: 1; margin-bottom: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.clock-date { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-sm); color: var(--ink-3); margin-bottom: 2px; }
.clock-abbr { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-xs); color: var(--ink-4); }

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 12px);
  margin-bottom: var(--space-4);
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 16px) clamp(12px, 2.2vw, 18px);
  cursor: pointer;
  transition:
    transform     var(--dur-fast) var(--ease-smooth),
    box-shadow    var(--dur-fast) var(--ease-smooth),
    border-color  var(--dur-fast) var(--ease-smooth);
}
.stat-card:active { transform: scale(0.98); }
@media (hover: hover) {
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,26,24,0.15);
  }
}
.stat-value {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: normal; margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); color: var(--ink-4);
  text-transform: uppercase; letter-spacing: 0.07em;
}

/* ── Stop strip ── */
.stop-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.stop-strip::-webkit-scrollbar { display: none; }

.stop-card-mini {
  min-width: clamp(88px, 14vw, 100px);
  flex-shrink: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition:
    border-color  var(--dur-fast) var(--ease-smooth),
    background    var(--dur-fast) var(--ease-smooth),
    transform     var(--dur-fast) var(--ease-smooth);
}
.stop-card-mini:active { transform: scale(0.97); }
@media (hover: hover) {
  .stop-card-mini:not(.active):hover {
    border-color: rgba(26,26,24,0.22);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}
.stop-card-mini.active { border-color: var(--accent); background: var(--accent-light); }

.btn-stop-delete {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: var(--stone);
  color: var(--ink-3);
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color      var(--dur-fast) var(--ease-smooth);
}
@media (hover: hover) {
  .btn-stop-delete:hover { background: var(--danger-light); color: var(--danger); }
}

.stop-card-emoji  { font-size: clamp(18px, 3vw, 22px); display: block; margin-bottom: 5px; }
.stop-card-city   { font-size: var(--text-xs); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-card-nights { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-xs); color: var(--ink-4); }

/* ── Progress bars ── */
.progress-bar {
  height: 5px;
  background: var(--stone);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-spring);
}
.progress-fill.warm { background: var(--accent-2); }

/* ── Skeleton loading ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--stone)  25%,
    #efede8       50%,
    var(--stone)  75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-hero { height: 130px; margin-bottom: var(--space-4); }
.skeleton-card { height: 80px;  margin-bottom: var(--space-3); }
.skeleton-line { height: 14px;  margin-bottom: 8px; border-radius: var(--radius-xs); }

/* ── Color picker ── */
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.color-swatch {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    transform    var(--dur-fast) var(--ease-smooth);
}
.color-swatch.active { border-color: var(--ink); transform: scale(1.1); }
@media (hover: hover) {
  .color-swatch:not(.active):hover { transform: scale(1.08); }
}

/* ── Split list ── */
.split-list { display: flex; flex-direction: column; gap: 8px; }
.split-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}
.split-item label {
  flex: 1;
  font-size: var(--text-body);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.split-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.split-amount {
  width: 72px; height: 36px;
  padding: 0 8px; font-size: var(--text-base);
  text-align: right;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ── Trip select ── */
.trip-switcher-wrap { flex: 1; min-width: 0; }
.trip-select {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: var(--text-base);
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b64' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-smooth);
}
.trip-select:focus { border-color: var(--accent); }

/* ── Balance row ── */
.balance-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.balance-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-base); font-weight: 700;
  color: white; flex-shrink: 0;
}
.balance-name   { flex: 1; font-size: var(--text-body); }
.balance-amount { font-size: var(--text-body); font-weight: normal; }
.balance-positive { color: var(--accent); }
.balance-negative { color: var(--danger); }

/* ── Settle up box ── */
.settle-box {
  background: var(--accent-2-light);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.settle-box-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-2); margin-bottom: 8px;
}
.settle-item {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  padding: 4px 0; color: var(--ink-2);
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); font-weight: 600;
  white-space: nowrap; letter-spacing: 0.02em;
}
.badge-urgent    { background: var(--danger-light); color: var(--danger); }
.badge-confirmed { background: var(--accent-light); color: var(--accent); }
.badge-booked    { background: #e8f4fd; color: #2980b9; }
.badge-todo      { background: var(--stone);         color: var(--ink-3); }
.badge-idea      { background: var(--accent-2-light);color: var(--accent-2); }
.badge-planned   { background: var(--stone);         color: var(--ink-3); }
.badge-done      { background: var(--accent-light);  color: var(--accent); }

/* ── Plan sub-tabs ── */
.plan-tabs {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-sm); white-space: nowrap;
  color: var(--ink-3); background: transparent;
  min-height: 34px; min-width: 44px;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color      var(--dur-fast) var(--ease-smooth);
}
.plan-tab.active { background: var(--accent); color: white; }
@media (hover: hover) {
  .plan-tab:not(.active):hover { background: var(--stone); color: var(--ink-2); }
}

/* ── Notes editor ── */
.notes-editor {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: var(--text-body);
  line-height: 1.7;
  background: white;
  resize: vertical;
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow   var(--dur-fast) var(--ease-smooth);
}
.notes-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,78,0.1);
}

/* ── Checklist items ── */
.checklist-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.checklist-item input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: var(--accent); flex-shrink: 0; margin-top: 1px;
}
.checklist-text     { flex: 1; font-size: var(--text-body); line-height: 1.4; }
.checklist-text.done { text-decoration: line-through; color: var(--ink-4); }
.checklist-meta     { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-xs); color: var(--ink-4); margin-top: 2px; }

/* ── Weather strip ── */
.weather-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(10px, 2vw, 14px) clamp(12px, 2.5vw, 18px);
  margin-bottom: 8px;
}
.weather-city {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); font-weight: 600;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.weather-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(4px, 1vw, 8px);
}
.weather-day {
  text-align: center; padding: 10px 4px 8px;
  background: var(--sand); border-radius: var(--radius-sm);
}
.weather-date  { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-xs); color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.weather-icon-lg { font-size: clamp(22px, 4vw, 26px); line-height: 1; margin-bottom: 6px; }
.weather-temps { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-sm); color: var(--ink); }
.weather-min   { color: var(--ink-4); }
.weather-loading { font-family: system-ui, -apple-system, sans-serif; font-size: var(--text-sm); color: var(--ink-4); padding: 4px 0 8px; }

/* ── Desktop content grids ── */
@media (min-width: 900px) {
  /* Packing: 2-column category grid */
  #pack-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  /* Overall progress bar + empty state span both columns */
  #pack-content > .pack-overall,
  #pack-content > p { grid-column: 1 / -1; }

  /* Expenses: wider item rows */
  .expense-item {
    padding: 14px 0;
  }

  /* Section labels: a bit more breathing room */
  .section-label { margin-top: 20px; }
}

/* ── Home tab 2-column layout ── */
.home-layout {
  /* Mobile: single column, children stack naturally */
}

.home-main  { /* inherits block flow */ }
.home-aside { /* inherits block flow on mobile */ }

@media (min-width: 900px) {
  .home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    column-gap: 28px;
    align-items: start;
  }

  /* Aside sticks as the left column scrolls */
  .home-aside {
    position: sticky;
    top: 24px;
  }

  /* Remove default bottom margin from last weather card to avoid extra gap */
  .home-aside .weather-card:last-child { margin-bottom: 0; }
}

/* ── Delete button inline ── */
.btn-delete {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--stone); color: var(--ink-3); font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color      var(--dur-fast) var(--ease-smooth);
}
@media (hover: hover) {
  .btn-delete:hover { background: var(--danger-light); color: var(--danger); }
}

/* ── Member/access rows ── */
.members-list { padding: 4px 0; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }

.member-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}

.member-info { flex: 1; min-width: 0; }

.member-name {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-body);
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Legacy selector — keep for any existing rendered HTML */
.member-email {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-body);
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.member-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); color: var(--ink-4); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.member-you {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs); color: var(--ink-4); font-weight: 400;
}

.member-controls {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  max-width: 40%;
}

/* Small role-selector in member rows */
.input-sm {
  height: 30px !important;
  padding: 0 8px !important;
  font-size: var(--text-xs) !important;
}

/* Role badges */
.badge-owner  { background: var(--accent-light); color: var(--accent); }
.badge-editor { background: #e8f4fd; color: #2980b9; }
.badge-viewer { background: var(--stone); color: var(--ink-3); }

/* Viewer-mode badge in trip header */
#viewer-badge { cursor: default; }

/* Nav user area — shown only on ≥1024px sidebar (desktop.css reveals it) */
.nav-user-area { display: none; }

/* Extra small button variant */
.btn-xs {
  padding: 0 10px !important;
  height: 28px !important;
  font-size: var(--text-xs) !important;
  border-radius: var(--radius-sm) !important;
}

/* ── Onboarding sheet ──────────────────────────────────────────────────── */
.onboarding-sheet {
  /* No handle — user must submit to dismiss */
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.onboarding-inner {
  padding: 32px 24px 40px;
  text-align: center;
}

.onboarding-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 8px;
}

.onboarding-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-body);
  color: var(--ink-3);
  margin: 0 0 24px;
}

.onboarding-inner .form-row {
  text-align: left;
}

/* ── Language switcher ─────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 8px 12px 4px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Lang-switcher inside nav is desktop-sidebar only (nav-user-area handles display) */
nav .lang-switcher { display: none; }

/* ── Mobile language footer (bottom of home tab) ── */
.home-lang-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border);
  background: var(--sand);
}

.home-lang-label {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--text-xs);
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.home-lang-footer .lang-switcher {
  display: flex;
  padding: 0;
}

/* Hide mobile footer on desktop — sidebar has it */
@media (min-width: 1024px) {
  .home-lang-footer { display: none; }
}
