/* ARENA — page components. This stylesheet does not import or depend on the
   Standard presentation layer. Native GameCMS IDs and AJAX containers remain. */

/* Reading and forms */
body.n-next .n-page-content{min-width:0;font-size:15px;line-height:1.7}
body.n-next .n-page-content .block_head{letter-spacing:-.025em;line-height:1.35}
body.n-next .n-page-content .block_head>span{font-size:13px;line-height:1.5}
body.n-next .n-page-content small{font-size:12px;line-height:1.6}
body.n-next .n-page-content .with_code{font-size:15px;line-height:1.85;overflow-wrap:anywhere}
body.n-next .n-page-content .with_code :is(h2,h3,h4){margin:26px 0 12px;line-height:1.4;letter-spacing:-.02em}
body.n-next .n-page-content .with_code h2{font-size:26px}
body.n-next .n-page-content .with_code h3{font-size:22px}
body.n-next .n-page-content .with_code h4{font-size:18px}
body.n-next .n-page-content .with_code p{line-height:inherit;margin:0 0 16px}
body.n-next .n-page-content .with_code>p:last-child{margin-bottom:0}
body.n-next .n-page-content .with_code img{max-width:100%;height:auto;border-radius:12px}
body.n-next .n-page-content .with_code :is(.g_smile,.smile){border-radius:0}
body.n-next .n-page-content .with_code :is(pre,code){font-size:13px;line-height:1.7}
body.n-next .n-page-content .with_code :is(ul,ol){padding-left:24px;margin:14px 0}
body.n-next .n-page-content .with_code li{margin:7px 0}
body.n-next .n-page-content .noty-block{padding:18px 20px;margin-bottom:20px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2);font-size:14px;line-height:1.75}
body.n-next .n-page-content .noty-block :is(h4,h5){font-size:17px;font-weight:750;margin:0 0 8px}
body.n-next .n-page-content .noty-block p:last-child{margin-bottom:0}
body.n-next .n-page-content .noty-block.info{border-color:var(--n-accent-soft);background:var(--n-accent-soft)}
body.n-next .n-page-content .noty-block.success{border-color:var(--n-success-soft);background:var(--n-success-soft)}
body.n-next .n-page-content .noty-block.error{border-color:var(--n-danger-soft);background:var(--n-danger-soft)}
body.n-next .n-page-content .form-group{margin:0 0 23px}
body.n-next .n-page-content .form-group>label{display:block;margin:0 0 9px;font-size:14px;line-height:1.5;color:var(--n-muted)}
body.n-next .n-page-content .form-group>label h4{margin:0;font-size:14px;line-height:1.5;font-weight:650;color:inherit}
body.n-next .n-page-content .form-control{min-height:46px;font-size:15px;line-height:1.5;border-radius:12px}
body.n-next .n-page-content textarea:not(.form-control){display:block;width:100%;max-width:100%;min-height:150px;padding:14px 16px;color:var(--n-text);background:var(--n-bg);border:1px solid var(--n-line);border-radius:12px;font:inherit;line-height:1.7;resize:vertical}
body.n-next .n-page-content .input-group{gap:8px;align-items:stretch}
body.n-next .n-page-content .input-group>.form-control{min-width:120px;border-radius:12px;margin:0}
body.n-next .n-page-content .input-group :is(.input-group-prepend,.input-group-append){gap:6px;margin:0;max-width:100%}
body.n-next .n-page-content .input-group :is(.btn,.input-group-text){height:auto;min-height:46px;margin:0;border-radius:12px}
body.n-next .n-page-content .input-group input[type=file]{width:auto;min-width:0;max-width:100%;flex:1 1 210px}
body.n-next .n-page-content :is(.form-control,input[type=file])+.btn{margin-top:12px}
body.n-next .n-page-content .input-group>.form-control+.btn{margin-top:0}
body.n-next .n-page-content .form-check{padding-left:27px}
body.n-next .n-page-content .form-check-input{width:17px;height:17px;margin:5px 0 0 -27px}
body.n-next .n-page-content .form-check-label{font-size:14px;line-height:1.65}
body.n-next .n-page-content .btn-group-toggle{display:flex;flex-wrap:wrap;gap:8px}
body.n-next .n-page-content .btn-group-toggle>.btn{height:auto;min-height:40px;margin:0;padding:9px 13px;border-radius:10px;font-size:13px;line-height:1.5}
body.n-next .n-page-content .btn-group-vertical{gap:6px}
body.n-next .n-page-content .btn-group-vertical>.btn{border-radius:9px;margin:0}
body.n-next .n-page-content .editing-date{display:grid;grid-template-columns:auto minmax(65px,.8fr) minmax(120px,1.4fr) minmax(90px,1fr)}
body.n-next .n-page-content .editing-date>.form-control{width:100%;min-width:0;padding-left:12px;padding-right:28px}
body.n-next .n-form-page .form-group>.row{align-items:center;row-gap:14px}
body.n-next .n-form-page :is(img#pic,img#image,img#avatar,img#img){max-width:140px;border-radius:14px;object-fit:cover}
body.n-next .n-form-page input[type=file]{max-width:100%;font-size:13px}
body.n-next .n-page-content .label{display:inline-flex;align-items:center;padding:5px 10px;border-radius:8px;font-size:12px;line-height:1.5;white-space:normal}
body.n-next .n-page-content .label-info{color:var(--n-link);background:var(--n-accent-soft)}
body.n-next .n-page-content .label-success{color:var(--n-success);background:var(--n-success-soft)}
body.n-next .n-page-content div[id^=pagination]{height:auto;margin:5px 0 26px;text-align:left}
body.n-next .n-page-content div[id^=pagination] ul{margin:0;justify-content:flex-start}
body.n-next .n-page-content hr{height:0;margin:24px 0;border:0;border-top:1px solid var(--n-line);background:transparent}

/* Page title and moderation summary. Values are native controller totals. */
body.n-next .n-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:4px 0 24px}
body.n-next .n-page-kicker{display:block;margin:0 0 6px;color:var(--n-link);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.11em}
body.n-next .n-page-heading h1{margin:0;font-size:28px;line-height:1.3;letter-spacing:-.035em;font-weight:850}
body.n-next .n-page-heading p{margin:8px 0 0;color:var(--n-muted);font-size:13px;line-height:1.6}
body.n-next .n-view-switch{display:flex;flex-shrink:0;gap:4px;padding:5px;border:1px solid var(--n-line);border-radius:13px;background:var(--n-surface)}
body.n-next .n-view-switch>a{display:inline-flex;justify-content:center;align-items:center;min-height:37px;min-width:65px;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:750;color:var(--n-muted)}
body.n-next .n-view-switch>a:hover{color:var(--n-text);background:var(--n-surface-2)}
body.n-next .n-view-switch>a[aria-current=page]{color:var(--n-link);background:var(--n-accent-soft)}
body.n-next .n-moderation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
body.n-next .n-moderation-summary>div{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:102px;padding:18px;border:1px solid var(--n-line);border-radius:16px;background:var(--n-surface)}
body.n-next .n-moderation-summary strong{font-size:28px;line-height:1.25;font-weight:850;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--n-text)}
body.n-next .n-moderation-summary span{font-size:12px;line-height:1.5;color:var(--n-muted)}
body.n-next .n-moderation-summary .n-summary-warning strong{color:var(--n-warning)}
body.n-next .n-moderation-summary .n-summary-danger strong{color:var(--n-danger)}
body.n-next .n-moderation-board{padding:20px}

