/* Sisu Psikoloji — Nordic calm: linen and oak, fjord teal into sea blue (the logo), a mustard accent from the office armchair.
   Fraunces for headings, Manrope for everything else. The variable names keep PATH's so its games render unchanged. */
@import url('/fonts/fonts.css');

:root {
  --bg: #F6F3EE; --bg2: #EFEAE2; --bg3: #E9E3D9; --card: #FFFFFF; --ink: #1E2A30; --ink2: #4C5960; --muted: #89939A; --line: #E7E0D5; --line2: #F0EBE3;
  --teal: #3E9E91; --teal-d: #2B7C72; --teal-l: #DEF0EC; --sea: #2B9AC9; --sea-d: #1D78A1; --sea-l: #DDEFF8;
  --coral: #D67A66; --coral-l: #F8E4DE; --sun: #E3B341; --sun-l: #FAF0D3; --lav: #8A82C0; --lav-l: #ECEAF6; --sky: #5BA7D6; --sky-l: #DFEEF8;
  --mint: #86C9A8; --rose: #D98BA3; --oak: #B98F62; --oak-l: #F3EADF; --moss: #7FA67A;
  --ok: #4E9F6E; --warn: #D99433; --bad: #C9554A;
  --grad: linear-gradient(135deg, #6CC3B0 0%, #2B9AC9 100%);
  --r: 20px; --r-s: 12px; --r-xs: 8px;
  --shadow: 0 1px 2px rgba(30,42,48,.04), 0 4px 16px rgba(30,42,48,.05);
  --shadow-m: 0 2px 6px rgba(30,42,48,.05), 0 12px 32px rgba(30,42,48,.08);
  --shadow-l: 0 20px 60px rgba(30,42,48,.18);
  --f: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; --fd: Fraunces, Georgia, serif;
  --vh: 100dvh; --side: 252px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: var(--vh); }
h1, h2, h3, h4, .display { font-family: var(--fd); font-weight: 500; letter-spacing: -.01em; margin: 0; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; } h2 { font-size: 24px; line-height: 1.2; } h3 { font-size: 18px; }
em.s, .serif-i { font-family: var(--fd); font-style: italic; font-weight: 400; }
a { color: var(--sea-d); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sea-l); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .ink2 { color: var(--ink2); }
.small { font-size: 13px; } .xs { font-size: 11.5px; } .b { font-weight: 700; } .nowrap { white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.col { display: grid; gap: 10px; } .gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.grow { flex: 1; min-width: 0; } .center { display: grid; place-items: center; } .tc { text-align: center; } .tr { text-align: right; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  background: var(--ink); color: #fff; transition: transform .1s, background .15s, box-shadow .15s, filter .15s; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: translateY(1px) scale(.99); }
.btn.sea { background: var(--sea); } .btn.teal, .btn.fjord { background: var(--teal); } .btn.grad { background: var(--grad); box-shadow: 0 6px 18px #2b9ac933; }
.btn.ghost { background: transparent; color: var(--ink2); border: 1.5px solid var(--line); } .btn.ghost:hover { background: var(--card); filter: none; }
.btn.soft { background: var(--sea-l); color: var(--sea-d); } .btn.soft.teal { background: var(--teal-l); color: var(--teal-d); }
.btn.white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn.coral, .btn.danger { background: var(--coral); } .btn.sun { background: var(--sun); color: #4a3400; } .btn.lav { background: var(--lav); }
.btn.sm { padding: 7px 13px; font-size: 13px; } .btn.lg { padding: 14px 26px; font-size: 16px; } .btn.xs { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: transparent; color: var(--ink2); transition: background .15s, transform .1s; position: relative; flex: none; }
.icon-btn:hover { background: var(--bg2); } .icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.solid { background: var(--card); box-shadow: var(--shadow); }
.icon-btn.off { background: var(--coral); color: #fff; } .icon-btn.on { background: var(--sea); color: #fff; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 13px; font-weight: 600; border: 1.5px solid transparent; transition: all .15s; }
button.chip { cursor: pointer; } button.chip:hover { border-color: var(--line); background: var(--card); }
.chip.on { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); letter-spacing: .02em; }
.tag.sea { background: var(--sea-l); color: var(--sea-d); } .tag.teal { background: var(--teal-l); color: var(--teal-d); } .tag.sun { background: var(--sun-l); color: #7a5a00; }
.tag.coral { background: var(--coral-l); color: #9a4434; } .tag.lav { background: var(--lav-l); color: #5b53a0; } .tag.oak { background: var(--oak-l); color: #7b5a35; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; display: inline-block; box-shadow: 0 0 0 0 #e5484d88; animation: livePulse 1.6s infinite; flex: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px #e5484d00; } 100% { box-shadow: 0 0 0 0 #e5484d00; } }

/* ---------- surfaces ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line2); }
.card.pad { padding: 20px; } .card.pad-l { padding: 28px; } .card.flat { box-shadow: none; }
.card.hover { transition: transform .2s var(--ease), box-shadow .2s; cursor: pointer; } .card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .card-h h3 { font-size: 18px; flex: 1; }
.input, .select, textarea.input { width: 100%; padding: 11px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: var(--sea); box-shadow: 0 0 0 4px var(--sea-l); }
textarea.input { resize: vertical; line-height: 1.5; }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2389939A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
label.f { display: block; font-weight: 700; font-size: 12.5px; margin: 14px 0 6px; color: var(--ink2); letter-spacing: .01em; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--sea); }
.seg { display: inline-flex; background: var(--bg2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.kbd { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }

/* avatars */
.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; background: var(--teal); letter-spacing: .02em; position: relative; }
.av.sm { width: 28px; height: 28px; font-size: 11px; } .av.lg { width: 56px; height: 56px; font-size: 19px; } .av.xl { width: 88px; height: 88px; font-size: 30px; }
.av.emoji { background: var(--bg2); font-size: 18px; } .av.lg.emoji { font-size: 30px; }
.av .on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.avs { display: flex; } .avs .av { border: 2px solid #fff; margin-left: -8px; } .avs .av:first-child { margin-left: 0; }

/* covers (courses, meetings) */
.cover { background: var(--grad); position: relative; overflow: hidden; }
.cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 85% 0%, #ffffff40, transparent 60%), radial-gradient(400px 180px at 0% 100%, #00000014, transparent 60%); }
.cover.fjord { background: linear-gradient(135deg, #6CC3B0, #2B9AC9); } .cover.birch { background: linear-gradient(135deg, #E9E1D3, #C9B79C); }
.cover.aurora { background: linear-gradient(120deg, #7ED3B2 0%, #3FA7B5 45%, #7A6FB0 100%); } .cover.moss { background: linear-gradient(135deg, #A9C79A, #5E8F6B); }
.cover.sand { background: linear-gradient(135deg, #F2DDBF, #D9A877); } .cover.dusk { background: linear-gradient(135deg, #9B8FD0, #D98BA3); }
.cover.sea { background: linear-gradient(135deg, #7CC2E6, #1D78A1); } .cover.mustard { background: linear-gradient(135deg, #F2CF6B, #C99640); }
.cover .mt { position: absolute; left: 0; right: 0; bottom: -2px; height: 46%; opacity: .25; z-index: 1; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: var(--vh); }
.sidebar { position: sticky; top: 0; height: var(--vh); display: flex; flex-direction: column; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #FBF9F5, var(--bg)); z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; text-decoration: none !important; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--fd); font-size: 21px; font-weight: 500; display: block; line-height: 1; }
.brand span { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: grid; align-content: start; gap: 1px; overflow: auto; flex: 1; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.nav .grp { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; color: var(--ink2); font-weight: 600; font-size: 14px; text-decoration: none !important; transition: background .15s, color .15s; position: relative; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: var(--bg2); color: var(--ink); }
.nav a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav a.on svg { color: var(--sea); opacity: 1; }
.nav a .cnt { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--coral); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.nav a .lv { margin-left: auto; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); margin-top: 10px; cursor: pointer; }
.me-card .grow b { display: block; font-size: 13.5px; } .me-card .grow span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: 13.5px; min-width: 260px; cursor: pointer; transition: box-shadow .15s; }
.search:hover { box-shadow: var(--shadow); } .search svg { width: 16px; height: 16px; }
.page { padding: 10px 28px 60px; max-width: 1360px; width: 100%; margin: 0 auto; animation: pageIn .35s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.page-h h1 { flex: 1; min-width: 240px; } .page-h p { margin: 6px 0 0; color: var(--ink2); max-width: 640px; }
.mob-top, .tabbar { display: none; }

/* grids */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gauto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gauto.s { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.split.l { grid-template-columns: 320px minmax(0, 1fr); }
.split > *, .g2 > *, .g3 > *, .g4 > *, .col > * { min-width: 0; }

/* hero */
.hero { border-radius: 28px; padding: 30px 32px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(120deg, #4FB5A4 0%, #2B9AC9 55%, #3C6FA8 100%); box-shadow: var(--shadow-m); }
.hero > div:not(.scene-band):not(.blob):not(.rings) { position: relative; z-index: 3; }
.hero h1 { color: inherit; font-size: clamp(28px, 3.4vw, 42px); } .hero p { color: inherit; opacity: .9; margin: 8px 0 0; max-width: 560px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, -20px) scale(1.15); } }
.hero .rings { position: absolute; right: -60px; top: -80px; width: 380px; height: 380px; opacity: .22; }
.hero .btn.white { color: var(--sea-d); }

/* KPI tiles */
.kpi { padding: 16px 18px; display: grid; gap: 4px; }
.kpi .v { font-family: var(--fd); font-size: 34px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--ink2); font-weight: 600; } .kpi .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px; }
.kpi .ic svg { width: 18px; height: 18px; }

/* lists */
.list { display: grid; } .li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line2); }
.li:last-child { border-bottom: 0; } .li.click { cursor: pointer; border-radius: 12px; padding: 12px 10px; margin: 0 -6px; } .li.click:hover { background: var(--bg); }
.li .t { font-weight: 700; } .li .s { font-size: 12.5px; color: var(--muted); }
.timebox { width: 54px; text-align: center; flex: none; } .timebox b { display: block; font-family: var(--fd); font-size: 20px; font-weight: 500; line-height: 1.1; } .timebox span { font-size: 11px; color: var(--muted); font-weight: 700; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); } .empty .ei { font-size: 36px; margin-bottom: 6px; opacity: .7; } .empty b { display: block; color: var(--ink2); font-size: 15px; margin-bottom: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--bg); }

/* tabs (page level) */
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.ptabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--ink); } .ptabs button .n { font-size: 11px; background: var(--bg2); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--ink2); }

/* progress */
.bar { height: 6px; background: var(--bg2); border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s var(--ease); }
.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--sea) calc(var(--p) * 1%), var(--bg2) 0); display: grid; place-items: center; flex: none; }
.ring::before { content: attr(data-l); width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* toasts, modal, drawer, popover */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; pointer-events: none; justify-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-l); animation: toastIn .3s var(--ease); pointer-events: auto; font-size: 14px; max-width: min(520px, 92vw); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-bg { position: fixed; inset: 0; background: rgba(30,42,48,.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 1500; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-l); padding: 26px; width: min(560px, 100%); max-height: calc(var(--vh) - 32px); overflow: auto; animation: modalIn .28s var(--ease); }
.modal.wide { width: min(860px, 100%); } .modal.xwide { width: min(1100px, 100%); }
.modal h2 { margin-bottom: 4px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.drawer-bg { position: fixed; inset: 0; z-index: 1400; background: rgba(30,42,48,.18); animation: fadeIn .2s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: var(--card); z-index: 1401; box-shadow: var(--shadow-l); display: flex; flex-direction: column; animation: drawerIn .3s var(--ease); }
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; } .drawer-b { padding: 16px 20px; overflow: auto; flex: 1; }
.pop { position: absolute; z-index: 1300; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-l); border: 1px solid var(--line2); width: 380px; max-height: 70vh; overflow: auto; animation: modalIn .2s var(--ease); }
.notif { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; font-size: 13.5px; } .notif:hover { background: var(--bg); } .notif.new { background: #2b9ac90d; }
.notif .ni { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 15px; }

/* command palette */
.cmdk { width: min(620px, 100%); padding: 0; overflow: hidden; } .cmdk input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 20px; font-size: 16px; box-shadow: none !important; }
.cmdk .res { max-height: 50vh; overflow: auto; padding: 6px; } .cmdk .it { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; cursor: pointer; } .cmdk .it.on, .cmdk .it:hover { background: var(--bg); }
.cmdk .it .k { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; }

/* markdown */
.md { font-size: 15.5px; line-height: 1.7; color: var(--ink); } .md h2 { font-size: 24px; margin: 28px 0 10px; } .md h3 { font-size: 19px; margin: 22px 0 8px; }
.md p { margin: 10px 0; } .md ul, .md ol { padding-left: 22px; } .md li { margin: 4px 0; }
.md blockquote { margin: 18px 0; padding: 14px 18px; background: var(--sea-l); border-radius: 14px; border-left: 4px solid var(--sea); color: var(--ink); }
.md code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; font-size: .92em; } .md hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.md table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; } .md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; } .md th { background: var(--bg); }
.md strong { font-weight: 800; }

/* social feed */
.post { padding: 18px 20px; } .post .ph { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .post .pb { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.post .pa { display: flex; gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line2); }
.post .pa button { border: 0; background: none; padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.post .pa button:hover { background: var(--bg); } .post .pa button.on { color: var(--coral); } .post .pa svg { width: 17px; height: 17px; }
.cmt { display: flex; gap: 8px; margin-top: 10px; } .cmt .bub { background: var(--bg); border-radius: 14px; padding: 8px 12px; font-size: 14px; flex: 1; }
.poll .opt { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-top: 6px; cursor: pointer; overflow: hidden; font-weight: 600; font-size: 14px; display: flex; }
.poll .opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sea-l); z-index: 0; transition: width .5s var(--ease); } .poll .opt span { position: relative; z-index: 1; } .poll .opt.mine { border-color: var(--sea); }
.kind-badge { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }

/* notes wall (town hall) */
.wall { columns: 3 240px; column-gap: 14px; } .sticky { break-inside: avoid; margin: 0 0 14px; padding: 16px 16px 12px; border-radius: 4px 18px 18px 18px; box-shadow: var(--shadow); position: relative; animation: stickIn .4s var(--ease) both; }
@keyframes stickIn { from { opacity: 0; transform: translateY(8px) rotate(-1deg); } }
.sticky .st { font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; } .sticky .sf { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink2); }
.sticky.not { background: #FFF6D8; } .sticky.soru { background: #E3F1FA; } .sticky.oneri { background: #E3F4EC; } .sticky.tesekkur { background: #F9E6EC; }

/* calendar */
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.cal .ch { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); background: #FBF9F5; position: sticky; top: 0; } .cal .ch b { display: block; font-family: var(--fd); font-size: 22px; font-weight: 500; } .cal .ch span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cal .ch.today b { color: #fff; background: var(--sea); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; margin: 2px auto 0; }
.cal .hcol { border-right: 1px solid var(--line2); } .cal .hcol div { height: 56px; font-size: 11px; color: var(--muted); text-align: right; padding: 2px 8px 0 0; font-weight: 600; }
.cal .dcol { position: relative; border-right: 1px solid var(--line2); background-image: linear-gradient(var(--line2) 1px, transparent 1px); background-size: 100% 56px; cursor: copy; }
.cal .dcol:last-child { border-right: 0; } .cal .dcol.today { background-color: #2b9ac908; }
.cal .ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12px; overflow: hidden; cursor: pointer; border-left: 3px solid; box-shadow: 0 1px 2px #0000000d; transition: transform .12s; line-height: 1.3; }
.cal .ev:hover { transform: scale(1.02); z-index: 3; box-shadow: var(--shadow-m); } .cal .ev b { display: block; font-size: 12.5px; }
.cal .ev.iptal { opacity: .45; text-decoration: line-through; } .cal .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--coral); z-index: 4; } .cal .now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.cal-wrap { max-height: calc(var(--vh) - 220px); overflow: auto; border-radius: 18px; }

