:root {
  --color-primary: #ce0f69;
  --color-secondary-teal: #009ca6;
  --color-secondary-purple: #68478d;
  --color-tertiary-gold: #ffb81c;
  --color-tertiary-black: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Several elements below set `display` via a class of equal specificity
   to the UA [hidden] rule, which would otherwise silently win by source
   order and keep them visible while "hidden". Force it explicitly. */
[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f5f7;
  color: var(--color-tertiary-black);
}

a {
  color: inherit;
}

/* ---------------------------------------------------------------------
   App shell / nav
   --------------------------------------------------------------------- */

.app-shell {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-shell.narrow {
  max-width: 560px;
}

.nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #f4f5f7;
  color: var(--color-tertiary-black);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(206, 15, 105, 0.08);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-email {
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-logout:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.card {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card.accent {
  border-top: 6px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary-teal),
    var(--color-secondary-purple),
    var(--color-tertiary-gold)
  );
  border-image-slice: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title {
  margin-bottom: 4px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

h2 {
  font-size: 1.1rem;
}

.subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

.status {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  padding: 40px 0;
}

.status.error {
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 0 0 3px rgba(206, 15, 105, 0.12);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-tertiary-black);
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-text {
  display: inline-block;
  padding: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--color-tertiary-black);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
  color: #6b7280;
  background: #f9fafb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-icon:hover {
  background: rgba(206, 15, 105, 0.1);
  color: var(--color-primary);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid > .input-group {
  min-width: 0;
}

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

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-group {
  margin-bottom: 20px;
}

.input-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.field-hint {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.4;
}

.text-input,
.text-select,
textarea.text-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-tertiary-black);
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.text-input {
  resize: vertical;
  min-height: 70px;
}

.text-input:focus,
.text-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(206, 15, 105, 0.12);
}

.text-select {
  cursor: pointer;
}

/* iOS Safari renders a native date input's value centered and at a
   larger system font size by default, out of step with every other
   field's left-aligned text — and its native widget "shell" paints
   wider than the declared box. Stripping the native appearance makes
   Safari respect our own border/box instead of its own. */
input[type="date"].text-input {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}

input[type="date"].text-input::-webkit-date-and-time-value {
  text-align: left;
}

.text-input:disabled,
.text-select:disabled {
  background: #f4f5f7;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-error {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-success {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary-teal);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

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

/* ---------------------------------------------------------------------
   Auth gate
   --------------------------------------------------------------------- */

.auth-landing {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 40px auto;
}

.hero-copy {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.hero-copy h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

.hero-features li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--color-secondary-teal);
  font-weight: 700;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.divider {
  height: 1px;
  background: #f0f1f3;
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

.empty-state p {
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------------------------------------------------------------------
   Misc
   --------------------------------------------------------------------- */

.powered-by a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.powered-by a:hover {
  color: var(--color-tertiary-black);
}

.powered-by-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.powered-by strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* =======================================================================
   Trip Planner — app-specific components
   ======================================================================= */

/* ---------------------------------------------------------------------
   Trip list (index.html)
   --------------------------------------------------------------------- */

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.trip-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.trip-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.trip-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 26px;
}

.trip-card-dates {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.trip-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-owner {
  color: var(--color-secondary-purple);
  background: rgba(104, 71, 141, 0.1);
}

.badge-shared {
  color: var(--color-secondary-teal);
  background: rgba(0, 156, 166, 0.1);
}

.trip-card-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #9ca3af;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.trip-card-delete:hover {
  color: var(--color-primary);
  background: rgba(206, 15, 105, 0.1);
}

#tripBody > .card,
#itineraryView > .card,
#suggestionsView > .card {
  margin-bottom: 20px;
}

#tripBody > .card:last-child,
#itineraryView > .card:last-child,
#suggestionsView > .card:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   Tab toggle (Itinerary / Suggestions)
   --------------------------------------------------------------------- */

.tab-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-toggle button {
  flex: 1;
  padding: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-toggle button.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(206, 15, 105, 0.08);
}

/* ---------------------------------------------------------------------
   Day navigator (trip.html)
   --------------------------------------------------------------------- */

.day-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.day-nav-label {
  flex: 1;
  min-width: 160px;
}

.day-nav-title {
  font-size: 1rem;
  font-weight: 700;
}

.day-nav-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 1px;
}

/* ---------------------------------------------------------------------
   Day notes — freeform text either side of the hour-slot range
   --------------------------------------------------------------------- */

.day-note-card {
  padding: 16px 20px;
}

.day-note-card label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-bottom: 8px;
}

.day-note-card textarea.text-input {
  min-height: 44px;
  font-size: 0.88rem;
  padding: 10px 12px;
}

.day-note-status {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary-teal);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.day-note-status.visible {
  opacity: 1;
}

/* ---------------------------------------------------------------------
   Hour slots
   --------------------------------------------------------------------- */

/* A plain flex list — one row per hour. A multi-hour item shows its
   full card once, in the hour it starts; every later hour it covers
   gets a separate, quieter "(continued)" marker instead of repeating
   the whole card — see .item-continued below. Deliberately not a
   spanning block: that approach (an item's card literally stretching
   across multiple hour-rows) turned out to fight the layout badly as
   soon as two items with different start hours could overlap in time
   — CSS Grid doesn't merge two independently-spanning boxes that
   overlap without matching row ranges, it just collides them. A
   simple per-hour row with a lightweight continuation marker sidesteps
   that whole class of bug: every hour is always its own row, so two
   overlapping items can never visually collide. */
.slot-list {
  display: flex;
  flex-direction: column;
}

.slot-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f3;
}