/* Searches retain native enter/click callbacks. */
body.n-next .n-page-content .input-search{position:relative;min-height:46px;height:auto;margin:0 0 22px;overflow:visible}
body.n-next .n-page-content .input-search>i.fa-search{position:absolute;left:16px;top:16px;z-index:2;font-size:15px;line-height:16px;color:var(--n-muted)}
body.n-next .n-page-content .input-search>i[onclick]{cursor:pointer}
body.n-next .n-page-content .input-search input{min-height:46px;height:auto;padding:12px 15px 12px 43px;font-size:14px;border-radius:12px}
body.n-next .n-page-content .input-search select{min-height:46px;max-width:215px;flex:0 1 215px;font-size:14px;padding:12px 32px 12px 13px}
body.n-next .n-page-content .n-record-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:14px}
body.n-next .n-record-search>.btn{min-width:88px}

/* Individual record cards rendered as native table rows. Separating rows, not
   replacing their DOM, keeps every modal, payment and moderation callback. */
body.n-next .n-page-content .table-responsive{max-width:100%;margin-bottom:20px;border-radius:14px}
body.n-next .n-page-content .table{color:var(--n-text);font-size:14px;line-height:1.6;margin:0}
body.n-next .n-page-content .table>thead>tr>:is(th,td){font-size:12px;line-height:1.6;letter-spacing:.055em;text-transform:uppercase;padding:13px 14px;font-weight:750;color:var(--n-muted);vertical-align:middle}
body.n-next .n-page-content .table>tbody>tr>:is(td,th){font-size:14px;line-height:1.65;padding:15px 14px;vertical-align:middle;border-color:var(--n-line)}
body.n-next .n-page-content .table td p{font-size:inherit;line-height:inherit;margin:0}
body.n-next .n-page-content .table td>a>img{width:32px;height:32px;margin-right:8px;border-radius:10px;object-fit:cover;vertical-align:middle}
body.n-next .n-page-content .n-record-scroll{overflow-x:auto;border-radius:0;background:transparent}
body.n-next .n-page-content table.n-record-table{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0 8px;border:0;margin:-8px 0}
body.n-next table.table.n-record-table>thead>tr>:is(td,th){border:0;background:transparent;text-align:left;white-space:normal}
body.n-next table.table.n-record-table>tbody>tr.n-record-row>td{background:var(--n-surface-2);border:0;border-top:1px solid var(--n-line);border-bottom:1px solid var(--n-line);color:var(--n-text);transition:background-color .15s ease}
body.n-next table.table.n-record-table>tbody>tr.n-record-row>td:first-child{border-left:1px solid var(--n-line);border-radius:12px 0 0 12px}
body.n-next table.table.n-record-table>tbody>tr.n-record-row>td:last-child{border-right:1px solid var(--n-line);border-radius:0 12px 12px 0}
body.n-next table.table.n-record-table>tbody>tr.n-record-row:hover>td{background:var(--n-surface-3)}
body.n-next .modal table.n-server-player-table{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0 9px;margin:0}
body.n-next .modal table.n-server-player-table .n-server-player-name{font-weight:750;overflow-wrap:anywhere;min-width:100px}
body.n-next .modal table.n-server-player-table .n-server-player-controls .input-group{gap:7px;align-items:stretch;flex-wrap:nowrap}
body.n-next .modal table.n-server-player-table .n-server-player-controls .input-group>.form-control{margin:0;min-width:96px;font-size:13px}
body.n-next .modal table.n-server-player-table .n-server-player-controls .btn{min-height:38px;border-radius:9px;padding:8px 11px;font-size:12px}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row{cursor:pointer}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td:first-child{border-left-width:3px}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.danger>td:first-child{border-left-color:var(--n-danger)}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.warning>td:first-child{border-left-color:var(--n-warning)}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.success>td:first-child{border-left-color:var(--n-success)}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td:nth-child(1){width:24%;font-weight:750}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td:nth-child(2){width:25%;font-size:13px}
body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td{font-size:13px;padding:13px 12px;overflow-wrap:anywhere}
body.n-next .n-record-who{display:flex;align-items:center;gap:10px;min-width:0}
body.n-next .n-record-who>span:last-child{min-width:0;overflow-wrap:anywhere;font-size:14px}
body.n-next .n-record-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;color:var(--n-muted);background:var(--n-surface);font-size:13px}
body.n-next .n-record-note{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:var(--n-muted)}
body.n-next .n-record-open{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:9px;background:var(--n-accent-soft);color:var(--n-link);font-size:12px;font-weight:700;white-space:nowrap}
body.n-next .n-record-open:hover{background:var(--n-accent);color:var(--n-accent-ink)}
body.n-next .n-status-pill{display:inline-block;width:fit-content;max-width:100%;padding:5px 8px;border-radius:7px;background:var(--n-surface);font-size:12px!important;font-weight:750;line-height:1.45!important;white-space:normal}
body.n-next .danger .n-status-pill,body.n-next .n-status-pill.text-danger{color:var(--n-danger);background:var(--n-danger-soft)}
body.n-next .warning .n-status-pill,body.n-next .n-status-pill.text-warning{color:var(--n-warning);background:var(--n-warning-soft)}
body.n-next .success .n-status-pill,body.n-next .n-status-pill.text-success{color:var(--n-success);background:var(--n-success-soft)}
body.n-next .n-status-pill.text-info{color:var(--n-link);background:var(--n-accent-soft)}
body.n-next table.table.n-record-table :is([id^=buy_unban_btn],[id^=buy_unmute_btn]){display:block;margin-top:5px;font-size:12px;color:var(--n-link)}
body.n-next table.table.n-record-table>tbody>tr.hidden-tr{display:none}
body.n-next table.table.n-record-table>tbody>tr>td[colspan]{padding:24px 12px;border:0;background:transparent}

