:root {
  --bg: #f6f4ef; --surface: #ffffff; --text: #1d2326; --muted: #5f6b70; --line: #e2ded5;
  --accent: #1f4e5f; --accent-text: #ffffff; --accent-soft: #e3eef1; --danger: #b3372b; --like: #d33f49;
  --fresh: #2f7d4a; --fresh-bg: #e2f2e7; --recent: #8a6a12; --recent-bg: #f8efd2; --old: #b3261e; --old-bg: #fbe4e2;
  --radius: 14px; --tabs: 62px; --tabs-bottom: calc(env(safe-area-inset-bottom) * .55 + 10px); --pattern: rgba(31, 78, 95, .13);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --pattern: rgba(124, 192, 214, .09);
    --bg: #101416; --surface: #182024; --text: #e8ecee; --muted: #9aa7ac; --line: #2a353a;
    --accent: #7cc0d6; --accent-text: #0c1a20; --accent-soft: #1d3540; --danger: #ff7b6e; --like: #ff6b75;
    --fresh: #7fd69b; --fresh-bg: #173524; --recent: #e6c35c; --recent-bg: #3a3014; --old: #ff8a80; --old-bg: #3d1715;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
/* Wallpaper of mountain line icons (ice axes, peaks, snowflakes, skis...) covering the whole screen,
   very faint so posts stay easy to read. The drawing is public/fons.webp (only its alpha is used);
   its colour and strength follow the theme through --pattern. */
:root { --wall-w: max(100vw, calc(100vh * .5628)); --wall-h: calc(var(--wall-w) * 1.7768);
  --wall-x: calc((100vw - var(--wall-w)) / 2); --wall-y: calc((100vh - var(--wall-h)) / 2); }
body::before, .top::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern);
  -webkit-mask: url(/fons.webp) var(--wall-x) var(--wall-y) / var(--wall-w) var(--wall-h) no-repeat;
  mask: url(/fons.webp) var(--wall-x) var(--wall-y) / var(--wall-w) var(--wall-h) no-repeat; }
/* The title bar is solid (so posts don't show through) but carries the same drawing, lined up with the screen's. */
.top::before { position: absolute; -webkit-mask-position: calc(var(--wall-x) - (100vw - min(100vw, 640px)) / 2) var(--wall-y);
  mask-position: calc(var(--wall-x) - (100vw - min(100vw, 640px)) / 2) var(--wall-y); }
html, body { touch-action: manipulation; margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body { background: transparent; }
/* No sideways scrolling on any screen (iPhone Safari needs it on html, body and the app itself). */
html, body { overflow-x: hidden; overscroll-behavior-x: none; max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } } /* clip, unlike hidden, keeps sticky headers working */
#root { overflow-x: clip; max-width: 100vw; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin: 18px 0 8px; }
/* The "La Xivata" wordmark (splash, top of the feed, sign-in): Bebas Neue, kept in the app so it works offline. */
@font-face { font-family: "Bebas Neue"; src: url(/fonts/bebas-neue.woff2) format("woff2"); font-weight: 400; font-display: swap; }
.brand { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: .02em; color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .pad { padding: 24px 16px; } .pad-x { padding: 0 16px; margin: 6px 0; }
.error { color: var(--danger); margin: 4px 0; } .info { color: var(--fresh); margin: 4px 0; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }


button, .button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--accent-text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; }
button:disabled { opacity: .5; cursor: default; }
button.ghost, .button.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); }
button.danger { color: var(--danger); }
button.wide { width: 100%; margin: 10px 0; }
button.icon, a.icon { background: none; color: inherit; padding: 6px; min-height: 0; border-radius: 50%; display: inline-flex; }
button.link { background: none; color: var(--accent); padding: 4px 0; min-height: 0; font-weight: 500; }
button.link.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input, textarea, select { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
/* iOS Safari gives date inputs a minimum width that pushes them past the right edge; keep them as wide as the other fields. */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
label > *, .form > * { min-width: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.label { font-weight: 600; font-size: .92rem; margin: 12px 0 6px; }
.form { display: grid; gap: 10px; padding: 0 16px 16px; }
.form h3 { margin-top: 20px; }

.screen { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--tabs) + var(--tabs-bottom) + 24px); }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: env(safe-area-inset-top) 12px 0 16px;
  background: var(--bg); }
