/* izihub — light & dark, clean product style */
:root, [data-theme="light"] {
  --bg: #FFFFFF; --bg2: #F5F5F7; --card: #FFFFFF; --line: #E6E6EA; --line2: #D9D9DE; --text: #1D1D1F; --muted: #6E6E73;
  --ink: #1D1D1F; --ink-text: #FFFFFF; --gold: #C8A96A; --accent: #8A6A2F; --ok: #2E8B57; --bad: #C0392B; --soft: #F5F5F7;
  --veil: rgba(255,255,255,.78); --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0B0C; --bg2: #141416; --card: #161618; --line: #26262A; --line2: #33333A; --text: #F5F5F7; --muted: #A1A1A6;
  --ink: #F5F5F7; --ink-text: #0B0B0C; --gold: #C8A96A; --accent: #D4B87C; --ok: #5FB98A; --bad: #E07A6E; --soft: #1C1C1F;
  --veil: rgba(11,11,12,.8); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 900px) { body { font-size: 17px; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--gold); color: #111; }
.ic { width: 20px; height: 20px; flex: none; }
h1, h2, h3, .h1, .h2 { font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
h1, .h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; margin: 0 0 20px; }
h2, .h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin: 0 0 16px; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.015em; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin: 0 0 12px; }
.center { text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 16px; align-items: center; }
.row.wrapr { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--veil); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.logo b { font-weight: 700; color: var(--accent); }
.logo svg { width: 24px; height: 24px; color: var(--text); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--muted); padding: 6px 0; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; color: var(--text); cursor: pointer; position: relative; padding: 0 10px; font: inherit; transition: background .15s; }
.iconbtn:hover { background: var(--bg2); }
.iconbtn.meb { background: var(--ink); color: var(--bg); width: 40px; min-width: 40px; height: 40px; padding: 0; margin-left: 4px; }
.iconbtn.meb:hover { background: var(--ink); opacity: .85; }
.iconbtn.meb[aria-current] { box-shadow: 0 0 0 3px var(--gold); }
.badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.langsel { position: relative; }
.langsel summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover { background: var(--bg2); }
.langsel summary .ic { width: 18px; height: 18px; }
.langmenu { position: absolute; right: 0; top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; min-width: 170px; box-shadow: var(--shadow); z-index: 50; }
.langmenu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.langmenu a:hover { background: var(--bg2); }
.langmenu a[aria-current] { font-weight: 600; color: var(--accent); }
@media (max-width: 899px) { .nav, .desk { display: none !important; } .hdr .wrap { gap: 12px; } }

