:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --panel: #ffffff;
  --text: #1c211f;
  --muted: #5d6763;
  --line: #dfe2dd;
  --accent: #0b6b57;
  --train: #7a2e8e;
  --bus: #b4321f;
  --bad: #b3261e;
  --warn: #8a5a00;
  --live: #0b8a5f;
  --chip-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --panel: #1a1f1d;
    --text: #e8ecea;
    --muted: #a0aba6;
    --line: #2d3431;
    --accent: #5fd0b5;
    --train: #a45dbb;
    --bus: #c9503c;
    --bad: #ff8a80;
    --warn: #e6b450;
    --live: #4fd6a1;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); }
.muted { color: var(--muted); font-weight: 400; }

button, input { font: inherit; color: inherit; }
button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}
button:hover { border-color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto 16px;
}
.top h1 { font-size: 22px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.clock { font-size: 28px; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "weather weather" "outfit look" "planner side" "wardrobe wardrobe";
  gap: 16px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}
.weather { grid-area: weather; }
.planner { grid-area: planner; }
.outfit { grid-area: outfit; }
.look { grid-area: look; }
.side { grid-area: side; display: grid; gap: 16px; min-width: 0; }
.wardrobe { grid-area: wardrobe; }

.panel {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.panel-head h2 { font-size: 16px; }
.status { margin-left: auto; color: var(--muted); font-size: 12px; }
.status.stale { color: var(--bad); font-weight: 600; }
.source { margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Weather */
.now-and-hours { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: stretch; }
.now { display: flex; align-items: center; gap: 12px; }
.now-icon { font-size: 44px; line-height: 1; }
.now-temp { font-size: 38px; font-weight: 600; line-height: 1; }
.now-text { color: var(--muted); font-size: 13px; }
.hours {
  display: flex;
  flex: 1 1 340px;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
}
.hour { flex: 1 0 50px; padding: 4px; text-align: center; font-size: 13px; }
.hour .icon { display: block; font-size: 20px; }
.hour .rain { display: block; min-height: 18px; color: var(--accent); font-size: 12px; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.day { padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.day b { display: block; }

/* Trip planner */
.from { margin-bottom: 14px; }
.from label { display: block; margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
.from input { width: 100%; max-width: 420px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.from .results { max-width: 420px; }
#use-location { margin-top: 6px; }
[hidden] { display: none !important; }
.at-place { margin-bottom: 12px; font-weight: 600; }
.destinations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 24px; }
.destination h3 { padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.trips, .steps { margin: 0; padding: 0; list-style: none; }
.trip { padding: 10px 0; border-bottom: 1px solid var(--line); }
.trip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; }
.trip-head small { color: var(--muted); }
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 4px 0;
  font-size: 14px;
}
.step small { color: var(--muted); }
.line {
  padding: 1px 4px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line.rail { background: var(--train); }
.line.bus { background: var(--bus); }
.line.metro { background: #0b5fa5; }
.line.tram { background: #0a7a78; }
.line.water { background: #2f6f8f; }
.line.other { background: #5d6763; }
.line.walk { background: transparent; color: var(--muted); font-weight: 400; }
.late { display: block; color: var(--warn); font-size: 12px; }
.leg-note { display: block; color: var(--warn); font-size: 12px; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--live);
  vertical-align: 1px;
}
.step.cancelled b { color: var(--muted); text-decoration: line-through; }
.tag-bad { display: block; color: var(--bad); font-size: 12px; font-weight: 600; }

/* Traffic and news */
.traffic-group + .traffic-group { margin-top: 14px; }
.traffic-group h3 { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.notice, .story { padding: 7px 0; border-bottom: 1px solid var(--line); }
.notice:last-child, .story:last-child { border-bottom: 0; }
.notice p, .story p { color: var(--muted); font-size: 13px; }
.notice.bad b { color: var(--bad); }
details { margin-top: 8px; }
summary { color: var(--accent); cursor: pointer; font-size: 13px; }
.story a { color: var(--text); font-weight: 600; text-decoration: none; }
.story a:hover { text-decoration: underline; }
.empty { color: var(--muted); font-size: 13px; }

/* Settings */
dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
dialog h2 { font-size: 18px; }
dialog h3 { margin: 18px 0 6px; font-size: 14px; }
dialog label { display: block; margin: 8px 0 4px; font-size: 13px; }
dialog input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.results button { width: 100%; margin-top: 4px; text-align: left; }
.quiet { margin-top: 18px; color: var(--muted); }
.stories { margin: 0; padding: 0; list-style: none; }
.destination-setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.destination-setting .quiet { margin-top: 0; }

/* Wardrobe: label test uploader */
.wardrobe { display: grid; gap: 12px; }
.wardrobe .panel-head { margin-bottom: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.shot:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot.filled { border-style: solid; border-color: var(--accent); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot-text { display: grid; gap: 4px; padding: 10px; }
.shot-text b { color: var(--text); }
.shot-text small { font-size: 12px; }
.shot .tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--text); font-size: 12px; font-weight: 600; }
.wardrobe .field { color: var(--muted); font-size: 13px; margin-bottom: -6px; }
.wardrobe input[type="text"] { width: 100%; max-width: 420px; box-sizing: border-box; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
button.primary { justify-self: start; padding: 10px 16px; border-color: var(--accent); background: var(--accent); color: var(--panel); font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
.message { min-height: 1.4em; font-size: 13px; }
.message.error { color: var(--bad); font-weight: 600; }
.saved-head { margin-top: 6px; font-size: 14px; }
.saved { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.saved li { display: grid; grid-template-columns: auto 56px 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.saved li:last-child { border-bottom: 0; }
.saved .n { min-width: 2.2em; color: var(--muted); font-size: 13px; }
.saved img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.saved .meta { display: grid; gap: 4px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.saved .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.saved .actions button { padding: 4px 10px; font-size: 12px; }
.danger { color: var(--bad); }
.hint { color: var(--muted); font-size: 12px; margin-top: -4px; }
.usage { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.usage legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.chips { display: grid; gap: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.wardrobe-search { width: 100%; max-width: 420px; margin: 4px 0 8px; }
.brand-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.edit-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--panel); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.saved .thumb { position: relative; display: block; width: 56px; height: 56px; }
.saved .more { position: absolute; right: 2px; bottom: 2px; padding: 0 5px; border-radius: 999px; background: var(--panel); font-size: 11px; font-weight: 600; }
.saved li.editing { align-items: start; }
.saved li.editing .meta { grid-column: 1 / -1; gap: 8px; }
.saved .edit-note { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.button-like { position: relative; display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 12px; cursor: pointer; }
.button-like input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.button-like:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary.small { padding: 4px 10px; font-size: 12px; }
.small-text { font-size: 12px; }

label.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
dialog label.check input { width: auto; padding: 0; }

/* Trip rules and scooters */
.trip-rules { display: grid; gap: 4px; }
.trip-rules > label:first-child { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.trip-rules select { width: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.scooters { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.line.scooter { background: var(--live); }
.trip-label { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: var(--live); color: var(--chip-text); font-size: 12px; font-weight: 600; }

/* Hidden routes */
.trip-head { position: relative; padding-right: 34px; }
.trip-menu { position: absolute; top: -2px; right: 0; }
.trip-menu > summary { list-style: none; padding: 0 8px; border-radius: 6px; color: var(--muted); font-size: 18px; line-height: 1.2; cursor: pointer; }
.trip-menu > summary::-webkit-details-marker { display: none; }
.trip-menu[open] > summary { background: var(--bg); color: var(--text); }
.trip-menu-items { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; min-width: 12rem; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 6px 18px rgb(0 0 0 / .15); }
.trip-menu-items button { width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; font-size: 14px; }
.trip-menu-items button:hover { background: var(--bg); }
.advanced { margin-top: 10px; }
.advanced > summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.advanced[open] > summary { margin-bottom: 8px; }
.advanced p { margin: 0 0 8px; font-size: 13px; }
.advanced .data-actions { margin-bottom: 10px; }
.hidden-routes { display: grid; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.hidden-routes li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hidden-routes .quiet { margin: 0; }

/* Wardrobe grid */
.add-garment { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.add-garment[open] { padding-bottom: 14px; }
.add-garment > summary { font-weight: 600; font-size: 14px; cursor: pointer; }
.add-garment > :not(summary) { display: block; margin-top: 12px; }
.add-garment > .shots { display: grid; }
.add-garment > .usage { display: grid; }
.add-garment > label.field { margin-bottom: -6px; }
.wardrobe #label-message:empty { display: none; }
.filters { display: grid; gap: 8px; }
.chip .count { margin-left: 2px; opacity: .7; font-weight: 400; }
.chip.small { padding: 4px 10px; font-size: 12px; }
.garment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.garment-card {
  display: grid; gap: 4px; align-content: start; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer;
}
.garment-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.garment-card .card-name { padding: 0 10px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.garment-card .card-meta { min-height: 1.3em; padding: 0 10px 10px; color: var(--muted); font-size: 12px; }
.garment-card .warn { color: var(--warn); }
.garment-dialog { width: min(640px, calc(100vw - 24px)); }
.garment-dialog .facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.garment-dialog .facts dt { color: var(--muted); }
.garment-dialog .facts dd { margin: 0; }
.saved.single li { display: block; padding: 0; border-bottom: 0; }
.garment-dialog input[type="radio"], .garment-dialog input[type="checkbox"] { width: auto; padding: 0; }
.garment-dialog .facts .unchecked { grid-column: 1 / -1; color: var(--warn); }
/* In the pop-up the photos show large above; the list row's number and thumbnails go. */
.saved.single .n, .saved.single li > img, .saved.single .thumb { display: none; }
.garment-dialog .review-photos { margin-bottom: 12px; }
.garment-dialog .review-photos a { flex-basis: 70%; }

/* Footwear in the scan check */
.review .footwear { margin: 0; padding: 0; border: 0; display: grid; gap: 2px; }
.review .footwear input { width: auto; padding: 0; }

/* Today's outfit */
.rate { display: grid; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; font-weight: 600; }
.rate-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.rate-buttons button { padding: 6px 12px; font-weight: 400; }
.outfit-weather { margin-bottom: 10px; font-size: 14px; }
.outfit-picks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.outfit-picks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.outfit-picks button.outfit-open { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; border: 0; background: none; text-align: left; font-size: inherit; cursor: pointer; }
.outfit-picks button.outfit-open:hover b { text-decoration: underline; }
.outfit-picks img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.outfit-picks .what { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.outfit-picks .slot { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.outfit-picks .why { color: var(--muted); font-size: 13px; }
.outfit-picks button { padding: 4px 10px; font-size: 12px; }
.look-picture { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 8px; background: #fff; }
.look-wait { color: var(--muted); }
.look-about { margin-bottom: 10px; }
.outfit-advice { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.outfit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.commute-times { display: flex; flex-wrap: wrap; gap: 12px; }
.commute-times label { display: grid; gap: 4px; margin: 0; font-size: 13px; }
.commute-times input { width: auto; }

/* Checking a scan */
.pill.ok { border-color: var(--live); color: var(--live); font-weight: 600; }
.pill.warn { border-color: var(--warn); color: var(--warn); }
.row-status { font-size: 12px; color: var(--muted); }
.row-status.error { color: var(--bad); font-weight: 600; }
.review .field { display: grid; gap: 4px; margin: 0; color: var(--muted); font-size: 12px; }
.review select, .review input[type="text"], .review input[type="number"] {
  box-sizing: border-box; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.review-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.review-photos a { flex: 0 0 78%; scroll-snap-align: start; }
.review-photos img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 8px; }
.part { display: grid; gap: 6px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.part-head { display: flex; gap: 8px; align-items: center; width: 100%; padding: 0; }
.part-head input[type="text"] { flex: 1; }
.main-pick { display: flex; gap: 4px; align-items: center; font-size: 13px; white-space: nowrap; }
.fibre-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto 32px; gap: 6px; align-items: center; }
.fibre-row .unit { color: var(--muted); font-size: 13px; }
.quiet-x { padding: 2px 0; border-color: transparent; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }

/* Privacy notice and data actions */
.privacy { max-width: 560px; }
.privacy h3 { margin: 16px 0 6px; font-size: 15px; }
.privacy p, .privacy li { font-size: 14px; line-height: 1.45; }
.privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.privacy-actions .primary { justify-self: auto; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sign-in screen: shown instead of the app until signed in */
.signin { display: none; max-width: 420px; margin: 12vh auto 0; text-align: center; }
.signin img { margin: 0 auto 8px; }
.signin h1 { margin-bottom: 8px; font-size: 28px; }
.signin .primary { margin: 20px auto 0; justify-self: center; }
body[data-auth="out"] .signin { display: grid; gap: 4px; }
/* Dialogs stay out of this: the privacy notice opens while sign-in is still "pending". */
body[data-auth="out"] > :not(.signin):not(dialog),
body[data-auth="pending"] > :not(.signin):not(dialog) { display: none !important; }

/* Bottom tabs: phones only */
.tabs { display: none; }

@media (max-width: 900px) {
  body { padding: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "weather" "outfit" "look" "planner" "side" "wardrobe"; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top h1 { font-size: 18px; }
  .clock { font-size: 22px; }
  .top { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  body {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .top-right { width: 100%; justify-content: space-between; }
  .side { display: contents; }
  /* Only one tab shows at a time, so drop the named rows that would leave empty gaps. */
  .grid { grid-template-areas: none; }
  .weather, .outfit, .look, .planner, .wardrobe { grid-area: auto; }
  [data-section] { display: none; }
  body[data-tab="today"] [data-section="today"],
  body[data-tab="trips"] [data-section="trips"],
  body[data-tab="news"] [data-section="news"] { display: block; }
  body[data-tab="wardrobe"] [data-section="wardrobe"] { display: grid; }
  .tabs {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--panel);
    border-top: 1px solid var(--line);
  }
  .tabs a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
  }
  .tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

/* Outfit photos (#24) and sharing (#28) */
.wardrobe-views { margin: 4px 0 12px; }
.button-like.primary { padding: 8px 14px; border-color: var(--accent); background: var(--accent); color: var(--panel); font-size: 14px; font-weight: 600; }
.outfit-photo, .share-preview { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: var(--bg); margin-bottom: 10px; }
.outfit-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.pick { display: grid; gap: 4px; padding: 4px; border: 2px solid transparent; border-radius: 10px; font-size: 12px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--bg); }
.pick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.outfit-tagged { margin: 0 0 10px; padding-left: 18px; }
.link-like { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; font: inherit; text-align: left; cursor: pointer; }
.confirm-public { margin: 10px 0 6px; font-weight: 600; }
.share-link { word-break: break-all; }
.shares-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.shares-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.look-actions { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.saved-badge { margin: 0 0 10px; font-size: 14px; }

/* Packing (#14) */
.pack-form-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.pack-form-row .field { display: grid; gap: 4px; margin: 0; }
.pack-form-row input, .pack-form-row select, #pack-place { padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
#pack-place { width: 100%; max-width: 420px; box-sizing: border-box; }
.pack-cards { display: grid; gap: 8px; margin-top: 8px; }
.pack-card { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; }
.pack-card span { color: var(--muted); font-size: 13px; }
.pack-list { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 4px; }
.pack-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; cursor: pointer; }
.pack-item > span { display: grid; }
.pack-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.pack-item.on .pack-name { text-decoration: line-through; color: var(--muted); }
.pack-gaps { margin: 8px 0; padding-left: 18px; color: var(--warn); font-size: 14px; }
.pack-luggage { font-size: 14px; }
.pack-luggage.over { color: var(--warn); font-weight: 600; }
.pack-days ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pack-days li { display: grid; }
#pack-dialog h3 { font-size: 15px; margin: 12px 0 4px; }
