/* Pepper Manage. Tokens from the Pepper Liquid Glass design system (light theme). */
:root {
  --pepper-500: #6666ff; --pepper-600: #4b4be0; --pepper-text: #4b4be0; --pepper-100: #e8e8ff;
  --g-start: #3971f6; --g-end: #9028cc;
  --canvas: #f2f2fa; --ink: #17173a; --ink-muted: #585878;
  --glass: rgba(255,255,255,0.58); --glass-strong: rgba(255,255,255,0.76); --glass-tint: rgba(102,102,255,0.16);
  --glass-stroke: rgba(255,255,255,0.8); --shade: rgba(23,23,58,0.08);
  --shadow-glass: 0 8px 32px rgba(40,40,120,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-float: 0 16px 48px rgba(40,40,120,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-brand: 0 8px 24px rgba(102,102,255,0.45);
  --live: #147a52; --danger: #c62f4b;
  --font: "Epilogue", -apple-system, "SF Pro Text", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--pepper-text); }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--pepper-600); outline-offset: 2px; }
.ic { flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- backgrounds ---------- */
.bg-discs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-discs i { position: absolute; border-radius: 50%; background: linear-gradient(135deg, rgba(57,113,246,0.13), rgba(144,40,204,0.13)); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(14px, -10px) scale(1.02); } }
.brand-stage { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, var(--g-start) 0%, var(--pepper-500) 52%, var(--g-end) 100%); }
/* The website's glossy discs (pepper-site index.html): cover-gradient spheres with a sheen, fading in, drifting, with a touch of parallax. */
.site-field { position: fixed; inset: 0; pointer-events: none; z-index: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.site-field .sdisc { position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--bg); opacity: 0; filter: blur(var(--b, 0px));
  box-shadow: 0 30px 90px rgba(30,20,110,0.18), inset 0 1px 0 rgba(255,255,255,0.16);
  animation: sdisc-in 3.2s cubic-bezier(0.16, 1, 0.3, 1) var(--in, 0s) forwards, sdrift var(--t, 30s) ease-in-out var(--d, 0s) infinite alternate; }