/* course */
.ccard { overflow: hidden; display: flex; flex-direction: column; } .ccard .cover { height: 132px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.ccard .cover .ttl { position: relative; z-index: 2; font-family: var(--fd); font-size: 21px; line-height: 1.15; text-shadow: 0 1px 12px #0002; }
.ccard .cover .tp { position: relative; z-index: 2; display: flex; gap: 6px; } .ccard .cover .tp .tag { background: #ffffff38; color: #fff; backdrop-filter: blur(6px); }
.ccard .cb { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.lesson { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; } .lesson:hover { background: var(--bg); } .lesson.on { background: var(--sea-l); }
.lesson .lk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); flex: none; font-size: 14px; } .lesson.done .lk { background: var(--teal); color: #fff; }
.quiz-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; margin: 6px 0; font-weight: 600; transition: all .15s; }
.quiz-opt:hover { border-color: var(--sea); } .quiz-opt.sel { border-color: var(--sea); background: var(--sea-l); } .quiz-opt.right { border-color: var(--ok); background: #e3f4ea; } .quiz-opt.wrong { border-color: var(--bad); background: #f9e3e0; }

/* messages */
.chatwrap { display: grid; grid-template-columns: 320px 1fr; height: calc(var(--vh) - 150px); min-height: 460px; overflow: hidden; padding: 0; }
.convs { border-right: 1px solid var(--line); overflow: auto; } .conv { display: flex; gap: 10px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--line2); } .conv:hover { background: var(--bg); } .conv.on { background: var(--sea-l); }
.thread { display: flex; flex-direction: column; min-height: 0; } .msgs-l { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #FCFBF8; }
.bubble { max-width: 70%; padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); box-shadow: var(--shadow); align-self: flex-start; font-size: 14.5px; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--sea); color: #fff; border-radius: 18px 18px 6px 18px; } .bubble time { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* tools library */
.tool-card { border: 0; text-align: left; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; transition: transform .2s var(--ease), box-shadow .2s; position: relative; overflow: hidden; border: 1px solid var(--line2); }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.tool-card .ti { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; }
.tool-card h4 { font-size: 17px; } .tool-card p { margin: 0; font-size: 13px; color: var(--ink2); }
.tool-stage { background: var(--card); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); min-height: 60vh; border: 1px solid var(--line2); }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; } .chart text { font-family: var(--f); font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* questionnaire */
.qitem { padding: 16px 0; border-bottom: 1px solid var(--line2); } .qitem .qt { font-weight: 600; margin-bottom: 10px; display: flex; gap: 10px; } .qitem .qt .n { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; }
.qopts { display: flex; flex-wrap: wrap; gap: 6px; } .qopts button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; transition: all .12s; }
.qopts button:hover { border-color: var(--sea); } .qopts button.on { background: var(--sea); color: #fff; border-color: var(--sea); }
.score-hero { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 18px; background: var(--bg); }
.score-hero .big { font-family: var(--fd); font-size: 54px; line-height: 1; }

/* ============ LIVE ROOM ============ */
.room { height: var(--vh); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: #F3EFE8; }
.rtop { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); min-height: 60px; z-index: 5; }
.rtop .brand img { width: 34px; height: 34px; } .rtop .brand { padding: 0; }
.rtop .ttl b { font-family: var(--fd); font-size: 17px; font-weight: 500; display: block; line-height: 1.2; } .rtop .ttl span { font-size: 12px; color: var(--muted); font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px #4e9f6e33; } .status-dot.warn { background: var(--warn); } .status-dot.bad { background: var(--bad); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink2); font-size: 13.5px; background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.rbody { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.rbody.noside { grid-template-columns: minmax(0, 1fr); }
.rmain { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto 1fr; position: relative; }
.rmain.gallery { grid-template-rows: 1fr; }
/* filmstrip of videos above the stage when a tool is open */
.strip { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: thin; }
.strip .vtile { width: 200px; flex: none; }
.stage-wrap { min-height: 0; display: grid; grid-template-rows: auto 1fr; padding: 8px 12px 12px; }
.stage-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; min-height: 44px; } .stage-head h2 { font-size: 20px; }
.stage { position: relative; min-height: 0; overflow: auto; padding: 16px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line2); }
/* gallery grid when no tool is open */
.gallery-grid { display: grid; gap: 10px; padding: 12px; align-content: center; justify-content: center; height: 100%; min-height: 0; }
.gallery-grid .vtile { width: 100%; }
.vtile { position: relative; border-radius: 18px; overflow: hidden; background: #2D3940; aspect-ratio: 16/10; box-shadow: var(--shadow); transition: box-shadow .2s; }
.vtile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #2D3940; }
.vtile.mirror video { transform: scaleX(-1); }
.vtile.screen video { object-fit: contain; background: #111; }
.vtile .vname { position: absolute; left: 8px; bottom: 8px; background: rgba(20,28,32,.55); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; max-width: calc(100% - 16px); }
.vtile .vname svg { width: 13px; height: 13px; }
.vtile .vph { position: absolute; inset: 0; display: grid; place-items: center; color: #d4dde0; text-align: center; padding: 12px; font-weight: 600; font-size: 13px; }
.vtile .vph .av { margin: 0 auto 8px; }
.vtile .hand { position: absolute; top: 8px; left: 8px; background: var(--sun); color: #4a3400; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; animation: wave 1s ease-in-out infinite alternate; }
@keyframes wave { to { transform: rotate(-8deg); } }
.vtile .tmenu { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; } .vtile:hover .tmenu { opacity: 1; }
.vtile .tmenu button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(20,28,32,.55); color: #fff; display: grid; place-items: center; }
.vtile.speaking { box-shadow: 0 0 0 3px var(--teal), var(--shadow); }
.vtile.spot { outline: 3px solid var(--sun); }
.vtile .react { position: absolute; left: 50%; bottom: 30%; font-size: 44px; animation: floatUp 2.2s ease-out forwards; pointer-events: none; }
@keyframes floatUp { 0% { transform: translate(-50%, 20px) scale(.4); opacity: 0; } 20% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -120px) scale(1); opacity: 0; } }
.qual { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 2px; align-items: flex-end; }
.qual i { width: 4px; background: #fff8; border-radius: 1px; } .qual i:nth-child(1){height:5px} .qual i:nth-child(2){height:8px} .qual i:nth-child(3){height:11px}
.qual.q3 i { background: #7ee2a8; } .qual.q2 i:nth-child(-n+2) { background: #f4c542; } .qual.q1 i:nth-child(1) { background: #ff7a6b; }
.rbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px 14px; background: transparent; position: relative; }
.rbar .icon-btn { width: 48px; height: 48px; background: var(--card); box-shadow: var(--shadow); } .rbar .icon-btn svg { width: 21px; height: 21px; }
.rbar .icon-btn.off { background: var(--coral); color: #fff; } .rbar .icon-btn.on { background: var(--sea); color: #fff; }
.rbar .icon-btn.leave { background: #D9534F; color: #fff; width: 64px; border-radius: 999px; }
.rbar .lbl { position: absolute; left: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.reactbar { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); background: var(--card); border-radius: 999px; box-shadow: var(--shadow-l); padding: 6px; display: flex; gap: 2px; z-index: 20; animation: modalIn .2s; }
.reactbar button { border: 0; background: none; font-size: 26px; width: 46px; height: 46px; border-radius: 50%; } .reactbar button:hover { background: var(--bg); transform: scale(1.15); }
.rside { border-left: 1px solid var(--line); background: #FBF9F5; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--card); }
.tabs button { border: 0; background: none; padding: 12px 10px; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; position: relative; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--sea); }
.tabs .badge { position: absolute; top: 5px; right: -2px; background: var(--coral); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; line-height: 15px; }
.panel { overflow: auto; padding: 14px 16px 22px; min-height: 0; }
.panel h3 { font-size: 15px; margin: 16px 0 6px; font-family: var(--f); font-weight: 800; } .panel h3:first-child { margin-top: 0; }
.guide p, .guide li { font-size: 13.5px; color: var(--ink2); } .guide ul { padding-left: 18px; margin: 6px 0; }
.guide .q { background: var(--card); border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 13.5px; border-left: 3px solid var(--lav); cursor: pointer; } .guide .q:hover { background: var(--lav-l); }
.guide .caution, .caution { background: var(--sun-l); border-radius: 12px; padding: 9px 12px; font-size: 13px; color: #5d4500; }
.log { display: grid; gap: 6px; } .log .e { font-size: 13px; background: var(--card); border-radius: 10px; padding: 7px 10px; display: grid; grid-template-columns: 42px 1fr; gap: 6px; }
.log .e time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; padding-top: 1px; } .log .e.sys { background: transparent; color: var(--muted); padding: 2px 10px; }
.log .e.note { border-left: 3px solid var(--sun); } .log .e.snap { border-left: 3px solid var(--sky); white-space: pre-wrap; } .log .e.c { border-left: 3px solid var(--teal); } .log .e.flag { border-left: 3px solid var(--coral); }
.stickers { display: flex; flex-wrap: wrap; gap: 6px; } .stickers button { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); } .stickers button:active { transform: scale(.9); }
.chat { display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 200px; gap: 8px; }
.chat .msgs { overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.chat .m { max-width: 88%; padding: 7px 12px; border-radius: 14px; background: var(--card); font-size: 14px; align-self: flex-start; box-shadow: var(--shadow); } .chat .m .who { font-size: 11px; font-weight: 800; color: var(--muted); display: block; }
.chat .m.me { align-self: flex-end; background: var(--sea); color: #fff; } .chat .m.me .who { color: #ffffffb0; } .chat .m.priv { background: var(--lav-l); } .chat .m.me.priv { background: var(--lav); }
.people .p { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line2); font-size: 14px; } .people .p .grow b { display: block; font-size: 13.5px; }
.knock { position: fixed; right: 16px; bottom: 90px; z-index: 800; width: min(380px, calc(100vw - 32px)); padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-l); border: 2px solid var(--sea); animation: toastIn .3s; }
.knock .who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }

/* tool/game library inside the room */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.gcard { border: 1px solid var(--line2); text-align: left; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.gcard .gi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; }
.gcard h4 { margin: 0; font-family: var(--fd); font-size: 17px; font-weight: 500; } .gcard p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.gcard .tags { display: flex; gap: 4px; flex-wrap: wrap; } .gcard.cur { outline: 3px solid var(--sea); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hello { height: 100%; display: grid; place-items: center; text-align: center; } .hello .sunny { font-size: 84px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } } .hello h1 { font-size: clamp(28px, 5vw, 44px); }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1950; overflow: hidden; }
.fx-big { position: absolute; left: 50%; top: 45%; font-size: 150px; transform: translate(-50%,-50%); animation: pop 1.8s ease-out forwards; }
@keyframes pop { 0% { transform: translate(-50%,-50%) scale(.2); opacity: 0; } 20% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 35% { transform: translate(-50%,-50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%,-80%) scale(1); opacity: 0; } }
.confetti { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; } @keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.pcur { position: absolute; z-index: 50; pointer-events: none; transition: left .08s linear, top .08s linear; }
.pcur::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--lav); border: 2px solid #fff; box-shadow: var(--shadow); }
.pcur span { position: absolute; left: 10px; top: 8px; background: var(--lav); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.prejoin { min-height: var(--vh); display: grid; place-items: center; padding: 20px; background: radial-gradient(1100px 520px at 0% -10%, #DEF0EC, transparent), radial-gradient(900px 520px at 110% 110%, #DDEFF8, transparent), var(--bg); }
.prejoin .card { padding: 28px; width: min(580px, 100%); }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatars button { font-size: 32px; aspect-ratio: 1; border: 2px solid transparent; border-radius: 16px; background: var(--bg2); } .avatars button.on { border-color: var(--sea); background: var(--sea-l); transform: scale(1.06); }
.preview { position: relative; border-radius: 18px; overflow: hidden; background: #2D3940; aspect-ratio: 16/10; margin-top: 12px; } .preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.meter { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 22px; } .meter i { width: 5px; border-radius: 2px; background: #fff9; height: 6px; transition: height .08s; }
.waitroom { text-align: center; }
.breath-orb { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; background: radial-gradient(circle at 35% 35%, #fff, #CFEAE4 40%, #3E9E91 100%); animation: orb 8s ease-in-out infinite; box-shadow: 0 0 60px #3e9e9155; }
@keyframes orb { 0%,100% { transform: scale(.7); } 45%,55% { transform: scale(1.05); } }
/* PATH emotion memory cards */
.mgrid { display: grid; gap: 14px; justify-content: center; }
.mcard { aspect-ratio: 5/6; border: 0; padding: 0; background: none; perspective: 900px; animation: deal .45s both ease-out; }
.mcard .in { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,.7,.3,1.2); transform-style: preserve-3d; } .mcard.up .in { transform: rotateY(180deg); }
.mcard .f, .mcard .b { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; }
.mcard .f { transform: rotateY(180deg); background: #fff; }
.mcard .b { background: radial-gradient(circle at 30% 25%, #ffffff33 0 18%, transparent 19%), radial-gradient(circle at 75% 80%, #ffffff22 0 22%, transparent 23%), linear-gradient(135deg, #6CC3B0, #2B9AC9); border: 4px solid #fff; }
.mcard .b span { font-family: var(--fd); font-size: clamp(40px, 6vw, 64px); color: #fff; font-weight: 600; text-shadow: 0 3px 0 #0002; }
.mcard:not(.up):hover .in { transform: translateY(-3px) rotate(-1deg); } .mcard.done .f { box-shadow: 0 0 0 4px var(--ec), var(--shadow); animation: matched .6s; }
@keyframes deal { from { opacity: 0; transform: translateY(24px) scale(.85) rotate(-6deg); } } @keyframes matched { 40% { transform: rotateY(180deg) scale(1.08); } }

/* ---------- landing ---------- */
.land-nav { display: flex; align-items: center; gap: 18px; padding: 18px clamp(16px, 4vw, 48px); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.land-nav a.l { color: var(--ink2); font-weight: 600; font-size: 14px; }
.section { padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } .rbody { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-l); }
  .sidebar.open { transform: none; }
  .topbar { padding: 10px 16px; } .search { min-width: 0; flex: 1; } .search .kbd { display: none; }
  .page { padding: 6px 16px 96px; }
  .g2, .g3 { grid-template-columns: 1fr; } .split.l { grid-template-columns: 1fr; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 4px 8px; text-decoration: none !important; border-radius: 12px; }
  .tabbar a svg { width: 22px; height: 22px; } .tabbar a.on { color: var(--sea-d); }
  .mob-menu { display: inline-grid !important; }
  .chatwrap { grid-template-columns: 1fr; } .chatwrap.thread-open .convs { display: none; } .chatwrap:not(.thread-open) .thread { display: none; }
  .rbody { grid-template-columns: 1fr; }
  .rside { position: fixed; left: 0; right: 0; bottom: 0; height: 66vh; z-index: 600; border-left: 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-l); transform: translateY(105%); transition: transform .25s ease; }
  .rside.open { transform: none; }
  .strip .vtile { width: 140px; } .hide-m { display: none !important; }
  .cal { grid-template-columns: 44px repeat(7, minmax(84px, 1fr)); } .cal-wrap { overflow-x: auto; }
  .pop { position: fixed; left: 10px !important; right: 10px; width: auto; top: 64px !important; }
  .wall { columns: 2 160px; }
}
.mob-menu { display: none !important; }
@media (max-width: 560px) {
  .rtop .ttl span, .hide-s { display: none; } .rbar { gap: 6px; } .rbar .icon-btn { width: 42px; height: 42px; } .rbar .lbl { display: none; }
  .g4 { grid-template-columns: 1fr 1fr; } .hero { padding: 22px; border-radius: 22px; } .modal { padding: 20px; border-radius: 20px; }
  .avatars { grid-template-columns: repeat(6, 1fr); } .avatars button { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .sidebar, .topbar, .tabbar, .no-print { display: none !important; } .shell { display: block; } .page { padding: 0; } .card { box-shadow: none; border: 1px solid #ddd; } }

/* ================= Nordic nature layer ================= */
/* paper-like grain on the linen background */
body { background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* live room ambience */
.room { position: relative; isolation: isolate; }
.room > *:not(.room-amb) { position: relative; z-index: 1; }
.room-amb { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.room-amb .ph { position: absolute; inset: -20px; background: center/cover no-repeat; opacity: 0; transition: opacity 1.2s; filter: saturate(1.05); }
.room-amb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.room.themed { background: #1b2a31; }
.room.themed .room-amb .ph { opacity: 1; }
.room.themed .room-amb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,26,.35), rgba(10,20,26,.15) 40%, rgba(10,20,26,.45)); }
.room.themed .rtop { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.4); }
.room.themed .rside { background: rgba(251,249,245,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-left-color: rgba(255,255,255,.4); }
.room.themed .tabs { background: transparent; }
.room.themed .rbar .lbl { color: #ffffffc0; }
.room.themed .stage { background: rgba(255,255,255,.94); }
.room.themed .stage-head h2, .room.themed .stage-head { color: #fff; } .room.themed .stage-head .btn.ghost { color: #fff; border-color: #ffffff66; }
.room.themed .vtile { box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.amb-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.amb-pick button { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 8px; font-size: 12.5px; font-weight: 700; text-align: left; }
.amb-pick button.on { border-color: var(--sea); background: var(--sea-l); }
.amb-pick .sw { width: 26px; height: 26px; border-radius: 8px; background: center/cover; flex: none; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.bg-grid button { border: 2px solid transparent; background: none; padding: 0; border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--ink2); text-align: center; }
.bg-grid button.on { border-color: var(--sea); } .bg-grid button:hover .bgt { transform: scale(1.03); }
.bg-grid .bgt { aspect-ratio: 16/10; border-radius: 12px; background: center/cover; display: grid; place-items: center; font-size: 26px; margin-bottom: 5px; transition: transform .2s; }
/* themed pre-join */
.prejoin.themed { position: relative; isolation: isolate; background: #1b2a31; }
.prejoin.themed::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--photo) center/cover; filter: brightness(.7); }
.prejoin.themed canvas.amb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.prejoin.themed .card { background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
/* welcome moment */
.welcome-ov { position: fixed; inset: 0; z-index: 3000; background: radial-gradient(ellipse at 50% 120%, #123E4A 0%, #0B1D2A 55%, #060E15 100%); display: grid; place-items: center; transition: opacity .9s var(--ease), transform .9s var(--ease); animation: fadeIn .6s; cursor: pointer; }
.welcome-ov .wo-photo { position: absolute; inset: 0; background: center/cover; opacity: .28; filter: saturate(1.1) blur(1px); }
.welcome-ov canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome-ov.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.welcome-ov .wo-c { position: relative; text-align: center; color: #fff; padding: 24px; max-width: 640px; cursor: default; }
.welcome-ov .wo-animal { width: 150px; height: 150px; margin: 0 auto 10px; animation: woIn 1.2s var(--ease) both .2s; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.welcome-ov .wo-animal svg { width: 100%; height: 100%; }
.welcome-ov .wo-place { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; animation: woIn 1s var(--ease) both .5s; }
.welcome-ov h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); margin: 10px 0; animation: woIn 1.1s var(--ease) both .7s; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.welcome-ov .wo-fact { opacity: .85; font-size: 15px; line-height: 1.5; animation: woIn 1s var(--ease) both 1.1s; }
.welcome-ov .wo-skip { margin-top: 14px; animation: woIn 1s var(--ease) both 1.5s; }
@keyframes woIn { from { opacity: 0; transform: translateY(14px); } }
/* nature art helpers */
.art { display: inline-block; line-height: 0; } .art svg { width: 100%; height: 100%; }
.scene-band { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; line-height: 0; }
.scene-band svg { width: 100%; height: 100%; display: block; }
.side-scene { margin: 10px -14px -14px; height: 86px; position: relative; overflow: hidden; border-top: 1px solid var(--line2); }
.side-scene svg { width: 100%; height: 100%; display: block; }
.empty .ea { width: 110px; height: 110px; margin: 0 auto 6px; }
.empty .ea svg { width: 100%; height: 100%; }
.friend { display: flex; align-items: center; gap: 14px; }
.friend .fa { width: 72px; height: 72px; flex: none; animation: bob 5s ease-in-out infinite; }
.friend .fa svg { width: 100%; height: 100%; }
/* salons */
.salon-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 230px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-m); transition: transform .3s var(--ease), box-shadow .3s; cursor: pointer; isolation: isolate; }
.salon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.salon-card .sp { position: absolute; inset: 0; background: center/cover; z-index: -2; transition: transform 1.2s var(--ease); }
.salon-card:hover .sp { transform: scale(1.06); }
.salon-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,26,.05) 20%, rgba(10,20,26,.78)); }
.salon-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.salon-card .sc { padding: 18px 18px 16px; }
.salon-card h3 { color: #fff; font-size: 23px; } .salon-card .pl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.salon-card .sa { position: absolute; top: 12px; right: 12px; width: 64px; height: 64px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.salon-card .sa svg { width: 100%; height: 100%; }
.salon-card .live { position: absolute; top: 14px; left: 14px; }
.salon-hero { position: relative; border-radius: 30px; overflow: hidden; color: #fff; min-height: 340px; display: flex; align-items: flex-end; padding: clamp(22px, 4vw, 40px); isolation: isolate; box-shadow: var(--shadow-m); margin-bottom: 22px; }
.salon-hero .sp { position: absolute; inset: 0; background: center/cover; z-index: -2; }
.salon-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,18,24,.78) 0%, rgba(8,18,24,.35) 55%, rgba(8,18,24,.1)); }
.salon-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.salon-hero h1 { color: #fff; } .salon-hero p { color: #ffffffd8; max-width: 560px; }
.salon-hero .sa { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 20px; width: clamp(110px, 16vw, 190px); height: clamp(110px, 16vw, 190px); filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); animation: bob 6s ease-in-out infinite; }
.salon-hero .sa svg { width: 100%; height: 100%; }
.credit { font-size: 10.5px; opacity: .7; }
@media (max-width: 760px) { .salon-hero .sa { display: none; } }
/* layout safety: grid/list children may shrink; rows wrap instead of squeezing names */
.list > *, .gauto > *, .lib > *, .wall > *, .princ > * { min-width: 0; }
.li { flex-wrap: wrap; row-gap: 6px; } .li > .grow { min-width: 120px; }
.eyebrow { overflow-wrap: anywhere; }
.card > *, .tool-card > *, .gcard > *, .post > * { min-width: 0; }
.page-h p { overflow-wrap: anywhere; }
