:root { color-scheme:light; background:#eef2ed; }
body { margin:0; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:default; }
#nio-chats-preview { --nio-green:#285d47; --nio-bg:#f3f5f0; font-size:15px; }
#nio-chats-preview .nio-app { max-width:1160px; min-height:100dvh; margin:0 auto; border-radius:0; border-top:0; border-bottom:0; }
#nio-chats-preview .nio-head { padding:20px 28px; }
#nio-chats-preview .nio-brand strong { font-weight:650; }
#nio-chats-preview .nio-demo-banner { padding:10px 28px; background:#e6ede1; color:#4c624f; font-size:12px; display:flex; gap:10px; align-items:center; }
#nio-chats-preview .nio-demo-banner b { white-space:nowrap; color:#285d47; }
#nio-chats-preview .nio-layout { display:grid; grid-template-columns:175px minmax(0,1fr) 210px; gap:24px; padding:26px; }
#nio-chats-preview .nio-left { display:grid; position:sticky; top:24px; }
#nio-chats-preview .nio-right { display:block; }
#nio-chats-preview .nio-mobile-nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,570px); z-index:15; border:1px solid var(--nio-line); border-bottom:0; border-radius:20px 20px 0 0; box-shadow:0 -5px 26px #1934280b; padding-bottom:env(safe-area-inset-bottom,0); }
#nio-chats-preview .nio-app { padding-bottom:90px; }
#nio-chats-preview .nio-footer { margin:18px auto 100px; max-width:1000px; padding:0 18px; font-size:10px; }
#nio-chats-preview #nio-main { min-width:0; }
#nio-chats-preview .nio-page-head h2 { font-size:25px; font-weight:650; }
#nio-chats-preview .nio-post p { overflow-wrap:anywhere; white-space:pre-line; }
#nio-chats-preview .nio-photo { max-height:350px; object-fit:cover; }
#nio-chats-preview .nio-post-top { gap:8px; }
#nio-chats-preview .nio-author strong { font-weight:600; }
#nio-chats-preview .nio-follow-person { padding:0; border:0; background:none; font-size:11px; color:var(--nio-green); min-height:28px; }
#nio-chats-preview .nio-comments-form { display:flex; gap:6px; margin-top:12px; }
#nio-chats-preview .nio-comments-form input { margin:0; min-width:0; }
#nio-chats-preview .nio-comment { padding:14px; }
#nio-chats-preview .nio-comment-row { margin:10px 0; overflow-wrap:anywhere; }
#nio-chats-preview .nio-search { margin-bottom:16px; }
#nio-chats-preview .nio-service-game { border-color:#b8d1a5; background:#eaf2e0; }
#nio-chats-preview .nio-game-hero { background:#244e3c; color:#fff; border-radius:20px; padding:25px; margin-bottom:18px; position:relative; overflow:hidden; }
#nio-chats-preview .nio-game-hero::after { content:'✦'; position:absolute; right:18px; top:0; font-size:100px; line-height:1; color:#acd48c; opacity:.7; }
#nio-chats-preview .nio-game-hero h3 { font-size:27px; margin:6px 0; font-weight:600; max-width:75%; }
#nio-chats-preview .nio-game-hero p { color:#d7e8d9; margin:8px 0 0; max-width:85%; }
#nio-chats-preview .nio-game-picker { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
#nio-chats-preview .nio-game-picker button { text-align:left; display:block; padding:18px; background:white; border:1px solid var(--nio-line); border-radius:16px; color:var(--nio-ink); }
#nio-chats-preview .nio-game-picker button[aria-pressed=true] { border:2px solid var(--nio-green); padding:17px; background:#f3f8ef; }
#nio-chats-preview .nio-game-picker strong { display:block; font-size:16px; margin:8px 0 3px; }
#nio-chats-preview .nio-game-stats { display:flex; flex-wrap:wrap; gap:8px 20px; margin:12px 0 16px; color:var(--nio-sub); font-size:13px; }
#nio-chats-preview .nio-memory-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; }
#nio-chats-preview .nio-memory-card { aspect-ratio:1; border:0; border-radius:14px; background:#e5ecdf; color:#376349; font-size:30px; transition:background .15s, transform .15s; }
#nio-chats-preview .nio-memory-card[data-open=true] { background:#fff2d7; transform:scale(.97); }
#nio-chats-preview .nio-memory-card[data-matched=true] { background:#d4e8ce; opacity:.7; }
#nio-chats-preview .nio-game-message { min-height:24px; margin:16px 0 4px; font-weight:600; color:var(--nio-green); }
#nio-chats-preview .nio-quiz-options { display:grid; gap:9px; }
#nio-chats-preview .nio-quiz-options button { border:1px solid var(--nio-line); padding:13px; border-radius:12px; background:white; color:var(--nio-ink); text-align:left; }
#nio-chats-preview .nio-quiz-options button[data-correct=true] { border-color:#3d8149; background:#e3f1dd; }
#nio-chats-preview .nio-quiz-options button[data-wrong=true] { border-color:#bd6552; background:#fbe7df; }
#nio-chats-preview .nio-quiz-progress { height:5px; background:#e4e9df; border-radius:6px; margin:12px 0 20px; overflow:hidden; }
#nio-chats-preview .nio-quiz-progress span { display:block; height:100%; background:var(--nio-green); transition:width .2s; }
#nio-chats-preview .nio-message-demo { font-size:11px; color:var(--nio-sub); margin:10px 0; }
#nio-chats-preview .nio-ai-form { display:flex; gap:8px; margin-top:16px; }
#nio-chats-preview .nio-ai-form input { margin:0; min-width:0; }
#nio-chats-preview .nio-greeting { font-size:12px; color:var(--nio-sub); margin:-8px 0 18px; }
#nio-chats-preview .nio-records { display:flex; gap:10px; align-items:center; font-size:12px; }
#nio-chats-preview .nio-records span { background:#f1f4ed; border-radius:8px; padding:8px; }
#nio-chats-preview audio { width:100%; max-width:260px; }
@media(min-width:900px) { #nio-chats-preview .nio-head-create { display:inline-flex; } }
@media(max-width:1050px) { #nio-chats-preview .nio-layout { grid-template-columns:170px minmax(0,1fr); } #nio-chats-preview .nio-right { display:none; } }
@media(max-width:720px) {
 #nio-chats-preview .nio-app { border:0; }
 #nio-chats-preview .nio-layout { display:block; padding:20px 14px; }
 #nio-chats-preview .nio-left { display:none; }
 #nio-chats-preview .nio-head { padding:15px 16px; gap:9px; }
 #nio-chats-preview .nio-brand strong { font-size:17px; }
 #nio-chats-preview .nio-demo-banner { padding:9px 16px; align-items:flex-start; font-size:11px; gap:7px; }
 #nio-chats-preview .nio-mobile-nav { border-radius:16px 16px 0 0; }
 #nio-chats-preview .nio-mobile-nav button { font-size:11px; min-width:0; }
 #nio-chats-preview .nio-page-head h2 { font-size:24px; }
 #nio-chats-preview .nio-game-hero { padding:20px; }
 #nio-chats-preview .nio-game-picker button { padding:14px; }
 #nio-chats-preview .nio-game-picker button[aria-pressed=true] { padding:13px; }
 #nio-chats-preview .nio-thread-messages { max-height:50dvh; min-height:260px; overflow:auto; }
}
@media(prefers-reduced-motion:reduce) { #nio-chats-preview * { transition:none!important; } }

#nio-chats-preview {padding:0; --v2-shadow:0 8px 28px #19342807}
#nio-chats-preview a {color:var(--nio-green)}
#nio-chats-preview button {transition:background .15s;touch-action:manipulation}
#nio-chats-preview button:hover:not(:disabled) {filter:brightness(.96)}
#nio-chats-preview button:disabled {opacity:.5;cursor:not-allowed}
#nio-chats-preview .nio-auth-entry {border:0;background:none;color:var(--nio-green);font-size:13px;padding:5px}
#nio-chats-preview .v2-tabs {display:flex;gap:4px;border-bottom:1px solid var(--nio-line);margin:0 0 18px;overflow:auto;scrollbar-width:none}
#nio-chats-preview .v2-tabs button {border:0;background:transparent;color:var(--nio-sub);padding:12px 13px;white-space:nowrap;border-bottom:2px solid transparent;font-size:13px}
#nio-chats-preview .v2-tabs button[aria-pressed=true] {color:var(--nio-green);border-color:var(--nio-green);font-weight:650}
#nio-chats-preview .v2-hero {background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:20px;overflow:hidden;margin-bottom:18px;box-shadow:var(--v2-shadow)}
#nio-chats-preview .v2-cover {position:relative;height:150px;background:linear-gradient(125deg,#1a4738,#39735a 62%,#a4b77d);overflow:hidden}
#nio-chats-preview .v2-cover::after {content:'НИЖНИЙ ИНГАШ';position:absolute;right:20px;bottom:18px;font-size:10px;letter-spacing:.24em;color:#fff9}
#nio-chats-preview .v2-cover img {width:100%;height:100%;object-fit:cover}
#nio-chats-preview .v2-cover.photo::after {display:none}
#nio-chats-preview .v2-hero-content {padding:0 22px 22px}
#nio-chats-preview .v2-hero-avatar {width:82px;height:82px;position:relative;margin-top:-36px;border:5px solid white;background:#edf3e7;border-radius:23px;display:grid;place-items:center;font-size:26px;color:var(--nio-green);overflow:hidden}
#nio-chats-preview .v2-hero-avatar svg {width:32px;height:32px}
#nio-chats-preview .v2-hero h2 {font-size:25px;line-height:1.25;margin:12px 0 6px;letter-spacing:-.5px}
#nio-chats-preview .v2-hero p {margin:10px 0 16px;overflow-wrap:anywhere;white-space:pre-line}
#nio-chats-preview .v2-hero-avatar img,#nio-chats-preview .nio-avatar img {width:100%;height:100%;object-fit:cover}
#nio-chats-preview .nio-avatar {overflow:hidden}
#nio-chats-preview .v2-subline {display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--nio-sub);font-size:12px}
#nio-chats-preview .v2-link {border:0;background:none;color:var(--nio-green);padding:0;min-height:32px;text-align:left;text-decoration:none;overflow-wrap:anywhere}
#nio-chats-preview .v2-back {display:flex;align-items:center;gap:4px;margin-bottom:10px;border:0;background:none;color:var(--nio-sub);padding:0}
#nio-chats-preview .v2-empty {text-align:center;border:1px dashed #ccd9cb;background:#f7f9f4;border-radius:15px;padding:30px 18px;color:var(--nio-sub);margin-bottom:15px}
#nio-chats-preview .v2-empty strong {display:block;color:var(--nio-ink);margin:8px 0;font-size:16px}
#nio-chats-preview .v2-group-card {position:relative;padding:19px;border-radius:17px}
#nio-chats-preview .v2-group-card h3 {font-size:17px}
#nio-chats-preview .v2-group-card .nio-avatar {width:49px;height:49px;border-radius:15px}
#nio-chats-preview .v2-card-foot {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px}
#nio-chats-preview .v2-card-foot button {font-size:12px}
#nio-chats-preview .v2-gallery {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0}
#nio-chats-preview .v2-photo-item {position:relative;min-width:0}
#nio-chats-preview .v2-photo-button {display:block;width:100%;padding:0;border:0;background:#e9efe3;border-radius:12px;overflow:hidden;aspect-ratio:1}
#nio-chats-preview .v2-photo-button img {width:100%;height:100%;object-fit:cover;display:block}
#nio-chats-preview .v2-photo-item .v2-remove {position:absolute;right:5px;top:5px;min-height:28px;width:28px;border:0;border-radius:50%;background:#fffE;color:#954b3a}
#nio-chats-preview .v2-upload {display:block;background:#f4f7ef;border:1px dashed #b6cbb1;border-radius:12px;padding:13px;margin:10px 0;color:var(--nio-green);font-size:13px;font-weight:550}
#nio-chats-preview .v2-upload input {display:block;width:100%;font-size:12px;margin-top:8px;min-height:35px;color:var(--nio-sub)}
#nio-chats-preview input[type=file]::file-selector-button {border:0;background:#e2ebdc;border-radius:7px;padding:8px;color:var(--nio-green);margin-right:8px}
#nio-chats-preview .v2-fields {display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
#nio-chats-preview .v2-fields>.full {grid-column:1/-1}
#nio-chats-preview .v2-fields label,#nio-chats-preview .v2-form label {font-size:13px;font-weight:550}
#nio-chats-preview .v2-check {display:flex;align-items:flex-start;gap:9px;margin:12px 0;font-size:13px}
#nio-chats-preview .v2-check input {width:18px;height:18px;flex-shrink:0;accent-color:var(--nio-green)}
#nio-chats-preview .v2-note {padding:12px 14px;background:#f6f0df;border-radius:11px;color:#796238;font-size:12px;margin:12px 0;line-height:1.6}
#nio-chats-preview .v2-section-title {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px}
#nio-chats-preview .v2-section-title h3 {margin:0;font-size:17px}
#nio-chats-preview .v2-section-title button {font-size:12px}
#nio-chats-preview .v2-file {display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--nio-line)}
#nio-chats-preview .v2-file>div {flex:1;min-width:0;overflow-wrap:anywhere}
#nio-chats-preview .v2-file strong {font-size:13px;font-weight:550}
#nio-chats-preview .v2-file .nio-icon {width:32px;min-height:32px;background:transparent}
#nio-chats-preview .v2-stats {display:flex;gap:23px;flex-wrap:wrap;margin:17px 0;color:var(--nio-sub);font-size:12px}
#nio-chats-preview .v2-stats strong {display:block;color:var(--nio-ink);font-size:19px;font-weight:600}
#nio-chats-preview .v2-person-row {display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--nio-line)}
#nio-chats-preview .v2-person-row>div {flex:1;min-width:0}
#nio-chats-preview .v2-person-row button {font-size:12px}
#nio-chats-preview .v2-person-row .nio-avatar {width:42px;height:42px}
#nio-chats-preview .v2-info-list {display:grid;grid-template-columns:1fr;gap:13px;margin:16px 0}
#nio-chats-preview .v2-info-row {display:flex;align-items:flex-start;gap:10px;font-size:13px;overflow-wrap:anywhere}
#nio-chats-preview .v2-info-row svg {flex-shrink:0;margin-top:2px;color:var(--nio-sub)}
#nio-chats-preview .v2-info-row small {display:block;color:var(--nio-sub);font-size:11px}
#nio-chats-preview .v2-market-grid {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:14px 0}
#nio-chats-preview .v2-market-card {min-width:0;background:white;border:1px solid var(--nio-line);border-radius:15px;overflow:hidden;position:relative;box-shadow:var(--v2-shadow)}
#nio-chats-preview .v2-market-image {display:flex;align-items:center;justify-content:center;background:#e8eee2;height:145px;border:0;width:100%;color:#647d55;overflow:hidden;padding:0;position:relative}
#nio-chats-preview .v2-market-image img {width:100%;height:100%;object-fit:cover;display:block}
#nio-chats-preview .v2-market-image svg {width:48px;height:48px;opacity:.6}
#nio-chats-preview .v2-market-image small {position:absolute;bottom:9px;left:10px;font-size:10px;color:#5f7358}
#nio-chats-preview .v2-market-body {padding:13px}
#nio-chats-preview .v2-market-body h3 {font-weight:550;font-size:14px;line-height:1.4;margin:5px 0 7px}
#nio-chats-preview .v2-market-body .v2-price {font-size:19px;font-weight:700}
#nio-chats-preview .v2-heart {position:absolute;right:8px;top:8px;z-index:1;border:0;border-radius:50%;background:#fffE;width:33px;min-height:33px;color:#587c5d;display:grid;place-items:center}
#nio-chats-preview .v2-heart[aria-pressed=true] {color:#ad583d;background:#fff1e7}
#nio-chats-preview .v2-market-filters {display:grid;grid-template-columns:1fr 1fr;gap:0 10px;margin-top:12px;padding:15px;background:white;border-radius:14px;border:1px solid var(--nio-line)}
#nio-chats-preview .v2-market-filters label {font-size:11px;color:var(--nio-sub)}
#nio-chats-preview .v2-market-filters .nio-field {font-size:13px;margin:4px 0 10px}
#nio-chats-preview .v2-market-filters .v2-wide {grid-column:1/-1}
#nio-chats-preview .v2-detail-image {width:100%;height:310px;object-fit:contain;background:#eef1e9;border-radius:15px;display:block}
#nio-chats-preview .v2-detail-placeholder {height:220px;display:grid;place-content:center;text-align:center;background:#edf1e7;border-radius:15px;color:#7a8d6e}
#nio-chats-preview .v2-detail-placeholder svg {width:65px;height:65px;margin:auto auto 10px}
#nio-chats-preview .v2-thumbs {display:flex;gap:8px;overflow:auto;margin:9px 0 15px}
#nio-chats-preview .v2-thumbs button {width:60px;height:60px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;flex-shrink:0}
#nio-chats-preview .v2-thumbs button[aria-pressed=true] {border-color:var(--nio-green)}
#nio-chats-preview .v2-thumbs img {width:100%;height:100%;object-fit:cover}
#nio-chats-preview .v2-detail-title {font-size:26px;line-height:1.25;margin:16px 0 10px}
#nio-chats-preview .v2-detail-price {font-size:30px;font-weight:700;letter-spacing:-1px}
#nio-chats-preview .v2-ad-description {white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
#nio-chats-preview .v2-service-card {padding:19px;background:white;border:1px solid var(--nio-line);border-radius:17px;margin:14px 0;box-shadow:var(--v2-shadow)}
#nio-chats-preview .v2-service-card h3 {font-size:18px;margin:0 0 6px}
#nio-chats-preview .v2-service-category {font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--nio-sub);margin-bottom:8px}
#nio-chats-preview .v2-open {display:inline-block;font-size:11px;color:var(--nio-green);padding:4px 8px;background:#edf5e7;border-radius:7px}
#nio-chats-preview .v2-closed {color:#876b40;background:#f4eedf}
#nio-chats-preview .v2-schedule {width:100%;border-collapse:collapse;font-size:13px;margin:10px 0}
#nio-chats-preview .v2-schedule td {padding:8px 0;border-bottom:1px solid var(--nio-line)}
#nio-chats-preview .v2-schedule td:last-child {text-align:right}
#nio-chats-preview .v2-auth-card {background:white;border:1px solid var(--nio-line);border-radius:20px;padding:25px;margin:15px 0}
#nio-chats-preview .v2-auth-card h2 {font-size:25px;line-height:1.2;margin:12px 0}
#nio-chats-preview .v2-auth-mark {width:50px;height:50px;background:var(--nio-green);border-radius:15px;display:grid;place-items:center;color:white;font-weight:650;font-size:19px}
#nio-chats-preview .v2-divider {display:flex;align-items:center;gap:13px;color:var(--nio-sub);font-size:12px;margin:20px 0}
#nio-chats-preview .v2-divider:before,#nio-chats-preview .v2-divider:after {content:'';flex:1;height:1px;background:var(--nio-line)}
#nio-chats-preview .v2-gosuslugi {display:block;width:100%;padding:12px;border:1px solid #dbe3ee;border-radius:11px;background:#f9fbff;font-weight:650;color:#2964bc}
#nio-chats-preview .v2-gosuslugi span {color:#d24e56}
#nio-chats-preview dialog {width:min(560px,calc(100vw - 28px));max-height:85dvh;border:0;border-radius:20px;padding:23px;background:#fff;color:var(--nio-ink);box-shadow:0 20px 80px #14261b44}
#nio-chats-preview dialog::backdrop {background:#16251d70;backdrop-filter:blur(3px)}
#nio-chats-preview .v2-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
#nio-chats-preview .v2-dialog-head h2 {margin:0;font-size:21px}
#nio-chats-preview .v2-dialog-head .nio-icon {font-size:25px;background:#f1f5ed}
#nio-chats-preview .v2-full-photo {display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}
#nio-chats-preview .v2-inline-photo {width:100%;max-height:380px;object-fit:cover;display:block}
#nio-chats-preview .v2-post-files {padding:0 15px 15px}
#nio-chats-preview .v2-post-author {font-weight:600;font-size:14px;line-height:1.3}
#nio-chats-preview .v2-delete {color:#a34732}
#nio-chats-preview .v2-service-grid-title {display:flex;justify-content:space-between;align-items:center;margin-top:25px;gap:10px}
#nio-chats-preview .v2-service-grid-title h3 {margin:0;font-size:19px}
#nio-chats-preview .v2-service-grid-title button {font-size:12px}
#nio-chats-preview .nio-form-actions {margin-top:10px}
#nio-chats-preview .v2-demo-pill {background:#edf2e8;color:#687b60;border-radius:5px;padding:3px 6px;font-size:10px}
#nio-chats-preview .v2-profile-preview {background:#e4edde;padding:12px;border-radius:11px;display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:12px}
#nio-chats-preview .v2-profile-preview span {flex:1}
#nio-chats-preview #v2-ad-count {margin-top:15px}
#nio-chats-preview .v2-friend-list {display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}
#nio-chats-preview .v2-friend-list button {border:0;background:transparent;padding:0;text-align:center;color:var(--nio-ink);font-size:11px;width:60px}
#nio-chats-preview .v2-friend-list .nio-avatar {width:47px;height:47px;margin:0 auto 5px;font-size:17px}
#nio-chats-preview input,#nio-chats-preview textarea,#nio-chats-preview select {max-width:100%}
#nio-chats-preview h2,#nio-chats-preview h3 {overflow-wrap:anywhere}
@media(min-width:1051px) {#nio-chats-preview .nio-layout {grid-template-columns:175px minmax(0,1fr) 185px;gap:22px}}
@media(max-width:480px) {#nio-chats-preview .nio-head {gap:6px} #nio-chats-preview .nio-head .nio-icon {width:33px;min-height:35px} #nio-chats-preview .nio-brand strong {font-size:16px} #nio-chats-preview .nio-logo {width:37px;height:39px} #nio-chats-preview .v2-hero-content {padding:0 17px 19px} #nio-chats-preview .v2-hero h2 {font-size:23px} #nio-chats-preview .v2-cover {height:125px} #nio-chats-preview .v2-fields {grid-template-columns:1fr} #nio-chats-preview .v2-market-grid {gap:10px} #nio-chats-preview .v2-market-image {height:130px} #nio-chats-preview .v2-market-body {padding:10px} #nio-chats-preview .v2-market-body .v2-price {font-size:18px} #nio-chats-preview .v2-detail-image {height:260px} #nio-chats-preview dialog {padding:17px} #nio-chats-preview .v2-auth-card {padding:21px} }
@media(max-width:360px) {#nio-chats-preview .nio-head [data-action=notifications] {display:none} #nio-chats-preview .v2-market-image {height:110px}}

/* Tokens and components transferred from design/approved-profile-games.html. */
:root {background:#eef2f8;color-scheme:light}
:root[data-theme=dark] {background:#0c1424;color-scheme:dark}
#nio-chats-preview {--nio-bg:#eef2f8;--nio-panel:#fff;--nio-ink:#14213b;--nio-sub:#5c6d85;--nio-line:#d9e2ef;--nio-soft:#e7eef9;--nio-green:#2563eb;--nio-on:#fff;--nio-warm:#e7eef9;--nio-warm-ink:#1d4ed8;--nio-chat-blue:#2563eb;--nio-chat-blue-soft:#e7eef9;--nio-chat-wall:#eef2f8;--nio-chat-own:#2563eb;--nio-chat-text:#14213b;--design-header:#173fab;--design-header-muted:#c2d8ff;--design-ring:#a8caff;--design-cover:#dce9ff;--design-art:#e5ebf2;--design-danger:#b91c1c;font:16px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#nio-chats-preview[data-theme=dark] {--nio-bg:#0c1424;--nio-panel:#162238;--nio-ink:#edf3ff;--nio-sub:#adbed7;--nio-line:#30425d;--nio-soft:#203657;--nio-green:#9abfff;--nio-on:#fff;--nio-warm:#203657;--nio-warm-ink:#9abfff;--nio-chat-blue:#9abfff;--nio-chat-blue-soft:#203657;--nio-chat-wall:#0c1424;--nio-chat-own:#2e64dc;--nio-chat-text:#edf3ff;--design-header:#152e6e;--design-header-muted:#bad2ff;--design-ring:#80aaff;--design-cover:#19335b;--design-art:#24334a;--design-danger:#ff9d9d}
#nio-chats-preview button {min-height:44px}
#nio-chats-preview .nio-head {background:var(--design-header);color:#fff;min-height:91px;padding:15px 14px;gap:7px}
#nio-chats-preview .nio-head .nio-logo {width:34px;height:36px;object-fit:contain;background:none;border-radius:0;filter:brightness(0) invert(1)}
#nio-chats-preview .nio-brand strong {font-size:21px;font-weight:800;letter-spacing:-.7px;line-height:1.12}
#nio-chats-preview .nio-online {color:var(--design-header-muted);font-size:13px;font-weight:600;letter-spacing:.65px;margin-top:5px}
#nio-chats-preview .nio-dot {display:none}
#nio-chats-preview .nio-head .nio-icon {background:none;color:#fff;width:44px;min-width:44px;min-height:44px}
#nio-chats-preview .nio-head [data-theme-toggle] {color:var(--design-header-muted)}
#nio-chats-preview .nio-head [data-page=profile] .nio-avatar {width:36px;height:36px;background:#fff;color:#173fab;border:2px solid var(--design-header);outline:2px solid var(--design-ring);font-weight:750}
#nio-chats-preview .nio-button {background:#2563eb;color:white;border-radius:12px;padding:11px 16px;font-size:14px;font-weight:650}
#nio-chats-preview[data-theme=dark] .nio-button {background:#2e64dc}
#nio-chats-preview .nio-secondary {background:var(--nio-soft);color:var(--nio-green)}
#nio-chats-preview .nio-icon {color:var(--nio-green);background:var(--nio-soft)}
#nio-chats-preview .nio-demo-banner {background:var(--nio-soft);color:var(--nio-sub);font-size:11px;padding:8px 14px}
#nio-chats-preview .nio-demo-banner b {color:var(--nio-green)}
#nio-chats-preview .nio-layout {padding:15px 14px 22px}
#nio-chats-preview .nio-search {background:var(--nio-panel);border-color:var(--nio-line);border-radius:13px;padding:4px 5px 4px 12px;min-height:52px;margin-bottom:14px}
#nio-chats-preview .nio-search input {font-weight:500}
#nio-chats-preview .nio-search svg {color:var(--nio-green)}
#nio-chats-preview .design-feed-toolbar {display:flex;gap:8px;align-items:center;margin-bottom:10px}
#nio-chats-preview .nio-modes {flex:1;min-width:0;background:var(--nio-soft);border:0;padding:4px;gap:2px;border-radius:13px;margin:0}
#nio-chats-preview .nio-mode {flex:1;padding:8px 6px;font-size:13px;font-weight:650;white-space:nowrap;border:0;border-radius:10px}
#nio-chats-preview .nio-mode[aria-pressed=true] {background:var(--nio-panel);color:var(--nio-ink);box-shadow:0 1px 4px #0f172a16}
#nio-chats-preview .design-type {position:relative;flex-shrink:0;width:106px}
#nio-chats-preview .design-type summary {display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:52px;background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:13px;padding:0 12px;font-size:13px;font-weight:650;list-style:none;cursor:pointer}
#nio-chats-preview .design-type summary::-webkit-details-marker {display:none}
#nio-chats-preview .design-type summary svg {width:15px}
#nio-chats-preview .design-type .nio-filters {position:absolute;right:0;top:calc(100% + 6px);width:206px;padding:6px;z-index:10;background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:15px;box-shadow:0 10px 30px #0003;display:grid;gap:2px}
#nio-chats-preview .design-type .nio-filter {border:0;background:transparent;text-align:left;border-radius:9px;padding:11px 12px;color:var(--nio-ink);font-size:14px}
#nio-chats-preview .design-type .nio-filter[aria-pressed=true] {background:var(--nio-soft);color:var(--nio-green);font-weight:650}
#nio-chats-preview .design-compose-row {display:flex;gap:8px;justify-content:space-between;align-items:center;margin:8px 0 14px}
#nio-chats-preview .design-compose-row .nio-groups-entry {font-size:13px;font-weight:650;padding:0}
#nio-chats-preview .design-compose-row .nio-button {font-size:13px;padding:10px 13px}
#nio-chats-preview .nio-post,#nio-chats-preview .nio-panel {border-radius:16px}
#nio-chats-preview .nio-avatar {background:var(--nio-soft);color:var(--nio-green);border:1px solid var(--nio-line);font-weight:750;border-radius:50%}
#nio-chats-preview .nio-post-top .nio-avatar {width:36px;height:36px;font-size:14px}
#nio-chats-preview .nio-mobile-nav {grid-template-columns:repeat(5,minmax(0,1fr));border-radius:0;background:var(--nio-panel);padding:8px 3px calc(8px + env(safe-area-inset-bottom,0px));width:min(100%,570px);gap:0}
#nio-chats-preview .nio-mobile-nav button {min-height:62px;font-size:11px;font-weight:750;gap:5px;border-radius:12px;color:var(--nio-sub)}
#nio-chats-preview .nio-mobile-nav .nio-center-icon {display:grid;place-items:center;width:44px;height:32px;border-radius:10px;background:transparent;color:inherit}
#nio-chats-preview .nio-mobile-nav .nio-nav-center .nio-center-icon {background:transparent;color:inherit}
#nio-chats-preview .nio-mobile-nav button[aria-pressed=true] {background:var(--nio-soft);color:var(--nio-green)}
#nio-chats-preview .v2-cover {height:150px;background:var(--design-cover);color:var(--nio-green);display:flex;align-items:center;padding:22px}
#nio-chats-preview .v2-cover::after {content:'Ингаш.онлайн';font-size:23px;font-weight:800;letter-spacing:-.7px;color:var(--nio-green);right:20px;bottom:24px}
#nio-chats-preview .v2-cover.photo {padding:0}
#nio-chats-preview .v2-hero-avatar {border:4px solid var(--nio-panel);background:var(--nio-soft);color:var(--nio-green);border-radius:50%;width:80px;height:80px}
#nio-chats-preview .v2-hero-content {padding:0 18px 20px}
#nio-chats-preview .v2-hero h2 {font-size:24px;font-weight:750}
#nio-chats-preview .v2-tabs,#nio-chats-preview .nio-chat-tabs {border:0;gap:6px;flex-wrap:nowrap;overflow:auto;margin:14px 0}
#nio-chats-preview .v2-tabs button,#nio-chats-preview .nio-chat-tabs button {border:1px solid var(--nio-line);background:var(--nio-panel);color:var(--nio-ink);border-radius:22px;padding:0 12px;white-space:nowrap;font-size:13px;min-height:44px}
#nio-chats-preview .v2-tabs button[aria-pressed=true],#nio-chats-preview .nio-chat-tabs button[aria-pressed=true] {background:#2563eb;color:white;border-color:#2563eb;font-weight:650}
#nio-chats-preview .v2-empty,#nio-chats-preview .v2-upload,#nio-chats-preview .v2-photo-button,#nio-chats-preview input[type=file]::file-selector-button {background:var(--nio-soft);border-color:var(--nio-line);color:var(--nio-sub)}
#nio-chats-preview .v2-market-card,#nio-chats-preview .v2-market-filters,#nio-chats-preview .v2-service-card,#nio-chats-preview .v2-auth-card,#nio-chats-preview dialog,#nio-chats-preview .nio-game-picker button {background:var(--nio-panel);color:var(--nio-ink)}
#nio-chats-preview .v2-market-image,#nio-chats-preview .v2-detail-placeholder,#nio-chats-preview .v2-detail-image {background:var(--design-art);color:var(--nio-sub)}
#nio-chats-preview .v2-market-image small {color:var(--nio-sub)}
#nio-chats-preview .v2-heart,#nio-chats-preview .v2-photo-item .v2-remove {background:var(--nio-panel);color:var(--nio-green)}
#nio-chats-preview .v2-note,#nio-chats-preview .v2-demo-pill,#nio-chats-preview .v2-profile-preview {background:var(--nio-soft);color:var(--nio-sub)}
#nio-chats-preview .v2-open,#nio-chats-preview .v2-closed {background:var(--nio-soft);color:var(--nio-green)}
#nio-chats-preview .v2-delete,#nio-chats-preview .v2-form-error {color:var(--design-danger)}
#nio-chats-preview .v2-gosuslugi {background:var(--nio-panel);border-color:var(--nio-line)}
#nio-chats-preview .v2-dialog-head .nio-icon {background:var(--nio-soft)}
#nio-chats-preview .nio-service-game {background:var(--nio-panel);border-color:var(--nio-line)}
#nio-chats-preview .nio-service {border-radius:14px;font-weight:650}
#nio-chats-preview .nio-game-hero {background:var(--design-header)}
#nio-chats-preview .nio-game-hero p {color:var(--design-header-muted)}
#nio-chats-preview .nio-memory-card {background:var(--nio-soft);color:var(--nio-green);border-color:var(--nio-line)}
#nio-chats-preview .nio-msg {background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:17px;padding:13px 15px;font-size:15px;max-width:86%}
#nio-chats-preview .nio-msg-own {background:var(--nio-chat-own);color:white;border-color:transparent}
#nio-chats-preview .nio-msg-own .nio-msg-meta {color:#fffC}
#nio-chats-preview .nio-thread {border:0;background:var(--nio-bg)}
#nio-chats-preview .nio-thread-head {background:var(--nio-panel);border-radius:14px;margin-bottom:12px}
#nio-chats-preview .design-peer-link {border:0;background:none;color:var(--nio-ink);text-align:left;font-size:16px;font-weight:750;padding:0}
#nio-chats-preview .nio-thread form.nio-chat-compose {border:1px solid var(--nio-line);border-radius:16px;position:static;z-index:5}
#nio-chats-preview .nio-thread .nio-chat-compose .nio-field {background:var(--nio-panel);border-radius:0}
#nio-chats-preview .nio-tg-avatar {background:var(--nio-soft);color:var(--nio-green);font-weight:750}
#nio-chats-preview .design-game-catalog {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
#nio-chats-preview .design-game-tile {display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:16px;padding:16px;color:var(--nio-ink);min-height:160px}
#nio-chats-preview .design-game-tile svg {color:var(--nio-green);width:28px;height:28px}
#nio-chats-preview .design-game-tile small {color:var(--nio-sub);font-size:12px}
#nio-chats-preview .design-theme-controls {display:flex;gap:8px;margin:12px 0}
#nio-chats-preview .design-theme-controls button {flex:1}
#nio-chats-preview .design-theme-controls button[aria-pressed=true] {background:#2563eb;color:#fff}
#nio-chats-preview .design-sea-grid {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;margin:12px 0}
#nio-chats-preview .design-sea-grid button {min-height:0;aspect-ratio:1;padding:0;background:var(--nio-soft);border:0;border-radius:3px;color:var(--nio-green)}
#nio-chats-preview .design-cards {display:flex;flex-wrap:wrap;gap:6px}
#nio-chats-preview .design-message-menu summary {text-align:right;cursor:pointer;list-style:none}
#nio-chats-preview .design-message-menu button {font-size:12px;padding:8px;margin:2px}
#nio-chats-preview audio {width:100%;height:40px}
#nio-chats-preview .nio-game-picker button[aria-pressed=true],#nio-chats-preview .nio-records span,#nio-chats-preview .nio-quiz-progress {background:var(--nio-soft)}
#nio-chats-preview .nio-memory-card[data-open=true] {background:var(--nio-panel);color:var(--nio-green)}
#nio-chats-preview .nio-memory-card[data-matched=true],#nio-chats-preview .nio-quiz-options button[data-correct=true] {background:var(--nio-soft);color:var(--nio-green)}
#nio-chats-preview .nio-quiz-options button[data-wrong=true] {background:var(--nio-soft);color:var(--design-danger)}
#nio-chats-preview .nio-game-hero::after {color:var(--design-header-muted)}
@media(max-width:590px) {#nio-chats-preview .nio-layout{display:block}#nio-chats-preview .nio-head{padding:12px 12px 19px}#nio-chats-preview .nio-brand strong{font-size:21px}#nio-chats-preview .nio-left,#nio-chats-preview .nio-right{display:none}#nio-chats-preview .nio-mobile-nav{display:grid}#nio-chats-preview .v2-cover{height:140px}}
@media(max-width:370px) {#nio-chats-preview .nio-brand strong{font-size:19px}#nio-chats-preview .nio-head{gap:5px;padding-left:10px;padding-right:10px}#nio-chats-preview .nio-head .nio-logo{width:27px;height:30px}#nio-chats-preview .nio-head [data-action=notifications]{display:flex}#nio-chats-preview .design-type{width:94px}#nio-chats-preview .design-compose-row .nio-button{padding:10px 9px}}

/* A conversation is its own viewport, not a short card inside a long page. */
html.chat-thread-open,body.chat-thread-open {overflow:hidden;overscroll-behavior:none}
#nio-chats-preview.chat-thread-open .nio-head,
#nio-chats-preview.chat-thread-open .nio-demo-banner,
#nio-chats-preview.chat-thread-open .nio-mobile-nav,
#nio-chats-preview.chat-thread-open .nio-left,
#nio-chats-preview.chat-thread-open .nio-right,
#nio-chats-preview.chat-thread-open .nio-footer {display:none!important}
#nio-chats-preview.chat-thread-open [data-panel=chats] {position:fixed;top:var(--chat-vtop,0px);left:50%;transform:translateX(-50%);width:min(100%,900px);height:var(--chat-vheight,100dvh);z-index:40;background:var(--nio-bg);overflow:hidden}
#nio-chats-preview.chat-thread-open #nio-thread {display:flex;flex-direction:column;height:100%;min-height:0;border:0;border-radius:0;overflow:hidden;background:var(--nio-bg)}
#nio-chats-preview.chat-thread-open .nio-thread-head {order:0;flex:0 0 auto;margin:0;border-radius:0;min-height:68px;padding:8px 10px;background:var(--nio-panel);border-bottom:1px solid var(--nio-line);gap:8px}
#nio-chats-preview.chat-thread-open .nio-thread-head .nio-icon {width:44px;min-width:44px;height:44px;min-height:44px;color:var(--nio-green);background:none;padding:0}
#nio-chats-preview.chat-thread-open .nio-thread-head .nio-tg-avatar {width:42px;height:42px;flex-shrink:0}
#nio-chats-preview.chat-thread-open .nio-thread-title {min-width:0}
#nio-chats-preview.chat-thread-open .design-peer-link {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-height:28px;font-size:16px;line-height:1.2}
#nio-chats-preview.chat-thread-open #nio-chat-subtitle {font-size:11px;display:block;color:var(--nio-sub)}
#nio-chats-preview.chat-thread-open #nio-thread-tools {order:1;flex:0 0 auto;margin:0;flex-wrap:wrap}
#nio-chats-preview.chat-thread-open #nio-chat-messages {order:2;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 12px;background:var(--nio-chat-wall);scrollbar-width:thin}
#nio-chats-preview.chat-thread-open .nio-msg {max-width:85%;border-radius:14px 14px 14px 4px;padding:9px 11px 6px;margin:8px 0;font-size:15px;overflow-wrap:anywhere}
#nio-chats-preview.chat-thread-open .nio-msg-own {border-radius:14px 14px 4px 14px}
#nio-chats-preview.chat-thread-open .nio-msg-meta {font-size:10px;margin-top:3px}
#nio-chats-preview.chat-thread-open #nio-attach-menu {order:3;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;background:var(--nio-panel);border-top:1px solid var(--nio-line);margin:0;padding:10px}
#nio-chats-preview.chat-thread-open #nio-voice-composer {order:4;flex:0 0 auto;max-height:40%;overflow:auto;margin:0;padding:14px;background:var(--nio-panel);border-top:1px solid var(--nio-line);border-radius:0}
#nio-chats-preview.chat-thread-open #nio-chat-form {order:5;flex:0 0 auto;display:flex;gap:6px;align-items:center;position:static;bottom:auto;z-index:auto;margin:0;padding:8px 8px calc(8px + var(--chat-safe-bottom,env(safe-area-inset-bottom,0px)));border:0;border-top:1px solid var(--nio-line);border-radius:0;background:var(--nio-panel);min-height:66px}
#nio-chats-preview.chat-thread-open #nio-chat-text {flex:1 1 0;min-width:0;width:0;max-width:none;margin:0;height:46px;border:0;border-radius:24px;background:var(--nio-soft);padding:11px 15px;font-size:16px;line-height:24px;color:var(--nio-ink)}
#nio-chats-preview.chat-thread-open #nio-chat-form .nio-icon {display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;min-width:46px;min-height:46px;height:46px;border:0;border-radius:50%;padding:0;background:none;color:var(--nio-green)}
#nio-chats-preview.chat-thread-open #nio-chat-form #nio-chat-mic,
#nio-chats-preview.chat-thread-open #nio-chat-form #nio-chat-send {background:#2563eb;color:#fff;box-shadow:0 2px 6px #2563eb20}
#nio-chats-preview.chat-thread-open #nio-chat-form svg {width:23px;height:23px;stroke-width:2}
#nio-chats-preview.chat-thread-open .mobile-voice-actions {display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;flex-wrap:wrap}
#nio-chats-preview.chat-thread-open .mobile-voice-actions button {min-height:48px;padding:12px 18px;font-size:15px}
#nio-chats-preview.chat-thread-open #nio-voice-composer audio {display:block;width:100%;min-height:44px}
#nio-chats-preview.chat-thread-open .design-message-menu summary {min-height:26px;color:inherit;font-size:17px;line-height:26px}
@media(min-width:901px) {#nio-chats-preview.chat-thread-open [data-panel=chats]{border-left:1px solid var(--nio-line);border-right:1px solid var(--nio-line)}}

#nio-chats-preview .admin-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
#nio-chats-preview .admin-head h2 {margin:0;font-size:25px}
#nio-chats-preview .admin-head p {margin:6px 0;color:var(--nio-sub);font-size:13px}
#nio-chats-preview .admin-tabs {display:flex;gap:6px;overflow:auto;margin:16px 0;padding-bottom:5px}
#nio-chats-preview .admin-tabs button {white-space:nowrap;border:1px solid var(--nio-line);border-radius:12px;background:var(--nio-panel);color:var(--nio-ink);padding:10px 13px;font-size:13px}
#nio-chats-preview .admin-tabs button[aria-pressed=true] {background:#2563eb;color:white;border-color:#2563eb}
#nio-chats-preview .admin-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
#nio-chats-preview .admin-metric {background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:14px;padding:16px;font-size:13px;color:var(--nio-sub)}
#nio-chats-preview .admin-metric strong {display:block;color:var(--nio-ink);font-size:26px;margin-bottom:4px}
#nio-chats-preview .admin-row {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--nio-line)}
#nio-chats-preview .admin-row>div {min-width:0;overflow-wrap:anywhere}
#nio-chats-preview .admin-row h3 {margin:0 0 6px;font-size:17px}
#nio-chats-preview .admin-tag {display:inline-block;padding:4px 8px;border-radius:6px;background:var(--nio-soft);color:var(--nio-green);font-size:11px;margin:4px 4px 4px 0}
#nio-chats-preview .admin-toggle {display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;min-height:44px}
#nio-chats-preview .admin-toggle input {width:20px;height:20px;accent-color:#2563eb}
#nio-chats-preview .admin-toggle input:disabled {opacity:.45}
#nio-chats-preview .admin-card {background:var(--nio-panel);border:1px solid var(--nio-line);border-radius:16px;padding:16px;margin:12px 0}
#nio-chats-preview .admin-card h3 {margin-top:0}
#nio-chats-preview .admin-status {border-left:3px solid var(--nio-green);background:var(--nio-soft);padding:12px;border-radius:9px;font-size:13px;margin-bottom:16px;color:var(--nio-sub)}
#nio-chats-preview .admin-role {display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
#nio-chats-preview .admin-role select {padding:10px;border:1px solid var(--nio-line);border-radius:10px;background:var(--nio-panel);color:var(--nio-ink);font:inherit}
#nio-chats-preview .admin-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
#nio-chats-preview .admin-log {font-size:12px;color:var(--nio-sub);padding:12px 0;border-bottom:1px solid var(--nio-line);overflow-wrap:anywhere}
#nio-chats-preview .admin-login-method {width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:52px;padding:12px 14px;background:var(--nio-panel);border:1px solid var(--nio-line);color:var(--nio-ink);border-radius:12px;margin:10px 0;text-align:left;font-weight:600}
#nio-chats-preview .admin-login-method small {color:var(--nio-sub);font-size:11px;font-weight:400}
#nio-chats-preview .admin-entry {width:100%;margin:10px 0}
#nio-chats-preview .nio-access-bar {display:flex;align-items:stretch;gap:8px;padding:12px 14px;background:var(--nio-panel);border-bottom:1px solid var(--nio-line)}
#nio-chats-preview .nio-access-bar a {flex:1;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;min-height:48px;font-size:13px;line-height:1.25;padding:10px 8px}
#nio-chats-preview .nio-access-bar a:focus-visible {outline:2px solid var(--nio-green);outline-offset:3px}
#nio-chats-preview.chat-thread-open .nio-access-bar {display:none!important}
#nio-chats-preview .admin-danger {color:var(--design-danger)}
#nio-chats-preview .nio-head .auth-header-link {flex-shrink:0;min-height:44px;border:0;background:none;color:#fff;font-size:13px;font-weight:600;padding:6px 4px;border-radius:0;white-space:nowrap}
#nio-chats-preview .nio-head .auth-header-link[data-session=authenticated] {color:var(--design-header-muted);font-weight:400;font-size:12px;text-decoration:none}
#nio-chats-preview #auth-dialog {width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:18px;border:1px solid var(--nio-line);border-radius:20px;background:var(--nio-panel);color:var(--nio-ink);overflow:auto;overscroll-behavior:contain}
#nio-chats-preview #auth-dialog::backdrop {background:#06132899;backdrop-filter:blur(3px)}
#nio-chats-preview .auth-window-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#nio-chats-preview .auth-window-head h2 {margin:0;font-size:21px}
#nio-chats-preview .auth-window-head button {width:44px;min-height:44px;padding:0;border:0;background:none;color:var(--nio-sub);font-size:27px}
#nio-chats-preview #auth-dialog .v2-back,#nio-chats-preview #auth-dialog .v2-auth-mark,#nio-chats-preview #auth-dialog .v2-auth-card>h2,#nio-chats-preview #auth-dialog .v2-auth-card>p {display:none}
#nio-chats-preview #auth-dialog .v2-auth-card {padding:0;border:0;border-radius:0;margin:0}
#nio-chats-preview #auth-dialog .admin-card {border:0;padding:0;margin:16px 0 0}
#nio-chats-preview #auth-dialog .v2-tabs {margin:0 0 14px}
#nio-chats-preview #auth-dialog .admin-login-method {margin:8px 0}
@media(max-width:590px) {#nio-chats-preview .nio-head [data-action=notifications]{display:none!important}#nio-chats-preview .nio-head{gap:6px}#nio-chats-preview .nio-head .auth-header-link{padding-left:1px;padding-right:1px}}
@media(max-width:400px) {#nio-chats-preview .admin-row{flex-direction:column}#nio-chats-preview .admin-row .admin-toggle{align-self:flex-end}#nio-chats-preview .admin-actions .nio-button{flex:1}}

.next-view-switch{display:flex;gap:4px;padding:4px;background:var(--nio-soft,#eef2f8);border-radius:12px;width:fit-content;margin:14px 0}.next-view-switch button,.next-categories button{border:0;background:transparent;color:inherit;padding:9px 16px;border-radius:9px;cursor:pointer}.next-view-switch [aria-pressed=true],.next-categories [aria-pressed=true]{background:#2563eb;color:white}.next-categories{display:flex;gap:5px;overflow-x:auto;padding:6px 0 12px}.next-categories button{white-space:nowrap;background:var(--nio-soft,#eef2f8)}.next-map{height:440px;min-height:280px;width:100%;border-radius:16px;overflow:hidden;isolation:isolate;background:#e6eced;color:#182b42;z-index:0}.next-map-mode{display:block!important}.next-map-picker{height:280px;margin-bottom:14px}.next-map-marker{border-radius:50%;background:#fff;color:#173fab;border:3px solid #2563eb;box-shadow:0 4px 14px #10234940;display:grid;place-items:center;font-weight:800;font-size:15px}.next-map-marker img{width:100%;height:100%;object-fit:cover;border-radius:50%}.next-map-marker.price{border-radius:12px;width:max-content!important;min-width:80px;padding:0 8px;white-space:nowrap}.next-map-status{font-size:13px;color:var(--muted,#64748b);margin:10px 0}.next-map-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.next-map-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.next-map-list button{background:var(--card,#fff);color:inherit;border:1px solid var(--line,#dbe3ef);border-radius:12px;padding:12px;text-align:left;cursor:pointer}.next-map-list small{display:block;margin-top:6px}.next-map-selection .v2-market-card{max-width:340px}.next-location-editor{border:1px solid var(--line,#dbe3ef);border-radius:14px;padding:12px;margin:18px 0;min-width:0}.next-service-logo{width:40px;height:40px;object-fit:cover;border-radius:12px;vertical-align:middle;margin-right:10px}.next-chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.next-chat-row{display:flex;align-items:center;border-bottom:1px solid var(--line,#e6ebf1)}.next-chat-row>.nio-tg-row{flex:1;min-width:0;border:0!important}.next-pin{flex:0 0 42px;height:44px;border:0;border-radius:10px;background:transparent;color:#8390a6;cursor:pointer}.next-pin svg{width:18px}.next-pin[aria-pressed=true]{color:#2563eb;background:#2563eb12}.next-stories{display:flex;gap:16px;overflow-x:auto;padding:14px 5px 20px;align-items:flex-start}.next-stories>div,.next-story-add{min-width:64px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}.next-stories small{max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.next-story-add{border:0;background:none;color:inherit;cursor:pointer}.next-story-add>span{width:56px;height:56px;background:#2563eb12;border:1px dashed #2563eb;border-radius:50%;display:grid;place-items:center;font-size:28px;color:#2563eb}.next-story-ring{border:3px solid #3977ef;padding:3px;background:none;border-radius:50%;cursor:pointer;color:inherit}.next-story-ring>span{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#dbeafe;color:#173fab;font-weight:700}.next-story-outline{outline:3px solid #3977ef;outline-offset:3px;cursor:pointer}.next-story-outline.viewed,.next-story-ring.viewed{outline-color:#9ba8bb;border-color:#9ba8bb}.next-story-view{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:360px;max-height:65vh;overflow:auto;background:linear-gradient(145deg,#173fab,#14234b);color:white;border-radius:18px;padding:24px;text-align:center}.next-story-view img{max-height:45vh;max-width:100%;object-fit:contain;margin-top:16px}.next-story-view p{font-size:23px;overflow-wrap:anywhere}.next-story-progress{display:flex;gap:4px;margin-bottom:14px}.next-story-progress span{height:3px;flex:1;background:#ffffff40;border-radius:9px}.next-story-progress .done{background:white}.next-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.next-editorial-item{display:block;width:100%;background:transparent;color:inherit;text-align:left;padding:14px;border:0;border-bottom:1px solid #dbe3ef;cursor:pointer}.leaflet-control-attribution{font-size:11px!important}.next-map .leaflet-control-zoom a{color:#173fab!important}#next-access fieldset{border:1px solid #dbe3ef;border-radius:12px;margin:16px 0}#next-access .v2-check{margin:10px 0}.nio-access-bar[hidden]{display:none!important}@media(max-width:590px){.next-map{height:55dvh;max-height:520px}.next-map-picker{height:260px}.next-map-list{grid-template-columns:1fr}.next-map-actions{align-items:flex-start;flex-direction:column}.next-story-view{padding:18px;min-height:320px}.next-chat-actions .nio-button{font-size:13px;padding:9px 12px}}
.next-story-view video{max-height:45vh;max-width:100%;border-radius:10px;margin-top:16px}html[data-theme=dark] .next-view-switch,html[data-theme=dark] .next-categories button{background:#202c42}html[data-theme=dark] .next-view-switch [aria-pressed=true],html[data-theme=dark] .next-categories [aria-pressed=true]{background:#2563eb}html[data-theme=dark] .next-map-list button{background:#182438;border-color:#334155;color:#f1f5f9}
[data-page=admin][hidden]{display:none!important}.next-map .leaflet-popup-content{color:#18314e}.next-map-list button:focus-visible,.next-pin:focus-visible,.next-story-ring:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