/* Case details, replies and material. */
body.n-next .n-page-content .ban-information>p{margin:0 0 10px;padding:13px 16px;border-radius:12px;background:var(--n-surface-2);font-size:14px;line-height:1.65;overflow-wrap:anywhere}
body.n-next .n-page-content .ban-information>p>b{display:block;margin-bottom:3px;color:var(--n-muted);font-size:12px;font-weight:650}
body.n-next .n-page-content .ban-information>.btn{margin:0 7px 8px 0}
body.n-next .n-page-content .comment{display:flex;align-items:flex-start;gap:12px;min-width:0;margin:18px 0;padding:0}
body.n-next .n-page-content .comment>a{flex:0 0 38px;width:38px}
body.n-next .n-page-content .comment>a>img{width:38px;height:38px;object-fit:cover;border-radius:12px}
body.n-next .n-page-content .comment>div{flex:1;min-width:0;padding:16px 18px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2)}
body.n-next .n-page-content .comment .info{position:relative;display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;min-height:24px;margin:0 0 8px;padding-right:23px}
body.n-next .n-page-content .comment .author{min-width:0;font-size:14px;line-height:1.5;font-weight:750;overflow-wrap:anywhere}
body.n-next .n-page-content .comment .date{margin-left:auto;color:var(--n-muted);font-size:12px;line-height:1.5}
body.n-next .n-page-content .comment .info>:is(a,i){position:absolute;right:0;top:2px;font-size:14px;cursor:pointer}
body.n-next .n-page-content .comment .with_code{font-size:14px;line-height:1.75}
body.n-next .smile_input_forum{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.n-next .smile_input_forum>.btn{margin:0}

/* Forums — one complete card for a forum or topic, grouped by plain headings. */
body.n-next :is(#forum,#forum_topics){min-width:0}
body.n-next .n-forum-section+.n-forum-section{margin-top:25px}
body.n-next .n-forum-category{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0;color:var(--n-muted);font-size:12px;line-height:1.5;font-weight:750;letter-spacing:.065em;text-transform:uppercase;background:transparent;border:0}
body.n-next .n-forum-category::before{content:"";flex:0 0 4px;width:4px;height:15px;border-radius:3px;background:var(--n-link)}
body.n-next .n-forum-category-wrap{margin:12px 0 0}
body.n-next .n-forum-category-wrap:first-child{margin-top:0}
body.n-next .n-forum-list>div:has(>hr:only-child){display:none}
body.n-next .n-forum-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;padding:0}
body.n-next .n-forum-row{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(180px,.85fr);align-items:center;gap:24px;min-width:0;padding:20px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2);transition:background-color .15s ease,border-color .15s ease}
body.n-next .n-forum-row:hover{background:var(--n-surface-3)}
body.n-next .n-forum-main{display:flex;align-items:center;gap:16px;min-width:0}
body.n-next .n-forum-main>img{flex:0 0 46px;width:46px;height:46px;border-radius:13px;object-fit:cover;margin:0}
body.n-next .n-forum-main>div{min-width:0;flex:1}
body.n-next .n-forum-main h3{margin:0 0 6px;font-size:16px;line-height:1.5;font-weight:750;letter-spacing:-.02em;overflow-wrap:anywhere}
body.n-next .n-forum-main h3 a{color:var(--n-text)}
body.n-next .n-forum-main h3 a:hover{color:var(--n-link)}
body.n-next .n-forum-main h3 i{font-size:12px;color:var(--n-warning);margin-right:5px}
body.n-next .n-forum-main p{margin:0;color:var(--n-muted);font-size:13px;line-height:1.65;overflow-wrap:anywhere}
body.n-next .n-forum-main p>span{display:inline-flex;align-items:center;gap:5px;margin-right:12px;font-size:12px;line-height:1.65}
body.n-next .n-forum-main p>span>i{opacity:.7;font-size:12px}
body.n-next .n-forum-main p a{color:var(--n-muted)}
body.n-next .n-forum-latest{min-width:0;padding-left:18px;border-left:1px solid var(--n-line)}
body.n-next .n-forum-latest p{margin:0;font-size:12px;line-height:1.65;color:var(--n-muted);overflow-wrap:anywhere}
body.n-next .n-forum-latest p:first-child a{display:inline-block;font-size:12px;font-weight:650;color:var(--n-text);margin-bottom:3px}
body.n-next .n-forum-latest a:hover{color:var(--n-link)}
body.n-next .n-forum-row-pinned{border-left:3px solid var(--n-link)}

