/* =====================================================================
   DOSCO 33 — stylesheet
   Motif: the boarding pass. Every member card carries a "destination"
   (city + country) printed like a ticket, because the batch is spread
   across the world.
   ===================================================================== */

/* Real flag images on every device (Windows can't draw flag emoji and shows letters like "IN"). */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('../fonts/TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

/* ------------------------------------------------------------ themes */
/* Dosco: royal blue and gold from the batch crest */
:root, [data-theme="dosco"] {
  --bg: #f1f4f9; --surface: #ffffff; --card: #ffffff; --raised: #f5f7fb;
  --text: #13294b; --muted: #5a6a85; --border: #dbe2ee;
  --primary: #1b4a8a; --on-primary: #ffffff;
  --accent: #d9a63c; --on-accent: #13294b;
  --pass: linear-gradient(140deg, #1d4f92 0%, #143a6e 100%); --pass-text: #ffffff; --pass-accent: #f2c75c;
  --soft: rgba(27, 74, 138, .08); --focus: #d9a63c;
  --shadow: 0 1px 2px rgba(19,41,75,.06), 0 8px 24px -12px rgba(19,41,75,.25);
  --ok: #1f9d66; --warn: #b87700; --danger: #d23b3b;
  color-scheme: light;
}
[data-theme="boarding"] {
  --bg: #eef1f6; --surface: #ffffff; --card: #ffffff; --raised: #f6f8fb;
  --text: #14213d; --muted: #5d6781; --border: #dde2ec;
  --primary: #14213d; --on-primary: #ffffff;
  --accent: #fca311; --on-accent: #14213d;
  --pass: #14213d; --pass-text: #ffffff; --pass-accent: #fca311;
  --soft: rgba(20, 33, 61, .07); --focus: #fca311;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px -12px rgba(20,33,61,.22);
  --ok: #1f9d66; --warn: #c77700; --danger: #d23b3b;
  color-scheme: light;
}
[data-theme="daylight"] {
  --bg: #f7f7fb; --surface: #fff; --card: #fff; --raised: #f1f1f8;
  --text: #1b1b2f; --muted: #686883; --border: #e4e4ef;
  --primary: #4338ca; --on-primary: #fff; --accent: #db2777; --on-accent: #fff;
  --pass: linear-gradient(135deg, #4338ca, #7c3aed); --pass-text: #fff; --pass-accent: #fbcfe8;
  --soft: rgba(67,56,202,.08); --focus: #db2777; color-scheme: light;
}
[data-theme="graphite"] {
  --bg: #121417; --surface: #181b1f; --card: #1d2126; --raised: #23282e;
  --text: #e7e9ee; --muted: #959cab; --border: #2b3139;
  --primary: #e7e9ee; --on-primary: #121417; --accent: #38bdf8; --on-accent: #0b1220;
  --pass: #0c0e10; --pass-text: #e7e9ee; --pass-accent: #38bdf8;
  --soft: rgba(255,255,255,.06); --focus: #38bdf8;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7); color-scheme: dark;
}
[data-theme="midnight"] {
  --bg: #0b1022; --surface: #10172e; --card: #141c38; --raised: #1a2446;
  --text: #e8ebf7; --muted: #9aa3c4; --border: #242f55;
  --primary: #8b7bff; --on-primary: #0b1022; --accent: #2dd4bf; --on-accent: #062a26;
  --pass: linear-gradient(135deg, #2a2170, #0f5f63); --pass-text: #fff; --pass-accent: #7ff5e4;
  --soft: rgba(139,123,255,.12); --focus: #2dd4bf;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -14px rgba(0,0,0,.8); color-scheme: dark;
}
[data-theme="monsoon"] {
  --bg: #e6f1f1; --surface: #f7fbfb; --card: #fbfefe; --raised: #eef6f6;
  --text: #0e2f33; --muted: #4d6e72; --border: #cfe2e2;
  --primary: #0f5257; --on-primary: #fff; --accent: #e76f51; --on-accent: #fff;
  --pass: #0f5257; --pass-text: #fff; --pass-accent: #f4a261;
  --soft: rgba(15,82,87,.08); --focus: #e76f51; color-scheme: light;
}
[data-theme="masala"] {
  --bg: #1b1210; --surface: #221714; --card: #2a1c18; --raised: #33231e;
  --text: #f8ebe0; --muted: #c2a898; --border: #3e2b24;
  --primary: #f2a541; --on-primary: #1b1210; --accent: #e4572e; --on-accent: #fff;
  --pass: linear-gradient(135deg, #8a2d14, #c26a12); --pass-text: #fff8ef; --pass-accent: #ffd27a;
  --soft: rgba(242,165,65,.1); --focus: #f2a541;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.75); color-scheme: dark;
}
[data-theme="forest"] {
  --bg: #0f1a14; --surface: #132019; --card: #17271f; --raised: #1d3027;
  --text: #e5f2e8; --muted: #9bb5a2; --border: #24392d;
  --primary: #7bd389; --on-primary: #0c1a10; --accent: #f4d35e; --on-accent: #2a2206;
  --pass: #0a3b24; --pass-text: #eafbef; --pass-accent: #f4d35e;
  --soft: rgba(123,211,137,.1); --focus: #f4d35e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.75); color-scheme: dark;
}
[data-theme="royal"] {
  --bg: #150f26; --surface: #1b1431; --card: #21193b; --raised: #2a2049;
  --text: #f1ecff; --muted: #b0a6d0; --border: #342a58;
  --primary: #c9a227; --on-primary: #1a1204; --accent: #b388ff; --on-accent: #150f26;
  --pass: linear-gradient(135deg, #3b1f7a, #5c2d91); --pass-text: #fff; --pass-accent: #e8c547;
  --soft: rgba(201,162,39,.12); --focus: #e8c547;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.8); color-scheme: dark;
}
[data-theme="blossom"] {
  --bg: #fff4f6; --surface: #fff; --card: #fff; --raised: #fff0f3;
  --text: #3a1522; --muted: #8a5a68; --border: #f6dbe2;
  --primary: #b8325a; --on-primary: #fff; --accent: #3d8b7d; --on-accent: #fff;
  --pass: #b8325a; --pass-text: #fff; --pass-accent: #ffd6df;
  --soft: rgba(184,50,90,.07); --focus: #3d8b7d; color-scheme: light;
}
[data-theme="amoled"] {
  --bg: #000; --surface: #000; --card: #0b0b0b; --raised: #141414;
  --text: #f5f5f5; --muted: #9a9a9a; --border: #1f1f1f;
  --primary: #fff; --on-primary: #000; --accent: #4f8cff; --on-accent: #fff;
  --pass: #111; --pass-text: #fff; --pass-accent: #4f8cff;
  --soft: rgba(255,255,255,.07); --focus: #4f8cff; --shadow: none; color-scheme: dark;
}
[data-theme="desert"] {
  --bg: #f4ecdf; --surface: #fbf6ee; --card: #fffaf2; --raised: #f3e9da;
  --text: #2d1f14; --muted: #7a6350; --border: #e5d6c0;
  --primary: #6b3e26; --on-primary: #fff; --accent: #2a7f62; --on-accent: #fff;
  --pass: #6b3e26; --pass-text: #fff6ea; --pass-accent: #f0c27b;
  --soft: rgba(107,62,38,.08); --focus: #2a7f62; color-scheme: light;
}
[data-theme="arcade"] {
  --bg: #0d0221; --surface: #120530; --card: #180a3d; --raised: #22104f;
  --text: #f5eaff; --muted: #b19bd6; --border: #2e1766;
  --primary: #ff2a6d; --on-primary: #fff; --accent: #05d9e8; --on-accent: #051a1c;
  --pass: linear-gradient(135deg, #ff2a6d, #7b2cbf); --pass-text: #fff; --pass-accent: #05d9e8;
  --soft: rgba(255,42,109,.12); --focus: #05d9e8;
  --shadow: 0 0 0 1px rgba(5,217,232,.08), 0 12px 30px -14px rgba(0,0,0,.8); color-scheme: dark;
}

/* ------------------------------------------------------------- base */
:root {
  --font: 'Figtree', 'Twemoji Country Flags', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', 'Twemoji Country Flags', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Twemoji Country Flags', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-lg: 22px; --r: 14px; --r-sm: 10px;
  --side: 260px; --top: 60px; --bottom: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + var(--sat)); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100dvh; overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.inline { width: 14px; height: 14px; vertical-align: -2px; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.gap { gap: 16px; } .gap-sm { gap: 8px; } .wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 .full { grid-column: 1 / -1; }
.link { color: var(--primary); font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
[data-theme="graphite"] .link, [data-theme="amoled"] .link { color: var(--accent); }
.danger-text { color: var(--danger) !important; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: .95rem;
  white-space: nowrap; transition: transform .12s ease, filter .15s ease, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger, .btn.danger.ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 42px; padding: 0; }
.btn.loading { opacity: .7; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: transparent; border: 0; color: var(--text);
}
.icon-btn:hover { background: var(--soft); }

/* ------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > legend { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field.narrow { max-width: 260px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--raised); color: var(--text);
  transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
select {
  padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); background: var(--card); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hint { color: var(--muted); font-size: .8rem; }
.req { color: var(--danger); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; background: var(--soft); color: var(--muted); font-weight: 600; }
.input-prefix input { border-radius: 0 12px 12px 0; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--raised); min-height: 44px; flex: 1; min-width: 180px; }
.search-box:focus-within { border-color: var(--focus); background: var(--card); }
.search-box .ic { color: var(--muted); width: 18px; }
.search-box input { border: 0 !important; background: transparent !important; padding: 0; min-height: 40px; }
.search-box.sm { min-height: 38px; }
.search-box.sm input { min-height: 36px; }
.switch { -webkit-appearance: none; appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--border); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-text { display: flex; flex-direction: column; }
.toggle-text strong { font-weight: 600; font-size: .95rem; }
.toggle-text small { color: var(--muted); font-size: .82rem; }
fieldset.multi { border: 0; padding: 0; margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 8px 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ------------------------------------------------------------ shell */
.app { display: flex; min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40;
  display: flex; flex-direction: column; gap: 8px; padding: calc(18px + var(--sat)) 14px 14px;
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { border-radius: 50%; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.side-nav a:hover { background: var(--soft); color: var(--text); }
.side-nav a.active { background: var(--primary); color: var(--on-primary); }
.side-nav a .badge { margin-left: auto; }
.side-label { margin: 16px 12px 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.side-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.side-me:hover { background: var(--soft); }
.side-me span { display: flex; flex-direction: column; min-width: 0; }
.side-me strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me small { color: var(--muted); font-size: .8rem; }
.side-tools { display: flex; gap: 4px; }
.main { flex: 1; min-width: 0; margin-left: var(--side); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  min-height: calc(var(--top) + var(--sat)); padding: var(--sat) 24px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar-logo { display: none; }
.topbar-logo img { border-radius: 50%; }
.topbar-title { font-size: 1.2rem; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.only-mobile { display: none !important; }
.back-btn { display: none; }
.content { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 18px; }
.content.wide { max-width: 1320px; }
.site-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 0 0; }
.bottomnav { display: none; }

/* badges */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.badge.dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: .62rem; padding: 0 4px; }
.side-nav a.active .badge { background: var(--accent); color: var(--on-accent); }

/* ---------------------------------------------------------- avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.avatar-initials { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: hsl(var(--h, 220) 45% 42%); letter-spacing: .02em; }
.avatar-group { border-radius: 30%; }
.avatar.xs { width: 32px; height: 32px; font-size: .75rem; }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar.md { width: 48px; height: 48px; font-size: 1rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 2.4rem; }
.online-dot { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--card); }
.online-dot.lg { width: 20px; height: 20px; right: 8px; bottom: 8px; border-width: 4px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.avatar-row { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-row.sm { margin-top: 8px; gap: 4px; }
.av-wrap { position: relative; }

/* ----------------------------------------------------------- panels */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3, .panel-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.panel-title { margin-bottom: 4px; }
.panel-head .ic, .panel-title .ic { color: var(--muted); width: 18px; height: 18px; }
.section-title { font-size: 1.25rem; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--soft); font-size: .78rem; font-weight: 600; color: var(--text); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .ic { width: 13px; height: 13px; }
.chip-admin { background: var(--accent); color: var(--on-accent); vertical-align: 2px; }
.chip-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.chip.removable button { border: 0; background: none; padding: 0 0 0 4px; font-size: 1rem; line-height: 1; color: var(--muted); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--soft); font-size: .75rem; font-weight: 700; }
.count.hot { background: var(--danger); color: #fff; }

/* flash / notices / toasts */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); font-size: .93rem; border: 1px solid; }
.flash .ic { width: 18px; margin-top: 2px; }
.flash span { flex: 1; }
.flash-success { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, var(--card)); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.flash-error .ic { color: var(--danger); } .flash-success .ic { color: var(--ok); }
.flash-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.notice > .ic { color: var(--accent); width: 22px; height: 22px; }
.notice > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.notice span { color: var(--muted); font-size: .88rem; }
.notice.accent { border-left-color: var(--primary); }
.notice.accent > .ic { color: var(--primary); }
.pending-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; font-style: normal; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); transition: all .25s ease; text-align: center; }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: var(--danger); color: #fff; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty > .ic { width: 44px; height: 44px; opacity: .45; margin-bottom: 4px; }
.empty h3, .empty h2 { color: var(--text); }
.empty p { max-width: 42ch; }
.empty .btn { margin-top: 10px; }

/* tabs & segmented */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--raised); border-radius: 12px; margin-bottom: 16px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.seg button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.users-table td:first-child, .users-table th:first-child { width: 36px; }
.status { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); }
.s-active { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.s-pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.s-suspended, .s-rejected { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* dialogs as sheets */
dialog.sheet { border: 0; padding: 20px; border-radius: var(--r-lg); background: var(--card); color: var(--text); width: min(560px, 94vw); max-height: 86dvh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.sheet.tall { min-height: min(560px, 80dvh); }
dialog::backdrop { background: rgba(8, 12, 24, .55); backdrop-filter: blur(3px); }
dialog[open] { animation: sheet-in .22s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 1.3rem; }

/* theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-swatch { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 2px solid var(--border); background: var(--raised); font-weight: 600; font-size: .85rem; text-align: left; cursor: pointer; position: relative; }
.theme-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch.active { border-color: var(--focus); }
.theme-swatch .sw { display: flex; height: 44px; border-radius: 9px; overflow: hidden; background: var(--sw-bg); padding: 8px; gap: 6px; align-items: flex-end; box-shadow: inset 0 0 0 1px rgba(128,128,128,.25); }
.theme-swatch .sw i:nth-child(1) { flex: 2; height: 100%; border-radius: 5px; background: var(--sw-pri); }
.theme-swatch .sw i:nth-child(2) { flex: 1; height: 60%; border-radius: 5px; background: var(--sw-acc); }
.theme-swatch .sw i:nth-child(3) { flex: 1; height: 35%; border-radius: 5px; background: color-mix(in srgb, var(--sw-pri) 35%, var(--sw-bg)); }

/* ============================================================ LANDING */
.landing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; min-height: min(640px, 72vh); padding: 20px 0; }
.display { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 18px; text-wrap: balance; }
.display-sm { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.landing-copy .row { margin-bottom: 18px; }
.landing-logo { margin-bottom: 18px; filter: drop-shadow(0 10px 22px rgba(19,41,75,.28)); }
.ticket { background: var(--card); border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(20,33,61,.35); overflow: hidden; transform: rotate(-3deg); border: 1px solid var(--border); }
.ticket-top { display: flex; justify-content: space-between; padding: 16px 22px; background: var(--pass); color: var(--pass-text); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; }
.ticket-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 22px; }
.ticket-route small, .ticket-foot small { display: block; color: var(--muted); font-size: .75rem; }
.ticket-route strong { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.ticket-route .ic { width: 34px; height: 34px; color: var(--accent); }
.ticket-perf { height: 0; border-top: 2px dashed var(--border); margin: 0 18px; position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.ticket-perf::before { left: -32px; } .ticket-perf::after { right: -32px; }
.ticket-foot { display: flex; justify-content: space-between; padding: 20px 22px 24px; }
.ticket-foot strong { font-family: var(--mono); font-size: 1.3rem; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features > div { padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.features .ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--muted); font-size: .92rem; }

/* =========================================================== DASHBOARD */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hello-stats { display: flex; gap: 10px; }
.hello-stats a { display: flex; flex-direction: column; align-items: center; min-width: 88px; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.hello-stats strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hello-stats span { font-size: .78rem; color: var(--muted); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ann + .ann { border-top: 1px dashed var(--border); margin-top: 14px; padding-top: 14px; }
.ann h4 { font-size: 1.02rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ann-body { color: var(--muted); font-size: .93rem; margin-bottom: 4px; }
.pin-mark { display: inline-flex; color: var(--accent); }
.pin-mark .ic { width: 16px; height: 16px; }
.ann-full h3 { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 1.2rem; }
.prose { line-height: 1.6; overflow-wrap: anywhere; }
.prose a, .msg-text a, .ann-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plain-list.tight { gap: 6px; margin-bottom: 14px; font-size: .92rem; }
.plain-list li.today { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; padding: 6px; margin: -6px; }
.list-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-person > span { display: flex; flex-direction: column; min-width: 0; }
.list-person strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-person small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; padding: 2px 0; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bars b { font-family: var(--mono); font-size: .85rem; min-width: 2ch; text-align: right; }

/* ============================================================ FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select { width: auto; min-width: 150px; flex: 0 1 190px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-switch { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.view-switch button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.view-switch button.active { background: var(--primary); color: var(--on-primary); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }

/* ===================================================== MEMBER CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.mcard:hover { transform: translateY(-3px); }
.mcard-cover { height: 78px; background: linear-gradient(135deg, hsl(var(--h) 55% 45%), hsl(calc(var(--h) + 50) 60% 55%)); background-size: cover; background-position: center; }
.mcard-avatar { position: relative; width: 84px; height: 84px; margin: -42px auto 0; }
.mcard-avatar .avatar { width: 84px; height: 84px; font-size: 1.7rem; border: 4px solid var(--card); }
.mcard-avatar .online-dot { right: 4px; bottom: 4px; }
.mcard-body { text-align: center; padding: 8px 14px 0; min-width: 0; }
.mcard-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; overflow: hidden; }
.mcard-sub { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-loc { position: relative; margin: 12px 12px 12px; padding: 12px 14px 12px; border-radius: 14px; background: var(--pass); color: var(--pass-text); text-align: left; overflow: hidden; }
.mcard-loc::before { content: ''; position: absolute; right: 12px; top: 10px; width: 22px; height: 22px; opacity: .25; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/></svg>") center / contain no-repeat; }
/* flags use the bundled flag font everywhere */
.flag { font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; }
.loc-city { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; padding-right: 26px; margin: 0 0 3px; }
.loc-country { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; color: var(--pass-accent); }
.loc-country .flag { margin-right: 6px; }
/* House row: a small label and the value, clearly separated */
.loc-house { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid color-mix(in srgb, var(--pass-text) 20%, transparent); min-width: 0; }
.loc-house-label { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--pass-text) 14%, transparent); }
.loc-house-value { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; flex: 1; min-width: 0; }
.loc-house-value.is-empty { font-family: var(--font); font-weight: 500; font-size: .85rem; opacity: .6; }
.mcard-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; padding: 0 12px 14px; margin-top: -2px; }
.chip-psn { background: color-mix(in srgb, #0070d1 16%, transparent); color: inherit; }
[data-theme] .chip-psn .ic { color: #3d8bff; }

/* --- view: boarding pass (default) — ticket stub with perforation */
.view-pass .mcard { flex-direction: column; }
.view-pass .mcard-loc { margin: auto 0 0; border-radius: 0; padding: 14px 16px 16px; order: 5; }
.view-pass .mcard-loc::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; border-top: 2px dashed color-mix(in srgb, var(--pass-text) 30%, transparent); }
.view-pass .mcard-chips { order: 4; padding-top: 10px; }
.view-pass .mcard-body { padding-bottom: 12px; }
.view-pass .mcard-chips:empty { display: none; }
.view-pass .mcard-cover { height: 70px; }

/* --- view: classic — big centred location card */
.view-classic .mcard-loc { text-align: center; background: var(--soft); color: var(--text); }
.view-classic .mcard-loc::before { display: none; }
.view-classic .loc-country { color: var(--muted); }
.view-classic .loc-house { justify-content: center; border-color: var(--border); }
.view-classic .loc-house-label, .view-minimal .loc-house-label { background: var(--soft); }
.view-classic .loc-house-value, .view-minimal .loc-house-value { flex: 0 1 auto; }
.view-classic .loc-city { padding: 0; color: var(--primary); }
[data-theme="graphite"] .view-classic .loc-city, [data-theme="amoled"] .view-classic .loc-city { color: var(--accent); }

/* --- view: glass — cover fills the card, frosted panel on top */
.view-glass .mcard { color: #fff; border-color: transparent; min-height: 290px; background: #111; }
.view-glass .mcard-cover { position: absolute; inset: 0; height: auto; filter: saturate(1.2); }
.view-glass .mcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); }
.view-glass .mcard-avatar { margin-top: 22px; }
.view-glass .mcard-avatar .avatar { border-color: rgba(255,255,255,.7); }
.view-glass .mcard-body, .view-glass .mcard-loc, .view-glass .mcard-chips { position: relative; }
.view-glass .mcard-sub { color: rgba(255,255,255,.8); }
.view-glass .mcard-loc { margin-top: auto; background: rgba(255,255,255,.16); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.view-glass .loc-country { color: #ffe08a; }
.view-glass .loc-house { border-color: rgba(255,255,255,.25); }
.view-glass .chip { background: rgba(255,255,255,.2); color: #fff; }

/* --- view: polaroid */
.view-polaroid { gap: 26px; }
.view-polaroid .mcard { background: #fdfcf8; color: #2b2b2b; border: 0; border-radius: 4px; padding: 12px 12px 16px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 14px 28px -12px rgba(0,0,0,.4); }
.view-polaroid .mcard:nth-child(3n+1) { transform: rotate(-1.6deg); }
.view-polaroid .mcard:nth-child(3n+2) { transform: rotate(1.2deg); }
.view-polaroid .mcard:nth-child(3n) { transform: rotate(-.4deg); }
.view-polaroid .mcard:hover { transform: rotate(0) scale(1.02); }
.view-polaroid .mcard-cover { display: none; }
.view-polaroid .mcard-avatar { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
.view-polaroid .mcard-avatar .avatar { width: 100%; height: 100%; border-radius: 2px; border: 0; font-size: 3.4rem; }
.view-polaroid .mcard-body { padding: 10px 2px 0; }
.view-polaroid .mcard-name { color: #222; }
.view-polaroid .mcard-sub { color: #777; }
.view-polaroid .mcard-loc { background: none; color: #1d3557; text-align: center; margin: 4px 0 0; padding: 0; }
.view-polaroid .mcard-loc::before { display: none; }
.view-polaroid .loc-house { justify-content: center; border-color: #e6e1d6; color: #444; }
.view-polaroid .loc-house-value { font-family: 'Caveat', cursive; font-size: 1.3rem; flex: 0 1 auto; }
.view-polaroid .loc-house-label { background: #efece4; }
.view-polaroid .loc-city { font-family: 'Caveat', cursive; font-weight: 600; font-size: 2.1rem; padding: 0; letter-spacing: 0; }
.view-polaroid .loc-country { font-family: 'Caveat', 'Twemoji Country Flags', cursive; font-size: 1.25rem; color: #a0701a; }
.view-polaroid .mcard-chips { padding: 8px 0 0; }
.view-polaroid .chip { background: #efece4; color: #444; }
.view-polaroid .online-dot { border-color: #fdfcf8; right: 8px; bottom: 8px; width: 16px; height: 16px; }

/* --- view: minimal */
.view-minimal .mcard { box-shadow: none; padding: 20px 16px 16px; }
.view-minimal .mcard-cover { display: none; }
.view-minimal .mcard-avatar { margin: 0 auto; width: 64px; height: 64px; }
.view-minimal .mcard-avatar .avatar { width: 64px; height: 64px; border: 0; font-size: 1.3rem; }
.view-minimal .mcard-loc { margin-top: auto !important; background: none; color: var(--text); text-align: center; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px solid var(--border); border-radius: 0; }
.view-minimal .mcard-loc::before { display: none; }
.view-minimal .loc-country { color: var(--muted); }
.view-minimal .loc-house { justify-content: center; border-color: var(--border); }
.view-minimal .loc-city { padding: 0; font-size: 1.35rem; }
.view-minimal .mcard-chips { padding: 10px 0 0; }

/* --- view: compact */
.view-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.view-compact .mcard { border-radius: 18px; }
.view-compact .mcard-cover { height: 44px; }
.view-compact .mcard-avatar { width: 58px; height: 58px; margin-top: -29px; }
.view-compact .mcard-avatar .avatar { width: 58px; height: 58px; font-size: 1.15rem; border-width: 3px; }
.view-compact .mcard-name { font-size: .98rem; }
.view-compact .mcard-sub, .view-compact .mcard-chips { display: none; }
.view-compact .loc-house { margin-top: 5px; padding-top: 4px; justify-content: center; gap: 4px; }
.view-compact .loc-house-label { display: none; }
.view-compact .loc-house-value { font-size: .78rem; text-align: center; --fit-min: 7; flex: 0 1 auto; }
.view-compact .mcard-loc { margin: auto 6px 6px; padding: 7px 6px; border-radius: 11px; text-align: center; }
.view-compact .mcard-body { padding: 6px 8px 8px; }
.view-compact .loc-city, .view-compact .loc-country, .view-compact .mcard-name { --fit-min: 7.5; }
.view-compact .mcard-loc::before { display: none; }
.view-compact .loc-city { font-size: 1.15rem; padding: 0; }
.view-compact .loc-country { font-size: .76rem; }

/* --- view: list */
.view-list { grid-template-columns: 1fr; gap: 10px; }
.view-list .mcard { flex-direction: row; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 18px; }
.view-list .mcard:hover { transform: none; background: var(--raised); }
.view-list .mcard-cover { display: none; }
.view-list .mcard-avatar { margin: 0; width: 54px; height: 54px; flex: none; }
.view-list .mcard-avatar .avatar { width: 54px; height: 54px; border: 0; font-size: 1.1rem; }
.view-list .mcard-body { text-align: left; padding: 0; flex: 1; }
.view-list .mcard-chips { order: 3; padding: 0; justify-content: flex-end; flex: 0 1 200px; }
.view-list .mcard-loc { order: 4; margin: 0; width: 34%; max-width: 260px; min-width: 120px; flex: none; padding: 9px 12px; border-radius: 12px; }
.view-list .mcard-loc::before { display: none; }
.view-list .loc-city { font-size: 1.2rem; padding: 0; }
.view-list .loc-house { margin-top: 4px; padding-top: 4px; }

/* ============================================================ PROFILE */
.content.flush { padding-top: 0; }
.profile { display: flex; flex-direction: column; gap: 18px; }
.profile-cover { height: 220px; margin: 0 -24px; background: linear-gradient(135deg, hsl(var(--h) 55% 40%), hsl(calc(var(--h) + 60) 60% 55%)); background-size: cover; background-position: center; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: end; margin-top: -70px; padding: 0 8px; }
.profile-avatar { position: relative; }
.profile-avatar .avatar { width: 148px; height: 148px; border: 5px solid var(--bg); font-size: 3rem; box-shadow: var(--shadow); }
.profile-id { padding-bottom: 6px; min-width: 0; }
.profile-id h2 { overflow-wrap: anywhere; }
.profile-id .muted { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-headline { font-size: 1.05rem; margin-top: 4px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 6px; }
.profile-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-side { position: sticky; top: calc(var(--top) + var(--sat) + 16px); display: flex; flex-direction: column; gap: 10px; }
.profile-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.profile-grid > *, .profile-side, .pass-card { min-width: 0; }
.pass-card { border-radius: var(--r-lg); background: var(--pass); color: var(--pass-text); overflow: hidden; box-shadow: var(--shadow); }
.pass-top { display: flex; justify-content: space-between; padding: 16px 20px 0; font-size: .8rem; opacity: .85; }
.pass-top .ic { color: var(--pass-accent); opacity: 1; width: 22px; height: 22px; }
.pass-country { color: var(--pass-accent); }
.pass-city { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1.05; padding: 8px 20px 0; white-space: nowrap; overflow: hidden; letter-spacing: -.03em; }
.pass-country { padding: 2px 20px 18px; font-weight: 600; }
.pass-perf { border-top: 2px dashed color-mix(in srgb, var(--pass-text) 30%, transparent); margin: 0 16px; position: relative; }
.pass-perf::before, .pass-perf::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.pass-perf::before { left: -28px; } .pass-perf::after { right: -28px; }
.pass-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.pass-foot small { display: block; font-size: .72rem; opacity: .7; }
.pass-foot strong { font-family: var(--mono); font-size: .98rem; overflow-wrap: anywhere; }
.facts { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 18px; }
.fact dt { font-size: .78rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.fact dd a { color: var(--primary); }
[data-theme="graphite"] .fact dd a, [data-theme="amoled"] .fact dd a, [data-theme="midnight"] .fact dd a { color: var(--accent); }
.copy-btn { border: 0; background: var(--soft); color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; }
.copy-btn .ic { width: 14px; height: 14px; }
.vis-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.vis-tag .ic { width: 11px; height: 11px; }
.vis-public { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.vis-connections { background: color-mix(in srgb, #3d8bff 15%, transparent); color: #3d8bff; }
.vis-private { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }

/* ======================================================= EDIT PROFILE */
.profile-form { display: flex; flex-direction: column; gap: 18px; }
.photo-panel { padding: 0; overflow: hidden; }
.edit-cover { position: relative; height: 170px; background: linear-gradient(135deg, hsl(var(--h) 55% 40%), hsl(calc(var(--h) + 60) 60% 55%)); background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; padding: 12px; flex-wrap: wrap; }
.on-image { background: rgba(0,0,0,.45) !important; color: #fff !important; border-color: rgba(255,255,255,.3) !important; backdrop-filter: blur(6px); cursor: pointer; }
.edit-cover .pending-tag { position: absolute; left: 12px; top: 12px; background: var(--card); }
.edit-avatar-row { display: flex; gap: 20px; align-items: flex-end; padding: 0 20px 20px; margin-top: -48px; flex-wrap: wrap; }
.photo-panel .edit-avatar-row:first-child { margin-top: 0; padding-top: 20px; }
.edit-avatar { position: relative; flex: none; }
.edit-avatar .avatar { border: 5px solid var(--card); }
.avatar-edit-btn { position: absolute; right: 4px; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); cursor: pointer; border: 3px solid var(--card); }
.avatar-edit-btn .ic { width: 18px; height: 18px; }
.remove-photo { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.edit-cover .remove-photo { background: rgba(0,0,0,.45); color: #fff; padding: 6px 10px; border-radius: 10px; }
.field-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row.is-pending input, .field-row.is-pending select, .field-row.is-pending textarea { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.field-row:has(textarea) { grid-column: 1 / -1; }
.vis-pick { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 0 2px 0 8px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: .78rem; font-weight: 700; }
.vis-pick .ic { width: 13px; height: 13px; }
.vis-pick select { min-height: 28px; padding: 0 26px 0 2px; border: 0; background-color: transparent; font-size: .78rem; font-weight: 700; color: inherit; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
.vis-pick.vis-public { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.vis-pick.vis-connections { background: color-mix(in srgb, #3d8bff 14%, transparent); color: #3d8bff; }
.vis-pick.vis-private { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.vis-all { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.vis-all .ic { width: 16px; height: 16px; }
.vis-all select { min-height: 32px; padding: 0 28px 0 8px; font-size: .82rem; width: auto; }
.privacy-legend { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.privacy-legend strong { display: flex; align-items: center; gap: 8px; }
.privacy-legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.save-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: 0 12px 32px -12px rgba(0,0,0,.3); }

/* ========================================================== PEOPLE/NOTIFS */
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; flex-wrap: wrap; }
.notif-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.notif-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.notif-list li.unread a { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.notif-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: none; }
.notif-ic .ic { width: 18px; height: 18px; }
.notif-body { display: flex; flex-direction: column; font-size: .95rem; }
.notif-body small { color: var(--muted); font-size: .8rem; }

/* menu (mobile) */
.menu-me { display: flex; align-items: center; gap: 14px; }
.menu-me > span { flex: 1; display: flex; flex-direction: column; }
.menu-me strong { font-family: var(--display); font-size: 1.2rem; }
.menu-me small { color: var(--muted); }
.menu-list { padding: 6px; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; font-weight: 600; background: none; border: 0; text-align: left; width: 100%; }
.menu-list a:hover, .menu-list button:hover { background: var(--soft); }
.menu-list span { flex: 1; }
.menu-list .ic.end { width: 16px; color: var(--muted); }
.menu-label { padding: 8px 12px 2px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.danger-zone .panel-title .ic { color: var(--danger); }

/* stats */
.world-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.world-hero div { padding: 18px; border-radius: var(--r-lg); background: var(--pass); color: var(--pass-text); }
.world-hero strong { display: block; font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; }
.world-hero span { opacity: .8; }
.city-board { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; background: var(--pass); color: var(--pass-text); border-radius: 14px; padding: 10px; }
.city-board a { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-family: var(--mono); font-size: .92rem; }
.city-board a:hover { background: rgba(255,255,255,.08); }
.cb-code { font-size: 1.25rem; line-height: 1; }
.cb-city { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.cb-n { background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 6px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ============================================================ ADMIN */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.stat strong { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.hot { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.spark i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px; }
.spark i.zero { background: var(--soft); }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review { display: flex; flex-direction: column; gap: 14px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head > div { display: flex; flex-direction: column; min-width: 0; }
.review-head small { color: var(--muted); overflow-wrap: anywhere; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.review-actions input { min-height: 38px; }
.reg-note { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--raised); border-radius: 0 12px 12px 0; }
.diff td.new { background: color-mix(in srgb, var(--ok) 8%, transparent); }
.diff-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.diff-img.cover { width: 140px; height: 60px; }
.admin-user-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bulk-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.bulk-bar select { width: auto; min-height: 36px; }
.mod-log { display: flex; flex-direction: column; }
.mod-msg { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.mod-msg:last-child { border-bottom: 0; }
.mod-msg.is-deleted { opacity: .55; }
.mod-msg.is-system { color: var(--muted); font-size: .88rem; }
.mod-meta { margin-bottom: 2px; }
.mod-img { max-width: 220px; border-radius: 10px; margin: 6px 0; }
.settings-nav { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: calc(var(--top) + var(--sat)); z-index: 10; background: var(--bg); padding: 6px 0; scrollbar-width: none; }
.settings-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.settings-nav .ic { width: 15px; height: 15px; }
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-form section { scroll-margin-top: calc(var(--top) + var(--sat) + 60px); }

/* =============================================================== AUTH */
.auth-page { background: var(--bg); background-image: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%), radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 45%); }
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(24px + var(--sat)) 16px calc(24px + var(--sab)); }
.auth-wrap > .flash { width: min(440px, 100%); }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 30px 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 14px; }
.auth-card.wide { width: min(640px, 100%); }
.auth-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card h3 { margin-top: 6px; }
.auth-hero { display: flex; align-items: center; gap: 12px; }
.auth-hero { flex-direction: column; text-align: center; gap: 6px; }
.auth-hero img { filter: drop-shadow(0 8px 18px rgba(19,41,75,.25)); }
.auth-card h1, .auth-card > .muted:first-of-type { text-align: center; }
.auth-brand { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--muted); }
.auth-alt { text-align: center; font-size: .93rem; }
.auth-alt a { color: var(--primary); font-weight: 700; }

/* =============================================================== CHAT */
.chat-page .content { max-width: none; padding: 0; gap: 0; }
.chat-page .site-foot { display: none; }
.chat-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--top) - var(--sat)); background: var(--card); }
.chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--border); min-height: 0; background: var(--surface); }
.chat-list-head { display: flex; gap: 8px; padding: 12px; }
.mod-notice { display: flex; gap: 8px; align-items: flex-start; font-size: .76rem; color: var(--muted); padding: 0 14px 10px; }
.mod-notice .ic { width: 14px; height: 14px; margin-top: 2px; }
.convos { list-style: none; margin: 0; padding: 0 6px 10px; overflow-y: auto; flex: 1; }
.convo { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 0; background: none; text-align: left; }
.convo:hover { background: var(--soft); }
.convo.active { background: var(--primary); color: var(--on-primary); }
.convo.active .convo-prev, .convo.active time { color: inherit; opacity: .8; }
.convo-av { position: relative; flex: none; display: flex; }
.convo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo-top, .convo-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.convo-top strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.convo-top time { font-size: .74rem; color: var(--muted); flex: none; }
.convo-prev { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-prev .grp { font-style: normal; font-weight: 800; margin-right: 3px; color: var(--accent); }
.convo.unread strong, .convo.unread .convo-prev { font-weight: 700; color: var(--text); }
.convo.active.unread .convo-prev { color: inherit; }
.convo-skel { height: 64px; margin: 4px 0; border-radius: 14px; background: linear-gradient(90deg, var(--soft), transparent, var(--soft)); background-size: 200% 100%; animation: skel 1.2s infinite linear; }
@keyframes skel { to { background-position: -200% 0; } }
.convo-none { text-align: center; padding: 30px 10px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; background: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.thread-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; }
.thread-empty > .ic { width: 52px; height: 52px; opacity: .35; }
.thread-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--border); min-height: 60px; }
#threadBack { display: none; }
.thread-who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.thread-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.thread-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-who small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.msgs-loading { margin: auto; display: flex; gap: 6px; }
.msgs-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite ease-in-out; }
.msgs-loading span:nth-child(2) { animation-delay: .15s; } .msgs-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.msgs-note { margin: auto; color: var(--muted); background: var(--card); padding: 10px 16px; border-radius: 12px; font-size: .9rem; }
.load-older { align-self: center; border: 1px solid var(--border); background: var(--card); padding: 6px 14px; border-radius: 99px; font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.day-sep { display: flex; justify-content: center; margin: 14px 0 8px; }
.day-sep span { font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.msg-system { align-self: center; font-size: .78rem; color: var(--muted); padding: 4px 12px; margin: 6px 0; background: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 99px; text-align: center; max-width: 90%; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: min(78%, 620px); margin-top: 8px; position: relative; }
.msg.grouped { margin-top: 2px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 32px; flex: none; }
.msg-av .avatar { width: 32px; height: 32px; font-size: .72rem; }
.msg-col { display: flex; flex-direction: column; min-width: 0; }
.msg-name { font-size: .76rem; font-weight: 700; margin: 0 0 2px 12px; color: hsl(var(--h) 60% 45%); }
[data-theme="graphite"] .msg-name, [data-theme="midnight"] .msg-name, [data-theme="masala"] .msg-name, [data-theme="forest"] .msg-name, [data-theme="royal"] .msg-name, [data-theme="amoled"] .msg-name, [data-theme="arcade"] .msg-name { color: hsl(var(--h) 75% 70%); }
.bubble { position: relative; padding: 8px 12px 6px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 1px rgba(0,0,0,.06); border: 1px solid var(--border); overflow-wrap: anywhere; line-height: 1.4; }
.msg:not(.mine):not(.grouped) .bubble { border-bottom-left-radius: 6px; }
.msg.mine .bubble { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.msg.mine:not(.grouped) .bubble { border-bottom-right-radius: 6px; }
.msg.mine .msg-text a { color: inherit; }
.bubble.deleted { background: transparent; border-style: dashed; color: var(--muted); font-size: .88rem; }
.msg.mine .bubble.deleted { background: transparent; color: var(--muted); border: 1px dashed var(--border); }
.msg-text { white-space: normal; }
.msg-time { display: block; text-align: right; font-size: .68rem; opacity: .6; margin-top: 2px; }
.msg-img { display: block; border: 0; padding: 0; background: none; margin: -2px -6px 4px; border-radius: 12px; overflow: hidden; }
.msg-img img { max-height: 320px; max-width: 100%; object-fit: cover; }
.bubble.photo-only { padding: 4px; }
.bubble.photo-only .msg-img { margin: 0; }
.bubble.photo-only .msg-time { position: absolute; right: 12px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; opacity: 1; padding: 1px 6px; border-radius: 99px; }
.msg-del { opacity: 0; border: 0; background: var(--card); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 1.1rem; line-height: 1; align-self: center; transition: opacity .15s; flex: none; }
.msg:hover .msg-del, .msg:focus-within .msg-del { opacity: 1; }
@media (hover: none) { .msg-del { opacity: .5; } }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + var(--sab)); background: var(--card); border-top: 1px solid var(--border); }
.composer .icon-btn { cursor: pointer; }
.composer-box { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; background: var(--raised); border: 1px solid var(--border); border-radius: 22px; padding: 4px 6px; }
.composer-box:focus-within { border-color: var(--focus); }
.composer textarea { border: 0 !important; background: transparent !important; min-height: 38px; max-height: 160px; resize: none; padding: 8px 10px; line-height: 1.4; }
.img-chip { position: relative; width: 72px; margin: 4px; }
.img-chip img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.img-chip button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font-size: .9rem; line-height: 1; }
.send-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; transition: transform .12s; }
.send-btn:active { transform: scale(.92); }
.composer.sending .send-btn { opacity: .5; }
.composer-locked { padding: 16px; text-align: center; color: var(--muted); background: var(--card); border-top: 1px solid var(--border); padding-bottom: calc(16px + var(--sab)); font-size: .9rem; }
.pick-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 50dvh; overflow-y: auto; }
.pick-list.compact { max-height: 220px; }
.pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; border: 0; background: none; text-align: left; }
.pick:hover:not(:disabled):not(.static) { background: var(--soft); }
.pick:disabled { opacity: .5; cursor: not-allowed; }
.pick > span, .pick-link > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-link { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pick-add { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; }
.pick-none { padding: 20px; text-align: center; color: var(--muted); }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chips-input:empty { display: none; }
.gd-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.img-viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94dvh; }
.img-viewer img { max-width: 96vw; max-height: 90dvh; border-radius: 12px; }
.img-viewer .icon-btn { position: fixed; top: calc(12px + var(--sat)); right: 12px; background: rgba(0,0,0,.6); color: #fff; }

/* ============================================================ TRAVEL */
/* A travelling member's card becomes a live flight ticket: sunset-to-sky stub, animated route. */
:root { --trip: linear-gradient(135deg, #f0803c 0%, #d9445e 45%, #6b3fa0 100%); --trip-text: #fff; --trip-accent: #ffe29a; }
.mcard.is-travelling { border-color: color-mix(in srgb, #d9445e 45%, var(--border)); }
.mcard.is-travelling .mcard-loc { background: var(--trip); color: var(--trip-text); }
.mcard.is-travelling .mcard-loc::before { display: none; }
.mcard.is-travelling .loc-country { color: var(--trip-accent); }
.mcard.is-travelling .loc-house { border-color: rgba(255,255,255,.25); }
.trip-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; background: rgba(255,255,255,.92); color: #b3304f; font-size: .72rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.trip-ribbon .ic { width: 14px; height: 14px; }
.trip-route { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; margin-bottom: 4px; min-width: 0; }
.trip-from { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.trip-now { flex: none; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.22); }
.trip-line { position: relative; flex: 1; min-width: 36px; height: 16px; }
.trip-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted rgba(255,255,255,.7); }
.trip-line i { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(45deg); display: grid; place-items: center; animation: fly 3.2s ease-in-out infinite; }
.trip-line i .ic { width: 15px; height: 15px; }
@keyframes fly { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.trip-meta { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 9px; border-radius: 99px; background: rgba(0,0,0,.18); font-size: .72rem; font-weight: 700; }
.trip-meta .ic { width: 12px; height: 12px; }
.view-classic .mcard.is-travelling .mcard-loc, .view-minimal .mcard.is-travelling .mcard-loc { background: var(--trip); color: #fff; }
.view-classic .mcard.is-travelling .loc-city { color: #fff; }
.view-minimal .mcard.is-travelling .mcard-loc { padding: 10px; border-radius: 12px; border: 0; }
.view-minimal .mcard.is-travelling .loc-country, .view-classic .mcard.is-travelling .loc-country { color: var(--trip-accent); }
.view-polaroid .mcard.is-travelling .mcard-loc { background: none; color: #b3304f; }
.view-polaroid .mcard.is-travelling .loc-country { color: #b3304f; }
.view-polaroid .trip-route, .view-polaroid .trip-meta { display: none; }
.view-polaroid .trip-ribbon { top: 18px; left: 18px; }
.view-compact .trip-route, .view-compact .trip-meta { display: none; }
.view-compact .trip-ribbon { top: 6px; left: 6px; padding: 3px 6px; font-size: 0; gap: 0; }
.view-compact .trip-ribbon .ic { width: 12px; height: 12px; }
.view-list .trip-ribbon { top: auto; bottom: 8px; left: 8px; font-size: 0; padding: 4px; gap: 0; }
.view-glass .mcard.is-travelling .mcard-loc { background: linear-gradient(135deg, rgba(240,128,60,.55), rgba(107,63,160,.55)); }
.pass-card.is-travelling { background: var(--trip); }
.pass-card.is-travelling .pass-country, .pass-card.is-travelling .pass-top .ic { color: var(--trip-accent); }
.pass-trip { padding: 0 20px 18px; }
.pass-trip .trip-route { font-size: .8rem; }
.pass-trip small { opacity: .85; font-weight: 600; }
.trip-note { margin-top: 8px; font-style: italic; opacity: .95; }
.trip-upcoming { display: flex; gap: 10px; align-items: center; font-size: .92rem; padding: 12px 14px; }
.trip-upcoming .ic { color: #d9445e; }
.trip-hero { border-radius: var(--r-lg); padding: 22px; background: var(--pass); color: var(--pass-text); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.trip-hero.on { background: var(--trip); }
.trip-hero-route { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.trip-hero-route > div { min-width: 0; }
.trip-hero-route .end { text-align: right; }
.trip-hero-route small { display: block; font-size: .75rem; opacity: .75; font-weight: 600; white-space: nowrap; }
.trip-hero-route strong { display: block; font-family: var(--display); font-size: clamp(1.15rem, 4.2vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; --fit-min: 11; }
.trip-line.big { height: 24px; min-width: 60px; }
.trip-line.big i .ic { width: 22px; height: 22px; }
.trip-hero:not(.on) .trip-line i { animation: none; left: 50%; }
.trip-hero-sub { opacity: .92; }
.trip-cta { display: flex; align-items: center; gap: 12px; }
.trip-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.trip-cta small { color: var(--muted); }
.trip-cta-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); flex: none; }
.trip-cta.on { background: var(--trip); color: #fff; border-color: transparent; }
.trip-cta.on small { color: rgba(255,255,255,.85); }
.trip-cta.on .trip-cta-ic { background: rgba(255,255,255,.2); }
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .88rem; }
.chip-toggle .ic { width: 16px; height: 16px; color: #d9445e; }
.chip-toggle b { background: var(--soft); border-radius: 99px; padding: 0 7px; font-size: .78rem; }
.chip-toggle.on { background: var(--trip); color: #fff; border-color: transparent; }
.chip-toggle.on .ic { color: #fff; }
.chip-toggle.on b { background: rgba(255,255,255,.25); }

/* ======================================================= ONLINE STRIP */
.online-strip { padding: 0 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.online-strip h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: .78rem; font-weight: 700; color: var(--muted); margin: 2px 2px 8px; }
.online-strip h4 b { background: var(--soft); border-radius: 99px; padding: 0 7px; color: var(--text); }
.online-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.online-row::-webkit-scrollbar { display: none; }
.online-person { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px; border-radius: 12px; }
.online-person:hover { background: var(--soft); }
.online-person .online-dot { right: 0; bottom: 0; }
.online-name { font-size: .72rem; font-weight: 600; max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================================================== ADMIN (v3) */
.backup-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.backup-list { display: flex; flex-direction: column; }
.backup-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.backup-item:last-child { border-bottom: 0; }
.backup-item .grow { display: flex; flex-direction: column; gap: 2px; }
.backup-item .grow strong + .chip { align-self: flex-start; }
.backup-item.bad { opacity: .6; }
.progress { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s ease; }
.nl-preview { box-shadow: none; background: var(--raised); max-height: 420px; overflow: auto; }
.nl-preview h2 { font-size: 1.1rem; margin: 14px 0 6px; }
.nl-preview p, .nl-preview ul { margin: 0 0 12px; }

/* ====================================================== PHOTO ADJUSTER */
.crop-sheet { width: min(620px, 96vw); }
.crop-stage { position: relative; width: 100%; max-height: 62dvh; overflow: hidden; border-radius: 14px; background: #10141c; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage.round { max-width: min(420px, 100%); margin: 0 auto; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none !important; transform-origin: 0 0; pointer-events: none; }
.crop-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); border-radius: inherit; }
.crop-stage.round::after { border-radius: 50%; box-shadow: 0 0 0 9999px rgba(8,12,20,.6), inset 0 0 0 2px rgba(255,255,255,.8); }
.crop-controls { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; }
.crop-controls input[type=range] { flex: 1; accent-color: var(--primary); min-height: 0; padding: 0; border: 0; background: none; -webkit-appearance: auto; appearance: auto; }
.crop-controls .icon-btn { font-size: 1.4rem; font-weight: 700; }
.crop-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.crop-actions .btn { flex: 1 1 0; max-width: 220px; }

/* ========================================================= RESPONSIVE */
@media (max-width: 1100px) {
  .dash { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; }
}
@media (max-width: 900px) {
  :root { --top: 56px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-grid !important; }
  .topbar { padding: var(--sat) 8px 0 12px; }
  .topbar-logo { display: block; }
  .back-btn { display: inline-grid; }
  .topbar-title { font-size: 1.12rem; }
  .top-avatar { margin-left: 4px; }
  .content { padding: 16px 14px calc(var(--bottom) + var(--sab) + 28px); gap: 14px; }
  body:not(:has(.bottomnav)) .content { padding-bottom: 40px; }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--bottom) + var(--sab)); padding-bottom: var(--sab);
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
    border-top: 1px solid var(--border);
  }
  .bottomnav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); }
  .bottomnav a .ic { width: 23px; height: 23px; transition: transform .15s; }
  .bottomnav a.active { color: var(--text); }
  .bottomnav a.active .ic { transform: translateY(-1px); color: var(--primary); }
  [data-theme="graphite"] .bottomnav a.active .ic, [data-theme="amoled"] .bottomnav a.active .ic { color: var(--accent); }
  .bottomnav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
  .bottomnav .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: .64rem; }
  .toasts { bottom: calc(var(--bottom) + var(--sab) + 14px); }
  .save-bar { bottom: calc(var(--bottom) + var(--sab) + 10px); }
  .landing { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .landing-pass { max-width: 420px; margin: 0 auto; width: 100%; }
  .grid2, .field-rows { grid-template-columns: 1fr; }
  .panel { padding: 16px; border-radius: 18px; }
  .hello-stats { width: 100%; }
  .hello-stats a { flex: 1; min-width: 0; }
  .filters .search-box { flex-basis: 100%; }
  .filters select { flex: 1 1 30%; min-width: 0; }
  .filters > .btn { display: none; }
  .profile-cover { height: 150px; margin: 0 -14px; }
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: -64px; gap: 10px; }
  .profile-avatar .avatar { width: 124px; height: 124px; }
  .profile-id .muted { justify-content: center; }
  .profile-actions { justify-content: center; }
  .pass-city { font-size: 2.2rem; }
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + var(--sab)); }
  dialog[open].sheet { animation: sheet-up .25s ease; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } }

  /* chat as a native-style two-screen flow */
  .chat-page .topbar { display: none; }
  .chat-page.chat-open .bottomnav { display: none; }
  .chat-page .content { padding: 0; }
  .chat-shell { grid-template-columns: 1fr; height: calc(100dvh - var(--bottom) - var(--sab)); }
  .chat-page.chat-open .chat-shell { height: 100dvh; }
  .chat-list { padding-top: var(--sat); border-right: 0; }
  .chat-list-head { padding: 12px 12px 8px; }
  .thread { display: none; }
  .chat-shell.show-thread .chat-list { display: none; }
  .chat-shell.show-thread .thread { display: flex; }
  .thread-head { padding-top: calc(8px + var(--sat)); min-height: calc(60px + var(--sat)); }
  #threadBack { display: inline-grid; }
  .msg { max-width: 86%; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .view-list { grid-template-columns: 1fr; }
  .view-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mcard-cover { height: 60px; }
  .mcard-avatar, .mcard-avatar .avatar { width: 68px; height: 68px; }
  .mcard-avatar { margin-top: -34px; }
  .mcard-name { font-size: 1rem; }
  .mcard-loc { margin: 10px 8px 8px; padding: 10px; }
  .loc-city { font-size: 1.35rem; padding-right: 0; }
  .mcard-loc::before { display: none; }
  .view-pass .mcard-loc { padding: 12px 10px; }
  .view-glass .mcard { min-height: 250px; }
  .view-polaroid .mcard { padding: 8px 8px 12px; }
  .view-polaroid .loc-city { font-size: 1.7rem; }
  .view-compact .mcard-avatar, .view-compact .mcard-avatar .avatar { width: 48px; height: 48px; }
  .view-compact .mcard-avatar { margin-top: -24px; }
  .view-compact .mcard-name { font-size: .85rem; }
  .view-compact .loc-city { font-size: .98rem; }
  .view-list .mcard-chips { display: none; }
  .view-list .mcard-loc { width: 42%; min-width: 0; }
  .features { grid-template-columns: 1fr; }
  .world-hero { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .world-hero div { padding: 12px; }
  .auth-card { padding: 24px 20px; }
  .save-bar p { display: none; }
  .save-bar { justify-content: flex-end; }
  .save-bar .btn { width: 100%; }
  .review-actions form.grow { flex-basis: 100%; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.standalone .topbar { -webkit-user-select: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .trip-line i { left: 50% !important; opacity: 1 !important; } }

/* ================================================================ V4 */
.inline-form { display: inline; margin: 0; }
.full-row { grid-column: 1 / -1; }
.icon-btn.sm { width: 28px; height: 28px; }
.country-pick { display: flex; flex-direction: column; gap: 6px; }
.batch-check { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.code-input { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .3em; text-align: center; }

/* ---------------------------------------------------------------- maps */
.geo-picker { display: flex; flex-direction: column; gap: 8px; }
.geo-map { height: 260px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; z-index: 0; }
.geo-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-pin span { display: block; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.static-map { height: 220px; border-radius: 14px; overflow: hidden; margin-top: 12px; border: 1px solid var(--border); z-index: 0; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-seg { margin: 0; min-width: 240px; }
.members-map { height: calc(100dvh - 250px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 0; }
.leaflet-container { font: inherit; background: #e9eef5; }
.map-pin { background: none; border: 0; }
.map-face { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); background: #fff; }
.map-face img { width: 100%; height: 100%; object-fit: cover; }
.map-face b { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-family: var(--display); font-size: .85rem; background: hsl(var(--h, 220) 45% 42%); }
.map-pin.approx .map-face { opacity: .55; border-style: dashed; }
.map-pin.is-trip .map-face { border-color: #f0803c; }
.map-pin.is-bday .map-face { border-color: #f2c75c; box-shadow: 0 0 0 3px rgba(242,199,92,.5), 0 4px 12px rgba(0,0,0,.3); }
.map-badge { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-style: normal; font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-cluster { background: none; }
.map-cluster span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 10px 12px; }
.mp { display: flex; gap: 10px; align-items: center; color: #13294b !important; text-decoration: none; min-width: 180px; }
.mp .map-face { width: 44px; height: 44px; flex: none; }
.mp strong { display: block; font-size: .95rem; }
.mp-where { font-size: .85rem; } .mp-where.trip { color: #c2410c; }
.mp-sub { font-size: .76rem; color: #64748b; }

/* ------------------------------------------------------ birthday card */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mcard.is-birthday { border: 0; padding: 3px; background: conic-gradient(from var(--spin), #f2c75c, #ff6b9a, #8b7bff, #2dd4bf, #f2c75c); animation: bday-spin 6s linear infinite; overflow: visible; }
.mcard.is-birthday > :not(.bday-ribbon):not(.bday-confetti):not(.trip-ribbon):not(.mcard-avatar) { position: relative; }
.mcard.is-birthday::before { content: ''; position: absolute; inset: 3px; border-radius: calc(var(--r-lg) - 3px); background: var(--card); z-index: 0; }
.mcard.is-birthday > .mcard-cover { border-radius: calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px) 0 0; z-index: 1; }
.mcard.is-birthday > .mcard-loc { z-index: 1; }
.mcard.is-birthday .mcard-loc { border-radius: 0 0 calc(var(--r-lg) - 3px) calc(var(--r-lg) - 3px); }
.mcard.is-birthday .mcard-body, .mcard.is-birthday .mcard-chips { z-index: 1; }
.mcard.is-birthday .mcard-avatar { z-index: 2; }
.mcard.is-birthday .mcard-avatar .avatar { box-shadow: 0 0 0 3px #f2c75c, 0 0 22px rgba(242,199,92,.8); animation: bday-glow 2s ease-in-out infinite; }
.mcard.is-birthday .mcard-sub { color: #c2410c; font-weight: 700; }
@keyframes bday-spin { to { --spin: 360deg; } }
@keyframes bday-glow { 50% { box-shadow: 0 0 0 3px #ff6b9a, 0 0 30px rgba(255,107,154,.8); } }
.bday-ribbon { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; padding: 4px 12px; border-radius: 99px; background: linear-gradient(90deg, #f2c75c, #ff6b9a); color: #3b1420; font-size: .74rem; font-weight: 800; box-shadow: 0 4px 14px rgba(255,107,154,.45); animation: bday-bob 2.4s ease-in-out infinite; }
@keyframes bday-bob { 50% { transform: translateX(-50%) translateY(-3px); } }
.bday-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; border-radius: inherit; }
.bday-confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; opacity: .9; animation: confetti 4.2s linear infinite; }
.bday-confetti i:nth-child(1) { left: 8%; background: #f2c75c; animation-delay: 0s; }
.bday-confetti i:nth-child(2) { left: 22%; background: #ff6b9a; animation-delay: 1.1s; }
.bday-confetti i:nth-child(3) { left: 36%; background: #8b7bff; animation-delay: 2.3s; }
.bday-confetti i:nth-child(4) { left: 50%; background: #2dd4bf; animation-delay: .6s; }
.bday-confetti i:nth-child(5) { left: 64%; background: #f2c75c; animation-delay: 1.8s; }
.bday-confetti i:nth-child(6) { left: 76%; background: #ff6b9a; animation-delay: 3s; }
.bday-confetti i:nth-child(7) { left: 88%; background: #8b7bff; animation-delay: .3s; }
.bday-confetti i:nth-child(8) { left: 95%; background: #2dd4bf; animation-delay: 2.6s; }
.bday-confetti i:nth-child(9) { left: 15%; background: #2dd4bf; animation-delay: 3.4s; }
.bday-confetti i:nth-child(10) { left: 70%; background: #f2c75c; animation-delay: 1.5s; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(520px) rotate(540deg); opacity: 0; } }
.profile.is-birthday .profile-avatar .avatar { box-shadow: 0 0 0 5px #f2c75c, 0 0 36px rgba(242,199,92,.7); }
.bday-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px; background: linear-gradient(135deg, #fff4d6, #ffe0ec 55%, #e9e4ff); color: #3b1420; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.bday-title { font-family: var(--display); font-weight: 800; font-size: 1.4rem; position: relative; z-index: 5; }
.wish-form { display: flex; gap: 8px; position: relative; z-index: 5; }
.wish-form input { background: rgba(255,255,255,.85); color: #3b1420; border-color: rgba(59,20,32,.15); }
.wish-quick { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 5; }
.wish-quick .chip { background: rgba(255,255,255,.7); color: #3b1420; border: 0; cursor: pointer; }
.wish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; position: relative; z-index: 5; }
.wish { display: flex; gap: 10px; background: rgba(255,255,255,.75); border-radius: 12px; padding: 10px; }
.wish p { font-size: .9rem; }

/* -------------------------------------------------------------- events */
.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.event-card:hover { border-color: var(--accent); }
.event-card.is-cancelled { opacity: .6; }
.event-info { flex: 1; min-width: 0; }
.event-info h3 { font-size: 1.05rem; margin-bottom: 3px; }
.event-info .ic, .event-meta .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.event-date { flex: none; width: 58px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.event-date span { display: block; background: var(--primary); color: var(--on-primary); font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 3px 0; }
.event-date strong { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.event-date small { display: block; font-size: .7rem; color: var(--muted); padding-bottom: 4px; }
.event-date.big { width: 86px; } .event-date.big strong { font-size: 2.3rem; }
.event-date.sm { width: 44px; } .event-date.sm strong { font-size: 1.1rem; }
.event-hero { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.event-hero.is-cancelled { opacity: .7; }
.event-meta { margin-top: 6px; }
.rsvp-box { display: flex; flex-direction: column; gap: 10px; }
.rsvp-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.rsvp-buttons .btn { flex: 1 1 120px; }
.rsvp-going:not(.ghost) { background: var(--ok); color: #fff; }
.rsvp-no:not(.ghost) { background: var(--muted); color: #fff; }
.rsvp-tag { font-weight: 700; } .rsvp-going { } .rsvp-tag.rsvp-going { color: var(--ok); }
.guest-badge { position: absolute; right: -4px; bottom: -4px; font-size: .62rem; font-weight: 800; background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 1px 5px; }
.mini-event { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.mini-event > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mini-event + .mini-event { border-top: 1px dashed var(--border); }

/* ---------------------------------------------------------- memory wall */
.memory-compose input, .memory-compose textarea { background: var(--raised); }
.memory-wall { columns: 2 360px; column-gap: 16px; }
.memory { break-inside: avoid; margin-bottom: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); border-top: 5px solid hsl(var(--h) 60% 55%); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.memory.is-pinned { border-top-color: var(--accent); }
.memory-head { display: flex; gap: 10px; align-items: center; }
.memory-head > div { display: flex; flex-direction: column; }
.memory-title { font-size: 1.1rem; }
.memory-reacts, .msg-reacts { display: flex; flex-wrap: wrap; gap: 5px; }
.react-chip { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--border); background: var(--raised); border-radius: 99px; padding: 2px 9px; font-size: .9rem; line-height: 1.5; }
.react-chip b { font-size: .75rem; }
.react-chip.mine { background: color-mix(in srgb, var(--accent) 22%, var(--card)); border-color: var(--accent); }
.react-chip.empty { opacity: .55; } .react-chip.empty:hover { opacity: 1; }
.memory-comments { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--border); padding-top: 10px; }
.mcomment { display: flex; gap: 8px; font-size: .9rem; align-items: flex-start; }
.comment-form { display: flex; gap: 6px; }
.comment-form input { min-height: 38px; }
.memory-actions { display: flex; gap: 14px; justify-content: flex-end; }

/* --------------------------------------------------------------- polls */
.poll-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.poll-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--raised); }
.poll-option.show::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: color-mix(in srgb, var(--primary) 14%, transparent); transition: width .5s; }
.poll-option.chosen { border-color: var(--primary); }
.poll-option.chosen.show::before { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.poll-option > * { position: relative; }
.poll-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.po-label { flex: 1; font-weight: 600; }
.po-pct { font-family: var(--mono); font-weight: 700; }
.po-voters { display: flex; } .po-voters .avatar { margin-left: -6px; border: 2px solid var(--card); }

/* ---------------------------------------------------------------- jobs */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job { display: flex; flex-direction: column; gap: 6px; }
.job.is-closed { opacity: .65; }
.job-head { display: flex; gap: 6px; }
.kind-tag { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--soft); }
.kind-job { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.kind-internship { background: color-mix(in srgb, #2dd4bf 20%, transparent); color: #0f766e; }
.kind-mentor_offer { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.kind-mentor_request { background: color-mix(in srgb, var(--accent) 22%, transparent); color: #9a6a00; }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mentor-topics { color: var(--text) !important; white-space: normal !important; }

/* -------------------------------------------------------- chat reactions */
.msg-col { position: relative; }
.msg-reacts:empty { display: none; }
.msg-reacts { margin-top: 3px; }
.msg.mine .msg-reacts { justify-content: flex-end; }
.msg-reacts .react-chip { padding: 0 7px; font-size: .82rem; }
.msg-react-btn { opacity: 0; border: 0; background: var(--card); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; align-self: center; flex: none; transition: opacity .15s; }
.msg:hover .msg-react-btn { opacity: 1; }
@media (hover: none) { .msg-react-btn { display: none; } }
.react-picker { position: absolute; z-index: 30; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: sheet-in .15s ease; }
.react-picker button { border: 0; background: none; font-size: 1.45rem; width: 40px; height: 40px; border-radius: 50%; transition: transform .1s; }
.react-picker button:hover { transform: scale(1.25); background: var(--soft); }

/* ------------------------------------------------------- two-step sign-in */
.steps { margin: 0; padding-left: 20px; color: var(--muted); }
.qr-wrap { display: grid; place-items: center; }
.qr-wrap > div { width: 220px; height: 220px; background: #fff; border-radius: 16px; padding: 6px; }
.qr-wrap svg { width: 100%; height: 100%; }
.totp-key { font-size: .95rem; letter-spacing: .08em; }
.codes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codes-grid code { display: block; text-align: center; padding: 8px; font-size: 1rem; }
@media (max-width: 900px) {
  .members-map { height: calc(100dvh - 260px - var(--bottom)); min-height: 360px; }
  .memory-wall { columns: 1; }
  .event-hero { flex-direction: column; }
  .wish-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .mcard.is-birthday { animation: none; }
  .bday-confetti { display: none; }
}

/* ============================================================== V4.1 */
/* ---- home hero */
.home-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 28px 30px 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--primary) 78%, #fff 22%) 0%, var(--primary) 42%, color-mix(in srgb, var(--primary) 55%, #000 45%) 100%);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.15); isolation: isolate; }
.hh-glow { position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); opacity: .55; z-index: -1; filter: blur(10px); }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 18px 18px; mask-image: linear-gradient(110deg, transparent 35%, #000 75%); }
.hh-crest { position: absolute; right: -40px; top: -30px; width: 230px; opacity: .1; transform: rotate(-12deg); z-index: -1; pointer-events: none; }
.hh-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.hh-date { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 80%, #fff); }
.hh-hello h2 { font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.02; letter-spacing: -.02em; margin: 6px 0 8px; color: #fff; }
.hh-hello h2 span { display: block; font-size: .42em; font-weight: 600; letter-spacing: 0; opacity: .8; margin-bottom: 4px; }
.hh-line { color: rgba(255,255,255,.82); font-size: .95rem; }
.hh-stats { display: grid; grid-template-columns: repeat(4, minmax(76px, 1fr)); gap: 10px; }
.hh-stats a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 12px 10px; border-radius: 18px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); transition: transform .15s, background .15s; }
.hh-stats a:hover { transform: translateY(-2px); background: rgba(255,255,255,.17); }
.hh-stats strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.hh-stats span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 5px; }
.hh-trip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.12); }
.hh-trip-now { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; }
.hh-trip-now .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.muted-on-dark { color: rgba(255,255,255,.8); }
.hh-quick { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.hh-quick::-webkit-scrollbar { display: none; }
.hh-quick a { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 14px; color: rgba(255,255,255,.88); font-size: .76rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.hh-quick a:hover { background: rgba(255,255,255,.12); color: #fff; }
.hh-quick .ic { width: 20px; height: 20px; }

/* ---- big travel buttons */
.btn-travel, .btn-back { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer; text-align: left; text-decoration: none; font: inherit;
  padding: 14px 18px; border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.btn-travel { color: #fff; background: linear-gradient(120deg, #f08a3c, #e5487a 55%, #8b5cf6); box-shadow: 0 12px 28px -12px rgba(229,72,122,.75); }
.btn-back { color: #0f2a1d; background: linear-gradient(120deg, #34d399, #a3e635); box-shadow: 0 12px 28px -12px rgba(52,211,153,.8); }
.btn-travel:hover, .btn-back:hover { transform: translateY(-2px); }
.btn-travel .ic, .btn-back .ic { width: 26px; height: 26px; flex: none; }
.btn-travel span, .btn-back span { display: flex; flex-direction: column; }
.btn-travel strong, .btn-back strong { font-size: 1.02rem; }
.btn-travel small, .btn-back small { opacity: .85; font-size: .82rem; }
.btn-travel.sm, .btn-back.sm { width: auto; padding: 10px 16px; border-radius: 99px; }
.btn-travel.sm .ic, .btn-back.sm .ic { width: 18px; height: 18px; }
.btn-travel.sm strong, .btn-back.sm strong { font-size: .9rem; white-space: nowrap; }
.back-home { margin: 0; }
.back-home .btn-back { animation: back-pulse 2.6s ease-in-out infinite; }
@keyframes back-pulse { 50% { box-shadow: 0 12px 34px -8px rgba(52,211,153,.95); } }
.pass-side .btn-travel, .pass-side .back-home { margin-top: 2px; }

/* ---- my trips */
.trip-list { display: flex; flex-direction: column; gap: 8px; }
.trip-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); flex-wrap: wrap; }
.trip-row.is-now { border-color: #34d399; background: color-mix(in srgb, #34d399 10%, var(--card)); }
.trip-flag { font-size: 1.5rem; }
.chip-now { background: #34d399; color: #0f2a1d; }
.block { display: block; }

/* ---- smart city box */
.city-suggest { position: relative; }
.city-suggest > input { width: 100%; }
.city-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 18px 40px -12px rgba(0,0,0,.3); }
.city-hint { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px 4px; font-weight: 700; }
.city-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.city-opt:hover, .city-opt.on { background: var(--soft); }
.co-flag { font-size: 1.2rem; width: 24px; text-align: center; }
.co-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.co-main small { color: var(--muted); font-size: .78rem; }
.co-n { font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* ---- our cities */
.city-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 12px; border-radius: 99px; background: var(--raised); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; transition: border-color .15s, transform .15s; }
.city-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.city-chip b { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: .74rem; }
.city-chip.more { padding-right: 12px; color: var(--muted); }

/* ---- members by house */
.house-group { margin-top: 8px; }
.house-head { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.25rem; margin: 18px 0 12px; }
.house-head small { font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: auto; }
.house-crest { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, hsl(var(--h) 60% 48%), hsl(calc(var(--h) + 40) 60% 38%)); box-shadow: 0 6px 16px -6px hsl(var(--h) 60% 40%); }
.settings-sub { margin-top: 6px; }

@media (max-width: 900px) {
  .home-hero { padding: 22px 18px 12px; border-radius: 22px; }
  .hh-stats { width: 100%; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hh-stats a { min-width: 0; padding: 10px 4px; }
  .hh-stats strong { font-size: 1.35rem; }
  .hh-trip { flex-direction: column; align-items: stretch; }
  .hh-trip .btn-back.sm, .hh-trip .btn-travel.sm, .hh-trip .inline-form { width: 100%; justify-content: center; }
  .hh-trip .inline-form .btn-back { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .back-home .btn-back { animation: none; } }
@media (max-width: 480px) { .hh-stats span { font-size: .6rem; letter-spacing: .03em; } }

/* =============================================================== V5 */
/* ---- travel plans badge on cards */
.plans-chip { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 9px 3px 7px; border-radius: 99px; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1.4;
  background: linear-gradient(120deg, #f08a3c, #e5487a); box-shadow: 0 4px 12px -4px rgba(229,72,122,.7); }
.plans-chip .ic { width: 12px; height: 12px; flex: none; }
.plans-chip small { display: none; }
.chip-batch { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }

/* ---- travel plans on profile */
.plans-panel .count, .album-panel .count { font-size: .75rem; padding: 1px 8px; border-radius: 99px; background: var(--soft); margin-left: 4px; }
.plan-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); }
.plan.is-now { border-color: #34d399; background: color-mix(in srgb, #34d399 10%, var(--card)); }
.plan-date { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #f08a3c, #e5487a); color: #fff; line-height: 1; }
.plan.is-now .plan-date { background: linear-gradient(140deg, #34d399, #16a34a); }
.plan-date b { font-size: 1.15rem; } .plan-date small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.plan-info { display: flex; flex-direction: column; min-width: 0; }
.plan-info small { color: var(--muted); }

/* ---- coming to your city */
.coming-panel { border: 1px solid color-mix(in srgb, #e5487a 35%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, #f08a3c 7%, var(--card)), var(--card) 60%); }
.coming-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.coming { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.coming.is-now { border-color: #34d399; }
.coming-who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.coming-who > span { display: flex; flex-direction: column; min-width: 0; }
.coming-who small { color: #c2410c; font-weight: 700; font-size: .8rem; }
.coming.is-now .coming-who small { color: #16a34a; }
.coming-note { font-size: .88rem; color: var(--muted); font-style: italic; }
.coming .btn { align-self: flex-start; }

/* ---- photo album on profile */
.album-grid { display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; border-radius: 16px; overflow: hidden; }
.album-grid.n1 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.album-grid.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
.album-grid.n3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 150px; }
.album-grid.n3 .album-lead { grid-row: span 2; }
.album-grid.n4 .album-lead, .album-grid.n5 .album-lead { grid-column: span 2; grid-row: span 2; }
.album-grid.n4 { grid-template-columns: 2fr 1fr 1fr; }
.album-grid.n4 .album-tile:nth-child(4) { grid-column: span 2; }
.album-tile { position: relative; display: block; overflow: hidden; background: var(--soft); }
.album-tile.extra { display: none; }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-tile:hover img { transform: scale(1.05); }
.album-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; }
.album-tile:hover::after { opacity: 1; }
.album-cap { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: .25s; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.album-tile:hover .album-cap { opacity: 1; transform: none; }
.album-more { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(10,20,40,.55); color: #fff; font-family: var(--display); font-size: 1.8rem; }
.album-badge { position: absolute; top: 8px; left: 8px; z-index: 2; }

/* ---- photo viewer */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(6,10,20,.94); outline: none; animation: lb-in .2s ease; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transform: scale(.98); transition: opacity .25s, transform .25s; }
.lightbox img.in { opacity: 1; transform: none; }
.lightbox figcaption { color: rgba(255,255,255,.88); text-align: center; max-width: 60ch; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 20px; color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; }

/* ---- album manager */
.album-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 18px; background: var(--raised); transition: border-color .2s, background .2s; }
.album-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.album-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.album-drop .ic { width: 34px; height: 34px; color: var(--accent); }
.album-drop span { color: var(--muted); font-size: .88rem; }
.album-progress { width: 100%; max-width: 320px; height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.album-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.album-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.album-edit { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.album-edit.is-pending img { opacity: .6; }
.album-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-caption input { border: 0; border-radius: 0; border-top: 1px solid var(--border); font-size: .85rem; }
.album-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.album-tools .icon-btn { background: rgba(255,255,255,.92); color: #13294b; box-shadow: 0 2px 6px rgba(0,0,0,.2); font-weight: 800; }
.album-tools .icon-btn.danger { color: var(--danger); }
.album-link { align-items: center; }
.photo-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-review figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-review img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* ---- branding & admin */
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-row img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: var(--raised); border: 1px solid var(--border); padding: 4px; }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 10px; cursor: pointer; flex: none; }
.color-row input[type=text] { max-width: 130px; font-family: var(--mono); }
.role-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--primary); vertical-align: 2px; }
.batch-row { display: grid; grid-template-columns: 1.4fr .6fr 1.4fr auto auto auto; gap: 8px; align-items: center; }
.batch-n { white-space: nowrap; font-size: .85rem; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.howto .prose p { margin-top: 8px; }
@media (max-width: 900px) {
  .batch-row { grid-template-columns: 1fr 1fr; }
  .album-grid { grid-auto-rows: 90px; }
  .album-grid.n1 { grid-auto-rows: 240px; } .album-grid.n2 { grid-auto-rows: 160px; }
  .lb-prev, .lb-next { display: none !important; }
}

/* =============================================================== V6 */
/* ---- reunion list + banner */
.reunion-list { display: flex; flex-direction: column; gap: 10px; }
.reunion-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.reunion-card:hover { border-color: var(--accent); }
.reunion-card.status-cancelled { opacity: .6; }
.rc-count, .rb-count { flex: none; width: 72px; height: 72px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; line-height: 1;
  background: linear-gradient(140deg, #8b5cf6, #e5487a 60%, #f08a3c); box-shadow: 0 10px 24px -12px rgba(229,72,122,.8); }
.rc-count strong, .rb-count strong { font-family: var(--display); font-size: 1.7rem; }
.rc-count small, .rb-count small { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; text-align: center; }
.rc-info { flex: 1; min-width: 0; } .rc-info h3 { font-size: 1.08rem; }
.status-chip { background: var(--soft); }
.rsvp-ask { color: #e5487a; font-weight: 700; }
.reunion-banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 22px; color: inherit; text-decoration: none;
  background: linear-gradient(120deg, color-mix(in srgb, #8b5cf6 12%, var(--card)), color-mix(in srgb, #f08a3c 10%, var(--card))); border: 1px solid color-mix(in srgb, #8b5cf6 30%, var(--border)); box-shadow: var(--shadow); }
.rb-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rb-text small { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; color: #8b5cf6; }
.rb-text strong { font-family: var(--display); font-size: 1.2rem; }
.rb-text span { color: var(--muted); font-size: .88rem; }

/* ---- reunion page */
.reunion-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 26px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 150% at 0% 0%, #8b5cf6 0%, #6d28d9 35%, #be185d 75%, #ea580c 100%); box-shadow: 0 24px 50px -24px rgba(109,40,217,.7); }
.reunion-hero::after { content: ''; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 16px 16px; mask-image: linear-gradient(110deg, transparent 40%, #000); pointer-events: none; }
.reunion-hero.status-cancelled { filter: grayscale(.8); }
.rh-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; opacity: .85; }
.rh-main h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; margin: 6px 0 10px; color: #fff; }
.rh-meta { display: flex; align-items: center; gap: 8px; opacity: .92; margin-top: 4px; }
.rh-meta .ic { width: 16px; height: 16px; }
.rh-count { align-self: start; text-align: center; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.rh-count strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.rh-count small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.rh-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; z-index: 1; }
.rh-stats a { padding: 12px; border-radius: 16px; background: rgba(0,0,0,.18); color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.rh-stats a:hover { background: rgba(0,0,0,.28); }
.rh-stats strong { font-family: var(--display); font-size: 1.35rem; }
.rh-stats span { font-size: .76rem; opacity: .85; }
.reunion-tabs .ic { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.reunion-grid { align-items: start; }
.agenda { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; }
.agenda li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.ag-time { flex: none; width: 86px; font-weight: 800; color: var(--primary); display: flex; flex-direction: column; }
.ag-time small { font-weight: 600; color: var(--muted); font-size: .72rem; }
.agenda-form input[type=time] { max-width: 120px; } .agenda-form input[type=date] { max-width: 160px; }
.r-post { display: flex; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); }
.my-part p { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.my-part .ic { width: 16px; height: 16px; color: var(--accent); }
.owe { color: var(--danger) !important; } .owed { color: var(--ok) !important; }
/* rsvp */
.rsvp-pick { flex: 1 1 120px; position: relative; }
.rsvp-pick input { position: absolute; opacity: 0; }
.rsvp-pick span { display: block; text-align: center; padding: 12px; border-radius: 14px; border: 2px solid var(--border); font-weight: 700; cursor: pointer; transition: .15s; }
.rsvp-pick input:checked + span { color: #fff; border-color: transparent; }
.rsvp-going input:checked + span { background: linear-gradient(120deg, #16a34a, #34d399); }
.rsvp-maybe input:checked + span { background: linear-gradient(120deg, #d97706, #fbbf24); }
.rsvp-no input:checked + span { background: #64748b; }
.rsvp-pick input:focus-visible + span { outline: 3px solid var(--focus); }
.count-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.count-tiles div { padding: 12px 8px; border-radius: 14px; background: var(--raised); text-align: center; display: flex; flex-direction: column; }
.count-tiles strong { font-family: var(--display); font-size: 1.5rem; }
.count-tiles span { font-size: .72rem; color: var(--muted); }
.guest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.guest-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 12px; background: var(--raised); }
/* budget */
.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bs-tile { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.bs-tile span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bs-tile strong { font-family: var(--display); font-size: 1.7rem; }
.bs-tile small { color: var(--muted); }
.bs-tile.owe { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); } .bs-tile.owe strong { color: var(--danger); }
.bs-tile.owed { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); } .bs-tile.owed strong { color: var(--ok); }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #e5487a); border-radius: 99px; transition: width .4s; }
.settle-row, .pay-row, .balance-list li, .share-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.settle-row > span, .pay-row > span, .balance-list li > span:first-child, .share-list li > span { flex: 1; min-width: 0; }
.settle-row.mine { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding: 9px 10px; }
.settle-row b, .pay-row b, .balance-list b, .share-list b { font-variant-numeric: tabular-nums; }
.pay-row.pending { opacity: .75; }
.balance-list, .share-list { list-style: none; margin: 0; padding: 0; }
.balance-list li small { white-space: nowrap; }
.expense { border-bottom: 1px dashed var(--border); padding: 8px 0; }
.expense summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.expense summary::-webkit-details-marker { display: none; }
.expense summary > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.expense .share-list { padding: 6px 0 6px 12px; font-size: .88rem; }
.who-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px; border-radius: 12px; background: var(--raised); }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
/* tasks */
.task-add select { max-width: 220px; } .task-add input[type=date] { max-width: 160px; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.kanban-col { padding: 12px; border-radius: 20px; background: var(--raised); border: 1px solid var(--border); min-height: 120px; display: flex; flex-direction: column; gap: 10px; }
.kanban-col h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.col-todo h3 { color: #8b5cf6; } .col-doing h3 { color: #d97706; } .col-done h3 { color: #16a34a; }
.task { padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 2px 8px -4px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 6px; }
.task.mine { border-left: 4px solid var(--accent); }
.task.late { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.col-done .task strong { text-decoration: line-through; opacity: .7; }
.task-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-meta .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.task-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.kanban-empty { text-align: center; padding: 18px 0; }
/* bring list */
.bring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bring { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bring.full { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.bring.full .bar i { background: linear-gradient(90deg, #16a34a, #34d399); }
.bring-head { display: flex; gap: 8px; align-items: center; padding-right: 26px; }
.claims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.claims li { display: flex; align-items: center; gap: 6px; }
.bring-del { position: absolute; top: 10px; right: 10px; }
/* batch look */
.batch-look { margin-top: 8px; }
.batch-look summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.batch-look summary .ic { width: 15px; height: 15px; }
.batch-look form { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--raised); }
.mt-sm { margin-top: 6px; }
@media (max-width: 900px) {
  .reunion-hero { grid-template-columns: 1fr; padding: 20px; }
  .rh-count { justify-self: start; }
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
  .budget-summary, .kanban { grid-template-columns: 1fr; }
  .count-tiles { grid-template-columns: repeat(2, 1fr); }
  .reunion-banner { flex-wrap: wrap; }
}

/* reunion header: compact away from the overview, corner countdown on phones */
.reunion-hero.compact { padding: 16px 22px; }
.reunion-hero.compact .rh-stats, .reunion-hero.compact .rh-meta + .rh-meta, .reunion-hero.compact .rh-kicker { display: none; }
.reunion-hero.compact .rh-main h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 4px; }
.reunion-hero.compact .rh-count { padding: 6px 12px; } .reunion-hero.compact .rh-count strong { font-size: 1.5rem; }
@media (max-width: 900px) {
  .rh-count { position: absolute; top: 14px; right: 14px; padding: 6px 10px; z-index: 1; }
  .rh-count strong { font-size: 1.5rem; } .rh-count small { font-size: .58rem; }
  .rh-main { padding-right: 112px; }
  .rh-stats a { padding: 10px; } .rh-stats strong { font-size: 1.1rem; }
}

/* =============================================================== V7 */
/* ---- phone with country code */
.phone-pick { display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, 1.6fr); align-items: center; gap: 6px; }
.phone-pick select { min-width: 0; }
.phone-code { font-weight: 800; color: var(--muted); padding: 0 2px; font-variant-numeric: tabular-nums; }
.phone-other { width: 80px; }
.phone-other[hidden] { display: none; }
.phone-pick input[type=tel] { min-width: 0; letter-spacing: .03em; }
@media (max-width: 560px) { .phone-pick { grid-template-columns: 1fr auto; } .phone-pick select { grid-column: 1 / -1; } .phone-code { display: none; } .phone-pick input[type=tel] { grid-column: 1 / -1; } .phone-other:not([hidden]) + input[type=tel] { grid-column: auto; } }
/* ---- sign in */
.keep-signed { margin: 2px 0 4px; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
/* ---- notifications invitation */
.push-invite { position: fixed; z-index: 900; left: 50%; bottom: calc(18px + var(--bottom, 0px) + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.push-invite.in { transform: translate(-50%, 0); }
.pi-icon { font-size: 1.8rem; flex: none; }
.pi-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pi-text span { font-size: .85rem; color: var(--muted); }
.pi-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 560px) { .push-invite { flex-wrap: wrap; } .pi-actions { flex-direction: row; width: 100%; } .pi-actions .btn { flex: 1; } }
/* ---- invites */
.code-input-sm { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ok-text { color: var(--ok) !important; font-weight: 700; }
.invite-new { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border: 2px solid color-mix(in srgb, var(--ok) 50%, var(--border)); }
.invite-new .qr-wrap > div { width: 180px; height: 180px; }
.invite-code { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; letter-spacing: .14em; color: var(--primary); }
.invite-code.sm { font-size: 1.05rem; }
.copy-row { display: flex; gap: 8px; } .copy-row input { font-family: var(--mono); font-size: .85rem; }
.invite-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.invite { display: flex; flex-direction: column; gap: 6px; }
.invite.status-expired, .invite.status-used, .invite.status-revoked { opacity: .7; }
.inv-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#qrDialog .qr-wrap > div { width: 260px; height: 260px; margin: 10px auto; }
.code-input-sm::placeholder { text-transform: none; letter-spacing: normal; }

/* =============================================================== V8 */
/* ---- camera */
.avatar-cam-btn { position: absolute; left: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--card); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.avatar-cam-btn .ic { width: 17px; height: 17px; }
.camera-sheet { max-width: 640px; width: calc(100vw - 24px); }
.camera-view { background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.camera-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.album-buttons { justify-content: center; }
/* ---- map pin */
.pin-bounce { animation: pin-bounce .9s ease; }
@keyframes pin-bounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-18px); } 60% { transform: translateY(0); } 75% { transform: translateY(-6px); } }
/* ---- terms */
.terms-card { max-width: 760px; }
.terms-text h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.terms-text ul { padding-left: 20px; } .terms-text li { margin: 4px 0; }
.terms-check { align-items: flex-start; font-size: .9rem; }
/* ---- growth */
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.fs-bar { height: 44px; border-radius: 12px; background: var(--raised); position: relative; overflow: hidden; }
.fs-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--accent) 60%, var(--primary))); border-radius: 12px; }
.fs-bar strong { position: relative; z-index: 1; color: #fff; line-height: 44px; padding-left: 14px; font-family: var(--display); font-size: 1.2rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.fs-text { display: flex; flex-direction: column; gap: 2px; } .fs-text b { font-size: 1rem; }
.week-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; }
.wb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wb span { width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--primary)); color: #fff; font-size: .7rem; font-weight: 800; text-align: center; padding-top: 2px; }
.wb small { font-size: .62rem; color: var(--muted); white-space: nowrap; }
.quiet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.quiet-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.growth-range { margin-bottom: 4px; }
/* ---- health */
.health-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-width: 2px; }
.health-summary.all-ok { border-color: color-mix(in srgb, var(--ok) 55%, var(--border)); }
.health-summary.has-warn { border-color: color-mix(in srgb, #f59e0b 55%, var(--border)); }
.health-summary.has-fail { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.hs-icon { font-size: 2.4rem; } .health-summary h2 { font-size: 1.3rem; }
.health-list { list-style: none; margin: 0; padding: 0; }
.health-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.h-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #fff; }
.h-ok .h-dot { background: var(--ok); } .h-warn .h-dot { background: #f59e0b; } .h-fail .h-dot { background: var(--danger); } .h-info .h-dot { background: var(--muted); }
.h-fix { color: var(--text); margin-top: 3px; padding: 6px 10px; border-radius: 8px; background: var(--soft); }
.copyable { word-break: break-all; }
@media (max-width: 700px) { .funnel-step { grid-template-columns: 1fr; gap: 4px; } .week-bars { gap: 3px; } .wb small { display: none; } }