.site-field .sdisc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(70% 70% at 30% 22%, rgba(255,255,255,0.16), rgba(255,255,255,0) 60%); }
@keyframes sdisc-in { to { opacity: var(--o, 0.5); } }
@keyframes sdrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(calc(var(--dx) * 0.6), calc(var(--dy) * -0.4)) scale(1.02); } 100% { transform: translate(var(--dx), var(--dy)) scale(0.99); } }
.v-dusk { --bg: linear-gradient(165deg, #5a5fd4 0%, #7652c9 55%, #8a4bb8 100%); }
.v-electric { --bg: radial-gradient(90% 90% at 100% 0%, #8fb0ff 0%, rgba(143,176,255,0) 55%), linear-gradient(200deg, #2f6bff 0%, #6a5cff 50%, #7b3ff0 100%); }
.v-iris { --bg: radial-gradient(120% 90% at 85% 10%, #9a86ea 0%, rgba(154,134,234,0) 60%), linear-gradient(135deg, #5b54cf, #7a49c4); }
.v-ultraviolet { --bg: radial-gradient(100% 90% at 90% 10%, #b98aff 0%, rgba(185,138,255,0) 55%), linear-gradient(135deg, #5b3df5 0%, #8a2be2 100%); }
.v-plum { --bg: radial-gradient(90% 80% at 15% 100%, #a35bc4 0%, rgba(163,91,196,0) 65%), linear-gradient(180deg, #4f48c0, #6b3fae); }
.v-orchid { --bg: linear-gradient(115deg, #6a4dff 0%, #9b3ff2 50%, #c044d8 100%); }
.v-nightshade { --bg: radial-gradient(110% 100% at 0% 0%, #6d63e6 0%, rgba(109,99,230,0) 55%), linear-gradient(160deg, #3c3a9e, #5a3196); }
@media (prefers-reduced-motion: reduce) { .bg-discs i, .site-field .sdisc { animation: sdisc-in .01s forwards; } .site-field { transform: none; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: flex-end; gap: 1px; }
.home-link { display: inline-flex; text-decoration: none; border-radius: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--pepper-600), var(--g-end)); box-shadow: var(--shadow-brand); }
.btn-glass { color: var(--ink); background: var(--glass); border-color: var(--glass-stroke); box-shadow: 0 6px 20px rgba(40,40,120,0.10), inset 0 1px 0 rgba(255,255,255,0.9); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.btn-glass:hover { background: rgba(255,255,255,0.85); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-ghost { color: var(--pepper-text); background: transparent; padding: 8px 12px; min-height: 36px; }
.btn-ghost:hover { background: var(--glass-tint); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(23,23,58,0.1); background: rgba(255,255,255,0.7); color: var(--ink-muted); padding: 0; }
.icon-btn:hover { background: #fff; color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--pepper-text); font-weight: 600; font-size: 14px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* ---------- glass panels ---------- */
.panel { position: relative; padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-stroke); box-shadow: var(--shadow-glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-top: 1px solid var(--shade); }
.row:first-of-type { border-top: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.row-link { text-decoration: none; color: inherit; border-radius: 14px; }
.row-link:hover { background: rgba(255,255,255,0.55); }
.empty { padding: 26px 10px; text-align: center; color: var(--ink-muted); font-size: 15px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--pepper-100); color: var(--pepper-text); white-space: nowrap; }
.pill-solid { background: var(--pepper-600); color: #fff; }
.pill-live { background: rgba(20,122,82,0.12); color: var(--live); }
.pill-muted { background: rgba(23,23,58,0.06); color: var(--ink-muted); }
.badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--pepper-600); border-radius: 999px; padding: 2px 8px; }
.going { font-size: 14px; font-weight: 600; color: var(--live); white-space: nowrap; }
.av { border-radius: 50%; object-fit: cover; background: #fff; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.av-init { color: #fff; font-weight: 800; }
.av-person { background: var(--pepper-100); color: var(--pepper-text); font-weight: 700; }
.date-badge { width: 52px; height: 56px; flex: none; border-radius: 12px; background: rgba(255,255,255,0.85); border: 1px solid rgba(23,23,58,0.06); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-badge span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--pepper-text); }
.date-badge span:last-child { font-size: 20px; font-weight: 800; }

/* ---------- sign in / circles (brand pages) ---------- */
.brand-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px clamp(16px, 4vw, 40px); }
.brand-head .who { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); }
.chip-glass { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.38); }
.chip-glass:hover { background: rgba(255,255,255,0.26); color: #fff; }
.brand-main { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 64px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; color: var(--ink); border-radius: 28px; padding: 36px 32px; box-shadow: 0 24px 64px rgba(30,20,110,0.28); display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pepper-text); }
.auth-card h1 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.01em; }
.auth-card p { margin: 0; color: var(--ink-muted); }
.auth-note { margin: 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.88); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 500; color: var(--ink-muted); font-size: 13px; }
.input { width: 100%; font-size: 15px; font-weight: 400; padding: 12px 15px; border-radius: 14px; border: 1px solid #dcdcec; background: #f8f8fd; }
.input:focus { outline: 2px solid var(--pepper-600); outline-offset: 1px; background: #fff; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.45; }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; }
.circles-wrap { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(16px, 5vh, 56px) 16px 64px; display: flex; flex-direction: column; gap: 32px; }
.circles-wrap h1 { margin: 0; text-align: center; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.circles-wrap .lead { margin: 6px 0 0; text-align: center; font-size: 17px; color: rgba(255,255,255,0.86); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 18px; min-height: 220px; padding: 24px; border-radius: 28px; text-decoration: none; color: var(--ink); background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.95); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 0 0 7px rgba(255,255,255,0.24), 0 0 0 8px rgba(255,255,255,0.38), 0 16px 48px rgba(30,20,110,0.22), inset 0 1px 0 rgba(255,255,255,0.9); transition: transform .2s ease, background-color .2s ease; }
.tile:hover { transform: translateY(-3px); background: rgba(255,255,255,0.92); color: var(--ink); }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 10px; }
.tile .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile .av { border: 3px solid #fff; box-shadow: 0 6px 18px rgba(40,40,120,0.18); }
.role-tag { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--pepper-100); color: var(--pepper-text); }
.role-tag.owner { background: var(--pepper-600); color: #fff; }
.tile .name { font-size: 21px; line-height: 26px; font-weight: 700; }
.tile .meta { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.tile .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.new-circle { align-self: center; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.92); font-weight: 600; text-decoration: none; }
.new-circle:hover { color: #fff; text-decoration: underline; }
.campus-pick { display: flex; justify-content: center; }
.campus-pick select { -webkit-appearance: none; appearance: none; border-radius: 999px; padding: 9px 42px 9px 18px; min-width: 200px; border: 1px solid rgba(255,255,255,0.5); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.campus-pick select:hover { background-color: rgba(255,255,255,0.28); }
.campus-pick option { color: var(--ink); }

/* ---------- dashboard shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px clamp(16px, 3vw, 28px); background: var(--glass-strong); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); border-bottom: 1px solid var(--glass-stroke); box-shadow: 0 8px 32px rgba(40,40,120,0.08); }
.topbar .label { font-size: 14px; font-weight: 600; color: var(--ink-muted); padding-left: 14px; border-left: 1px solid rgba(23,23,58,0.12); }
.switcher { position: relative; }
.switcher > button { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--glass-stroke); background: var(--glass); box-shadow: 0 4px 16px rgba(40,40,120,0.10); font-size: 15px; font-weight: 600; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; padding: 8px; border-radius: 20px; background: rgba(255,255,255,0.94); border: 1px solid var(--glass-stroke); box-shadow: var(--shadow-float); backdrop-filter: blur(40px); z-index: 40; display: flex; flex-direction: column; gap: 2px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); background: none; border: 0; text-align: left; font-size: 15px; font-weight: 500; }
.menu a:hover, .menu button:hover, .menu .on { background: var(--glass-tint); }
.menu .sep { height: 1px; background: var(--shade); margin: 6px 4px; }
.grow { flex: 1 1 20px; }
.me-chip { display: flex; align-items: center; gap: 8px; }
.shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px clamp(16px, 3vw, 28px) 64px; max-width: 1440px; margin: 0 auto; }
.side { flex: 1 1 220px; max-width: 240px; align-self: flex-start; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-stroke); box-shadow: var(--shadow-glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.side a .ic { color: var(--ink-muted); }
.side a:hover { background: rgba(255,255,255,0.6); }
.side a.on { background: var(--glass-tint); color: var(--pepper-text); font-weight: 700; }
.side a.on .ic { color: var(--pepper-text); stroke-width: 2.2; }
.side a .lbl { flex: 1; }
.side .sep { height: 1px; background: var(--shade); margin: 8px 6px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 860px) {
  .side { position: static; max-width: none; flex-direction: row; overflow-x: auto; flex-basis: 100%; border-radius: 20px; }
  .side a { flex: none; padding: 9px 12px; }
  .side .sep { display: none; }
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h1 { margin: 0; font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-muted); flex-wrap: wrap; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs strong { color: var(--ink); }

/* ---------- circle header ---------- */
.hero { overflow: hidden; padding: 0; border-radius: 28px; }
.hero .cover { position: relative; height: 176px; overflow: hidden; background-size: cover; background-position: center; }
.cover-discs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .cover .chip-glass { position: absolute; right: 16px; bottom: 16px; font-size: 13px; padding: 8px 14px; backdrop-filter: blur(12px); }
.hero .info { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 12px 24px 22px; }
.hero .id { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.hero .id .av { position: relative; z-index: 3; margin-top: -54px; border: 4px solid #fff; box-shadow: 0 10px 28px rgba(40,40,120,0.22); }
.hero h1 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.01em; }
.hero p { margin: 4px 0 0; color: var(--ink-muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; text-decoration: none; color: inherit; }
.stat .k { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .n { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.stat.hot { background: var(--glass-tint); }
.stat.hot .k, .stat.hot .v, .stat.hot .n { color: var(--pepper-text); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-wide { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-narrow { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ---------- tabs & filters ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(23,23,58,0.06); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(40,40,120,0.12); }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; min-width: 220px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-stroke); color: var(--ink-muted); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 10px; border-bottom: 1px solid var(--shade); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--shade); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 12px; }
.person .nm { font-weight: 600; }
.person .sub { font-size: 13px; color: var(--ink-muted); }
select.role-select { border-radius: 999px; padding: 7px 12px; border: 1px solid rgba(23,23,58,0.12); background: #fff; font-weight: 600; font-size: 14px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section h2 { margin: 0; font-size: 20px; font-weight: 700; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(23,23,58,0.12); background: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600; cursor: pointer; }
.choice input { accent-color: var(--pepper-600); margin: 0; }
.choice label:has(input:checked) { background: var(--glass-tint); border-color: rgba(75,75,224,0.4); color: var(--pepper-text); }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--pepper-600); }
.cover-pick { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.cover-pick button { aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid transparent; position: relative; overflow: hidden; padding: 0; }
.cover-pick button.on { border-color: var(--pepper-600); box-shadow: 0 0 0 2px #fff inset; }
.upload-box { display: flex; align-items: center; gap: 16px; }
.progress { height: 6px; border-radius: 999px; background: rgba(23,23,58,0.08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pepper-600), var(--g-end)); width: 0; transition: width .2s ease; }

/* ---------- post editor ---------- */
.editor-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.editor { flex: 999 1 600px; min-width: 0; padding: 0; overflow: hidden; border-radius: 24px; background: rgba(255,255,255,0.72); }
.ed-line { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid rgba(23,23,58,0.07); font-size: 14px; }
.ed-line .k { width: 64px; flex: none; color: var(--ink-muted); font-weight: 500; }
.ed-line select { border: 0; background: var(--glass-tint); color: var(--pepper-text); font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.ed-subject { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 20px; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px 20px; border-bottom: 1px solid rgba(23,23,58,0.07); background: rgba(255,255,255,0.5); position: sticky; top: 63px; z-index: 5; }
.toolbar button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 16px; padding: 0; }
.toolbar button.wide { width: auto; padding: 0 12px; border-radius: 999px; gap: 6px; font-size: 14px; font-weight: 600; }
.toolbar button:hover { background: rgba(23,23,58,0.06); }
.toolbar button.on { background: var(--glass-tint); color: var(--pepper-text); }
.toolbar .sep { width: 1px; height: 22px; background: rgba(23,23,58,0.1); margin: 0 6px; }
.toolbar select { border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 8px; border-radius: 10px; }
.rte { min-height: 360px; padding: 28px; outline: none; font-size: 16px; line-height: 1.6; max-width: 820px; }
.rte:empty::before { content: attr(data-placeholder); color: #9a9ab5; }
.rte p { margin: 0 0 14px; } .rte h3 { margin: 18px 0 8px; font-size: 20px; line-height: 1.3; }
.rte ul, .rte ol { margin: 0 0 14px; padding-left: 24px; } .rte li { margin: 0 0 4px; }
.rte blockquote { margin: 0 0 14px; padding: 10px 16px; border-radius: 14px; background: rgba(102,102,255,0.10); color: #3a3a5c; font-style: italic; }
.rte hr { border: 0; border-top: 1px solid rgba(23,23,58,0.14); margin: 20px 0; }
.rte img { max-width: 100%; border-radius: 14px; display: block; margin: 0 0 14px; }
.files { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 28px 24px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.75); box-shadow: 0 4px 16px rgba(40,40,120,0.08); min-width: 240px; max-width: 360px; }
.file .kind { width: 38px; height: 38px; flex: none; border-radius: 10px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: #e3ecff; color: #2f5fd0; }
.file .kind.pdf { background: #fde7ea; color: #c62f4b; } .file .kind.xls { background: #e2f5ea; color: #1e7a4a; } .file .kind.ppt { background: #fdeee2; color: #b5531c; }
.file .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file .meta span:first-child { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta span:last-child { font-size: 12px; color: var(--ink-muted); }
.drop { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; border: 1.5px dashed rgba(75,75,224,0.4); background: transparent; color: var(--pepper-text); font-size: 14px; font-weight: 600; }
.editor.dragging { box-shadow: 0 0 0 3px var(--pepper-500), var(--shadow-glass); }
.rail { flex: 1 1 300px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rail .panel { display: flex; flex-direction: column; gap: 12px; }
.rail h2 { margin: 0; font-size: 17px; font-weight: 700; }
.rail p { margin: 0; font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.preview-card { border-radius: 20px; padding: 14px; background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.9); display: flex; flex-direction: column; gap: 8px; }
.preview-card .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.preview-card .ttl { font-size: 15px; font-weight: 700; line-height: 1.3; }
.preview-card .txt { font-size: 13px; color: #3a3a5c; line-height: 1.4; }

/* ---------- posts ---------- */
.post { display: flex; flex-direction: column; gap: 10px; }
.post .by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.post .by strong { color: var(--ink); }
.post h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.post .body { font-size: 15px; line-height: 1.55; }
.post .body p { margin: 0 0 10px; } .post .body h3 { font-size: 17px; margin: 12px 0 6px; } .post .body ul, .post .body ol { margin: 0 0 10px; padding-left: 22px; }
.post .body blockquote { margin: 0 0 10px; padding: 8px 14px; border-radius: 12px; background: rgba(102,102,255,0.10); font-style: italic; }
.post .body img { max-width: 100%; max-height: 360px; border-radius: 14px; }
.post .media { display: flex; gap: 8px; flex-wrap: wrap; }
.post .media img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }
.post .foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.post .foot .grow { flex: 1; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- chats ---------- */
.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100vh - 150px); min-height: 480px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--shade); }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 9px 14px; border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(40,40,120,0.08); font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.mine .bubble { background: linear-gradient(120deg, var(--pepper-600), #7a3fe0); color: #fff; }
.msg-name { font-size: 12px; font-weight: 700; color: var(--ink-muted); margin: 10px 0 2px 46px; }
.msg-name.mine { align-self: flex-end; margin-right: 6px; }
.bubble img { max-width: 240px; border-radius: 12px; display: block; }
.reply-to { font-size: 12px; opacity: .8; border-left: 2px solid currentColor; padding-left: 8px; margin-bottom: 4px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin: 14px 0 6px; }
.pinned-bar { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--glass-tint); font-size: 14px; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px 20px; border-top: 1px solid var(--shade); background: rgba(255,255,255,0.6); }
.composer textarea { flex: 1; resize: none; border-radius: 22px; padding: 11px 16px; border: 1px solid #dcdcec; background: #fff; max-height: 160px; min-height: 44px; line-height: 1.4; }
.composer .btn { min-width: 44px; padding: 10px 16px; }

/* ---------- dialogs & toasts ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,28,0.32); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 24px 64px rgba(30,20,110,0.28); display: flex; flex-direction: column; gap: 14px; }
.dialog-wide { max-width: 640px; }
.dialog h2 { margin: 0; font-size: 20px; }
.dialog-body { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.dialog-body p { margin: 0; color: var(--ink-muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 32px rgba(23,23,58,0.3); max-width: 380px; transition: opacity .3s ease, transform .3s ease; }
.toast-error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }
.loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; color: var(--ink-muted); gap: 10px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pepper-100); border-top-color: var(--pepper-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-bar { position: fixed; left: 16px; bottom: 16px; z-index: 150; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(23,23,58,0.3); }
.qr-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr-box .code { background: #fff; padding: 12px; border-radius: 24px; box-shadow: var(--shadow-glass); }
.res-row .ic { color: var(--pepper-text); }
.brand-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

/* ---------- sign in: big "manage", remember me, the app's glowing button ---------- */
.signin-col { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.mega { margin: 0 0 -4px; width: 100%; text-align: center; color: #fff; font-weight: 900; font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; text-shadow: 0 10px 40px rgba(30,20,110,0.28); }
.mega span { display: inline-block; opacity: 0; animation: mega-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) .1s forwards; }
@keyframes mega-in { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
.rise { opacity: 0; animation: rise-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) .35s forwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.auth-title { margin: 0; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.remember { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.remember .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c9c9e4; background: #f8f8fd; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s, border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.remember .box .ic { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1); stroke-width: 2.6; }
.remember input:checked + .box { background: linear-gradient(135deg, var(--pepper-600), var(--g-end)); border-color: transparent; }
.remember input:checked + .box .ic { opacity: 1; transform: none; }
.remember:active .box { transform: scale(.88); }
.remember input:focus-visible + .box { outline: 2px solid var(--pepper-600); outline-offset: 2px; }
.btn-glow { position: relative; overflow: hidden; min-height: 56px; font-size: 17px; color: #fff; border: 1px solid rgba(255,255,255,0.35); background: linear-gradient(120deg, #4b4be0 0%, #7b47e6 55%, #9028cc 100%);
  box-shadow: 0 10px 30px rgba(102,102,255,0.45), inset 0 1px 0 rgba(255,255,255,0.35); animation: halo 3.2s ease-in-out infinite; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.42) 48%, transparent 66%) no-repeat; background-size: 260% 100%; background-position: 130% 0; animation: glint 4.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes glint { 0%, 70% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes halo { 0%, 100% { box-shadow: 0 10px 30px rgba(102,102,255,0.40), 0 0 0 0 rgba(102,102,255,0), inset 0 1px 0 rgba(255,255,255,0.35); } 50% { box-shadow: 0 12px 34px rgba(102,102,255,0.55), 0 0 0 8px rgba(102,102,255,0.10), inset 0 1px 0 rgba(255,255,255,0.35); } }
.btn-glow .arrow { display: inline-flex; transform: rotate(180deg); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn-glow:hover { transform: translateY(-2px) scale(1.015); }
.btn-glow:hover .arrow { transform: rotate(180deg) translateX(-4px); }
.btn-glow:active { transform: scale(.97); }
.btn-glow.go .arrow { animation: fly 0.6s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes fly { to { transform: rotate(180deg) translateX(-260px); opacity: 0; } }
.btn-glow.busy .lbl::after { content: "…"; display: inline-block; width: 1em; text-align: left; animation: dots 1s steps(3) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1em; } }
.btn-glow[disabled] { opacity: 1; cursor: default; }
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both !important; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

/* ---------- the site's cursor (brand pages) ---------- */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; opacity: 0;
  transition: width .28s cubic-bezier(.34,1.56,.64,1), height .28s cubic-bezier(.34,1.56,.64,1), margin .28s cubic-bezier(.34,1.56,.64,1), opacity .3s; }
html.has-dot .cursor-dot { opacity: 1; }
html.has-dot .cursor-dot.big { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; box-shadow: inset 0 0 0 2px #fff; }
html.has-dot .cursor-dot.text, html.has-dot.dot-out .cursor-dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { html.has-dot, html.has-dot *:not(input):not(textarea):not(select) { cursor: none !important; } }

/* ---------- your circles: centered, floating tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.bob { width: 260px; opacity: 0; filter: blur(8px); transform: translateY(24px); animation: rv-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s) forwards; }
.bob > .tile { height: 100%; animation: bob var(--t, 8s) ease-in-out var(--d, 0s) infinite alternate; }
.bob > .tile:hover { animation-play-state: paused; }
@keyframes rv-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bob { from { transform: translateY(-7px) rotate(var(--r0, -0.6deg)); } to { transform: translateY(9px) rotate(var(--r1, 0.6deg)); } }
@media (prefers-reduced-motion: reduce) { .bob, .bob > .tile, .mega span, .rise, .btn-glow, .btn-glow::after { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; } }

/* ---------- app-like controls everywhere: springy press, purple highlight on hover and select ---------- */
.btn, .icon-btn, .seg button, .toolbar button, .side a, .row-link, .chip-glass, .drop, .file, .menu a, .menu button, .link-btn, .cover-pick button, .choice label, select.role-select {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease; }
.btn:active, .icon-btn:active, .seg button:active, .toolbar button:active, .side a:active, .row-link:active, .chip-glass:active, .drop:active, .menu a:active, .menu button:active, .choice label:active, .cover-pick button:active { transform: scale(.96); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(102,102,255,0.55); }
.btn-glass:hover, .icon-btn:hover, .drop:hover, .choice label:hover, select.role-select:hover { background: var(--glass-tint); color: var(--pepper-text); border-color: rgba(102,102,255,0.35); }
.btn-ghost:hover, .link-btn:hover, .toolbar button:hover, .seg button:hover:not(.on), .menu a:hover, .menu button:hover { background: var(--glass-tint); color: var(--pepper-text); text-decoration: none; }
.link-btn { padding: 4px 8px; margin: -4px -8px; border-radius: 999px; }
.side a:hover { background: var(--glass-tint); color: var(--pepper-text); }
.side a:hover .ic { color: var(--pepper-text); }
.row-link:hover { background: var(--glass-tint); }
.row-link:hover .row-title { color: var(--pepper-text); }
.panel.stat { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s, box-shadow .25s; }
.panel.stat:hover { transform: translateY(-3px); background: rgba(255,255,255,0.78); box-shadow: 0 14px 36px rgba(40,40,120,0.16), inset 0 1px 0 #fff; }
.panel.stat:active { transform: scale(.98); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-ghost[style*="danger"]:hover { background: rgba(198,47,75,0.1); color: var(--danger) !important; }
@media (prefers-reduced-motion: reduce) { .btn:active, .icon-btn:active, .side a:active, .row-link:active, .panel.stat:hover { transform: none; } }

/* ---------- chat: hover actions, reactions, replies, GIFs ---------- */
.chat { position: relative; }
.msg { position: relative; align-self: flex-start; }
.msg.mine { align-self: flex-end; }
.msg-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mine .msg-body { align-items: flex-end; }
.bubble { cursor: default; }
/* The action bar sits on the bubble's top edge (no gap to cross), on the side the message is aligned to. */
.msg-actions { position: absolute; bottom: calc(100% - 10px); left: 8px; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.97); border: 1px solid var(--glass-stroke);
  box-shadow: 0 10px 30px rgba(40,40,120,0.22); opacity: 0; transform: translateY(6px) scale(.94); transform-origin: left bottom; pointer-events: none; white-space: nowrap; transition: opacity .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.mine .msg-actions { left: auto; right: 8px; transform-origin: right bottom; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions, .msg.open .msg-actions { opacity: 1; transform: none; pointer-events: auto; }
.msg:hover .bubble, .msg.open .bubble { box-shadow: 0 0 0 2px rgba(102,102,255,0.35), 0 2px 8px rgba(40,40,120,0.08); }
.msg-actions button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); padding: 0; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .15s; }
.msg-actions button:hover { background: var(--glass-tint); color: var(--pepper-text); transform: scale(1.18); }
.msg-actions .sep { width: 1px; height: 20px; background: var(--shade); margin: 0 3px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid rgba(23,23,58,0.08); background: rgba(255,255,255,0.9); font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.react.on { background: var(--glass-tint); border-color: rgba(102,102,255,0.4); color: var(--pepper-text); }
.react:hover { transform: scale(1.06); }
.pop-anim { animation: popr .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popr { 40% { transform: scale(1.45); } }
.reply-to { display: block; text-align: left; font: inherit; font-size: 12px; opacity: .85; border: 0; border-left: 2px solid currentColor; background: none; color: inherit; padding: 0 0 0 8px; margin-bottom: 5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.bubble.gif { padding: 4px; background: transparent; box-shadow: none; }
.mine .bubble.gif { background: transparent; }
.bubble.gif img { width: 220px; max-width: 100%; height: auto; border-radius: 16px; }
.pinmark { display: inline-flex; margin-left: 6px; opacity: .7; vertical-align: middle; }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 2px 8px rgba(40,40,120,0.08); } 30% { box-shadow: 0 0 0 4px rgba(102,102,255,0.45); } }
.msg.peppered .bubble::after { content: ""; }
.msg.peppered .msg-body { animation: popr .45s cubic-bezier(.34,1.56,.64,1); }
.pinned-bar { width: 100%; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.pinned-bar:hover { background: rgba(102,102,255,0.22); }
.replybar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--shade); background: rgba(255,255,255,0.75); font-size: 14px; animation: rise-in .3s ease; }
.replybar .ic-wrap { color: var(--pepper-text); display: inline-flex; }
.composer .icon-btn { width: 44px; height: 44px; flex: none; }
.composer .icon-btn.on { background: var(--glass-tint); color: var(--pepper-text); }
.gif-btn { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.composer .send:hover { transform: translateY(-1px) rotate(-8deg); }
.pop { position: absolute; left: 20px; bottom: 78px; z-index: 10; width: min(420px, calc(100% - 40px)); max-height: 380px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 22px;
  background: rgba(255,255,255,0.97); border: 1px solid var(--glass-stroke); box-shadow: 0 18px 48px rgba(40,40,120,0.24); animation: rise-in .25s ease; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.emoji-grid button { height: 36px; border: 0; border-radius: 10px; background: none; font-size: 20px; padding: 0; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background-color .15s; }
.emoji-grid button:hover { background: var(--glass-tint); transform: scale(1.2); }
.gif-head { display: flex; }
.gif-grid { columns: 3 110px; column-gap: 6px; overflow-y: auto; }
.gif-grid button { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--pepper-100); break-inside: avoid; transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; }
.gif-grid button:hover { transform: scale(1.03); box-shadow: 0 0 0 3px var(--pepper-500); }
.gif-grid img { display: block; width: 100%; }
.gif-grid .empty { column-span: all; padding: 18px 6px; }
.giphy { font-size: 11px; font-weight: 700; color: var(--ink-muted); text-align: right; letter-spacing: .04em; }

/* ---------- insights ---------- */
.stat.static:hover { transform: none; background: var(--glass); box-shadow: var(--shadow-glass); }
.trend.up { color: var(--live); } .trend.down { color: var(--danger); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(23,23,58,0.08); stroke-width: 1; }
.chart .ref { stroke: rgba(23,23,58,0.28); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .axis { font-size: 11px; fill: var(--ink-muted); font-weight: 500; }
.chart .direct { font-size: 12px; fill: var(--ink); font-weight: 700; }
.chart .bar path { fill: #6666ff; transition: opacity .15s, filter .15s; }
.chart .bar.future path { fill: #6666ff; opacity: .38; }
.chart .bar.dim path { opacity: .3; }
.chart .bar.future.dim path { opacity: .18; }
.chart .bar:focus { outline: none; }
.chart .bar:focus path, .chart .bar:hover path { filter: brightness(1.08); }
.chart .tip { position: absolute; transform: translateY(-100%); width: 180px; padding: 8px 10px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: 0 8px 24px rgba(23,23,58,0.3); }
.as-table { margin-top: 10px; font-size: 14px; }
.as-table summary { cursor: pointer; color: var(--pepper-text); font-weight: 600; width: max-content; padding: 4px 8px; margin-left: -8px; border-radius: 999px; }
.as-table summary:hover { background: var(--glass-tint); }
.kv { display: flex; justify-content: space-between; padding: 10px 4px; border-top: 1px solid var(--shade); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--ink-muted); }
.brand-body > .circles-wrap { flex: 1; justify-content: center; padding-bottom: 96px; }
.demo-link { display: inline-block; margin-top: 10px; color: #fff; font-weight: 600; text-decoration: none; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.38); background: rgba(255,255,255,0.12); transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.demo-link:hover { color: #fff; background: rgba(255,255,255,0.24); transform: translateY(-1px); }

/* Covers always contain their circles (the new-circle preview's circles were spilling over the form and catching clicks). */
.cover { position: relative; overflow: hidden; }
/* The new-circle card fills its (wider) column, so it sits centered under "new circle". */
#nc.auth-card { max-width: none; }

/* Pills: content centered both ways, everywhere. Epilogue sits a touch high in its line box, so trim to the letters where supported. */
.pill, .role-tag, .badge, .chip-glass, .btn, .seg button, .react, .demo-link, .remember, .pill-solid { justify-content: center; text-align: center; }
.pill, .role-tag, .badge { display: inline-flex; align-items: center; line-height: 1; }
.role-tag { padding: 7px 12px 6px; }
.pill { padding: 5px 10px 4px; }
.badge { min-width: 20px; height: 20px; padding: 0 7px; }
@supports (text-box: trim-both cap alphabetic) {
  .pill, .role-tag, .badge, .btn, .chip-glass, .seg button, .demo-link { text-box: trim-both cap alphabetic; }
  .pill { padding: 6px 10px; } .role-tag { padding: 7px 12px; } .badge { padding: 0 7px; }
}

/* Post comments */
.comments { border-top: 1px solid var(--line, rgba(40,40,120,.1)); margin-top: 12px; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt .av { flex: none; }
.cmt-main { min-width: 0; flex: 1; }
.cmt-bubble { display: inline-block; max-width: 100%; background: var(--glass-tint, #f3f2ff); border-radius: 16px; padding: 9px 13px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cmt-bubble strong { display: block; font-size: 13px; margin-bottom: 2px; }
.replies { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cmt-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cmt-form .c-input { flex: 1; min-width: 160px; padding: 9px 14px; border-radius: 999px; }
.cmt-to { flex-basis: 100%; order: -1; font-size: 12px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.cmt-to[hidden] { display: none; }

/* Circle created */
.made { align-items: center; text-align: center; }
.made-badge { position: relative; width: 120px; height: 120px; margin: 0 auto 26px; animation: madePop .6s cubic-bezier(.34,1.56,.64,1) both; }
.made-badge > .av { width: 120px !important; height: 120px !important; border: 4px solid #fff; box-shadow: 0 16px 40px rgba(40,40,120,.3); }
.made-check { position: absolute; right: -8px; bottom: -6px; filter: drop-shadow(0 6px 14px rgba(40,40,120,.35)); animation: madePop .5s .35s cubic-bezier(.34,1.56,.64,1) both; }
.made-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: madeDraw .45s .7s ease-out forwards; }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: 0; top: 0; border-radius: 2px; opacity: 0; animation: madeBurst 1.4s var(--d) cubic-bezier(.15,.7,.3,1) forwards; }
.made-title { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; color: #fff; margin: 0 0 12px; letter-spacing: -0.02em; animation: rise-in .6s .3s both; }
.made-sub { color: rgba(255,255,255,.88); font-size: 17px; margin: 0 auto 28px; max-width: 400px; animation: rise-in .6s .4s both; }
.made-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin: 0 auto; animation: rise-in .6s .5s both; }
.made-go { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); min-height: 50px; }
.made-go:hover { background: rgba(255,255,255,.24); color: #fff; }
@keyframes madePop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes madeDraw { to { stroke-dashoffset: 0; } }
@keyframes madeBurst { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .made-badge, .made-check, .made-title, .made-sub, .made-actions, .confetti i { animation: none !important; opacity: 1; } .confetti { display: none; } .made-check path { stroke-dashoffset: 0; } }

/* Change cover dialog */
.cv-prev { position: relative; height: 160px; border-radius: 18px; overflow: hidden; }
.cv-prev .chip-glass { position: absolute; right: 14px; bottom: 14px; font-size: 13px; padding: 8px 14px; backdrop-filter: blur(12px); }
.cv-prev .cv-rm { right: auto; left: 14px; }
/* comment actions: a quiet text row under the bubble (time · Reply · Delete) */
.cmt-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 12px; line-height: 1; color: var(--ink-muted); margin: 6px 0 0 10px; }
.cmt-meta > * + *::before { content: "·"; margin: 0 7px; color: var(--ink-muted); font-weight: 400; }
.cmt-meta .link-btn { margin: 0; padding: 0; border-radius: 0; background: none !important; font-size: 12px; font-weight: 700; color: var(--ink-muted); line-height: 1; text-box: none; }
.cmt-meta .link-btn:hover, .cmt-meta .link-btn:focus-visible { color: var(--pepper-text); text-decoration: none; }
.cmt-meta .cmt-del:hover, .cmt-meta .cmt-del:focus-visible { color: var(--danger); }
.cmt-meta .link-btn:active { transform: none; opacity: .6; }

/* Phone preview in the post editor (mirrors the app's post card) */
.seg-sm button { font-size: 12px; padding: 6px 10px; }
.phone { margin: 4px auto 0; width: 100%; max-width: 300px; border-radius: 40px; padding: 10px; background: #15142b; box-shadow: 0 18px 40px rgba(30,30,90,.25), inset 0 0 0 2px #2c2b4a; }
.phone-screen { border-radius: 31px; background: #f6f5ff; min-height: 380px; max-height: 560px; overflow-y: auto; padding: 0 12px 16px; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.ph-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 10px; font-size: 11px; font-weight: 700; color: #1d1c3a; background: #f6f5ff; }
.ph-bar span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pepper-text); }
.ph-island { width: 70px; height: 20px; border-radius: 999px; background: #15142b; }
.ph-card { background: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 4px 16px rgba(60,60,140,.08); }
.ph-who { display: flex; gap: 9px; align-items: center; }
.ph-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ph-role { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pepper-text); background: #ececff; border-radius: 6px; padding: 2px 5px; }
.ph-time { font-size: 11.5px; color: var(--ink-muted); }
.ph-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ph-text { font-size: 13.5px; line-height: 1.45; color: #2a2945; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ph-empty { color: var(--ink-muted) !important; }
.ph-more { font-size: 12px; font-weight: 700; color: var(--pepper-text); }
.ph-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.ph-rich { font-size: 13.5px; line-height: 1.45; color: #2a2945; overflow-wrap: anywhere; }
.ph-rich > * { margin: 0 0 9px !important; }
.ph-rich > *:last-child { margin-bottom: 0 !important; }
.ph-rich h3 { font-size: 15px !important; }
.ph-rich img { max-width: 100%; border-radius: 12px; }
.ph-rich ul, .ph-rich ol { padding-left: 20px !important; }
.ph-files { display: flex; flex-direction: column; gap: 6px; }
.ph-file { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 8px 10px; border-radius: 10px; background: #f3f2ff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-foot { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-muted); border-top: 1px solid #efeefa; padding-top: 9px; }
.ed-tip { margin: 2px 0 0; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: #fff7e6; color: #6b4a00; border: 1px solid #f6dfa8; }
.ed-tip strong { color: #4d3500; }
.phone-panel h2 { white-space: nowrap; }
.seg-sm button { white-space: nowrap; }
.phone-screen { min-height: 320px; }
.ph-rich p, .ph-rich li, .ph-rich blockquote { color: #2a2945 !important; font-size: 13.5px !important; line-height: 1.45 !important; }
