/* Pedia screens: the card look from the first app (Sora headings, Plex Mono labels, gradient-topped cards). */
.pgw { padding: 40px 20px 28px; }
.pgt { margin: 0; font: 700 1.9rem/1.12 var(--font-display); letter-spacing: -0.025em;
  background-image: linear-gradient(100deg, var(--blue) 0%, var(--violet) 45%, var(--ink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.pgs { margin: 8px 0 24px; font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }
.pgb { display: inline-block; margin: 0 0 14px; font: 500 .72rem var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }

.panel { position: relative; background: linear-gradient(180deg, var(--card) 0%, var(--card) 100%); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(15,23,42,.04), 0 18px 32px -18px rgba(15,23,42,.22), 0 6px 12px -6px rgba(15,23,42,.08); overflow: hidden; }
.panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 64px; background: linear-gradient(180deg, var(--shine), rgba(255,255,255,0)); pointer-events: none; }
.panel::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--blue)); opacity: .75; }
.panel > * { position: relative; z-index: 1; }

.fcs { display: grid; gap: 16px; }
a.fcard { display: block; padding: 20px; text-decoration: none; color: inherit; }
.fcard .cn { font: 500 .78rem var(--font-mono); color: var(--blue); letter-spacing: .02em; }
.fcard .fn { margin-top: 8px; font: 600 1.25rem/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.fcard .fc { margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }

.dpl a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-size: 1rem; line-height: 1.35; border-bottom: 1px solid var(--line); }
.dpl a:last-child { border-bottom: 0; }
.dpl a:active { background: #eff6ff; }
.dpl svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #64748b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.drow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow .dic svg { width: 22px; height: 22px; display: block; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drow .dmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.drow .dt { font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .dl { font: 500 .66rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.drow .dl b { font-weight: 600; color: #7c3aed; }
.dbtn { flex: none; width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; padding: 0; }
.dbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dbtn[aria-pressed="true"] { color: var(--blue); }
.dbtn[aria-pressed="true"] svg { fill: currentColor; }
.dbtn.on { color: var(--blue); }
.dbtn.busy { opacity: .5; }
.dopen { flex: none; border: 1px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 9999px; padding: 8px 15px; font: 500 .66rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.dopen:disabled { opacity: .5; }
.dmsg { flex: 0 0 100%; margin: 0; }

.emp { padding: 44px 20px; text-align: center; }
.emp svg { width: 26px; height: 26px; fill: none; stroke: #cbd5e1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.emp p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.emp small { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-soft); }
.emp .pill { display: inline-block; margin-top: 14px; border: 1px solid var(--ink); border-radius: 9999px; padding: 9px 18px; font: 500 .68rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: var(--card); }

.fld { margin: 0 0 16px; }
.fld > label { display: block; margin-bottom: 6px; font: 500 .68rem var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.fld select:not(.sel-native), .fld input { width: 100%; height: 52px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 14px; font: 400 1.02rem var(--font-body); color: var(--ink); }
.fld select:not(.sel-native) { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.srch { position: relative; margin: 0 0 20px; }
.srch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: #64748b; stroke-width: 1.8; stroke-linecap: round; }
.srch input { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 14px 0 42px; font: 400 .98rem var(--font-body); }
.admlinks { margin: -12px 0 18px; }
.admlinks a { font: 500 .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); text-decoration: none; margin-right: 16px; }

/* top bar: only the add-person button on the right; the bell lives in the bottom bar */
.pd-nav a .nb { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font: 700 .7rem/20px var(--font-body); text-align: center; border: 2px solid var(--card); box-sizing: content-box; }
.pd-nav a .nb[hidden] { display: none; }
.pd-nav a[aria-current="page"] svg { fill: currentColor; fill-opacity: .08; }
.pd-nav svg { stroke-width: 1.9; }

/* side menu: pills on the right of each row, badges beside the name */
.pd-dlist a .pl { margin-left: auto; font-style: normal; font: 600 .86rem var(--font-body); padding: 5px 12px; border-radius: 9999px; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.pd-dlist a .pl:empty { display: none; }
.pd-dlist a .pl.ok { background: #dcfce7; color: #166534; }
.pd-dlist a .pl.wait { background: #fef3c7; color: #92400e; }
.pd-dlist a .pl.bad { background: #fee2e2; color: #991b1b; }
.pd-dhead h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-dhead h2 #dr-bdg { display: inline-flex; gap: 6px; }
.dr-counts { margin: 8px 0 0; font-size: 1rem; color: var(--ink-soft); }
.dr-counts b { color: var(--ink); margin-right: 3px; }
.dr-counts b + b { margin-left: 14px; }
.bdg { flex: none; display: inline-block; vertical-align: middle; }

/* profile */
.pf-cover { position: relative; height: 140px; background: radial-gradient(circle at 78% 10%, #1e3a8a 0%, transparent 60%), linear-gradient(135deg, #0b1b4d 0%, #1e3a8a 55%, #0f1d4d 100%); overflow: hidden; padding-top: env(safe-area-inset-top, 0px); }
.pf-cover::after { content: ""; position: absolute; right: -34px; top: 14px; width: 190px; height: 190px; background: url('/icons/pedia-icon.png') center/contain no-repeat; opacity: .13; filter: grayscale(1) brightness(2.2); }
.pf-cover button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15,23,42,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pf-cover button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-cover .b { left: 12px; } .pf-cover .s { right: 12px; }
.pf-top { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px; margin-top: -38px; position: relative; z-index: 2; }
.pf-av { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--card); background: linear-gradient(145deg, #1e3a8a, #0f1d4d); color: #fff; display: grid; place-items: center; font: 700 2rem var(--font-body); overflow: hidden; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-act { display: flex; gap: 8px; padding-bottom: 4px; }
.pf-act .ic, .pf-act .pill { height: 44px; border-radius: 9999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font: 700 .98rem var(--font-body); }
.pf-act .ic { width: 44px; } .pf-act .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-act .pill { padding: 0 20px; } .pf-act .pill.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pf-body { padding: 10px 16px 6px; }
.pf-name { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.pf-st { margin: 4px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.pf-bio { margin: 14px 0 0; font-size: 1.04rem; line-height: 1.55; color: var(--ink); }
.pf-line { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 1.02rem; }
.pf-line svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-counts { margin: 14px 0 0; font-size: 1.04rem; color: var(--ink-soft); }
.pf-counts b { color: var(--ink); margin-right: 3px; } .pf-counts b + b { margin-left: 16px; }
.pf-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--line); }
.pf-tabs button { flex: 1; height: 52px; border: 0; background: none; font: 600 1.02rem var(--font-body); color: var(--ink-soft); cursor: pointer; position: relative; }
.pf-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.pf-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 64px; height: 4px; border-radius: 4px; background: var(--blue); transform: translateX(-50%); }
.pf-compose { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.pf-compose .pf-mini { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, #1e3a8a, #0f1d4d); color: #fff; display: grid; place-items: center; font: 700 1rem var(--font-body); flex: none; }
.pf-compose span.t { font-size: 1.15rem; color: var(--ink-soft); }
.pf-about { padding: 8px 16px 24px; } .pf-about div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); } .pf-about span { color: var(--ink-soft); } .pf-about b { font-weight: 600; text-align: right; }
.pf-co { font: 500 .66rem var(--font-mono); letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; background: #e0e7ff; color: #3730a3; }

/* class reminders card */
.rm { padding: 20px; }
.rm-h { display: flex; gap: 14px; align-items: flex-start; }
.rm-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #e8eefc; display: grid; place-items: center; }
.rm-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rm-t { display: block; font: 600 1.15rem var(--font-display); color: var(--ink); }
.rm-h p { margin: 4px 0 0; font-size: .86rem; line-height: 1.4; color: var(--ink-soft); }
.rm-n { margin-top: 14px; }
.rm-on { display: inline-block; font: 500 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--mist); color: var(--ink-soft); border-radius: 9999px; padding: 6px 12px; }
.rm-sync { margin-top: 16px; padding: 14px; border-radius: 14px; background: #eff6ff; border: 1px solid rgba(37,99,235,.2); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rm-sync p { margin: 0; font-size: .86rem; color: var(--ink); flex: 1 1 180px; }
.rm-btn { border: 0; background: var(--blue); color: #fff; border-radius: 9999px; padding: 10px 16px; font: 500 .66rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.rm-btn.dark { background: var(--ink); color: var(--on-ink); border-radius: 12px; height: 46px; }
.rm-btn:disabled { opacity: .6; }
.rm-add { display: block; margin: 18px 0 12px; border: 0; background: none; padding: 0; font: 500 .7rem var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--blue); cursor: pointer; }
.rm-form { display: grid; gap: 10px; margin-bottom: 16px; }
.rm-form input, .rm-form select:not(.sel-native) { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; font: 400 1rem var(--font-body); }
.rm-list { margin-top: 4px; }
.rm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rm-row .dic svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.rm-row .dmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rm-row .dt { font-size: .95rem; color: var(--ink); } .rm-row .dl { font: 500 .66rem var(--font-mono); letter-spacing: .04em; color: var(--ink-soft); }
.rm-none { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); }

#pf-tab .feed { margin: 0; }
.fld .sel-btn { min-height: 52px; border-radius: 12px; font-size: 1.02rem; }
.pf-b { display: inline-flex; gap: 6px; align-items: center; }
.phd .bdg { margin-left: 4px; vertical-align: -3px; }
.nt .bdg { margin-left: 6px; vertical-align: -3px; }
.nt .bdg + small { margin-left: 8px; }

.emp.lock { padding: 56px 24px; } .emp .lk { font: 500 1.12rem var(--font-body); color: var(--ink); } .emp.lock small { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }

.rm-hd { flex: 1; min-width: 0; }
.rm-en { flex: none; max-width: 138px; white-space: normal; text-align: center; line-height: 1.4; padding: 9px 12px; }
.rm-h .rm-on { flex: none; align-self: flex-start; }
.rm-h { gap: 12px; }
.rm-hd .rm-t { font-size: 1.02rem; }
.rm-hd p { font-size: .8rem; }
.rm-en { max-width: 106px; font-size: .58rem; letter-spacing: .1em; padding: 9px 10px; }

/* =====================================================================
   Copied from the first app: the loader, the page-change mark, exact sizes, and the settings that keep the page steady
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"], select, input[type="checkbox"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; }

/* the Pedia mark assembling itself: black disc first, then the white stroke, then the blue stroke, then a slow breath */
.loader-mark { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 9999px; box-shadow: 0 10px 28px -8px rgba(15,23,42,.35); animation: pedHold 2.6s ease-in-out 2.7s infinite; }
.loader-mark .ped-circle { position: absolute; inset: 0; border-radius: 9999px; background: #0A0A0A; }
.loader-mark img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.loader-mark .ped-white { animation: pedIn 1.1s cubic-bezier(.22,.9,.24,1) .3s forwards; }
.loader-mark .ped-blue { animation: pedIn 1.1s cubic-bezier(.22,.9,.24,1) 1.5s forwards; }
@keyframes pedIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes pedHold { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes pedWordIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.loader-mark.is-route-mark { animation: none; }
.loader-mark.is-route-mark .ped-white, .loader-mark.is-route-mark .ped-blue { opacity: 1; animation: none; }
.boot-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; opacity: 0; animation: pedWordIn .5s ease-out 2.9s forwards; }
#boot-splash { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
  background: var(--splash);
  transition: opacity .4s ease; }
#boot-splash.hide { opacity: 0; pointer-events: none; }
#boot-splash .boot-caption { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; opacity: 0; animation: pedWordIn .5s ease-out 3.15s forwards; }
.route-transition { position: fixed; inset: 0; z-index: 100; background: var(--glass); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; animation: fadeInFast .15s ease-out; }
@keyframes fadeInFast { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loader-mark, .loader-mark img, .boot-word, #boot-splash .boot-caption { animation: none; opacity: 1; } }

/* top bar 52px, the Pedia mark 30px, avatar 34px, bottom bar 56px */
.pd-top { height: 52px; padding: 0 14px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pd-logo-btn { background: none; border: 0; padding: 6px; margin: -6px; cursor: pointer; display: flex; -webkit-user-select: none; user-select: none; }
.pd-logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; pointer-events: none; }
.pd-me { width: 34px; height: 34px; font-size: 14px; font-weight: 700; }
.pd-ibtn { width: 34px; height: 34px; }
.pd-ibtn svg { width: 23px; height: 23px; }
.pd-nav { height: calc(56px + env(safe-area-inset-bottom, 0px)); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pd-nav a { color: var(--ink-soft); } .pd-nav a[aria-current="page"] { color: var(--ink); }
.pd-nav svg { width: 25px; height: 25px; }
.pd-main { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 24px); }

/* floating P (Study Assistant): 56px black disc, 20px from the edge, 136px above the bottom */
.pd-fab { width: 56px; height: 56px; right: 20px; }
.pd-fab.p { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); background: #000; box-shadow: 0 10px 24px -6px rgba(0,0,0,.45); overflow: hidden; z-index: 40; }
.pd-fab.p svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.pd-fab.plus { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
body.pd-typing .pd-fab, body.pd-typing .pd-nav { display: none !important; }

/* side menu: exact sizes */
.pd-dhead .av { width: 52px; height: 52px; font-size: 20px; font-weight: 700; background: linear-gradient(135deg, #2563EB, #0F172A); }
.pd-dhead .x { width: 34px; height: 34px; top: 16px; right: 16px; }
.pd-dhead h2 { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; margin-top: 12px; font: 800 21px/1.2 var(--font-display); letter-spacing: 0; color: var(--ink); overflow-wrap: normal; }
.pd-dhead h2 #dr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pd-dhead h2 #dr-bdg { display: inline-flex; gap: 4px; flex: none; }
.pd-dhead p { margin-top: 2px; color: var(--ink-soft); font-size: 14.5px; }
.pd-dhead .dr-counts { display: flex; gap: 18px; margin-top: 12px; font-size: 14.5px; }
.pd-dhead .dr-counts b { color: var(--ink); margin-right: 3px; font-weight: 700; } .dr-counts b + b { margin-left: 0; }
.pd-dlist a, .pd-dlist summary, .pd-dlist button.row { padding: 12px 20px; gap: 16px; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.pd-dlist svg { width: 22px; height: 22px; }
.pd-dlist .sub a { padding: 9px 20px 9px 60px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pd-dlist a .pl { font: 600 12.5px var(--font-body); padding: 3px 10px; background: var(--mist); color: var(--ink-soft); }
.pd-dlist a .pl.ok { background: #F0FDF4; color: #15803D; } .pd-dlist a .pl.wait { background: #FFFBEB; color: #B45309; } .pd-dlist a .pl.bad { background: #FEE2E2; color: #991B1B; }
.pd-dlist a:hover, .pd-dlist summary:hover { background: var(--mist); }

/* profile: name 21px Sora 800, badges 20 and 18 */
.pf-name { font: 800 21px/1.2 var(--font-display); letter-spacing: 0; word-break: break-word; }
.pf-st { font-size: 14.5px; margin-top: 2px; }
.pf-bio { font-size: 15px; } .pf-line { font-size: 14.5px; } .pf-counts { font-size: 14.5px; }

/* "Open to ..." chip */
.opn { position: relative; margin-top: 8px; }
.opn-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 9999px; padding: 5px 12px; font: 600 13px var(--font-body); background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.opn-chip.off { background: var(--card); border: 1px dashed var(--line); color: var(--ink-soft); }
button.opn-chip { cursor: pointer; }
.opn-chip i { width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex: none; } .opn-chip.off i { background: #CBD5E1; }
.opn-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opn-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.18); padding: 6px; }
.opn-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 10px; font: 500 14px var(--font-body); color: var(--ink); cursor: pointer; text-align: left; }
.opn-menu button[aria-checked="true"] { background: var(--mist); font-weight: 700; }
.opn-menu button.clr { margin-top: 4px; border-top: 1px solid #F1F5F9; border-radius: 0 0 10px 10px; color: var(--ink-soft); font-size: 13px; }
.opn-veil { position: fixed; inset: 0; z-index: 4; }
.opn-err { color: #B91C1C; font-size: 12.5px; margin-top: 4px; }

/* the hint under the logo, shown once */
.logo-tip { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(92vw, 320px); background: #0F172A; color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.5; box-shadow: 0 12px 32px rgba(15,23,42,.35); cursor: pointer; }
.logo-tip b { display: block; margin-bottom: 4px; }

/* Study Assistant */
.sa { position: fixed; left: 12px; right: 12px; max-width: 420px; margin-left: auto; bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 10px); height: min(68vh, 520px); z-index: 39; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.sa[hidden] { display: none; }
.sa-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sa-h span { display: flex; align-items: center; gap: 10px; font: 600 14px var(--font-body); } .sa-h img { width: 28px; height: 28px; border-radius: 50%; }
.sa-h button { background: none; border: 0; color: #fff; cursor: pointer; width: 32px; height: 32px; } .sa-h svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sa-b { position: relative; flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.sa-b::before { content: ""; position: absolute; left: 50%; top: 50%; width: 256px; height: 256px; transform: translate(-50%, -50%); background: url('/icons/pedia-icon.png') center/contain no-repeat; opacity: .07; pointer-events: none; }
.sa-b > * { position: relative; }
.sa-hint { color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.6; margin: 0; }
.sa-m { max-width: 85%; border-radius: 12px; padding: 8px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.sa-m.u { margin-left: auto; background: #2563EB; border-color: #2563EB; }
.sa-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sa-f input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; border-radius: 9999px; padding: 8px 14px; font: 16px var(--font-body); outline: none; }
.sa-f input:focus { border-color: #2563EB; } .sa-f input::placeholder { color: rgba(255,255,255,.4); }
.sa-f button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #2563EB; color: #fff; cursor: pointer; display: grid; place-items: center; } .sa-f button:disabled { opacity: .5; }
.sa-f svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* settings, legal, reports, report sheet */
.set { padding: 18px 20px; margin-bottom: 16px; }
.set-h { margin: 0 0 10px; font: 700 .72rem var(--font-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.set-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.set-line:first-of-type { border-top: 0; } .set-line span { color: var(--ink-soft); } .set-line b { font-weight: 600; text-align: right; overflow-wrap: anywhere; } .set-line small { color: var(--ink-soft); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .98rem; cursor: pointer; }
.set-row:first-of-type { border-top: 0; } .set-row small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .8rem; }
.set-sel { flex: none; max-width: 52%; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 10px; font: inherit; font-size: .92rem; }
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: #cbd5e1; border: 0; cursor: pointer; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: left .15s; }
.sw:checked { background: #2563eb; } .sw:checked::after { left: 21px; }
.set-form label { display: block; margin: 12px 0 4px; font: 500 .66rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.set-form input, .set-form textarea, .set-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 12px; font: 400 1rem var(--font-body); }
.set-form button { margin-top: 12px; }
.set-none { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.set-link { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .98rem; } .set-link:first-of-type { border-top: 0; }
.set-out, .set-del { display: block; width: 100%; padding: 14px 0; border: 0; background: none; font: 600 1rem var(--font-body); cursor: pointer; text-align: left; }
.set-out { color: var(--ink); border-bottom: 1px solid var(--line); } .set-del { color: #b91c1c; }
.lg { padding: 20px; } .lg h2 { margin: 18px 0 6px; font: 700 1.25rem var(--font-display); } .lg h2:first-child { margin-top: 0; }
.lg h3 { margin: 16px 0 4px; font: 600 1rem var(--font-body); } .lg p, .lg li { font-size: .95rem; line-height: 1.6; color: var(--ink); } .lg ul { padding-left: 20px; margin: 6px 0; } .lg a { color: var(--blue); }
.rp-card { padding: 16px 20px; border-bottom: 1px solid var(--line); } .rp-card:last-child { border-bottom: 0; }
.rp-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .rp-who { margin: 6px 0 0; font-size: .92rem; } .rp-det { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .rp-acts a.dopen { text-decoration: none; display: inline-block; }
.rp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-size: 1rem; cursor: pointer; } .rp-opt input { width: 20px; height: 20px; accent-color: var(--blue); }
.mv-list button { display: block; width: 100%; text-align: left; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 500 1rem var(--font-body); color: var(--ink); cursor: pointer; } .mv-list button:last-child { border-bottom: 0; }
.set-form button { display: block; width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }
.set-form button:disabled { opacity: .6; }

.pf-compose .pf-mini { overflow: hidden; }
.pf-compose .pf-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* Pedia AI: the round P button only shows when the student chose it; Messages opens the chat full screen. */
.pd-fab[hidden] { display: none; }
.sa.full { left: 0; right: 0; top: 0; bottom: 0; max-width: none; margin: 0; height: auto; border-radius: 0; border: 0; z-index: 70; }
.sa.full .sa-h { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.sa.full .sa-f { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* Install button: a small pill above the bottom bar with a dismiss cross. */
.pd-inst { position: fixed; z-index: 31; left: max(12px, calc(50% - 308px)); bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 12px); display: flex; align-items: center; gap: 8px; }
.pd-inst[hidden] { display: none; }
.pd-inst-b { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 9999px; border: 0; background: #2563EB; color: #fff; font: 600 14px var(--font-body); cursor: pointer; box-shadow: 0 10px 24px -6px rgba(37,99,235,.65); }
.pd-inst-b svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-inst-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.ins-steps { margin: 0; padding-left: 20px; line-height: 1.8; color: var(--ink-soft); }

/* Pedia TV */
.tv-hd{display:flex;align-items:center;justify-content:space-between;padding:4px 0 6px}
.tv-add{height:34px;padding:0 14px;border-radius:9999px;border:1px solid var(--line);display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;font-size:14px}
.tv-h2{font-size:1.05rem;margin:18px 0 10px}
.tv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.tv-ti{font-size:16px}
.tv-card{display:flex;flex-direction:column;gap:6px;color:var(--ink);text-decoration:none}
.tv-th{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--mist)}
.tv-th img,.tv-row img{width:100%;height:100%;object-fit:cover;display:block}
.tv-play{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}
.tv-tag{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:6px;background:rgba(0,0,0,.7);color:#fff;font-size:11px;font-weight:700}
.tv-tag.live{background:#dc2626}
.tv-ti{font-weight:600;font-size:15px;line-height:1.25}
.tv-me{font-size:12.5px;color:var(--ink-soft)}
.tv-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin-bottom:4px;scrollbar-width:none}
.tv-cats::-webkit-scrollbar{display:none}
.tv-cats a{flex:none;height:32px;padding:0 14px;border-radius:9999px;border:1px solid var(--line);display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;font-size:14px}
.tv-cats a[aria-current="page"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
.tv-player{aspect-ratio:16/9;background:#000;width:100%}
.tv-player iframe{width:100%;height:100%;border:0;display:block}
.tv-soon{position:relative;width:100%;height:100%}
.tv-soon img{width:100%;height:100%;object-fit:cover;opacity:.35}
.tv-soon div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#fff;text-align:center;padding:16px}
.tv-wt{font-size:1.2rem;line-height:1.3;margin:0 0 6px}
.tv-row{display:flex;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.tv-row img{width:112px;height:63px;border-radius:8px;flex:none}
.tv-rb{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:14px}
.tv-rb span.muted{font-size:12.5px}
.tv-ra{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.tv-ra button{height:32px;padding:0 12px;border-radius:9999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.tv-ra button.danger{color:#dc2626;border-color:#dc2626}

/* Tutors' Room */
.rm-list{display:flex;flex-direction:column}
.rm-card{display:flex;gap:12px;padding:12px 16px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.rm-card .pav{flex:none;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:var(--mist)}
.rm-card .pav img,.rm-post .pav img,.rm-head .pav img{width:100%;height:100%;object-fit:cover}
.rm-b{display:flex;flex-direction:column;gap:2px;min-width:0}
.rm-t{font-weight:600;font-size:15px}
.rm-m{font-size:13px;color:var(--ink-soft)}
.rm-card.live{background:rgba(220,38,38,.07)}
.rm-gate{margin:20px 16px;padding:20px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:10px}
.rm-gate h2{margin:0;font-size:1.1rem}
.rm-head{display:flex;gap:12px;align-items:center}
.rm-head .pav,.rm-post .pav{flex:none;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:var(--mist)}
.rm-posts{display:flex;flex-direction:column}
.rm-post{display:flex;gap:10px;padding:10px 16px;border-top:1px solid var(--line)}
.rm-pb{min-width:0;flex:1;font-size:15px}
.rm-link{background:none;border:0;padding:0;color:var(--ink-soft);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline}
.rm-comp{display:flex;gap:8px;align-items:flex-end;padding:12px 16px 24px;border-top:1px solid var(--line)}
.rm-comp textarea{flex:1;min-height:42px;max-height:120px;border-radius:14px;padding:10px 12px;font:inherit;resize:vertical}
.rmb{display:flex;align-items:center;justify-content:center;width:100%;height:46px;padding:0 20px;border-radius:9999px;border:1px solid var(--blue);background:var(--blue);color:#fff;font:600 15px var(--font-body,inherit);text-decoration:none;cursor:pointer}
.rmb:disabled{opacity:.6}
.rm-comp .rmb{height:42px;padding:0 18px}

/* Tutors' Room chat */
.rm-chat{display:flex;flex-direction:column;gap:8px;padding:6px 12px 12px}
.rm-msg{display:flex;align-items:flex-end;gap:8px;max-width:100%}
.rm-msg.grp{margin-top:-5px}
.rm-msg.me{justify-content:flex-end}
.rm-pic{width:34px;flex:none;display:inline-block}
.rm-pic .pav{display:inline-flex}
.rm-bub{position:relative;max-width:78%;padding:6px 10px 5px;border-radius:14px;border-bottom-left-radius:4px;background:var(--mist);font-size:15px;line-height:1.35}
.rm-msg.me .rm-bub{background:var(--blue-deep,#1e3a8a);color:#fff;border-bottom-left-radius:14px;border-bottom-right-radius:4px}
.rm-nm{font-size:12.5px;font-weight:700;margin-bottom:1px}
.rm-nm a{color:var(--blue);text-decoration:none}
.rm-bub small{float:right;margin:7px 0 -2px 10px;font-size:11px;opacity:.65}
.rm-bub::after{content:"";display:block;clear:both}
.rm-bub .rm-link{display:block;clear:both;margin-top:2px;font-size:11.5px;opacity:.7;color:inherit}
.rm-msg .pav{flex:none;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:var(--mist);border:1px solid var(--line)}
.rm-msg .pav img{width:100%;height:100%;object-fit:cover}

.tv-th video,.tv-rt video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.tv-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#111;color:#fff;font-weight:700}
.tv-rt{width:112px;height:63px;border-radius:8px;overflow:hidden;flex:none;display:block}
.tv-rt img{width:100%;height:100%}
.tv-player video{width:100%;height:100%;display:block;background:#000;object-fit:contain}
.tv-tt{text-decoration:none}
.tv-tt:disabled{opacity:.6;cursor:not-allowed}
.tv-tt.is-live{background:#dc2626;border-color:#dc2626}

/* In-app PDF viewer: no selecting, no printing */
.pdv{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;background:#1e293b;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.pdv-top{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#0f172a;color:#fff}
.pdv-top b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.pdv-n{font-size:12.5px;opacity:.75}
.pdv-x{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:15px;cursor:pointer}
.pdv-body{flex:1;overflow-y:auto;padding:10px 0 40px}
.pdv-pg{max-width:900px;margin:0 auto 10px;background:#fff;width:calc(100% - 16px)}
.pdv-pg canvas{display:block;pointer-events:none}
.pdv-msg{color:#fff;text-align:center;padding:40px 16px}
body.pdv-open{overflow:hidden}
@media print{body *{display:none!important}}

/* Tutors' Room classes */
.rm-cl{display:flex;flex-direction:column;gap:12px;padding:0 16px}
.rm-class{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card)}
.rm-ch{display:flex;gap:12px;align-items:flex-start}
.rm-ch .rm-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rm-class .rm-t{font-weight:700;font-size:15px;line-height:1.25;color:var(--ink)}
.rm-class .rm-m{font-size:12.5px;color:var(--ink-soft)}
.rm-price{flex:none;padding:4px 10px;border-radius:9999px;background:var(--ink);color:var(--on-ink);font-size:12.5px;font-weight:700}
.rm-price.free{background:#16a34a;color:#fff}
.rm-bw{margin-top:12px}
.rm-bar{display:block;height:8px;border-radius:9999px;background:var(--mist);overflow:hidden}
.rm-bar i{display:block;height:100%;border-radius:9999px;background:var(--blue);transition:width .4s}
.rm-bar i.full{background:#dc2626}
.rm-bar-t{display:block;margin-top:6px;font-size:12.5px;color:var(--ink-soft)}
.rm-ca{margin-top:12px}
.rm-cb{height:44px}
.rm-cb:disabled{opacity:.6}
.rm-ce{display:block;margin-top:8px}
.rm-sk{margin-top:8px;height:38px;width:100%;border-radius:9999px;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.rm-sk:disabled{opacity:.6}
.lvh { margin: 0; padding: 14px 20px 6px; font: 700 12px/1 inherit; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--bg, transparent); border-bottom: 1px solid var(--line); }

.tv-news{display:flex;align-items:stretch;margin:4px 0 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}
.tv-nb{flex:none;display:flex;align-items:center;padding:0 12px;background:#d7261e;color:#fff;font-weight:800;font-size:12px;letter-spacing:.08em}
.tv-nw{flex:1;min-width:0;overflow:hidden;white-space:nowrap}
.tv-nt{display:inline-flex;min-width:max-content;align-items:center;padding:8px 0;animation:tvnews var(--d,40s) linear infinite}
.tv-ni{display:inline-flex;align-items:center;gap:8px;margin-right:2.5rem;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;text-align:left}
.tv-ni::before{content:"";width:7px;height:7px;border-radius:50%;background:#d7261e;flex:none}
.tv-ni img{width:34px;height:34px;border-radius:8px;object-fit:cover;flex:none}
.tv-nw:hover .tv-nt,.tv-nw:active .tv-nt{animation-play-state:paused}
@keyframes tvnews{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.tv-nw{overflow-x:auto}.tv-nt{animation:none}.tv-nt>span[aria-hidden]{display:none}}

/* Pedia TV: one feed, each post plays in place */
.tv-feed{display:flex;flex-direction:column;gap:22px;max-width:560px;margin:0 auto 8px}
.tv-post{display:flex;flex-direction:column;gap:8px}
.tv-pl{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
.tv-pl.tk{aspect-ratio:4/5}
.tv-pl iframe,.tv-pl video{width:100%;height:100%;border:0;display:block;object-fit:contain;background:#000}
.tv-st{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer}
.tv-st img{width:100%;height:100%;object-fit:cover;display:block}
.tv-play.big{right:auto;bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;font-size:22px;background:rgba(0,0,0,.65)}
.tv-pb{display:flex;flex-direction:column;gap:4px;padding:0 2px}
.tv-pt{font-size:16px;line-height:1.3;margin:0;font-weight:600}
.tv-pd{margin:4px 0 0;font-size:14px;white-space:pre-wrap;color:var(--ink)}
.tv-pb .tv-tt{align-self:flex-start;margin-top:8px}

/* live-TV overlay on a playing live video */
.tv-player{position:relative}
.tv-bug{position:absolute;top:8px;right:8px;z-index:2;padding:4px 10px;border-radius:6px;background:rgba(215,38,30,.94);color:#fff;font-weight:800;font-size:12px;letter-spacing:.02em;pointer-events:none}
.tv-lt{position:absolute;left:0;right:0;bottom:40px;z-index:2;display:flex;align-items:stretch;background:rgba(10,15,40,.9);color:#fff;pointer-events:none;overflow:hidden}
.tv-lt .tv-nb{font-size:11px;padding:0 9px}
.tv-lt .tv-nt{padding:5px 0}
.tv-lt .tv-ni{color:#fff;font-size:13px;pointer-events:none}
.tv-lt .tv-ni img{display:none}

/* news line sits right under the video, fitted and tappable */
.tv-pv{border-radius:12px;overflow:hidden;background:#000}
.tv-pv .tv-pl{border-radius:0}
.tv-lt{position:static;bottom:auto;display:flex;pointer-events:auto;border-radius:0;background:#0b1230;color:#fff;margin:0;border:0}
.tv-lt .tv-nb{font-size:11px;padding:0 10px}
.tv-lt .tv-nt{padding:7px 0}
.tv-lt .tv-ni{color:#fff;font-size:13px;pointer-events:auto;cursor:pointer}
.tv-lt .tv-ni img{display:none}

/* Pedia TV: actions and comments */
.tv-ac{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.tv-ac[hidden]{display:none}
.tv-vw{font-size:13px;color:var(--ink-soft);margin-right:auto}
.tv-ac button{height:34px;padding:0 12px;border-radius:9999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:14px;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.tv-ac button[aria-pressed="true"]{color:#dc2626;border-color:#dc2626}
.cm-l{max-height:52vh;overflow-y:auto;padding:4px 0}
.cm{display:flex;gap:10px;padding:8px 0}
.cm.re{padding-left:0;margin-top:2px}
.cm-av{flex:none;width:34px;height:34px;border-radius:50%;background:var(--mist);display:flex;align-items:center;justify-content:center;font-weight:700;overflow:hidden}
.cm.re .cm-av{width:26px;height:26px;font-size:12px}
.cm-av img{width:100%;height:100%;object-fit:cover}
.cm-b{min-width:0;flex:1;font-size:14px}
.cm-b p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.cm-a{display:flex;gap:14px;margin-top:2px}
.cm-a button,.cm-r button{background:none;border:0;padding:4px 0;font:inherit;font-size:13px;color:var(--ink-soft);cursor:pointer}
.cm-r{font-size:13px;margin:6px 0 0;color:var(--ink-soft)}
.cm-r[hidden]{display:none}
.cm-f{display:flex;gap:8px;margin-top:10px}
.cm-f input{flex:1;min-width:0;height:42px;border-radius:9999px;border:1px solid var(--line);padding:0 14px;font:inherit;font-size:15px;background:var(--card);color:var(--ink)}

/* Pedia TV: organised post, YouTube-style */
.tv-feed{gap:0}
.tv-post{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line);gap:0}
.tv-post:last-child{border-bottom:0}
.tv-pb{gap:0;padding:12px 2px 0}
.tv-pt{font-size:17px;font-weight:700;line-height:1.3;margin:0}
.tv-pb .tv-me{margin-top:4px;font-size:13px;color:var(--ink-soft)}
.tv-ac{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:12px;gap:8px}
.tv-ac::-webkit-scrollbar{display:none}
.tv-ac button{flex:none;height:36px;padding:0 14px;background:var(--mist);border-color:transparent;font-weight:600}
.tv-ac button[aria-pressed="true"]{background:rgba(220,38,38,.12);border-color:transparent}
.tv-desc{margin-top:12px;padding:10px 12px;border-radius:12px;background:var(--mist);font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;color:var(--ink)}
.tv-desc.open{display:block;-webkit-line-clamp:unset}
.tv-wt{font-size:17px;font-weight:700}
/* comments */
.cm-top{font-weight:700;font-size:15px;padding:2px 0 8px}
.cm-l{max-height:46vh;overflow-y:auto;padding:0;overscroll-behavior:contain}
.cm{display:flex;gap:10px;padding:10px 0}
.cm.re{padding:8px 0 0}
.cm-av{flex:none;width:36px;height:36px;border-radius:50%;background:var(--mist);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;overflow:hidden}
.cm.re .cm-av{width:26px;height:26px;font-size:11px}
.cm-av img{width:100%;height:100%;object-fit:cover;display:block}
.cm-b{min-width:0;flex:1}
.cm-h{display:flex;gap:8px;align-items:baseline;font-size:13px}
.cm-h b{font-size:13px}
.cm-b>p{margin:3px 0 0;font-size:15px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.cm-a{display:flex;gap:16px;margin-top:2px}
.cm-a button,.cm-more,.cm-r button{background:none;border:0;padding:6px 0;font:inherit;font-size:13px;font-weight:600;color:var(--ink-soft);cursor:pointer;min-height:0}
.cm-more{color:var(--blue-text,#2563eb);display:block}
.cm-rp[hidden]{display:none}
.cm-empty{text-align:center;color:var(--ink-soft);padding:28px 0;font-size:14px}
.cm-comp{border-top:1px solid var(--line);margin-top:8px;padding-top:10px}
.cm-r{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--ink-soft);margin:0 0 8px;padding:6px 10px;background:var(--mist);border-radius:10px}
.cm-r[hidden]{display:none}
.cm-row{display:flex;align-items:flex-end;gap:8px}
.cm-row textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);border-radius:20px;padding:9px 14px;font:inherit;font-size:15px;line-height:1.35;max-height:110px;background:var(--paper);color:var(--ink)}
.cm-send{flex:none;height:38px;padding:0 18px;border-radius:9999px;border:0;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.cm-send:disabled{opacity:.45}

/* payments and receipts */
.pay-pg{padding:8px 16px 0}
.pay-sum{display:flex;flex-direction:column;gap:2px;padding:16px;border-radius:14px;background:var(--mist);margin-bottom:12px}
.pay-sum b{font-size:1.5rem;font-family:var(--font-display)}
.pay-l{display:flex;flex-direction:column}
.pay-i{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.pay-b{display:flex;flex-direction:column;gap:3px;min-width:0}
.pay-t{font-weight:600;font-size:15px}
.pay-m{font-size:12.5px;color:var(--ink-soft);overflow-wrap:anywhere}
.pay-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.pay-s{font-size:12px;font-weight:700;padding:2px 9px;border-radius:9999px;background:var(--mist)}
.pay-s.ok{background:rgba(22,163,74,.14);color:#15803d}
.pay-s.wait{background:rgba(217,119,6,.14);color:#b45309}
.pay-s.bad{background:rgba(220,38,38,.12);color:#b91c1c}
.pay-s.info{background:rgba(37,99,235,.12);color:#1d4ed8}

/* side menu: wallet card and section headings */
.dr-wallet{display:flex;align-items:center;gap:12px;margin:4px 12px 8px;padding:12px 14px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;text-decoration:none}
.dr-wallet .dr-wc{font-size:1.5rem}.dr-wallet .dr-wt{flex:1;display:flex;flex-direction:column}.dr-wallet small{opacity:.85;font-size:12px}.dr-wallet b{font:700 1.15rem var(--font-display)}
.dr-wallet em{font-style:normal;font-weight:700;background:rgba(255,255,255,.22);border-radius:9999px;padding:6px 14px;font-size:.88rem}
.pd-dlist .dr-h{margin:14px 20px 4px;font:600 .72rem var(--font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}

.dbtn[data-off][aria-pressed="true"]{color:#16a34a}.dbtn[data-off][aria-pressed="true"] svg{fill:none}

/* Class discussion */
.cc-q{border-left:3px solid var(--blue);background:rgba(0,0,0,.06);border-radius:6px;padding:3px 8px;margin:2px 0 4px;font-size:13px;opacity:.9}.cc-q b{display:block;font-size:12px}
.rm-msg.me .cc-q{background:rgba(255,255,255,.18);border-color:#fff}
.cc-t{display:flex;gap:10px;flex-wrap:wrap;margin-top:2px;clear:both}.cc-t .rm-link{display:inline;font-size:11.5px;opacity:.7;color:inherit}
.cc-rp{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 16px;border-top:1px solid var(--line);background:var(--mist);font-size:13px}
.rm-dc{display:flex;align-items:center;justify-content:center;text-decoration:none}
.rm-note{font-size:13px;margin:10px 0 0;line-height:1.4}
.rm-ro{max-height:38vh;overflow:auto;border:1px solid var(--line);border-radius:12px;margin:0 0 12px}.rm-ro>div{display:flex;gap:10px;align-items:baseline;padding:8px 12px;border-top:1px solid var(--line)}.rm-ro>div:first-child{border-top:0}.rm-ro span{color:var(--ink-soft);min-width:22px}.rm-ro small{color:var(--ink-soft);margin-left:auto}
.rm-tips{font-size:14px;line-height:1.45;background:var(--mist);border-radius:12px;padding:12px 14px}.rm-tips ol{margin:6px 0 0;padding-left:20px}.rm-tips li{margin:4px 0}

/* ===== Pedia TV look: navy, white, Pedia blue, red caps ===== */
.tvlogo{display:inline-flex;align-items:center;height:30px;border-radius:999px;background:#07080f;box-shadow:0 2px 10px rgba(0,0,0,.45);overflow:hidden;vertical-align:middle}
.tvlogo img{width:30px;height:30px;display:block;flex:none}
.tvlogo b{position:relative;display:flex;align-items:center;height:100%;padding:0 12px 0 14px;margin-left:-6px;background:#003cfd;color:#fff;font-weight:900;font-style:italic;font-size:14px;letter-spacing:.06em;clip-path:polygon(10px 0,100% 0,100% 100%,0 100%)}
.tvlogo.big{height:40px}.tvlogo.big img{width:40px;height:40px}.tvlogo.big b{font-size:19px;padding:0 15px 0 18px;margin-left:-8px}
.tv-wm{display:inline-flex;align-items:center;gap:10px}
.tv-wm .tw{font-weight:900;font-style:italic;font-size:22px;letter-spacing:-.01em}.tv-wm .tw i{font-style:italic;color:#003cfd}
.tv-bug{position:absolute;top:8px;right:8px;z-index:3;padding:0;background:none;border-radius:0;pointer-events:none}
.tv-player,.tv-pl{position:relative}

/* the news line sits on the bottom edge of the video, like a TV channel */
.tv-player .tv-lt,.tv-pl .tv-lt{position:absolute;left:0;right:0;bottom:0;z-index:2;height:28px;display:flex;align-items:center;margin:0;border:0;border-radius:0;pointer-events:none;overflow:hidden;
  background:linear-gradient(#10206b,#0a1550);border-top:1px solid rgba(255,255,255,.35);border-bottom:1px solid #050a2c}
.tv-lt::before,.tv-lt::after{content:"";position:absolute;top:0;bottom:0;width:9px;background:#d7261e;z-index:1}
.tv-lt::before{left:0}.tv-lt::after{right:0}
.tv-lt .tv-nb{display:none}
.tv-lt .tv-nw{margin:0 11px;flex:1}
.tv-lt .tv-nt{padding:0}
.tv-lt .tv-ni{pointer-events:none;color:#fff;font-family:Georgia,"Times New Roman",serif;font-weight:700;font-style:italic;font-size:13px;letter-spacing:.02em;text-transform:uppercase;margin-right:2.2rem}
.tv-lt .tv-ni::before{width:6px;height:6px;border-radius:1px;background:#d7261e;transform:rotate(45deg)}
.tv-lt .tv-ni img{display:none}

/* lower-third card: small tab, big name bar with the Pedia logo bubble, small caption */

.tv-pop{position:absolute;left:8px;top:36px;z-index:3;display:flex;align-items:center;gap:6px;max-width:min(60%,230px);padding:3px 4px 3px 3px;background:rgba(10,21,80,.88);color:#fff;border-radius:999px;transform:translateY(-8px);opacity:0;pointer-events:none;transition:transform .35s,opacity .3s}
.tv-pop.on{transform:none;opacity:1;pointer-events:auto}
.tv-pop .pp-i{width:24px;height:24px;border-radius:50%;overflow:hidden;background:#07080f;flex:none;display:block}
.tv-pop .pp-i img{width:100%;height:100%;display:block}
.tv-pop .pp-t{min-width:0;display:flex;flex-direction:column;line-height:1.15}
.tv-pop .pp-t b{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-pop .pp-t small{font-size:10px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-pop .pp-x{flex:none;width:22px;height:22px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:14px;line-height:1;cursor:pointer;padding:0}
/* top-left icons */
.tv-soc{position:absolute;left:8px;top:8px;z-index:3;display:flex;align-items:center;gap:6px;pointer-events:none}
.tv-soc i{width:26px;height:19px;border-radius:5px;background:#e62117;display:block;position:relative;font-style:normal;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.tv-soc i.y::after{content:"";position:absolute;left:10px;top:5px;border-left:8px solid #fff;border-top:4px solid transparent;border-bottom:4px solid transparent}
.tv-soc em{width:1px;height:18px;background:rgba(255,255,255,.55)}
.tv-soc u{text-decoration:none;background:#fff;color:#c4140a;font-size:8px;font-weight:900;letter-spacing:.06em;padding:3px 7px;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.tv-soc i.t{width:20px;height:20px;border-radius:50%;background:#111;color:#fff;font-size:12px;line-height:20px;text-align:center;box-shadow:1px 1px 0 #25f4ee,-1px -1px 0 #fe2c55}
@media (prefers-reduced-motion:reduce){.tv-pop{transition:none}}

/* full screen button and full-screen player */
.tv-fs{position:absolute;right:8px;bottom:36px;z-index:4;width:34px;height:34px;border-radius:8px;border:0;background:rgba(7,8,15,.75);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tv-pl:fullscreen,.tv-player:fullscreen{aspect-ratio:auto;width:100vw;height:100vh;border-radius:0;background:#000}
.tv-pl:fullscreen iframe,.tv-player:fullscreen iframe{width:100%;height:100%}
.tv-pl:-webkit-full-screen,.tv-player:-webkit-full-screen{aspect-ratio:auto;width:100vw;height:100vh;border-radius:0;background:#000}

/* TikTok entries without a video box */
.tv-tkrow{flex-direction:row;align-items:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.tv-tkic{flex:none;width:44px;height:44px;border-radius:12px;background:#111;color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;box-shadow:2px 2px 0 #25f4ee,-2px -2px 0 #fe2c55}
.tv-tkrow .tv-pb{flex:1;min-width:0}
.tv-phl{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(circle at 30% 20%,#1b3aa8,#0a1550 55%,#07080f);color:#fff}
.tv-phl b{font-size:15px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}

/* Pedia TV: square corners, a proper action bar under the video, and a TV-style news strip */
.tv-pv,.tv-pl,.tv-pl iframe,.tv-pl video,.tv-st,.tv-st img,.tv-news,.tv-soon{border-radius:0}
.tv-news{border:0;border-top:1px solid rgba(255,255,255,.3);border-bottom:1px solid #050a2c;background:linear-gradient(#10206b,#0a1550);margin:0 0 14px}
.tv-news .tv-nb{clip-path:none;background:#d7261e;margin:0;padding:0 14px;font-style:normal;font-weight:900;letter-spacing:.14em}
.tv-news .tv-nt{padding:9px 0}
.tv-news .tv-ni{color:#fff;font-family:Georgia,"Times New Roman",serif;font-weight:700;font-style:italic;font-size:14px;text-transform:uppercase;letter-spacing:.02em}
.tv-news .tv-ni::before{border-radius:1px;background:#d7261e;transform:rotate(45deg)}
.tv-ac.tv-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:0;overflow:visible;border:1px solid var(--line);border-top:0;background:var(--card)}
.tv-ac.tv-bar[hidden]{display:none}
.tv-ac.tv-bar button{height:44px;padding:0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;font-size:14px;font-weight:700;justify-content:center;gap:7px;flex:none}
.tv-ac.tv-bar button:last-child{border-right:0}
.tv-ac.tv-bar button[aria-pressed="true"]{background:rgba(220,38,38,.1);color:#dc2626}
.tv-ac.tv-bar button span:first-child{font-size:17px}
.tv-post .tv-pb{padding:12px 4px 0}
.tv-bug{opacity:0;transform:translateY(-10px) scale(.96);transition:opacity .45s,transform .45s}
.tv-bug.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.tv-bug{transition:none}}

/* Pedia TV news section: top story and latest stories */
.nw{margin:0 0 18px}
.nw-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 0 8px;border-bottom:2px solid #0a1550;margin-bottom:10px}
.nw-h h2{margin:0;display:flex;align-items:center;gap:8px;font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.nw-sq{width:12px;height:12px;background:#d7261e;display:inline-block}
.nw-d{font-size:12px;color:var(--muted,#8a8f9c)}
.nw-top{position:relative;display:block;aspect-ratio:16/9;background:#0a1550;overflow:hidden;cursor:pointer;border-radius:0}
.nw-top>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.nw-top.nopic{background:radial-gradient(circle at 30% 20%,#1b3aa8,#0a1550 55%,#07080f)}
.nw-lg{position:absolute;top:12px;right:12px}
.nw-tc{position:absolute;left:0;right:0;bottom:0;padding:34px 14px 12px;background:linear-gradient(transparent,rgba(5,8,30,.92) 70%);color:#fff}
.nw-tag{display:inline-block;background:#d7261e;color:#fff;font-size:10px;font-weight:900;letter-spacing:.14em;padding:3px 8px;margin-bottom:6px}
.nw-top h3{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.25;font-weight:700}
.nw-m{font-size:12px;opacity:.8}
.nw-l{list-style:none;margin:0;padding:0}
.nw-i{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}
.nw-ic{flex:1;min-width:0}
.nw-i h4{margin:0 0 4px;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.3;font-weight:700}
.nw-i .nw-m{color:var(--muted,#8a8f9c);opacity:1}
.nw-th{flex:none;width:96px;height:72px;overflow:hidden;background:var(--mist)}
.nw-th img{width:100%;height:100%;object-fit:cover;display:block}
.nw-all{display:block;text-align:center;padding:12px;font-weight:700;color:#003cfd;border-bottom:1px solid var(--line)}

/* ===== Pedia AI chat: your messages in a bubble, replies as plain text, one rounded message box ===== */
.sa{background:#0c0d12;font-family:var(--font-body,inherit)}
.sa svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sa-h{padding:10px 10px 10px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.sa-h .sa-t{display:flex;align-items:center;gap:10px;font:700 15px var(--font-body,inherit)}
.sa-hb{display:flex;gap:2px}
.sa-h button,.sa-hb button{width:36px;height:36px;border-radius:10px;background:none;border:0;color:rgba(255,255,255,.85);cursor:pointer;display:grid;place-items:center}
.sa-hb button:active{background:rgba(255,255,255,.1)}
.sa-b{padding:16px 14px;gap:18px}
.sa-b::before{content:none}
.sa.full .sa-b>*{width:100%;max-width:720px;margin-left:auto;margin-right:auto}
.sa-empty{margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px}
.sa-empty img{width:56px;height:56px;border-radius:50%}
.sa-empty h2{margin:6px 0 0;font:600 22px/1.3 var(--font-body,inherit)}
.sa-empty p{margin:0;color:rgba(255,255,255,.6);font-size:14px;line-height:1.55;max-width:320px}
.sa-sug{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.sa-sug button{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:9px 14px;font:14px var(--font-body,inherit);cursor:pointer}
.sa-u{display:flex;justify-content:flex-end}
.sa-u div{max-width:86%;background:#1d2130;border-radius:18px 18px 4px 18px;padding:10px 14px;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.sa-a{display:flex;gap:10px;align-items:flex-start}
.sa-a>img{flex:none;width:26px;height:26px;border-radius:50%;margin-top:2px}
.sa-x{flex:1;min-width:0;font-size:15px;line-height:1.65;color:#eef0f6;overflow-wrap:anywhere}
.sa-x p{margin:0 0 10px}.sa-x p:last-child{margin-bottom:0}
.sa-x ul,.sa-x ol{margin:0 0 10px;padding-left:22px}.sa-x li{margin:3px 0}
.sa-x h4{margin:14px 0 6px;font-size:15px;font-weight:700}.sa-x h4:first-child{margin-top:0}
.sa-x code{background:rgba(255,255,255,.1);padding:1px 5px;border-radius:5px;font-size:13px}
.sa-x pre{margin:0 0 10px;padding:10px 12px;background:#14151c;border-radius:10px;overflow-x:auto}.sa-x pre code{background:none;padding:0}
.sa-x.err{color:#ffb4a8}
.sa-x a{color:#7fa6ff;font-weight:600}
.sa-cp{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:4px 8px;border:0;border-radius:8px;background:none;color:rgba(255,255,255,.55);font:12px var(--font-body,inherit);cursor:pointer}
.sa-cp svg{width:14px;height:14px}
.sa-dots{display:inline-flex;gap:5px;padding:8px 0}
.sa-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.55);animation:sadot 1.2s infinite ease-in-out}
.sa-dots i:nth-child(2){animation-delay:.18s}.sa-dots i:nth-child(3){animation-delay:.36s}
@keyframes sadot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.sa-f{display:block;padding:6px 12px 12px;border-top:0}
.sa.full .sa-f{max-width:720px;width:100%;margin:0 auto;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.sa-box{background:#15161d;border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:10px 10px 8px 14px}
.sa-box:focus-within{border-color:#2563EB}
.sa-box textarea{display:block;width:100%;background:transparent;border:0;outline:0;color:#fff;font:16px/1.5 var(--font-body,inherit);resize:none;max-height:140px;padding:0;min-height:24px}
.sa-box textarea::placeholder{color:rgba(255,255,255,.4)}
.sa-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.sa-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 9px;border-radius:999px;border:0;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font:12px var(--font-body,inherit);cursor:pointer;width:auto}
.sa-chip svg{width:14px;height:14px}
.sa-send{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:#2563EB;color:#fff;display:grid;place-items:center;cursor:pointer}
.sa-send:disabled{opacity:.4}
.sa-s h3{margin:14px 0 8px;font-size:14px}.sa-s h3:first-child{margin-top:0}
.sa-o{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;margin:8px 0;cursor:pointer}
.sa-o input{margin-top:3px;width:18px;height:18px;flex:none}
.sa-o b{display:block;font-size:15px}.sa-o small{display:block;color:var(--muted,#8a8f9c);font-size:13px;line-height:1.45;margin-top:2px}
.sa-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sa-seg input{position:absolute;opacity:0;pointer-events:none}
.sa-seg span{display:block;text-align:center;padding:10px;border:1px solid var(--line);border-radius:999px;font-weight:600;cursor:pointer}
.sa-seg input:checked+span{background:#2563EB;border-color:#2563EB;color:#fff}
.sa-f .sa-chip{width:auto;height:32px;border-radius:999px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);display:inline-flex;align-items:center;gap:6px;padding:0 12px 0 9px}
.sa-f .sa-send{width:36px;height:36px;border-radius:50%;background:#2563EB;display:grid}

/* Hide switched-off features (data-fx lists them) */
html[data-fx~="chat"] a[href^="/messages"],html[data-fx~="pdf"] a[href^="/library"],html[data-fx~="ai"] #pd-ai,
html[data-fx~="coin_buy"] .dr-wallet,html[data-fx~="coin_buy"] a[href^="/coins"],html[data-fx~="tv_live"] a[href="/home?tab=tv"],
html[data-fx~="stories"] a[href="/home?tab=stories"],html[data-fx~="business"] a[href^="/business"],html[data-fx~="cv"] a[href^="/cv"],
html[data-fx~="tutors"] a[href^="/room"],html[data-fx~="registration"] a[href^="/premium"],html[data-fx~="registration"] a[href^="/upgrade"],
html[data-fx~="posting"] #pd-new,html[data-fx~="video"] a[href^="/story"]{display:none!important}
/* Launch countdown card */
.lc{margin:12px 16px;padding:18px 16px;border-radius:16px;background:linear-gradient(135deg,#0a1550,#003cfd);color:#fff;text-align:center}
.lc-t{display:block;font-size:18px}.lc-m{margin:6px 0 14px;font-size:14px;line-height:1.45;opacity:.9}
.lc-n{display:flex;justify-content:center;gap:10px}.lc-n span{display:flex;flex-direction:column;align-items:center;min-width:60px;padding:10px 6px;border-radius:12px;background:rgba(255,255,255,.14);font-size:12px}
.lc-n i{font-style:normal;font-size:24px;font-weight:800;line-height:1.1}

.vs-load{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:vsspin .8s linear infinite;display:none;pointer-events:none;z-index:3}
@keyframes vsspin{to{transform:rotate(360deg)}}
.vs-snd{position:absolute;left:50%;bottom:140px;transform:translateX(-50%);z-index:5;padding:8px 16px;border:0;border-radius:9999px;background:rgba(0,0,0,.7);color:#fff;font-weight:700}

.spx-m{position:relative}.spx-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;border-radius:inherit;background:#000}.spx-live .spx-play{display:none}.spx-m .spx-cta{z-index:2}

/* Shop card with product tiles */
.shopc-a{display:block;color:inherit;text-decoration:none}
.shopc-prods{display:flex;gap:10px;overflow-x:auto;padding:4px 12px 14px;scrollbar-width:none;scroll-snap-type:x proximity}.shopc-prods::-webkit-scrollbar{display:none}
.pt{position:relative;flex:none;width:112px;scroll-snap-align:start;display:flex;flex-direction:column}
.pt-i{display:block;aspect-ratio:4/5;border-radius:12px;overflow:hidden;background:var(--line)}.pt-i img{width:100%;height:100%;object-fit:cover;display:block}.pt-i span{display:block;width:100%;height:100%}
.pt-n{margin-top:6px;font-size:13px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pt-p{font-size:13px;color:var(--ink-soft);margin-top:2px}
.pt-add{position:absolute;right:6px;top:calc(112px * 5 / 4 - 38px);width:32px;height:32px;border-radius:50%;border:0;background:#fff;color:#0f172a;font-size:20px;font-weight:700;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer}
/* Smaller shop bar on advert stories */
.vs-ad{padding:5px 6px;gap:8px;border-radius:12px;margin-bottom:8px;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.vs-adl{width:32px;height:32px;border-radius:9px;font-size:14px}
.vs-adt b{font-size:13px;line-height:1.2}.vs-adt small{font-size:11px;line-height:1.2}
.vs-adb{padding:6px 11px;font-size:12px}
/* Advert story bar: a short pill, not full width */
.vs-ad{width:auto!important;max-width:260px;display:inline-flex;margin-left:12px;padding:4px 5px 4px 4px;gap:7px;border-radius:9999px}
.vs-adl{width:28px;height:28px;border-radius:50%}
.vs-adt{flex:0 1 auto;max-width:120px}
.vs-adb{padding:5px 10px;font-size:11px}
html[data-fx~="live_chat"] .lv-fx{display:none!important}
/* Live now cards */
.lvn{margin:10px 0 4px;padding:0 16px}.lvn-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.lvn-go{border:0;border-radius:9999px;background:#d7261e;color:#fff;font-weight:800;font-size:13px;padding:7px 14px}
.lvn-s{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none}.lvn-s::-webkit-scrollbar{display:none}
.lvc{flex:none;width:84px;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:inherit;text-align:center}
.lvc-av{position:relative;width:68px;height:68px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#d7261e,#ff7a18);display:grid;place-items:center;font-weight:800}
.lvc-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid var(--card,#000)}
.lvc-on{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);background:#d7261e;color:#fff;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.5px;padding:2px 6px;border-radius:5px}
.lvc b{font-size:12px;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}.lvc small{font-size:11px;color:var(--ink-soft);max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Live room */
.lv{position:fixed;inset:0;z-index:60;background:#000;color:#fff;display:flex;flex-direction:column;overflow:hidden}
.lv-bg{position:absolute;inset:-20px;background:#111 center/cover;filter:blur(28px) brightness(.55);transform:scale(1.1)}
.lv-top{position:relative;z-index:2;display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 8px}
.lv-back{border:0;background:none;color:#fff;font-size:24px;padding:0 4px}
.lv-hav{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#334;display:grid;place-items:center;font-weight:800;flex:none}.lv-hav img{width:100%;height:100%;object-fit:cover}
.lv-who{display:flex;flex-direction:column;min-width:0}.lv-who b{font-size:14px}.lv-who small{font-size:12px;opacity:.8;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lv-badge{background:#d7261e;font-weight:800;font-size:11px;padding:3px 8px;border-radius:6px}.lv-eye{font-size:13px;background:rgba(255,255,255,.16);padding:3px 8px;border-radius:9999px}
.lv-end{border:0;background:#fff;color:#000;font-weight:800;border-radius:9999px;padding:6px 12px}
.lv-stage{position:relative;z-index:1;flex:1 1 40%;display:grid;place-items:center;min-height:0}
.lv-big{width:min(52vw,230px);aspect-ratio:1;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#003cfd,#0a1550);display:grid;place-items:center;font-size:84px;font-weight:800;box-shadow:0 10px 40px rgba(0,0,0,.5);border:4px solid rgba(255,255,255,.85)}.lv-big img{width:100%;height:100%;object-fit:cover}
.lv-chat{position:relative;z-index:2;flex:0 0 38%;overflow-y:auto;padding:0 12px 8px;display:flex;flex-direction:column;gap:7px;scrollbar-width:none;-webkit-mask-image:linear-gradient(transparent,#000 28%);mask-image:linear-gradient(transparent,#000 28%)}.lv-chat::-webkit-scrollbar{display:none}
.lv-chat::before{content:"";flex:1 1 auto}
.lv-m{display:flex;align-items:flex-start;gap:8px;max-width:86%;animation:lvpop .28s ease-out}
@keyframes lvpop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.lv-mav{width:30px;height:30px;border-radius:50%;overflow:hidden;background:#334;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}.lv-mav img{width:100%;height:100%;object-fit:cover}
.lv-mt{display:flex;flex-direction:column;font-size:14px;line-height:1.3;text-shadow:0 1px 3px rgba(0,0,0,.7);min-width:0;word-break:break-word}.lv-mt b{font-size:12.5px;opacity:.78}.lv-mt em{font-style:normal;background:#d7261e;border-radius:4px;font-size:10px;padding:1px 5px;margin-left:4px}
.lv-x{border:0;background:none;color:#fff;opacity:.5;font-size:12px;padding:2px 6px}
.lv-in{position:relative;z-index:2;display:flex;gap:8px;padding:6px 12px calc(12px + env(safe-area-inset-bottom))}
.lv-in input{flex:1;min-width:0;height:44px;border-radius:9999px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.45);color:#fff;padding:0 16px;font:inherit}
.lv-in button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#16a34a;color:#fff;font-size:18px}
.lv-over{position:absolute;inset:0;z-index:5;background:rgba(0,0,0,.82);display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;font-size:18px}

/* Library shelves */
.shelf{margin:0 0 6px}.shelf-h{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px}
.shelf-h h3{margin:0;font-size:1.05rem;color:var(--ink)}.shelf-n{font:600 .7rem var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--blue);background:rgba(0,60,253,.08);padding:4px 10px;border-radius:9999px}.shelf-n.soon{color:var(--ink-soft);background:var(--line)}
.shelf-b{display:flex;flex-direction:column;gap:10px;padding:0 12px 6px}
.drow.bk{display:block;padding:14px 14px 10px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:14px;background:var(--card);box-shadow:0 1px 3px rgba(15,23,42,.05)}
.bk-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bk-code{font:700 .78rem var(--font-mono);letter-spacing:.06em;color:var(--blue);background:rgba(0,60,253,.08);padding:3px 9px;border-radius:7px}
.bk-t{font:700 .62rem var(--font-mono);letter-spacing:.08em;color:#16a34a}.bk-t.pr{color:#7c3aed}
.bk-title{margin:8px 0 10px;font-size:1rem;line-height:1.35;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.bk-bar{display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);padding-top:8px}
.bk-open{background:var(--blue);border-color:var(--blue);color:#fff;padding:8px 22px}
.shelf-soon{margin:0 12px 6px;padding:22px 14px;border:1.5px dashed var(--line);border-radius:14px;text-align:center;color:var(--ink-soft)}
.shelf-soon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;margin-bottom:4px}.shelf-soon p{margin:0;font-weight:700;color:var(--ink)}.shelf-soon small{display:block;margin-top:2px}

/* Bookshelf */
.rack{margin:0 10px;position:relative}
.rack::after{content:"";display:block;height:16px;border-radius:3px 3px 6px 6px;background:linear-gradient(#c19a6b,#8d6b45 70%,#6f5336);box-shadow:0 8px 12px rgba(0,0,0,.22)}
.rack-row{display:flex;align-items:flex-end;gap:10px;overflow-x:auto;padding:14px 14px 0;scrollbar-width:none;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,0) 40%);border-radius:10px 10px 0 0}.rack-row::-webkit-scrollbar{display:none}
.book{position:relative;flex:none;width:106px;height:152px;border:0;border-radius:3px 8px 8px 3px;background:linear-gradient(135deg,var(--bc,#1d4ed8),color-mix(in srgb,var(--bc,#1d4ed8) 70%,#000));color:#fff;text-align:left;padding:12px 10px 10px 18px;display:flex;flex-direction:column;gap:6px;cursor:pointer;box-shadow:2px 3px 6px rgba(0,0,0,.35),inset -2px 0 0 rgba(255,255,255,.12);transition:transform .15s}
.book:active{transform:translateY(-4px)}
.book-sp{position:absolute;left:0;top:0;bottom:0;width:9px;border-radius:3px 0 0 3px;background:rgba(0,0,0,.28);box-shadow:inset -1px 0 0 rgba(255,255,255,.2)}
.book-code{font:800 .95rem var(--font-mono);letter-spacing:.05em;border-bottom:1.5px solid rgba(255,255,255,.55);padding-bottom:5px}
.book-title{font-size:.78rem;line-height:1.25;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;flex:1}
.book-n{font:600 .58rem var(--font-mono);letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.book.ghost{background:none;border:2px dashed var(--line);box-shadow:none;color:var(--ink-soft);cursor:default;width:min(70vw,260px);height:112px;justify-content:center;padding:12px 16px}.book.ghost .book-code{border-color:var(--line);color:var(--ink)}
.book-title{overflow-wrap:anywhere;hyphens:auto}.book.ghost{align-self:flex-end}

/* Sheets and toasts always sit above photo and video viewers */
.sh-veil{z-index:10001!important}.pd-toast{z-index:10002!important}
/* Share sheet */
.shr{display:flex;flex-direction:column;gap:10px;padding-bottom:6px}
.shr-prev{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--bg,transparent)}
.shr-prev img,.shr-ph{width:54px;height:54px;border-radius:12px;object-fit:cover;flex:none;background:linear-gradient(135deg,#003cfd,#0a1550);color:#fff;display:grid;place-items:center;font-weight:800;font-size:22px}
.shr-pt{display:flex;flex-direction:column;min-width:0}.shr-pt b{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shr-pt small{color:var(--ink-soft)}
.shr-l{font:700 .7rem var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.shr textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--line);border-radius:14px;font:inherit;resize:none;background:var(--card);color:var(--ink);line-height:1.4}
.shr-seg{display:flex;background:var(--line);border-radius:9999px;padding:3px}.shr-seg button{flex:1;border:0;background:none;border-radius:9999px;padding:8px 0;font-weight:600;color:var(--ink-soft);cursor:pointer}.shr-seg button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.18)}
.shr-go{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;border:0;border-radius:9999px;background:var(--blue,#003cfd);color:#fff;font-weight:800;font-size:1rem;padding:14px;cursor:pointer}
.shr-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shr-row button{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:14px;padding:12px 4px;font-size:.78rem;font-weight:600;cursor:pointer}

/* Faculties and departments as books, three to a shelf */
.shelves{padding:6px 0 10px}.shelves .rack{margin-bottom:22px}
.rack-grid{overflow:visible;gap:10px}
.book3{width:calc((100% - 20px) / 3);height:158px;flex:none;text-decoration:none;box-sizing:border-box}
.book3 .book-title{-webkit-line-clamp:5}
.book-gap{height:1px;background:none;box-shadow:none}
a.book{color:#fff}
.fcs{grid-template-columns:minmax(0,1fr)}.shelves,.rack,.rack-row{min-width:0;max-width:100%}
.book3 .book-code{font-size:.68rem;letter-spacing:.03em;overflow-wrap:anywhere}
.book3{padding:10px 6px 8px 15px;height:168px}
.book3 .book-code{font-size:.7rem}
.book3 .book-title{font-size:.7rem;overflow-wrap:break-word;word-break:normal;hyphens:auto;-webkit-hyphens:auto;line-height:1.22}
.book3 .book-n{font-size:.54rem}
.shelves .book3[style]{}
.rack-grid .book3:only-child{max-width:50%}
.book3{width:calc((100% - (var(--per,3) - 1) * 10px) / var(--per,3))}
.rack-grid .book3:only-child{max-width:none}

.book-new{position:absolute;top:8px;right:6px;background:#d7261e;color:#fff;font:800 .52rem var(--font-mono);letter-spacing:.06em;padding:2px 5px;border-radius:4px;font-style:normal;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.bk-t.nw{color:#d7261e}
a.book{text-decoration:none}
.rack-grid .book.ghost{width:100%;height:112px;grid-column:1/-1}.shelf-h{padding-left:20px;padding-right:20px}
.book-new{top:auto;bottom:7px;right:6px}

/* Contribute */
.cb{display:inline-block;flex:1;min-width:40px;height:8px;border-radius:9999px;background:var(--line);overflow:hidden}.cb i{display:block;height:100%;border-radius:9999px;background:linear-gradient(90deg,#003cfd,#7c3aed)}
.cb-f{border-top:1px solid var(--line);padding:10px 0}.cb-f summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.cb-f summary::-webkit-details-marker{display:none}
.cb-n{flex:0 0 42%;font-weight:600;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cb-f summary b,.cb-r b{flex:none;min-width:24px;text-align:right}
.cb-d{padding:8px 0 4px 10px}.cb-r{display:flex;align-items:center;gap:10px}.cb-r .cb-n{font-weight:500;font-size:.85rem}
.cb-l{display:flex;gap:6px;margin-top:5px}.cb-l span{font:600 .68rem var(--font-mono);color:var(--ink-soft);background:var(--line);padding:3px 8px;border-radius:9999px}.cb-l span.on{color:#fff;background:#003cfd}
.cb-m{border-top:1px solid var(--line);padding:10px 0;display:flex;flex-direction:column;gap:2px}.cb-m small{color:var(--ink-soft)}
.cb-s{align-self:flex-start;font-size:.72rem;font-weight:700;padding:3px 9px;border-radius:9999px;background:var(--line)}.cb-s.approved{background:#16a34a;color:#fff}.cb-s.rejected{background:#d7261e;color:#fff}.cb-s.pending{background:#f59e0b;color:#000}
.dn-card{display:block;margin:12px 16px 0;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#003cfd,#0a1550);color:#fff;text-decoration:none}.dn-card b{display:block;font-size:1.05rem}.dn-card span{display:block;opacity:.9;font-size:.88rem;line-height:1.4;margin:4px 0 8px}.dn-card em{font-style:normal;font-weight:800;font-size:.8rem;background:#fff;color:#003cfd;padding:5px 12px;border-radius:9999px}
.cv-box{margin:12px 16px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.cv-btn{width:100%;height:44px;margin-top:12px;border:0;border-radius:9999px;background:#003cfd;color:#fff;font:700 15px inherit;cursor:pointer}.cv-btn:disabled{opacity:.6}

/* Directions */
.dr-list{display:flex;flex-direction:column;gap:8px;padding:8px 16px 24px}.dr-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-decoration:none}.dr-card.soon{opacity:.6}
.dr-ic{flex:none;width:38px;height:38px;border-radius:50%;background:#003cfd;color:#fff;display:grid;place-items:center}.dr-ic svg{width:20px;height:20px}.dr-t{flex:1;min-width:0}.dr-t b{display:block}.dr-t small{color:var(--ink-soft)}
.wk{padding:4px 0 24px}.wk-img{position:relative;background:#000;aspect-ratio:4/3;overflow:hidden;touch-action:pan-y}.wk-img img{width:100%;height:100%;object-fit:cover;display:block}.wk-none{height:100%;display:grid;place-items:center;color:#aaa}
.wk-n{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.65);color:#fff;font:700 .75rem var(--font-mono);padding:4px 10px;border-radius:9999px}
.wk-a{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#003cfd;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.35)}.wk-a:disabled{opacity:.25}.wk-l{left:10px}.wk-r{right:10px}
.wk-t{padding:14px 16px 4px}.wk-t b{font-size:1.1rem}.wk-t p{margin:6px 0 0;line-height:1.5}.wk-done{color:#16a34a;font-weight:700}
.wk-dots{display:flex;justify-content:center;gap:6px;padding:10px 16px;flex-wrap:wrap}.wk-dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}.wk-dots i.on{background:#003cfd}

/* Public post */
.pp-card{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:16px;margin:8px 0 16px}.pp-who{margin:0 0 8px;font-weight:700}.pp-t{margin:0 0 6px;font-size:1.15rem}.pp-b{margin:0;white-space:pre-wrap;line-height:1.55}
.pp-i{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px;margin-top:12px}.pp-i img{width:100%;border-radius:12px;display:block}
.pp-cta{border-radius:16px;padding:16px;background:linear-gradient(135deg,#003cfd,#0a1550);color:#fff;display:flex;flex-direction:column;gap:8px}.pp-cta .muted{color:rgba(255,255,255,.85);margin:0}.pp-cta a{text-align:center;text-decoration:none}

.vs-msg{position:absolute;left:50%;top:58%;transform:translateX(-50%);z-index:6;display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(0,0,0,.7);color:#fff;padding:12px 16px;border-radius:14px;font-size:.9rem;text-align:center}
.vs-msg button{height:38px;padding:0 16px;border-radius:9999px;border:0;font-weight:700;cursor:pointer}.vs-retry{background:#fff;color:#000}.vs-skip{background:rgba(255,255,255,.2);color:#fff}
/* Story composer: advert card, always visible */
.vc-adc{margin:10px 0 0;padding:12px 14px;border-radius:16px;background:rgba(32,44,51,.92);color:#fff;border:1px solid rgba(255,255,255,.1);transition:border-color .2s,background .2s}
.vc-adc.on{border-color:#3b82f6;background:linear-gradient(135deg,rgba(0,60,253,.35),rgba(32,44,51,.92))}
.vc-adh{display:flex;align-items:center;gap:12px}.vc-adi{flex:none;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#003cfd,#7c3aed);display:grid;place-items:center;font-size:20px}
.vc-adt{flex:1;min-width:0;display:flex;flex-direction:column}.vc-adt b{font-size:1rem}.vc-adt small{opacity:.8;line-height:1.35;margin-top:2px}
.vc-sw{flex:none;position:relative;width:50px;height:30px}.vc-sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:2;cursor:pointer}.vc-sw input:disabled{cursor:default}
.vc-sw i{position:absolute;inset:0;border-radius:9999px;background:rgba(255,255,255,.25);transition:background .2s}.vc-sw i::after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s}
.vc-sw input:checked+i{background:#22c55e}.vc-sw input:checked+i::after{transform:translateX(20px)}.vc-sw input:disabled+i{opacity:.45}
.vc-open{flex:none;height:36px;padding:0 14px;border:0;border-radius:9999px;background:#fff;color:#000;font-weight:700;cursor:pointer}.vc-open[hidden],.vc-sw[hidden]{display:none}
.vc-adp{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.vc-adp span{font-size:.72rem;font-weight:600;padding:4px 10px;border-radius:9999px;background:rgba(255,255,255,.12)}
.vc-adc.on .vc-adp span{background:rgba(255,255,255,.22)}

/* Story composer: size meter */
.vc-meter{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:rgba(32,44,51,.92);color:#fff}
.vc-mt{display:flex;justify-content:space-between;gap:8px;font-size:.85rem}.vc-mt b{font-size:.78rem}
.vc-mb{height:8px;border-radius:9999px;background:rgba(255,255,255,.18);overflow:hidden;margin-top:8px}.vc-mb i{display:block;height:100%;width:0;border-radius:9999px;background:#22c55e;transition:width .15s,background .2s}
.vc-meter[data-s="warn"] .vc-mb i{background:#f59e0b}.vc-meter[data-s="bad"] .vc-mb i{background:#ef4444}.vc-meter[data-s="bad"] .vc-mt b{color:#fca5a5}
.vc-meter p{margin:6px 0 0;font-size:.78rem;opacity:.85}.vc-meter p:empty{display:none}

/* ===== Button polish: one look for every main button ===== */
:root{--btn-grad:none;--btn-glow:none;--x-blue:#1d9bf0}
/* Main buttons */
.btn-primary,.btn2.pri,.btn.primary,.btn:not(.btn-ghost):not(.btn2),.cv-btn,.pd-signin{
  background-image:none!important;background-color:var(--ink)!important;color:var(--paper)!important;border-color:transparent!important;
  box-shadow:var(--btn-glow)!important;font-weight:700;letter-spacing:.01em;
  transition:transform .12s ease,box-shadow .2s ease,filter .2s ease,opacity .2s}
.btn-primary:hover,.btn2.pri:hover,.btn.primary:hover,.btn:not(.btn-ghost):not(.btn2):hover,.cv-btn:hover,.pd-signin:hover{filter:none;opacity:.9;box-shadow:none!important}
/* Quiet buttons: a base look for any quiet button that has no style of its own (rules elsewhere still win) */
:where(.btn2){display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:9999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:600 .95rem var(--font-body);cursor:pointer;text-decoration:none}
/* Quiet buttons */
.btn2:not(.pri),.btn-ghost,.pill{transition:transform .12s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease}
.btn2:not(.pri):hover,.btn-ghost:hover{border-color:var(--blue);box-shadow:0 6px 16px -10px rgba(47,107,255,.6)}
/* Press feel, focus ring, disabled */
.btn:active,.btn2:active,.btn-primary:active,.btn-ghost:active,.cv-btn:active,.pd-signin:active,.pill:active,.pd-fab:active{transform:scale(.96)}
.btn:focus-visible,.btn2:focus-visible,.btn-primary:focus-visible,.btn-ghost:focus-visible,.cv-btn:focus-visible,.pd-signin:focus-visible,.pill:focus-visible{outline:3px solid rgba(91,141,255,.55);outline-offset:2px}
.btn:disabled,.btn2:disabled,.btn[disabled],.cv-btn:disabled{opacity:.55;filter:grayscale(.3);box-shadow:none!important;transform:none}
/* Round action button (+) */
.pd-fab.plus{background-image:none!important;background-color:var(--x-blue)!important;box-shadow:none!important;transition:transform .12s ease}
/* Buttons on dark story screens and on the blue promo cards keep their own look */
.pp-cta .btn,.dn-card em{box-shadow:0 6px 16px -8px rgba(0,0,0,.5)!important}
.pp-cta .btn:not(.btn-ghost):not(.btn2){background-image:none!important;background-color:#fff!important;color:#003cfd!important;border-radius:9999px}
.pp-cta .btn2{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:9999px;min-height:46px;display:flex;align-items:center;justify-content:center}
@media (prefers-reduced-motion:reduce){.btn,.btn2,.cv-btn,.pill,.pd-fab{transition:none!important}}

/* Story row: each of my videos is its own circle, joined edge to edge (max 4) */

/* Beside a post: one circle per video, stacked down the left side */
.vs-pc{top:calc(62px + var(--k,0) * 48px)}

/* Premium invitation card: picture and words side by side, two buttons below (like the verified card on X) */
.promo[data-kind="premium"]{display:grid;grid-template-columns:64px 1fr;gap:4px 14px;align-items:center;padding:18px 16px}
.promo[data-kind="premium"] .promo-av{width:64px;height:64px;grid-row:1}
.promo[data-kind="premium"] .promo-av i{width:26px;height:26px;line-height:22px;background:linear-gradient(135deg,#7c3aed,#2f6bff);font-size:13px}
.promo[data-kind="premium"] .promo-t{margin-top:0;grid-column:2}.promo[data-kind="premium"] .promo-t b{font-size:1.15rem}
.promo[data-kind="premium"] .promo-b{grid-column:1 / -1;margin-top:12px}
.promo[data-kind="premium"] .promo-b button{background:var(--mist);color:var(--ink)}
.promo[data-kind="premium"] .promo-b a{background:#fff!important;background-image:none!important;color:#000!important;box-shadow:none!important}
:root[data-theme="light"] .promo[data-kind="premium"] .promo-b a{background:#0f172a!important;color:#fff!important}

/* Business account dashboard */
.bd-hero{margin:12px 16px;padding:18px 16px 16px;border-radius:24px;color:#fff;background:linear-gradient(135deg,var(--bc),color-mix(in srgb,var(--bc) 45%,#000));box-shadow:0 14px 34px rgba(0,0,0,.25)}
.bd-top{display:flex;align-items:center;gap:12px}.bd-lg{flex:none;width:60px;height:60px;border-radius:18px;background:#fff;color:#111;display:grid;place-items:center;font:700 24px Inter,system-ui,sans-serif;overflow:hidden}.bd-lg img{width:100%;height:100%;object-fit:contain}
.bd-id{flex:1;min-width:0}.bd-id h2{margin:0;font-size:1.25rem;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bd-id span{font-size:13px;opacity:.85}
.bd-st{flex:none;padding:5px 11px;border-radius:9999px;background:rgba(255,255,255,.2);font:700 12px Inter,system-ui,sans-serif}.bd-st.on{background:#22c55e;color:#04210f}.bd-st.off{background:#ef4444}
.bd-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.bd-t{padding:10px 6px;border-radius:16px;background:rgba(0,0,0,.22);text-align:center}.bd-t b{display:block;font-size:1.1rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bd-t span{font-size:12px;opacity:.8}
.bd-status{margin-top:0}
.bd-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:4px 16px 24px}
.bd-a{display:flex;flex-direction:column;gap:3px;padding:16px;border-radius:20px;border:1px solid var(--line);background:var(--card,transparent);color:inherit;text-decoration:none;transition:transform .12s}
.bd-a:active{transform:scale(.97)}.bd-a .ic{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#2f6bff,#7c3aed);color:#fff;margin-bottom:8px}.bd-a b{font-size:15px}.bd-a small{color:var(--ink-soft);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.bz-sec{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:9999px;font-size:14px;cursor:pointer;user-select:none}
.bz-sec input{accent-color:var(--blue,#2f6bff);margin:0}.bz-sec:has(input:checked){border-color:var(--blue,#2f6bff);background:color-mix(in srgb,var(--blue,#2f6bff) 14%,transparent);font-weight:600}

.pdv-lock{max-width:900px;margin:0 auto 24px;width:calc(100% - 16px);box-sizing:border-box;background:var(--card,#fff);color:var(--ink,#111);border-radius:16px;padding:20px;text-align:center}.pdv-lock p{margin:6px 0 14px}

/* Promo cards: a soft glow, and the headline written by a pen */
.promo{position:relative;overflow:hidden;border:1px solid transparent;background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,#2f6bff,#7c3aed 55%,#f5b942) border-box;box-shadow:0 10px 28px -18px rgba(47,107,255,.65)}
.promo::before{content:"";position:absolute;inset:-40% -20% auto auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(124,58,237,.22),transparent 65%);pointer-events:none}
.promo[data-kind="premium"]::before{background:radial-gradient(circle,rgba(245,185,66,.28),transparent 65%)}
.promo>*{position:relative}
.promo-av{box-shadow:0 0 0 3px var(--card),0 0 0 5px rgba(124,58,237,.55)}
.pw-h{display:block;min-height:1.4em}
.pw-pen{display:inline-block;margin-left:2px;transform-origin:2px 100%;animation:pw-wob .38s ease-in-out infinite;transition:opacity .4s}
.pw-pen.off{opacity:0;animation:none}
@keyframes pw-wob{0%,100%{transform:rotate(-14deg) translateY(0)}50%{transform:rotate(8deg) translateY(-2px)}}
.pw-rest{opacity:0;transform:translateY(4px);transition:opacity .5s,transform .5s}
.promo.pw-done .pw-rest{opacity:1;transform:none}
.promo.pw-done .promo-b{animation:pw-up .45s ease both}
@keyframes pw-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.pw-pen{animation:none}.pw-rest{opacity:1;transform:none;transition:none}}

/* Earnings dashboard */
.we-box{margin:12px 16px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.we-hero{display:flex;flex-direction:column;gap:2px}.we-big{font-size:2rem;line-height:1.15;letter-spacing:-.5px}
.we-sts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.we-st{display:flex;flex-direction:column;gap:2px;font-size:12px;padding-right:6px}.we-st b{font-size:.95rem}.we-dot{width:8px;height:8px;border-radius:50%;margin-bottom:2px}
.we-hd{display:flex;align-items:center;justify-content:space-between;gap:8px}
.we-seg{display:flex;background:var(--paper);border:1px solid var(--line);border-radius:9999px;padding:2px}
.we-seg button{border:0;background:transparent;color:var(--ink-soft);font:600 12px var(--font-body);padding:6px 10px;border-radius:9999px;cursor:pointer}
.we-seg .on{background:var(--ink);color:var(--on-ink)}
.we-plot{position:relative;height:170px;margin-left:42px}
.we-gl{position:absolute;left:0;right:0;border-top:1px dashed var(--line)}.we-gl span{position:absolute;left:-42px;top:-7px;font-size:10px;color:var(--ink-soft);width:36px;text-align:right}
.we-bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:4px}
.we-col{flex:1;height:100%;display:flex;align-items:flex-end;border:0;background:transparent;padding:0;cursor:pointer}
.we-col i{display:block;width:100%;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#5b8dff,#2f6bff);opacity:.9}.we-col.on i{opacity:1;outline:2px solid #fff3}
.we-none{position:absolute;inset:0;display:grid;place-items:center;color:var(--ink-soft);font-size:13px;pointer-events:none}
.we-xl{display:flex;gap:4px;margin:6px 0 0 42px}.we-xl span{flex:1;text-align:center;font-size:10px;color:var(--ink-soft);white-space:nowrap;overflow:visible}
.we-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;margin-top:10px}
.we-box>b:first-child{display:block}

/* Class discussion: reactions, swipe, lock */
.cc-bub{touch-action:pan-y;-webkit-user-select:none;user-select:none}
.cc-bub.sw-on{outline:2px solid var(--x-blue,#1d9bf0)}
.cc-rx{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;clear:both}
.cc-chip{border:1px solid var(--line);background:var(--mist);color:inherit;border-radius:9999px;padding:1px 8px;font-size:13px;cursor:pointer}
.cc-chip.on{border-color:var(--x-blue,#1d9bf0)}
.rm-msg.me .rm-pic{order:2}
.cc-div{text-align:center;margin:14px auto;padding:8px 14px;max-width:86%;border-radius:12px;background:var(--mist);font-size:14px}
.cc-div small{display:block;opacity:.65;font-size:11px}

/* ---- Home promo card, X "Get verified" style: picture + words, two pills ---- */
.promo{display:grid!important;grid-template-columns:60px 1fr;gap:6px 12px!important;align-items:center;margin:12px 16px!important;padding:16px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--card)!important;box-shadow:none!important}
.promo-av{width:60px!important;height:60px!important;grid-row:1;grid-column:1;box-shadow:none!important}
.promo-av i{width:22px!important;height:22px!important;line-height:19px!important;font-size:12px!important;right:-3px;bottom:-3px;background:#1d9bf0!important;color:#fff;border:2px solid var(--card)}
.promo[data-kind="premium"] .promo-av i{background:linear-gradient(135deg,#f8ce5b,#d49a14)!important;color:#4a2f00!important}
.promo-t{display:contents!important}
.promo-t>b{grid-column:2;grid-row:1;font-size:1rem!important;line-height:1.25}
.promo-t .pw-rest{grid-column:1 / -1;margin-top:2px}
.promo-t .pw-rest p{font-size:13px!important;color:var(--ink-soft)}
.promo-b{grid-column:1 / -1;display:flex;gap:10px;margin-top:10px!important}
.promo-b button,.promo-b a{height:44px!important;font-size:15px}
.promo-b button{background:var(--mist)!important;color:var(--ink)!important}
.promo-b a{background:#fff!important;background-image:none!important;color:#000!important;box-shadow:none!important;border:1px solid var(--line)!important}
:root[data-theme="light"] .promo-b a{background:#0f172a!important;color:#fff!important}
.promo[data-kind="premium"] .promo-b a{background:linear-gradient(135deg,#f8ce5b,#d49a14)!important;color:#3b2500!important;border:0!important}

/* ---- Tutor channel: small, like a chat list ---- */
.tc-head{display:flex;align-items:center;gap:12px;padding:12px 16px}
.tc-head h1{margin:0;font-size:1.1rem}.tc-head .muted{font-size:13px}
.tc-row{display:flex;align-items:center;gap:12px;padding:10px 16px;color:inherit;text-decoration:none;border-bottom:1px solid var(--line)}
.tc-row .ic{width:40px;height:40px;border-radius:50%;background:var(--mist);display:grid;place-items:center;font-size:18px;flex:none}
.tc-row b{display:block;font-size:.95rem;line-height:1.25}.tc-row small{display:block;color:var(--ink-soft);font-size:.8rem}
.tc-row .tag{flex:none}
.promo:not(.open) .perks{display:none!important}
.pr-more{border:0;background:none;color:#1d9bf0;font:inherit;font-weight:600;font-size:13px;padding:4px 0;cursor:pointer}
.promo .pw-rest p{margin:0}
.tc-row b{color:inherit}
#replies .post.tu{border-top:0!important}

/* WhatsApp-style tutor chat + info */
body.tc-chat .pd-nav, body.tc-chat .pd-fab { display: none !important; }
body.tc-chat .pd-main { padding-bottom: 0; }
body.tc-chat .sub-head { position: sticky; top: 0; z-index: 12; }
.rm-comp.tc-comp { position: sticky; bottom: 0; z-index: 11; background: var(--bg, #000); align-items: center; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 0; }
.rm-comp.tc-comp textarea { min-height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; resize: none; }
.rm-comp.tc-comp .rmb { width: 44px !important; min-width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; display: grid; place-items: center; }
.ti-top { text-align: center; padding: 22px 16px 8px; }
.ti-top h1 { font-size: 22px; margin: 10px 0 2px; }
.ti-av { display: flex; justify-content: center; }
.ti-bio { margin: 10px 8px 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft, #a0a8b5); }
.ti-tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 12px; }
.ti-tabs button { flex: 1; background: none; border: 0; color: var(--ink-soft, #a0a8b5); font: inherit; font-weight: 600; padding: 12px 0; border-bottom: 3px solid transparent; cursor: pointer; }
.ti-tabs button.on { color: var(--ink); border-bottom-color: #1d9bf0; }
.ti-set { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ti-set > span { flex: 1; } .ti-set b, .ti-set small { display: block; } .ti-set small { color: var(--ink-soft, #a0a8b5); font-weight: 400; margin-top: 2px; }
body.tc-chat #pg:has(#cc-th) { display: flex; flex-direction: column; min-height: calc(100dvh - 58px); }
body.tc-chat #cc-th { flex: 1; }
.adh-sub { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft, #a0a8b5); margin: 18px 16px 6px; }

/* Admin: command center + departments */
.adh-tabs { position: sticky; top: 56px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--bg, #000); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.adh-tabs::-webkit-scrollbar { display: none; }
.adh-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.adh-tabs button.on { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }
.adh-tabs .adh-n { background: #c0392b; }
.adh-q { margin-top: 12px !important; }
.adh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 4px 16px 6px; }
.adh-kpis div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.adh-kpis small { display: block; color: var(--ink-soft); font-size: 12px; } .adh-kpis b { font-size: 1.2rem; }
.adh-dh { margin: 8px 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.adh-dh h2 { margin: 0; font-size: 1.2rem; } .adh-dh p { margin: 4px 0 10px; color: var(--ink-soft); font-size: 14px; }
.adh-kp { display: flex; gap: 22px; } .adh-kp b { font-size: 1.3rem; display: block; } .adh-kp small { color: var(--ink-soft); }
.adh { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line); }
.adh-role { border-color: var(--line) !important; }
/* News article page is a white page: headings must be dark (they were inheriting white) */
.nw-art h1, .nw-art h2, .nw-art h3, .nw-t { color: #000 !important; }

/* News home: like a news site */
.nw-brand { display: flex; align-items: center; }
.nw-st { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.7); border-radius: 9999px; padding: 4px 10px; }
.nw-sec h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.nw-sec h2 span { display: inline-block; border-bottom: 3px solid #d00; padding-bottom: 3px; color: #000; }
.nw-tg { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #d00; display: block; margin-bottom: 2px; }
.nw-al { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nw-ac { display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); color: #000; text-decoration: none; }
.nw-ac img, .nw-ac .nw-ph { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #ddd; }
.nw-ac span { display: block; padding: 8px 10px 10px; } .nw-ac b { display: block; line-height: 1.25; font-size: 14px; } .nw-ac small { color: #6c6c6c; }
.nw-ln { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #e3e3e3; color: #000; text-decoration: none; }
.nw-ln:first-of-type { border-top: 0; }
.nw-ln > span:nth-child(2) { flex: 1; min-width: 0; } .nw-ln b { display: block; line-height: 1.3; font-size: 15px; }
.nw-tm { flex: 0 0 52px; font-size: 12px; color: #6c6c6c; padding-top: 2px; }
.nw-th { flex: 0 0 72px; width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: #ddd; }
.nw-bk { background: #fff; margin: 8px 0; padding: 12px 16px; }
.nw-lead { display: block; color: #000; text-decoration: none; padding-bottom: 8px; }
.nw-lead img, .nw-lead .nw-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 4px; background: #ddd; margin-bottom: 8px; }
.nw-lead b { display: block; font-size: 17px; line-height: 1.25; } .nw-lead p { margin: 4px 0; color: #333; font-size: 14px; line-height: 1.4; } .nw-lead small { color: #6c6c6c; }
.nw-lm { display: block; width: 100%; margin-top: 10px; height: 44px; border-radius: 9999px; border: 1px solid #d00; background: #fff; color: #d00; font: inherit; font-weight: 700; cursor: pointer; }
.nw-lm:disabled { opacity: .6; }

/* ===== Standard look: flat lists, normal buttons. (Page titles .pgt/.pgb/.pgs keep the original Sora gradient look.) ===== */
.rm-add,.admlinks a{font:600 .9rem var(--font-body);letter-spacing:0;text-transform:none}
.panel{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;overflow:visible}
.panel::before,.panel::after{display:none}
.rp-card{padding:14px 0}
.dopen{border:1px solid var(--line);background:transparent;color:var(--ink);font:600 .85rem var(--font-body);letter-spacing:0;text-transform:none;padding:7px 14px}
.emp .pill{font:600 .9rem var(--font-body);letter-spacing:0;text-transform:none;padding:9px 18px}
.fld>label,.set-form label,.set-h{font:600 .85rem var(--font-body);letter-spacing:0;text-transform:none}
.drow .dl,.rm-on,.rm-row .dl,.shr-l{font:500 .8rem var(--font-body);letter-spacing:0;text-transform:none}
.rm-btn{font:600 .85rem var(--font-body);letter-spacing:0;text-transform:none}
/* Receipt-style table: a white paper sheet in both themes, same as the payment receipt */
.kv{background:#fff;color:#111;border:1px solid #bbb;border-radius:10px;overflow:hidden;font:.92rem/1.4 "Times New Roman",Georgia,serif}
.kv-r{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-top:1px solid #bbb}
.kv-r:first-child{border-top:0}
.kv-r span{flex:0 0 36%;color:#333}
.kv-r b{text-align:right;font-weight:700;color:#111;overflow-wrap:anywhere}
.kv-r small{font-size:.85em;color:#333}
.rp-card{padding:12px 16px;border:0}.rp-card .rp-acts{margin-top:10px}

/* ===== Admin: original dark look with gold, same centred layout. Receipt tables (.kv) stay white paper. ===== */
.ad-wrap .ad-top{position:static;flex-direction:column;align-items:center;gap:10px;padding:18px 16px 12px;border-bottom:1px solid var(--line);text-align:center}
.ad-wrap .ad-brand{flex-direction:column;gap:6px;align-items:center}
.ad-wrap .ad-brand img{width:56px;height:56px;border-radius:14px}
.ad-wrap .ad-brand span{align-items:center}
.ad-wrap .ad-brand b{font:700 1.5rem "Times New Roman",Georgia,serif;letter-spacing:.08em;color:#e0a526}
.ad-wrap .ad-brand small{font:.85rem "Times New Roman",Georgia,serif;color:var(--ink-soft)}
.ad-wrap .ad-acts button{font-weight:600}
.ad-wrap .adh-tabs{top:0}
.ad-wrap .adh-tabs button.on{background:linear-gradient(135deg,#f6d365,#e0a526);border-color:#e0a526;color:#3b1d12}
.ad-wrap .adh-stat div{border-radius:10px}

/* Admin: who is signed in */
.ad-wrap .ad-me{display:flex;align-items:center;gap:10px;margin:10px 16px 0;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:10px}
.ad-wrap .ad-av{overflow:hidden;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#f6d365,#e0a526);color:#3b1d12;display:grid;place-items:center;font-weight:700;flex:none}
.ad-wrap .ad-mn{display:flex;flex-direction:column;min-width:0;flex:1}
.ad-wrap .ad-mn b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-wrap .ad-mn small{font-size:12px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-wrap .ad-me a{font-size:13px;color:#e0a526;text-decoration:underline;flex:none}
.ad-wrap .ad-av img{width:100%;height:100%;object-fit:cover}
/* Admin in the light theme: darker gold so it stays readable */
:root[data-theme="light"] .ad-wrap .ad-brand b,:root[data-theme="light"] .ad-wrap .ad-me a{color:#8a5a00}
:root[data-theme="light"] .ad-wrap .adh-tabs button.on{background:#111;border-color:#111;color:#fff}
:root[data-theme="light"] .ad-wrap .ad-av{color:#3b1d12}

/* ===== Pedia Music ===== */
.mu{padding:0 0 24px}.mu-top{padding:12px 16px}.mu-top .cv-btn{margin-top:8px;display:inline-block}
.mu-h{margin:16px 16px 8px;font-size:1rem}
.mu-list{display:grid;gap:10px;padding:0 16px}
.mu-c{display:flex;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.mu-cv{position:relative;flex:none;width:88px;height:88px;border-radius:12px;overflow:hidden;background:var(--mist);display:grid;place-items:center}
.mu-cv img{width:100%;height:100%;object-fit:cover}.mu-ph{font-size:34px;opacity:.5}
.mu-play{position:absolute;inset:auto 6px 6px auto;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.72);color:#fff;font-size:14px;cursor:pointer}
.mu-b{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.mu-b b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mu-b small{color:var(--ink-soft);display:flex;align-items:center;gap:4px}.mu-b small a{color:inherit}
.mu-r{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:2px}
.mu-lk,.mu-rp,.mu-rm{border:0;background:none;color:var(--ink);font:inherit;font-size:13px;padding:2px 0;cursor:pointer}.mu-lk.on{color:#e0245e}.mu-rp{color:var(--ink-soft);text-decoration:underline}
.mu-go{font-size:13px;font-weight:600;color:var(--blue-text,var(--ink));text-decoration:underline}
.mu-mine{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.mu-mine small{display:block;color:var(--ink-soft)}.mu-rm{color:var(--danger,#b42318);text-decoration:underline}
.mu-list{grid-template-columns:minmax(0,1fr)}.mu-c{min-width:0;box-sizing:border-box}.mu-b b{max-width:100%}
.mu-st{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 16px}.mu-st div{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.mu-st small{display:block;color:var(--ink-soft)}.mu-st b{font-size:1.3rem}

/* Music: track page */
.mu-tt{color:inherit;text-decoration:none;min-width:0}.mu-tt b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt{padding:8px 16px 28px}.mt-cv{width:min(72%,300px);aspect-ratio:1;margin:8px auto 18px;border-radius:12px;overflow:hidden;background:var(--mist);display:grid;place-items:center}.mt-cv img{width:100%;height:100%;object-fit:cover}.mt-cv .mu-ph{font-size:80px}
.mt-t{font-size:1.5rem;margin:0 0 8px}.mt-a{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;margin:0 0 6px}.mt-av{width:28px;height:28px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#f6d365,#e0a526);color:#3b1d12;display:grid;place-items:center;font-weight:700;font-size:13px}.mt-av img{width:100%;height:100%;object-fit:cover}
.mt-m{color:var(--ink-soft);font-size:13px;margin:0 0 14px}.mt-row{display:flex;align-items:center;gap:16px;margin-bottom:14px}.mt-row .mu-lk{font-size:26px}.mt-row .mu-rp{font-size:14px}
.mt-play{margin-left:auto;width:58px;height:58px;border-radius:50%;border:0;background:#e0a526;color:#3b1d12;font-size:22px;cursor:pointer}
.mt-go{display:block;text-align:center;text-decoration:none}.mt-n{font-size:12px;margin:8px 0 0}
.mt-more{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px}.mt-more a{flex:none;width:130px;color:inherit;text-decoration:none}.mt-more img,.mt-more .mu-ph{width:130px;height:130px;object-fit:cover;border-radius:10px;background:var(--mist);display:grid;place-items:center}.mt-more b{display:block;margin-top:6px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mt-more small{color:var(--ink-soft)}
.mu-ap{margin:12px 16px 0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--ink-soft)}.mu-ap.ok{color:#e0a526;border-color:#e0a526}

/* Music: charts and artist analytics */
.mu-chart{display:grid;gap:2px;padding:0 16px}.mu-cr{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.mu-rk{flex:none;width:26px;text-align:center;font-weight:800;font-size:1.05rem;color:#e0a526}
.mu-ct{flex:none;width:48px;height:48px;border-radius:8px;overflow:hidden;background:var(--mist);display:grid;place-items:center}.mu-ct img{width:100%;height:100%;object-fit:cover}
.mu-cn{flex:1;min-width:0;color:inherit;text-decoration:none;display:flex;flex-direction:column}.mu-cn b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mu-cn small{color:var(--ink-soft)}
.mu-cp{position:static!important;flex:none}
.mu-bars{display:flex;align-items:flex-end;gap:2px;height:90px;padding:4px 0}.mu-bars i{flex:1;min-width:2px;background:#e0a526;border-radius:2px 2px 0 0}
.mu-axis{display:flex;justify-content:space-between;color:var(--ink-soft)}
.mu-cp-r{display:grid;grid-template-columns:74px 1fr 36px;align-items:center;gap:8px;margin:6px 0}.mu-cp-r i{display:block;height:8px;border-radius:4px;background:#e0a526}.mu-cp-r b{text-align:right}
.mu-cr{min-width:0}.mu-cn{overflow:hidden}.mu-cn,.mu-cn:visited,.mu-mine a,.mu-mine a:visited{color:var(--ink);text-decoration:none}

/* Design set (16 Nov): buttons 44px, text 13/15/17, card corners 14px, spacing 8/12/16. Home and feed first. */
:root{--btn-h:44px;--r-card:14px;--fs-s:13px;--fs-m:15px;--fs-l:17px;--sp-1:8px;--sp-2:12px;--sp-3:16px}
.cv-btn{min-height:var(--btn-h);font-size:var(--fs-m)}
.promo-t{margin-top:var(--sp-2)}.promo-t b{font-size:var(--fs-l)}
.promo-t p,.promo .pr-more{font-size:var(--fs-s)}
.promo-b{gap:var(--sp-1);margin-top:var(--sp-3)}
.promo-b button,.promo-b a{height:var(--btn-h);font-size:var(--fs-m)}
.vc{border-radius:var(--r-card)}
.post{padding:var(--sp-2) var(--sp-3);gap:var(--sp-2)}
.chips i{font-size:var(--fs-s)}
.mu-h{font-size:var(--fs-l);margin:var(--sp-3) var(--sp-3) var(--sp-1)}
.mu-c{border-radius:var(--r-card)}

/* Music ranking list (16 Nov): rank, round cover, title and artist, listens on the right. */
.mu-seg{display:flex;margin:var(--sp-2) var(--sp-3);padding:3px;border-radius:9999px;background:var(--mist);border:1px solid var(--line)}
.mu-seg a{flex:1;height:38px;display:grid;place-items:center;border-radius:9999px;font-size:var(--fs-m);font-weight:700;color:var(--ink-soft);text-decoration:none}
.mu-seg a[aria-current="page"]{background:var(--ink);color:var(--on-ink)}
.mu-chh{display:flex;justify-content:space-between;align-items:baseline;padding:var(--sp-2) var(--sp-3) var(--sp-1)}
.mu-chh h2{margin:0;font-size:var(--fs-l)}.mu-chh span{font-size:var(--fs-m);color:var(--ink-soft)}
.mu-chart{gap:0;padding:0 var(--sp-3)}
.mu-cr{gap:var(--sp-2);padding:var(--sp-2) 0;border-bottom:0}
.mu-rk{width:22px;font-weight:400;font-size:var(--fs-m);color:var(--ink);text-align:left}
.mu-av{position:relative;flex:none;width:56px;height:56px}
.mu-ct{width:56px;height:56px;border-radius:50%}
.mu-av .mu-cp{position:absolute!important;right:-4px;bottom:-4px;width:24px;height:24px;font-size:10px;padding:0;border:2px solid var(--paper);background:var(--ink);color:var(--on-ink);display:grid;place-items:center}
.mu-cn{gap:2px}.mu-cn b{font-size:var(--fs-m)}.mu-cn small{font-size:var(--fs-m)}
.mu-n{flex:none;font-size:var(--fs-m);text-align:right;min-width:44px}
.mu-vall{padding:var(--sp-1) var(--sp-3) var(--sp-3)}
.mu-vall a{display:grid;place-items:center;height:var(--btn-h);border-radius:9999px;background:var(--mist);color:var(--ink);font-size:var(--fs-m);font-weight:700;text-decoration:none}

/* Pedia TV tall clips: full-screen swipe feed (16 Nov). */
.tc-feed{height:calc(100dvh - 112px - env(safe-area-inset-bottom,0px));min-height:420px;overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:contain;background:#000;scrollbar-width:none;border-radius:var(--r-card);margin:0 0 var(--sp-3)}
.tc-feed::-webkit-scrollbar{display:none}
.tc{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;border:0!important;padding:0!important;display:block!important}
.tc-st{position:relative;height:100%;background:#000;overflow:hidden;color:#fff}
.tc-v{width:100%;height:100%;object-fit:contain;display:block}.tc-v.fill{object-fit:cover}
.tc-sh{position:absolute;inset:auto 0 0 0;height:46%;background:linear-gradient(transparent,rgba(0,0,0,.72));pointer-events:none}
.tc-pp{position:absolute;inset:0;display:none;place-items:center;font-size:64px;color:rgba(255,255,255,.85);pointer-events:none}.tc-st.paused .tc-pp{display:grid}
.tc-hb{position:absolute;font-size:96px;line-height:1;color:#ff2d55;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.4)}
.tc-hb.go{animation:tc-pop .8s ease-out}
@keyframes tc-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}25%{opacity:1;transform:translate(-50%,-60%) scale(1.15)}100%{opacity:0;transform:translate(-50%,-160%) scale(1)}}
.tc-mute{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:18px;cursor:pointer}
.tc-st .tc-rail:not([hidden]){position:absolute;right:8px;bottom:96px;display:flex;flex-direction:column;gap:18px;align-items:center;margin:0;padding:0;border:0;background:none}
.tc-st .tc-rail button{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;color:#fff;font-size:13px;font-weight:700;min-width:48px;min-height:0;height:auto;padding:0;cursor:pointer;background:transparent!important;color:#fff!important;box-shadow:none!important;border-radius:0!important;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.tc-st .tc-rail button>span:first-child{font-size:30px;line-height:1.1}
.tc-st .tc-rail button[aria-pressed="true"] [data-i]{color:#ff2d55!important;animation:tc-beat .45s ease}
@keyframes tc-beat{0%{transform:scale(.6)}60%{transform:scale(1.35)}100%{transform:scale(1)}}
.tc-lk{position:absolute;left:12px;bottom:196px;display:flex;flex-direction:column;gap:10px}
.tc-lp,.tc-ca{position:relative;width:40px;height:40px;border-radius:50%;background:#334155;color:#fff;display:grid;place-items:center;font-weight:700;border:2px solid rgba(255,255,255,.7);animation:tc-rise .5s ease both}
.tc-lp img,.tc-ca img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.tc-lp i{position:absolute;right:-6px;bottom:-4px;width:20px;height:20px;border-radius:50%;background:#ff2d55;color:#fff;font-style:normal;font-size:11px;display:grid;place-items:center;border:2px solid #000}
@keyframes tc-rise{from{opacity:0;transform:translateY(14px) scale(.8)}to{opacity:1;transform:none}}
.tc-in{position:absolute;left:12px;right:76px;bottom:14px;display:flex;flex-direction:column;gap:4px}
.tc-in b{font-size:var(--fs-m)}.tc-me{font-size:var(--fs-s);opacity:.85}
.tc-d{margin:0;font-size:var(--fs-s);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc-tc{display:flex;gap:8px;align-items:center;background:rgba(0,0,0,.45);border-radius:14px;padding:6px 10px 6px 6px;font-size:var(--fs-s);margin-bottom:6px;width:fit-content;max-width:100%}
.tc-tc .tc-ca{width:28px;height:28px;border-width:1px;font-size:12px;flex:none;animation:none}
.tc-tc[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.tc-hb.go,.tc-lp,.tc-st .tc-rail button[aria-pressed="true"] [data-i]{animation:none}}

/* YouTube card in Pedia style: rounded cover, Pedia TV badge, pill buttons (16 Nov). */
.tv-post:not(.tc) .tv-pv{border-radius:var(--r-card);overflow:hidden}
.tv-post:not(.tc) .tv-pv .tv-pl,.tv-post:not(.tc) .tv-st,.tv-post:not(.tc) .tv-st img{border-radius:0}
.tv-sh{position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(transparent,rgba(0,0,0,.6));pointer-events:none}
.tv-cvb{position:absolute;top:10px;right:10px;pointer-events:none}
.tv-post:not(.tc) .tv-ac.tv-bar{display:flex;gap:var(--sp-1);border:0;background:none;padding:var(--sp-2) 0 0;margin:0;overflow:visible}
.tv-post:not(.tc) .tv-ac.tv-bar[hidden]{display:none}
.tv-post:not(.tc) .tv-ac.tv-bar button{height:var(--btn-h);padding:0 var(--sp-3);border-radius:9999px;background:var(--mist);border:0;font-size:var(--fs-m);font-weight:700;flex:none}
.tv-post:not(.tc) .tv-pt{font-size:var(--fs-l);margin:var(--sp-2) 0 4px}

/* Live look on TV videos: red LIVE tag left, Pedia TV logo right, pop-up lower third, news bar like option A (16 Nov). */
.tv-tag.live{display:inline-flex;align-items:center;gap:5px;padding:2px 8px 2px 6px;border-radius:5px;background:linear-gradient(#f02a1e,#b80f08);color:#fff;font-size:10px;font-weight:900;letter-spacing:.12em;box-shadow:0 0 0 1px rgba(255,255,255,.85),0 4px 12px rgba(0,0,0,.5)}
.tv-tag.live::first-letter{color:#fff}
.ptv{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 3px;border-radius:6px;background:rgba(0,0,0,.72);box-shadow:0 0 0 1px rgba(255,255,255,.35),0 4px 12px rgba(0,0,0,.5)}
.ptv i{display:block;width:22px;height:15px;border-radius:5px;background:linear-gradient(#f02a1e,#b80f08);position:relative;flex:none}
.ptv i::after{content:"";position:absolute;left:9px;top:3.5px;border-left:7px solid #fff;border-top:4px solid transparent;border-bottom:4px solid transparent}
.ptv b{font-size:12px;font-weight:900;color:#fff;letter-spacing:.01em}.ptv em{font-style:normal;font-weight:900;font-size:12px;color:#ff3b30}
.tv-bug{opacity:1!important;transform:none!important}
.tv-cvb .ptv{height:22px}
/* pop-up lower third */
.tv-pop{position:absolute;left:8px;right:auto;top:auto;bottom:36px;max-width:min(62%,240px);display:flex;align-items:stretch;gap:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible;transform:translateX(-24px);opacity:0;transition:transform .4s,opacity .3s;z-index:3}
.tv-pop.on{transform:none;opacity:1;animation:none}
.tv-pop .pp-i{position:relative;z-index:2;flex:none;width:36px;height:36px;margin:3px -10px 0 0;border-radius:50%;background:radial-gradient(#ff5a3c,#d7261e 70%);border:2px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.55);display:grid;place-items:center;overflow:hidden}
.tv-pop .pp-i img{width:70%;height:70%;border-radius:50%;background:#000}
.tv-pop .pp-t{position:relative;min-width:0;padding:4px 28px 11px 16px;border-radius:9px;background:linear-gradient(#fff,#d9dde6);border:2px solid #d7261e;box-shadow:0 6px 16px rgba(0,0,0,.5);display:flex;flex-direction:column;justify-content:center}
.tv-pop .pp-t b{font-size:14px;font-weight:900;font-style:italic;color:#111;text-transform:uppercase;letter-spacing:.01em;line-height:1.1;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tv-pop .pp-t small{position:absolute;left:12px;right:12px;bottom:-8px;text-align:center;background:#000;color:#fff;font-size:8px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:2px 6px;border-radius:4px;opacity:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tv-pop .pp-x{position:absolute;right:4px;top:4px;z-index:3;width:18px;height:18px;background:#111;color:#fff;font-size:12px}
/* news bar inside the video: option A */
.tv-pl .tv-lt,.tv-player .tv-lt{height:26px;background:#000;border-top:2px solid #fff}
.tv-lt::before{width:46px;background:#e62117;clip-path:polygon(0 0,100% 0,calc(100% - 8px) 100%,0 100%);content:"NEWS";display:grid;place-items:center;color:#fff;font:900 10px/1 Arial,sans-serif;letter-spacing:.08em}
.tv-lt::after{display:none}
.tv-lt .tv-nw{margin:0 10px 0 56px}
.tv-lt .tv-ni{font-family:Arial,Helvetica,sans-serif;font-style:normal;font-weight:800;font-size:11.5px;letter-spacing:.02em}
@media (prefers-reduced-motion:reduce){.tv-pop{transition:none}}
.nw{min-height:calc(100dvh - 170px)}
.nw-end{margin:0;padding:var(--sp-3);text-align:center;font-size:var(--fs-s);color:#6b7280}

/* Journalist Studio: write an article (16 Nov). */
.swr{padding:var(--sp-3) var(--sp-3) 96px;display:grid;gap:var(--sp-2)}
.swr svg,.sw-ov svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sw-note{margin:0;font-size:var(--fs-s);color:var(--ink-soft)}
.sw-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:var(--sp-3)}
.sw-cover{padding:0;overflow:hidden}
.sw-ctap{display:block;position:relative;cursor:pointer}
.sw-cimg{aspect-ratio:16/9;background:var(--mist);display:grid;place-items:center;overflow:hidden}
.sw-cimg img{width:100%;height:100%;object-fit:cover;display:block}
.sw-cph{display:grid;gap:4px;place-items:center;text-align:center;color:var(--ink-soft);padding:var(--sp-3)}.sw-cph svg{width:34px;height:34px}.sw-cph b{font-size:var(--fs-m);color:var(--ink)}.sw-cph small{font-size:var(--fs-s)}
.sw-cb{position:absolute;right:var(--sp-2);bottom:var(--sp-2);display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 var(--sp-2);border-radius:9999px;background:rgba(0,0,0,.65);color:#fff;font-size:var(--fs-s);font-weight:700}
.sw-dt{padding:0 var(--sp-3)}.sw-card:not(.sw-cover) .sw-dt{padding:0;margin-top:var(--sp-2)}
.sw-dt summary{list-style:none;cursor:pointer;font-size:var(--fs-s);font-weight:700;color:var(--ink-soft);padding:var(--sp-2) 0;display:flex;justify-content:space-between}
.sw-dt summary::-webkit-details-marker{display:none}.sw-dt summary::after{content:"›";font-size:18px;transition:transform .2s}.sw-dt[open] summary::after{transform:rotate(90deg)}
.sw-f+.sw-f{margin-top:var(--sp-3)}
.sw-f label,.sw-lb{display:block;font-size:var(--fs-s);font-weight:700;color:var(--ink-soft);margin-bottom:6px}
.sw-f input,.sw-f textarea,.sw-body{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-l);padding:6px 0;outline:0;resize:none}
.sw-f textarea{font-size:var(--fs-m)}
.sw-body{font-size:var(--fs-m);line-height:1.6;border:1px solid var(--line);border-radius:12px;padding:var(--sp-2);min-height:220px;resize:vertical}
.sw-mr{display:flex;align-items:center;gap:var(--sp-2);margin-top:6px}.sw-mr small{flex:none;font-size:var(--fs-s);color:var(--ink-soft);min-width:64px;text-align:right}
.sw-m{flex:1;height:6px;border-radius:3px;background:var(--mist);overflow:hidden;margin-top:4px}.sw-mr .sw-m{margin:0}.sw-m i{display:block;height:100%;width:0;background:#e0a526;border-radius:3px;transition:width .2s}
.sw-chips{display:flex;gap:var(--sp-1);flex-wrap:wrap}
.sw-chips button{height:36px;padding:0 var(--sp-3);border-radius:9999px;border:1px solid var(--line);background:var(--mist);color:var(--ink);font:inherit;font-size:var(--fs-m);cursor:pointer}
.sw-chips button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink);border-color:var(--ink);font-weight:700}
.sw-tb{display:flex;gap:var(--sp-1);margin-bottom:var(--sp-2)}
.sw-tb button,.sw-tbl{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 var(--sp-2);border-radius:9999px;border:1px solid var(--line);background:var(--mist);color:var(--ink);font:inherit;font-size:var(--fs-s);font-weight:700;cursor:pointer}
.sw-pc{float:right;font-weight:700;color:var(--ink)}
.sw-seg{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.sw-seg i{height:6px;border-radius:3px;background:var(--mist)}.sw-seg i.on{background:#e0a526}
.sw-ps{display:flex;gap:var(--sp-1);flex-wrap:wrap;margin-top:var(--sp-2)}
.sw-th{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;background:var(--mist)}.sw-th img{width:100%;height:100%;object-fit:cover;display:block}
.sw-th button{position:absolute;top:2px;right:2px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:1;cursor:pointer;padding:0}
.sw-rd{display:flex;gap:var(--sp-2);align-items:flex-start;padding:6px 0}
.sw-ck{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:transparent;flex:none;margin-top:1px}.sw-ck svg{width:14px;height:14px;stroke-width:3}.sw-ck.on{background:#e0a526;border-color:#e0a526;color:#000}
.sw-rl{flex:1;font-size:var(--fs-m)}.sw-rl .sw-m{margin-top:6px}
.sw-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;gap:var(--sp-1);padding:var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom,0px));background:var(--paper);border-top:1px solid var(--line)}
.sw-bar .cv-btn{margin:0;flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:0;padding:0 var(--sp-1);font-size:14px;white-space:nowrap}
.sw-bar .cv-btn:last-child{flex:1.4 1 0}
.swr select[hidden]{display:none!important}
.sw-bar .cv-btn:not(.ghost){background:#003cfd!important;color:#fff!important;border-color:#003cfd!important}
.sw-bar .cv-btn.ghost{background:#fff!important;color:#000!important;border-color:#fff!important}
.sw-ov{position:fixed;inset:0;z-index:9999;background:var(--paper);display:flex;flex-direction:column}
.sw-ov .sw-bar{position:static}
.sw-ovt{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--sp-2) + env(safe-area-inset-top,0px)) var(--sp-3) var(--sp-2)}.sw-ovt b{font-size:var(--fs-l)}.sw-ovt span{width:40px}
.sw-x{width:40px;height:40px;border-radius:50%;border:0;background:var(--mist);color:var(--ink);font-size:20px;cursor:pointer}
.sw-seg2{display:flex;margin:0 var(--sp-3) var(--sp-2);padding:3px;border-radius:9999px;background:var(--mist);border:1px solid var(--line)}
.sw-seg2 button{flex:1;height:36px;border:0;border-radius:9999px;background:transparent;color:var(--ink-soft);font:inherit;font-size:var(--fs-m);font-weight:700;cursor:pointer}
.sw-seg2 button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink)}
.sw-ovb{flex:1;overflow-y:auto;margin:0 var(--sp-3) var(--sp-2);border-radius:var(--r-card);background:#fff}
.sw-ovb .nw{min-height:0}
body.sw-lock{overflow:hidden}

/* Artist Studio + two-button rule: one logo blue, one white */
.swr{padding-bottom:84px}
.as-hd,.as-card{display:flex;align-items:center;gap:12px}
.as-av{width:48px;height:48px;border-radius:50%;background:var(--mist);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none;font-weight:700}
.as-av img{width:100%;height:100%;object-fit:cover}
.as-hn{flex:1;min-width:0;display:block}.as-hn b{display:block;font-size:17px}.as-hn small{font-size:13px}
.as-chip{font-style:normal;font-size:13px;padding:4px 10px;border-radius:999px;background:var(--mist);color:var(--ink);white-space:nowrap}
.as-chip.ok{background:rgba(46,160,67,.18);color:#4ade80}.as-chip.no{background:rgba(220,60,60,.18);color:#f87171}
.sw-ck.on{background:#003cfd;border-color:#003cfd;color:#fff}
.as-lockbox{position:relative;border-radius:14px;overflow:hidden}
.as-mock{filter:grayscale(1) blur(1.5px);opacity:.45;pointer-events:none;padding:4px}
.as-lk{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:16px;background:rgba(0,0,0,.35)}
.as-lk svg{width:32px;height:32px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.as-lk b{font-size:15px;color:#fff}
.as-seg3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.as-seg3 i{height:8px;border-radius:4px;background:var(--mist)}.as-seg3 i.on{background:#e0a526}
.as-steps{display:flex;justify-content:space-between;margin-top:6px;font-size:13px;color:var(--muted,#999)}
.as-up{display:flex;gap:12px;align-items:flex-start}
.as-cov{width:88px;height:88px;border-radius:14px;border:1px dashed var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none;cursor:pointer}
.as-cov span{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;height:100%;justify-content:center;font-size:13px}
.as-cov svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8}.as-cov img{width:100%;height:100%;object-fit:cover}
.as-up .sw-tbl svg,.sw-tbl svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.sw-bar .cv-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.sw-rd{display:flex;gap:12px;align-items:flex-start;padding:10px 0}
.cv-row .cv-btn:not(.ghost),.promo .cv-btn:not(.ghost){background:#003cfd!important;color:#fff!important;border-color:#003cfd!important}
.cv-row .cv-btn.ghost,.promo .cv-btn.ghost{background:#fff!important;color:#000!important;border-color:#fff!important}
.as-hn small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.promo-b #pr-later{background:#fff!important;color:#000!important;border:1px solid #fff!important}
.promo-b a{background:#003cfd!important;color:#fff!important;border:1px solid #003cfd!important}
.swr{max-width:100%;overflow-x:hidden}.swr .sw-card{box-sizing:border-box;max-width:100%}.swr input,.swr textarea{box-sizing:border-box;max-width:100%;width:100%}
/* Spotify-style track rows: no boxes, square cover, title over artist */
.mu-list{display:block}
.mu-c{border:0!important;background:transparent!important;border-radius:0!important;padding:8px 0!important;gap:12px;align-items:center;border-bottom:0}
.mu-c .mu-cv{width:56px;height:56px;flex:none;border-radius:4px!important;overflow:hidden;position:relative;background:var(--mist)}
.mu-c .mu-cv img{width:100%;height:100%;object-fit:cover}
.mu-c .mu-tt b,.mu-c .mu-b>b{font-size:16px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mu-c .mu-b>small{font-size:14px;color:var(--muted,#a7a7a7);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mu-c .mu-play{position:absolute;inset:auto 4px 4px auto;width:26px;height:26px;border-radius:50%;border:0;background:#fff;color:#000;font-size:11px;display:grid;place-items:center;padding:0}
.mu-c .mu-r{display:flex;align-items:center;gap:12px;margin-top:2px}
.mu-c .mu-r small,.mu-c .mu-lk,.mu-c .mu-rp{font-size:13px;color:var(--muted,#a7a7a7);background:none;border:0;padding:0}
.mu-c .mu-go{font-size:13px;color:#fff;text-decoration:underline}
.ap-hero{padding:16px;text-align:center}
.ap-pic{width:140px;height:140px;margin:0 auto 12px;border-radius:50%;overflow:hidden;background:var(--mist);display:grid;place-items:center;font-size:48px;font-weight:800}
.ap-pic img{width:100%;height:100%;object-fit:cover}
.ap-hero h1{font-size:24px;margin:0}.ap-meta{font-size:14px;color:var(--muted,#a7a7a7);margin:4px 0 0}.ap-bio{font-size:15px;line-height:1.5;margin:12px 0 0;text-align:left}
.mu-c .mu-play{width:26px!important;height:26px!important;min-width:0!important;font-size:11px!important;inset:auto 4px 4px auto!important}
/* Profile cover picture */
.pf-cover.has{background-size:cover;background-position:center}.pf-cover.has::after{display:none}
.pf-cover .c{right:12px;top:calc(68px + env(safe-area-inset-top,0px));width:38px;height:38px}
.pf-cover .c svg{width:18px;height:18px}
/* Share sheet picture preview */
.shr-pv{display:block;width:min(48%,200px);margin:0 auto 12px;border-radius:12px;background:var(--mist)}
/* Chat reactions sit under the message bubble, like WhatsApp, not inside it */
.cx .bub.has-rx{margin-bottom:16px;overflow:visible}
.cx .bub .cx-rxs{position:absolute;left:10px;bottom:-17px;margin:0;gap:2px;flex-wrap:nowrap;z-index:1}
.cx .bub.me .cx-rxs{left:auto;right:10px}
.cx .bub .cx-rx{background:#1f2c34;color:#fff;border:2px solid var(--paper,#000);padding:1px 7px;font-size:14px;line-height:1.5}
.cx .bub .cx-rx.on{background:#274b3b}
/* Writing Studio uses the same set */
.swr [hidden]{display:none!important}
.stp .swr .sw-card{background:#212123;border-color:#333335;margin-left:8px;margin-right:8px}
.stp .swr .sw-f input,.stp .swr .sw-f textarea{background:#1a1a1c}
.sw-sc{display:flex;gap:12px;align-items:flex-start}
.sw-scc{width:84px;height:112px;flex:none;border-radius:8px;background:#333335;overflow:hidden;display:grid;place-items:center;color:#9b9ba1;font-size:13px}.sw-scc img{width:100%;height:100%;object-fit:cover}
.sw-sct{min-width:0}.sw-sct b{display:block;font-size:16px}.sw-sct small{display:block;color:var(--muted,#a7a7a7);font-size:13px;margin-top:2px}.sw-sct p{margin:6px 0 0;font-size:14px;line-height:1.45}.sw-tg{margin-top:6px;font-size:13px;color:#7fa2ff}
.sw-ovb.sw-dk{background:#121212;color:#f4f4f5}
.wn-pill.primary{background:#003cfd}
.st-body{min-height:46vh}
.stp .swr .st-cp{align-items:flex-end}
.stp .wn-pill.primary,.stp .cv-btn:not(.ghost){background:#003cfd;border-color:#003cfd;color:#fff}
/* CV page: one blue action, white for the rest; documents and bar */
.cvp{padding-bottom:84px}
.cvp #s-go{display:none}
.cvp .cv-btn:not(.ghost){background:#003cfd!important;color:#fff!important;border:1px solid #003cfd!important}
.cvp .cv-btn.ghost{background:#fff!important;color:#000!important;border:1px solid #fff!important}
.cvp label.cv-btn{display:block;text-align:center;cursor:pointer;box-sizing:border-box}
.cvp .sw-bar .cv-btn{width:auto}
.cvp .cvd .cvd-b{background:#fff;color:#000;border-radius:9999px;padding:6px 14px;font-weight:700}
.cvp .cvd.ok .cvd-b{background:#003cfd;color:#fff}
.cvp .sw-rd{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.sw-ck:not(.on) svg{opacity:0}
/* Payment result and receipt: one structure, same set as the Studios */
.pdw{padding:24px 16px 96px;max-width:640px;margin:0 auto}
.pdn{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px 16px;text-align:center}
.pdn h2{margin:12px 0 6px;font-size:20px}
.pdn p{margin:0 auto;max-width:34ch;font-size:15px;line-height:1.5}
.pdn-i{width:64px;height:64px;border-radius:50%;margin:0 auto;display:grid;place-items:center;background:var(--mist);color:var(--ink)}
.pdn-i.ok{background:rgba(46,160,67,.18);color:#4ade80}.pdn-i.no{background:rgba(220,60,60,.18);color:#f87171}.pdn-i.wait{background:rgba(224,165,38,.18);color:#e0a526}.pdn-i.spin{background:var(--mist)}
.pdn-spin{width:30px;height:30px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#003cfd;animation:pdnr .9s linear infinite}
@keyframes pdnr{to{transform:rotate(360deg)}}
.pdn-rows{margin:16px 0 0;text-align:left;border-top:1px solid var(--line)}
.pdn-rows>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.pdn-rows span{color:var(--muted,#a7a7a7)}.pdn-rows b{text-align:right;word-break:break-all}
.rc-hd{text-align:center;padding:20px 16px 12px;max-width:640px;margin:0 auto}
.rc-hd h2{margin:10px 0 4px;font-size:20px}.rc-amt{display:block;font-size:30px;margin:2px 0 4px}.rc-hd p{margin:0;font-size:14px}
.rc-hd .pdn-i{width:56px;height:56px}
.sw-bar.rc-acts{position:fixed}
.sw-bar .cv-btn{background:inherit}
.sw-bar .cv-btn:not(.ghost){background:#003cfd!important;color:#fff!important;border-color:#003cfd!important}
.sw-bar .cv-btn.ghost{background:#fff!important;color:#000!important;border-color:#fff!important}
@media print{.rc-hd,.sw-bar,.pdn{display:none!important}}

/* Commission dashboard */
.cmd{padding:var(--sp-3);display:grid;gap:var(--sp-2);max-width:560px;margin:0 auto}
.cmd-hd{display:flex;gap:var(--sp-2);align-items:center;padding:var(--sp-3);border:1px solid var(--line);border-radius:var(--r-card);background:var(--card)}
.cmd-av{flex:none;width:64px;height:64px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#003cfd;color:#fff;font-weight:800;font-size:24px}
.cmd-av img{width:100%;height:100%;object-fit:cover}
.cmd-who{min-width:0}.cmd-who b{display:block;font-size:17px}.cmd-who small{display:block;font-size:13px;color:var(--muted,#8a8a93)}
.cmd-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cmd-chip{padding:3px 10px;border-radius:9999px;border:1px solid #e0a526;color:#e0a526;font-size:12px}
.cmd-card{border:1px solid var(--line);border-radius:var(--r-card);background:var(--card);padding:var(--sp-3);border-top:3px solid #e0a526}
.cmd-card h2{margin:0 0 var(--sp-1);font-size:15px}
.cmd-big{font-size:34px;font-weight:800;margin:4px 0 var(--sp-2);color:#16a34a}
.cmd-r{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:15px}
.cmd-r span:first-child{color:var(--muted,#8a8a93)}
.cmd-t b{font-size:17px}
.cmd-note{margin:var(--sp-1) 0 0;font-size:13px;color:var(--muted,#8a8a93);line-height:1.5}
.cmd-pr{display:flex;gap:8px}.cmd-pr input{flex:1;min-height:44px}.cmd-pr .cv-btn{width:auto;margin:0;min-height:44px;padding:0 20px;background:#003cfd!important;color:#fff!important}
.cmd #cm-bank .cv-btn{min-height:44px}
body:has(.cmd) .ad-me{display:none}
.cmd-r span:first-child{flex:1}.cmd-r span:nth-child(2){white-space:nowrap}

/* Welcome video */
.wv{position:fixed;inset:0;z-index:300;background:#000;display:flex;flex-direction:column}
.wv-v{flex:1;position:relative;min-height:0;background:#000}
.wv-v iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.wv-snd{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;min-height:44px;padding:0 16px;border-radius:9999px;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:15px;font-weight:600}
.wv-bar{display:flex;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#000}
.wv-b{flex:1;min-height:44px;border-radius:14px;border:0;font-size:15px;font-weight:700}
.wv-b.w{background:#fff;color:#000}.wv-b.b{background:#003cfd;color:#fff}
.wc{margin:12px 16px;border:1px solid var(--line);border-radius:var(--r-card,14px);background:var(--card);overflow:hidden}
.wc-v{position:relative;aspect-ratio:16/9;background:#000}
.wc-v img,.wc-v iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.wc-p{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;border:0;background:#003cfd;display:grid;place-items:center}
.wc-t{display:flex;align-items:center;justify-content:space-between;padding:8px 12px}
.wc-t b{font-size:15px}.wc-x{width:44px;height:44px;border:0;background:none;color:inherit;font-size:24px}


/* Story ring in the Viewed by list: blue when they have a live story (grey once seen), tap to watch */
.vs-vwrap.has-vs{cursor:pointer}
.vs-vwrap.has-vs .vs-vav{border-color:#fff!important}
.vs-vwrap.has-vs.vs-done .vs-vav{border-color:#5b5b66!important}
.vs-vmsg{flex:none;margin-left:auto;width:44px;height:44px;border:0;background:none;color:#fff;display:grid;place-items:center;border-radius:50%}
.pav.has-vs,.wa-av.has-vs{box-shadow:0 0 0 2px var(--paper,#000),0 0 0 4px #fff;cursor:pointer}
.pav.has-vs.vs-done,.wa-av.has-vs.vs-done{box-shadow:0 0 0 2px var(--paper,#000),0 0 0 4px #5b5b66}
/* Pedia Music: Spotify colours and layout. #121212 page, #1ed760 green, #b3b3b3 grey, white pills. */
body:has(#pg.mu){--paper:#121212;--card:#181818;--mist:#282828;--line:#282828;--muted:#b3b3b3;--ink-soft:#b3b3b3;background:#121212}
body:has(#pg.mu) .pd-bar,body:has(#pg.mu) header,body:has(#pg.mu) .bb{background:#121212}
#pg.mu{--mu-tint:#535353;background:linear-gradient(180deg,var(--mu-tint) 0,#121212 340px) no-repeat,#121212;color:#fff;min-height:70vh}
#pg.mu:not(:has(.mt)){background:#121212}
.mu .mu-c .mu-play,.mu .mu-cp{background:#1ed760!important;color:#000!important}
.mu .mu-lk.on,.mu .mu-lk.on span{color:#1ed760}
.mu .mu-b b,.mu .mu-cn b{color:#fff}
.mu .mu-b small,.mu .mu-cn small,.mu .mu-n,.mu .mu-chh span{color:#b3b3b3}
.mu .mu-rk{color:#b3b3b3}
.mu .mu-seg{background:transparent;padding:0;gap:8px}
.mu .mu-seg a{background:#2a2a2a;color:#fff;height:32px;padding:0 14px;flex:none;font-weight:500}
.mu .mu-seg a[aria-current="page"]{background:#1ed760;color:#000}
.mu .mu-vall a,.mu .mt-go,.mu .mu-top .cv-btn{background:#fff!important;color:#000!important;border:0!important;border-radius:9999px;font-weight:700}
.mu-h,.mu-chh h2{color:#fff;font-weight:700}
.mt{padding:8px 16px 28px}
.mt-cv{width:min(80%,320px);margin:16px auto 24px;border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.mt-t{font-size:24px;font-weight:700;line-height:1.2;margin:0 0 12px;color:#fff}
.mt-a{gap:8px;font-weight:700;font-size:15px}.mt-av{width:32px;height:32px}
.mt-m{color:#b3b3b3;font-size:13px;margin:8px 0 12px}
.mt-row{gap:20px;margin:12px 0 20px}
.mt-row .mu-lk{font-size:0;color:#b3b3b3;padding:0;background:none;border:0;display:grid;place-items:center}
.mt-row .mu-lk svg{fill:none;stroke:currentColor;stroke-width:2}
.mt-row .mu-lk.on{color:#1ed760}.mt-row .mu-lk.on svg{fill:#1ed760;stroke:#1ed760}
.mt-ic{background:none;border:0;color:#b3b3b3;padding:0;display:grid;place-items:center;cursor:pointer}
.mt-play{width:56px;height:56px;background:#1ed760;color:#000;font-size:22px;display:grid;place-items:center;padding:0 0 0 3px}
.mt-play.on,.mt-play[aria-pressed="true"]{padding:0}
.mt-n{color:#b3b3b3}
.mt-more a{width:140px}.mt-more img,.mt-more .mu-ph{width:140px;height:140px;border-radius:4px}.mt-more b{color:#fff;font-size:14px;font-weight:700}.mt-more small{color:#b3b3b3;font-size:13px}
.ap-pic{border-radius:50%}
.mu a:not(.cv-btn):not(.mu-cn):not(.mt-a){color:#fff}.mu .mu-go{color:#fff}
.sub-head .nw-st{margin-left:auto;margin-right:12px;white-space:nowrap}
.mu-stw{display:flex;justify-content:flex-end;margin:8px 16px 0}.mu-stw .nw-st{margin:0}
.sub-head .nw-st{flex:none!important;width:auto!important;display:inline-block;line-height:1.2;padding:6px 12px}.sub-head:has(.nw-st)>span:not(.nw-st){white-space:nowrap}
.mu-brand{background:#1ed760!important;color:#000!important;margin:0}
.mu-brand .nw-logo{background:#000;color:#1ed760}
.mu-brand .nw-st{margin-left:auto;color:#000;border:1px solid #000;font-weight:700;font-size:13px;padding:7px 12px;background:transparent}
.mu .mu-brand a.nw-st{color:#000}
.mu .mu-brand a.nw-st{color:#000!important}
.sx-brand{background:#003cfd;color:#fff;margin:0 0 8px;padding:10px 16px}
.sx-brand .nw-logo{background:#fff;color:#003cfd}
.sx-brand .nw-st{margin-left:auto;color:#fff;border:1px solid #fff;font-weight:700;font-size:13px;padding:7px 12px;background:transparent;text-decoration:none}
/* Firm bars (16 Nov): top and bottom bars are solid, so nothing shows through them or moves behind them while scrolling. */
.pd-top,.pd-nav,.sx-head,.sx-bar,.sx-nav,.rd-bar,.ad-top{background:var(--paper,#000)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Light news page: the strip under the content (room for the bottom bar) matches the page, and the page always fills the screen */
body:has(.nw){background:#f2f2f2}
.nw{min-height:calc(100lvh - 170px)}
/* App-like layout (16 Nov): the top stays put, the middle scrolls, the bottom stays put. Bar heights: top 52, back bar 53, tabs 51. */
.sub-head{position:sticky;top:52px;z-index:29}
.pd-tabs{position:sticky;top:52px;z-index:29}
.mu-brand{position:sticky;top:105px;z-index:28}
.sx-brand{position:sticky;top:52px;z-index:28}
.pd-tabs ~ .pd-main .nw-brand,.pd-wrap:has(.pd-tabs) .nw-brand{position:sticky;top:103px;z-index:28}
/* Back button: a big bold arrow, no box. When the page's own banner already names the page, only the arrow shows. */
.sub-head .sh-back{width:48px;height:48px;margin:-6px 0 -6px -8px;padding:0;background:none!important;border:0;box-shadow:none;border-radius:50%;display:grid;place-items:center;color:var(--ink);-webkit-tap-highlight-color:transparent;flex:none}
.sub-head.sh-dup>span{display:none}
.nsx-cs{display:flex;gap:8px;overflow-x:auto;padding:4px 16px 12px;scrollbar-width:none}.nsx-cs::-webkit-scrollbar{display:none}
.nsx-c{flex:none;padding:0 14px;height:36px;display:grid;place-items:center;border-radius:18px;border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--ink);text-decoration:none}
.nsx-c.on{background:#003cfd;border-color:#003cfd;color:#fff}

/* ===== X-style structure =====
   Two bars are fixed to the screen (top and bottom); the page scrolls between them. Nothing is sized from the browser's moving
   screen height (dvh), so the address bar sliding away cannot shift anything. One place sets the bar heights. */
:root{--bar-t:52px;--bar-b:calc(56px + env(safe-area-inset-bottom,0px))}
.pd-top{position:fixed;top:0;left:0;right:0;margin:0 auto;max-width:640px;width:100%;height:var(--bar-t);box-sizing:border-box;z-index:30}
.pd-wrap:has(>.pd-top){padding-top:var(--bar-t)}
.pd-wrap{min-height:100vh}
body.has-shell{padding-bottom:0}
.pd-main{padding-bottom:calc(var(--bar-b) + 16px)}
.pd-nav{height:var(--bar-b)}
/* Premium: the page between the bars is fixed in place, only the benefits list scrolls */
#pg:has(.up2-card){position:fixed;top:calc(var(--bar-t) + 53px);bottom:var(--bar-b);left:0;right:0;max-width:640px;margin:0 auto;height:auto;padding:0 16px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}
.pd-main:has(.up2-card){padding-bottom:0}
/* Header zone: back row and tabs ride in one fixed block under the top bar, so they can never drift apart. */
.pd-hz{position:fixed;top:var(--bar-t);left:0;right:0;margin:0 auto;max-width:640px;width:100%;z-index:29}
.pd-wrap:has(>.pd-top){padding-top:calc(var(--bar-t) + var(--hz,0px))}
.pd-hz .sub-head,.pd-hz .pd-tabs{position:static}
.mu-brand,.sx-brand,.pd-wrap:has(.pd-tabs) .nw-brand{top:calc(var(--bar-t) + var(--hz,0px))}
#pg:has(.up2-card){top:calc(var(--bar-t) + var(--hz,0px))}
body.fnav-root .pd-hz .sub-head{display:none}
body:has(.nw) .pd-main{background:#f2f2f2}

/* ===== One frame: top bar, header zone, a middle that scrolls on its own, bottom bar =====
   The frame is fixed to the screen between the bottom bar and the top; only .pd-main scrolls. Chat pages keep their own scrolling. */
body.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top){position:fixed;top:0;left:0;right:0;bottom:var(--bar-b);margin:0 auto;max-width:640px;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
body.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top)>.pd-top{position:static;flex:none;max-width:none;margin:0}
body.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top)>.pd-hz{position:static;flex:none;max-width:none;margin:0}
body.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top)>.pd-main{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:16px}
body.has-shell:not(.in-chat) .mu-brand,body.has-shell:not(.in-chat) .sx-brand,body.has-shell:not(.in-chat) .pd-wrap:has(.pd-tabs) .nw-brand{top:0}
body.has-shell:not(.in-chat) .nw{min-height:0}
body.has-shell:not(.in-chat) .chat-box,body.has-shell:not(.in-chat) .cx-dock{bottom:0}
/* Premium fills the middle; only the benefits list scrolls inside it */
body.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top)>.pd-main:has(.up2-card){overflow:hidden;padding-bottom:0;display:flex;flex-direction:column}
body.has-shell:not(.in-chat) #pg:has(.up2-card){position:static;top:auto;bottom:auto;flex:1 1 auto;min-height:0;height:auto;max-width:none;width:100%;margin:0;padding:0 16px;display:flex;flex-direction:column;overflow:hidden}
body.sxnav{--bar-b:calc(66px + env(safe-area-inset-bottom,0px))}

/* Top bar and tab row read as one block, like X: no line between them, one soft line under the tabs. */
.pd-wrap:has(.pd-tabs) .pd-top{border-bottom:0}
.pd-hz .pd-tabs{background:var(--paper,#000)}
/* Who to follow: soft, thin-edged cards with a round logo or photo */
.wtf-c{background:transparent;border:1px solid var(--line);border-radius:12px}
.wtf-n{color:var(--ink);font-weight:700}
.wtf-c small{color:var(--ink-soft)}
.wtf-f{background:#eff3f4;color:#0f1419}
.wtf-av{box-shadow:0 0 0 0 transparent}
.wtf-ch .wtf-av{border:0}
/* Tab logos */
.pd-tabs a svg,.pd-tabs a .tl-m{margin-right:6px;vertical-align:-3px;flex:none}
.pd-tabs a{display:inline-flex;align-items:center}
.pd-tabs .tl-m{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;vertical-align:middle}
.pd-tabs .tl-m svg{margin:0;vertical-align:0}

/* PDF voice player: sits right on top of the bottom bar, keeps its own dark look and button sizes, and the page leaves room for it */
body.has-reader .rd-bar{bottom:var(--bar-b);background:#0f172a!important;color:#fff;border:0;padding:8px 12px;gap:6px;max-width:640px;margin:0 auto;z-index:31}
body.has-reader .rd-bar button{flex:none;border:0;background:rgba(255,255,255,.12);color:#fff;min-width:34px;height:34px;font-size:14px}
body.has-reader.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top)>.pd-main{padding-bottom:80px}
body.has-reader.has-shell:not(.in-chat) .pd-wrap:has(>.pd-top){bottom:calc(var(--bar-b) + 0px)}
/* PDF voice player, first-version look: black bar, round Pedia logo, title, plain icons, outlined speed pill */
body.has-reader .rd-bar{background:#000!important;flex-wrap:nowrap;align-items:center;gap:6px;padding:8px 12px;min-height:56px}
body.has-reader .rd-bar::before{content:"";flex:none;width:38px;height:38px;border-radius:50%;background:#000 url(/icons/pedia-icon.png) center/cover;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
body.has-reader .rd-bar .rd-t{flex:1 1 auto;min-width:0;font:700 14px var(--font-body,inherit);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:4px}
body.has-reader .rd-bar button{background:none;min-width:32px;height:38px;font-size:19px;padding:0}
body.has-reader .rd-bar [data-rd="rate"]{border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:0 10px;font-size:12px;height:30px;min-width:0}
body.has-reader .rd-bar [data-rd="voice"]{font-size:11px;min-width:0;padding:0 4px;opacity:.7}
body.has-reader .rd-bar [data-rd="close"]{font-size:15px;opacity:.7}

/* Inside the scrolling middle, a pinned row sticks to the top of that middle (0), not 52px down, so content can't show through above it. */
body.has-shell:not(.in-chat) .pd-main .pd-tabs,body.has-shell:not(.in-chat) .pd-main .adh-tabs,body.has-shell:not(.in-chat) .pd-main .sub-head{top:0}

/* Agreement tick */
.cs-veil{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center}
.cs-card{width:100%;max-width:640px;background:var(--card,#111);color:var(--ink,#fff);border-radius:14px 14px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
.cs-card h3{margin:0;font-size:17px}
.cs-row{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.4}
.cs-row input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:#003cfd}
.cs-row a{color:#003cfd;font-weight:600}
.cs-act{display:flex;gap:8px}
.cs-act button{flex:1;height:44px;border-radius:14px;font:600 15px var(--font-body,inherit);cursor:pointer}
.cs-ok{background:#003cfd;color:#fff;border:0}.cs-ok:disabled{opacity:.4;cursor:not-allowed}
.cs-no{background:#fff;color:#000;border:1px solid var(--line)}
.su-tick{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.4;margin:12px 0}
.su-tick input{width:22px;height:22px;flex:none;accent-color:#003cfd}
.su-tick a{color:#003cfd;font-weight:600}

/* Pages without the Pedia top bar (writing studio, story reader…) get the same frame: header zone fixed, the middle scrolls on its own. */
body.sxfull:not(.sxnav){--bar-b:0px}
body.has-shell:not(.in-chat) .pd-wrap:not(:has(>.pd-top)):has(>.pd-hz){position:fixed;top:0;left:0;right:0;bottom:var(--bar-b);margin:0 auto;max-width:640px;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
body.has-shell:not(.in-chat) .pd-wrap:not(:has(>.pd-top))>.pd-hz{position:static;top:auto;flex:none;max-width:none;margin:0}
body.has-shell:not(.in-chat) .pd-wrap:not(:has(>.pd-top)):has(>.pd-hz)>.pd-main{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:16px}
.pd-wrap:not(:has(>.pd-top))>.pd-hz{top:0}

/* Story views: a dark pill with the first viewers' faces and the count, like WhatsApp */
.vs-eye button{background:#1f2327;padding:8px 16px 8px 12px;gap:10px;min-height:44px}
.vs-stk{display:inline-flex}
.vs-stk>span{width:28px;height:28px;border-radius:50%;overflow:hidden;margin-left:-8px;border:2px solid #1f2327;background:#3b4148;display:inline-grid;place-items:center;font-size:12px;font-weight:700}
.vs-stk>span:first-child{margin-left:0}
.vs-stk img{width:100%;height:100%;object-fit:cover;display:block}

/* Video story: one link to own work */
.vc-lk{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:rgba(32,44,51,.92);color:#fff;border:1px solid rgba(255,255,255,.1)}
.vc-lk label{display:block;font-size:13px;margin-bottom:8px;opacity:.85}
.vc-lk select{width:100%;min-height:44px;border-radius:12px;border:0;padding:0 12px;font-size:15px;background:#fff;color:#0f172a}
.vc-lk.off{opacity:.45}
.vs-lk{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;box-sizing:border-box;min-height:44px;margin:0 0 12px;padding:8px 14px;border:0;border-radius:14px;background:#003cfd;color:#fff;font:inherit;text-align:left;cursor:pointer}
.vs-lk span{display:flex;flex-direction:column;min-width:0}.vs-lk small{font-size:13px;opacity:.9}.vs-lk b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vs-lk i{font-style:normal;font-size:22px}

/* Chat streak */
.stk{display:inline-flex;align-items:center;gap:2px;margin-left:6px;font-size:13px;font-weight:700;color:#e0a526;vertical-align:middle}
.stk.dim{opacity:.55}.stk.hot{background:rgba(224,165,38,.16);padding:1px 7px;border-radius:9999px}

.stk-top{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font-size:15px;font-weight:700;color:#e0a526;text-decoration:none}.stk-top.dim{opacity:.6}

/* Story overlays: text, pen, emoji */
.so-layer,.so-view{position:absolute;inset:0;overflow:hidden}
.so-view{pointer-events:none;z-index:2}.so-layer{z-index:4;pointer-events:none}.so-layer.pen{pointer-events:auto;touch-action:none}
.so-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.so-i{position:absolute;transform:translate(-50%,-50%);max-width:86%;text-align:center;line-height:1.2;text-shadow:0 1px 4px rgba(0,0,0,.6);word-break:break-word}
.so-i.text{font-size:24px;font-weight:800}.so-i.emoji{font-size:56px}
.so-layer .so-i{pointer-events:auto;touch-action:none}.so-layer.pen .so-i{pointer-events:none}
.so-bar{position:absolute;right:12px;top:calc(64px + env(safe-area-inset-top,0px));z-index:7;display:flex;flex-direction:column;gap:8px}
.so-bar button{width:44px;height:44px;border:0;border-radius:9999px;background:rgba(0,0,0,.5);color:#fff;font-size:17px;font-weight:800}.so-bar button.on{background:#003cfd}
.so-tray{position:absolute;left:0;right:0;bottom:0;z-index:8;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.78);display:flex;flex-direction:column;gap:12px}
.so-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.so-in{flex:1;min-width:0;min-height:44px;border:0;border-radius:14px;padding:0 12px;font-size:15px;font-weight:700;background:#fff;color:#0f172a}
.so-c{width:32px;height:32px;border-radius:9999px;border:2px solid rgba(255,255,255,.6);padding:0}.so-c.on{border-color:#e0a526;box-shadow:0 0 0 2px #e0a526}
.so-done{min-height:44px;padding:0 16px;border:0;border-radius:14px;background:#003cfd;color:#fff;font-weight:800;font-size:15px;margin-left:auto}
.so-em button{width:44px;height:44px;border:0;background:none;font-size:28px}

.vc-foot .so-bar{position:static;flex-direction:row;justify-content:flex-end;gap:8px;margin:0}
.pd-top .r{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.vs-snd{bottom:auto!important;top:96px}

/* Chat: WhatsApp-style reaction pill and selection bar */
.cx-pop{position:fixed;z-index:80;display:flex;align-items:center;gap:2px;padding:6px 8px;border-radius:9999px;background:#202c33;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.cx-pop button{width:42px;height:42px;border:0;background:none;font-size:25px;line-height:1;border-radius:50%;padding:0}
.cx-pop button.mo{background:rgba(255,255,255,.14);color:#fff;font-size:20px;width:34px;height:34px;margin-left:4px}
.bub.sel{box-shadow:none}
#msgs.selmode .bub:not(.sel){opacity:.45}
.sub-head.selmode>*:not(.sel-bar){display:none!important}
.sel-bar{display:flex;align-items:center;gap:6px;width:100%}
.sel-bar button{min-width:44px;height:44px;border:0;background:none;color:inherit;font-size:20px;border-radius:50%;display:grid;place-items:center;padding:0}
.sel-bar b{font-size:17px}

/* Chat: one header only, like WhatsApp (back, picture, name, menu) */
body.in-chat .pd-wrap:not(:has(>.pd-top)){padding-top:var(--hz,56px)}
body.in-chat .pd-hz .sub-head{min-height:56px;display:flex;align-items:center;gap:10px}
body.in-chat .pd-hz .sub-head>span:not(.pav):not(.stk){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sub-head .hd-more{margin-left:auto;flex:none;width:44px;height:44px;border:0;background:none;color:inherit;border-radius:50%;display:grid;place-items:center;padding:0}
.sub-head.selmode .hd-more{display:none!important}

/* Admin: same frame as the app. Small fixed top bar, fixed header zone, only the content scrolls. */
.ad-wrap{position:fixed!important;inset:0;max-width:640px;margin:0 auto;padding:0!important;display:flex;flex-direction:column;overflow:hidden;min-height:0!important}
.ad-wrap>.ad-top{position:static;flex:none;height:52px;box-sizing:border-box;flex-direction:row!important;align-items:center;justify-content:space-between;gap:10px;padding:0 12px!important;text-align:left!important}
.ad-wrap .ad-brand{flex-direction:row!important;gap:10px!important;align-items:center;min-width:0}
.ad-wrap .ad-brand img{width:34px!important;height:34px!important;border-radius:10px!important}
.ad-wrap .ad-brand span{align-items:flex-start!important;min-width:0}
.ad-wrap .ad-brand b{font-size:1.05rem!important;line-height:1.1}
.ad-wrap .ad-brand small{font-size:.75rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-wrap .ad-so{min-height:36px;padding:0 14px;border-radius:9999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-weight:600;font-size:13px}
.ad-wrap>.pd-hz{position:static!important;top:auto;flex:none;max-width:none;margin:0;width:100%}
.ad-wrap>.pd-main{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:24px}
.ad-wrap .pd-main .adh-tabs,.ad-wrap .pd-main .sub-head{top:0}
.ad-stw{margin:8px 16px 0}.ad-stw button{min-height:36px;padding:0 14px;border-radius:9999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-weight:600;font-size:13px}
.rv-dr{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.rv-dr label{display:flex;flex-direction:column;gap:4px;min-width:0}.rv-dr small{font-size:13px;color:var(--ink-soft)}.rv-dr input{width:100%;min-width:0;box-sizing:border-box}

/* Bare pages with no header at all (the profile page): same frame, only the content scrolls. */
body.has-shell:not(.in-chat) .pd-wrap:not(:has(>.pd-top)):not(:has(>.pd-hz)):not(.ad-wrap){position:fixed;top:0;left:0;right:0;bottom:var(--bar-b);margin:0 auto;max-width:640px;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
body.has-shell:not(.in-chat) .pd-wrap:not(:has(>.pd-top)):not(:has(>.pd-hz)):not(.ad-wrap)>.pd-main{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:16px}

/* Story composer: calm layout */
.vc-edit .vc-hint:empty,.vc-edit .vc-meter[data-s=ok]{display:none}
.vc-edit .vc-meter{margin:8px 0 0;padding:8px 12px}
.vc-edit .vc-chips{margin-top:8px}
.vc-edit .so-bar{top:calc(190px + env(safe-area-inset-top,0px))}
.vc-edit .vc-adc{margin:0;padding:8px 12px;border-radius:14px}
.vc-edit .vc-adt small{font-size:12px;margin-top:0}.vc-edit .vc-adt b{font-size:15px}
.vc-edit .vc-lk{margin:0;padding:0;border:0;background:none}
.vc-edit .vc-lk select{background:rgba(32,44,51,.92);color:#fff;font-size:15px}
.vc-edit .vc-aud{display:none}
.vc-edit .vc-send{position:relative}
.vc-edit .vc-capw{flex:1;min-width:0}
.vc-edit .vc-foot{gap:8px;padding-top:40px}
.vc-edit:has(.so-tray:not([hidden])) .vc-foot,.vc-edit:has(.so-tray:not([hidden])) .vc-trim{visibility:hidden}
.vc-edit .so-bar button:not(.on):not(#z){background:rgba(0,0,0,.55)!important;color:#fff!important}

.vc-optb{flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border:0;border-radius:9999px;background:rgba(32,44,51,.92);color:#fff;font-size:15px;font-weight:600;position:relative}
.vc-optb i{position:absolute;top:8px;right:10px;width:8px;height:8px;border-radius:50%;background:#22c55e}
.vc-edit .vc-send{justify-content:space-between}
.vc-sheet{position:absolute;inset:0;z-index:12;background:rgba(0,0,0,.55);display:flex;align-items:flex-end}.vc-sheet[hidden]{display:none}
.vc-sh-in{width:100%;box-sizing:border-box;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:14px 14px 0 0;background:#111b21;color:#fff;display:grid;gap:12px;max-height:80%;overflow:auto}
.vc-sh-t{font-size:17px}
.vc-shd{height:44px;border:0;border-radius:14px;background:#003cfd;color:#fff;font-size:15px;font-weight:700}
.vc-sh-in .vc-adc{background:rgba(255,255,255,.08)}
.vc-sh-in .vc-lk select{background:rgba(255,255,255,.08)}

/* Chat theme picker */
.cx-sub{padding:12px 16px 0;font-size:13px;opacity:.7}
.cx-wps{display:flex;gap:12px;overflow-x:auto;padding:8px 16px 4px}
.cx-wps button{flex:none;position:relative;width:72px;height:104px;border-radius:14px;border:2px solid transparent;padding:0;overflow:hidden}
.cx-wps button span{position:absolute;left:0;right:0;bottom:0;padding:4px 2px;font-size:11px;font-weight:700;color:#fff;background:rgba(0,0,0,.5);text-align:center}
.cx-wps button.on{border-color:#e0a526}
.cx-wps button[aria-label=Plain]{background:var(--card,#111)!important;border-color:var(--line,#333)}.cx-wps button[aria-label=Plain].on{border-color:#e0a526}
.cx{min-height:100%;box-sizing:border-box}
body.in-chat .cx{min-height:calc(100dvh - 60px)}
.cx-wps .cx-plus{position:absolute;top:30px;left:0;right:0;text-align:center;font-size:30px;color:var(--ink,#fff)}
.cx-wps button[data-photo]{border-color:var(--line,#333)}.cx-wps button[data-photo].on{border-color:#e0a526}
.cx-wps button[data-photo] span{color:#fff}

/* Default picture: person icon on a dark rose circle */

.av-def{width:56%;height:56%;display:block}
:has(>.av-def.c0){background:#3b2229!important}.av-def.c0{fill:#f4a3b8}
:has(>.av-def.c1){background:#1f2f4a!important}.av-def.c1{fill:#8fb7ff}
:has(>.av-def.c2){background:#1f3a2e!important}.av-def.c2{fill:#86e0b0}
:has(>.av-def.c3){background:#3d2f12!important}.av-def.c3{fill:#f2c35c}
:has(>.av-def.c4){background:#33214a!important}.av-def.c4{fill:#c9a2ff}
:has(>.av-def.c5){background:#143a3f!important}.av-def.c5{fill:#7fdde6}
:has(>.av-def.c6){background:#4a2a14!important}.av-def.c6{fill:#ffb27a}
:has(>.av-def.c7){background:#3f1f3a!important}.av-def.c7{fill:#f59be0}
:has(>.av-def.c8){background:#24303a!important}.av-def.c8{fill:#a9c1d6}
:has(>.av-def.c9){background:#3a1f1f!important}.av-def.c9{fill:#ff9a9a}

/* Following: People | Posts switch */
.fl-seg{display:flex;gap:8px;padding:12px 16px 0}
.fl-seg button{flex:1;min-height:44px;border-radius:14px;border:1px solid var(--line,#333);background:#fff;color:#111;font-size:15px;font-weight:700}
.fl-seg button.on{background:#003cfd;border-color:#003cfd;color:#fff}
#fl-people[hidden],#feed[hidden]{display:none}
.pf-counts a + a{margin-left:16px}.pf-counts a{display:inline}
/* Journalist writing page: the Publish bar sits above the bottom navigation, not behind it */
.sw-bar.nw-bar{bottom:var(--bar-b,0px)}
body.pd-typing .sw-bar.nw-bar{bottom:0}
.cvp:has(.nw-bar) .swr{padding-bottom:calc(var(--bar-b,56px) + 84px)}
.promo{grid-template-columns:60px minmax(0,1fr)!important;column-gap:12px}
body .promo[data-kind]{grid-template-columns:60px minmax(0,1fr)!important;column-gap:12px!important}body .promo[data-kind] .promo-av{width:60px!important;height:60px!important}
.sub-head.sh-dup{display:none!important}
.sh-back-in{display:inline-grid;place-items:center;width:44px;height:44px;margin:-8px 4px -8px -12px;padding:0;border:0;background:none;color:var(--ink);vertical-align:middle;border-radius:50%}
.ja-ul{margin:12px 0 4px;padding:0;list-style:none;display:grid;gap:8px}
.ja-ul li{position:relative;padding-left:20px;font-size:13px;line-height:1.45;color:var(--muted)}
.ja-ul li::before{content:"";position:absolute;left:4px;top:7px;width:6px;height:6px;border-radius:50%;background:#e0a526}
.cv-box #ja-e{margin:8px 0 0;scroll-margin:80px}
.field.ja-bad textarea,.field.ja-bad select,.field.ja-bad .ja-chips{outline:1px solid #ff5a5f;outline-offset:2px;border-radius:14px}
#ja-g{margin-top:8px}

/* ---- Mentors ---- */
.mn{padding:16px;display:grid;gap:12px}
.mn-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:8px}
.mn-h{font-size:17px;font-weight:700;margin:0}
.mn-sec{padding:4px 0 0}
.mn-name{font-size:17px;font-weight:700}
.mn-p{font-size:15px;line-height:1.45;margin:0}
.mn-s{font-size:13px;line-height:1.4;color:var(--muted);margin:0}
.mn-mut{color:var(--muted)}
.mn-clip{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mn-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.mn-row{display:flex;gap:8px}.mn-row>*{flex:1}
.mn-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mn-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mn-b,.mn-w{min-height:44px;padding:0 16px;border-radius:9999px;font-weight:700;font-size:15px;line-height:1;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;width:100%;box-sizing:border-box}
.mn-b{background:#003cfd;border:1px solid #003cfd;color:#fff}
.mn-w{background:#fff;border:1px solid var(--line);color:#111}
.mn-b:disabled,.mn-w:disabled{opacity:.6;cursor:default}
.mn-sm{width:auto;flex:none;min-width:88px}
.mn .mn-link,.mn-card .mn-link{background:none;border:0;color:var(--muted);font-weight:600;font-size:13px;font-family:inherit;min-height:44px;text-align:left;padding:0;cursor:pointer}
.mn-in{width:100%;box-sizing:border-box;min-height:44px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:15px;font-family:inherit;padding:12px}
textarea.mn-in{resize:vertical}
.mn-seg{display:flex;gap:8px;padding:12px 16px 0;overflow-x:auto;scrollbar-width:none}
.mn-seg::-webkit-scrollbar{display:none}
.mn-seg button{flex:1 0 auto;min-height:44px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:#fff;color:#111;font-weight:700;font-size:13px;font-family:inherit;cursor:pointer}
.mn-seg button.on{background:#003cfd;border-color:#003cfd;color:#fff}
.mn-room{display:grid;gap:12px;max-height:46dvh;overflow-y:auto;padding-right:4px}
.mn-msg{display:grid;gap:4px;background:rgba(127,127,127,.1);border-radius:14px;padding:12px;max-width:88%}
.mn-msg.me{justify-self:end;background:rgba(0,60,253,.18)}
.mn-rq{display:grid;gap:8px}.mn-rq+.mn-rq{border-top:1px solid var(--line);padding-top:12px}
.mn-h1{font-size:17px;font-weight:700;margin:0;padding:16px 16px 0}
.mn-seg button{padding:0 12px}
.mn-seg::after{content:"";flex:0 0 8px}
.cv-box .field input[type="number"]{width:100%;box-sizing:border-box;min-height:44px;padding:0 12px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:15px;font-family:inherit}
.mn-head{display:flex;align-items:center;gap:12px;flex-direction:row}
.mn-grow{flex:1;min-width:0}
.mn-mem{min-height:44px;margin-top:-8px}
.mn-av{width:40px;height:40px;border-radius:50%;overflow:hidden;flex:none;display:inline-grid;place-items:center;background:var(--line)}
.mn-av img,.mn-av svg{width:100%;height:100%;object-fit:cover;display:block}
.mn-row2{display:flex;gap:8px;align-items:flex-end}.mn-row2.me{justify-content:flex-end}
.mn-row2 .mn-av{width:32px;height:32px}
.mn-bub{position:relative;max-width:82%;display:grid;gap:4px;background:rgba(127,127,127,.14);border-radius:14px;padding:8px 12px;cursor:pointer}
.mn-bub.me{background:rgba(0,60,253,.28)}
.mn-nm{font-size:13px;font-weight:700}.mn-nm em{font-style:normal;font-size:11px;color:var(--muted);margin-left:4px}
.mn-q{display:grid;gap:2px;border-left:3px solid #003cfd;background:rgba(127,127,127,.14);border-radius:8px;padding:4px 8px;font-size:13px}
.mn-q span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mn-tm{font-size:11px;color:var(--muted);justify-self:end}
.mn-rx{display:flex;gap:4px;flex-wrap:wrap}.mn-rx span{font-size:13px;border:1px solid var(--line);border-radius:9999px;padding:2px 8px}.mn-rx span.on{border-color:#003cfd}
.mn-act{display:flex;gap:4px;flex-wrap:wrap;padding-top:4px}
.mn-act button{min-height:44px;min-width:44px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:15px;cursor:pointer}
.mn-join{text-align:center;font-size:13px;color:var(--muted);margin:0}
.mn-rep{display:flex;align-items:center;justify-content:space-between;gap:8px;border-left:3px solid #003cfd;background:rgba(127,127,127,.14);border-radius:8px;padding:4px 8px;font-size:13px}
.mn-x{min-width:44px;min-height:44px;background:none;border:0;color:var(--ink);font-size:20px;cursor:pointer}
.mn-pin{background:rgba(224,165,38,.08);border-color:rgba(224,165,38,.4)}
.mn-pdf{min-height:44px;text-align:left;border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:14px;padding:0 12px;font-size:15px;font-weight:600;cursor:pointer;width:100%}
.mn-sw{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px}.mn-sw input{width:22px;height:22px}
.mn-badge{font-size:11px;font-weight:700;color:#7ddc9a;border:1px solid #7ddc9a;border-radius:9999px;padding:2px 8px}
.mn-room{max-height:52dvh}
.mn-sec{padding:4px 0 0}
.mn-head{align-items:center}
.mn-clip2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mn-pdf{line-height:1.3;padding:10px 12px}
.mn .mn-link,.mn-card .mn-link{color:var(--muted)!important;font-weight:600!important}
.mr-pin{margin:12px 16px;padding:12px;border:1px solid rgba(224,165,38,.4);background:rgba(224,165,38,.08);border-radius:14px;display:grid;gap:8px}
.mr-pin p{margin:0;font-size:15px;line-height:1.4}
.mr-pdf,.mr-live{min-height:44px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:15px;font-weight:600;text-align:left;padding:10px 12px;line-height:1.3;cursor:pointer;text-decoration:none;display:flex;align-items:center}
.mr-live{background:#003cfd;border-color:#003cfd;color:#fff;justify-content:center;border-radius:9999px;font-weight:700}
.mr-nm{display:block;font-size:13px;font-weight:700;margin-bottom:2px}.mr-nm em{font-style:normal;font-size:11px;opacity:.7;margin-left:4px}

/* v174: bigger tap areas for small text links/buttons, no visual change */
.ea-link,.sx-more,.rm-add,.mu-lk,.mu-go,.mu-play,.opn-chip{position:relative}
.ea-link::after,.sx-more::after,.rm-add::after,.mu-lk::after,.mu-go::after,.mu-play::after{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