/* bottom nav on phones */
.bnav { display: none; }
@media (max-width: 899px) {
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--veil); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; color: var(--muted); position: relative; min-height: 56px; }
  .bnav a[aria-current="page"] { color: var(--text); }
  .bnav a.plus .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--ink-text); }
  .bnav .badge { top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 500 15px/1 Onest, system-ui, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary:hover { opacity: .88; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1D1D1F; }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: var(--bg2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.link { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card.tight { padding: 18px; }
.card.soft { background: var(--bg2); border-color: transparent; }
.lcard { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; transition: box-shadow .2s, transform .2s, border-color .2s; height: 100%; }
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line2); }
.lcard h3 { font-size: 20px; line-height: 1.25; margin: 0; }
.lcard .body { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.lcard .meta span { display: inline-flex; gap: 6px; align-items: center; }
.lcard .meta .ic { width: 15px; height: 15px; }
.lcard .by { display: flex; gap: 8px; align-items: center; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.lcard .thumb { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--bg2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
.tag.need { background: #FFF1E6; color: #B4561B; }
.tag.offer { background: #EAF6EF; color: #1F7A4A; }
[data-theme="dark"] .tag.need { background: #2A1D14; color: #F0A877; }
[data-theme="dark"] .tag.offer { background: #13261C; color: #7FD3A5; }
.tag.ok { background: #EAF6EF; color: #1F7A4A; }
.tag.bad { background: #FDECEA; color: #B03A2E; }
[data-theme="dark"] .tag.ok { background: #13261C; color: #7FD3A5; }
[data-theme="dark"] .tag.bad { background: #2C1513; color: #F0948A; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.section { padding: 96px 0; }
.section.tight { padding: 56px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.wrap.section { padding: 64px 24px; }
@media (max-width: 600px) { .wrap.section { padding: 40px 16px; } }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* hero */
.hero { padding: 96px 0 40px; text-align: center; }
.hero h1 { max-width: 980px; margin-left: auto; margin-right: auto; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 760px; margin: 0 auto; line-height: 1.5; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
@media (max-width: 600px) { .hero { padding: 56px 0 24px; } }
.blurin span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .blurin span { opacity: 0; filter: blur(12px); transform: translateY(8px); animation: blurIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes blurIn { to { opacity: 1; filter: blur(0); transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
.ask { display: flex; gap: 8px; padding: 6px 6px 6px 20px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); max-width: 680px; margin: 32px auto 0; box-shadow: var(--shadow); }
.ask .ic { color: var(--muted); align-self: center; }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 0 4px; height: 48px; outline: none; }
.ask input::placeholder { color: var(--muted); }
.ask-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* showcase: dark product card with a live mock of the platform */
.showcase { margin: 56px auto 0; max-width: 1100px; border-radius: 32px; background: #0B0B0C; color: #F5F5F7; padding: 56px 32px 0; overflow: hidden; position: relative; }
.showcase .glow { position: absolute; inset: auto 0 -40% 0; height: 70%; background: radial-gradient(ellipse at 50% 100%, rgba(200,169,106,.28), transparent 65%); pointer-events: none; }
.showcase .stage { position: relative; display: flex; gap: 28px; justify-content: center; align-items: flex-end; }
.phone { width: 300px; height: 520px; border-radius: 44px 44px 0 0; background: #1B1B1E; border: 10px solid #2A2A2E; border-bottom: 0; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 10px; flex: none; }
.phone .notch { width: 110px; height: 26px; border-radius: 0 0 16px 16px; background: #2A2A2E; margin: -14px auto 4px; }
.phone .ph-h { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #2B2B30; }
.phone .ph-h b { font-size: 14px; display: block; }
.phone .ph-h small { font-size: 11px; color: #A1A1A6; }
.bub { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; background: #26262B; color: #F5F5F7; }
.bub.me { align-self: flex-end; background: #C8A96A; color: #1D1D1F; }
.bub small { display: block; font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; }
.sysline { align-self: center; font-size: 11px; color: #A1A1A6; border: 1px solid #2B2B30; border-radius: 999px; padding: 4px 10px; }
.once { align-self: flex-start; width: 160px; height: 96px; border-radius: 14px; background: repeating-linear-gradient(135deg,#222226 0 10px,#1B1B1E 10px 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #C8A96A; text-align: center; padding: 8px; }
.once .ic { width: 22px; height: 22px; }
.mini { width: 340px; display: flex; flex-direction: column; gap: 12px; padding-bottom: 36px; flex: none; }
.mini .mc { background: #FFFFFF; color: #1D1D1F; border-radius: 20px; padding: 16px; text-align: left; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.mini .mc b { display: block; font-size: 15px; letter-spacing: -0.01em; margin: 8px 0 4px; }
.mini .mc p { margin: 0; font-size: 12px; color: #6E6E73; }
.mini .mc .tag { height: 24px; font-size: 11px; }
.mini .mc .tag.need { background: #FFF1E6; color: #B4561B; }
.mini .mc .tag.offer { background: #EAF6EF; color: #1F7A4A; }
.mini .ai { background: #161618; color: #F5F5F7; border: 1px solid #2B2B30; border-radius: 20px; padding: 14px 16px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.mini .ai .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; position: relative; }
.mini .ai .dot svg { width: 18px; height: 18px; color: #1D1D1F; }
.mini .ai .dot::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #34C759; border: 2px solid #161618; }
@media (max-width: 899px) { .showcase { padding: 32px 16px 0; border-radius: 24px; } .mini { display: none; } .phone { width: 280px; height: 470px; } }

/* steps strip */
.steps { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 0; background: var(--bg2); border-radius: 28px; padding: 10px; margin-top: 40px; text-align: left; }
.steps .st { padding: 22px; border-radius: 20px; }
.steps .st.on { background: var(--card); box-shadow: var(--shadow); }
.steps .st i { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--ink-text); font-style: normal; font-size: 13px; font-weight: 600; align-items: center; justify-content: center; margin-bottom: 14px; }
.steps .st.on i { background: var(--gold); color: #1D1D1F; }
.steps .st b { display: block; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; }
.steps .st span { font-size: 14px; color: var(--muted); }
.steps .cta { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.steps .cta p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .steps .cta { grid-column: 1 / -1; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* duo cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo a { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 28px; min-height: 240px; transition: transform .2s; position: relative; overflow: hidden; }
.duo a:hover { transform: translateY(-3px); }
.duo .d1 { background: #FFF1E6; color: #1D1D1F; }
.duo .d2 { background: #EAF6EF; color: #1D1D1F; }
[data-theme="dark"] .duo .d1 { background: #22170F; color: #F5F5F7; }
[data-theme="dark"] .duo .d2 { background: #0F2017; color: #F5F5F7; }
.duo .t { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.duo .d { font-size: 16px; opacity: .72; max-width: 420px; }
.duo .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.duo .n { position: absolute; right: 28px; top: 20px; font-size: 64px; font-weight: 700; letter-spacing: -0.05em; opacity: .14; }
@media (max-width: 760px) { .duo a { padding: 26px; min-height: 0; } .duo .n { font-size: 44px; right: 20px; top: 14px; } .duo .t { padding-right: 64px; } .duo .go { margin-top: 18px; } }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.cat { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--bg2); transition: background .15s, transform .15s, box-shadow .15s; min-height: 76px; border: 0; color: var(--text); font: inherit; text-align: left; width: 100%; cursor: pointer; }
.cat:hover, .cat.on { transform: translateY(-2px); background: var(--card); box-shadow: var(--shadow); }
.cat.on { outline: 2px solid var(--ink); }
.cat .ci { width: 44px; height: 44px; border-radius: 14px; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; }
.cat .ci .ic { color: var(--accent); }
.cat b { font-weight: 600; font-size: 15px; display: block; line-height: 1.3; }
.cat small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; margin-top: 2px; }

/* dark band section */
.band { background: #0B0B0C; color: #F5F5F7; border-radius: 32px; padding: 64px 48px; }
.band h2 { color: #F5F5F7; }
.band .muted { color: #A1A1A6; }
.band .eyebrow { color: #C8A96A; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { background: #161618; border: 1px solid #26262A; border-radius: 22px; padding: 22px; }
.feat .ic { color: #C8A96A; width: 26px; height: 26px; margin-bottom: 14px; }
.feat b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.015em; }
.feat span { font-size: 14px; color: #A1A1A6; }
@media (max-width: 600px) { .band { padding: 40px 20px; border-radius: 24px; } }
[data-theme="dark"] .band { background: #141416; }

/* boards */
.board-head { padding: 56px 0 24px; }
.board-head h1 { font-size: clamp(36px, 5vw, 60px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 28px; }
.field, .filters select, .filters input, select.field, textarea.field { height: 44px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 0 14px; }
.filters select, select.field { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.filters input[type=search] { flex: 1; min-width: 200px; border-radius: 999px; padding: 0 18px; }
textarea.field { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 120px; width: 100%; }
.field.w { width: 100%; }
.field:focus, textarea.field:focus { border-color: var(--text); outline: none; }
label.lbl, span.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: 500 14px Onest, sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip.on { border-color: var(--ink); background: var(--ink); color: var(--ink-text); }
.empty { padding: 56px 24px; text-align: center; border-radius: 24px; background: var(--bg2); color: var(--muted); }
.empty > .ic { display: block; width: 32px; height: 32px; color: var(--accent); margin: 0 auto 12px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }

/* listing page */
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--text); }
.lpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 16px 0 72px; }
@media (max-width: 899px) { .lpage { grid-template-columns: 1fr; gap: 24px; } }
.lpage h1 { font-size: clamp(32px, 4.4vw, 52px); }
.lpage .text { white-space: pre-wrap; font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 24px 0; }
.gallery a { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.author { display: flex; gap: 12px; align-items: center; }
.ava { width: 48px; height: 48px; border-radius: 50%; background: var(--ava, var(--bg2)); display: inline-flex; align-items: center; justify-content: center; flex: none; color: #1D1D1F; }
.ava svg { width: 62%; height: 62%; }
.ava.lg { width: 96px; height: 96px; }
.ava.sm { width: 34px; height: 34px; }
.ava.xs { width: 24px; height: 24px; }
[data-theme="dark"] .ava { filter: brightness(.92); }
.sticky-side { position: sticky; top: 84px; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 3vw, 32px); }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose a { color: var(--accent); }
.prose .lead { font-size: 20px; }
.tablewrap { overflow-x: auto; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 64px; font-size: 14px; color: var(--muted); background: var(--bg2); }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.ftr-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ftr-cols div { display: flex; flex-direction: column; gap: 10px; }
.ftr-cols b { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.ftr a:hover { color: var(--text); }
.ftr-bot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.ftr .statlink { opacity: .5; }
.langs { display: inline-flex; gap: 2px; }
.langs a { padding: 4px 8px; border-radius: 8px; font-weight: 600; font-size: 12px; }
.langs a.on { background: var(--card); color: var(--text); }

/* forms / wizard */
.wiz { max-width: 760px; margin: 0 auto; padding: 48px 0 88px; }
.progress { display: flex; gap: 6px; margin-bottom: 36px; }
.progress i { flex: 1; height: 4px; background: var(--bg2); border-radius: 4px; }
.progress i.on { background: var(--ink); }
.opt { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line2); border-radius: 22px; cursor: pointer; background: var(--card); text-align: left; width: 100%; color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.opt:hover, .opt.on { border-color: var(--ink); box-shadow: var(--shadow); }
.opt .ic { color: var(--accent); margin-top: 3px; }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.notice { padding: 14px 16px; border-radius: 16px; background: var(--bg2); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice .ic { color: var(--accent); margin-top: 1px; }
.notice.warn { background: #FDF0EE; color: #7A2B22; }
.notice.warn .ic { color: var(--bad); }
[data-theme="dark"] .notice.warn { background: #2C1513; color: #F3C2BC; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); margin: 2px 0 0; flex: none; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos .ph { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; position: relative; background: var(--bg2); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--veil); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photos .add { width: 96px; height: 96px; border-radius: 16px; border: 1.5px dashed var(--line2); display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.photos .add:hover { border-color: var(--text); color: var(--text); }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border-radius: 999px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tabs button, .tabs a { border: 0; background: none; color: var(--muted); font: 500 14px Onest, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs .on { color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.list { display: flex; flex-direction: column; }
.list > * { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }

/* chats */
.chatlist a { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 18px; }
.chatlist a:hover { background: var(--bg2); }
.chatlist .unread { min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 60px); max-width: 860px; margin: 0 auto; }
@media (max-width: 899px) { .chat { height: calc(100dvh - 60px - 64px - env(safe-area-inset-bottom)); } }
.tgapp .chat { height: 100dvh; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-h .t { min-width: 0; flex: 1; }
.chat-h .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-h .t small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; background: var(--bg); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; background: var(--bg2); align-self: flex-start; position: relative; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--ink-text); }
.msg.me a { color: inherit; text-decoration: underline; }
.msg .mt { font-size: 11px; opacity: .6; margin-top: 4px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.msg .rq { font-size: 13px; opacity: .75; border-left: 2px solid var(--gold); padding-left: 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.msg .acts { position: absolute; top: -16px; right: 8px; display: none; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 2px; box-shadow: var(--shadow); }
.msg:hover .acts, .msg.sel .acts { display: flex; }
.msg .acts button { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.msg .acts button:hover { color: var(--text); }
.msg .acts .ic { width: 16px; height: 16px; }
.sys { align-self: center; font-size: 12px; color: var(--muted); padding: 5px 12px; background: var(--bg2); border-radius: 999px; text-align: center; max-width: 92%; }
.fraud { align-self: stretch; font-size: 13px; padding: 10px 12px; border-radius: 14px; background: #FDF0EE; color: #7A2B22; }
[data-theme="dark"] .fraud { background: #2C1513; color: #F3C2BC; }
.photo-msg { width: 220px; height: 160px; border-radius: 16px; overflow: hidden; background: var(--line); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.photo-msg img { width: 100%; height: 100%; object-fit: cover; }
.photo-msg.once { background: repeating-linear-gradient(135deg, var(--bg2) 0 12px, var(--card) 12px 24px); flex-direction: column; gap: 6px; font-size: 13px; text-align: center; padding: 12px; color: var(--text); }
.photo-msg.once .ic { width: 28px; height: 28px; color: var(--accent); }
.composer { border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.tgapp .composer { padding-bottom: 10px; }
.composer .rbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 8px; }
.composer .crow { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-size: 15px; padding: 10px 16px; line-height: 1.45; }
.composer textarea:focus { outline: none; border-color: var(--text); }
.viewer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #F5F5F7; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer canvas { max-width: 96vw; max-height: 80vh; border-radius: 12px; }
.viewer .cd { font-size: 40px; font-weight: 600; color: #C8A96A; }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal .box { background: var(--card); border-radius: 28px; padding: 28px; width: 100%; max-width: 480px; max-height: 90dvh; overflow: auto; box-shadow: var(--shadow); }
.modal .box h3 { font-size: 24px; margin-bottom: 12px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 95; background: var(--ink); color: var(--ink-text); padding: 12px 20px; border-radius: 999px; font-size: 14px; max-width: 92vw; box-shadow: var(--shadow); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; font-size: 14px; box-shadow: var(--shadow); }
@media (max-width: 899px) { .cookie { bottom: calc(72px + env(safe-area-inset-bottom)); } }
.cookie .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 600px) { .cookie .btns { grid-template-columns: 1fr; } }
.cookie .btns .btn { min-height: 42px; padding: 0 10px; font-size: 14px; }

/* login */
.login-card { display: flex; gap: 28px; align-items: stretch; }
.login-card h3 { display: flex; gap: 8px; align-items: center; }
.login-card h3 .ic { color: var(--accent); }
.or { position: relative; width: 1px; background: var(--line); flex: none; }
.or span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--card); color: var(--muted); font-size: 12px; padding: 6px 0; }
.qrbox { flex: none; }
.qr { width: 196px; height: 196px; border-radius: 20px; background: #FFFFFF; padding: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.desk-only { display: block; }
@media (max-width: 899px), (hover: none) { .desk-only { display: none !important; } .login-card { display: block; } }

/* admin & stats */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.kpi { border-radius: 22px; padding: 18px; background: var(--bg2); }
.kpi .v { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 8px 0 4px; }
.kpi .l { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kpi .s { font-size: 13px; color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.chartbox { border-radius: 22px; padding: 16px; background: var(--bg2); }
.chartbox svg { width: 100%; height: 200px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.modq { border-left: 3px solid var(--line); }
.modq.red { border-left-color: var(--bad); }

/* floating AI assistant (pill on the right, vertically centred) */
.ai-tab { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: #1D1D1F; color: #FFFFFF; font: 500 15px/1 Onest, system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 28px rgba(0,0,0,.22); transition: transform .2s, opacity .2s; }
.ai-tab:hover { transform: translateY(-50%) scale(1.03); }
.ai-tab .av { width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.ai-tab .av svg { width: 22px; height: 22px; color: #1D1D1F; }
.ai-tab .av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #34C759; border: 2px solid #1D1D1F; }
[data-theme="dark"] .ai-tab { background: #F5F5F7; color: #1D1D1F; }
[data-theme="dark"] .ai-tab .av { background: #1D1D1F; }
[data-theme="dark"] .ai-tab .av svg { color: #F5F5F7; }
[data-theme="dark"] .ai-tab .av::after { border-color: #F5F5F7; }
.ai-open .ai-tab { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .ai-tab { right: 10px; padding: 5px; } .ai-tab .lbl { display: none; } }
.ai-panel { position: fixed; top: 16px; right: 16px; bottom: 16px; width: 420px; max-width: calc(100vw - 32px); z-index: 85; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.18); transform: translateX(calc(100% + 32px)); visibility: hidden; transition: transform .25s cubic-bezier(.2,.7,.2,1), visibility .25s; }
.ai-panel.on { transform: none; visibility: visible; }
.ai-h { display: flex; align-items: center; gap: 4px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); }
.ai-t { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.ai-t .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--ink-text); display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.ai-t .av svg { width: 22px; height: 22px; }
.ai-t .av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #34C759; border: 2px solid var(--card); }
.ai-t b { display: block; font-weight: 600; }
.ai-t small { display: block; color: var(--muted); font-size: 12px; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { padding: 12px 14px; border-radius: 20px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
.ai-msg.bot { background: var(--bg2); align-self: flex-start; }
.ai-msg.me { background: var(--ink); color: var(--ink-text); align-self: flex-end; }
.ai-msg.err { background: #FDF0EE; color: #7A2B22; font-size: 14px; }
[data-theme="dark"] .ai-msg.err { background: #2C1513; color: #F3C2BC; }
.ai-sugg { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ai-sugg .chip { text-align: left; white-space: normal; line-height: 1.35; padding: 10px 14px; min-height: 0; }
.ai-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; white-space: normal; }
.ai-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ai-card:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.ai-card .tag { align-self: flex-start; height: 24px; font-size: 11px; }
.ai-card b { font-weight: 600; font-size: 14px; }
.ai-card small { color: var(--muted); font-size: 12px; }
.ai-typing { display: flex; gap: 4px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ai-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.ai-f textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; padding: 10px 16px; line-height: 1.45; }
.ai-f textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-f textarea:focus { outline: none; border-color: var(--text); }
.ai-f .btn { min-width: 48px; padding: 0 14px; }
.ai-note { margin: 0; padding: 0 16px 12px; font-size: 11px; color: var(--muted); }
@media (max-width: 899px) { .ai-panel { top: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); z-index: 95; } }
@media print { .ai-tab, .ai-panel { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade .3s ease-out both; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .reveal { opacity: 1 !important; transform: none !important; } .blurin span { opacity: 1 !important; filter: none !important; } }