/* Topic posts and author identity. */
body.n-next .topic-answers{display:grid;gap:18px;margin:0;min-width:0}
body.n-next .topic-answers .n-topic-post{min-width:0;margin:0;border:1px solid var(--n-line);border-radius:16px;background:var(--n-surface-2);overflow:hidden}
body.n-next .n-topic-post .top-area{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--n-line);font-size:14px;line-height:1.6}
body.n-next .n-topic-post .top-area .left-side{min-width:0;font-weight:750;overflow-wrap:anywhere}
body.n-next .n-topic-post .top-area .left-side a{color:var(--n-text)}
body.n-next .n-topic-post .top-area .right-side{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-left:auto;font-size:12px;line-height:1.6}
body.n-next .n-topic-post .top-area .right-side a{color:var(--n-muted);cursor:pointer}
body.n-next .n-topic-post .top-area .right-side a:hover{color:var(--n-link)}
body.n-next .n-topic-post .center-area{display:grid;grid-template-columns:144px minmax(0,1fr);min-width:0}
body.n-next .n-topic-post .center-area .left-side{min-width:0;padding:20px 16px;text-align:center;background:var(--n-surface)}
body.n-next .n-topic-post .center-area .left-side img{display:block;width:80px;height:80px;object-fit:cover;margin:0 auto 12px;border-radius:18px}
body.n-next .n-topic-post .center-area .left-side p{margin:5px 0;font-size:12px;line-height:1.6;color:var(--n-muted);overflow-wrap:anywhere}
body.n-next .n-topic-post .center-area .left-side br{display:none}
body.n-next .n-topic-post .center-area .right-side{min-width:0;padding:23px}
body.n-next .n-topic-post .center-area>.clearfix{display:none}
body.n-next .n-topic-post .edited{margin-top:18px;color:var(--n-muted);font-size:12px;line-height:1.65}
body.n-next .n-topic-post .signature{padding-top:16px;margin-top:20px;border-top:1px solid var(--n-line);color:var(--n-muted);font-size:12px;line-height:1.65}
body.n-next .n-topic-post .bottom-area{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:13px 16px;border-top:1px solid var(--n-line)}
body.n-next .n-topic-post .bottom-area .left-side{min-width:0}
body.n-next .n-topic-post .bottom-area .right-side{min-width:0;flex:1;text-align:right;color:var(--n-muted);font-size:12px;line-height:1.65}
body.n-next .n-topic-post .bottom-area .btn-group{display:flex;flex-wrap:wrap;gap:8px}
body.n-next .n-topic-post .bottom-area .btn-group>.btn{min-width:40px;margin:0;border-radius:9px}
body.n-next .n-topic-post .bottom-area>.clearfix{display:none}
body.n-next .n-topic-post .thank_str{margin:0}

/* News: a featured article and compact subsequent stories, shared on the home
   page. Content stays inside native renderers; image paths and dates are live. */
body.n-next :is(#new_news,.news){display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;min-width:0}
body.n-next :is(#new_news,.news)::after{content:none}
body.n-next .n-news-card{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:stretch;min-width:0;gap:0;border:1px solid var(--n-line);border-radius:14px;overflow:hidden;background:var(--n-surface-2);transition:background-color .15s ease}
body.n-next .n-news-card:hover{background:var(--n-surface-3)}
body.n-next .n-news-cover{display:block;position:relative;min-width:0;min-height:120px;height:100%;overflow:hidden;background:var(--n-bg)}
body.n-next .n-news-cover img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;border-radius:0;transition:transform .25s ease}
body.n-next .n-news-cover:hover img{transform:scale(1.035)}
body.n-next .n-news-body{display:flex;flex-direction:column;min-width:0;padding:17px 19px}
body.n-next .n-news-title{display:block;min-width:0;color:var(--n-text)}
body.n-next .n-news-title h3{margin:0 0 8px;font-size:16px;line-height:1.5;font-weight:800;letter-spacing:-.02em;overflow-wrap:anywhere}
body.n-next .n-news-title:hover{color:var(--n-link)}
body.n-next .n-news-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px;font-size:13px;line-height:1.65;color:var(--n-muted);overflow-wrap:anywhere}
body.n-next .n-news-summary p{margin:0}
body.n-next .n-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:auto;font-size:12px;line-height:1.5;color:var(--n-muted)}
body.n-next .n-news-meta span{display:inline-flex;align-items:center;gap:6px}
body.n-next .news>.n-news-card:first-child{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
body.n-next .news>.n-news-card:first-child .n-news-cover{min-height:260px}
body.n-next .news>.n-news-card:first-child .n-news-body{justify-content:center;padding:24px}
body.n-next .news>.n-news-card:first-child .n-news-title h3{font-size:25px;line-height:1.35;letter-spacing:-.035em}
body.n-next .news>.n-news-card:first-child .n-news-summary{-webkit-line-clamp:4;font-size:14px;line-height:1.75;margin:0 0 20px}
body.n-next .news>.n-news-card:first-child .n-news-meta{margin-top:0}
body.n-next #new_news:has(>.n-news-card:nth-child(4)){grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-flow:dense}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child{grid-column:1;grid-row:span 3;display:flex;flex-direction:column}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-cover{height:auto;min-height:0}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-cover img{height:auto;aspect-ratio:16/10}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-body{flex:1;padding:20px}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-title h3{font-size:22px;line-height:1.4}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-summary{-webkit-line-clamp:4;margin-bottom:20px}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child){grid-template-columns:90px minmax(0,1fr)}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child) .n-news-body{padding:13px 14px}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child) .n-news-title h3{font-size:14px;margin-bottom:5px}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child) .n-news-summary{font-size:12px;margin-bottom:8px}
body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child) .n-news-meta{font-size:12px}
body.n-next .new>.with_code{margin-bottom:24px}
body.n-next .new>p:last-child{display:flex;flex-wrap:wrap;gap:9px 20px;padding-top:20px;margin:0;border-top:1px solid var(--n-line);font-size:12px;line-height:1.65;color:var(--n-muted)}
body.n-next .new>p:last-child>span{display:inline;margin:0;padding:0}
body.n-next .small-new{display:flex;align-items:flex-start;gap:12px;margin:0;padding:13px 0;min-width:0;border-bottom:1px solid var(--n-line);color:var(--n-text)}
body.n-next .small-new:first-child{padding-top:0}
body.n-next .small-new:last-child{padding-bottom:0;border:0}
body.n-next .small-new>img{flex:0 0 58px;width:58px;height:58px;object-fit:cover;border-radius:11px}
body.n-next .small-new>div{min-width:0;flex:1}
body.n-next .small-new p{margin:0;color:var(--n-muted);font-size:12px;line-height:1.65;overflow-wrap:anywhere}
body.n-next .small-new p:first-child{font-size:13px;font-weight:750;color:var(--n-text);line-height:1.5;margin-bottom:5px}
body.n-next .small-new:hover p:first-child{color:var(--n-link)}

