/* =========================================================
   equaltoMe — main stylesheet (light + dark, mobile first)
   ========================================================= */
@font-face {
  font-family: "Caitlin Script";
  src: url("../fonts/CaitlinScript.woff") format("woff"), url("../fonts/CaitlinScript.ttf") format("truetype");
  font-display: swap;
}

:root {
  --brand: #07244a; --accent: #2f80ff; --glow: #8fd0ff; --glow-2: #3d9bff; --on-brand: #fff; --on-accent: #fff; --brand-deep: #07244a;
  --bg: #f1f4f9; --surface: #ffffff; --surface-2: #f5f7fb; --surface-3: #eaf0f8;
  --text: #0e1a2b; --muted: #5d6c83; --border: #e2e8f1; --border-2: #d3dcea;
  --ok: #12a150; --warn: #c98a00; --bad: #d83a3a; --ok-bg: #e7f7ee; --warn-bg: #fff6df; --bad-bg: #fdecec; --info-bg: #e8f1ff;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(10, 30, 60, .06), 0 4px 16px rgba(10, 30, 60, .05);
  --shadow-lg: 0 12px 40px rgba(7, 36, 74, .18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --top: 60px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #060d18; --surface: #0d1a2c; --surface-2: #12223a; --surface-3: #18304f;
  --text: #e5edf8; --muted: #8fa3bf; --border: #1b2e48; --border-2: #27405f;
  --ok-bg: #0f2e20; --warn-bg: #33270a; --bad-bg: #3a1515; --info-bg: #10284a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .75em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .block { display: block; }
.center { text-align: center; } .danger, .danger:hover { color: var(--bad) !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; z-index: 999; background: var(--surface); padding: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ic-xs { width: 14px; height: 14px; }

/* ---------- logo (Caitlin Script, glow on hover only) ---------- */
.etm-logo, .etm-icon {
  font-family: "Caitlin Script", cursive; font-weight: normal; color: var(--on-brand); line-height: 1; white-space: nowrap;
  display: inline-block; text-shadow: 0 0 0 rgba(143, 208, 255, 0); transition: text-shadow .35s ease;
}
.etm-logo { font-size: 1.9rem; padding: .1em .08em; line-height: 1.35; }
.brand .etm-logo { font-size: 1.75rem; }
.etm-icon { font-size: 1.7rem; }
a:hover .etm-logo, a:focus-visible .etm-logo, .etm-logo:hover, a:hover .etm-icon, .etm-icon:hover, .bot-fab:hover .etm-icon {
  text-shadow: 0 0 4px var(--logo-core, #fff), 0 0 10px var(--glow), 0 0 20px var(--glow-2), 0 0 36px var(--glow-2), 0 0 60px var(--accent);
}
.brand:hover { text-decoration: none; }
.logo-img { max-height: 40px; width: auto; }
.etm-logo-xl { font-size: clamp(3rem, 8vw, 5rem); }
.etm-logo-lg { font-size: 2.6rem; } .etm-icon-lg { font-size: 2.6rem; }
@media (prefers-reduced-motion: reduce) { .etm-logo, .etm-icon { transition: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); } .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-success { background: #12a150; color: #fff; } .btn-success:hover { background: #0e8a44; }
.btn-danger { background: var(--bad); color: #fff; } .btn-danger:hover { background: #bb2d2d; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); } .btn-ghost:hover { background: var(--surface-3); }
.btn-soft { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); } .btn-soft:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-light { background: #fff; color: color-mix(in srgb, var(--brand) 80%, #000); } .btn-light:hover { background: color-mix(in srgb, var(--accent) 8%, #fff); }
.btn-sm { padding: 6px 12px; font-size: .84rem; } .btn-lg { padding: 12px 20px; font-size: 1rem; }
.btn-block { width: 100%; } .btn-icon { padding: 9px; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: inherit; }
.iconbtn:hover { background: var(--surface-3); text-decoration: none; }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .88rem; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- avatars ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; display: inline-block; }
.av-xs { width: 24px; height: 24px; } .av-sm { width: 32px; height: 32px; } .av-md { width: 42px; height: 42px; }
.av-lg { width: 52px; height: 52px; } .av-xl { width: 84px; height: 84px; } .av-hero { width: 152px; height: 152px; border: 4px solid var(--surface); }
.av-square { border-radius: 22%; }
.av-system { display: inline-grid; place-items: center; background: var(--brand-deep); color: #fff; font-size: 1.2rem; }
.av-wrap { position: relative; flex: none; display: inline-block; }
.av-react { position: absolute; right: -4px; bottom: -4px; font-size: .85rem; }
.online { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #23c552; border: 2px solid var(--surface); }
.badge-verified, .badge-premium { display: inline-flex; vertical-align: -2px; margin-left: 4px; }
.badge-verified .ic { width: 16px; height: 16px; color: var(--accent); }
.badge-premium .ic { width: 15px; height: 15px; color: #e8a400; fill: #e8a400; }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; margin-left: auto; }
.badge-count.zero { background: var(--surface-3); color: var(--muted); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--brand); color: var(--on-brand); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.topbar-in { height: var(--top); max-width: 1320px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: auto minmax(0, 340px) 1fr auto; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; color: var(--on-brand); }
.brand-icon { display: none; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: color-mix(in srgb, var(--on-brand) 70%, transparent); }
.topbar .search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-brand) 12%, transparent); background: color-mix(in srgb, var(--on-brand) 10%, transparent); color: var(--on-brand); padding: 0 14px 0 40px; font: inherit; }
.topbar .search input::placeholder { color: color-mix(in srgb, var(--on-brand) 60%, transparent); }
.topbar .search input:focus { outline: none; box-shadow: none; background: color-mix(in srgb, var(--on-brand) 18%, transparent); border-color: var(--glow); }
.topnav { display: flex; justify-content: center; gap: 6px; }
.tn { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 12px; color: color-mix(in srgb, var(--on-brand) 78%, transparent); position: relative; }
.tn:hover { background: color-mix(in srgb, var(--on-brand) 8%, transparent); color: var(--on-brand); }
.tn.active { color: var(--on-brand); } .tn.active::after { content: ""; position: absolute; bottom: -8px; left: 14px; right: 14px; height: 3px; border-radius: 3px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.tn .ic { width: 24px; height: 24px; }
.topright { display: flex; align-items: center; gap: 6px; }
.topright .iconbtn { background: color-mix(in srgb, var(--on-brand) 10%, transparent); color: var(--on-brand); }
.topright .iconbtn:hover, .topright .iconbtn.active { background: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff3b4e; color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--brand); }
.dot[hidden] { display: none; }
.avatar-btn { border: 2px solid color-mix(in srgb, var(--on-brand) 30%, transparent); border-radius: 50%; padding: 0; background: none; display: flex; }
.avatar-btn:hover { border-color: var(--glow); }

/* ---------- dropdown menus ---------- */
.dropdown { position: relative; display: inline-block; }
.menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.menu-right { left: auto; right: 0; }
.dropdown.open > .menu { display: block; animation: pop .14s ease; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; color: var(--text); text-align: left; font-size: .93rem; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu form { margin: 0; }
.menu hr { margin: 6px 0; }
.menu-profile span { display: flex; flex-direction: column; } .menu-profile small { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- shell ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 18px 16px 90px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 28px; }
.shell-guest { grid-template-columns: minmax(0, 1fr); }
/* The rail: equaltoMe's slim, glowing left navigation */
.rail { position: sticky; top: calc(var(--top) + 14px); align-self: start; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 10px 6px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  z-index: 20; }
@media (min-width: 761px) and (max-height: 800px) { .rl span:not(.dot) { display: none; } .rl { padding: 9px 2px; } .rl-create { height: 46px; } }
.rl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 16px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: .68rem; font-weight: 650; letter-spacing: .01em; cursor: pointer; width: 100%; transition: color .15s, background .15s; }
.rl .ic { width: 23px; height: 23px; transition: transform .2s, filter .2s; }
.rl:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.rl:hover .ic { transform: translateY(-1px); }
.rl.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.rl.active .ic { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 85%, transparent)); }
.rl.active::before { content: ""; position: absolute; left: -7px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--glow); box-shadow: 0 0 10px var(--glow), 0 0 2px var(--accent); }
.rl-me .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--glow) 70%, transparent), 0 0 14px var(--glow); }
.rl-me.active::before { display: none; }
.rl-create { color: var(--on-accent); margin: 2px 6px 6px; width: auto; padding: 0; height: 52px; justify-content: center; border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), var(--glow-2)); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--glow) 40%, transparent) inset; }
.rl-create span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rl-create:hover { color: var(--on-accent); background: linear-gradient(145deg, var(--accent), var(--glow-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 35%, transparent), 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.rl-create .ic { width: 26px; height: 26px; }
.rl .dot { top: 2px; right: calc(50% - 22px); border-color: var(--surface); }
.rail-more { display: block; margin-top: 4px; }
.menu-rail { left: calc(100% + 12px); top: auto; bottom: 0; }
.menu-rail .menu-item { display: block; } .menu-rail .menu-item a { padding: 9px 10px; }
.is-auth .topnav { display: none; }
.is-auth .topbar-in { grid-template-columns: auto minmax(0, 460px) 1fr; }
.is-auth .topright { justify-self: end; }
.main { min-width: 0; }
.with-aside { display: grid; grid-template-columns: minmax(0, 620px) 320px; gap: 24px; justify-content: center; }
.col-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-main.narrow { max-width: 680px; margin: 0 auto; width: 100%; }
.col-main.wide-main { max-width: 860px; margin: 14px auto 0; width: 100%; }
.col-wide { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.col-aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: calc(var(--top) + 18px); align-self: start; }

/* ---------- cards & common blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--accent); margin-bottom: 8px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; background: var(--info-bg); border-color: transparent; }
.notice .ic { color: var(--accent); margin-top: 2px; }
.page-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.page-head h1 { margin: 0; } .page-head p { margin: 0; }
.ph-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.ph-icon .ic { width: 24px; height: 24px; }
.ph-right { margin-left: auto; }
.section-title { font-size: 1.05rem; margin: 10px 4px 0; }
.side-block { padding: 14px 16px; }
.side-block h4 { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; }
.side-more { display: block; text-align: center; font-weight: 600; font-size: .9rem; margin-top: 8px; }
.side-more-inline { font-size: .85rem; font-weight: 600; margin-left: auto; }
.side-foot { font-size: .8rem; color: var(--muted); padding: 0 6px; }
.side-foot nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.side-foot a { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }

/* people lists */
.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.person { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.person:hover { text-decoration: none; } .person:hover strong { text-decoration: underline; }
.person > span { display: flex; flex-direction: column; min-width: 0; }
.person > span > strong { display: inline; }
.person small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.trend-list a { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; color: var(--text); }
.trend-list a:hover { background: var(--surface-2); text-decoration: none; }
.trend-list small { color: var(--muted); }

/* chips & tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: .85rem; font-weight: 600; border: 1px solid transparent; }
.chip:hover { text-decoration: none; border-color: var(--border-2); }
.chip-on { background: var(--accent); color: #fff; }
.chip-xs { padding: 2px 8px; font-size: .72rem; }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 12px 16px; font-weight: 650; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.feed-tabs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; }
.post-as { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

/* ---------- flash & toast ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; transition: opacity .6s; }
.flash > span { flex: 1; }
.flash-success { background: var(--ok-bg); color: var(--ok); } .flash-error { background: var(--bad-bg); color: var(--bad); } .flash-info { background: var(--info-bg); color: var(--accent); }
.flash.fade { opacity: .0; pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; }
.flash-x { border: 0; background: none; font-size: 1.2rem; line-height: 1; opacity: .6; color: inherit; }
.toast-wrap { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #0e1a2b; color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .2s ease; max-width: 90vw; }
.toast-err { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .4s; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .settings-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=month], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea { resize: vertical; }
input[type=color] { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); padding: 3px; }
input[type=file] { font-size: .85rem; }
.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check-inline { align-self: end; padding-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 10px; background: var(--surface-3); border: 1px solid var(--border-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hint.good { color: var(--ok); } .hint.bad { color: var(--bad); }
.strength { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s; }
.strength span[data-level="ok"] { background: var(--warn); } .strength span[data-level="strong"] { background: var(--ok); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.gender { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.gender legend { width: 100%; }
.pill-radio { flex-direction: row !important; }
.pill-radio input { position: absolute; opacity: 0; }
.pill-radio span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); font-weight: 500; cursor: pointer; }
.pill-radio input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-radio input:focus-visible + span { outline: 2px solid var(--accent); }
.captcha { background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 12px; padding: 12px 14px; }
.captcha-q { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; letter-spacing: .04em; background: var(--surface); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); }
.captcha label { display: block; }
.captcha input { max-width: 160px; display: block; margin-top: 8px; }
.pin-input { letter-spacing: .4em; font-family: ui-monospace, Menlo, monospace; }
.pw-wrap { position: relative; display: block; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.form-actions.center { justify-content: center; }
.fine { font-size: .8rem; color: var(--muted); margin: 0; }
.field-inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 600; }
.field-inline input, .field-inline select { width: auto; flex: 1; }
.option-cards { display: grid; gap: 10px; }
.option-card { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; font-weight: 500 !important; }
.option-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.option-card input { margin-top: 4px; accent-color: var(--accent); }
.option-card span { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.option-card span .ic { color: var(--accent); }
.option-card small { grid-column: 2; color: var(--muted); font-weight: 400; }
.inline-search { display: flex; gap: 8px; margin-bottom: 14px; }
.search-big { display: flex; align-items: center; gap: 10px; padding: 6px 14px; }
.search-big input { border: 0; box-shadow: none !important; font-size: 1.05rem; background: transparent; }
.search-big .ic { color: var(--muted); }

/* ---------- composer ---------- */
.composer { padding: 14px 16px 10px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-top textarea { border: 0; background: var(--surface-2); border-radius: 22px; padding: 11px 16px; min-height: 46px; font-size: 1rem; resize: none; }
.composer-top textarea:focus { box-shadow: none; background: var(--surface-3); }
.composer-extra { margin: 10px 0 0 54px; display: flex; flex-direction: column; gap: 8px; }
.composer-previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0 54px; }
.composer-previews:empty { display: none; }
.pv { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.pv img { width: 100%; height: 100%; object-fit: cover; }
.pv-file { width: auto; padding: 10px 34px 10px 12px; height: auto; font-size: .85rem; }
.pv button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; line-height: 1; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px; flex-wrap: wrap; }
.composer-tools { display: flex; gap: 2px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; }
.tool:hover, .tool.on { background: var(--surface-2); color: var(--text); }
.tool .ic { color: var(--accent); }
.tool[title="Photos"] .ic { color: #19a463; } .tool[title^="Video"] .ic { color: #e5484d; } .tool[title="Poll"] .ic { color: #e0a100; } .tool[title="Feeling"] .ic { color: #f08c00; }
.tool-ai .ic { color: #8b5cf6 !important; }
.composer-send { display: flex; gap: 8px; align-items: center; }
.composer-send select { width: auto; padding: 7px 10px; font-size: .85rem; border-radius: 999px; }
.mention-box { position: absolute; z-index: 40; left: 0; top: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 240px; }
.mention-box button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 8px; text-align: left; }
.mention-box button:hover { background: var(--surface-2); }
.mention-box small { color: var(--muted); }

/* ---------- post card ---------- */
.post { padding: 14px 0 4px; }
.post > * { padding-left: 16px; padding-right: 16px; }
.post-head { display: flex; align-items: flex-start; gap: 10px; }
.post-head .dropdown { margin-left: auto; }
.post-head .ai-chip + .dropdown { margin-left: 4px; }
.who { min-width: 0; flex: 1; }
.who-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; line-height: 1.35; }
.who .name, .name { font-weight: 700; color: var(--text); }
.sep .ic { width: 14px; height: 14px; color: var(--muted); }
.feeling { color: var(--muted); font-size: .92rem; }
.meta { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; flex-wrap: wrap; }
.meta a { color: var(--muted); }
.pinned { color: var(--accent); font-weight: 600; }
.ai-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ai-assisted { background: #efe7ff; color: #6d3fd8; } .ai-generated { background: #ffe8f1; color: #c2185b; }
[data-theme="dark"] .ai-assisted { background: #2a1f4a; color: #c4a8ff; } [data-theme="dark"] .ai-generated { background: #45162a; color: #ff9cc2; }
.why { font-size: .8rem; color: var(--muted); margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.post-text { margin: 10px 0 6px; white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; }
.post-text-lg { font-size: 1.3rem; line-height: 1.4; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.see-more { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 0 16px; margin-bottom: 6px; }
.mention, .hashtag { font-weight: 600; }
.media-grid { display: grid; gap: 3px; margin: 10px 0 4px; padding: 0 !important; }
.mg-item { position: relative; display: block; border: 0; padding: 0; background: #000; overflow: hidden; cursor: zoom-in; min-height: 0; }
.mg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-1 .mg-item img { max-height: 640px; object-fit: contain; background: var(--surface-3); height: auto; }
.mg-2 { grid-template-columns: 1fr 1fr; } .mg-2 .mg-item { aspect-ratio: 1; }
.mg-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .mg-3 .mg-item:first-child { grid-row: span 2; } .mg-3 .mg-item { aspect-ratio: auto; min-height: 150px; }
.mg-4 { grid-template-columns: 1fr 1fr; } .mg-4 .mg-item { aspect-ratio: 1; }
.mg-5 { grid-template-columns: repeat(6, 1fr); } .mg-5 .mg-item:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 1; } .mg-5 .mg-item:nth-child(n+3) { grid-column: span 2; aspect-ratio: 1; }
.mg-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 2rem; font-weight: 700; }
.mg-video { cursor: default; } .mg-video video { width: 100%; max-height: 640px; display: block; background: #000; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 10px 0; padding: 0 !important; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shared { margin: 10px 16px; padding: 12px 14px !important; border: 1px solid var(--border); border-radius: 12px; }
.shared-head { display: flex; align-items: center; gap: 8px; color: var(--text); }
.shared .post-text { margin: 8px 0; }
.shared .embed { margin: 8px 0 0; }
.shared-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; margin-top: 4px; }
.shared-gone { display: flex; gap: 8px; align-items: center; margin: 0; }
.post-stats { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; padding-top: 8px !important; padding-bottom: 8px !important; }
.post-stats a { color: var(--muted); } .grow { flex: 1; }
.reacts { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); padding: 0; }
.reacts:hover { text-decoration: underline; }
.react-emojis { display: inline-flex; } .react-emojis span { margin-left: -4px; font-size: 1rem; filter: drop-shadow(0 0 1px var(--surface)); } .react-emojis span:first-child { margin-left: 0; }
.post-actions { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 16px; padding: 2px 0 !important; gap: 2px; }
.pa { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; border: 0; background: none; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .92rem; }
.pa:hover { background: var(--surface-2); }
.pa-emoji { display: inline-flex; font-size: 1.15rem; line-height: 1; }
.pa.reacted { color: var(--rc, var(--accent)); }
.pa.pop .pa-emoji { animation: react-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes react-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.react-wrap { position: relative; flex: 1; display: flex; }
.react-picker { position: absolute; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease .35s; z-index: 30; }
.react-wrap:hover .react-picker, .react-wrap.picking .react-picker, .react-wrap:focus-within .react-picker { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.react-wrap.picking .react-picker { transition-delay: 0s; }
.react-picker button { position: relative; border: 0; background: none; font-size: 1.75rem; line-height: 1; padding: 4px; border-radius: 50%; transition: transform .14s cubic-bezier(.3, 1.5, .5, 1); }
.react-picker button > span { display: block; }
.react-picker button:hover, .react-picker button:focus-visible { transform: scale(1.32) translateY(-5px); }
.react-picker button small { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: rgba(10, 20, 40, .86); color: #fff;
  font-size: .62rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.react-picker button:hover small, .react-picker button:focus-visible small { opacity: 1; }
.pa-tip .ic { color: #e0a100; }
.comments { padding-top: 8px !important; padding-bottom: 8px !important; display: flex; flex-direction: column; gap: 8px; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment.reply { margin-top: 8px; }
.c-main { min-width: 0; flex: 1; }
.bubble { position: relative; display: inline-block; max-width: 100%; background: var(--surface-2); padding: 8px 12px; border-radius: 16px; }
.bubble .name { font-size: .88rem; }
.author-tag { font-size: .7rem; font-weight: 700; color: var(--accent); margin-left: 6px; }
.c-text { font-size: .93rem; overflow-wrap: anywhere; }
.c-likes { position: absolute; right: -8px; bottom: -10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; font-size: .75rem; box-shadow: var(--shadow); }
.c-actions { display: flex; gap: 12px; padding: 3px 12px 0; font-size: .78rem; color: var(--muted); font-weight: 700; }
.c-actions button { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 700; }
.c-actions button:hover { text-decoration: underline; } .c-actions button.on { color: var(--accent); }
.replies { margin-left: 4px; }
.comment-form { display: flex; gap: 8px; align-items: flex-start; }
.cf-box { position: relative; flex: 1; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 20px; padding-right: 4px; }
.cf-box textarea { border: 0; background: transparent; resize: none; padding: 8px 12px; min-height: 38px; box-shadow: none !important; }
.cf-send { width: 32px; height: 32px; color: var(--accent); }
.pending-note { color: var(--warn); font-weight: 600; display: flex; gap: 6px; align-items: center; padding: 10px 16px; }
.edit-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.ad { padding: 14px 0 14px; } .ad > * { padding-left: 16px; padding-right: 16px; }
.ad-link { display: block; padding: 0 !important; margin-top: 8px; color: var(--text); }
.ad-link:hover { text-decoration: none; }
.ad-link img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface-2); }
.ad-foot > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.ad-foot small { color: var(--muted); font-size: .72rem; }
.ad-compact { padding: 10px 0; box-shadow: none; }
.ad-compact .ad-foot { padding: 8px 12px; }
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed:empty { display: none; }
.feed-loader, .feed-end { text-align: center; color: var(--muted); padding: 16px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.feed-loader[hidden], .feed-end[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* polls */
.poll { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.poll-opt { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); overflow: hidden; text-align: left; font-weight: 600; }
button.poll-opt:hover { border-color: var(--accent); background: var(--surface-2); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.poll-opt.mine .poll-bar { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.poll-label, .poll-pct { position: relative; }
.poll-total { font-size: .82rem; margin: 0; }

/* ---------- modals ---------- */
.modal { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); width: min(520px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(4, 12, 26, .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: 65vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }
.radio-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.radio-list label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .9rem; }
.radio-list label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.share-copy { display: flex; gap: 8px; }
.modal-media { width: auto; max-width: 96vw; background: transparent; box-shadow: none; overflow: visible; }
.modal-media img { max-width: 96vw; max-height: 90vh; display: block; border-radius: 10px; }
.media-close { position: fixed; top: 14px; right: 14px; background: rgba(0, 0, 0, .6); color: #fff; }

/* ---------- chatbot ---------- */
.bot { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.bot-fab { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--brand-deep); color: #fff; font-weight: 700; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-deep) 35%, transparent); }
.bot-fab .ic { color: var(--glow); }
.bot-fab:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 35%, transparent), 0 8px 24px rgba(7, 36, 74, .35); }
.bot.open .bot-fab { display: none; }
.auth-body .bot-fab { background: var(--accent); }
.bot-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease; }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand-deep); color: #fff; }
.bot-head > div { display: flex; flex-direction: column; flex: 1; line-height: 1.2; } .bot-head small { opacity: .75; }
.bot-head .iconbtn { color: #fff; } .bot-head .iconbtn:hover { background: rgba(255, 255, 255, .12); }
.bot-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.3rem; }
.bot-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bot-msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bot-them { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.bot-me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bot-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-suggest button, .bot-suggest a { border: 1px solid var(--border-2); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 5px 10px; font-size: .8rem; font-weight: 600; }
.bot-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.bot-typing span:nth-child(2) { animation-delay: .15s; } .bot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.bot-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.bot-form input { border-radius: 999px; }
.bot-form .iconbtn { color: var(--accent); }
.bot-note { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: var(--muted); }

/* ---------- auth & landing ---------- */
.auth-body { background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 38%, var(--brand)) 0%, transparent 60%), radial-gradient(900px 600px at 110% 10%, color-mix(in srgb, var(--accent) 22%, var(--brand)) 0%, transparent 55%), var(--brand); min-height: 100vh; display: flex; flex-direction: column; color: var(--text); }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1200px; width: 100%; margin: 0 auto; }
.auth-top nav { display: flex; align-items: center; gap: 18px; }
.auth-top nav a:not(.btn) { color: color-mix(in srgb, var(--on-brand) 85%, transparent); font-weight: 600; }
.auth-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 20px 40px; }
.auth-main > .flash { max-width: 560px; margin-left: auto; margin-right: auto; }
.auth-foot { text-align: center; color: color-mix(in srgb, var(--on-brand) 60%, transparent); font-size: .82rem; padding: 18px; }
.auth-foot nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.auth-foot a { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.landing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: calc(100vh - 220px); }
.landing-copy { color: var(--on-brand); }
.landing-logo { margin: 0 0 6px; }
.landing-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 12px; letter-spacing: -.01em; }
.landing-sub { font-size: 1.1rem; color: color-mix(in srgb, var(--on-brand) 82%, transparent); max-width: 560px; }
.landing-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; max-width: 560px; }
.landing-points li { display: flex; gap: 12px; align-items: flex-start; color: color-mix(in srgb, var(--on-brand) 85%, transparent); }
.landing-points .ic { color: var(--glow); width: 24px; height: 24px; margin-top: 1px; }
.landing-points strong { color: var(--on-brand); }
.landing-stats { margin-top: 20px; color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.landing-card { padding: 26px; }
.landing-card h2 { font-size: 1.3rem; }
.center-link { text-align: center; display: block; margin: 12px 0 0; font-size: .92rem; }
.auth-card { max-width: 460px; margin: 10px auto; padding: 28px; }
.auth-wide { max-width: 680px; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .av { margin-bottom: 8px; }
.auth-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-deep); display: inline-grid; place-items: center; font-size: 2rem; margin-bottom: 10px; }
.codes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; counter-reset: c; }
.codes li { counter-increment: c; display: flex; align-items: center; gap: 8px; }
.codes li::before { content: counter(c); color: var(--muted); font-size: .8rem; width: 16px; text-align: right; }
.codes code { font-size: 1rem; padding: 6px 10px; flex: 1; text-align: center; letter-spacing: .05em; }
.codes-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.pin-boxes { display: flex; justify-content: center; gap: 8px; }
.pin-boxes input { width: 48px; height: 58px; text-align: center; font-size: 1.5rem; padding: 0; border-radius: 12px; }

/* ---------- profile ---------- */
.profile-page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.profile-head { overflow: hidden; }
.cover { position: relative; height: 300px; background: linear-gradient(135deg, var(--brand-deep) 0%, color-mix(in srgb, var(--accent) 55%, var(--brand-deep)) 55%, color-mix(in srgb, var(--accent) 75%, #fff) 100%); background-size: cover; background-position: center; }
.group-head .cover { height: 240px; }
.cover-edit { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ph-body { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 16px; flex-wrap: wrap; }
.ph-body .av-hero { margin-top: -76px; box-shadow: var(--shadow); }
.group-head .ph-body { padding-top: 16px; }
.ph-main { flex: 1; min-width: 240px; padding-top: 12px; }
.ph-main h1 { font-size: 1.8rem; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ph-main h1 .ic { width: 22px; height: 22px; }
.pronouns { font-size: .95rem; font-weight: 500; color: var(--muted); }
.handle { color: var(--muted); margin: 0 0 4px; }
.headline { font-size: 1.02rem; margin: 2px 0 6px; }
.ph-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; margin: 6px 0; }
.ph-facts span { display: inline-flex; align-items: center; gap: 5px; }
.ph-counts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; font-size: .92rem; }
.ph-counts a, .ph-counts span { color: var(--muted); } .ph-counts strong { color: var(--text); }
.otw { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .82rem; }
.otw-text { color: var(--ok); font-weight: 700; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 4px; }
.profile-tabs { padding: 0 16px; border-top: 1px solid var(--border); border-bottom: 0; }
.profile-cols { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top) + 18px); }
.intro-about { text-align: center; }
.intro-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .93rem; }
.intro-list li { display: flex; gap: 10px; align-items: flex-start; }
.intro-list .ic { color: var(--muted); }
.photo-grid-sm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.photo-grid-sm button, .photo-grid button { border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.photo-grid-sm img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.video-tile { position: relative; display: block; aspect-ratio: 16 / 10; background: #000; border-radius: 10px; overflow: hidden; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-tile span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-tile .ic { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.about-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.about-sec { position: relative; padding: 18px 20px; }
.about-text { white-space: normal; }
.sec-edit { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.sec-edit:hover { background: var(--surface-2); }
.timeline-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline-items li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.timeline-items li:first-child { border-top: 0; }
.ti-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); flex: none; }
.ti-desc { margin: 6px 0 0; font-size: .92rem; }

/* ---------- settings ---------- */
.settings-wrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--top) + 18px); }
.settings-nav h3 { padding: 6px 10px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-weight: 500; }
.settings-nav a:hover { background: var(--surface-2); text-decoration: none; }
.settings-nav a.active { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 650; }
.settings-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.media-edit { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.cover-preview { height: 160px; background: linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--accent) 75%, #fff)); background-size: cover; background-position: center; }
.media-edit .av-xl { position: absolute; left: 18px; top: 110px; border: 4px solid var(--surface); }
.media-edit-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 12px; align-items: center; }
.media-edit-btns label { flex-direction: row; }
.highlight { border-color: var(--accent); }
.sec-status { display: flex; flex-wrap: wrap; gap: 10px; }
.sec-status div { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; }
.sec-status .ic { color: var(--accent); }
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); }
details[open].card > summary::after { content: "–"; }
details.card > summary h2 { margin: 0; }
details[open].card > summary { margin-bottom: 14px; }
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.item-list li:first-child { border-top: 0; }
.item-list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.item-list.compact li { padding: 6px 0; font-size: .9rem; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions select { width: auto; padding: 6px 8px; font-size: .85rem; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.danger-zone h2 { color: var(--bad); display: flex; gap: 8px; align-items: center; }

/* ---------- explore, groups, pages ---------- */
.explore { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.person-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 14px; }
.person-card form { width: 100%; margin-top: 6px; }
.entity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.entity-list a { display: flex; align-items: center; gap: 12px; color: var(--text); padding: 6px; border-radius: 12px; }
.entity-list a:hover { background: var(--surface-2); text-decoration: none; }
.entity-list a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.entity-list small { color: var(--muted); }
.ent-img { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--accent) 75%, #fff)); background-size: cover; background-position: center; flex: none; }
.entity-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.entity-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--text); padding-bottom: 12px; transition: box-shadow .15s, transform .15s; }
.entity-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.entity-card strong, .entity-card small, .entity-card p { padding: 0 12px; }
.entity-card strong { margin-top: 10px; } .entity-card small { color: var(--muted); } .entity-card p { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.ent-cover { height: 96px; background: linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--accent) 75%, #fff)); background-size: cover; background-position: center; }
.entity-page .ent-av { margin: -26px 0 0 12px; border: 3px solid var(--surface); }
.rules { background: var(--surface-2); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.pad-stack { display: flex; flex-direction: column; gap: 10px; }
.pending-post { display: flex; flex-direction: column; gap: 8px; }

/* ---------- notifications ---------- */
.notif-list { overflow: hidden; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); border-top: 1px solid var(--border); position: relative; }
.notif:first-child { border-top: 0; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.unread { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.notif-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.notif-text small { color: var(--accent); font-weight: 600; font-size: .78rem; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- messages ---------- */
.chat { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; height: calc(100vh - var(--top) - 56px); }
.chat-list { display: flex; flex-direction: column; overflow: auto; }
.chat-list-head { padding: 16px 16px 8px; } .chat-list-head h1 { margin: 0; }
.chat-find { padding: 0 12px 10px; } .chat-find input { border-radius: 999px; background: var(--surface-2); }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 6px; border-radius: 12px; color: var(--text); }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv.active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.conv-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.conv-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread strong, .conv.unread small { color: var(--text); font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; overflow: hidden; }
.chat-empty { margin: auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat-head .person { flex: 1; }
.chat-back { display: none; }
.chat-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.chat-start { text-align: center; margin: auto; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 78%; }
.msg-me { align-self: flex-end; flex-direction: column; align-items: flex-end; }
.msg-bubble { padding: 9px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.msg-me .msg-bubble { background: var(--accent); color: #fff; border-color: transparent; }
.msg-me .msg-bubble a { color: #fff; text-decoration: underline; }
.msg-state { font-size: .7rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { border-radius: 20px; resize: none; min-height: 42px; max-height: 160px; }
.chat-blocked { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); margin: 0; }

/* ---------- money ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat small { color: var(--muted); font-weight: 600; } .stat strong { font-size: 1.4rem; }
.stat-big strong { font-size: 2rem; color: var(--accent); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.neg { color: var(--bad); } .pos { color: var(--ok); }
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.s-ok { background: var(--ok-bg); color: var(--ok); } .s-warn { background: var(--warn-bg); color: var(--warn); } .s-bad { background: var(--bad-bg); color: var(--bad); } .s-muted { background: var(--surface-3); color: var(--muted); }
.ad-builder { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ad-preview-col { position: sticky; top: calc(var(--top) + 18px); }
.premium-card { text-align: center; padding: 34px 26px; background: linear-gradient(160deg, var(--surface) 60%, color-mix(in srgb, #e8a400 12%, var(--surface))); }
.premium-star { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff3d0; margin-bottom: 10px; }
.premium-star .ic { width: 36px; height: 36px; color: #e8a400; fill: #e8a400; }
.price { font-size: 1.1rem; } .price strong { font-size: 2rem; }
.premium-perks { list-style: none; padding: 0; margin: 18px auto; display: grid; gap: 10px; max-width: 360px; text-align: left; }
.premium-perks li { display: flex; gap: 10px; align-items: center; } .premium-perks .ic { color: #e8a400; }

/* ---------- support, cms, errors ---------- */
.help-hero { padding: 28px 22px; text-align: center; background: linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--accent) 55%, var(--brand-deep))); color: #fff; border: 0; }
.help-hero .search-big { background: var(--surface); border-radius: 999px; margin: 14px auto; max-width: 520px; }
.help-hero .muted { color: rgba(255, 255, 255, .8); }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.tmsg { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.tmsg-staff { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-left: 3px solid var(--accent); }
.tmsg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cms-body { line-height: 1.7; }
.cms-body img { border-radius: 10px; }
.cms-body blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: .2em 1em; color: var(--muted); }
.error-page { min-height: 50vh; display: grid; place-items: center; }
.error-card { max-width: 480px; margin: 40px auto; padding: 36px; text-align: center; }
.error-code { display: block; font-size: 3.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.error-code .ic { width: 56px; height: 56px; }
.bare-body { min-height: 100vh; background: var(--brand); padding: 20px; }
.bare-main { max-width: 760px; margin: 0 auto; }
.bare-brand { text-align: center; margin: 10px 0 20px; } .bare-brand .etm-logo { font-size: 3rem; }
.install { padding: 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--bad); font-weight: 700; }
.steps li { margin-bottom: 12px; }
.copyable { display: block; margin-top: 6px; padding: 8px 10px; word-break: break-all; }

/* ---------- bottom nav (mobile) ---------- */
.bottomnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .shell { gap: 18px; }
  .with-aside { grid-template-columns: minmax(0, 600px) 300px; }
}
@media (max-width: 980px) {
  .with-aside { grid-template-columns: minmax(0, 640px); }
  .with-aside > .col-aside { display: none; }
  .profile-cols, .about-cols { grid-template-columns: minmax(0, 1fr); }
  .profile-side { position: static; }
  .about-cols > .col-aside { position: static; }
  .settings-wrap { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav h3 { display: none; }
  .settings-nav a { white-space: nowrap; }
  .landing { grid-template-columns: 1fr; gap: 28px; }
  .ad-builder { grid-template-columns: 1fr; }
  .ad-preview-col { position: static; }
  .topnav .tn { width: 52px; }
}
@media (max-width: 760px) {
  :root { --top: 56px; }
  body { font-size: 15px; }
  .topbar-in { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 10px; }
  .topnav { display: none; }
  .brand-full { display: none; } .brand-icon { display: inline-block; font-size: 1.9rem; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 10px 8px 90px; gap: 10px; }
  .leftnav { display: none; }
  .card { border-radius: 12px; }
  .with-aside, .col-main { gap: 10px; }
  /* The dock: a floating, glassy bar with a glowing create orb */
  .bottomnav { display: flex; align-items: center; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    height: 62px; padding: 0 6px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid color-mix(in srgb, var(--glow) 25%, var(--border)); box-shadow: 0 10px 30px rgba(7, 20, 40, .22), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .66rem; color: var(--muted); font-weight: 650; position: relative; padding: 6px 0; border-radius: 16px; }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav a.active { color: var(--accent); }
  .bottomnav a.active .ic { filter: drop-shadow(0 0 6px var(--glow)); }
  .bottomnav a.active::after { content: ""; position: absolute; bottom: 1px; width: 18px; height: 3px; border-radius: 3px; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
  .bottomnav .ic { width: 24px; height: 24px; }
  .bottomnav .dot { top: 0; right: calc(50% - 22px); border-color: var(--surface); }
  .bottomnav .dock-orb { flex: 0 0 56px; height: 56px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: var(--on-accent);
    background: radial-gradient(circle at 35% 30%, var(--glow), var(--accent) 60%, var(--brand-deep)); border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 50%, transparent), 0 0 22px color-mix(in srgb, var(--glow) 65%, transparent), 0 8px 18px rgba(7, 20, 40, .3); }
  .bottomnav .dock-orb .ic { width: 28px; height: 28px; }
  .bot { bottom: 84px; right: 14px; }
  .bot-fab-label { display: none; }
  .bot-fab { padding: 13px; }
  .toast-wrap { bottom: 140px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cover { height: 180px; }
  .ph-body { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 16px 14px; }
  .ph-body .av-hero { width: 120px; height: 120px; margin-top: -60px; }
  .ph-main { padding-top: 0; }
  .ph-main h1 { font-size: 1.5rem; }
  .composer-extra, .composer-previews { margin-left: 0; }
  .tool span { display: none; }
  .composer-send { width: 100%; }
  .composer-send select { flex: 1; min-width: 0; }
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--top) - 100px); }
  .chat.chat-open .chat-list { display: none; }
  .chat:not(.chat-open) .chat-pane { display: none; }
  .chat-back { display: inline-grid; }
  .radio-list { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 18px; }
  .auth-top { padding: 12px 16px; }
  .auth-top nav a:not(.btn) { display: none; }
  .landing-card { padding: 20px; }
  .codes { grid-template-columns: 1fr; }
  .pin-boxes input { width: 42px; height: 52px; }
  .post-text-lg { font-size: 1.15rem; }
  .pa { font-size: .85rem; }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .topbar, .leftnav, .bottomnav, .bot, .auth-top, .auth-foot, .codes-actions, form { display: none !important; }
  body, .auth-body { background: #fff; color: #000; }
}

/* Cookie consent banner */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(7, 36, 74, .22); font-size: .9rem; }
.consent p { margin: 0; flex: 1 1 260px; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.is-auth .consent { bottom: 76px; }
@media (min-width: 900px) { .is-auth .consent { bottom: 16px; } }

/* Portfolio links & project showcase */
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-link { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; max-width: 100%; transition: border-color .15s, transform .15s; }
.pf-link:hover { text-decoration: none; border-color: var(--pf); transform: translateY(-1px); }
.pf-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--pf); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.pf-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pf-text strong { font-size: .85rem; }
.pf-text small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-links-compact { margin: 10px 0 12px; }
.pf-links-compact .pf-link { padding: 4px 10px 4px 4px; }
.pf-links-compact .pf-mark { width: 24px; height: 24px; font-size: .62rem; border-radius: 7px; }
.pf-links-compact .pf-text small { display: none; }
.intro-projects { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text); font-size: .9rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.project-cover { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: var(--surface-3); cursor: zoom-in; overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover-empty { display: grid; place-items: center; cursor: default; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), color-mix(in srgb, var(--brand) 30%, var(--surface))); }
.project-cover-empty span { font: 700 2.4rem/1 'CaitlinScript', serif; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.project-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-body h3 { margin: 0; font-size: 1rem; }
.project-body p { margin: 0; }
.project-desc { font-size: .88rem; color: var(--text-2, var(--text)); line-height: 1.5; }
.chips-sm { gap: 4px; }
.project-links { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.link-rows { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .link-row { grid-template-columns: minmax(0, 1fr) auto; } .link-row select { grid-column: 1 / -1; } }
.gh-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
.gh-list li { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.gh-list label.check { align-items: flex-start; font-weight: 500; }
.gh-list label span { display: flex; flex-direction: column; gap: 2px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.inline-form .input-prefix { flex: 1 1 220px; }
.cover-preview { display: flex; align-items: center; gap: 12px; }
.cover-preview img { width: 160px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Share sheet */
.modal-share { width: min(560px, calc(100vw - 24px)); }
.modal-share .modal-body { gap: 16px; max-height: 78vh; }
.share-compose { display: flex; flex-direction: column; gap: 10px; }
.share-compose[hidden] { display: none; }
.share-who { display: flex; gap: 10px; align-items: center; }
.share-who-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.share-selects { display: flex; gap: 6px; flex-wrap: wrap; }
.share-selects select { padding: 4px 28px 4px 10px; font-size: .82rem; border-radius: 8px; min-height: 0; height: auto; width: auto; max-width: 260px; }
.share-preview { font-size: .85rem; color: var(--muted); padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; white-space: pre-line; }
.share-preview[hidden] { display: none; }
.share-actions { display: flex; justify-content: flex-end; }
.share-sec { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.share-sec h4 { margin: 0; font-size: .9rem; }
.share-people { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.share-person { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px; border-radius: 12px; font-size: .75rem; color: var(--text); width: 64px; flex: none; }
.share-person span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-person:hover { background: var(--surface-2); }
.share-person.sent img { outline: 3px solid var(--ok); outline-offset: 1px; }
.share-dm-form { display: flex; gap: 8px; }
.share-dm-form .input-prefix { flex: 1; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.share-grid > a, .share-grid > button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; border-radius: 12px; color: var(--text); font-size: .78rem; font-weight: 600; cursor: pointer; }
.share-grid > a:hover, .share-grid > button:hover { background: var(--surface-2); text-decoration: none; }
.share-grid > [hidden] { display: none; }
.se { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--se); color: #fff; font-weight: 800; font-size: .95rem; }
.se .ic { width: 20px; height: 20px; }
.modal-share .share-copy input { font-size: .8rem; color: var(--muted); }

/* Colour scheme pickers */
.scheme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.scheme-opt { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600 !important; font-size: .85rem !important; transition: border-color .15s, box-shadow .15s; }
.scheme-opt:hover { border-color: var(--border-2); }
.scheme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scheme-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.scheme-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.scheme-opt span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.scheme-opt small { color: var(--muted); font-weight: 500; }
.sw { flex: none; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); }
.sw i:nth-child(1) { grid-row: span 2; background: var(--sw-b); } .sw i:nth-child(2) { background: var(--sw-a); } .sw i:nth-child(3) { background: var(--sw-g); }
.mode-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mode-pick .chip.chip-on .ic { color: #fff; }
.scheme-picker { border: 0; padding: 0; margin: 0 0 8px; }
.scheme-picker legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* Homepage greetings & announcements */
.greetings { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.auth-main > .greetings { max-width: 1100px; margin: 0 auto 22px; }
.greeting { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--g) 16%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--g) 35%, var(--border));
  box-shadow: 0 6px 24px color-mix(in srgb, var(--g) 18%, transparent); animation: greet-in .5s ease-out both; }
.greeting::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--g), color-mix(in srgb, var(--g) 40%, #fff), var(--g)); }
.greeting-body { padding: 18px 48px 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.greeting h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: color-mix(in srgb, var(--g) 70%, var(--text)); letter-spacing: -.01em; }
.greeting-msg { font-size: .98rem; line-height: 1.55; }
.greeting-cta { background: var(--g); color: #fff; margin-top: 4px; }
.greeting-cta:hover { background: color-mix(in srgb, var(--g) 85%, #000); }
.greeting-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.greeting.g-banner .greeting-img { aspect-ratio: 16 / 6; max-height: 320px; overflow: hidden; }
.greeting.g-side { flex-direction: row; }
.greeting.g-side .greeting-img { flex: 0 0 38%; min-height: 180px; }
.greeting.g-side .greeting-body { justify-content: center; }
.greeting.g-background { background: linear-gradient(90deg, rgba(5, 10, 20, .78) 0%, rgba(5, 10, 20, .35) 70%), var(--g-img) center / cover no-repeat; color: #fff; min-height: 220px; justify-content: center; }
.greeting.g-background h2 { color: #fff; }
.greeting.g-background .greeting-x { background: rgba(0, 0, 0, .35); color: #fff; }
.greeting-x { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); cursor: pointer; }
.greeting-x:hover { color: var(--text); }
@keyframes greet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .greeting.g-side { flex-direction: column; } .greeting.g-side .greeting-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .greeting-body { padding: 16px 44px 16px 16px; }
}

/* Festive animation layer */
.fx-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; transition: opacity 1.2s; }
.fx-layer.fx-out { opacity: 0; }
.fx-layer span { position: absolute; top: -10vh; line-height: 1; will-change: transform; user-select: none; }
.fx-down { animation: fx-fall linear forwards; }
.fx-up { top: auto !important; bottom: -12vh; animation: fx-rise ease-in forwards; }
.fx-twinkle { animation: fx-twinkle ease-in-out infinite; }
.fx-drift { animation: fx-drift ease-in-out forwards; }
.fx-burst { border-radius: 50%; filter: blur(2px); animation: fx-burst ease-out forwards; }
.fx-confetti { width: 8px; height: 14px; border-radius: 2px; animation: fx-fall linear forwards, fx-spin linear infinite; }
@keyframes fx-fall { to { transform: translate3d(var(--dx, 0), 115vh, 0) rotate(var(--rot, 0deg)); } }
@keyframes fx-rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate3d(var(--dx, 0), -125vh, 0); opacity: .9; } }
@keyframes fx-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fx-drift { 0% { transform: translate3d(-10vw, 0, 0) rotate(-8deg); } 50% { transform: translate3d(50vw, 8vh, 0) rotate(10deg); } 100% { transform: translate3d(115vw, -4vh, 0) rotate(-6deg); } }
@keyframes fx-burst { 0% { transform: scale(.2); opacity: 0; } 25% { opacity: .85; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes fx-spin { to { rotate: 720deg; } }
@media (prefers-reduced-motion: reduce) { .fx-layer { display: none; } .greeting { animation: none; } }
.passkey-btn { margin-top: 10px; }
.av-anon { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--surface-3), color-mix(in srgb, var(--accent) 18%, var(--surface-3))); color: var(--muted); flex: none; }
.av-anon.av-md { width: 42px; height: 42px; } .av-anon.av-sm { width: 32px; height: 32px; } .av-anon.av-xs { width: 24px; height: 24px; }
.av-anon .ic { width: 55%; height: 55%; }
.anon-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .72rem; font-weight: 700; }
.anon-toggle { margin: 0; font-size: .85rem; white-space: nowrap; }

/* ============ Jobs ============ */
.jobs-page { display: flex; flex-direction: column; gap: 14px; }
.jobs-hero { padding: 26px 24px; position: relative; overflow: hidden; background:
  radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--glow) 28%, transparent), transparent 55%),
  linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); border: 0; }
.jobs-hero h1 { margin: 0 0 4px; font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.jobs-hero h1 .ic { color: var(--glow); filter: drop-shadow(0 0 6px var(--glow)); }
.jobs-hero .muted { color: color-mix(in srgb, var(--on-brand) 75%, transparent); margin: 0 0 16px; }
.jobs-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; }
.js-field { display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border-radius: 12px; padding: 0 12px; border: 1px solid transparent; }
.js-field:focus-within { border-color: var(--glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 35%, transparent); }
.js-field .ic { color: var(--muted); flex: none; }
.js-field input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 11px 0; width: 100%; min-width: 0; color: inherit; }
.js-field input:focus { outline: none; }
.jobs-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.jobs-filters select { width: auto; flex: 1 1 140px; background: color-mix(in srgb, var(--on-brand) 12%, transparent); color: var(--on-brand); border: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent); border-radius: 999px; padding: 7px 12px; font-size: .85rem; }
.jobs-filters select option { color: #111; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.list-head h1, .list-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.list-head form { margin: 0; }
.job-list { display: flex; flex-direction: column; }
.job-card { display: flex; gap: 14px; padding: 14px 6px; border-top: 1px solid var(--border); align-items: flex-start; position: relative; border-radius: 12px; transition: background .15s; }
.job-list .job-card:first-child { border-top: 0; }
.job-card:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.job-logo img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--surface-3); display: block; }
.job-logo-lg img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 3px var(--surface), 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent); }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.job-main h3 a { color: var(--text); }
.job-co { margin: 2px 0 6px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.job-co .ic { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.jt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; background: var(--surface-3); font-size: .78rem; font-weight: 600; color: var(--text); }
.jt .ic { width: 13px; height: 13px; color: var(--muted); }
.jt-remote { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.jt-pay { background: color-mix(in srgb, #1aa36f 14%, transparent); color: #127a53; }
html[data-theme="dark"] .jt-pay { color: #6fe0b0; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.job-when { margin: 4px 0 0; }
.early { color: var(--accent); font-weight: 700; }
.job-save { position: absolute; top: 12px; right: 6px; }
.job-save.on .ic, .btn.on .ic { color: var(--accent); fill: currentColor; }
.job-head { padding: 22px; }
.job-head-top { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.job-head h1 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.job-head .job-co { font-size: 1rem; }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.job-actions form { margin: 0; }
.apply-box { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--glow) 55%, var(--border)); background: color-mix(in srgb, var(--glow) 7%, var(--surface)); box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 18%, transparent); }
.apply-box h3 { margin: 0 0 10px; }
.apply-me { display: flex; gap: 10px; align-items: center; }
.apply-me div { display: flex; flex-direction: column; }
.job-text { line-height: 1.65; overflow-wrap: anywhere; }
.job-desc h3 { margin: 18px 0 8px; }
.safety-note { font-size: .85rem; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--surface-3); margin: 0; }
.safety-note .ic { color: var(--accent); vertical-align: -2px; }
.safety-box h4 { display: flex; align-items: center; gap: 6px; } .safety-box h4 .ic { color: #1aa36f; }
.hiring-box { background: linear-gradient(160deg, color-mix(in srgb, var(--glow) 14%, var(--surface)), var(--surface)); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--text); font-weight: 600; border-radius: 8px; }
.side-link:hover { background: var(--surface-3); text-decoration: none; }
.side-link .ic { color: var(--accent); }
.mini-jobs { list-style: none; margin: 0; padding: 0; }
.mini-jobs li { border-top: 1px solid var(--border); } .mini-jobs li:first-child { border-top: 0; }
.mini-jobs a { display: flex; flex-direction: column; padding: 8px 0; color: var(--text); }
.mini-jobs small { color: var(--muted); }
.col-main.narrow-wide { max-width: 820px; margin: 0 auto; width: 100%; }
.app-list { list-style: none; margin: 10px 0 0; padding: 0; }
.app-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.app-list li:first-child { border-top: 0; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main a { color: var(--text); }
.app-status { padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-3); white-space: nowrap; }
.as-shortlisted, .as-interview { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.as-offer { background: color-mix(in srgb, #1aa36f 18%, transparent); color: #127a53; box-shadow: 0 0 12px color-mix(in srgb, #1aa36f 30%, transparent); }
.as-rejected, .as-withdrawn { color: var(--muted); }
.applicant-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.applicant { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.applicant .person small { display: block; }
.applicant-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.applicant-facts .ic { color: var(--accent); vertical-align: -2px; }
.applicant-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--glow); background: var(--surface-3); border-radius: 0 10px 10px 0; font-size: .92rem; }
.applicant-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.applicant-actions .inline-form { display: flex; gap: 6px; margin: 0; }
.applicant-actions select { width: auto; padding: 6px 10px; }
.otw-text { color: #1aa36f; font-weight: 700; }
.salary-row { border: 0; padding: 0; margin: 0; }
.salary-row legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.need-page { text-align: center; padding: 34px 24px; }
.big-ic .ic, .big-ic.ic { width: 54px; height: 54px; color: var(--accent); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--glow) 60%, transparent)); }
.empty-state { text-align: center; padding: 30px 16px; color: var(--muted); }
@media (max-width: 720px) {
  .jobs-hero { padding: 20px 16px; border-radius: 0; }
  .jobs-hero h1 { font-size: 1.3rem; }
  .jobs-search { grid-template-columns: minmax(0, 1fr); }
  .jobs-filters select { flex: 1 1 45%; }
  .job-logo img { width: 44px; height: 44px; }
  .job-head { padding: 16px; }
  .job-head h1 { font-size: 1.2rem; }
  .job-logo-lg img { width: 56px; height: 56px; }
}

/* ============ equaltoMe's glow language (v2.0) ============ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--glow-2); outline-offset: 2px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 30%, transparent); }
.btn-primary { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 25%, transparent) inset; }
.btn-primary:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent) inset, 0 4px 18px color-mix(in srgb, var(--glow-2) 40%, transparent); }
.card.glow-edge, .composer { position: relative; }
.composer::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--glow), transparent); opacity: .7; pointer-events: none; }
.side-block h4 .ic { color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; }
.av-hero { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 30px color-mix(in srgb, var(--glow) 45%, transparent) !important; }

/* Now line */
.now-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 6px 12px 6px 10px; border-radius: 999px; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--glow) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--glow) 40%, var(--border)); font-size: .9rem; }
.now-line.now-empty { background: none; border-style: dashed; padding: 2px 4px; }
.now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--glow-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 35%, transparent), 0 0 10px var(--glow); flex: none; animation: nowPulse 2.4s ease-in-out infinite; display: inline-block; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 10%, transparent), 0 0 16px var(--glow); } }
.now-label { font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.now-text { font-weight: 600; overflow-wrap: anywhere; }
.now-edit { border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 8px; }
.now-edit:hover { color: var(--accent); background: var(--surface-3); }
.now-form { display: flex; gap: 6px; width: 100%; flex-wrap: wrap; margin-top: 4px; }
.now-form input { flex: 1 1 220px; padding: 7px 12px; border-radius: 999px; }
.now-field > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Contribution badges */
.cb { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .02em; vertical-align: 1px;
  color: var(--cb, var(--accent)); background: color-mix(in srgb, var(--cb, var(--accent)) 13%, transparent); }
.cb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cb, var(--accent)); box-shadow: 0 0 6px var(--cb, var(--accent)); }
.cb-spark { --cb: #f0a020; } .cb-glow { --cb: #2fb8ff; } .cb-beacon { --cb: #9b5cff; }
.cb-lighthouse { --cb: #ff4f8b; background: linear-gradient(90deg, color-mix(in srgb, #ff4f8b 16%, transparent), color-mix(in srgb, #ffb340 16%, transparent)); }
.cb-lighthouse .cb-dot { background: conic-gradient(#ff4f8b, #ffb340, #2fb8ff, #ff4f8b); }
.post-head .cb { padding: 0; background: none; margin-left: 3px; }
.post-head .cb-dot { width: 7px; height: 7px; }

/* Journey timeline */
.journey { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; position: relative; }
.journey::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--glow), color-mix(in srgb, var(--accent) 60%, transparent) 40%, var(--border-2)); box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 55%, transparent); }
.jy-year { position: relative; margin: 14px 0 6px; padding-left: 52px; }
.jy-year:first-child { margin-top: 0; }
.jy-year span { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); background: var(--surface); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.jy-now span { color: var(--accent); border-color: color-mix(in srgb, var(--glow) 60%, var(--border)); box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 40%, transparent); }
.jy-item { position: relative; display: flex; gap: 14px; padding: 8px 0 12px; }
.jy-node { position: relative; z-index: 1; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--glow) 55%, var(--border)); }
.jy-node .ic { width: 18px; height: 18px; }
.jy-current .jy-node { background: radial-gradient(circle at 35% 30%, var(--glow), var(--accent)); color: #fff; border-color: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--glow) 60%, transparent), 0 0 16px var(--glow); }
.jy-body { min-width: 0; flex: 1; }
.jy-kind { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.jy-education .jy-kind { color: #2f9e6e; } .jy-certification .jy-kind { color: #c98a00; } .jy-volunteer .jy-kind { color: #e0457b; } .jy-experience .jy-kind { color: var(--accent); }
.journey-sec h2 { display: flex; align-items: center; gap: 8px; } .journey-sec h2 .ic { color: var(--accent); }
.journey-sec .sec-edit .iconbtn { width: 34px; height: 34px; }

/* Spotlight */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 35%, transparent), transparent 70%); pointer-events: none; }
.spot-ic .ic { color: #f0a020; filter: drop-shadow(0 0 4px #ffd27a); }
.new-voice { color: var(--accent); font-weight: 700; }
.side-block h4:has(> .ic:first-child), .side-block h4:has(> .spot-ic) { justify-content: flex-start; gap: 7px; }
.jobs-page { max-width: 964px; width: 100%; margin: 0 auto; }
.jy-kind { display: block; }
.item-list li > div:first-child > .chip, .item-list li > div:first-child > .status, .item-list li > div:first-child > .badge { align-self: flex-start; }
@media (max-width: 760px) { .now-line { border-radius: 14px; } }

/* ============ v2.1/2.2: designed covers — multicolour (Theme colours follows the site scheme) ============ */
.cv-classic { background: linear-gradient(135deg, var(--brand-deep) 0%, color-mix(in srgb, var(--accent) 55%, var(--brand-deep)) 55%, color-mix(in srgb, var(--accent) 75%, #fff) 100%); }
.cv-aurora { background:
  radial-gradient(48% 90% at 12% 22%, rgba(45, 212, 191, .85), transparent 62%),
  radial-gradient(42% 85% at 45% 10%, rgba(139, 92, 246, .8), transparent 62%),
  radial-gradient(40% 80% at 82% 30%, rgba(244, 114, 182, .8), transparent 62%),
  radial-gradient(60% 90% at 60% 115%, rgba(56, 189, 248, .75), transparent 65%),
  linear-gradient(135deg, #0b1026, #1a1446); }
.cv-ripples { background:
  repeating-radial-gradient(circle at 0% 100%, transparent 0 26px, rgba(255, 255, 255, .22) 26px 28px),
  repeating-radial-gradient(circle at 100% 0%, transparent 0 34px, rgba(255, 255, 255, .12) 34px 35px),
  linear-gradient(120deg, #00b4db 0%, #0083b0 35%, #6a5af9 70%, #b06ab3 100%); }
.cv-nightsky { background-color: #120a2e; background-image:
  radial-gradient(1.6px 1.6px at 22px 30px, #fff, transparent 60%),
  radial-gradient(1.2px 1.2px at 70px 84px, #ffe9a8, transparent 60%),
  radial-gradient(1px 1px at 128px 46px, #fff, transparent 60%),
  radial-gradient(2px 2px at 160px 120px, #b8e1ff, transparent 60%),
  radial-gradient(45% 110% at 78% 10%, rgba(236, 72, 153, .55), transparent 62%),
  radial-gradient(40% 100% at 25% 90%, rgba(59, 130, 246, .5), transparent 62%),
  linear-gradient(180deg, #0d0726, #2a1259);
  background-size: 190px 150px, 230px 170px, 170px 130px, 260px 210px, 100% 100%, 100% 100%, 100% 100%; }
.cv-grid { background-color: #1b0b3a; background-image:
  linear-gradient(rgba(255, 122, 224, .35) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 122, 224, .35) 1px, transparent 1px),
  radial-gradient(circle at 50% 108%, #ffb347 0 12%, rgba(255, 94, 98, .8) 22%, transparent 45%),
  linear-gradient(180deg, #120533 0%, #4a1072 55%, #d53369 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%; }
.cv-sunrise { background:
  radial-gradient(circle at 50% 130%, #fff3b0 0 13%, rgba(255, 200, 87, .95) 22%, rgba(255, 140, 66, .5) 38%, transparent 58%),
  linear-gradient(180deg, #3a1c71 0%, #d76d77 55%, #ffaf7b 100%); }
.cv-prism { background:
  radial-gradient(70% 120% at 50% 0%, rgba(255, 255, 255, .25), transparent 60%),
  linear-gradient(100deg, #ff5f6d 0%, #ffc371 18%, #f9f871 34%, #7bed9f 50%, #2ec4b6 64%, #4facfe 80%, #a18cd1 100%); }
.cv-holi { background-color: #fff6fb; background-image:
  radial-gradient(circle at 12% 30%, rgba(255, 64, 129, .85) 0 9%, transparent 22%),
  radial-gradient(circle at 32% 75%, rgba(255, 196, 0, .85) 0 8%, transparent 21%),
  radial-gradient(circle at 55% 25%, rgba(0, 200, 140, .8) 0 8%, transparent 21%),
  radial-gradient(circle at 75% 70%, rgba(124, 77, 255, .8) 0 9%, transparent 23%),
  radial-gradient(circle at 92% 22%, rgba(0, 176, 255, .8) 0 7%, transparent 19%),
  radial-gradient(circle at 45% 55%, rgba(255, 112, 67, .6) 0 6%, transparent 18%),
  linear-gradient(120deg, #ffe0f0, #fff2c6, #d6fff1, #e6dcff); }
.cv-peacock { background:
  radial-gradient(40% 80% at 85% 25%, rgba(255, 215, 0, .55), transparent 60%),
  radial-gradient(50% 90% at 15% 80%, rgba(0, 201, 167, .7), transparent 62%),
  repeating-radial-gradient(ellipse at 85% 25%, transparent 0 18px, rgba(255, 255, 255, .08) 18px 20px),
  linear-gradient(135deg, #003d4d 0%, #00796b 40%, #1565c0 75%, #4a148c 100%); }
.cv-mango { background:
  radial-gradient(50% 90% at 80% 20%, rgba(255, 255, 255, .35), transparent 60%),
  radial-gradient(45% 80% at 15% 85%, rgba(76, 175, 80, .65), transparent 62%),
  linear-gradient(120deg, #f7971e 0%, #ffd200 50%, #a8e063 100%); }
.cv-candy { background:
  radial-gradient(40% 90% at 15% 30%, rgba(255, 175, 204, .95), transparent 62%),
  radial-gradient(40% 90% at 50% 80%, rgba(162, 210, 255, .95), transparent 62%),
  radial-gradient(40% 90% at 85% 30%, rgba(189, 255, 214, .95), transparent 62%),
  linear-gradient(120deg, #ffc8dd, #cdb4db, #bde0fe); }
.cover-styles { border: 0; padding: 0; margin: 0; }
.cover-styles legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.cover-style-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.cover-style { display: flex; flex-direction: column; gap: 5px; cursor: pointer; font-weight: 500 !important; font-size: .82rem; }
.cover-style input { position: absolute; opacity: 0; pointer-events: none; }
.cs-swatch { display: block; height: 52px; border-radius: 10px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border); transition: box-shadow .15s, transform .15s; }
.cover-style:hover .cs-swatch { transform: translateY(-1px); }
.cover-style input:checked + .cs-swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent), 0 0 14px color-mix(in srgb, var(--glow) 60%, transparent); }
.cover-style input:focus-visible + .cs-swatch { outline: 2px solid var(--glow-2); outline-offset: 2px; }

/* ============ v2.1: status ============ */
.status-tray { padding: 12px 10px 10px; }
.st-scroll { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; align-items: flex-start; padding: 2px 4px; }
.st-scroll::-webkit-scrollbar { display: none; }
.st-item { position: relative; flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.st-ring, .hero-ring { position: relative; border: 0; padding: 3px; border-radius: 50%; cursor: pointer; background: var(--border-2); display: grid; place-items: center; }
.st-ring .av { width: 60px; height: 60px; border: 3px solid var(--surface); display: block; }
.ring-new { background: conic-gradient(from 200deg, var(--glow), var(--accent), var(--glow-2), #ff7ab6, var(--glow)); box-shadow: 0 0 14px color-mix(in srgb, var(--glow) 55%, transparent); }
.ring-seen { background: var(--border-2); }
.ring-none { background: transparent; padding: 3px; }
.ring-none .av { border-color: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.st-ring:hover { transform: scale(1.04); } .st-ring { transition: transform .15s; }
.st-plus { position: absolute; top: 46px; left: 47px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--surface); padding: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 60%, transparent); }
.st-plus .ic { width: 13px; height: 13px; stroke-width: 3; }
.st-name { font-size: .74rem; font-weight: 600; color: var(--text); max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.st-hint { align-self: center; margin: 0 0 14px 4px; max-width: 360px; }
.av-hero-wrap { position: relative; flex: none; margin-top: -76px; }
.av-hero-wrap .av-hero { margin-top: 0 !important; display: block; }
.hero-ring { padding: 4px; }
.hero-ring.ring-new { box-shadow: 0 0 24px color-mix(in srgb, var(--glow) 60%, transparent); }
.hero-plus { top: auto; left: auto; right: 6px; bottom: 6px; width: 34px; height: 34px; }
.hero-plus .ic { width: 17px; height: 17px; }
.modal-status .modal-body { gap: 10px; }
.status-drop { position: relative; display: grid !important; place-items: center; min-height: 220px; border: 2px dashed var(--border-2); border-radius: 16px; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--glow) 6%, var(--surface)); text-align: center; }
.status-drop:hover { border-color: var(--accent); }
.status-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.status-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; pointer-events: none; }
.status-drop-empty .ic { width: 36px; height: 36px; color: var(--accent); }
.status-drop-empty small { color: var(--muted); font-weight: 500; }
.status-drop-preview { width: 100%; height: 100%; pointer-events: none; }
.status-drop-preview img, .status-drop-preview video { display: block; width: 100%; max-height: 46vh; object-fit: contain; background: #000; }
.status-drop.has-file .status-drop-empty { display: none; }
.status-err { color: var(--bad); }
.inline-label { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.inline-label select { width: auto; }
.status-progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.status-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--glow)); transition: width .2s; }

/* Full-screen viewer */
.status-viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(3, 8, 18, .94); color: #fff; overflow: hidden; }
.status-viewer::backdrop { background: rgba(3, 8, 18, .94); }
.sv-frame { position: relative; height: 100%; width: min(100vw, calc((100dvh - 24px) * 9 / 16)); margin: 0 auto; background: #000; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
@media (min-width: 761px) { .sv-frame { height: calc(100dvh - 24px); margin-top: 12px; border-radius: 18px; box-shadow: 0 0 60px color-mix(in srgb, var(--glow) 25%, transparent); } }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sv-bars span i { display: block; height: 100%; width: 0; background: #fff; box-shadow: 0 0 6px var(--glow); }
.sv-bars span.done i { width: 100%; }
.sv-head { position: absolute; top: 20px; left: 10px; right: 6px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sv-user { display: flex; align-items: center; gap: 8px; color: #fff; min-width: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.sv-user:hover { text-decoration: none; }
.sv-user span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sv-user small { opacity: .8; font-size: .75rem; }
.sv-user .av { border: 2px solid rgba(255, 255, 255, .8); }
.sv-tools { display: flex; gap: 2px; }
.sv-tools button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: #fff; border-radius: 50%; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.sv-tools button:hover { background: rgba(255, 255, 255, .14); }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sv-nav { position: absolute; top: 70px; bottom: 90px; width: 34%; border: 0; background: none; cursor: pointer; z-index: 2; }
.sv-prev { left: 0; } .sv-next { right: 0; }
.sv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.sv-caption { margin: 0 0 10px; font-size: 1rem; text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.sv-caption:empty { display: none; }
.sv-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.sv-chip:hover { background: rgba(255, 255, 255, .22); }
.sv-chip .ic { width: 16px; height: 16px; }
.sv-viewers { position: absolute; left: 0; right: 0; bottom: 0; max-height: 60%; z-index: 5; background: var(--surface); color: var(--text); border-radius: 18px 18px 0 0; padding: 10px 14px 16px; overflow: auto; }
.sv-viewers header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sv-viewers .person { color: var(--text); }
.sv-paused .sv-bars span i { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .ring-new { box-shadow: none; } }
@media (max-width: 760px) {
  .status-tray { border-radius: 12px; padding: 10px 6px 8px; }
  .st-item { width: 64px; } .st-ring .av { width: 54px; height: 54px; } .st-plus { top: 41px; left: 42px; }
  .av-hero-wrap { margin-top: -60px; }
  .hero-plus { width: 30px; height: 30px; right: 2px; bottom: 2px; }
}
.hero-ring .av-hero { box-shadow: none !important; }
.hero-ring { padding: 5px; }

/* =========================================================
   v3.0 — chat, presence, calls, emoji & stickers, reposition,
   multi-entry About, AI agents, missing-media placeholders
   ========================================================= */
.online-dot-inline { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #23c552; box-shadow: 0 0 0 3px color-mix(in srgb, #23c552 22%, transparent); vertical-align: middle; }
.is-online { color: #12a150 !important; font-weight: 600; }
.presence { color: var(--muted); font-size: .9rem; } .presence.is-online { color: #12a150; }
.online-hero { width: 18px; height: 18px; right: 10px; bottom: 10px; border-width: 3px; z-index: 2; }
.media-gone { display: grid; place-items: center; min-height: 120px; padding: 16px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); color: var(--muted); font-size: .85rem; border-radius: 10px; text-align: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }

/* Chat list */
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.online-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; }
.online-strip a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); font-size: .75rem; min-width: 56px; }
.online-strip a:hover { text-decoration: none; }
.chat-archived-link { display: flex; align-items: center; gap: 8px; padding: 8px 18px; color: var(--text); font-weight: 600; font-size: .9rem; }
.conv-flags { display: inline-flex; gap: 2px; color: var(--muted); }
.badge-count.muted-count { background: var(--muted); }
.agent-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #6d28d9; background: color-mix(in srgb, #8b5cf6 14%, transparent); vertical-align: middle; white-space: nowrap; }
[data-theme="dark"] .agent-tag { color: #c4b5fd; }

/* Chat pane */
.chat-head .person small { color: var(--muted); }
.chat-call { color: var(--ok); }
.msg { position: relative; }
.msg-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg-me .msg-col { align-items: flex-end; }
.msg-reply { display: block; max-width: 280px; padding: 6px 10px; border-left: 3px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: .8rem; color: var(--text); }
.msg-reply:hover { text-decoration: none; }
.msg-reply span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-gone { font-style: italic; color: var(--muted) !important; background: transparent !important; border: 1px dashed var(--border-2) !important; display: inline-flex; gap: 6px; align-items: center; }
.msg-edited { opacity: .7; font-size: .7rem; }
.msg-sticker { width: 128px; height: 128px; display: block; filter: drop-shadow(0 2px 6px rgba(7, 36, 74, .15)); }
.msg-photo { padding: 4px !important; max-width: 320px; }
.msg-photo img { display: block; border-radius: 14px; max-height: 340px; width: auto; }
.msg-caption { padding: 6px 8px 4px; }
.msg-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -6px; z-index: 1; }
.msg-reacts button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 7px; font-size: .85rem; line-height: 1.6; cursor: pointer; }
.msg-reacts button.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.msg-tools { display: flex; align-items: center; gap: 0; opacity: 0; transition: opacity .15s; align-self: center; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { opacity: 1; }
.msg-tools .iconbtn { width: 30px; height: 30px; }
.msg-me .msg-tools { position: absolute; right: calc(100% + 4px); bottom: 6px; flex-direction: row-reverse; }
.msg:not(.msg-me) .msg-tools { margin-left: 2px; }
@media (hover: none) { .msg-tools { opacity: .55; } }
.msg-call { align-self: center; max-width: none; }
.call-note { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
.flash-msg .msg-bubble, .flash-msg .msg-sticker { animation: msgFlash 1.2s ease; }
@keyframes msgFlash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 60%, transparent); } }
.react-pop { position: absolute; bottom: calc(100% + 4px); z-index: 20; display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.msg-me .react-pop { right: 0; } .msg:not(.msg-me) .react-pop { left: 32px; }
.react-pop button { border: 0; background: none; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.react-pop button:hover { transform: scale(1.25); background: var(--surface-2); }
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 4px 18px; font-size: .8rem; color: var(--muted); background: var(--surface-2); }
.chat-typing span, .pg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s infinite; display: inline-block; }
.chat-typing span:nth-child(2), .pg-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3), .pg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-replybar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-top: 1px solid var(--border); font-size: .85rem; background: var(--surface-2); }
.chat-replybar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-form { flex-wrap: wrap; }
.chat-form textarea { flex: 1; min-width: 0; }
.chat-tools { display: flex; align-items: center; gap: 0; }
.chat-tools .iconbtn { cursor: pointer; }
.chat-photo-prev { width: 100%; display: flex; align-items: flex-start; gap: 6px; }
.chat-photo-prev img { max-height: 120px; border-radius: 10px; }
.agent-intro { margin: auto; max-width: 420px; text-align: center; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.agent-intro > .ic { width: 34px; height: 34px; color: #8b5cf6; }

/* Emoji & sticker pickers */
.emoji-pop, .sticker-pop { position: fixed; z-index: 1200; width: 340px; height: 380px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sticker-pop { width: 360px; height: 392px; }
.emoji-pop.ep-sheet, .sticker-pop.ep-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; height: min(60vh, 420px); border-radius: 18px 18px 0 0; }
.ep-head { display: flex; gap: 6px; align-items: center; padding: 8px 8px 4px; }
.ep-head input { border-radius: 999px; padding: 7px 12px; }
.ep-head strong { flex: 1; padding-left: 6px; }
.ep-cats { display: flex; gap: 2px; padding: 0 6px 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ep-cats button { border: 0; background: none; font-size: 1.1rem; padding: 6px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: var(--text); }
.sticker-pop .ep-cats button { font-size: .82rem; font-weight: 600; }
.ep-cats button:hover, .ep-cats button.on { background: var(--surface-3); }
.ep-grid { flex: 1; overflow-y: auto; padding: 4px 8px 8px; }
.ep-grid h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 4px 4px; }
.ep-sec { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.ep-sec button { border: 0; background: none; font-size: 1.5rem; line-height: 1; height: 40px; border-radius: 10px; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }
.ep-sec button:hover { background: var(--surface-3); transform: scale(1.1); }
.ep-note { margin: 0; padding: 4px 10px 8px; font-size: .7rem; color: var(--muted); }
.sticker-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 8px; }
.sticker-grid button { border: 0; background: var(--surface-2); border-radius: 14px; padding: 6px; cursor: pointer; aspect-ratio: 1; }
.sticker-grid button:hover { background: var(--surface-3); transform: scale(1.04); }
.sticker-grid img { width: 100%; height: 100%; object-fit: contain; }
.tool-emoji { font-size: 1.1rem; line-height: 1; }
.cf-box .cf-emoji { color: var(--muted); }

/* Reposition editor */
.repo-modal { border: 0; padding: 0; border-radius: 18px; width: min(680px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.repo-modal::backdrop { background: rgba(4, 12, 26, .6); }
.repo-box { padding: 16px 18px 18px; }
.repo-box header { display: flex; align-items: center; justify-content: space-between; }
.repo-box header h2 { margin: 0; }
.repo-stage { position: relative; overflow: hidden; margin: 10px auto 12px; background: #0b1424; touch-action: none; cursor: grab; user-select: none; }
.repo-stage.dragging { cursor: grabbing; }
.repo-stage img { position: absolute; max-width: none; pointer-events: none; }
.repo-avatar { width: min(320px, 78vw); height: min(320px, 78vw); border-radius: 18px; }
.repo-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(4, 12, 26, .55); pointer-events: none; outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -2px; }
.repo-cover { width: 100%; aspect-ratio: 3.2 / 1; border-radius: 12px; }
.repo-zoom { display: flex; align-items: center; gap: 8px; flex-direction: row !important; max-width: 340px; margin: 0 auto 6px; }
.repo-zoom input { flex: 1; }

/* Voice calls */
.call-ui { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 45%, #06101f), #050b16 70%); color: #fff; }
.call-card { text-align: center; padding: 24px; max-width: 360px; }
.call-av { width: 128px; height: 128px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 0 rgba(143, 208, 255, .6); animation: callPulse 1.8s infinite; object-fit: cover; }
.call-ui.ended .call-av { animation: none; opacity: .7; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(143, 208, 255, .55); } 100% { box-shadow: 0 0 0 28px rgba(143, 208, 255, 0); } }
.call-card h2 { margin: 18px 0 4px; font-size: 1.5rem; color: #fff; }
.call-state { color: rgba(255, 255, 255, .8); min-height: 1.5em; }
.call-timer { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.call-actions { display: flex; justify-content: center; gap: 22px; margin: 26px 0 14px; }
.call-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .12s; }
.call-btn .ic { width: 28px; height: 28px; }
.call-btn:hover { transform: scale(1.08); }
.call-hang { background: #e5383b; } .call-accept { background: #12a150; animation: callPulse 1.4s infinite; } .call-mute { background: rgba(255, 255, 255, .18); } .call-mute.on { background: #fff; color: #0e1a2b; }
.call-fine { color: rgba(255, 255, 255, .6) !important; }

/* Friends */
.friend-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.friend-list li:last-child { border-bottom: 0; }
.friend-list .row-actions { display: flex; gap: 6px; align-items: center; }
.online-friends h4 { display: flex; align-items: center; gap: 8px; }

/* Multi-entry About form */
.entry-list { display: grid; gap: 14px; }
.entry { border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px 4px; margin: 0; background: var(--surface-2); }
.entry legend { display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.entry legend .iconbtn { width: 26px; height: 26px; }

/* Agents */
.agents-page { max-width: 1060px; margin: 0 auto; display: grid; gap: 14px; }
.agents-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; padding: 26px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, #8b5cf6 16%, var(--surface)), color-mix(in srgb, var(--accent) 12%, var(--surface))); }
.agents-hero h1 { font-size: 1.7rem; margin: 10px 0 6px; }
.ah-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ah-art { position: relative; min-height: 150px; }
.ah-bubble { position: absolute; display: grid; place-items: center; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); font-weight: 700; }
.ah-bubble.b1 { width: 92px; height: 92px; left: 50px; top: 24px; color: #8b5cf6; animation: float 5s ease-in-out infinite; } .ah-bubble.b1 .ic { width: 48px; height: 48px; }
.ah-bubble.b2 { padding: 8px 14px; right: 0; top: 0; animation: float 6s ease-in-out infinite .5s; }
.ah-bubble.b3 { width: 44px; height: 44px; left: 10px; bottom: 6px; animation: float 4s ease-in-out infinite 1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ah-bubble, .call-av, .call-accept { animation: none !important; } }
.agents-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.agents-filter .js-field { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 6px; }
.agents-filter select { width: auto; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.agent-card { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.agent-card-top { display: flex; gap: 10px; align-items: center; color: var(--text); }
.agent-card-top:hover { text-decoration: none; }
.agent-card-top span { display: flex; flex-direction: column; min-width: 0; } .agent-card-top small { color: var(--muted); }
.agent-card p { margin: 0; }
.agent-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.agent-meta { color: var(--muted); }
.agent-line { margin: 2px 0 6px; color: var(--muted); font-size: .9rem; }
.agent-row { display: flex; gap: 14px; align-items: flex-start; }
.agent-row-main { flex: 1; min-width: 0; } .agent-row-main h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.choice-card { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.choice-card span { display: flex; flex-direction: column; gap: 2px; } .choice-card small { color: var(--muted); font-weight: 400; }
.token-box pre { user-select: all; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.docs-page .prose pre { white-space: pre-wrap; word-break: break-all; }
.playground { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.pg-head { display: flex; gap: 14px; align-items: center; padding: 16px; flex-wrap: wrap; }
.pg-head > div:nth-child(2) { flex: 1; min-width: 200px; } .pg-head h1 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pg-head p { margin: 0; }
.pg-chat { display: flex; flex-direction: column; overflow: hidden; }
.pg-log { min-height: 360px; max-height: calc(100vh - 330px); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.pg-msg { max-width: 80%; padding: 9px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.pg-me { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; }
.pg-them { align-self: flex-start; }
.pg-error { align-self: center; background: var(--bad-bg); color: var(--bad); border-color: transparent; font-size: .9rem; }
.pg-typing { display: flex; gap: 4px; }
.pg-starters { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; }
.pg-chat .fine { padding: 0 14px 12px; margin: 0; }
@media (max-width: 760px) {
  .agents-hero { grid-template-columns: 1fr; padding: 18px; } .ah-art { display: none; }
  .msg-me .msg-tools { position: static; }
  .msg { max-width: 92%; }
  .cover-edit { right: 8px; bottom: 8px; }
}
.install-db { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); margin-bottom: 14px; }
.install-found { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.install-found div { padding: 12px; border-radius: 12px; background: var(--surface-2); text-align: center; display: flex; flex-direction: column; }
.install-found strong { font-size: 1.3rem; } .install-found small { color: var(--muted); }
.install-recover { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.install-recover summary { cursor: pointer; }
.chat-log > * { flex-shrink: 0; }
nav.tabs.card { display: flex; gap: 6px; padding: 6px; flex-wrap: wrap; }
nav.tabs.card a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: .92rem; }
nav.tabs.card a:hover { background: var(--surface-2); text-decoration: none; }
nav.tabs.card a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.friends-page { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.type-chips { margin-bottom: 14px; }
body:has(.chat) .bot, body:has(.playground) .bot { display: none; }
