/* ==========================================================================
   Оболочка ainovit — стили. body.m-on всегда; body.m-desk — экраны шире 860px.
   ========================================================================== */
#m { display: none; }
#mBack { display: none; }

body.m-on #app { display: none; }
body.m-on.m-chat #app { display: flex; }
body.m-on:not(.m-desk).m-chat #m { display: none !important; }
body.m-on.m-chat #sidebar,
body.m-on.m-chat #agentBar,
body.m-on:not(.m-desk).m-chat #memBox,
body.m-on:not(.m-desk).m-chat #chatControls #presetSwitch { display: none !important; }
body.m-on:not(.m-desk).m-chat #mBack {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; margin-right: 4px; border-radius: 12px;
  background: #1B202B; border: 1px solid #272D3A; color: #E9ECF4; cursor: pointer;
}

body.m-on #m {
  --bg: #0A0C11; --s1: #141821; --s2: #1B202B; --s3: #1F2433; --ln: #272D3A; --ln2: #2E3546;
  --tx: #E9ECF4; --t2: #98A1B5; --t3: #7C8598; --ac: #8B7CFF; --ac2: #6455E8; --acs: #251F4D;
  --acb: #4A3F96; --coin: #F5C563;
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  height: var(--vv-h, 100dvh);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--tx);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#m button, #m textarea, #m input { font-family: inherit; }
#m button { cursor: pointer; }
#m h1, #m h2, #m p { margin: 0; }

.m-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.m-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 20px 22px;
  display: flex; flex-direction: column; gap: 22px; -webkit-overflow-scrolling: touch; }
.m-pad { padding: 0 20px 12px; }