/* Store, account services and administrators */
body.n-next .n-store-page #store_service_info{min-height:250px;padding:24px;border:1px solid var(--n-line);border-radius:16px;background:var(--n-surface-2);font-size:14px;line-height:1.8}
body.n-next .n-store-page #store_service_info:empty::before{content:"Выберите сервер и услугу, чтобы увидеть описание привилегий.";display:block;color:var(--n-muted);font-size:14px;line-height:1.85}
body.n-next .n-store-page #store_service_info :is(h3,h4){margin-top:0}
body.n-next .n-store-page #store_service_info :is(ul,ol){padding-left:24px;margin:18px 0}
body.n-next .n-store-page #store_service_info li{margin-bottom:10px}
body.n-next .n-store-page #button .btn{min-height:46px;min-width:120px}
body.n-next .admin-settings{min-width:0;font-size:14px}
body.n-next .admin-settings>tbody>tr>td:first-child{width:32%;white-space:normal;color:var(--n-muted);font-size:12px}
body.n-next .admin-settings>tbody>tr>td:last-child{white-space:normal;overflow-wrap:anywhere}
body.n-next .admin-settings .form-control{margin-bottom:0;min-width:100px}
body.n-next .admin-settings small{display:none}
body.n-next :is([id^=store_info],[id^=admin_info]) .input-group{display:flex;gap:8px}
body.n-next :is([id^=store_info],[id^=admin_info]) .input-group :is(.btn,.form-control){margin:0;border-radius:10px}
body.n-next .n-admins-page .services-title{margin:0 0 12px;font-size:18px}
body.n-next .n-admins-page .add-service{margin:0 0 14px}
body.n-next .n-page-content [id^=extend_block] .form-control{min-width:105px}
body.n-next .n-forum-page table tbody[id^=forums] input{min-width:120px}
body.n-next .n-forum-page table tbody[id^=forums] img{width:46px;height:46px;border-radius:11px;object-fit:cover}
body.n-next .n-prices-page>.row{row-gap:0}
body.n-next .n-prices-page .with_code{font-size:14px}

/* Wallet and payment methods */
body.n-next .n-wallet-page .purse{padding:18px}
body.n-next .n-wallet-page .purse>.row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
body.n-next .n-wallet-page .purse>.row>.col-lg-3{width:auto;max-width:none;margin:0;padding:0}
body.n-next .n-wallet-page .purse>.row>.col-lg-3>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:148px;height:100%;padding:18px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2);font-size:13px;line-height:1.65;color:var(--n-text)}
body.n-next .n-wallet-page .purse>.row>.col-lg-3:first-child>div{background:var(--n-accent-soft);border-color:var(--n-accent-soft)}
body.n-next .n-wallet-page .purse :is([data-toggle=modal],[onclick]){cursor:pointer}
body.n-next .n-wallet-page .purse>.row>.col-lg-3>div>i{display:block;margin:0 0 10px;font-size:22px;color:var(--n-link)}
body.n-next .n-wallet-page .purse #my_balance{font-size:29px;font-weight:850;line-height:1.4;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
body.n-next .n-wallet-label{font-size:12px;color:var(--n-muted);line-height:1.5}
body.n-next .n-wallet-value{display:flex;align-items:baseline;gap:5px}
body.n-next .n-wallet-value>span{font-size:15px;font-weight:650}
body.n-next .n-wallet-page .purse [data-toggle=modal]:hover{background:var(--n-surface-3)}
body.n-next .n-wallet-page .pay_area{align-items:stretch;row-gap:20px;margin-bottom:24px}
body.n-next .n-wallet-page .pay_area>.col-md-6{display:flex;flex-direction:column}
body.n-next .n-wallet-page .pay_area .block{flex:1;min-width:0;margin:0}
body.n-next .n-wallet-page .pay_area .block>label{display:flex;align-items:center;min-height:75px;width:100%;margin:0 0 20px;padding:12px 15px;border:1px solid var(--n-line);border-radius:12px;background:var(--n-surface-2)}
body.n-next .n-wallet-page .pay_area .block>label>img{max-width:100%;width:auto;height:auto;max-height:50px;object-fit:contain;object-position:left center}
body.n-next .n-wallet-page .pay_area .block>.btn{width:100%;min-height:46px;margin-top:0}
body.n-next #voucher .modal-body>.btn{margin-top:14px}

