/* PixelForge — clickable prototype. Style lock v2 (owner 26.10.2026): physical acrylic tiles seen from the front.
   Layout base 1920×1080, scaled to the window with CSS zoom (app.js fit()). */
:root {
  --bg: #1C1D20;
  --panel: #26272B;
  --edge: #34353A;
  --dk: #2F3035;          /* dark smoked tile on a panel (inputs, chips, rows) */
  --dk-edge: #3C3D43;
  --dk-hover: #35363C;
  --tile: #E9E8E5;        /* light frosted acrylic */
  --tile-hover: #F1F0ED;
  --tile-2: #D6D5D1;      /* grey tile (team note, wireframe blocks) */
  --ink: #1D1E21;
  --ink-2: #5A5B60;
  --ai: #3A2A22;
  --ai-ink: #F2E8E1;
  --orange: #FF5B2E;
  --orange-ink: #FFFFFF;
  --text: #EEEDEA;
  --muted: #A4A5AA;
  --dim: #77787E;
  --green: #4CC27A;
  --radius: 12px;
  --font: 'Golos Text', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, textarea { outline: none; border: 0; background: none; }
.num, time, .t { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; }
svg.i.l { width: 24px; height: 24px; }

#stage { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); }
#app { width: 1920px; height: 1080px; position: relative; display: grid; grid-template-columns: 104px 1fr; grid-template-rows: minmax(0, 1fr); gap: 16px; padding: 16px; font-size: 16px; line-height: 1.35; }
#app.narrow::after { content: 'Прототип зібрано для десктопа (1920×1080). На вузькому екрані поверніть пристрій або відкрийте на комп\'ютері.'; position: absolute; left: 16px; right: 16px; bottom: -40px; color: var(--muted); font-size: 14px; }

/* ---------- materials ---------- */
.panel { background: var(--panel); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255,255,255,.035), 0 6px 18px rgba(0,0,0,.28); }
.tile { background: linear-gradient(180deg, #EDECE9, #E6E5E2); color: var(--ink); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,0,0,.07), 0 1px 1px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.22); }
.tile.hero { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -4px 0 rgba(0,0,0,.10), 0 2px 2px rgba(0,0,0,.4), 0 10px 20px rgba(0,0,0,.32); }
.tile.grey { background: linear-gradient(180deg, #D9D8D4, #D0CFCB); }
.dk { background: var(--dk); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--dk-edge), inset 0 1px 0 rgba(255,255,255,.035); }
.ai-tile { background: linear-gradient(180deg, #3D2C23, #372720); color: var(--ai-ink); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,91,46,.55), inset 4px 0 0 var(--orange), 0 4px 10px rgba(0,0,0,.25); }
/* Blender-rendered materials (assets/blender/*.png) replace the CSS ones when body.mat-blender is set (app.js) */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform .08s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #FF6638, #FA5427); color: var(--orange-ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.14), 0 3px 8px rgba(0,0,0,.32); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.secondary { background: linear-gradient(180deg, #EDECE9, #E4E3E0); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,0,0,.07), 0 2px 5px rgba(0,0,0,.28); }
.btn.secondary:hover { background: var(--tile-hover); }
.btn.ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px #66676D; }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
.btn.dark { background: var(--dk); color: var(--text); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.btn.dark:hover { background: var(--dk-hover); }
.btn.outline-o { color: #FF7A55; box-shadow: inset 0 0 0 1.5px rgba(255,91,46,.75); background: rgba(255,91,46,.06); height: 38px; font-size: 14px; }
.btn.outline-o:hover { background: rgba(255,91,46,.14); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.sm { width: 36px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* ---------- toggles, segments ---------- */
.toggle { width: 54px; height: 30px; border-radius: 15px; background: #4A4B51; position: relative; flex: none; transition: background .2s; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: linear-gradient(180deg, #F4F3F0, #DCDBD7); box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 #fff; transition: left .2s; }
.toggle.on { background: var(--orange); }
.toggle.on::after { left: 27px; }
.seg { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; white-space: nowrap; background: var(--dk); color: var(--text); box-shadow: inset 0 0 0 1px var(--dk-edge); transition: background .15s; }
.chip:hover { background: var(--dk-hover); }
.chip.on { background: linear-gradient(180deg, #EDECE9, #E4E3E0); color: var(--ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 5px rgba(0,0,0,.28); }
.chip .n { color: var(--muted); font-weight: 500; }
.chip.on .n { color: var(--ink-2); }
.chip.ch { height: 36px; padding: 0 10px 0 6px; font-size: 13px; gap: 6px; }
.chip.ch.off { opacity: .45; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; background: #3A3B41; color: #DCDCD8; box-shadow: inset 0 0 0 1px #46474D; }
.pill.light { background: #DCDBD7; color: var(--ink); box-shadow: none; }
.pill .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--orange); }
.pill.ai-tag { background: #2A2B2F; color: #F0EEEA; }
.pill.o { background: rgba(255,91,46,.16); color: #FF8A64; box-shadow: inset 0 0 0 1px rgba(255,91,46,.35); }
.pill.g { background: rgba(76,194,122,.14); color: #6FD49A; box-shadow: inset 0 0 0 1px rgba(76,194,122,.35); }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #4A4B51; color: #fff; font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; }
.badge.o { background: var(--orange); }
.avatar { width: 30px; height: 30px; border-radius: 15px; background: #4A4B51; color: #fff; font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.avatar.light { background: #CFCEca; color: var(--ink); }

/* ---------- brand channel icons ---------- */
.brand { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.3); }
.brand svg { width: 60%; height: 60%; fill: #fff; }
.brand.ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.brand.fb { background: #1877F2; }
.brand.wa { background: #25D366; }
.brand.tg { background: #2AABEE; }
.brand.sm { width: 28px; height: 28px; border-radius: 7px; }
.brand.xs { width: 22px; height: 22px; border-radius: 6px; }
.brand.lg { width: 56px; height: 56px; border-radius: 14px; }

/* ---------- sidebar ---------- */
.side { display: flex; flex-direction: column; align-items: stretch; padding: 14px 8px; gap: 4px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .1px; }
.logo img { width: 58px; height: 58px; object-fit: contain; }
.mark-css { width: 46px; height: 50px; flex: none; }
.nav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px; border-radius: 12px; color: #C9C9C6; font-size: 12px; white-space: nowrap; letter-spacing: -.1px; text-align: center; transition: background .15s, color .15s; }
.nav:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav.on { background: #34353A; color: #fff; box-shadow: inset 0 0 0 1px #3F4046; }
.nav.on::before { content: ''; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--orange); }
.nav .badge { position: absolute; top: 4px; right: 12px; height: 22px; min-width: 22px; font-size: 12px; }
.side .spacer { flex: 1; }
.me-btn { margin: 8px auto 0; width: 52px; height: 52px; border-radius: 12px; font-size: 22px; font-weight: 600; display: grid; place-items: center; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }

/* ---------- screen frame ---------- */
.screen { min-width: 0; min-height: 0; display: grid; gap: 16px; }
.head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.head h1 { font-size: 38px; font-weight: 600; letter-spacing: -.4px; }
.head .grow { flex: 1; }
.ptitle { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; padding: 14px 18px 10px; }
.ptitle .sub { font-size: 14px; color: var(--muted); font-weight: 400; }
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4A4B51 transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sel { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); font-size: 15px; white-space: nowrap; }
.sel:hover { background: var(--dk-hover); }

/* ---------- inbox ---------- */
.inbox { grid-template-columns: 440px 1fr 462px; }
.ilist { display: flex; flex-direction: column; min-height: 0; }
.ilist h1 { font-size: 34px; font-weight: 600; padding: 18px 18px 12px; }
.search { margin: 0 14px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); color: var(--muted); }
.search input { flex: 1; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; gap: 6px; padding: 12px 14px 0; }
.chfilters { display: flex; gap: 6px; padding: 10px 14px 12px; border-bottom: 1px solid var(--edge); }
.rows { flex: 1; padding: 8px 10px 12px; }
.row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; position: relative; }
.row:hover { background: rgba(255,255,255,.035); }
.row + .row::before { content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--edge); }
.row.on { background: linear-gradient(180deg, #EDECE9, #E6E5E2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -4px 0 rgba(0,0,0,.08), 0 2px 2px rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.32); }
.row.on::before, .row.on + .row::before { display: none; }
.row .nm { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .pv { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.row.on .pv { color: var(--ink-2); }
.row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--muted); }
.row.on .rt { color: var(--ink-2); }
.row.on .pill.ai-tag { background: #2A2B2F; color: #fff; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 15px; }

.conv { display: flex; flex-direction: column; min-height: 0; }
.chead { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--edge); }
.chead .who { flex: 1; min-width: 0; }
.chead .who b { font-size: 20px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chead .who span { font-size: 14px; color: var(--muted); }
.aiswitch { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); font-size: 14px; cursor: pointer; }
.msgs { flex: 1; padding: 14px 22px 8px; display: flex; flex-direction: column; gap: 12px; }
.day { align-self: center; padding: 5px 14px; border-radius: 8px; font-size: 14px; color: #CFCFCB; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.m { max-width: 74%; padding: 11px 16px 10px; font-size: 16px; line-height: 1.4; position: relative; }
.m time { display: block; text-align: right; font-size: 12px; margin-top: 2px; color: var(--ink-2); }
.m.c { align-self: flex-start; }
.m.out { align-self: flex-end; }
.m.ai-tile time, .m.me time { color: #CBB9AD; }
.m .lab { font-size: 13px; font-weight: 600; color: #FF7A50; margin-bottom: 3px; display: flex; justify-content: space-between; gap: 16px; }
.m.me { background: #3A3B41; border-radius: var(--radius); box-shadow: inset 0 0 0 1px #4A4B51, 0 3px 8px rgba(0,0,0,.25); color: var(--text); }
.m.me .lab { color: #CFCFCB; }
.m.me time { color: var(--muted); }
.m.note { align-self: center; max-width: 92%; background: linear-gradient(180deg, #D3D2CE, #CAC9C5); color: var(--ink); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 5px rgba(0,0,0,.25); display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; }
.m.note .lab { color: var(--ink); font-weight: 600; justify-content: flex-start; }
.m.note .lab span { font-weight: 400; color: var(--ink-2); }
.m.note time { margin: 0; align-self: end; }
.sysl { align-self: center; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #D8D8D4; padding: 7px 14px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.sysl time { color: var(--dim); font-size: 12px; margin-left: 8px; }
.media { align-self: flex-start; display: flex; align-items: flex-end; gap: 10px; }
.media img { width: 308px; height: 135px; object-fit: cover; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.35); display: block; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 240px; }
.file .pdf { width: 38px; height: 44px; border-radius: 6px; background: #E5443A; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 6px; flex: none; }
.file b { font-weight: 500; font-size: 15px; display: block; }
.file span { font-size: 13px; color: var(--ink-2); }
.media time { font-size: 12px; color: var(--muted); }
.voice { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-width: 300px; }
.voice .play { width: 36px; height: 36px; border-radius: 18px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.voice .wave { flex: 1; height: 26px; background: repeating-linear-gradient(90deg, #6E6F74 0 2px, transparent 2px 5px); mask: linear-gradient(90deg, #000 60%, rgba(0,0,0,.4)); border-radius: 2px; }
.typing { align-self: flex-start; display: flex; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.typing i { width: 8px; height: 8px; border-radius: 4px; background: #9A9BA0; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.typing.ai i { background: var(--orange); }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quick { display: flex; gap: 8px; padding: 6px 22px 10px; flex-wrap: wrap; }
.composer { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--edge); }
.composer .in { flex: 1; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.composer input { flex: 1; font-size: 16px; }
.composer input::placeholder { color: var(--muted); }
.send { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(180deg, #FF6638, #FA5427); color: #fff; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 8px rgba(0,0,0,.32); }
.send:hover { filter: brightness(1.06); }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.iconbtn:hover { color: var(--text); background: rgba(255,255,255,.05); }

.rcol { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding-right: 2px; }
.rcol > .panel { flex: none; }
.ccard { padding: 14px 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 14px; }
.ava-xl { width: 64px; height: 64px; border-radius: 14px; font-size: 26px; font-weight: 600; display: grid; place-items: center; background: linear-gradient(180deg, #D8D7D3, #CBCAC6); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 8px rgba(0,0,0,.3); }
.ccard h2 { font-size: 21px; font-weight: 600; }
.ccard .r { font-size: 13.5px; color: var(--muted); margin: 1px 0 4px; }
.ccard .line { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-top: 4px; }
.tags { grid-column: 1 / -1; display: flex; gap: 8px; }
.tags .chip { height: 32px; font-size: 14px; }
.psec { padding: 12px 14px 14px; }
.psec h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.psec h3 .grow { flex: 1; }
.sumline { padding: 7px 12px; font-size: 14px; border-radius: 8px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); margin-top: 6px; }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.req { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.15; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); cursor: pointer; text-align: left; }
.req .ck { width: 20px; height: 20px; border-radius: 5px; background: var(--orange); display: grid; place-items: center; color: #fff; flex: none; }
.req.open { background: transparent; box-shadow: inset 0 0 0 1.5px #55565C; border-radius: 8px; color: #D6D6D2; }
.req.open .ck { background: transparent; box-shadow: inset 0 0 0 2px #8A8B90; border-radius: 10px; }
.req.open:hover { box-shadow: inset 0 0 0 1.5px rgba(255,91,46,.7); }
.req.asked { box-shadow: inset 0 0 0 1.5px rgba(255,91,46,.6); }
.wf { padding: 12px; border-radius: 10px; }
.wf .bar { height: 10px; border-radius: 5px; background: #C9C8C4; }
.wf .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.wf .dots i { width: 8px; height: 8px; border-radius: 4px; background: #B9B8B4; }
.wf .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf .rt { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 7px; background: #505157; color: #F0EFEC; font-size: 14px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.wf .rt .ck { width: 18px; height: 18px; border-radius: 4px; background: var(--orange); display: grid; place-items: center; color: #fff; }
.deal { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.deal .sel { height: 42px; justify-content: space-between; font-size: 15px; padding: 0 12px; }
.deal input.sel { width: 100%; }
.hist { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; color: #D6D6D2; border-radius: 8px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); cursor: pointer; width: 100%; }

/* ---------- CRM board ---------- */
.crm { grid-template-rows: auto 1fr; }
.crm .head h1 { margin-right: 18px; }
.sumbar { font-size: 17px; color: #DADAD6; white-space: nowrap; }
.sumbar b { font-weight: 600; color: #fff; }
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; padding: 0; transition: box-shadow .15s; }
.col.over { box-shadow: inset 0 0 0 2px rgba(255,91,46,.75), 0 6px 18px rgba(0,0,0,.28); }
.colh { padding: 16px 16px 10px; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; }
.colh b { font-size: 23px; font-weight: 600; }
.colh .badge { height: 30px; min-width: 30px; border-radius: 8px; font-size: 16px; }
.colh .sum { grid-column: 1 / -1; font-size: 20px; color: #D8D8D4; }
.cards { flex: 1; padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.card { padding: 12px 12px 10px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; cursor: grab; position: relative; }
.card:hover { background: linear-gradient(180deg, #F3F2EF, #EAE9E6); }
.card.dragging { opacity: .45; }
.card .th { width: 112px; height: 108px; border-radius: 8px; overflow: hidden; position: relative; background: #DCDBD7; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.card .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ti { font-size: 16px; font-weight: 600; line-height: 1.25; padding-right: 4px; }
.card .cl { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.card .am { font-size: 20px; font-weight: 600; margin-top: 8px; }
.card .ft { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.card .ft .who { display: flex; align-items: center; gap: 8px; color: var(--ink); justify-self: center; }
.card .ft .when { display: flex; align-items: center; gap: 6px; }
.aitag { position: absolute; top: 10px; right: 10px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #2A1E19; color: #FF7A50; box-shadow: inset 0 0 0 1px rgba(255,91,46,.5); display: flex; align-items: center; }
.card .more { position: absolute; bottom: 10px; right: 46px; opacity: 0; }
.card:hover .more { opacity: 1; }
/* stage previews (STAGE RULE) */
.sp-req { padding: 7px; display: flex; flex-direction: column; gap: 5px; height: 100%; background: #E2E1DD; }
.sp-req span { height: 26px; border-radius: 6px; background: #F4F3F0; font-size: 11px; display: flex; align-items: center; gap: 5px; padding: 0 7px; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); white-space: nowrap; overflow: hidden; }
.sp-req span i { width: 6px; height: 6px; border-radius: 3px; background: #9A9994; flex: none; }
.sp-req span.q { font-style: italic; color: var(--ink-2); }
.sp-wf { padding: 7px; display: grid; gap: 5px; height: 100%; grid-template-rows: 18px 1fr 18px; background: #E2E1DD; }
.sp-wf div { border-radius: 4px; background: #C8C7C3; font-size: 10px; color: #6A6965; display: grid; place-items: center; }
.sp-wf .mid { display: grid; grid-template-columns: 1fr 34%; gap: 5px; background: none; }
.sp-wf .mid div { background: #C8C7C3; }
.sp-lab { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 6px; border-radius: 5px; background: rgba(29,30,33,.82); color: #fff; font-size: 11px; font-weight: 500; display: flex; align-items: center; }
.sp-grey { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: repeating-linear-gradient(90deg, #D3D2CE 0 30%, #DEDDD9 30% 34%); }
.sp-grey::before { content: ''; position: absolute; inset: 6px; background: linear-gradient(#C6C5C1, #C6C5C1) 0 0/60% 7px no-repeat, linear-gradient(#C6C5C1, #C6C5C1) 0 13px/80% 7px no-repeat; }
.sp-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-direction: column; gap: 3px; }
.sp-bar span { font-size: 10px; color: #fff; background: rgba(29,30,33,.82); align-self: flex-start; padding: 1px 6px; border-radius: 4px; }
.sp-bar i { height: 4px; border-radius: 2px; background: rgba(255,255,255,.65); overflow: hidden; display: block; }
.sp-bar i b { display: block; height: 100%; background: var(--orange); }
.sp-done { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(255,255,255,.92); font-size: 10px; line-height: 1.2; color: var(--ink); }
.sp-done b { color: #1E9E55; font-weight: 600; display: block; }

/* ---------- orders list / clients ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 16px; }
.table th { text-align: left; font-weight: 500; font-size: 14px; color: var(--muted); padding: 0 16px 2px; }
.table td { padding: 14px 16px; background: linear-gradient(180deg, #EDECE9, #E6E5E2); color: var(--ink); }
.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }
.table tbody tr { cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.28); border-radius: 12px; }
.table tbody tr:hover td { background: linear-gradient(180deg, #F4F3F0, #ECEBE8); }
.table .r { text-align: right; }
.stagechip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; background: #DAD9D5; color: var(--ink); }
.stagechip i { width: 8px; height: 8px; border-radius: 4px; background: #7A7975; }
.stagechip.done i { background: #1E9E55; } .stagechip.dev i { background: var(--orange); } .stagechip.design i { background: #E2A23B; }

/* ---------- order detail ---------- */
.order { grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
.ohead { padding: 10px 22px 12px; display: grid; grid-template-columns: 1fr auto auto; gap: 8px 22px; align-items: start; }
.crumbs { display: flex; align-items: center; gap: 12px; font-size: 18px; color: #CFCFCB; }
.ohead h1 { font-size: 34px; font-weight: 600; letter-spacing: -.3px; grid-column: 1; }
.oclient { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; }
.oclient .ava { width: 50px; height: 50px; border-radius: 10px; font-size: 19px; font-weight: 600; display: grid; place-items: center; background: linear-gradient(180deg, #D8D7D3, #CBCAC6); color: var(--ink); }
.oclient .nm b { display: block; font-size: 19px; font-weight: 600; }
.oclient .nm span { font-size: 14px; color: var(--muted); }
.oclient .sep { width: 1px; height: 40px; background: var(--edge); margin: 0 6px; }
.oclient .chip { height: 40px; }
.owho { font-size: 17px; color: #D6D6D2; line-height: 1.45; padding: 6px 18px 0; border-left: 1px solid var(--edge); grid-row: 1 / span 2; grid-column: 2; }
.ohead > .btn.primary { grid-row: 1 / span 2; grid-column: 3; height: 52px; font-size: 18px; padding: 0 22px; }
.stepper { display: flex; align-items: center; padding: 10px 22px; gap: 16px; }
.stp { display: flex; align-items: center; gap: 14px; font-size: 17px; color: #D0D0CC; white-space: nowrap; }
.stp .n { width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; font-size: 16px; background: #4A4B51; color: #EDEDEA; transition: background .2s; }
.stp.done .n { background: #3A3B41; box-shadow: inset 0 0 0 1.5px #77787E; }
.stp.cur .n { background: var(--tile); color: var(--ink); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.stp.cur { color: #fff; font-weight: 600; }
.stp:hover .n { box-shadow: inset 0 0 0 2px rgba(255,91,46,.75); }
.stepper .dash { flex: 1; border-top: 2px dashed #4A4B51; min-width: 30px; }
.ogrid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-height: 0; }
.works { grid-column: 1 / span 2; padding-bottom: 14px; }
.wt { margin: 0 14px; border-radius: 12px; overflow: hidden; }
.wt table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wt th { text-align: left; font-weight: 400; font-size: 13px; color: var(--ink-2); padding: 10px 18px 8px; border-bottom: 1px solid #D5D4D0; }
.wt td { padding: 8px 18px; border-bottom: 1px solid #D9D8D4; vertical-align: top; }
.wt td:first-child { font-weight: 600; }
.wt td.desc { color: #3E3F43; font-size: 15px; }
.wt td.s { text-align: right; white-space: nowrap; }
.wt tr.w { cursor: pointer; } .wt tr.w:hover td { background: rgba(255,255,255,.4); }
.wt s { color: var(--ink-2); margin-right: 10px; }
.wt .disc { display: block; color: #E2532B; font-size: 14px; }
.wt tfoot td { font-size: 20px; font-weight: 600; border-bottom: 0; padding: 10px 18px; }
.wt tfoot td.s { font-size: 24px; }
.wt input { width: 110px; text-align: right; background: #fff; border-radius: 6px; padding: 4px 8px; box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--ink); }
.steps { padding-bottom: 12px; }
.stepl { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 6px 14px; position: relative; }
.stepl .n { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: #4A4B51; font-size: 15px; z-index: 1; }
.stepl:not(:last-child)::after { content: ''; position: absolute; left: 33px; top: 40px; bottom: -8px; width: 2px; background: #4A4B51; }
.stepl b { font-size: 17px; font-weight: 500; display: block; } .stepl span { font-size: 14px; color: var(--muted); }
.stepl.cur { margin: 0 12px; padding: 10px; border-radius: 12px; }
.stepl.cur .n { background: var(--orange); color: #fff; }
.stepl.cur span { color: var(--ink-2); }
.stepl.cur::after { display: none; }
.pay .prow { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 16px; font-size: 16px; }
.pay .prow + .prow { border-top: 1px solid #D5D4D0; }
.pay .wrap { margin: 0 14px; border-radius: 12px; overflow: hidden; }
.pay .ring { width: 14px; height: 14px; border-radius: 7px; box-shadow: inset 0 0 0 2px #55565B; }
.pay .ring.ok { background: #1E9E55; box-shadow: none; }
.files .frow { display: grid; grid-template-columns: 38px 1fr auto 36px; gap: 12px; align-items: center; padding: 6px 14px; font-size: 15px; }
.files .wrap { margin: 0 14px; border-radius: 12px; overflow: hidden; }
.files .frow + .frow { border-top: 1px solid #D5D4D0; }
.files .frow .pdf { width: 30px; height: 34px; border-radius: 5px; background: #E5443A; color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 4px; }
.addfile { margin: 8px 14px 12px; height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed #5C5D63; color: #D6D6D2; width: calc(100% - 28px); }
.addfile:hover { border-color: rgba(255,91,46,.8); }
.prev { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-rows: auto 1fr auto auto; min-height: 0; }
.prevbox { margin: 0 14px; border-radius: 12px; overflow: hidden; position: relative; min-height: 0; }
.prevbox img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.prevbox .stagebar { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(29,30,33,.88); color: #fff; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.prevbox .stagebar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; display: block; }
.prevbox .stagebar i b { display: block; height: 100%; background: var(--orange); }
.prevbox .live { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.prevbox .live .dot { width: 10px; height: 10px; border-radius: 5px; background: #1E9E55; }
.prevbox .tagd { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(29,30,33,.85); color: #fff; font-size: 13px; }
.wire { height: 100%; padding: 16px; display: grid; gap: 12px; grid-template-rows: 54px 1fr auto auto 54px auto; background: linear-gradient(180deg, #ECEBE8, #E3E2DF); }
.wire > div, .wire .g > div { border-radius: 10px; background: #D8D7D3; display: grid; place-items: center; color: #6C6B67; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.wire .top { display: flex; justify-content: space-between; align-items: center; padding: 0 18px; background: #F2F1EE; }
.wire .top b { font-size: 24px; color: var(--ink); }
.wire .top span { display: flex; gap: 14px; } .wire .top span i { width: 80px; height: 12px; border-radius: 6px; background: #CFCEca; }
.wire .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: none; box-shadow: none; place-items: stretch; }
.wire .g > div { height: 60px; }
.wire .g2 { grid-template-columns: 1fr 1fr; }
.wire .cta { background: #CDCCC8; color: var(--ink); font-weight: 600; font-size: 17px; }
.wire .note { background: none; box-shadow: none; font-size: 13px; color: #6C6B67; height: 16px; }
.reqonly { height: 100%; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #ECEBE8, #E3E2DF); }
.reqonly .rt { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 10px; background: #F6F5F2; color: var(--ink); font-size: 17px; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.reqonly .rt .ck { width: 22px; height: 22px; border-radius: 5px; background: var(--orange); display: grid; place-items: center; color: #fff; }
.reqonly p { color: #6C6B67; font-size: 14px; margin-top: auto; }
.fromchat { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.fromchat .m { max-width: 100%; font-size: 15px; animation: none; }
.fromchat .m.ai-tile { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 12px 16px; }
.fromchat .m.ai-tile .ai-l { color: var(--orange); font-weight: 700; }
.fromchat .m time { display: inline; margin-left: 12px; }

/* ---------- AI manager ---------- */
.aim { grid-template-columns: 1fr 556px; }
.aim .left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.aimhead { padding: 16px 22px; display: flex; align-items: center; gap: 16px; }
.aimhead h1 { font-size: 38px; font-weight: 600; flex: 1; }
.ava-a { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; font-weight: 600; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.aimhead .st b { font-size: 21px; font-weight: 600; display: block; }
.aimhead .st span { font-size: 14px; color: #D6D6D2; display: flex; align-items: center; gap: 8px; }
.aimhead .st span i { width: 10px; height: 10px; border-radius: 5px; background: var(--green); }
.chrow { display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.chrow button.off { opacity: .35; filter: grayscale(1); }
.tone { padding: 16px 22px 18px; display: grid; grid-template-columns: 1fr 1px 330px; gap: 22px; }
.tone .vl { background: var(--edge); }
.tone h3, .know h3, .rulesp h3 { font-size: 23px; font-weight: 600; }
.tone .sub, .know .sub, .rulesp .sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.slider { display: grid; grid-template-columns: 110px 1fr 100px; gap: 16px; align-items: center; margin-top: 18px; font-size: 16px; }
.slider input { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5A5B61 var(--p), #46474D var(--p)); cursor: pointer; }
.slider input.o { background: linear-gradient(90deg, #5A5B61 calc(var(--p) - 22%), var(--orange) calc(var(--p) - 22%), var(--orange) var(--p), #46474D var(--p)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 14px; background: var(--orange); box-shadow: 0 2px 5px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.slider input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 14px; background: var(--orange); }
.example .k { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.example .m { max-width: 100%; animation: none; }
.know { padding: 16px 18px 18px; }
.know .top, .rulesp .top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.kgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kf { padding: 14px; display: grid; grid-template-columns: 32px 1fr 24px; gap: 10px; position: relative; }
.kf b { font-size: 15px; font-weight: 600; display: block; }
.kf span { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; }
.btn.dashed { box-shadow: none; border: 1.5px dashed #6A6B70; color: var(--text); height: 50px; }
.rulesp { padding: 16px 18px 14px; }
.rule { display: grid; grid-template-columns: 26px 1fr 40px 40px; gap: 14px; align-items: center; padding: 6px 8px 6px 14px; margin-top: 8px; }
.rule .cb { width: 24px; height: 24px; border-radius: 6px; background: var(--orange); display: grid; place-items: center; color: #fff; cursor: pointer; }
.rule .cb.off { background: transparent; box-shadow: inset 0 0 0 2px #77787E; }
.rule .tx { font-size: 17px; }
.rule input { font-size: 17px; width: 100%; padding: 4px 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--ink); }
.rule .ib { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: #F6F5F2; box-shadow: inset 0 0 0 1px #C9C8C4; }
.rule .ib:hover { box-shadow: inset 0 0 0 1.5px var(--orange); }
.addrule { margin-top: 10px; font-size: 15px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.addrule:hover { color: var(--text); }
.cancreate { padding: 14px 22px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; }
.cancreate h3 { font-size: 21px; font-weight: 600; }
.cancreate .sub { font-size: 15px; color: var(--muted); }
.savebar { height: 56px; font-size: 19px; width: 100%; justify-content: center; position: relative; }
.savebar svg { position: absolute; right: 22px; }
.aim .right { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tester { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tester .top { display: flex; align-items: center; padding: 18px 20px 14px; gap: 12px; border-bottom: 1px solid var(--edge); }
.tester h3 { font-size: 26px; font-weight: 600; }
.tester .sub { font-size: 15px; color: var(--muted); }
.tester .msgs { padding: 14px 18px; }
.tester .composer { border-top: 0; padding: 10px 18px 18px; }
.stats { padding: 16px 18px 18px; }
.stats .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stats h3 { font-size: 23px; font-weight: 600; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sbox { padding: 16px; border-radius: 12px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.sbox b { display: block; font-size: 36px; font-weight: 600; margin: 10px 0 2px; }
.sbox span { font-size: 15px; color: #CFCFCB; line-height: 1.3; display: block; }

/* ---------- channels ---------- */
.chs { grid-template-rows: auto 1fr auto auto; }
.chs .head h1 { font-size: 40px; }
.chs .head .sub { font-size: 20px; color: #CFCFCB; margin-top: 2px; }
.okpill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); font-size: 17px; }
.okpill i { width: 10px; height: 10px; border-radius: 5px; background: var(--green); }
.chgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chc { padding: 16px; display: grid; grid-template-rows: auto auto auto; gap: 12px; }
.chc .t { display: grid; grid-template-columns: 62px 1fr auto auto; gap: 14px; align-items: center; }
.chc .t b { font-size: 24px; font-weight: 600; display: block; }
.chc .t > div > span { font-size: 17px; color: #CFCFCB; display: flex; align-items: center; gap: 8px; }
.chc .t > div > span i { width: 9px; height: 9px; border-radius: 5px; background: var(--green); }
.chc .t > div > span.offline i { background: #77787E; }
.aisw { display: flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; cursor: pointer; }
.chc .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chc .meta > div { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.chc .meta small { display: block; font-size: 14px; color: var(--muted); }
.chc .meta b { font-weight: 500; font-size: 17px; }
.lastc { border-radius: 12px; overflow: hidden; }
.lastc .k { font-size: 14px; color: var(--ink-2); padding: 8px 18px 4px; background: #DEDDD9; }
.lastc button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto 20px; gap: 14px; align-items: center; padding: 10px 18px 12px; text-align: left; color: var(--ink); background: linear-gradient(180deg, #EDECE9, #E6E5E2); }
.lastc button:hover { background: var(--tile-hover); }
.lastc b { font-size: 17px; font-weight: 600; display: block; }
.lastc span { font-size: 16px; color: #3E3F43; }
.extra h2 { font-size: 23px; font-weight: 600; margin: 4px 0 12px 4px; }
.exgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.exc { padding: 16px 18px; display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; }
.exc b { font-size: 21px; font-weight: 600; display: block; }
.exc span { font-size: 16px; color: #CFCFCB; }
.exc .ico { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: #3A3B41; }
.exc .ico.viber { background: #7360F2; color: #fff; }
.infob { padding: 14px 20px; display: flex; align-items: center; gap: 14px; font-size: 17px; color: #D6D6D2; }

/* ---------- analytics ---------- */
.ana { grid-template-rows: auto auto 1fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kpi { padding: 18px 18px 16px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; }
.kpi .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #DAD9D5; color: var(--ink); grid-row: span 2; }
.kpi .k { font-size: 17px; }
.kpi .v { font-size: 38px; font-weight: 600; letter-spacing: -.5px; line-height: 1.1; }
.kpi .d { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
.kpi .d b { color: #1E9E55; font-weight: 600; font-size: 17px; margin-right: 8px; }
.arow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
.ap { padding: 6px 22px 18px; min-height: 0; }
.ap .ptitle { padding: 14px 0 12px; border-bottom: 1px solid var(--edge); margin-bottom: 14px; }
.ap .ptitle .r { margin-left: auto; font-size: 15px; color: #CFCFCB; font-weight: 400; }
.fun { display: grid; grid-template-columns: 120px 1fr 90px; gap: 14px 16px; align-items: center; }
.fun .lb { font-size: 19px; }
.fun .tr { height: 46px; border-radius: 8px; background: #3A3B41; position: relative; }
.fun .tr b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(180deg, #EDECE9, #DEDDD9); display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; color: var(--ink); font-size: 19px; font-weight: 600; transition: width .7s cubic-bezier(.2,.7,.2,1); min-width: 70px; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.fun .tr b.ghost, .bars .tr b.ghost { background: transparent; box-shadow: none; border-right: 3px solid var(--orange); border-radius: 0; min-width: 0; z-index: 2; padding: 0; color: transparent; }
.fun .cv { font-size: 18px; color: #D6D6D2; }
.bars { display: grid; grid-template-columns: 160px 1fr 54px; gap: 16px; align-items: center; }
.bars .lb { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.bars .tr { height: 40px; position: relative; }
.bars .tr b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(180deg, #EDECE9, #DEDDD9); transition: width .7s cubic-bezier(.2,.7,.2,1); box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.bars .v { font-size: 19px; font-weight: 600; }
.axis { display: flex; justify-content: space-between; margin: 6px 54px 0 176px; font-size: 14px; color: var(--muted); border-top: 1px solid #55565C; padding-top: 6px; }
.toptab { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.toptab th { font-weight: 400; font-size: 15px; color: var(--muted); text-align: left; padding: 0 12px; }
.toptab td { padding: 9px 12px; background: var(--dk); font-size: 18px; }
.toptab td:first-child { border-radius: 8px 0 0 8px; width: 50px; text-align: center; color: #D6D6D2; }
.toptab td:last-child { border-radius: 0 8px 8px 0; text-align: right; color: #D6D6D2; }
.toptab .mb { width: 200px; height: 14px; border-radius: 7px; background: #3F4046; overflow: hidden; display: inline-block; vertical-align: middle; }
.toptab .mb b { display: block; height: 100%; background: #DCDBD7; border-radius: 7px; transition: width .7s; }
.aiwork { background: linear-gradient(180deg, #3B2B23, #33251E); box-shadow: inset 0 0 0 1px rgba(255,91,46,.5), inset 5px 0 0 var(--orange), 0 6px 18px rgba(0,0,0,.28); }
.aiwork .ptitle { border-bottom-color: rgba(255,255,255,.12); }
.airow { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 18px; }
.airow b { font-size: 28px; font-weight: 600; margin-right: 8px; }
.aibanner { margin-top: 14px; padding: 14px 18px; border-radius: 10px; background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,91,46,.45), inset 4px 0 0 var(--orange); font-size: 18px; display: flex; gap: 14px; align-items: center; }
.aibanner .ai-l { color: var(--orange); font-weight: 700; }

/* ---------- clients & settings ---------- */
.list-screen { grid-template-rows: auto 1fr; }
.list-body { padding: 4px 22px 18px; min-height: 0; }
.drawer { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 520px; z-index: 40; display: flex; flex-direction: column; animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .dh { display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.drawer .dh h2 { font-size: 24px; font-weight: 600; flex: 1; }
.drawer .db { padding: 6px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 16px; }
.kv span { color: var(--muted); }
.setgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.setp { padding: 18px 20px; }
.setp h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 16px; }
.setrow:last-child { border-bottom: 0; }

/* ---------- design system page ---------- */
.ds { grid-template-rows: auto 1fr; }
.dsgrid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; min-height: 0; }
.dsp { padding: 16px 18px; }
.dsp h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.dsp .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.dsp .stack { display: flex; flex-direction: column; gap: 10px; }
.dsp .rowx { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.hov { filter: brightness(1.08); } .btn.prs { transform: translateY(1px); filter: brightness(.92); }
.field { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 10px; font-size: 16px; }
.field.focus { box-shadow: inset 0 0 0 2px var(--orange), 0 2px 6px rgba(0,0,0,.25); }
.field.err { box-shadow: inset 0 0 0 2px #E53B33; background: #F6DEDB; color: #B3261E; }

/* ---------- overlays ---------- */
.scrim { position: absolute; inset: 0; background: rgba(12,12,14,.55); z-index: 50; display: grid; place-items: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 640px; max-height: 900px; display: flex; flex-direction: column; animation: pop .2s; }
.modal.wide { width: 1100px; }
.modal .mh { display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px; }
.modal .mh h2 { font-size: 25px; font-weight: 600; flex: 1; }
.modal .mb { padding: 6px 22px 10px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.modal .mf { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form .inp { height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px; color: var(--ink); background: linear-gradient(180deg, #EDECE9, #E6E5E2); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.25); }
.form .inp:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.form select.inp { appearance: none; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu { position: absolute; z-index: 60; min-width: 240px; padding: 8px; border-radius: 12px; background: #2E2F34; box-shadow: inset 0 0 0 1px #45464C, 0 12px 30px rgba(0,0,0,.45); animation: pop .15s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 15px; text-align: left; }
.menu button:hover { background: #3A3B41; }
.menu .sep { height: 1px; background: #45464C; margin: 6px 4px; }
.menu .hd { font-size: 12px; color: var(--muted); padding: 6px 12px 2px; }
.toasts { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; background: #F2F1EE; color: var(--ink); font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: pop .2s; }
.toast button { color: #E2532B; font-weight: 600; }
.kp { padding: 20px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; }
.kp h4 { font-size: 22px; } .kp .rowk { display: flex; justify-content: space-between; font-size: 16px; padding: 6px 0; border-bottom: 1px solid #D5D4D0; }
.kp .tot { display: flex; justify-content: space-between; font-size: 22px; font-weight: 600; margin-top: 6px; }

.anim { animation: pop .3s ease-out both; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #D6D6D2; margin-left: 16px; font-weight: 400; } .legend i { width: 3px; height: 16px; background: var(--orange); display: inline-block; }
.fun .tr b.ghost { top: auto; bottom: -9px; height: 9px; }
.dsp .btn { height: 38px; padding: 0 11px; font-size: 13px; }
.dsp .btn.icon { width: 38px; padding: 0; }
.dsp .card .th { width: 60px !important; height: 60px !important; }
.dsp .rowx { gap: 6px; }
.chip.ch.icon-only { width: 52px; height: 42px; padding: 0; justify-content: center; }
.chip.ch.icon-only.off { opacity: .35; filter: grayscale(.8); }
.chhint { align-self: center; margin-left: 8px; font-size: 13px; color: var(--muted); }

/* ---------- 3D moments ---------- */
#mo { position: absolute; inset: 0; pointer-events: none; z-index: 80; }
#mo > * { pointer-events: auto; }
.intro { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: opacity .5s ease; }
.intro video, .intro .intro-still { width: 560px; height: 560px; object-fit: contain; display: block; }
.intro-css { width: 560px; height: 560px; display: grid; place-items: center; }
.intro-css .mark-css { width: 220px; height: 240px; animation: pop .8s ease-out both; }
/* the name sits above the intro video: Safari draws a video over non-positioned siblings that overlap it */
.intro-wm { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; margin-top: -40px; }
.intro-wm b { font-size: 44px; font-weight: 600; letter-spacing: -.5px; }
.intro-wm span { font-size: 18px; color: var(--muted); }
.intro.wm .intro-wm { opacity: 1; transform: none; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-skip { position: absolute; right: 32px; bottom: 28px; color: var(--muted); font-size: 15px; padding: 10px 14px; border-radius: 10px; }
.intro-skip:hover { color: var(--text); background: rgba(255,255,255,.05); }
.moment { position: absolute; inset: 0; background: rgba(12,12,14,.62); display: grid; place-items: center; animation: fade .2s; transition: opacity .35s ease; cursor: pointer; }
.moment.out { opacity: 0; }
.mcard { width: 1024px; height: 576px; border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--edge), 0 30px 80px rgba(0,0,0,.55); position: relative; }
.mcard video, .mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.om { position: absolute; inset: 0; }
.om-t { position: absolute; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; border-radius: 12px; font-size: 22px; color: var(--ink); background: linear-gradient(180deg, #EDECE9, #E6E5E2); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.35); animation: omIn 1.05s cubic-bezier(.6,0,.3,1) .25s both; }
.om-t i { width: 30px; height: 30px; border-radius: 7px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.om-t.t1 { left: 90px; top: 110px; } .om-t.t2 { right: 90px; top: 110px; } .om-t.t3 { left: 90px; bottom: 110px; } .om-t.t4 { right: 90px; bottom: 110px; }
@keyframes omIn { to { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.om-final { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92); width: 620px; padding: 34px 38px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); background: linear-gradient(180deg, #EFEEEB, #E4E3E0);
  box-shadow: inset 0 0 0 1px rgba(255,91,46,.7), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -6px 0 rgba(0,0,0,.10), 0 18px 40px rgba(0,0,0,.45); opacity: 0; animation: omFinal .5s ease-out 1.15s both; }
.om-final small { color: var(--orange); font-size: 18px; font-weight: 600; }
.om-final b { font-size: 30px; font-weight: 600; line-height: 1.2; }
.om-final em { font-style: normal; font-size: 40px; font-weight: 700; }
@keyframes omFinal { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.mark-img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.intro-still.pop-in { width: 300px; height: 300px; animation: introPop 1.1s cubic-bezier(.2,.8,.2,1) both; margin-bottom: 60px; }
@keyframes introPop { from { opacity: 0; transform: scale(.82) rotate(-6deg); } to { opacity: 1; transform: none; } }

.brand { display: inline-grid !important; place-items: center; }

/* ---------- chat composer: notes, @mentions, templates, emoji ---------- */
.cmp { position: relative; margin: 0 14px 14px; padding: 10px 12px 10px; border-radius: 14px; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); display: flex; flex-direction: column; gap: 6px; transition: background .15s; }
.cmp textarea { width: 100%; min-height: 44px; max-height: 132px; resize: none; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; padding: 6px 4px 2px; }
.cmp textarea::placeholder { color: var(--muted); }
.cmp.note { background: linear-gradient(180deg, #D9D8D4, #D1D0CC); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.3); }
.cmp.note textarea { color: var(--ink); }
.cmp.note textarea::placeholder { color: #6B6A66; }
.notebar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #4A4945; padding: 2px 4px 0; }
.ctools { display: flex; align-items: center; gap: 4px; }
.tb { height: 38px; min-width: 38px; padding: 0 9px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; }
.tb:hover { color: var(--text); background: rgba(255,255,255,.06); }
.tb.on { color: #fff; background: var(--orange); }
.cmp.note .tb { color: #4A4945; } .cmp.note .tb:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.cmp.note .tb.on { color: #fff; background: var(--orange); }
.ccount { font-size: 13px; color: var(--dim); margin-right: 8px; }
.cmp.note .ccount { color: #6B6A66; }
.cmp .btn.primary { height: 40px; }
.closedbar { margin: 0 14px 8px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; font-size: 14px; color: #D6D6D2; background: var(--dk); box-shadow: inset 0 0 0 1px var(--dk-edge); }
.closedbar span { flex: 1; }
.mention { color: #C2410C; font-weight: 600; }
.pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; border-radius: 14px; background: #2E2F34; box-shadow: inset 0 0 0 1px #45464C, 0 16px 40px rgba(0,0,0,.5); padding: 10px; animation: pop .15s; }
.pop .search { margin: 0 0 8px; height: 42px; }
.tplpop { width: 560px; max-width: 100%; }
.tpllist { max-height: 300px; display: flex; flex-direction: column; gap: 2px; }
.tplrow { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; }
.tplrow:hover, .tplrow:focus-visible { background: #3A3B41; outline: none; }
.tplrow b { font-size: 15px; font-weight: 600; }
.tplrow span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 2px; margin-top: 6px; border-top: 1px solid #45464C; font-size: 13px; }
.popfoot .link { display: inline-flex; align-items: center; gap: 6px; }
.emopop { width: 420px; max-width: 100%; }
.emocats { display: flex; justify-content: space-between; padding: 0 2px 6px; border-bottom: 1px solid #45464C; }
.emocats button { width: 38px; height: 36px; border-radius: 8px; font-size: 20px; line-height: 1; position: relative; }
.emocats button:hover { background: #3A3B41; }
.emocats button.on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -7px; height: 3px; border-radius: 2px; background: var(--orange); }
.emogrid { height: 236px; display: grid; grid-template-columns: repeat(9, 1fr); align-content: start; gap: 2px; padding: 8px 0 4px; }
.emo { height: 40px; border-radius: 8px; font-size: 24px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.emo:hover { background: #3A3B41; }
.emorecent { display: flex; align-items: center; gap: 2px; padding-top: 6px; border-top: 1px solid #45464C; }
.emorecent .dim { font-size: 12px; margin-right: 6px; white-space: nowrap; }
.emorecent .emo { width: 38px; height: 36px; font-size: 21px; }
.menpop { width: 300px; display: flex; flex-direction: column; gap: 2px; }
.menrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 15px; }
.menrow:hover { background: #3A3B41; }
.menrow b { flex: 1; font-weight: 500; }
/* templates screen */
.tplgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; min-height: 0; padding: 2px; }
.tplcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.tplcard .tt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tplcard .tt b { font-size: 18px; font-weight: 600; }
.tplcard .tt .dim { font-size: 13px; color: var(--ink-2); }
.tplcard p { font-size: 15px; line-height: 1.5; color: #3E3F43; flex: 1; }
.tplcard .var { background: #F6D9CE; color: #A3330F; border-radius: 5px; padding: 0 4px; font-size: 14px; }
.tplcard .ta { display: flex; gap: 8px; }
.chip.closed { margin-left: auto; height: 42px; font-size: 14px; gap: 6px; }
.toasts { top: 22px; bottom: auto; }
.sumopen { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 8px; font-size: 14px; color: #D6D6D2; box-shadow: inset 0 0 0 1.5px #55565C; }
.sumopen span { flex: 1; }
.sumopen .btn { flex: none; height: 34px; }

/* ===================== 3D LAYER (PixelForge 3D) ===================== */
#pf3d { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; }
.s3d { position: relative; display: inline-grid; place-items: center; flex: none; }
.s3d > svg, .s3d > img { transition: opacity .2s; }
.s3d.live > svg, .s3d.live > img { opacity: 0; }
.s3d.ico { width: 38px; height: 38px; margin: -4px 0 -6px; }
.s3d.ico.big { width: 84px; height: 84px; }
.s3d.ico.big svg { width: 44px; height: 44px; }
.nexik img.nx-fb { width: 100%; height: 100%; object-fit: contain; }
.nexik.nx-head { width: 96px; height: 96px; margin: -16px -6px -16px 0; }
.nexik.nx-sw { width: 30px; height: 30px; margin-right: -2px; }
.nx-typing { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; font-size: 13px; color: #D6D6D2; }
.nx-typing > span:not(.s3d) { margin-right: 4px; }
.nexik.nx-ty { width: 46px; height: 46px; }
.nx-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 24px; }
.nx-empty b { font-size: 18px; color: var(--text); }
.nx-empty span:not(.s3d) { font-size: 14px; max-width: 300px; }
.nexik.nx-big { width: 170px; height: 170px; }
.nexik.nx-cele { position: absolute; right: 14px; bottom: 6px; width: 170px; height: 170px; z-index: 2; }
/* physical cards */
.card { touch-action: auto; user-select: none; }
.card.dragging { opacity: .28; transform: scale(.98); }
.card.ghost { position: absolute; left: 0; top: 0; z-index: 45; pointer-events: none; margin: 0; cursor: grabbing; transition: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 6px rgba(0,0,0,.35), 0 26px 50px rgba(0,0,0,.55) !important; }
body.dragging-card, body.dragging-card * { cursor: grabbing !important; }
.card.anim { animation: land .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes land { 0% { transform: translateY(-16px) scale(1.04); box-shadow: 0 24px 40px rgba(0,0,0,.5); } 60% { transform: translateY(2px) scale(.995); } 100% { transform: none; } }
.card.anim .th img { animation: build 1s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes build { 0% { clip-path: inset(100% 0 0 0); filter: grayscale(1) brightness(1.2); } 70% { filter: grayscale(.3); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.card.anim .th::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255,91,46,.0) 40%, rgba(255,91,46,.55) 50%, transparent 60%); background-size: 100% 300%; animation: sweep 1s ease-out .1s both; pointer-events: none; }
@keyframes sweep { from { background-position: 0 100%; } to { background-position: 0 0%; } }
/* messages land on the stack */
.m.anim, .sysl.anim, .media.anim, .typing { animation: drop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-22px) scale(.96); } 100% { opacity: 1; transform: none; } }
/* 120 states gallery */
.nxpage { grid-template-rows: auto minmax(0, 1fr); }
.nxbody { display: grid; grid-template-columns: 560px 1fr; gap: 16px; min-height: 0; }
.nxstage { display: flex; flex-direction: column; align-items: center; padding: 10px 18px 18px; min-height: 0; }
.nexik.nx-hero { width: 100%; flex: 1; min-height: 300px; }
.nxlabel { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 12px; }
.nxlabel .num { font-size: 14px; color: var(--muted); }
.nxlabel b { font-size: 24px; font-weight: 600; }
.nxev { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nxev .chip { height: 34px; font-size: 13px; }
.nxgrid { padding: 14px; min-height: 0; }
.nxg { display: grid; grid-template-columns: 118px repeat(var(--cols), minmax(0, 1fr)); gap: 6px; align-items: center; }
.nxh { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; padding-bottom: 4px; }
.nxr { font-size: 13px; color: #D6D6D2; }
.nxc { position: relative; border-radius: 10px; background: #2B2C31; box-shadow: inset 0 0 0 1px #3A3B41; aspect-ratio: 1; overflow: hidden; }
.nxc img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nxc img:not([src]) { visibility: hidden; }
.nxc .num { position: absolute; left: 5px; top: 3px; font-size: 10px; color: var(--dim); }
.nxc:hover { box-shadow: inset 0 0 0 1.5px #77787E; }
.nxc.on { box-shadow: inset 0 0 0 2px var(--orange); background: #33261F; }
/* case page */
.casepage { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.casevid { padding: 12px; }
.casevid video { width: 100%; max-width: 1138px; aspect-ratio: 16 / 9; height: auto; margin: 0 auto; border-radius: 12px; display: block; background: var(--bg); }
.casegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.casec { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.casec h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.casec p { font-size: 15px; color: #CFCFCB; line-height: 1.5; margin-bottom: 10px; }
.casec video { width: 100%; height: 220px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.nexik.nx-case { width: 100%; height: 220px; }
.casei { display: grid; grid-template-columns: repeat(4, 1fr); place-items: center; height: 220px; }
@media (prefers-reduced-motion: reduce) { .card.anim, .card.anim .th img, .m.anim, .sysl.anim, .media.anim { animation: none; } }
.nxev > div { width: 100%; text-align: center; }

.setrow.team { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; }
.setrow.team .tm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setrow.team .tm b { font-weight: 500; display: flex; gap: 8px; align-items: center; }
.setrow.team .tm .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setrow.team .tact { display: flex; gap: 12px; }
.form .inp.bad { box-shadow: inset 0 0 0 2px #E53B33; }
/* Нексік on duty in the conversation */
.msgs.with-nx { padding-bottom: 168px; }
.nav .badge.over3d, .mt .badge.over3d { z-index: 2; }
/* active menu item: coral icon + label (owner 26.10); the unread count is a light badge with a ring so it never merges with the icon */
.nav.on > span:not(.badge), .mt.on > span:not(.badge) { color: var(--orange); }
.nav .badge.over3d { top: 4px; right: 10px; background: #E9E8E5; color: #1C1D20; box-shadow: 0 0 0 2px var(--panel); }
.nav.on .badge.over3d { box-shadow: 0 0 0 2px #34353A; }
.nxdock { position: relative; height: 0; z-index: 3; }
.nxwrap { position: absolute; right: 18px; bottom: 6px; display: flex; align-items: flex-end; gap: 4px; transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s; }
.nxwrap.arriving { animation: nxIn .6s cubic-bezier(.34,1.56,.64,1) both; }
.nxwrap.leaving { animation: nxOut 2.2s ease-in both; }
@keyframes nxIn { from { transform: translate(140px, 30px); } to { transform: none; } }
@keyframes nxOut { 0%, 70% { transform: none; opacity: 1; } 100% { transform: translate(180px, 20px); opacity: 0; } }
.nexik.nx-dock { width: 168px; height: 168px; margin-bottom: -10px; }
.nxbub { max-width: 330px; margin-bottom: 26px; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: linear-gradient(180deg, #3D2C23, #372720); color: var(--ai-ink); font-size: 14px; line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(255,91,46,.55), 0 6px 16px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 4px; }
.nxbub b { font-size: 12px; color: #FF7A50; font-weight: 600; }
.nxacts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.nxacts .btn { height: 32px; font-size: 13px; padding: 0 10px; }