/* шапка */
.m-head { display: flex; align-items: center; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 20px 12px; flex: none; }
.m-head h1 { flex: 1; font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.m-head h1.m-logo { font-size: 20px; }
.m-bal { display: flex; align-items: center; background: var(--s2); border: 1px solid var(--ln); border-radius: 999px;
  padding: 7px 13px 7px 10px; color: var(--tx); font-size: 14px; font-weight: 600; }
.m-coin { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: inherit; }
.m-coin i { width: 13px; height: 13px; border-radius: 50%; background: var(--coin); display: inline-block; flex: none; }
.m-coin.dark { background: rgba(10,12,17,.32); border-radius: 999px; padding: 4px 10px 4px 7px; font-size: 14px; }

/* нижняя навигация */
.m-nav { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  border-top: 1px solid #1E2430; background: #0C0F16; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); }
.m-nav-i { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none;
  color: var(--t3); font-size: 10.5px; font-weight: 500; padding: 4px 0; min-height: 44px; }
.m-nav-i.on { color: #A79BFF; font-weight: 600; }
.m-nav-i svg { width: 22px; height: 22px; }
body.kb-open .m-nav { display: none; }

/* секции */
.m-sec { display: flex; flex-direction: column; gap: 10px; }
.m-sec-h h2 { font-size: 17px; font-weight: 700; }
.m-sec-h p { font-size: 12.5px; color: var(--t2); margin-top: 3px; }
.m-lbl { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.m-lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.m-lbl-row small { font-size: 11.5px; color: var(--t3); }
.m-note { font-size: 12px; color: var(--t3); line-height: 1.5; }
.m-hint { font-size: 13px; line-height: 1.5; color: var(--t2); }
.m-fine { font-size: 11.5px; color: var(--t3); text-align: center; }
.m-fine.left { text-align: left; }
.m-warn { font-size: 12px; color: var(--coin); text-align: center; }

/* шаблоны */
.m-starter { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.m-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.m-tpl { display: flex; flex-direction: column; align-items: stretch; gap: 7px; background: none; border: none; padding: 0; text-align: left; color: var(--tx); }
.m-tpl-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .2s, filter .2s; }
.m-tpl-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(0deg, rgba(6,7,11,.88) 0%, rgba(6,7,11,.35) 32%, rgba(6,7,11,0) 55%); }
.m-tpl.sm .m-tpl-img { border-radius: 13px; }
.m-tpl-name { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; font-size: 13.5px; font-weight: 800;
  line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.m-tpl.sm .m-tpl-name { font-size: 11px; left: 8px; right: 8px; bottom: 8px; }
.m-tag-ic { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 9px;
  background: rgba(6,7,11,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.m-tag-ic svg { width: 16px; height: 16px; }
.m-tpl.sm .m-tag-ic { width: 24px; height: 24px; left: 6px; top: 6px; }
.m-tpl.sm .m-tag-ic svg { width: 14px; height: 14px; }
.m-tpl-price { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(6,7,11,.55); border-radius: 999px; padding: 4px 9px 4px 7px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.m-tpl-price .m-coin { font-size: 12px; color: var(--coin); gap: 5px; }
.m-tpl-price .m-coin i { width: 9px; height: 9px; }
.m-tpl.sm .m-tpl-price { right: 6px; top: 6px; padding: 3px 7px 3px 6px; }
.m-tpl.sm .m-tpl-price .m-coin { font-size: 11px; }
.m-cnt { font-size: 14px; font-weight: 500; color: var(--t3); }

/* баннеры наверху главной */
.m-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px;
  scrollbar-width: none; flex: none; }
.m-banners::-webkit-scrollbar { display: none; }
.m-banner { position: relative; flex: 0 0 84%; min-height: 168px; scroll-snap-align: start; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--ln); background: #141821 center / cover no-repeat; padding: 16px; text-align: left; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; }
.m-banner::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(8,9,14,.94) 0%, rgba(8,9,14,.6) 45%, rgba(8,9,14,.05) 100%); }
.m-banner > * { position: relative; }
.m-banner-eye { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9C0FF; }
.m-banner b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.m-banner-cta { margin-top: 6px; background: var(--ac); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(139,124,255,.35); }
.m-chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; }
.m-chips-row::-webkit-scrollbar { display: none; }
.m-tag { position: absolute; left: 7px; top: 7px; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  background: rgba(6,7,11,.6); border-radius: 7px; padding: 3px 7px; color: var(--tx); }
.m-tag .m-coin { font-size: 11px; color: var(--coin); gap: 4px; }
.m-tag .m-coin i { width: 9px; height: 9px; }
.m-tpl-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 0 2px; }
.m-tpl-t b { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.m-tpl-t .m-coin { font-size: 12px; color: var(--coin); gap: 4px; flex: none; }
.m-tpl-t .m-coin i { width: 9px; height: 9px; }

/* маршруты на главной */
.m-routes { gap: 8px; }
.m-route { display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--ln); border-radius: 15px;
  padding: 12px 13px; color: var(--tx); text-align: left; }
.m-route > svg { color: #626B7E; flex: none; }
.m-route-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.m-route-t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.m-route-t b { font-size: 14.5px; }
.m-route-t small { font-size: 12px; color: var(--t2); }

/* чипы и сегменты */
.m-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.m-chip { padding: 8px 13px; border-radius: 11px; background: var(--s1); border: 1px solid var(--ln); color: var(--t2);
  font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.m-chip.on { background: var(--acs); border-color: var(--acb); color: #C9C0FF; font-weight: 600; }
.m-seg { display: flex; gap: 4px; background: var(--s1); border: 1px solid var(--ln); border-radius: 13px; padding: 4px; }
.m-seg > button { flex: 1; padding: 9px 4px; border: none; border-radius: 9px; background: transparent; color: var(--t2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; min-height: 38px; }
.m-seg > button.on { background: #2A3040; color: var(--tx); font-weight: 600; }
.m-seg4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }

/* форма «Создать» */
.m-form { gap: 16px; padding-top: 2px; }
.m-toolbar { display: flex; align-items: center; justify-content: space-between; }
.m-toolbar b { font-size: 15px; }
.m-link { display: flex; align-items: center; gap: 2px; background: none; border: none; color: #A79BFF; font-size: 13.5px; font-weight: 600; padding: 6px 0; }
.m-link svg { width: 18px; height: 18px; }
.m-model-w { position: relative; }
.m-model { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--s1); border: 1px solid var(--ln);
  border-radius: 14px; padding: 13px 14px; color: var(--tx); text-align: left; }
.m-model .k { font-size: 13px; color: var(--t3); }
.m-model b { flex: 1; font-size: 15px; font-weight: 600; }
.m-model svg { color: var(--t2); }
.m-menu-bg { position: fixed; inset: 0; z-index: 30; background: rgba(6,7,11,.5); border: none; padding: 0; cursor: default; }
.m-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 31; width: min(320px, 100%);
  max-height: min(60vh, 520px); overflow-y: auto; background: #1C212C; border: 1px solid #323A4B; border-radius: 16px; padding: 6px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.8); display: flex; flex-direction: column; }
.m-menu-i { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: none; border-radius: 10px; background: transparent;
  color: var(--tx); text-align: left; min-height: 46px; }
.m-menu-i.on { background: #262C3A; }
.m-menu-i .ck { width: 18px; flex: none; display: flex; }
.m-menu-i .ck svg { width: 17px; height: 17px; }
.m-menu-i .n { flex: 1; font-size: 15.5px; font-weight: 500; }
.m-menu-i .p { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--t2); flex: none; }
.m-menu-i .p i { width: 8px; height: 8px; border-radius: 50%; background: #8A7A4E; display: inline-block; }

.m-field { display: flex; flex-direction: column; gap: 7px; }
.m-ta { width: 100%; box-sizing: border-box; resize: none; background: var(--s1); border: 1px solid var(--ln); border-radius: 16px;
  padding: 13px 14px; color: var(--tx); font-size: 16px; line-height: 1.5; outline: none; min-height: 110px; }
.m-ta:focus { border-color: rgba(139,124,255,.5); }
.m-drop { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--s1); border: 1px dashed #3A4150;
  border-radius: 13px; padding: 14px; color: #A79BFF; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 48px; }
.m-drop svg { width: 18px; height: 18px; }
.m-att { display: flex; align-items: center; gap: 11px; background: var(--s1); border: 1px solid var(--acb); border-radius: 13px; padding: 8px 8px 8px 9px; }
.m-att-th { width: 46px; height: 46px; border-radius: 10px; background: #1F2433 center/cover no-repeat; flex: none;
  display: flex; align-items: center; justify-content: center; color: #A79BFF; }
.m-att-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-att-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-att-t small { font-size: 11.5px; color: var(--t2); }
.m-x { width: 34px; height: 34px; border-radius: 50%; background: var(--s2); border: none; color: var(--t2);
  display: flex; align-items: center; justify-content: center; flex: none; }
.m-x.sm { width: 32px; height: 32px; border-radius: 10px; background: #1F2433; }
.m-x svg { width: 16px; height: 16px; }
.m-rec { display: flex; align-items: center; gap: 11px; background: var(--s1); border: 1px solid var(--ln); border-radius: 13px;
  padding: 10px 12px; color: var(--tx); text-align: left; }
.m-rec > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #3A1C2A; color: #F09AB8; box-sizing: border-box; flex: none; }
.m-rec span { display: flex; flex-direction: column; gap: 1px; }
.m-rec b { font-size: 14px; }
.m-rec small { font-size: 11.5px; color: var(--t2); }
.m-rec.live { border-color: #F09AB8; }
.m-toggle { display: flex; align-items: center; justify-content: space-between; background: var(--s1); border: 1px solid var(--ln);
  border-radius: 13px; padding: 12px 14px; color: var(--tx); font-size: 14px; }
.m-toggle i { width: 44px; height: 26px; border-radius: 999px; background: #2A3040; position: relative; flex: none; transition: background .2s; }
.m-toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #C8CEDC; transition: transform .2s; }
.m-toggle.on i { background: var(--ac2); }
.m-toggle.on i::after { transform: translateX(18px); background: #fff; }
.m-tools { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #1A1F2A; padding-top: 14px; }
.m-tools-r { display: flex; gap: 7px; }
.m-tools-r button { flex: 1; background: var(--s1); border: 1px solid var(--ln); border-radius: 11px; padding: 10px 6px; color: #C8CEDC; font-size: 12.5px; }

.m-foot { flex: none; padding: 10px 20px 10px; border-top: 1px solid #1A1F2A; background: #0B0D13; display: flex; flex-direction: column; gap: 6px; }
.m-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ac2); border: none;
  border-radius: 16px; padding: 14px; color: #fff; font-size: 16px; font-weight: 700; min-height: 52px; }
.m-cta.off { background: #1F2433; color: var(--t3); }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--s2); border: 1px solid var(--ln2);
  border-radius: 13px; padding: 12px 16px; color: var(--tx); font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; }
.m-btn.prim { background: var(--ac2); border-color: var(--ac2); color: #fff; }
.m-btn svg { width: 17px; height: 17px; }

/* результат генерации */
.m-job { background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.m-job b { font-size: 15px; }
.m-job p { font-size: 13px; color: var(--t2); line-height: 1.45; }
.m-job.fail { border-color: #5A2B37; }
.m-job-h { display: flex; align-items: center; gap: 10px; }
.m-bar { height: 5px; background: #232937; border-radius: 99px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--ac); border-radius: 99px; transition: width .6s; }
.m-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #323A4B; border-top-color: var(--ac); box-sizing: border-box;
  animation: mspin .9s linear infinite; flex: none; }
@keyframes mspin { to { transform: rotate(360deg); } }
.m-media img, .m-media video { width: 100%; border-radius: 12px; display: block; background: #000; }
.m-media audio { width: 100%; }

/* шторки */
.m-sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.m-sheet-bg { position: absolute; inset: 0; background: rgba(6,7,11,.72); border: none; padding: 0; cursor: default; }
.m-sheet { position: relative; background: #11151D; border-top: 1px solid #2C3342; border-radius: 22px 22px 0 0;
  max-height: 88%; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.m-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; }
.m-sheet-h b { font-size: 17px; }
.m-sheet-b { overflow-y: auto; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.m-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.m-col { display: flex; flex-direction: column; gap: 6px; }
.m-ex { position: relative; height: 156px; border-radius: 14px; background: #1F2433 center/cover no-repeat; }
.m-drop.m-ex { flex-direction: column; height: 156px; padding: 0; }
.m-ex-photo { border: 2px solid var(--ac); box-sizing: border-box; }
.m-ex-photo .m-x { position: absolute; right: 6px; top: 6px; background: rgba(6,7,11,.7); color: #fff; }
.m-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.45; color: #C8CEDC; }
.m-pack { display: flex; align-items: center; gap: 10px; background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 12px 14px; }
.m-pack span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.m-pack b { font-size: 14.5px; }
.m-pack small { font-size: 12px; color: var(--t2); }
.m-pack em { font-style: normal; font-size: 10.5px; font-weight: 700; background: #16331F; color: #6BE0A0; border-radius: 999px; padding: 3px 8px; }
.m-pack strong { font-size: 15px; }

/* помощники */
.m-ask { display: flex; align-items: flex-end; gap: 8px; background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; padding: 6px 6px 6px 14px; }
.m-ask-in { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--tx); font-size: 16px;
  line-height: 1.4; padding: 9px 0; resize: none; max-height: 120px; }
.m-send { width: 42px; height: 42px; border-radius: 12px; background: var(--ac2); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; }
.m-tasks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.m-task { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--s1); border: 1px solid var(--ln);
  border-radius: 16px; padding: 13px; color: var(--tx); text-align: left; min-height: 112px; }
.m-task b { font-size: 14px; line-height: 1.3; margin-top: 6px; }
.m-task small { font-size: 11.5px; color: var(--t2); }
.m-av { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; background: var(--acs); color: #B3A7FF; flex: none; }
.m-av.big { width: 42px; height: 42px; border-radius: 14px; font-size: 17px; }
.m-row { display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--ln); border-radius: 14px;
  padding: 11px 13px; color: var(--tx); text-align: left; }
.m-row > svg { color: #626B7E; flex: none; }
.m-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-row-t b { font-size: 14px; }
.m-row-t small { font-size: 11.5px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-council { background: #11151D; border: 1px solid var(--ln); border-radius: 18px; padding: 14px; }
.m-council h2 { font-size: 15px; font-weight: 700; }
.m-council p { font-size: 12px; line-height: 1.45; color: var(--t2); }
.m-council-r { display: flex; gap: 7px; }
.m-council-r button { flex: 1; background: var(--s2); border: 1px solid var(--ln2); border-radius: 11px; padding: 10px 4px;
  color: var(--tx); font-size: 12.5px; font-weight: 600; min-height: 42px; }

/* моё */
.m-me .m-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.m-me .m-me-t b { font-family: 'Unbounded', sans-serif; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-me .m-me-t small { font-size: 12px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-balrow { display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--ln); border-radius: 15px; padding: 10px 10px 10px 14px; }
.m-balrow > .m-coin { font-size: 0; }
.m-balrow > .m-coin i { width: 16px; height: 16px; }
.m-balrow-t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.m-balrow-t b { font-size: 15px; }
.m-balrow-t small { font-size: 11.5px; color: var(--t2); }
.m-works { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.m-work { position: relative; height: 108px; border-radius: 13px; border: 1px solid var(--ln); background: #171B28 center/cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; color: var(--t2); overflow: hidden; }
.m-work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-work.pending { border-color: var(--acb); }
.m-work.pending small { color: #C9C0FF; font-size: 10.5px; font-weight: 600; }
.m-work.failed small { font-size: 10.5px; text-align: center; line-height: 1.3; }
.m-work .m-tag { left: 6px; top: auto; bottom: 6px; font-size: 9.5px; }
.m-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--ln);
  border-radius: 16px; padding: 22px 18px; text-align: center; }
.m-empty b { font-size: 15px; }
.m-empty small { font-size: 12.5px; color: var(--t2); }
.m-empty .m-btn { margin-top: 6px; }
.m-list { background: var(--s1); border: 1px solid var(--ln); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.m-list-i { display: flex; align-items: center; gap: 10px; padding: 14px; background: none; border: none; border-top: 1px solid #1E2430;
  color: var(--tx); font-size: 14px; text-decoration: none; text-align: left; min-height: 48px; }
.m-list-i:first-child { border-top: none; }
.m-list-i span { flex: 1; }
.m-list-i svg { color: #626B7E; }
.m-list-i.red { color: #E8899B; }

/* пока открыт список моделей, низ экрана не нажимается */
#m.m-menu-open .m-foot, #m.m-menu-open .m-nav { opacity: .35; pointer-events: none; }

/* шапка чата на телефоне: назад · название · очистить — в одну строку */
body.m-on:not(.m-desk).m-chat #topbar { flex-wrap: nowrap !important; align-items: center; gap: 10px;
  padding-top: calc(12px + env(safe-area-inset-top)); }
body.m-on:not(.m-desk).m-chat #topbar .head-txt { flex: 1; min-width: 0; order: 0; }
body.m-on:not(.m-desk).m-chat #topbar .chat-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-on:not(.m-desk).m-chat #chatControls { width: auto !important; flex: none; }

.m-acts { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }

/* ==========================================================================
   Компьютер (>860px): меню слева, контент по центру
   ========================================================================== */
body.m-desk #m { --gut: max(40px, calc((100% - 1180px) / 2)); inset: 0; height: 100vh; flex-direction: row; }
body.m-desk .m-nav { order: -1; width: 236px; flex: none; display: flex; flex-direction: column; gap: 4px;
  border-top: none; border-right: 1px solid #1E2430; padding: 22px 14px 18px; box-sizing: border-box; }
body.m-desk .m-nav-i { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14.5px; color: var(--t2);
  padding: 10px 12px; border-radius: 12px; min-height: 44px; }
body.m-desk .m-nav-i:hover { background: #141821; color: var(--tx); }
body.m-desk .m-nav-i.on { background: var(--acs); color: #C9C0FF; }
.m-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.m-brand-ic { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #8B7CFF, #5B8CFF);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; }
.m-brand b { font-family: 'Unbounded', sans-serif; font-size: 17px; }
.m-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.m-nav-foot .m-bal { justify-content: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.m-nav-link { background: none; border: none; color: var(--t3); font-size: 12.5px; text-decoration: underline; padding: 4px; }
.m-nav-link:hover { color: var(--t2); }

body.m-desk .m-view { flex: 1; min-width: 0; }
body.m-desk .m-head { padding: 28px var(--gut) 16px; }
body.m-desk .m-head h1 { font-size: 26px; }
body.m-desk .m-head .m-bal { display: none; }
body.m-desk .m-scroll { padding: 4px var(--gut) 48px; gap: 30px; }
body.m-desk .m-pad { padding: 0 var(--gut) 14px; }
body.m-desk .m-foot { padding: 12px var(--gut) 16px; }
/* «Создать» и «Моё» — узкая колонка, как форма */
body.m-desk #m[data-tab="mine"], body.m-desk #m[data-tab="help"] { --gut: max(40px, calc((100% - 1000px) / 2)); }
body.m-desk #m[data-tab="create"] { --gut: 32px; }
body.m-desk .m-form { gap: 18px; }
body.m-desk .m-sec-h h2 { font-size: 19px; }
.m-sec-hr { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* большие кнопки «Создать…» */
.m-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.m-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--s1); border: 1px solid var(--ln);
  border-radius: 18px; padding: 18px; color: var(--tx); text-align: left; min-height: 150px; transition: border-color .15s, transform .15s; }
.m-card:hover { border-color: var(--acb); transform: translateY(-2px); }
.m-card-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.m-card-ic svg { width: 22px; height: 22px; }
.m-card-t { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.m-card-t b { font-size: 16px; }
.m-card-t small { font-size: 12.5px; color: var(--t2); line-height: 1.4; }
.m-card-p { font-size: 12.5px; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.m-card-p .m-coin { color: var(--coin); }
.m-card-p .m-coin i { width: 10px; height: 10px; }

body.m-desk .m-starter { gap: 14px; }
body.m-desk .m-tpl.sm .m-tpl-img { height: 210px; border-radius: 16px; }
body.m-desk .m-tgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
body.m-desk .m-tpl:hover .m-tpl-img { filter: brightness(1.12); transform: translateY(-3px); }
body.m-desk .m-tgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
body.m-desk .m-tpl-name { font-size: 15px; left: 14px; right: 14px; bottom: 13px; }
body.m-desk .m-banners { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
body.m-desk .m-banner { min-height: 228px; padding: 20px; transition: transform .2s, border-color .2s; }
body.m-desk .m-banner:hover { transform: translateY(-3px); border-color: var(--acb); }
body.m-desk .m-banner b { font-size: 19px; }
body.m-desk .m-chips-row { margin: 0; padding: 0 0 2px; }
body.m-desk .m-head { gap: 10px; }
body.m-desk .m-head .m-bal { display: flex; }
.m-head-top { width: auto; padding: 9px 18px; min-height: 0; border-radius: 999px; font-size: 14px; }
/* компактные плитки «Создать…» */
body.m-desk .m-card { position: relative; flex-direction: row; align-items: center; min-height: 0; padding: 16px 18px; gap: 14px; }
body.m-desk .m-card-t { min-width: 0; }
body.m-desk .m-card-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-desk .m-card-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-desk .m-card-p { display: none; }
.m-card-from { display: none; }
body.m-desk .m-card-from { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; color: var(--t3); margin-top: 3px; }
body.m-desk .m-card-from .m-coin { color: var(--coin); gap: 5px; }
body.m-desk .m-card-from .m-coin i { width: 9px; height: 9px; }
/* боковое меню: баланс и разделы */
.m-nav-bal { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 10px 10px 10px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #221C47, #151925); border: 1px solid var(--acb); }
.m-nav-bal-c { display: flex; align-items: baseline; gap: 6px; font-size: 18px; }
.m-nav-bal-c small { font-size: 12px; color: var(--t2); font-weight: 500; }
.m-nav-plus { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center; }
.m-nav-plus svg { width: 18px; height: 18px; }
.m-nav-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); padding: 16px 12px 6px; }
@media (max-width: 1180px) {
  body.m-desk .m-banners { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
body.m-desk .m-tasks { grid-template-columns: repeat(3, minmax(0,1fr)); }
body.m-desk .m-tasks-row { grid-template-columns: repeat(6, minmax(0,1fr)); }
body.m-desk .m-task:hover, body.m-desk .m-row:hover, body.m-desk .m-route:hover { border-color: var(--acb); }
body.m-desk .m-works { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.m-desk .m-work { height: 150px; }
body.m-desk .m-chip:hover { color: var(--tx); }
@media (max-width: 1180px) {
  body.m-desk .m-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.m-desk .m-tasks-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* шторки — окном по центру */
body.m-desk .m-sheet-wrap { justify-content: center; align-items: center; }
body.m-desk .m-sheet { width: min(560px, 92vw); max-height: 86vh; border: 1px solid #2C3342; border-radius: 20px; }

/* чат на компьютере: меню слева остаётся, чат справа */
body.m-desk.m-chat #m { width: 236px; right: auto; }
body.m-desk.m-chat #m > .m-view { display: none; }
body.m-desk.m-chat #app { position: fixed; top: 0; bottom: 0; left: 236px; right: 0; height: auto; width: auto; }
body.m-desk #mBack { display: none !important; }

/* «Создать» на компьютере: панель настроек слева, результат справа */
body.m-desk .m-create-d .m-head { padding: 24px var(--gut) 14px; }
body.m-desk .m-create-d .m-pad .m-seg { max-width: 460px; }
.m-cd { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 24px;
  padding: 0 var(--gut) 24px; }
.m-cd-panel { min-height: 0; display: flex; flex-direction: column; background: #0E1118; border: 1px solid var(--ln); border-radius: 20px; overflow: hidden; }
body.m-desk .m-cd-panel .m-scroll { padding: 18px 18px 20px; gap: 16px; }
body.m-desk .m-cd-panel .m-foot { padding: 12px 18px 14px; background: #0E1118; }
.m-cd-out { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding-right: 4px; }
.m-cd-job .m-job { padding: 18px; }
.m-cd-job .m-media { display: flex; justify-content: center; }
.m-cd-job .m-media img, .m-cd-job .m-media video { width: auto; max-width: 100%; max-height: 62vh; }
.m-cd-job .m-job > .m-btn { align-self: flex-start; }
.m-cd-empty { flex: 1; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed #2A3140; border-radius: 20px; padding: 32px; text-align: center; color: var(--t2); }
.m-cd-empty b { font-size: 17px; color: var(--tx); margin-top: 6px; }
.m-cd-empty small { font-size: 13px; max-width: 360px; line-height: 1.5; }
.m-cd-out .m-works { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.m-cd-out .m-work { height: 180px; }
/* узкий компьютер: всё одной колонкой, результат под формой */
@media (max-width: 1100px) {
  body.m-desk .m-nav { width: 200px; }
  body.m-desk.m-chat #m { width: 200px; }
  body.m-desk.m-chat #app { left: 200px; }
  .m-cd { display: block; overflow-y: auto; }
  .m-cd-panel { overflow: visible; margin-bottom: 20px; }
  body.m-desk .m-cd-panel .m-scroll { overflow: visible; }
  body.m-desk .m-cd-panel .m-foot { position: sticky; bottom: 0; border-radius: 0 0 20px 20px; }
  .m-cd-out { overflow: visible; }
  .m-cd-empty { display: none; }
}

/* видео: первый и последний кадр */
.m-frames { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.m-frame { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-frame-img { position: relative; height: 120px; border-radius: 13px; background: #1F2433 center/cover no-repeat; box-sizing: border-box; }
.m-drop.m-frame-img { flex-direction: column; height: 120px; padding: 0; }
.m-frame-img .m-x { position: absolute; right: 6px; top: 6px; background: rgba(6,7,11,.7); color: #fff; }
.m-frame-na { display: flex; align-items: center; justify-content: center; border: 1px dashed #2A3140; background: transparent; text-align: center; padding: 8px; }
.m-frame-na small { font-size: 11.5px; color: var(--t3); }
.m-frame.off .m-lbl { color: var(--t3); }
body.m-desk .m-frame-img { height: 140px; }

/* короткое поле (название, стиль) и ползунок длительности */
.m-in { width: 100%; box-sizing: border-box; background: var(--s1); border: 1px solid var(--ln); border-radius: 13px;
  padding: 12px 14px; color: var(--tx); font-size: 16px; outline: none; }
.m-in:focus { border-color: rgba(139,124,255,.5); }
.m-dur { color: #C9C0FF !important; font-weight: 700; font-size: 13px !important; }
.m-range { width: 100%; accent-color: var(--ac); height: 28px; margin: 0; }
.m-range-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); margin-top: -4px; }

/* видео-превью шаблонов */
.m-tpl-img, .m-ex { overflow: hidden; }
.m-tpl-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: inherit; pointer-events: none; }
.m-tpl-img .m-tag { z-index: 1; }

/* ===== Telegram Mini App ===== */
body.in-telegram .m-head { padding-top: calc(10px + var(--tg-top, env(safe-area-inset-top))); }

/* ===== лента ===== */
.m-feed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-feed-seg { flex: 0 1 300px; }
.m-adult-note { align-self: flex-start; background: none; border: 1px dashed var(--ln2); border-radius: 10px; color: var(--t2); font-size: 12.5px; padding: 7px 11px; }
.m-adult-note u { color: #C9C0FF; }
.m-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.m-fcard { display: block; background: none; border: none; padding: 0; text-align: left; color: var(--tx); }
.m-fcard-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #171B28 center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .2s, filter .2s; }
.m-fcard-img::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(6,7,11,.85) 0%, rgba(6,7,11,.2) 30%, rgba(6,7,11,0) 50%); }
.m-fcard-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--t3); }
.m-fcard-ic svg { width: 34px; height: 34px; }
.m-18 { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 10.5px; font-weight: 800; background: rgba(230,60,90,.85); color: #fff; border-radius: 7px; padding: 3px 7px; }
.m-18.warn { background: rgba(245,197,99,.9); color: #241a05; top: auto; bottom: 40px; }
.m-fcard-b { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.m-fcard-a { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.m-fcard-n { display: flex; align-items: center; gap: 4px; flex: none; font-weight: 600; color: #E3E6EF; }
.m-fcard-n i { font-style: normal; color: #B6BCCB; margin-left: 4px; }
.m-fcard-n i.on { color: #FF6B8B; }
.m-more { align-self: center; }
.m-prof { display: flex; flex-direction: column; gap: 14px; background: var(--s1); border: 1px solid var(--ln); border-radius: 18px; padding: 16px; }
.m-prof-t { display: flex; align-items: center; gap: 12px; }
.m-prof-t b { display: block; font-size: 17px; }
.m-prof-t small { color: var(--t2); font-size: 13px; }
.m-prof-s { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.m-prof-s span { background: #0E1118; border: 1px solid var(--ln); border-radius: 12px; padding: 10px; text-align: center; }
.m-prof-s b { display: block; font-size: 18px; }
.m-prof-s small { color: var(--t2); font-size: 11.5px; }
.m-prof-a { display: flex; gap: 8px; flex-wrap: wrap; }
.m-post-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-post-who { display: flex; align-items: center; gap: 10px; background: none; border: none; color: var(--tx); text-align: left; padding: 0; min-width: 0; }
.m-post-who b { display: block; font-size: 14.5px; }
.m-post-who small { color: var(--t2); font-size: 12px; }
.m-like { display: inline-flex; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--ln2); color: var(--t2); border-radius: 999px;
  padding: 8px 14px; font-size: 15px; font-weight: 700; }
.m-like.on { color: #FF6B8B; border-color: rgba(255,107,139,.45); background: rgba(255,107,139,.1); }
.m-prompt { display: flex; flex-direction: column; gap: 6px; background: #0E1118; border: 1px solid var(--ln); border-radius: 13px; padding: 12px 13px; }
.m-prompt p { font-size: 13px; line-height: 1.5; color: var(--t2); max-height: 140px; overflow-y: auto; white-space: pre-wrap; }
.m-prompt .m-link { align-self: flex-start; padding: 0; font-size: 12.5px; }
.m-remix { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ln); padding-top: 14px; }
.m-remix-ph { height: 150px; }
.m-post-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.m-btn.red { color: #FF8C8C; }
.m-opt { display: flex; align-items: flex-start; gap: 11px; background: var(--s1); border: 1px solid var(--ln); border-radius: 13px; padding: 12px 13px; cursor: pointer; }
.m-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ac); flex: none; }
.m-opt b { display: block; font-size: 14px; }
.m-opt small { display: block; font-size: 12px; color: var(--t2); margin-top: 2px; line-height: 1.4; }
.m-opt.off { opacity: .7; }
.m-pub-prev img, .m-pub-prev video { max-height: 260px; object-fit: contain; }
.m-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  background: #262C3A; color: #fff; border: 1px solid #343B4C; border-radius: 12px; padding: 10px 16px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .3s; font-family: 'Onest', sans-serif; }
.m-toast.off { opacity: 0; }
body.m-desk .m-fgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
body.m-desk .m-fcard:hover .m-fcard-img { filter: brightness(1.1); transform: translateY(-3px); }
body.m-desk .m-toast { bottom: 32px; }
body.m-desk #m[data-tab="feed"] .m-prof { max-width: 640px; }
body.m-desk .m-sheet .m-media img, body.m-desk .m-sheet .m-media video { max-height: 60vh; object-fit: contain; }

/* ===== лента-скроллер (v2) ===== */
.m-feed { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 620px; margin: 0 auto; }
.m-feed-me { display: flex; align-items: center; gap: 8px; background: none; border: none; color: #C9C0FF; font-size: 13.5px; font-weight: 600; padding: 4px 0; flex: none; }
.m-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.25); background: #2A3040; }
.m-ava img { width: 100%; height: 100%; object-fit: cover; }
.m-ava.sm { width: 28px; height: 28px; font-size: 12px; }
.m-ava.big { width: 64px; height: 64px; font-size: 26px; }
.m-follow { flex: none; margin-left: auto; border: none; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 700;
  background: var(--ac2); color: #fff; }
.m-follow.on { background: var(--s2); color: var(--t2); border: 1px solid var(--ln2); font-weight: 600; }
.m-fp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #1A1F2A; }
.m-fp-h { display: flex; align-items: center; gap: 10px; }
.m-fp-who { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; color: var(--tx); text-align: left; min-width: 0; }
.m-fp-who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-fp-who small { display: block; font-size: 12px; color: var(--t2); margin-top: 1px; }
.m-fp-who em { font-style: normal; color: #FF7A90; font-weight: 700; }
.m-fp-m { position: relative; border-radius: 18px; overflow: hidden; background: #11141C; cursor: pointer; user-select: none; -webkit-user-select: none; }
.m-fp-m img, .m-fp-m video { display: block; width: 100%; max-height: 78vh; object-fit: cover; }
.m-fp-m.aud { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; cursor: default;
  background: linear-gradient(135deg, #2A1B3D, #12192A); }
.m-fp-aud svg { width: 44px; height: 44px; color: #C9C0FF; }
.m-fp-m.aud audio { width: 100%; }
.m-fp-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.4); color: #FF5C7E; pointer-events: none;
  animation: m-pop .8s ease-out forwards; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.m-fp-pop svg { width: 96px; height: 96px; fill: #FF5C7E; stroke: #FF5C7E; }
@keyframes m-pop { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 0; } 20% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  70% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-60%) scale(1); opacity: 0; } }
.m-fp-a { display: flex; align-items: center; gap: 6px; }
.m-fp-rx { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 999px; padding: 8px 8px 8px 14px; margin-right: 6px;
  background: linear-gradient(135deg, #8B7CFF, #5B6CFF); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(110,100,255,.35); }
.m-fp-rx .m-coin { font-size: 12.5px; }
.m-fp-i { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: #D5D9E3; font-size: 14px; font-weight: 600; padding: 7px 8px; border-radius: 10px; }
.m-fp-i:hover { background: #151A24; }
.m-fp-i.on { color: #FF5C7E; }
.m-fp-i.on svg { fill: #FF5C7E; }
.m-fp-more { margin-left: auto; color: var(--t3); letter-spacing: 1px; }
.m-fp-meta { font-size: 12.5px; color: var(--t3); }
.m-fp-meta b { color: var(--t2); font-weight: 600; }
.m-fp-p { font-size: 13.5px; line-height: 1.5; color: #C9CEDA; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: pre-wrap; }
.m-fp-p.open { -webkit-line-clamp: unset; display: block; }
.m-fp-p.hid { color: var(--t3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; cursor: default; }
.m-feed-more, .m-feed-end { text-align: center; padding: 8px 0 20px; }
.m-trend { gap: 10px; }
.m-trend-r { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-snap-type: x proximity; }
.m-trend-r::-webkit-scrollbar { display: none; }
.m-trend-i { position: relative; flex: 0 0 104px; border: none; padding: 0; background: none; scroll-snap-align: start; }
.m-trend-img { display: block; aspect-ratio: 3 / 4; border-radius: 14px; background: #171B28 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.m-trend-n { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(6,7,11,.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 3px 7px; }
.m-trend-n svg { width: 12px; height: 12px; }
.m-rx-src { display: flex; align-items: center; gap: 12px; background: var(--s1); border: 1px solid var(--ln); border-radius: 14px; padding: 8px; }
.m-rx-img { width: 54px; height: 72px; border-radius: 10px; flex: none; background: #171B28 center / cover no-repeat; }
.m-rx-src b { display: block; font-size: 14px; }
.m-rx-src small { font-size: 12px; color: var(--t2); }
.m-prof-t .m-follow { margin-left: auto; }
.m-prof-s4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.m-cm { gap: 10px; }
.m-cm-list { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow-y: auto; padding: 4px 0; }
.m-cm-empty { text-align: center; padding: 18px 0; }
.m-cm-i { position: relative; display: flex; gap: 10px; padding-right: 30px; }
.m-cm-i b { font-size: 13px; cursor: pointer; }
.m-cm-i small { font-size: 11.5px; color: var(--t3); }
.m-cm-i p { font-size: 14px; line-height: 1.45; color: #D9DDE7; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.m-cm-del { position: absolute; right: 0; top: 0; width: 26px; height: 26px; border: none; border-radius: 8px; background: none; color: var(--t3);
  display: flex; align-items: center; justify-content: center; }
.m-cm-del svg { width: 14px; height: 14px; }
.m-cm-form { position: sticky; bottom: 0; }
body.m-desk #m[data-tab="feed"] .m-scroll { padding-top: 4px; }
body.m-desk .m-trend-r { margin: 0; padding: 0; }
body.m-desk .m-trend-i { flex-basis: 112px; }
body.m-desk .m-fp-m img, body.m-desk .m-fp-m video { max-height: 72vh; }
body.m-on:not(.m-desk) .m-feed-me > span:not(.m-ava) { display: none; }
body.m-on:not(.m-desk) .m-feed-seg { flex: 1; }
body.m-on:not(.m-desk) .m-fp-a { gap: 0; }
body.m-on:not(.m-desk) .m-fp-i { padding: 7px 6px; }
body.m-on:not(.m-desk) .m-fp-rx { margin-right: 4px; padding-left: 12px; }