/* Member cards, dialogs and private messages */
body.n-next .n-members-page :is(.friend,.user){display:flex;align-items:flex-start;gap:16px;margin:0 0 12px;padding:18px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2);min-width:0}
body.n-next .n-members-page :is(.friend,.user)>a{flex:0 0 54px;width:54px}
body.n-next .n-members-page :is(.friend,.user)>a>img{width:54px;height:54px;margin:0;border-radius:15px;object-fit:cover}
body.n-next .n-members-page :is(.friend,.user)>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;flex:1}
body.n-next .n-members-page :is(.friend,.user)>div>a{display:inline-flex;align-items:center;min-height:30px;padding:4px 8px;border-radius:7px;background:var(--n-surface);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
body.n-next .n-members-page :is(.friend,.user)>div>a:first-child{display:block;flex:0 0 100%;padding:0;min-height:0;background:none;font-size:16px;line-height:1.5;font-weight:750}
body.n-next .n-members-page :is(.friend,.user)>div>a:first-child small{font-size:12px;font-weight:500}
body.n-next .n-members-page .friend a[onclick^=take_friend]{color:var(--n-success);background:var(--n-success-soft)}
body.n-next .n-members-page .friend a[onclick^=reject_friend]{color:var(--n-danger);background:var(--n-danger-soft)}
body.n-next #place_for_messages .dialog{display:flex;align-items:stretch;min-height:100px;margin:0 0 12px;border:1px solid var(--n-line);border-radius:14px;overflow:hidden;background:var(--n-surface-2)}
body.n-next #place_for_messages .dialog>div:first-child{display:flex;align-items:center;gap:16px;min-width:0;flex:1;padding:18px;cursor:pointer}
body.n-next #place_for_messages .dialog>div:first-child:hover{background:var(--n-surface-3)}
body.n-next #place_for_messages .dialog>div:first-child>img{flex:0 0 50px;width:50px;height:50px;object-fit:cover;border-radius:14px}
body.n-next #place_for_messages .dialog>div:first-child>div{min-width:0;flex:1}
body.n-next #place_for_messages .dialog p{margin:3px 0;font-size:12px;line-height:1.6;color:var(--n-muted);overflow-wrap:anywhere}
body.n-next #place_for_messages .dialog p:first-child{font-size:15px;font-weight:750;color:var(--n-text)}
body.n-next #place_for_messages .dialog>div:nth-child(2){display:grid;place-items:center;flex:0 0 45px;width:45px;border-left:1px solid var(--n-line);font-size:17px;color:var(--n-muted);cursor:pointer}
body.n-next #place_for_messages .dialog>div:nth-child(2):hover{color:var(--n-danger);background:var(--n-danger-soft)}
body.n-next #place_for_messages #messages{min-height:270px;max-height:65vh;overflow-y:auto;overscroll-behavior:contain;padding:18px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-bg)}
body.n-next #place_for_messages .im_message{display:flex;align-items:flex-start;gap:10px;width:100%;min-width:0;margin:0 0 16px}
body.n-next #place_for_messages .im_message:last-child{margin-bottom:0}
body.n-next #place_for_messages .im_message>img{width:34px;height:34px;flex:0 0 34px;border-radius:11px;object-fit:cover}
body.n-next #place_for_messages .im_message>div{min-width:0;flex:1;padding:14px 16px;border:1px solid var(--n-line);border-radius:14px;background:var(--n-surface-2)}
body.n-next #place_for_messages .im_message .info{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:7px}
body.n-next #place_for_messages .im_message .info>a{font-size:13px;font-weight:750;overflow-wrap:anywhere}
body.n-next #place_for_messages .im_message .date{margin-left:auto;font-size:12px;line-height:1.5;color:var(--n-muted)}
body.n-next #place_for_messages .im_message .with_code{font-size:14px;line-height:1.75}
body.n-next #place_for_messages #personal_message_input{min-height:105px;max-height:320px;height:auto;margin-top:14px!important;font-size:15px;line-height:1.7;resize:vertical}
body.n-next #place_for_messages #chat #send_button{min-width:115px;width:auto;min-height:44px;height:auto;padding:11px 17px;font-size:13px;line-height:1.5;border-radius:12px}
body.n-next .n-messages-page .dialogs>.block_head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
body.n-next .n-messages-page .dialogs>.block_head .btn{position:static;margin:0;font-size:12px}
body.n-next #companions{background:none}
body.n-next #companions>div:not(.loader){display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:2px 10px;min-height:64px;padding:12px 0;border-bottom:1px solid var(--n-line)}
body.n-next #companions>div:first-child{padding-top:0}
body.n-next #companions>div:last-child{padding-bottom:0;border:0}
body.n-next #companions>div>img{grid-column:1;grid-row:1/3;width:38px;height:38px;border-radius:12px;object-fit:cover}
body.n-next #companions>div>:is(a,span){grid-column:2;display:block;min-width:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
body.n-next #companions>div>span{color:var(--n-muted);font-size:12px;cursor:pointer}
body.n-next #companions>div>span:hover{color:var(--n-link)}

/* Event feed is a sequence of compact cards, never fixed-height table cells. */
body.n-next #events{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
body.n-next #events .event{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:4px 13px;width:100%;min-width:0;margin:0;padding:16px 18px;border:1px solid var(--n-line);border-radius:13px;background:var(--n-surface-2)}
body.n-next #events .n-event-icon{grid-column:1;grid-row:1/4;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--n-accent-soft);color:var(--n-link);font-size:14px}
body.n-next #events .n-event-content{grid-column:2;grid-row:1;min-width:0}
body.n-next #events .n-event-content>a{font-size:13px;font-weight:650;line-height:1.65;color:var(--n-text);overflow-wrap:anywhere}
body.n-next #events .n-event-content>a:hover{color:var(--n-link)}
body.n-next #events .n-event-user{grid-column:2;grid-row:2;display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;line-height:1.6;color:var(--n-muted)}
body.n-next #events .n-event-user>img{width:20px;height:20px;border-radius:6px;object-fit:cover}
body.n-next #events .n-event-user>span{min-width:0;overflow-wrap:anywhere}
body.n-next #events .n-event-date{grid-column:2;grid-row:3;font-size:12px;line-height:1.6;color:var(--n-muted)}
body.n-next #events .n-event-action{grid-column:3;grid-row:1/4;justify-self:end;min-height:35px;margin:0;font-size:12px;padding:8px 11px}
body.n-next #events .event>i{position:absolute;top:8px;right:9px;cursor:pointer;color:var(--n-muted);font-size:12px}
body.n-next #events .event>i:hover{color:var(--n-danger)}
body.n-next.n-page-home #events{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.n-next.n-page-home #events .event{grid-template-columns:32px minmax(0,1fr);padding:15px;gap:4px 10px;align-items:start}
body.n-next.n-page-home #events .n-event-icon{width:32px;height:32px;font-size:12px}
body.n-next.n-page-home #events .n-event-action{grid-column:2;grid-row:4;justify-self:start;margin-top:5px;font-size:12px;min-height:30px;padding:5px 9px}

/* Tablet */
@media(max-width:1199px){
 body.n-next .n-page-content .editing-date{grid-template-columns:minmax(65px,.8fr) minmax(115px,1.4fr) minmax(85px,1fr)}
 body.n-next .n-page-content .editing-date>.input-group-prepend{grid-column:1/-1;grid-row:2;justify-self:start}
 body.n-next .n-forum-row{grid-template-columns:minmax(0,1.5fr) minmax(150px,.85fr);gap:16px;padding:17px}
 body.n-next .n-forum-main{gap:12px}
 body.n-next .n-moderation-summary>div{padding:16px}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td{padding:12px 9px}
 body.n-next table.table.n-moderation-table .n-record-avatar{display:none}
 body.n-next .n-wallet-page .purse>.row{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child){grid-template-columns:70px minmax(0,1fr)}
 body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child) .n-news-body{padding:12px}
}
@media(max-width:991px){
 body.n-next .n-page-heading h1{font-size:27px}
 body.n-next table.table.n-moderation-table .n-record-avatar{display:grid}
 body.n-next .n-forum-row{grid-template-columns:minmax(0,1.8fr) minmax(165px,.85fr)}
 body.n-next .n-wallet-page .purse>.row{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.n-next .n-store-page #store_service_info{min-height:170px}
 body.n-next .n-moderation-board{padding:20px}
}

/* Phone: a complete labelled card per record. No suppressed fields or modal
   rows and no page-wide horizontal scrolling. */
@media(max-width:767px){
 body.n-next .n-page-content{font-size:14px}
 body.n-next .n-page-content .with_code{font-size:14px;line-height:1.8}
 body.n-next .n-page-content :is(.form-control,.input-search input,.input-search select){font-size:16px}
 body.n-next .n-page-content .input-search .input-group{flex-wrap:wrap}
 body.n-next .n-page-content .input-search .input-group>input{flex:1 1 100%;width:100%;min-width:0}
 body.n-next .n-page-content .input-search select{flex:1 1 100%;max-width:100%;min-width:0}
 body.n-next .n-page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:18px}
 body.n-next .n-page-heading h1{font-size:25px}
 body.n-next .n-page-heading p{font-size:12px}
 body.n-next .n-view-switch{width:100%}
 body.n-next .n-view-switch>a{flex:1}
 body.n-next .n-moderation-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
 body.n-next .n-moderation-summary>div{min-height:90px;padding:15px;border-radius:13px}
 body.n-next .n-moderation-summary strong{font-size:27px}
 body.n-next .n-moderation-board{padding:15px}
 body.n-next .n-record-search>.btn{min-width:68px;padding:10px 13px}
 body.n-next .n-page-content .n-record-scroll{overflow:visible;border-radius:0}
 body.n-next .n-page-content .table-responsive>table.table.n-record-table{display:block;min-width:0;border-spacing:0;margin:0}
 body.n-next .modal .table-responsive:has(>table.n-server-player-table){overflow:visible;border-radius:0}
 body.n-next .modal .table-responsive>table.table.n-server-player-table{display:block;min-width:0;border-spacing:0;margin:0}
 body.n-next table.table.n-record-table>thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 body.n-next table.table.n-record-table>tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px;width:100%;min-width:0;padding:16px;border:1px solid var(--n-line);border-radius:13px;background:var(--n-surface-2)}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td{display:block;width:auto;min-width:0;margin:0;padding:0;border:0!important;border-radius:0!important;background:transparent!important;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td:first-child{grid-column:1/-1}
 body.n-next table.table.n-server-player-table>tbody>tr.n-server-player-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body.n-next table.table.n-server-player-table>tbody>tr.n-server-player-row>td:first-child{grid-column:1}
 body.n-next table.table.n-server-player-table>tbody>tr.n-server-player-row>td.n-server-player-name{grid-column:2;min-width:0;font-size:14px}
 body.n-next table.table.n-server-player-table>tbody>tr.n-server-player-row>td.n-server-player-controls{grid-column:1/-1}
 body.n-next .modal table.n-server-player-table .n-server-player-controls .input-group{flex-wrap:wrap}
 body.n-next .modal table.n-server-player-table .n-server-player-controls .input-group>.form-control{flex:1 1 110px;font-size:16px}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td::before{content:attr(data-label);display:block;margin:0 0 4px;font-size:12px;line-height:1.5;letter-spacing:.055em;text-transform:uppercase;color:var(--n-muted);font-weight:650}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td:not([data-label])::before{content:none}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td:first-child .n-record-open{width:100%;justify-content:center}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row{border-left-width:3px}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.danger{border-left-color:var(--n-danger)}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.warning{border-left-color:var(--n-warning)}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row.success{border-left-color:var(--n-success)}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td:nth-child(2){grid-column:1/-1}
 body.n-next table.table.n-moderation-table>tbody>tr.n-record-row>td:first-child::before{content:none}
 body.n-next .n-record-who>span:last-child{font-size:15px}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row>td>a>img{width:26px;height:26px}
 body.n-next table.table.n-record-table>tbody>tr:not(.n-record-row):not(.hidden-tr){display:block;min-width:0}
 body.n-next table.table.n-record-table>tbody>tr>td[colspan]{display:block;width:100%;padding:18px 0}
 body.n-next .n-page-content .comment{gap:9px}
 body.n-next .n-page-content .comment>a{flex-basis:30px;width:30px}
 body.n-next .n-page-content .comment>a>img{width:30px;height:30px;border-radius:9px}
 body.n-next .n-page-content .comment>div{padding:13px 14px}
 body.n-next .n-page-content .comment .date{margin-left:0;flex:1 1 100%}
 body.n-next .n-forum-row{grid-template-columns:minmax(0,1fr);gap:13px;padding:16px}
 body.n-next .n-forum-main{gap:12px}
 body.n-next .n-forum-main>img{flex-basis:40px;width:40px;height:40px;border-radius:12px}
 body.n-next .n-forum-main h3{font-size:15px}
 body.n-next .n-forum-main p{font-size:12px}
 body.n-next .n-forum-latest{padding:11px 0 0 52px;border-left:0;border-top:1px solid var(--n-line)}
 body.n-next .n-forum-latest p{font-size:12px}
 body.n-next .n-forum-latest p:first-child a{font-size:12px}
 body.n-next .n-forum-category{font-size:12px}
 body.n-next .n-topic-post .top-area{padding:12px 15px;align-items:flex-start;font-size:13px}
 body.n-next .n-topic-post .top-area .right-side{font-size:12px;gap:8px}
 body.n-next .n-topic-post .center-area{grid-template-columns:minmax(0,1fr)}
 body.n-next .n-topic-post .center-area .left-side{display:flex;flex-wrap:wrap;align-items:center;gap:6px 13px;padding:13px 15px;text-align:left}
 body.n-next .n-topic-post .center-area .left-side img{width:40px;height:40px;flex:0 0 40px;margin:0;border-radius:12px}
 body.n-next .n-topic-post .center-area .left-side p{margin:0;font-size:12px}
 body.n-next .n-topic-post .center-area .right-side{padding:17px}
 body.n-next .n-topic-post .bottom-area{padding:12px 14px}
 body.n-next .n-topic-post .bottom-area .right-side{flex:1 1 100%;text-align:left;font-size:12px}
 body.n-next .news>.n-news-card:first-child{grid-template-columns:minmax(0,1fr)}
 body.n-next .news>.n-news-card:first-child .n-news-cover{min-height:0;height:auto}
 body.n-next .news>.n-news-card:first-child .n-news-cover img{height:auto;aspect-ratio:16/9}
 body.n-next .news>.n-news-card:first-child .n-news-body{padding:19px}
 body.n-next .news>.n-news-card:first-child .n-news-title h3{font-size:22px}
 body.n-next .n-news-card{grid-template-columns:110px minmax(0,1fr)}
 body.n-next .n-news-body{padding:14px 15px}
 body.n-next .n-news-title h3{font-size:15px}
 body.n-next .n-news-summary{font-size:12px}
 body.n-next #new_news:has(>.n-news-card:nth-child(4)){grid-template-columns:minmax(0,1fr);gap:12px}
 body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child{grid-column:auto;grid-row:auto}
 body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:first-child .n-news-cover img{aspect-ratio:16/9}
 body.n-next #new_news:has(>.n-news-card:nth-child(4))>.n-news-card:not(:first-child){grid-template-columns:100px minmax(0,1fr)}
 body.n-next .n-members-page :is(.friend,.user){padding:15px;gap:12px}
 body.n-next .n-members-page :is(.friend,.user)>a{flex-basis:42px;width:42px}
 body.n-next .n-members-page :is(.friend,.user)>a>img{width:42px;height:42px;border-radius:12px}
 body.n-next .n-members-page :is(.friend,.user)>div>a:first-child{font-size:15px}
 body.n-next #place_for_messages .dialog>div:first-child{padding:14px;gap:12px;align-items:flex-start}
 body.n-next #place_for_messages .dialog>div:first-child>img{width:40px;height:40px;flex-basis:40px;border-radius:12px}
 body.n-next #place_for_messages #messages{padding:12px}
 body.n-next #place_for_messages .im_message{gap:8px}
 body.n-next #place_for_messages .im_message>img{width:28px;height:28px;flex-basis:28px;border-radius:9px}
 body.n-next #place_for_messages .im_message>div{padding:12px}
 body.n-next #place_for_messages .im_message .date{margin-left:0}
 body.n-next #place_for_messages #personal_message_input{font-size:16px}
 body.n-next #events .event{padding:14px;grid-template-columns:32px minmax(0,1fr);gap:5px 10px}
 body.n-next #events .n-event-icon{width:32px;height:32px;font-size:12px}
 body.n-next #events .n-event-action{grid-column:2;grid-row:4;justify-self:start;margin-top:5px;min-height:32px}
 body.n-next.n-page-home #events{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:575px){
 body.n-next .n-page-content .input-group>.form-control{min-width:0;flex:1 1 140px}
 body.n-next .n-page-content .input-group input[type=file]{width:100%;flex-basis:100%}
 body.n-next .n-page-content .editing-date{grid-template-columns:minmax(68px,.72fr) minmax(124px,1.4fr) minmax(92px,1fr)}
 body.n-next .n-page-content .editing-date>select.form-control{min-width:0;font-size:16px;padding-left:12px;padding-right:32px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--n-muted) 50%),linear-gradient(135deg,var(--n-muted) 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}
 body.n-next .n-form-page .row:has(>div>input[type=file])>div[class*=col-]{flex:0 0 100%;max-width:100%;width:100%}
 body.n-next .n-form-page :is(img#pic,img#image,img#avatar,img#img){max-width:110px}
 body.n-next .n-wallet-page .purse{padding:14px}
 body.n-next .n-wallet-page .purse>.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.n-next .n-wallet-page .purse>.row>.col-lg-3:first-child{grid-column:1/-1}
 body.n-next .n-wallet-page .purse>.row>.col-lg-3>div{min-height:122px;padding:17px}
 body.n-next .n-wallet-page .purse>.row>.col-lg-3:first-child>div{min-height:112px}
 body.n-next .n-wallet-page .purse>.row>.col-lg-3>div>i{font-size:20px}
 body.n-next .n-wallet-page .purse #my_balance{font-size:30px}
 body.n-next .n-news-card{grid-template-columns:88px minmax(0,1fr)}
 body.n-next .n-news-cover{min-height:110px}
 body.n-next .n-news-title h3{font-size:14px}
 body.n-next .n-news-summary{-webkit-line-clamp:2;font-size:12px}
 body.n-next .n-news-meta{font-size:12px;gap:4px 10px}
 body.n-next .admin-settings>tbody>tr>td:first-child{display:none}
 body.n-next .admin-settings>tbody>tr>td:last-child{display:block;width:100%;padding:14px 12px}
 body.n-next .admin-settings small{display:block;margin-top:6px;color:var(--n-muted);font-size:12px}
 body.n-next .n-page-content .noty-block{padding:16px}
}
@media(max-width:374px){
 body.n-next .n-page-content .editing-date{grid-template-columns:minmax(74px,.75fr) minmax(140px,1.5fr)}
 body.n-next .n-page-content .editing-date>#birth_day{grid-column:1;grid-row:1}
 body.n-next .n-page-content .editing-date>#birth_month{grid-column:2;grid-row:1}
 body.n-next .n-page-content .editing-date>#birth_year{grid-column:1/-1;grid-row:2}
 body.n-next .n-page-content .editing-date>.input-group-prepend{grid-column:1/-1;grid-row:3}
 body.n-next table.table.n-record-table>tbody>tr.n-record-row{padding:13px;gap:10px}
 body.n-next .n-forum-latest{padding-left:0}
}
@media(prefers-reduced-motion:reduce){body.n-next .n-news-cover img{transition:none}body.n-next .n-news-cover:hover img{transform:none}}