.slot-row:last-child {
  border-bottom: none;
}

.slot-time {
  flex-shrink: 0;
  width: 96px;
  padding-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.slot-row.has-items .slot-time {
  color: #374151;
}

.slot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* An empty slot is a dashed, muted placeholder — deliberately quieter
   than a filled slot's solid card, so gaps in the day read at a glance
   without having to read every row's text. */
.slot-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 0.82rem;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.slot-empty:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(206, 15, 105, 0.04);
}

.slot-add-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.slot-add-btn:hover {
  border-color: var(--color-primary);
  border-style: solid;
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Item card
   --------------------------------------------------------------------- */

.item-card {
  width: 100%;
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--color-secondary-teal);
}

.item-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.item-time-range {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-secondary-teal);
  margin-bottom: 2px;
}

/* A muted stand-in for an hour a longer plan runs through but didn't
   start in — no rating editor, no edit/delete, since those belong to
   the real card back at its start hour. Quieter than a real item card
   (no shadow-y background contrast, greyed text) so it doesn't compete
   with anything actually new happening in the same hour. */
.item-continued {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f4f5f7;
  border-left: 3px solid #e5e7eb;
}

.item-continued-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
}

.item-continued-tag {
  font-size: 0.78rem;
  font-style: italic;
  color: #9ca3af;
}

.item-title {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Suggestions — reuses .item-card/.item-card-head/.item-title/
   .item-notes/.item-actions/.rating-pills/.rating-editor as-is, since a
   suggestion is essentially an item without a day/hour.
   --------------------------------------------------------------------- */

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-schedule-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.item-notes {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.4;
}

.item-actions {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
}

.item-actions .btn-icon {
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------------
   Ratings
   --------------------------------------------------------------------- */

.rating-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.rating-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rating-0 .dot { background: #9ca3af; }
.rating-1 .dot { background: var(--color-secondary-purple); }
.rating-2 .dot { background: var(--color-secondary-teal); }
.rating-3 .dot { background: var(--color-primary); }

.rating-editor {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.rating-editor-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-bottom: 8px;
}

.rating-slider-track {
  position: relative;
}

.rating-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  /* Four equal quarters, matching the four tick labels below evenly —
     each of the slider's four snap positions (0%, 33.3%, 66.6%, 100%,
     since it's a min=0/max=3/step=1 range) lands inside its own
     correctly-colored quarter this way. */
  background: linear-gradient(
    90deg,
    #9ca3af 0%,
    #9ca3af 25%,
    var(--color-secondary-purple) 25%,
    var(--color-secondary-purple) 50%,
    var(--color-secondary-teal) 50%,
    var(--color-secondary-teal) 75%,
    var(--color-primary) 75%,
    var(--color-primary) 100%
  );
  cursor: pointer;
  margin: 10px 0 8px;
  transition: background 0.15s ease;
}

/* Nothing chosen yet: a flat, colorless track and a hollow thumb, so
   it reads as "no rating set" rather than looking like an actual
   choice landed on "Not fussed" (its default resting position). Once
   rated — or as soon as the person starts dragging — this class is
   removed and the slider switches to the real colored/solid look. */
.rating-slider.unrated {
  background: #e5e7eb;
}

.rating-slider.unrated::-webkit-slider-thumb {
  background: #f4f5f7;
  border-color: #9ca3af;
  box-shadow: none;
}

.rating-slider.unrated::-moz-range-thumb {
  background: #f4f5f7;
  border-color: #9ca3af;
  box-shadow: none;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-tertiary-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rating-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--color-tertiary-black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rating-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.rating-ticks {
  display: flex;
  justify-content: space-between;
}

.rating-tick {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  flex: 1;
}

.rating-tick:first-child { text-align: left; }
.rating-tick:last-child { text-align: right; }

.rating-tick.active {
  color: var(--color-tertiary-black);
}

/* ---------------------------------------------------------------------
   Share modal
   --------------------------------------------------------------------- */

.share-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 0.85rem;
}

.share-add-row {
  display: flex;
  gap: 8px;
}

.share-add-row .text-input {
  flex: 1;
}

/* ---------------------------------------------------------------------
   Responsive (mobile)
   --------------------------------------------------------------------- */

@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-user {
    justify-content: space-between;
  }

  .card {
    padding: 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .card-header .header-actions,
  .card-header > .btn-primary,
  .card-header > .btn-secondary {
    width: 100%;
  }

  .header-actions .btn-primary,
  .header-actions .btn-secondary {
    width: 100%;
  }

  .day-nav {
    justify-content: space-between;
  }

  .slot-row {
    flex-direction: column;
    gap: 6px;
  }

  .slot-time {
    width: auto;
  }

  .share-add-row {
    flex-direction: column;
  }
}