.top .title { flex: 1; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .back { margin-left: -8px; }

.tabs { position: fixed; z-index: 20; display: flex; justify-content: space-around; align-items: stretch; height: var(--tabs);
  left: 14px; right: 14px; bottom: var(--tabs-bottom); max-width: 520px; margin: 0 auto; padding: 5px;
  /* A floating, rounded "glass" bar in the spirit of the new iPhone look: see-through, blurred, soft edge and shadow. */
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, #fff 55%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 1px 0 rgba(255, 255, 255, .6) inset; }
@media (prefers-color-scheme: dark) { .tabs { border-color: rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .08) inset; } }
.tabs a { border-radius: 999px; transition: background-color .2s ease; }
.tabs a.on { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.tabs a { position: relative; flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: .7rem; }
.tabs a.on { color: var(--accent); }
.tabs a.on .avatar { box-shadow: 0 0 0 2px var(--accent); }
.badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--like); color: #fff; font-style: normal; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.seg { display: flex; gap: 4px; margin: 8px 16px; padding: 4px; background: var(--accent-soft); border-radius: 999px; }
.seg button { flex: 1; background: none; color: var(--accent); min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg.sticky { position: sticky; top: 56px; z-index: 9; }
.seg.small { margin-top: 24px; }

/* Profile photos are only ever shown small: no long-press preview, drag or "open image". */
img.avatar { pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; padding: 0; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.chip.small { font-size: .78rem; padding: 2px 8px; font-weight: 500; background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chip button.icon { padding: 0 0 0 2px; }
button.chip.toggle { min-height: 34px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; }
button.chip.toggle.on { background: var(--accent); color: var(--accent-text); box-shadow: none; }

/* Posts are cards with a little space around them, so the doodle wallpaper shows between them. */
.post { background: var(--surface); margin: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .post { margin: 12px 0; } }
.post header { display: flex; align-items: center; gap: 8px; padding: 10px 8px 6px 14px; }
.post header .who { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.post header .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post header .muted { margin-left: auto; white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.outing { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 700; }
.outing.fresh { background: var(--fresh-bg); color: var(--fresh); } .outing.recent { background: var(--recent-bg); color: var(--recent); } .outing.old { background: var(--old-bg); color: var(--old); }
/* Photos in a post: small thumbnails after the text. */
.post-photos { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.post-photos button { padding: 0; width: 72px; height: 72px; min-height: 0; border-radius: 10px; overflow: hidden; background: var(--line); flex: none; }
.post-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full-screen photo viewer. */
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
.viewer-strip { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; }
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .viewer-close { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 12px; z-index: 2; color: #fff; background: rgba(0,0,0,.45); border-radius: 50%; width: 44px; height: 44px; }
.viewer-count { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 16px); margin: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .8; }
.conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px 14px 0; color: var(--muted); }
.body { padding: 10px 14px 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.body.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.post footer { display: flex; gap: 6px; padding: 6px 8px 8px; }
.icon-text { background: none; color: var(--text); min-height: 40px; padding: 6px 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.comments-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.icon-text.small { min-height: 0; padding: 4px; font-size: .8rem; }
.edit { padding: 10px 14px 0; display: grid; gap: 8px; }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 100%; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: grid; min-width: 160px; overflow: hidden; }
.menu-list button { background: none; color: var(--text); border-radius: 0; justify-content: flex-start; text-align: left; white-space: nowrap; font-weight: 500; }
.menu-list button:hover { background: var(--accent-soft); }
.menu-list button.danger { color: var(--danger); }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); font-weight: 400; }
.search-box input { border: 0; padding: 11px 0; background: none; }
.search-box.big { margin: 4px 16px 8px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li > a, .results li > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; color: var(--text); background: none; border-radius: 0;
  font-weight: 400; text-align: left; justify-content: flex-start; min-height: 52px; }
.results li > a:hover, .results li > button:hover { background: var(--accent-soft); }
.results span:not(.avatar) { display: grid; flex: 1; min-width: 0; }
.results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results svg { color: var(--accent); flex: none; }
section > h3 { padding: 0 16px; }
.place-search .results { border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; background: var(--surface); overflow: hidden; }
.place-search .results li > button { padding: 8px 12px; }
.notifs li.unseen { background: var(--accent-soft); }
.notifs li { display: flex; align-items: center; }
.notifs li > a { flex: 1; min-width: 0; }
.notifs li > button.icon.bin { width: auto; min-height: 0; padding: 10px; margin-right: 8px; }
.top button.icon.bin { margin-left: auto; color: var(--danger); }

.place-head { padding: 0 16px 8px; display: grid; gap: 10px; }
.place-head p { margin: 0; display: flex; align-items: center; gap: 6px; }
.children { margin: 4px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.children summary { padding: 12px 14px; font-weight: 600; cursor: pointer; }
.children .results li > a { padding: 8px 14px; }

.profile-head { display: flex; align-items: center; gap: 20px; padding: 6px 16px 10px; }
.profile-head .activity { flex: 1; min-width: 0; }
.profile-head .activity p { margin: 2px 0; }
.follow-links { margin-top: 8px; } .follow-links .button { flex: 1; text-align: center; padding-inline: 8px; }
.avatar-edit { position: relative; display: inline-block; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; border: 2px solid var(--bg); }

.comments { padding: 4px 0 8px; }
.comment { display: flex; gap: 10px; padding: 8px 12px 4px 16px; align-items: flex-start; }
.comment.child { padding-left: 58px; }
.comment p { margin: 0; overflow-wrap: anywhere; }
.comment .row { gap: 14px; }
.comment .menu button.icon { padding: 0; }
.comment-form { position: sticky; bottom: calc(var(--tabs) + var(--tabs-bottom)); background: var(--bg); padding: 8px 12px; border-top: 1px solid var(--line); }
.comment-form textarea { min-height: 42px; max-height: 140px; }
.comment-form p { margin: 0 0 6px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; }
.thumb.add { display: grid; place-content: center; justify-items: center; gap: 2px; border: 1.5px dashed var(--line); color: var(--accent); cursor: pointer; font-weight: 500; text-align: center; }
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 12px; }
.quick .quick-title { margin: 0; padding: 12px 0 0; font-weight: 600; }
.quick .quick-hint { margin: 2px 0 0; }
.form .conditions { padding: 0; }

.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-in { background: var(--bg); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sheet .seg { margin: 4px 0; }
.sheet form.row input { flex: 1; }

.welcome { max-width: 420px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 8px 32px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.welcome .logo { display: block; border-radius: 22%; overflow: hidden; }
.welcome .brand { font-size: 2.2rem; }
.welcome > .muted { margin: 0 16px 16px; }
.welcome .form { width: 100%; text-align: left; }
.welcome .seg { width: 220px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + var(--tabs-bottom) + 14px); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 16px 8px; }
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tiles > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.tiles b { font-size: 1.5rem; line-height: 1.1; } .tiles span { font-weight: 600; font-size: .9rem; } .tiles small { color: var(--muted); font-size: .78rem; }
.tiles > div.alert { border-color: var(--danger); } .tiles > div.alert b { color: var(--danger); }
/* Week-over-week change on the tiles and in the activity chart. */
.tiles small.delta, small.delta { font-size: .74rem; font-weight: 600; color: var(--muted); }
.delta i { font-style: normal; font-size: .7em; }
.delta.up i, .delta.up { color: var(--fresh); } .delta.down i, .delta.down { color: var(--old); }
/* Activity history (Administració): one bar per week or month, scrolling sideways, latest on the right. */
.activity { margin: 8px 0 4px; min-width: 0; max-width: 100%; }
.act-metrics { padding: 0 16px; margin: 4px 0 8px; }
.act-chart { margin: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.act-bars { display: flex; align-items: stretch; gap: 2px; padding: 10px 10px 6px; min-width: 100%; justify-content: flex-end; }
.act-col { flex: 0 0 34px; display: grid; grid-template-rows: 16px auto 18px; gap: 2px; padding: 0; min-height: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 500; }
.act-col:hover { background: var(--accent-soft); }
.act-col.sel { background: var(--accent-soft); color: var(--text); }
.act-val { font-size: .7rem; align-self: end; color: var(--text); font-variant-numeric: tabular-nums; }
.act-track { height: 120px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.act-track i { display: block; width: 20px; min-height: 0; background: var(--accent); border-radius: 4px 4px 0 0; }
.act-col.now .act-track i { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.act-lbl { font-size: .62rem; white-space: nowrap; }
.act-detail { margin: 8px 16px 0; }
.act-detail p { margin: 4px 0; }
.act-detail ul { list-style: none; margin: 6px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.act-detail li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; font-size: .85rem; }
.act-detail li.on { border-color: var(--accent); }
.act-detail li b { font-size: 1.15rem; }
.reports { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
.reports li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.reports p { margin: 0 0 6px; overflow-wrap: anywhere; }
.reports .excerpt { border-left: 3px solid var(--line); padding-left: 8px; white-space: pre-wrap; }
/* Bústia de suggeriments: the button at the bottom of Configuració and the box in Administració. */
.suggest-open { display: flex; align-items: center; justify-content: center; gap: 8px; }
.suggestions li.unread { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.suggestions li.unread .excerpt { border-left-color: var(--accent); }
.suggestions .row.between { align-items: center; margin-bottom: 8px; }
.suggestion-author { display: flex; align-items: center; gap: 10px; color: inherit; }
.suggestion-author > span { display: grid; }
.suggestions .excerpt { font-size: 1rem; }
.suggestions .row.wrap { gap: 8px; }
.suggestions button { gap: 6px; padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--like); flex: none; }

.suggest { position: relative; margin: 0 16px; }
.suggest .search-box.big { margin: 4px 0 8px; }
.dropdown { position: absolute; left: 0; right: 0; top: 100%; margin: -4px 0 0; z-index: 15; list-style: none; padding: 4px 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); max-height: 60vh; overflow: hidden auto; overscroll-behavior: contain; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; color: var(--text); }
.dropdown a.on { background: var(--accent-soft); }
.dropdown span:not(.avatar) { display: grid; min-width: 0; }
.dropdown small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown svg { color: var(--accent); flex: none; }
.dropdown .none { padding: 12px 14px; color: var(--muted); }
mark { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.add-place { width: calc(100% - 32px); margin: 12px 16px; }

.offline { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs) + var(--tabs-bottom)); z-index: 25; display: flex; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 8px 16px; background: #c62828; color: #fff; font-size: .85rem; font-weight: 600; }

.about { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; margin-top: 12px; }
.about h3 { margin: 12px 0 6px; padding: 0; }
.about p { margin: 0 0 12px; text-align: justify; hyphens: none; -webkit-hyphens: none; }

.feed-intro { margin: 0 16px 8px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.feed-intro p { margin: 0 0 .75em; text-align: justify; hyphens: none; -webkit-hyphens: none; }
.feed-intro p:last-child { margin-bottom: 0; }

/* Small spinner inside a button while it waits for the server (e.g. signing in). */
.spinner { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Administration: list of all places. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
/* Number of reports waiting to be checked, next to a button label (admins only). */
.with-badge { gap: 8px; }
.count { background: var(--like); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 5px; }
.report-open { display: block; color: inherit; text-decoration: none; }
.admin-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 16px 12px; width: auto; }

/* People suggested while typing @ in a comment. */
.mentions { list-style: none; margin: 0 0 6px; padding: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mentions button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; padding: 7px 12px; background: none; color: var(--text); border-radius: 0; font-weight: 400; min-height: 0; }
.mentions button:hover { background: var(--accent-soft); }

.links-open { padding: 0; min-height: 0; font-size: inherit; font-weight: 600; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: 2px; }
.links-sheet { z-index: 90; }
.links-sheet h2 { font-size: 1.1rem; margin: 0; }
.links-list { list-style: none; margin: 0; padding: 0; }
.links-list a { display: grid; gap: 2px; padding: 12px 0; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }

.report-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.report-kinds .chip { font-size: .95rem; padding: 8px 14px; }
.notifs li.report .report-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: var(--old-bg); color: var(--old); }
.review { margin: 8px 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--old-bg); color: var(--text); border: 1px solid var(--old); }
.review h2 { font-size: 1rem; margin: 0 0 6px; color: var(--old); }
.review ul { margin: 0 0 10px; padding-left: 18px; }
.review .excerpt { border-left: 3px solid var(--old); padding-left: 8px; margin: 0 0 8px; white-space: pre-wrap; }
.review.done { border-color: var(--line); background: var(--surface); color: var(--muted); }
.review button.danger { background: var(--danger); color: #fff; }

/* Notifications on the phone (Configuració) */
.push-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; margin: 0 0 8px; }
.push-box.highlight { background: var(--accent-soft); border: 2px solid var(--accent); }
.push-box .warn { font-weight: 600; }
.push-box button.big { font-size: 1.05rem; padding: 14px; margin-top: 4px; }
.push-box h3 { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 0; font-size: 1.15rem; color: var(--accent); }
.push-box p { margin: 0 0 10px; }
.push-box button svg { vertical-align: -3px; margin-right: 6px; }
.ios-steps { margin: 6px 0 12px; background: var(--surface); border-radius: 10px; padding: 10px 12px 2px; }
.ios-steps ol { margin: 0 0 10px; padding-left: 22px; }
.ios-steps li { margin-bottom: 6px; }
.ios-steps li svg { vertical-align: -2px; color: var(--accent); }
.mail-notify { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; margin: 8px 0 8px; display: grid; gap: 8px; }
.mail-notify h3 { margin: 12px 0 0; padding: 0; }
.mail-notify p { margin: 0; }
/* Administració › Tots els usuaris: the delete button sits at the end of each row. */
.results li.user-row { display: flex; align-items: center; }
.results li.user-row > a { flex: 1; min-width: 0; }
.results li.user-row > button.icon { width: auto; min-height: 0; padding: 10px; margin-right: 8px; border-radius: 50%; color: var(--danger); }
.ios-steps .inline-icon { margin: 0 2px; }

/* Estadístiques d'observacions */
.intro-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; row-gap: 6px; }
/* Both links look the same, whether a button or a link. */
.intro-links .links-open { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; min-height: 0; font: inherit; font-weight: 600; line-height: inherit; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: 2px; -webkit-appearance: none; appearance: none; }
.stats-intro { margin: 4px 16px 8px; font-size: .85rem; }
.stats-place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 16px; padding: 12px 14px 4px; }
.stats-place > summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; list-style: none; padding-bottom: 8px; }
.stats-place > summary::-webkit-details-marker { display: none; }
.stats-place > summary b { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.stats-place > summary b::after { content: "▾"; font-size: .8rem; color: var(--muted); margin-left: 2px; }
.stats-place:not([open]) > summary b::after { content: "▸"; }
.stats-place > summary small { color: var(--muted); }
.stat-link { font-size: .85rem; font-weight: 600; color: var(--accent); }
.stat { margin: 12px 0; }
.stat h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: .9rem; }
.stat h4 small { font-weight: 400; color: var(--muted); white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: minmax(84px, 38%) 1fr 2.2em; align-items: center; gap: 8px; min-height: 22px; font-size: .82rem; }
.stat-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-row.zero { color: var(--muted); }
.stat-bar { height: 12px; border-radius: 4px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.stat-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.stat-row b { text-align: right; font-variant-numeric: tabular-nums; }
.stat-note { margin: 2px 0 0; font-size: .75rem; color: var(--muted); }
/* Four feed tabs: the long ones ("Estacions d'esquí") may take two lines on a phone. */
.seg.feed-tabs button { padding: 4px 6px; font-size: .84rem; line-height: 1.15; white-space: normal; }
