/* п. 403: единая тёмная тема «Ночь» — бирюзовый акцент, оранжевый — дополнительный. Без размытия и тяжёлых эффектов.
   Собрано из прежних тем с новой палитрой; поверх — night2.css (ручные правки). */
/* ---- из horizon.css (horizon) ---- */
html[data-theme="night"] body, html[data-theme="night"] body.dark, html[data-theme="night"] body.master, html[data-theme="night"] body.th-on, html[data-theme="night"] body.th-on.dark, html[data-theme="night"] body.th-on:not(.dark) {
  --board: transparent; --paper: rgba(35, 49, 78, .82); --ink: #F3F6FA; --ink-soft: #94A3B8; --line: rgba(219, 229, 240, .16);
  --tab: #1CE3C8; --tab-ink: #FFFFFF; --mine: #1CE3C8; --mine-ink: #FFFFFF; --alarm: #FF5A64; --warn: #FA8C42; --ok: #35D08F;
  --b-ok: #1FB57A; --b-primary: #1CE3C8; --b-warn: #FA8232; --b-danger: #E5484D; --b-violet: #1CE3C8; --b-neutral: rgba(255, 255, 255, .16);
  --g-bg: rgba(255, 255, 255, .07); --g-bg2: rgba(255, 255, 255, .10); --g-brd: rgba(219, 229, 240, .20); --g-edge: rgba(255, 255, 255, .06);
  --g-sh: 0 10px 30px rgba(13, 18, 29, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  --g-sh-s: 0 6px 16px rgba(13, 18, 29, .40), inset 0 1px 0 rgba(255, 255, 255, .10);
  --hz-grad: linear-gradient(135deg, #1CE3C8, #1CE3C8);
  --hz-glass: rgba(38, 53, 84, .55);
  color: var(--ink); font-size: 16.5px;
}
html[data-theme="night"] #thBg { background:
  radial-gradient(1100px 620px at 8% -8%, rgba(28, 227, 200, .38), transparent 60%),
  radial-gradient(900px 700px at 108% 18%, rgba(28, 227, 200, .30), transparent 60%),
  radial-gradient(900px 600px at 50% 118%, rgba(28, 227, 200, .22), transparent 60%),
  linear-gradient(160deg, #151D2E, #1A253A 45%, #1F2B44) !important; }
html[data-theme="night"] body .muted, html[data-theme="night"] body .hint { color: var(--ink-soft); }
html[data-theme="night"] body a { color: #1CE3C8; }
html[data-theme="night"] body .btn { background-color: #1CE3C8; background-image: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: 0 8px 20px rgba(28, 227, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
html[data-theme="night"] body .btn.ghost { background-image: none !important; background-color: rgba(255, 255, 255, .07) !important; color: var(--ink) !important;
  box-shadow: var(--g-sh-s) !important; }
html[data-theme="night"] body .btn.danger { background-image: linear-gradient(135deg, #FF5A64, #1CE3C8) !important; box-shadow: 0 8px 20px rgba(230, 60, 90, .30) !important; }
html[data-theme="night"] body .chip, html[data-theme="night"] body .vis-act, html[data-theme="night"] body .seg > button, html[data-theme="night"] body .view-back, html[data-theme="night"] body .view-x, html[data-theme="night"] body .sheet-x, html[data-theme="night"] body .fh-close, html[data-theme="night"] body .kpi-more, html[data-theme="night"] body .rx-pill {
  color: var(--ink) !important; background-color: rgba(255, 255, 255, .08) !important; }
html[data-theme="night"] body .seg > button[aria-pressed="true"], html[data-theme="night"] body .vis-act.on, html[data-theme="night"] body .folder-filt .chip.on {
  background-image: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .3) !important; }
html[data-theme="night"] body .chip.take { background-image: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .chip.boss { border-color: rgba(250, 140, 66, .7) !important; }
html[data-theme="night"] body .input, html[data-theme="night"] body select.input, html[data-theme="night"] body textarea.input, html[data-theme="night"] body .composer textarea, html[data-theme="night"] body input[type="text"], html[data-theme="night"] body input[type="number"],
html[data-theme="night"] body input[type="date"], html[data-theme="night"] body input[type="time"], html[data-theme="night"] body input[type="password"], html[data-theme="night"] body input[type="search"], html[data-theme="night"] body select, html[data-theme="night"] body textarea {
  background-color: rgba(17, 24, 38, .45) !important; color: var(--ink) !important; border-color: rgba(219, 229, 240, .22) !important; }
html[data-theme="night"] body ::placeholder { color: #94A3B8; opacity: 1; }
html[data-theme="night"] body select option { background: #212F49; color: #F3F6FA; }
html[data-theme="night"] body .code-input { background: rgba(17, 24, 38, .5); color: #FFFFFF; border-color: #1CE3C8; }
html[data-theme="night"] body .chat-head, html[data-theme="night"] body:not(.lvl-gold) .chat-head, html[data-theme="night"] body.th-on:not(.lvl-gold) .chat-head {
  background: linear-gradient(180deg, rgba(22, 182, 160, .72), rgba(36, 50, 79, .62)) !important; color: #FFFFFF;
  border-bottom: 1px solid rgba(219, 229, 240, .14);   }
html[data-theme="night"] body.lvl-gold .chat-head { box-shadow: inset 0 -3px 0 #FA893D, 0 8px 22px rgba(0, 0, 0, .25) !important; }
html[data-theme="night"] body.lvl-gold .chat-head .sub, html[data-theme="night"] body.lvl-gold .chat-head .title, html[data-theme="night"] body.lvl-gold .chat-head button { color: #FFFFFF; }
html[data-theme="night"] body .chips, html[data-theme="night"] body .composer, html[data-theme="night"] body.th-on .chips, html[data-theme="night"] body.th-on .composer, html[data-theme="night"] body.th-on.th-dark .chips, html[data-theme="night"] body.th-on.th-dark .composer {
  background: rgba(26, 37, 58, .62) !important;  
  border-top: 1px solid rgba(219, 229, 240, .10); }
html[data-theme="night"] body .round { background-image: linear-gradient(135deg, #1CE3C8, #1CE3C8); color: #FFFFFF; box-shadow: 0 6px 16px rgba(28, 227, 200, .40), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="night"] body .round.photo { background-image: linear-gradient(135deg, #1CE3C8, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .round.mic, html[data-theme="night"] body .round.stk-btn { background: rgba(255, 255, 255, .08); background-image: none; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(219, 229, 240, .22); }
html[data-theme="night"] body .round.mic.rec { background: #E5484D; }
html[data-theme="night"] body .install-bar { background: linear-gradient(90deg, #1CE3C8, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .install-x { color: #FFFFFF; }
html[data-theme="night"] body .feed { background: transparent !important; }
html[data-theme="night"] body .msg { background: rgba(255, 255, 255, .075); color: var(--ink); border: 1px solid rgba(219, 229, 240, .12);
    box-shadow: 0 6px 18px rgba(13, 18, 29, .30); line-height: 1.5; }
html[data-theme="night"] body .msg.bot { background: linear-gradient(135deg, rgba(28, 227, 200, .20), rgba(28, 227, 200, .12)); border-left: 3px solid #1CE3C8; border-radius: 18px; }
html[data-theme="night"] body .msg.bot .who, html[data-theme="night"] body .msg .who { color: #DBE5F0; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me { background: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #FFFFFF; border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 22px rgba(28, 227, 200, .35); }
html[data-theme="night"] body .msg time { opacity: .7; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .10); color: inherit; }
html[data-theme="night"] body .rquote { border-left-color: #1CE3C8; background: rgba(0, 0, 0, .18); }
html[data-theme="night"] body .replybar { border-left-color: #1CE3C8; background: rgba(35, 49, 78, .92); }
html[data-theme="night"] body .msg.flash { outline-color: #1CE3C8; }
html[data-theme="night"] body .msg.explanation { outline-color: #FA8C42; }
html[data-theme="night"] body .day-sep, html[data-theme="night"] body.th-on .day-sep, html[data-theme="night"] body.th-on.dark .day-sep, html[data-theme="night"] body.th-on.master .day-sep {
  background: rgba(255, 255, 255, .09) !important; color: #DBE5F0 !important; border: 1px solid rgba(219, 229, 240, .14); border-radius: 999px; }
html[data-theme="night"] body .photos-time, html[data-theme="night"] body.th-on .photos-time { background: rgba(255, 255, 255, .09) !important; color: #DBE5F0 !important; }
html[data-theme="night"] body .typing-row, html[data-theme="night"] body .upload-bar, html[data-theme="night"] body .folder-card { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="night"] body .msg-buttons button[data-tone="neutral"] { color: #FFFFFF; }
html[data-theme="night"] body.master .msg.card { border-left-color: #1CE3C8; }
html[data-theme="night"] body .scr-btn { background: rgba(38, 53, 84, .78); color: #FFFFFF; border: 1px solid rgba(219, 229, 240, .25);
    box-shadow: 0 8px 20px rgba(13, 18, 29, .5); }
html[data-theme="night"] body .rx-picker, html[data-theme="night"] body .stk-panel { background: rgba(33, 47, 74, .96); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .unread-sep { background: linear-gradient(90deg, #FF5A64, #1CE3C8); }
html[data-theme="night"] body .sheet-card, html[data-theme="night"] body .folder-box, html[data-theme="night"] body dialog, html[data-theme="night"] body.dark dialog, html[data-theme="night"] body .th-card, html[data-theme="night"] body .menu-pop, html[data-theme="night"] body.dark .menu-pop {
  background: #22304B !important; color: var(--ink) !important; border: 1px solid rgba(219, 229, 240, .16); }
html[data-theme="night"] body .menu-pop button:hover, html[data-theme="night"] body.dark .menu-pop button:hover { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body dialog::backdrop { background: rgba(12, 16, 26, .6);   }
html[data-theme="night"] body dialog .fclose, html[data-theme="night"] body.dark dialog .fclose { background: linear-gradient(135deg, #1CE3C8, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .card, html[data-theme="night"] body .dcard, html[data-theme="night"] body .kpi, html[data-theme="night"] body .mcard, html[data-theme="night"] body .flcard, html[data-theme="night"] body .ads-card, html[data-theme="night"] body .flref, html[data-theme="night"] body .tablewrap, html[data-theme="night"] body .tablewrap th,
html[data-theme="night"] body .tablewrap td:first-child { background-color: rgba(35, 49, 78, .72); color: var(--ink); }
html[data-theme="night"] body .tablewrap tbody tr:hover td { background: rgba(28, 227, 200, .10); }
html[data-theme="night"] body .rcard { border-left-color: #1CE3C8 !important; }
html[data-theme="night"] body .list, html[data-theme="night"] body.dark .list, html[data-theme="night"] body.dark .items, html[data-theme="night"] body.dark aside.list, html[data-theme="night"] body.th-on .list, html[data-theme="night"] body.th-on.dark .list {
  background: rgba(26, 37, 58, .66) !important;   border-color: rgba(219, 229, 240, .10) !important; }
html[data-theme="night"] body .item, html[data-theme="night"] body.dark .item { color: var(--ink); border-color: rgba(219, 229, 240, .08) !important; }
html[data-theme="night"] body .item:hover, html[data-theme="night"] body.dark .item:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="night"] body .item[aria-current="true"], html[data-theme="night"] body.dark .item[aria-current="true"] { background: rgba(28, 227, 200, .16); box-shadow: inset 3px 0 0 #1CE3C8; }
html[data-theme="night"] body .conv-empty, html[data-theme="night"] body.dark .conv-empty, html[data-theme="night"] body.th-on .conv-empty { background: transparent; color: var(--ink-soft); }
html[data-theme="night"] body .st, html[data-theme="night"] body .pill { background: rgba(255, 255, 255, .10); color: var(--ink); }
html[data-theme="night"] body .gate-card, html[data-theme="night"] body.dark .gate-card { background: rgba(35, 49, 78, .85); color: var(--ink); border-radius: 22px; border: 1px solid rgba(219, 229, 240, .18);
    box-shadow: 0 20px 50px rgba(13, 18, 29, .5); padding-bottom: 24px; }
html[data-theme="night"] body .tabs-edge { display: none; }
html[data-theme="night"] body .toast { background: #16B6A0; color: #FFFFFF; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
html[data-theme="night"] body .th-item { background: rgba(255, 255, 255, .06); color: var(--ink); }
html[data-theme="night"] body .th-item[aria-pressed="true"] { border-color: #1CE3C8; background: rgba(28, 227, 200, .18); }
html[data-theme="night"] body .th-x { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .th-note, html[data-theme="night"] body .th-credit { color: var(--ink-soft); }
html[data-theme="night"] body .myroutes .mr-item { background: rgba(255, 255, 255, .07); }
html[data-theme="night"] body .fh-close, html[data-theme="night"] body.th-on .fh-close { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .donut-in, html[data-theme="night"] body .gknob { background: #22304B; color: var(--ink); }
html[data-theme="night"] body .flthumb { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body .cityb { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .cityb.on, html[data-theme="night"] body .mnow-city button.on, html[data-theme="night"] body.dark .seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body.dark .btn:not(.ghost):not(.danger) { color: #FFFFFF; }
html[data-theme="night"] body.dark .round { color: #FFFFFF; }
html[data-theme="night"] body .adv { border-left-color: #1CE3C8; }
html[data-theme="night"] body .msg {
  border-radius: 18px; padding: 8px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(219, 229, 240, .18);
  box-shadow: 0 10px 26px rgba(13, 18, 29, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
   
}
html[data-theme="night"] body .msg.bot {
  background: linear-gradient(150deg, rgba(28, 227, 200, .30), rgba(28, 227, 200, .16) 55%, rgba(28, 227, 200, .10));
  border: 1px solid rgba(28, 227, 200, .38); border-left: 1px solid rgba(28, 227, 200, .38);
  box-shadow: 0 10px 28px rgba(22, 182, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  position: relative;
}
html[data-theme="night"] body .msg.bot::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #1CE3C8, #1CE3C8); box-shadow: 0 0 12px rgba(28, 227, 200, .8);
}
html[data-theme="night"] body .msg.bot .who { color: #DBE5F0; font-weight: 800; letter-spacing: .2px; }
html[data-theme="night"] body .msg.them:not(.bot) {
  background: linear-gradient(150deg, rgba(28, 227, 200, .22), rgba(53, 208, 143, .10));
  border: 1px solid rgba(28, 227, 200, .34);
  box-shadow: 0 10px 26px rgba(38, 53, 84, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}
html[data-theme="night"] body .msg.them:not(.bot) .who { color: #1CE3C8; font-weight: 800; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me {
  background: linear-gradient(135deg, #1CE3C8, #1CE3C8 60%, #1CE3C8) !important;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(28, 227, 200, .45), inset 0 1px 0 rgba(255, 255, 255, .30);
}
html[data-theme="night"] body .msg .mtext { font-size: 15.5px; line-height: 1.4; }
html[data-theme="night"] body .msg time { font-size: 11.5px; opacity: .75; letter-spacing: .2px; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); }
html[data-theme="night"] body .msg-buttons button { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
html[data-theme="night"] body .msg.card, html[data-theme="night"] body .rcard {
  border: 1px solid rgba(250, 140, 66, .35) !important; box-shadow: 0 10px 26px rgba(38, 53, 84, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-theme="night"] body .photos .ph { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
html[data-theme="night"] body .typing-row { background: linear-gradient(150deg, rgba(28, 227, 200, .25), rgba(28, 227, 200, .12)); border: 1px solid rgba(28, 227, 200, .3); }
/* ---- из home.css (horizon) ---- */
html[data-theme="night"] body .mnow-btn { background: linear-gradient(135deg, #1CE3C8, #1CE3C8); box-shadow: 0 8px 22px rgba(28, 227, 200, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
html[data-theme="night"] body .mnow-panel, html[data-theme="night"] body .mnow-head { background: #22304B; color: var(--ink); }
html[data-theme="night"] body .nav, html[data-theme="night"] body.th-on .nav { background: rgba(20, 28, 44, .62) !important;
    border-right: 1px solid rgba(219, 229, 240, .10); }
html[data-theme="night"] body .codebox { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; border: 1px solid rgba(219, 229, 240, .25) !important; }
/* ---- из style.css (horizon) ---- */
html[data-theme="night"] body .pinbar { background: rgba(35, 49, 78, .78);  
  border-bottom: 1px solid rgba(219, 229, 240, .14); }
html[data-theme="night"] body .pin-tx b { color: #DBE5F0; }
html[data-theme="night"] body .rep-item { background: rgba(255, 255, 255, .07); border-color: rgba(219, 229, 240, .18); }
html:not([data-theme="night"]):not([data-theme="plum"]):not([data-theme="ember"]) body.th-dark .chip, html:not([data-theme="night"]):not([data-theme="plum"]):not([data-theme="ember"]) body.th-dark .seg > button { color: #F3F6FA !important; border-color: rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .10) !important; }
html:not([data-theme="night"]):not([data-theme="plum"]):not([data-theme="ember"]) .folder-filt .chip.on, html:not([data-theme="night"]):not([data-theme="plum"]):not([data-theme="ember"]) body.th-dark .seg > button[aria-pressed="true"] { background: #FA7C28 !important; color: #0B1019 !important; border-color: transparent !important; }
html[data-theme="night"] body .rep-del { background: rgba(255, 255, 255, .07); border-color: rgba(219, 229, 240, .18); }
html[data-theme="night"] body .btn.danger-t, html body .folder-head .btn.danger-t { color: #FF7A80 !important; }
/* ---- из plum.css (plum) ---- */
html[data-theme="night"] body, html[data-theme="night"] body.dark, html[data-theme="night"] body.master, html[data-theme="night"] body.th-on, html[data-theme="night"] body.th-on.dark, html[data-theme="night"] body.th-on:not(.dark) {
  --board: transparent; --paper: rgba(18, 25, 39, .82); --ink: #EBF0F6; --ink-soft: #94A3B8; --line: rgba(219, 229, 240, .16);
  --tab: #94A3B8; --tab-ink: #FFFFFF; --mine: #16B6A0; --mine-ink: #FFFFFF; --alarm: #FF5A64; --warn: #1CE3C8; --ok: #35D08F;
  --b-ok: #1FB57A; --b-primary: #16B6A0; --b-warn: #1CE3C8; --b-danger: #E5484D; --b-violet: #1CE3C8; --b-neutral: rgba(255, 255, 255, .16);
  --g-bg: rgba(255, 255, 255, .07); --g-bg2: rgba(255, 255, 255, .10); --g-brd: rgba(219, 229, 240, .20); --g-edge: rgba(255, 255, 255, .06);
  --g-sh: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  --g-sh-s: 0 6px 16px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .10);
  --hz-grad: linear-gradient(135deg, #1ACEB6, #1CE3C8);
  --hz-glass: rgba(19, 26, 41, .55);
  color: var(--ink); font-size: 16.5px;
}
html[data-theme="night"] #thBg { background:
  radial-gradient(1100px 620px at 8% -8%, rgba(25, 205, 181, .38), transparent 60%),
  radial-gradient(900px 700px at 108% 18%, rgba(28, 227, 200, .30), transparent 60%),
  radial-gradient(900px 600px at 50% 118%, rgba(22, 182, 160, .22), transparent 60%),
  linear-gradient(160deg, #0A0E16, #0E141F 45%, #121927) !important; }
html[data-theme="night"] body .muted, html[data-theme="night"] body .hint { color: var(--ink-soft); }
html[data-theme="night"] body a { color: #94A3B8; }
html[data-theme="night"] body .btn { background-color: #16B6A0; background-image: linear-gradient(135deg, #1ACEB6, #1CE3C8) !important; color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: 0 8px 20px rgba(26, 214, 189, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
html[data-theme="night"] body .btn.ghost { background-image: none !important; background-color: rgba(255, 255, 255, .07) !important; color: var(--ink) !important;
  box-shadow: var(--g-sh-s) !important; }
html[data-theme="night"] body .btn.danger { background-image: linear-gradient(135deg, #FF5A64, #1CE3C8) !important; box-shadow: 0 8px 20px rgba(230, 60, 90, .30) !important; }
html[data-theme="night"] body .chip, html[data-theme="night"] body .vis-act, html[data-theme="night"] body .seg > button, html[data-theme="night"] body .view-back, html[data-theme="night"] body .view-x, html[data-theme="night"] body .sheet-x, html[data-theme="night"] body .fh-close, html[data-theme="night"] body .kpi-more, html[data-theme="night"] body .rx-pill {
  color: var(--ink) !important; background-color: rgba(255, 255, 255, .08) !important; }
html[data-theme="night"] body .seg > button[aria-pressed="true"], html[data-theme="night"] body .vis-act.on, html[data-theme="night"] body .folder-filt .chip.on {
  background-image: linear-gradient(135deg, #1ACEB6, #1CE3C8) !important; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .3) !important; }
html[data-theme="night"] body .chip.take { background-image: linear-gradient(135deg, #1ACEB6, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .chip.boss { border-color: rgba(28, 227, 200, .7) !important; }
html[data-theme="night"] body .input, html[data-theme="night"] body select.input, html[data-theme="night"] body textarea.input, html[data-theme="night"] body .composer textarea, html[data-theme="night"] body input[type="text"], html[data-theme="night"] body input[type="number"],
html[data-theme="night"] body input[type="date"], html[data-theme="night"] body input[type="time"], html[data-theme="night"] body input[type="password"], html[data-theme="night"] body input[type="search"], html[data-theme="night"] body select, html[data-theme="night"] body textarea {
  background-color: rgba(17, 24, 38, .45) !important; color: var(--ink) !important; border-color: rgba(219, 229, 240, .22) !important; }
html[data-theme="night"] body ::placeholder { color: #A898A4; opacity: 1; }
html[data-theme="night"] body select option { background: #121A29; color: #EBF0F6; }
html[data-theme="night"] body .code-input { background: rgba(17, 24, 38, .5); color: #FFFFFF; border-color: #94A3B8; }
html[data-theme="night"] body .chat-head, html[data-theme="night"] body:not(.lvl-gold) .chat-head, html[data-theme="night"] body.th-on:not(.lvl-gold) .chat-head {
  background: linear-gradient(180deg, rgba(27, 37, 59, .72), rgba(18, 25, 39, .62)) !important; color: #FFFFFF;
  border-bottom: 1px solid rgba(219, 229, 240, .14);   }
html[data-theme="night"] body.lvl-gold .chat-head { box-shadow: inset 0 -3px 0 #1CE3C8, 0 8px 22px rgba(0, 0, 0, .25) !important; }
html[data-theme="night"] body.lvl-gold .chat-head .sub, html[data-theme="night"] body.lvl-gold .chat-head .title, html[data-theme="night"] body.lvl-gold .chat-head button { color: #FFFFFF; }
html[data-theme="night"] body .chips, html[data-theme="night"] body .composer, html[data-theme="night"] body.th-on .chips, html[data-theme="night"] body.th-on .composer, html[data-theme="night"] body.th-on.th-dark .chips, html[data-theme="night"] body.th-on.th-dark .composer {
  background: rgba(26, 37, 58, .62) !important;  
  border-top: 1px solid rgba(219, 229, 240, .10); }
html[data-theme="night"] body .round { background-image: linear-gradient(135deg, #1ACEB6, #1CE3C8); color: #FFFFFF; box-shadow: 0 6px 16px rgba(26, 214, 189, .40), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="night"] body .round.photo { background-image: linear-gradient(135deg, #94A3B8, #16B6A0); color: #FFFFFF; }
html[data-theme="night"] body .round.mic, html[data-theme="night"] body .round.stk-btn { background: rgba(255, 255, 255, .08); background-image: none; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(219, 229, 240, .22); }
html[data-theme="night"] body .round.mic.rec { background: #E5484D; }
html[data-theme="night"] body .install-bar { background: linear-gradient(90deg, #16B6A0, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .install-x { color: #FFFFFF; }
html[data-theme="night"] body .feed { background: transparent !important; }
html[data-theme="night"] body .msg { background: rgba(255, 255, 255, .075); color: var(--ink); border: 1px solid rgba(219, 229, 240, .12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .30); line-height: 1.5; }
html[data-theme="night"] body .msg.bot { background: linear-gradient(135deg, rgba(28, 227, 200, .20), rgba(28, 227, 200, .12)); border-left: 3px solid #94A3B8; border-radius: 18px; }
html[data-theme="night"] body .msg.bot .who, html[data-theme="night"] body .msg .who { color: #94A3B8; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me { background: linear-gradient(135deg, #16B6A0, #1CE3C8) !important; color: #FFFFFF; border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 22px rgba(24, 196, 173, .35); }
html[data-theme="night"] body .msg time { opacity: .7; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .10); color: inherit; }
html[data-theme="night"] body .rquote { border-left-color: #94A3B8; background: rgba(0, 0, 0, .18); }
html[data-theme="night"] body .replybar { border-left-color: #94A3B8; background: rgba(18, 25, 39, .92); }
html[data-theme="night"] body .msg.flash { outline-color: #94A3B8; }
html[data-theme="night"] body .msg.explanation { outline-color: #1CE3C8; }
html[data-theme="night"] body .day-sep, html[data-theme="night"] body.th-on .day-sep, html[data-theme="night"] body.th-on.dark .day-sep, html[data-theme="night"] body.th-on.master .day-sep {
  background: rgba(255, 255, 255, .09) !important; color: #94A3B8 !important; border: 1px solid rgba(219, 229, 240, .14); border-radius: 999px; }
html[data-theme="night"] body .photos-time, html[data-theme="night"] body.th-on .photos-time { background: rgba(255, 255, 255, .09) !important; color: #94A3B8 !important; }
html[data-theme="night"] body .typing-row, html[data-theme="night"] body .upload-bar, html[data-theme="night"] body .folder-card { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="night"] body .msg-buttons button[data-tone="neutral"] { color: #FFFFFF; }
html[data-theme="night"] body.master .msg.card { border-left-color: #94A3B8; }
html[data-theme="night"] body .scr-btn { background: rgba(19, 26, 41, .78); color: #FFFFFF; border: 1px solid rgba(219, 229, 240, .25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
html[data-theme="night"] body .rx-picker, html[data-theme="night"] body .stk-panel { background: rgba(17, 23, 37, .96); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .unread-sep { background: linear-gradient(90deg, #FF5A64, #1CE3C8); }
html[data-theme="night"] body .sheet-card, html[data-theme="night"] body .folder-box, html[data-theme="night"] body dialog, html[data-theme="night"] body.dark dialog, html[data-theme="night"] body .th-card, html[data-theme="night"] body .menu-pop, html[data-theme="night"] body.dark .menu-pop {
  background: #141D2E !important; color: var(--ink) !important; border: 1px solid rgba(219, 229, 240, .16); }
html[data-theme="night"] body .menu-pop button:hover, html[data-theme="night"] body.dark .menu-pop button:hover { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body dialog::backdrop { background: rgba(0, 0, 0, .6);   }
html[data-theme="night"] body dialog .fclose, html[data-theme="night"] body.dark dialog .fclose { background: linear-gradient(135deg, #1ACEB6, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .card, html[data-theme="night"] body .dcard, html[data-theme="night"] body .kpi, html[data-theme="night"] body .mcard, html[data-theme="night"] body .flcard, html[data-theme="night"] body .ads-card, html[data-theme="night"] body .flref, html[data-theme="night"] body .tablewrap, html[data-theme="night"] body .tablewrap th,
html[data-theme="night"] body .tablewrap td:first-child { background-color: rgba(18, 25, 39, .72); color: var(--ink); }
html[data-theme="night"] body .tablewrap tbody tr:hover td { background: rgba(28, 227, 200, .10); }
html[data-theme="night"] body .rcard { border-left-color: #94A3B8 !important; }
html[data-theme="night"] body .list, html[data-theme="night"] body.dark .list, html[data-theme="night"] body.dark .items, html[data-theme="night"] body.dark aside.list, html[data-theme="night"] body.th-on .list, html[data-theme="night"] body.th-on.dark .list {
  background: rgba(26, 37, 58, .66) !important;   border-color: rgba(219, 229, 240, .10) !important; }
html[data-theme="night"] body .item, html[data-theme="night"] body.dark .item { color: var(--ink); border-color: rgba(219, 229, 240, .08) !important; }
html[data-theme="night"] body .item:hover, html[data-theme="night"] body.dark .item:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="night"] body .item[aria-current="true"], html[data-theme="night"] body.dark .item[aria-current="true"] { background: rgba(28, 227, 200, .16); box-shadow: inset 3px 0 0 #94A3B8; }
html[data-theme="night"] body .conv-empty, html[data-theme="night"] body.dark .conv-empty, html[data-theme="night"] body.th-on .conv-empty { background: transparent; color: var(--ink-soft); }
html[data-theme="night"] body .st, html[data-theme="night"] body .pill { background: rgba(255, 255, 255, .10); color: var(--ink); }
html[data-theme="night"] body .gate-card, html[data-theme="night"] body.dark .gate-card { background: rgba(18, 25, 39, .85); color: var(--ink); border-radius: 22px; border: 1px solid rgba(219, 229, 240, .18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding-bottom: 24px; }
html[data-theme="night"] body .tabs-edge { display: none; }
html[data-theme="night"] body .toast { background: #1A253A; color: #FFFFFF; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
html[data-theme="night"] body .th-item { background: rgba(255, 255, 255, .06); color: var(--ink); }
html[data-theme="night"] body .th-item[aria-pressed="true"] { border-color: #94A3B8; background: rgba(28, 227, 200, .18); }
html[data-theme="night"] body .th-x { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .th-note, html[data-theme="night"] body .th-credit { color: var(--ink-soft); }
html[data-theme="night"] body .myroutes .mr-item { background: rgba(255, 255, 255, .07); }
html[data-theme="night"] body .fh-close, html[data-theme="night"] body.th-on .fh-close { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .donut-in, html[data-theme="night"] body .gknob { background: #141D2E; color: var(--ink); }
html[data-theme="night"] body .flthumb { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body .cityb { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .cityb.on, html[data-theme="night"] body .mnow-city button.on, html[data-theme="night"] body.dark .seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, #1ACEB6, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body.dark .btn:not(.ghost):not(.danger) { color: #FFFFFF; }
html[data-theme="night"] body.dark .round { color: #FFFFFF; }
html[data-theme="night"] body .adv { border-left-color: #94A3B8; }
html[data-theme="night"] body .msg {
  border-radius: 18px; padding: 8px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(219, 229, 240, .18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
   
}
html[data-theme="night"] body .msg.bot {
  background: linear-gradient(150deg, rgba(28, 227, 200, .30), rgba(28, 227, 200, .16) 55%, rgba(148, 163, 184, .10));
  border: 1px solid rgba(148, 163, 184, .38); border-left: 1px solid rgba(148, 163, 184, .38);
  box-shadow: 0 10px 28px rgba(38, 53, 84, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  position: relative;
}
html[data-theme="night"] body .msg.bot::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #94A3B8, #94A3B8); box-shadow: 0 0 12px rgba(28, 227, 200, .8);
}
html[data-theme="night"] body .msg.bot .who { color: #DBE5F0; font-weight: 800; letter-spacing: .2px; }
html[data-theme="night"] body .msg.them:not(.bot) {
  background: linear-gradient(150deg, rgba(148, 163, 184, .22), rgba(53, 208, 143, .10));
  border: 1px solid rgba(148, 163, 184, .34);
  box-shadow: 0 10px 26px rgba(38, 53, 84, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}
html[data-theme="night"] body .msg.them:not(.bot) .who { color: #DBE5F0; font-weight: 800; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me {
  background: linear-gradient(135deg, #16B6A0, #1CE3C8 60%, #1CE3C8) !important;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(25, 205, 181, .45), inset 0 1px 0 rgba(255, 255, 255, .30);
}
html[data-theme="night"] body .msg .mtext { font-size: 15.5px; line-height: 1.4; }
html[data-theme="night"] body .msg time { font-size: 11.5px; opacity: .75; letter-spacing: .2px; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); }
html[data-theme="night"] body .msg-buttons button { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
html[data-theme="night"] body .msg.card, html[data-theme="night"] body .rcard {
  border: 1px solid rgba(28, 227, 200, .35) !important; box-shadow: 0 10px 26px rgba(38, 53, 84, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-theme="night"] body .photos .ph { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
html[data-theme="night"] body .typing-row { background: linear-gradient(150deg, rgba(28, 227, 200, .25), rgba(28, 227, 200, .12)); border: 1px solid rgba(148, 163, 184, .3); }
html[data-theme="night"] body .pl-home { max-width: 560px; margin: 0 auto; }
html[data-theme="night"] body .mnow-btn { background: linear-gradient(135deg, #1ACEB6, #1CE3C8); box-shadow: 0 8px 22px rgba(26, 214, 189, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="night"] body .mnow-panel, html[data-theme="night"] body .mnow-head { background: #141D2E; color: var(--ink); }
html[data-theme="night"] body .nav, html[data-theme="night"] body.th-on .nav { background: rgba(10, 14, 23, .78) !important; }
html[data-theme="night"] body .codebox { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; border: 1px solid rgba(219, 229, 240, .25) !important; }
html[data-theme="night"] body .pinbar { background: rgba(18, 25, 39, .82);   }
html[data-theme="night"] body .pin-tx b { color: #94A3B8; }
html[data-theme="night"] body .rep-item, html[data-theme="night"] body .rep-del { background: rgba(255, 255, 255, .07); border-color: rgba(219, 229, 240, .18); }
html[data-theme="night"] body .btn.danger-t { color: #FF7A80 !important; }
html[data-theme="night"] .cdock { background: rgba(12, 17, 27, .97); }
html[data-theme="night"] .cdock-tab { background: #1ACEB6; }
html[data-theme="night"] .cdock-av { background: linear-gradient(135deg, #1ACEB6, #94A3B8); }
/* ---- из ember.css (ember) ---- */
html[data-theme="night"] body, html[data-theme="night"] body.dark, html[data-theme="night"] body.master, html[data-theme="night"] body.th-on, html[data-theme="night"] body.th-on.dark, html[data-theme="night"] body.th-on:not(.dark) {
  --board: transparent; --paper: rgba(17, 24, 37, .82); --ink: #EDF2F8; --ink-soft: #94A3B8; --line: rgba(219, 229, 240, .16);
  --tab: #1CE3C8; --tab-ink: #FFFFFF; --mine: #18BFA8; --mine-ink: #FFFFFF; --alarm: #FF5A64; --warn: #1CE3C8; --ok: #35D08F;
  --b-ok: #1FB57A; --b-primary: #18BFA8; --b-warn: #1CE3C8; --b-danger: #E5484D; --b-violet: #1CE1C7; --b-neutral: rgba(255, 255, 255, .16);
  --g-bg: rgba(255, 255, 255, .07); --g-bg2: rgba(255, 255, 255, .10); --g-brd: rgba(219, 229, 240, .20); --g-edge: rgba(255, 255, 255, .06);
  --g-sh: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  --g-sh-s: 0 6px 16px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .10);
  --hz-grad: linear-gradient(135deg, #19C8B1, #1CE3C8);
  --hz-glass: rgba(18, 25, 39, .55);
  color: var(--ink); font-size: 16.5px;
}
html[data-theme="night"] #thBg { background:
  radial-gradient(1100px 620px at 8% -8%, rgba(28, 227, 200, .38), transparent 60%),
  radial-gradient(900px 700px at 108% 18%, rgba(28, 227, 200, .30), transparent 60%),
  radial-gradient(900px 600px at 50% 118%, rgba(24, 191, 168, .22), transparent 60%),
  linear-gradient(170deg, #1CE3C8 0%, #18BFA8 38%, #212F4A 72%, #121A29 100%) !important; }
html[data-theme="night"] body .muted, html[data-theme="night"] body .hint { color: var(--ink-soft); }
html[data-theme="night"] body a { color: #1CE3C8; }
html[data-theme="night"] body .btn { background-color: #18BFA8; background-image: linear-gradient(135deg, #19C8B1, #1CE3C8) !important; color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .22) !important; box-shadow: 0 8px 20px rgba(27, 222, 197, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
html[data-theme="night"] body .btn.ghost { background-image: none !important; background-color: rgba(255, 255, 255, .07) !important; color: var(--ink) !important;
  box-shadow: var(--g-sh-s) !important; }
html[data-theme="night"] body .btn.danger { background-image: linear-gradient(135deg, #FF5A64, #1CE3C8) !important; box-shadow: 0 8px 20px rgba(230, 60, 90, .30) !important; }
html[data-theme="night"] body .chip, html[data-theme="night"] body .vis-act, html[data-theme="night"] body .seg > button, html[data-theme="night"] body .view-back, html[data-theme="night"] body .view-x, html[data-theme="night"] body .sheet-x, html[data-theme="night"] body .fh-close, html[data-theme="night"] body .kpi-more, html[data-theme="night"] body .rx-pill {
  color: var(--ink) !important; background-color: rgba(255, 255, 255, .08) !important; }
html[data-theme="night"] body .seg > button[aria-pressed="true"], html[data-theme="night"] body .vis-act.on, html[data-theme="night"] body .folder-filt .chip.on {
  background-image: linear-gradient(135deg, #19C8B1, #1CE3C8) !important; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .3) !important; }
html[data-theme="night"] body .chip.take { background-image: linear-gradient(135deg, #19C8B1, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .chip.boss { border-color: rgba(28, 227, 200, .7) !important; }
html[data-theme="night"] body .input, html[data-theme="night"] body select.input, html[data-theme="night"] body textarea.input, html[data-theme="night"] body .composer textarea, html[data-theme="night"] body input[type="text"], html[data-theme="night"] body input[type="number"],
html[data-theme="night"] body input[type="date"], html[data-theme="night"] body input[type="time"], html[data-theme="night"] body input[type="password"], html[data-theme="night"] body input[type="search"], html[data-theme="night"] body select, html[data-theme="night"] body textarea {
  background-color: rgba(15, 21, 34, .45) !important; color: var(--ink) !important; border-color: rgba(219, 229, 240, .22) !important; }
html[data-theme="night"] body ::placeholder { color: #94A3B8; opacity: 1; }
html[data-theme="night"] body select option { background: #101623; color: #EDF2F8; }
html[data-theme="night"] body .code-input { background: rgba(15, 21, 34, .5); color: #FFFFFF; border-color: #1CE3C8; }
html[data-theme="night"] body .chat-head, html[data-theme="night"] body:not(.lvl-gold) .chat-head, html[data-theme="night"] body.th-on:not(.lvl-gold) .chat-head {
  background: linear-gradient(180deg, rgba(24, 34, 54, .72), rgba(17, 24, 37, .62)) !important; color: #FFFFFF;
  border-bottom: 1px solid rgba(219, 229, 240, .14);   }
html[data-theme="night"] body.lvl-gold .chat-head { box-shadow: inset 0 -3px 0 #1CE3C8, 0 8px 22px rgba(0, 0, 0, .25) !important; }
html[data-theme="night"] body.lvl-gold .chat-head .sub, html[data-theme="night"] body.lvl-gold .chat-head .title, html[data-theme="night"] body.lvl-gold .chat-head button { color: #FFFFFF; }
html[data-theme="night"] body .chips, html[data-theme="night"] body .composer, html[data-theme="night"] body.th-on .chips, html[data-theme="night"] body.th-on .composer, html[data-theme="night"] body.th-on.th-dark .chips, html[data-theme="night"] body.th-on.th-dark .composer {
  background: rgba(19, 27, 42, .62) !important;  
  border-top: 1px solid rgba(219, 229, 240, .10); }
html[data-theme="night"] body .round { background-image: linear-gradient(135deg, #19C8B1, #1CE3C8); color: #FFFFFF; box-shadow: 0 6px 16px rgba(27, 222, 197, .40), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="night"] body .round.photo { background-image: linear-gradient(135deg, #1CE3C8, #18BFA8); color: #FFFFFF; }
html[data-theme="night"] body .round.mic, html[data-theme="night"] body .round.stk-btn { background: rgba(255, 255, 255, .08); background-image: none; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(219, 229, 240, .22); }
html[data-theme="night"] body .round.mic.rec { background: #E5484D; }
html[data-theme="night"] body .install-bar { background: linear-gradient(90deg, #18BFA8, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .install-x { color: #FFFFFF; }
html[data-theme="night"] body .feed { background: transparent !important; }
html[data-theme="night"] body .msg { background: rgba(255, 255, 255, .075); color: var(--ink); border: 1px solid rgba(219, 229, 240, .12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .30); line-height: 1.5; }
html[data-theme="night"] body .msg.bot { background: linear-gradient(135deg, rgba(28, 227, 200, .20), rgba(28, 227, 200, .12)); border-left: 3px solid #1CE3C8; border-radius: 18px; }
html[data-theme="night"] body .msg.bot .who, html[data-theme="night"] body .msg .who { color: #1CE3C8; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me { background: linear-gradient(135deg, #18BFA8, #1BD8BF) !important; color: #FFFFFF; border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 22px rgba(24, 196, 173, .35); }
html[data-theme="night"] body .msg time { opacity: .7; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .10); color: inherit; }
html[data-theme="night"] body .rquote { border-left-color: #1CE3C8; background: rgba(0, 0, 0, .18); }
html[data-theme="night"] body .replybar { border-left-color: #1CE3C8; background: rgba(17, 24, 37, .92); }
html[data-theme="night"] body .msg.flash { outline-color: #1CE3C8; }
html[data-theme="night"] body .msg.explanation { outline-color: #1CE3C8; }
html[data-theme="night"] body .day-sep, html[data-theme="night"] body.th-on .day-sep, html[data-theme="night"] body.th-on.dark .day-sep, html[data-theme="night"] body.th-on.master .day-sep {
  background: rgba(255, 255, 255, .09) !important; color: #DBE5F0 !important; border: 1px solid rgba(219, 229, 240, .14); border-radius: 999px; }
html[data-theme="night"] body .photos-time, html[data-theme="night"] body.th-on .photos-time { background: rgba(255, 255, 255, .09) !important; color: #DBE5F0 !important; }
html[data-theme="night"] body .typing-row, html[data-theme="night"] body .upload-bar, html[data-theme="night"] body .folder-card { background: rgba(255, 255, 255, .08); color: var(--ink); }
html[data-theme="night"] body .msg-buttons button[data-tone="neutral"] { color: #FFFFFF; }
html[data-theme="night"] body.master .msg.card { border-left-color: #1CE3C8; }
html[data-theme="night"] body .scr-btn { background: rgba(18, 25, 39, .78); color: #FFFFFF; border: 1px solid rgba(219, 229, 240, .25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
html[data-theme="night"] body .rx-picker, html[data-theme="night"] body .stk-panel { background: rgba(17, 23, 37, .96); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .unread-sep { background: linear-gradient(90deg, #FF5A64, #1CE3C8); }
html[data-theme="night"] body .sheet-card, html[data-theme="night"] body .folder-box, html[data-theme="night"] body dialog, html[data-theme="night"] body.dark dialog, html[data-theme="night"] body .th-card, html[data-theme="night"] body .menu-pop, html[data-theme="night"] body.dark .menu-pop {
  background: #121927 !important; color: var(--ink) !important; border: 1px solid rgba(219, 229, 240, .16); }
html[data-theme="night"] body .menu-pop button:hover, html[data-theme="night"] body.dark .menu-pop button:hover { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body dialog::backdrop { background: rgba(0, 0, 0, .6);   }
html[data-theme="night"] body dialog .fclose, html[data-theme="night"] body.dark dialog .fclose { background: linear-gradient(135deg, #19C8B1, #1CE3C8); color: #FFFFFF; }
html[data-theme="night"] body .card, html[data-theme="night"] body .dcard, html[data-theme="night"] body .kpi, html[data-theme="night"] body .mcard, html[data-theme="night"] body .flcard, html[data-theme="night"] body .ads-card, html[data-theme="night"] body .flref, html[data-theme="night"] body .tablewrap, html[data-theme="night"] body .tablewrap th,
html[data-theme="night"] body .tablewrap td:first-child { background-color: rgba(17, 24, 37, .72); color: var(--ink); }
html[data-theme="night"] body .tablewrap tbody tr:hover td { background: rgba(28, 227, 200, .10); }
html[data-theme="night"] body .rcard { border-left-color: #1CE3C8 !important; }
html[data-theme="night"] body .list, html[data-theme="night"] body.dark .list, html[data-theme="night"] body.dark .items, html[data-theme="night"] body.dark aside.list, html[data-theme="night"] body.th-on .list, html[data-theme="night"] body.th-on.dark .list {
  background: rgba(19, 27, 42, .66) !important;   border-color: rgba(219, 229, 240, .10) !important; }
html[data-theme="night"] body .item, html[data-theme="night"] body.dark .item { color: var(--ink); border-color: rgba(219, 229, 240, .08) !important; }
html[data-theme="night"] body .item:hover, html[data-theme="night"] body.dark .item:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="night"] body .item[aria-current="true"], html[data-theme="night"] body.dark .item[aria-current="true"] { background: rgba(28, 227, 200, .16); box-shadow: inset 3px 0 0 #1CE3C8; }
html[data-theme="night"] body .conv-empty, html[data-theme="night"] body.dark .conv-empty, html[data-theme="night"] body.th-on .conv-empty { background: transparent; color: var(--ink-soft); }
html[data-theme="night"] body .st, html[data-theme="night"] body .pill { background: rgba(255, 255, 255, .10); color: var(--ink); }
html[data-theme="night"] body .gate-card, html[data-theme="night"] body.dark .gate-card { background: rgba(17, 24, 37, .85); color: var(--ink); border-radius: 22px; border: 1px solid rgba(219, 229, 240, .18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5); padding-bottom: 24px; }
html[data-theme="night"] body .tabs-edge { display: none; }
html[data-theme="night"] body .toast { background: #161E30; color: #FFFFFF; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
html[data-theme="night"] body .th-item { background: rgba(255, 255, 255, .06); color: var(--ink); }
html[data-theme="night"] body .th-item[aria-pressed="true"] { border-color: #1CE3C8; background: rgba(28, 227, 200, .18); }
html[data-theme="night"] body .th-x { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .th-note, html[data-theme="night"] body .th-credit { color: var(--ink-soft); }
html[data-theme="night"] body .myroutes .mr-item { background: rgba(255, 255, 255, .07); }
html[data-theme="night"] body .fh-close, html[data-theme="night"] body.th-on .fh-close { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; }
html[data-theme="night"] body .donut-in, html[data-theme="night"] body .gknob { background: #121927; color: var(--ink); }
html[data-theme="night"] body .flthumb { background: rgba(255, 255, 255, .08); }
html[data-theme="night"] body .cityb { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: rgba(219, 229, 240, .2); }
html[data-theme="night"] body .cityb.on, html[data-theme="night"] body .mnow-city button.on, html[data-theme="night"] body.dark .seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, #19C8B1, #1CE3C8) !important; color: #FFFFFF !important; }
html[data-theme="night"] body.dark .btn:not(.ghost):not(.danger) { color: #FFFFFF; }
html[data-theme="night"] body.dark .round { color: #FFFFFF; }
html[data-theme="night"] body .adv { border-left-color: #1CE3C8; }
html[data-theme="night"] body .msg {
  border-radius: 18px; padding: 8px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(219, 229, 240, .18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
   
}
html[data-theme="night"] body .msg.bot {
  background: linear-gradient(150deg, rgba(28, 227, 200, .30), rgba(28, 227, 200, .16) 55%, rgba(148, 163, 184, .10));
  border: 1px solid rgba(28, 227, 200, .38); border-left: 1px solid rgba(28, 227, 200, .38);
  box-shadow: 0 10px 28px rgba(38, 53, 84, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  position: relative;
}
html[data-theme="night"] body .msg.bot::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #1CE3C8, #1CE3C8); box-shadow: 0 0 12px rgba(28, 227, 200, .8);
}
html[data-theme="night"] body .msg.bot .who { color: #DBE5F0; font-weight: 800; letter-spacing: .2px; }
html[data-theme="night"] body .msg.them:not(.bot) {
  background: linear-gradient(150deg, rgba(148, 163, 184, .22), rgba(53, 208, 143, .10));
  border: 1px solid rgba(148, 163, 184, .34);
  box-shadow: 0 10px 26px rgba(26, 37, 59, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}
html[data-theme="night"] body .msg.them:not(.bot) .who { color: #DBE5F0; font-weight: 800; }
html[data-theme="night"] body .msg.me, html[data-theme="night"] body.th-on .msg.me {
  background: linear-gradient(135deg, #18BFA8, #1BD8BF 60%, #19C9B2) !important;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(28, 227, 200, .45), inset 0 1px 0 rgba(255, 255, 255, .30);
}
html[data-theme="night"] body .msg .mtext { font-size: 15.5px; line-height: 1.4; }
html[data-theme="night"] body .msg time { font-size: 11.5px; opacity: .75; letter-spacing: .2px; }
html[data-theme="night"] body .msg .rbtn.big { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); }
html[data-theme="night"] body .msg-buttons button { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
html[data-theme="night"] body .msg.card, html[data-theme="night"] body .rcard {
  border: 1px solid rgba(28, 227, 200, .35) !important; box-shadow: 0 10px 26px rgba(38, 53, 84, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-theme="night"] body .photos .ph { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
html[data-theme="night"] body .typing-row { background: linear-gradient(150deg, rgba(28, 227, 200, .25), rgba(28, 227, 200, .12)); border: 1px solid rgba(28, 227, 200, .3); }
html[data-theme="night"] body .pl-home { max-width: 560px; margin: 0 auto; }
html[data-theme="night"] body .mnow-btn { background: linear-gradient(135deg, #19C8B1, #1CE3C8); box-shadow: 0 8px 22px rgba(27, 222, 197, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-theme="night"] body .mnow-panel, html[data-theme="night"] body .mnow-head { background: #121927; color: var(--ink); }
html[data-theme="night"] body .nav, html[data-theme="night"] body.th-on .nav { background: rgba(10, 14, 23, .78) !important; }
html[data-theme="night"] body .codebox { background: rgba(255, 255, 255, .10) !important; color: #FFFFFF !important; border: 1px solid rgba(219, 229, 240, .25) !important; }
html[data-theme="night"] body .pinbar { background: rgba(17, 24, 37, .82);   }
html[data-theme="night"] body .pin-tx b { color: #1CE3C8; }
html[data-theme="night"] body .rep-item, html[data-theme="night"] body .rep-del { background: rgba(255, 255, 255, .07); border-color: rgba(219, 229, 240, .18); }
html[data-theme="night"] body .btn.danger-t { color: #FF7A80 !important; }
html[data-theme="night"] .cdock { background: rgba(12, 17, 27, .97); }
html[data-theme="night"] .cdock-tab { background: #19C8B1; }
html[data-theme="night"] .cdock-av { background: linear-gradient(135deg, #19C8B1, #1CE3C8); }
html[data-theme="night"] #thBg { background:
  radial-gradient(900px 520px at 12% -12%, rgba(28, 227, 200, .55), transparent 60%),
  radial-gradient(800px 620px at 112% 18%, rgba(26, 214, 189, .35), transparent 60%),
  radial-gradient(900px 600px at 50% 120%, rgba(38, 53, 84, .35), transparent 60%),
  linear-gradient(170deg, #263554 0%, #1C283F 42%, #111827 100%) !important; }
html[data-theme="night"] body .seg > button:not([aria-pressed="true"]):not(.on), html[data-theme="night"] body .view-back, html[data-theme="night"] body .view-x,
html[data-theme="night"] body .home-btn, html[data-theme="night"] body .chip:not(.on):not([aria-pressed="true"]), html[data-theme="night"] body .btn.ghost:not([aria-pressed="true"]) {
  background-color: rgba(12, 17, 27, .42) !important; border-color: rgba(219, 229, 240, .20) !important; color: #EDF2F8 !important; }
html[data-theme="night"] body .composer, html[data-theme="night"] body.th-on .composer { background: rgba(13, 19, 30, .82) !important; border-top: 1px solid rgba(219, 229, 240, .14) !important; }
html[data-theme="night"] body .composer textarea, html[data-theme="night"] body .input, html[data-theme="night"] body select.input { background-color: rgba(10, 14, 23, .55) !important; color: #EDF2F8 !important; }
html[data-theme="night"] body a, html[data-theme="night"] body .vz-more, html[data-theme="night"] body .link { color: #1CE3C8 !important; }
html[data-theme="night"] body .chip[aria-pressed="true"], html[data-theme="night"] body .chip.on, html[data-theme="night"] body .seg > button[aria-pressed="true"] {
  background: linear-gradient(135deg, #1CE3C8, #1CE3C8) !important; color: #111725 !important; border-color: #1CE3C8 !important;
  box-shadow: 0 0 0 2px rgba(28, 227, 200, .55), 0 6px 16px rgba(28, 227, 200, .45) !important; font-weight: 800 !important; }
html[data-theme="night"] body .msg { background: rgba(23, 32, 51, .86); }
html[data-theme="night"] body .msg.bot { background: linear-gradient(135deg, rgba(74, 34, 40, .92), rgba(32, 45, 72, .92)); }
html[data-theme="night"] body .list, html[data-theme="night"] body.dark .list { background: rgba(19, 27, 42, .9) !important; }
html[data-theme="night"] body .folder-box { background: #121927; }
html[data-theme="night"] body .folder-head { background: #121927; }
/* ---- из style.css (ember) ---- */
html:not([data-theme="horizon"]):not([data-theme="plum"]):not([data-theme="night"]) body.th-dark .chip, html:not([data-theme="horizon"]):not([data-theme="plum"]):not([data-theme="night"]) body.th-dark .seg > button { color: #F3F6FA !important; border-color: rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .10) !important; }
html:not([data-theme="horizon"]):not([data-theme="plum"]):not([data-theme="night"]) .folder-filt .chip.on, html:not([data-theme="horizon"]):not([data-theme="plum"]):not([data-theme="night"]) body.th-dark .seg > button[aria-pressed="true"] { background: #1CE3C8 !important; color: #0B1019 !important; border-color: transparent !important; }
body.fx-on *, body.fx-on *::before, body.fx-on *::after, html[data-theme="night"] body *, html[data-theme="night"] body *::backdrop {
    }
