
    .nv-mv{ display:inline-block; vertical-align:middle; margin-right:4px; }
    /* шестерёнка в шапке */
    .nb-gear{ display:inline-flex !important; align-items:center; justify-content:center;
        box-sizing:border-box; width:40px !important; min-width:40px !important; max-width:40px !important;
        height:40px !important; padding:0 !important; overflow:visible !important;
        border-color:rgba(255,198,58,.6) !important; color:#ffc63a !important;
        background:rgba(255,198,58,.1) !important; }
    .nb-gear i{ color:#ffc63a !important; margin:0 !important;
        animation:ico-spin 4s linear infinite; }
    .nb-gear:hover{ background:rgba(255,198,58,.25) !important;
        box-shadow:0 0 16px -4px #ffc63a !important; }
    .nb-gear:hover i{ animation:ico-spin 1s linear infinite; }

    /* окно конструктора */
    .nb-back{ display:none; position:fixed; inset:0; z-index:9600;
        background:rgba(4,7,12,.86); }
    .nb-back.on{ display:block; }
    .nb-win{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
        width:760px; max-width:calc(100vw - 24px); max-height:calc(100vh - 60px);
        overflow-y:auto; box-sizing:border-box; padding:26px 24px 18px;
        background:var(--jmi-bg-surface-2); border:1px solid rgba(255,198,58,.5); border-radius:18px;
        box-shadow:0 0 50px -14px #ffc63a; }
    .nb-x{ position:absolute; right:14px; top:12px; width:32px; height:32px;
        border-radius:9px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
        color:var(--jmi-text-muted); font-size:20px; line-height:1; cursor:pointer; }
    .nb-x:hover{ color:#fff; background:rgba(255,79,106,.2); border-color:rgba(255,79,106,.5); }
    .nb-cap{ font-size:15px; font-weight:900; letter-spacing:1.5px; color:#ffc63a;
        text-align:center; margin-bottom:6px; }
    .nb-cap i{ margin-right:8px; }
    .nb-sub{ font-size:12.5px; color:var(--jmi-text-muted); text-align:center; margin-bottom:20px;
        line-height:1.5; }
    .nb-add-form{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) auto;
        gap:8px; margin:-4px 0 18px; padding:10px; border:1px solid color-mix(in srgb,var(--jmi-accent) 2%,transparent);
        border-radius:12px; background:color-mix(in srgb,var(--jmi-accent) 35%,transparent); }
    .nb-add-form input{ min-width:0; box-sizing:border-box; height:38px; padding:0 11px; border-radius:9px;
        border:1px solid rgba(255,255,255,.12); background:#090e15; color:var(--jmi-text); font:inherit; }
    .nb-add-form input:focus{ outline:0; border-color:var(--jmi-accent); box-shadow:0 0 12px -6px #00eaff; }
    .nb-add-form button{ height:38px; padding:0 14px; border-radius:9px; border:1px solid #00eaff;
        background:color-mix(in srgb,var(--jmi-accent) 12%,transparent); color:var(--jmi-accent); font-weight:800; cursor:pointer; transition:.18s ease; }
    .nb-add-form button:hover{ transform:translateY(-1px); background:color-mix(in srgb,var(--jmi-accent) 22%,transparent); box-shadow:0 0 14px -6px #00eaff; }

    .nb-zone-box{ margin-bottom:14px; background:var(--jmi-bg-surface); border-radius:13px;
        border:1px solid rgba(255,255,255,.07); padding:12px 14px; }
    .nb-zone-head{ display:flex; align-items:center; gap:9px; min-width:0; }
    .nb-zone-cap{ display:flex; width:100%; align-items:center; box-sizing:border-box; padding:0;
        border:0; background:transparent; cursor:pointer; text-align:left; font:inherit;
        font-size:12px; font-weight:800; letter-spacing:.8px; color:var(--jmi-text);
        text-transform:uppercase; margin-bottom:10px; }
    .nb-zone-cap i{ color:#ffc63a; margin-right:8px; }
    .nb-cnt{ display:inline-block; margin-left:6px; padding:1px 8px; border-radius:20px;
        background:rgba(255,198,58,.15); color:#ffc63a; font-size:11px; }
    .nb-fold{ margin-left:auto !important; margin-right:1px !important; color:#71838d !important;
        transition:transform .2s ease,color .2s ease; }
    .nb-zone-cap:hover .nb-fold{ color:var(--jmi-accent) !important; }
    .nb-zone-box.nb-collapsed > .nb-drop,.nb-zone-box.nb-collapsed > .nb-admin-list,
    .nb-zone-box.nb-collapsed > .nb-section-body{ display:none; }
    .nb-zone-box.nb-collapsed > .nb-zone-head .nb-zone-cap{ margin-bottom:0; }
    .nb-zone-box.nb-collapsed > .nb-zone-head .nb-zone-cap .nb-fold{ transform:rotate(180deg); }
    .nb-zone-head > .st-w{ flex:0 0 28px; margin:0; }
    .nb-zone-head .st-pen{ opacity:.78; }
    .nb-zone-trash{ display:flex; align-items:center; justify-content:center; flex:0 0 30px;
        width:30px; height:30px; padding:0; border-radius:8px; cursor:pointer;
        border:1px solid rgba(255,79,106,.42); background:rgba(255,79,106,.09); color:#ff7890; }
    .nb-zone-trash:hover{ border-color:var(--jmi-danger); background:rgba(255,79,106,.22); box-shadow:0 0 12px -5px #ff4f6a; }
    .nb-section-body{ padding-top:2px; }
    .nb-empty{ font-size:12px; color:#5c6b76; font-style:italic; padding:6px 2px; }

    .nb-drop{ display:flex; flex-direction:column; gap:6px; min-height:42px; border-radius:10px;
        transition:background .15s ease,box-shadow .15s ease; }
    .nb-drop.nb-over{ background:color-mix(in srgb,var(--jmi-accent) 7%,transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--jmi-accent) 45%,transparent); }
    .nb-bar{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nb-bar .nb-empty{ grid-column:1/-1; }
    .nb-item{ display:flex; align-items:center; gap:10px; padding:9px 11px;
        background:#0b0f16; border:1px solid rgba(255,255,255,.07); border-radius:10px;
        cursor:grab; user-select:none; touch-action:none; transition:transform .12s ease,border-color .12s ease,opacity .12s ease; }
    .nb-item:hover{ border-color:color-mix(in srgb,var(--jmi-accent) 38%,transparent); transform:translateY(-1px); }
    .nb-item.nb-dragging{ opacity:.35; cursor:grabbing; }
    .nb-item.nb-flip{ pointer-events:none; }
    .nb-item.nb-group{ border-color:rgba(255,198,58,.28); background:rgba(255,198,58,.055); }
    .nb-grip{ display:flex; align-items:center; justify-content:center; color:#60727d; width:18px; height:18px; line-height:18px; text-align:center; flex:0 0 18px; overflow:hidden; }
    .nb-grip i{ margin:0 !important; width:14px; line-height:18px; text-align:center; }
    .nb-item:hover .nb-grip{ color:#ffc63a; }
    .nb-i-ico{ display:flex !important; align-items:center; justify-content:center; color:var(--jmi-accent); width:18px; height:18px; line-height:18px !important; text-align:center; flex:0 0 18px; font-size:14px; overflow:hidden; }
    .nb-i-name{ flex:1; font-size:13px; font-weight:700; color:var(--jmi-text-2);
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .nb-type{ flex-shrink:0; padding:2px 7px; border-radius:20px; color:#72858f;
        background:rgba(255,255,255,.045); font-size:9px; text-transform:uppercase; letter-spacing:.55px; }
    .nb-edit{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0;
        flex:0 0 28px; border-radius:8px; border:1px solid color-mix(in srgb,var(--jmi-accent) 25%,transparent); color:var(--jmi-accent);
        background:color-mix(in srgb,var(--jmi-accent) 7%,transparent); cursor:pointer; }
    .nb-edit:hover{ border-color:var(--jmi-accent); background:color-mix(in srgb,var(--jmi-accent) 18%,transparent); box-shadow:0 0 12px -5px #00eaff; }
    .nb-edit i,.nb-remove i{ display:block; width:14px; margin:0 !important; line-height:14px; text-align:center; }
    .nb-remove{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0;
        flex:0 0 28px; border-radius:8px; border:1px solid rgba(255,79,106,.35); color:#ff7890;
        background:rgba(255,79,106,.08); cursor:pointer; }
    .nb-remove:hover{ border-color:var(--jmi-danger); background:rgba(255,79,106,.2); }
    .nb-admin-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
    .nb-admin-item{ display:flex; align-items:center; gap:9px; min-width:0; padding:9px 11px;
        border:1px solid rgba(255,255,255,.07); border-radius:9px; background:#0b0f16;
        color:var(--jmi-text-2); text-decoration:none; font-size:12px; font-weight:700; transition:.16s ease; }
    .nb-admin-item span{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .nb-admin-item > .fa-external-link{ color:#61737d; font-size:10px; }
    .nb-admin-item:hover{ color:#eaffff; border-color:color-mix(in srgb,var(--jmi-accent) 42%,transparent); transform:translateY(-1px); }
    .nb-drop .nb-empty{ display:none; }
    .nb-drop:not(.nb-has-items) .nb-empty{ display:block; }

    .nb-editor{ position:sticky; bottom:8px; z-index:3; margin:14px 0; padding:15px;
        display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px;
        border:1px solid color-mix(in srgb,var(--jmi-accent) 45%,transparent); border-radius:13px; background:#101a26;
        box-shadow:0 0 28px -12px #00eaff; }
    .nb-editor[hidden]{ display:none; }
    .nb-editor-cap{ grid-column:1/-1; color:var(--jmi-accent); font-weight:900; font-size:13px; }
    .nb-editor label{ display:flex; flex-direction:column; gap:5px; color:#8fa4ad; font-size:11px; }
    .nb-editor input,.nb-editor select{ box-sizing:border-box; width:100%; padding:9px 10px;
        border-radius:8px; border:1px solid rgba(255,255,255,.13); background:#090e15;
        color:var(--jmi-text); font:inherit; }
    .nb-editor input:focus,.nb-editor select:focus{ outline:none; border-color:var(--jmi-accent); }
    .nb-icon-field{ grid-column:1/-1; display:flex; flex-direction:column; gap:6px; color:#8fa4ad; font-size:11px; }
    .nb-icon-grid{ display:grid; grid-template-columns:repeat(10,1fr); gap:6px; max-height:142px;
        overflow:auto; padding:7px; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:#090e15; }
    .nb-icon-grid button{ display:flex; align-items:center; justify-content:center; min-width:0; height:34px;
        border-radius:8px; border:1px solid rgba(255,255,255,.09); background:#111925; color:#9aabb3; cursor:pointer; }
    .nb-icon-grid button:hover{ color:var(--jmi-accent); border-color:color-mix(in srgb,var(--jmi-accent) 45%,transparent); transform:translateY(-1px); }
    .nb-icon-grid button.on{ color:#071018; border-color:var(--jmi-accent); background:var(--jmi-accent); box-shadow:0 0 13px -4px #00eaff; }
    .nb-editor-actions{ grid-column:1/-1; display:flex; justify-content:flex-end; gap:8px; }
    .nb-editor-actions button{ padding:8px 15px; border-radius:8px; border:1px solid #00eaff;
        background:color-mix(in srgb,var(--jmi-accent) 13%,transparent); color:var(--jmi-accent); font-weight:800; cursor:pointer; }
    .nb-editor-actions button.ghost{ border-color:rgba(255,255,255,.15); color:#9aabb3; background:transparent; }

    /* переключатели вида меню профиля */
    .nb-pmode-row{ display:flex; align-items:center; gap:10px; padding:8px 2px;
        flex-wrap:wrap; }
    .nb-pmode-name{ display:flex; align-items:center; gap:8px; flex:1; font-size:12.5px;
        font-weight:700; color:var(--jmi-text-2); min-width:160px; }
    .nb-pmode-name > .st-w{ flex:0 0 28px; margin-left:4px; }
    .nb-pmode-name i{ color:var(--jmi-accent); margin-right:7px; width:14px; }
    .nb-switch{ display:grid; grid-template-columns:minmax(72px,1fr) 48px minmax(72px,1fr);
        align-items:center; gap:9px; min-width:260px; padding:7px 10px; border-radius:11px;
        border:1px solid rgba(255,255,255,.11); background:#0b0f16; color:#71858f;
        font:inherit; font-size:11.5px; font-weight:800; cursor:pointer; transition:.18s ease; }
    .nb-switch > span{ display:flex; align-items:center; justify-content:center; gap:6px;
        white-space:nowrap; transition:color .18s ease,transform .18s ease; }
    .nb-switch > span:first-child{ color:var(--jmi-accent); }
    .nb-switch.on > span:first-child{ color:#71858f; }
    .nb-switch.on > span:last-child{ color:var(--jmi-accent); }
    .nb-switch > b{ position:relative; display:block; width:46px; height:24px; border-radius:20px;
        background:color-mix(in srgb,var(--jmi-accent) 13%,transparent); border:1px solid color-mix(in srgb,var(--jmi-accent) 42%,transparent);
        box-shadow:inset 0 0 8px rgba(0,0,0,.45); transition:.2s ease; }
    .nb-switch > b > i{ position:absolute; left:3px; top:3px; width:16px; height:16px;
        border-radius:50%; background:var(--jmi-accent); box-shadow:0 0 10px #00eaff;
        transition:transform .22s cubic-bezier(.2,.85,.25,1.25); }
    .nb-switch.on > b > i{ transform:translateX(21px); }
    .nb-switch:hover{ color:var(--jmi-text); border-color:color-mix(in srgb,var(--jmi-accent) 48%,transparent); transform:translateY(-1px);
        box-shadow:0 0 16px -8px #00eaff; }
    .nb-switch.busy{ opacity:.6; cursor:wait; pointer-events:none; }
    .nb-switch.fail{ border-color:var(--jmi-danger); animation:nb-shake .28s linear; }
    @keyframes nb-shake{ 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }
    .nb-pmode-btns{ display:flex; gap:5px; }
    .nb-pmode-b{ display:inline-flex; align-items:center; gap:6px; padding:7px 13px;
        border-radius:9px; text-decoration:none; font-size:12px; font-weight:700;
        background:#0b0f16; border:1px solid rgba(255,255,255,.1); color:var(--jmi-text-muted);
        transition:all .14s ease; }
    .nb-pmode-b i{ font-size:11px; }
    .nb-pmode-b:hover{ border-color:color-mix(in srgb,var(--jmi-accent) 5%,transparent); color:var(--jmi-text); }
    .nb-pmode-b.on{ border-color:var(--jmi-accent); background:color-mix(in srgb,var(--jmi-accent) 14%,transparent);
        color:var(--jmi-accent); box-shadow:0 0 12px -5px #00eaff; }
    .nb-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:18px;
        padding-top:16px; border-top:1px solid rgba(255,255,255,.08); flex-wrap:wrap; }
    .nb-action{ display:inline-flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box;
        min-width:142px; height:42px; padding:0 18px; border-radius:10px; cursor:pointer;
        text-decoration:none; font-weight:800; font-size:12.5px; white-space:nowrap; flex-shrink:0; }
    .nb-reset{ color:var(--jmi-danger); border:1px solid rgba(255,79,106,.55); background:rgba(255,79,106,.10); }
    .nb-reset:hover{ color:#fff; border-color:var(--jmi-danger); background:rgba(255,79,106,.24); }
    .nb-done{ margin-left:0; background:rgba(255,198,58,.16); border:1px solid rgba(255,198,58,.6); color:#ffc63a; }
    .nb-done:hover{ background:rgba(255,198,58,.3); }
    .nb-done:disabled{ opacity:.55; cursor:wait; }
    .nb-save-state{ flex:1; min-width:90px; text-align:center; font-size:12px; color:#70ffd0; }
    @media(max-width:480px){
        .nb-foot{ flex-direction:column-reverse; align-items:stretch; }
        .nb-action{ width:100%; }
        .nb-save-state{ width:100%; }
    }

    @media (max-width:600px){
        .nb-win{ padding:20px 14px 14px; }
        .nb-bar{ grid-template-columns:1fr; }
        .nb-type{ display:none; }
        .nb-editor{ grid-template-columns:1fr; }
        .nb-icon-grid{ grid-template-columns:repeat(6,1fr); }
        .nb-admin-list{ grid-template-columns:1fr; }
        .nb-pmode-row{ align-items:stretch; }
        .nb-switch{ width:100%; min-width:0; }
        .nb-add-form{ grid-template-columns:1fr; }
    }
    
    /* текстом только на ПК */
    @media (min-width:761px){
        .sa-menu.mode-text-pc{ display:flex !important; flex-direction:column !important; gap:0 !important;
            align-items:stretch !important; justify-content:flex-start !important;
            width:auto !important; min-width:230px !important; max-width:calc(100vw - 24px) !important; padding:8px !important; }
        .sa-menu.mode-text-pc a{ display:block !important; width:auto !important; height:auto !important;
            text-align:left !important; margin:3px 0 !important; padding:10px 14px !important;
            border-radius:10px !important; box-sizing:border-box !important;
            background:var(--jmi-bg-surface) !important; border:1px solid rgba(255,255,255,.08) !important; color:var(--jmi-text-2) !important; }
        .sa-menu.mode-text-pc a:hover{ border-color:color-mix(in srgb,var(--jmi-accent) 5%,transparent) !important; color:var(--jmi-text) !important; background:#16222f !important; }
        .sa-menu.mode-text-pc a.active{ border-color:var(--jmi-accent) !important; color:var(--jmi-text) !important;
            background:linear-gradient(135deg,#16222f,#0e1a28) !important; box-shadow:0 0 14px -4px color-mix(in srgb,var(--jmi-accent) 35%,transparent) !important; }
        .sa-menu.mode-text-pc a i{ display:inline-block !important; width:16px !important; text-align:center !important;
            font-size:14px !important; margin-right:8px !important; color:var(--jmi-accent) !important; }
        .sa-menu.mode-text-pc a.active i{ color:var(--jmi-text) !important; }
        .sa-menu.mode-text-pc a em{ display:inline !important; position:static !important; opacity:1 !important; visibility:visible !important;
            transform:none !important; background:none !important; border:none !important; padding:0 !important; margin:0 !important; color:inherit !important;
            font-size:13.5px !important; font-weight:700 !important; white-space:nowrap !important; text-align:left !important; line-height:1.3 !important; }
    }
    /* текстом только на телефоне */
    @media (max-width:760px){
        .sa-menu.mode-text-mobile{ display:flex !important; flex-direction:column !important; gap:0 !important;
            align-items:stretch !important; justify-content:flex-start !important;
            grid-template-columns:none !important; width:min(250px,calc(100vw - 20px)) !important; padding:8px !important; }
        .sa-menu.mode-text-mobile a{ display:block !important; width:auto !important; text-align:left !important;
            margin:3px 0 !important; padding:11px 14px !important; border-radius:10px !important; box-sizing:border-box !important;
            background:var(--jmi-bg-surface) !important; border:1px solid rgba(255,255,255,.08) !important; color:var(--jmi-text-2) !important; }
        .sa-menu.mode-text-mobile a:active{ border-color:color-mix(in srgb,var(--jmi-accent) 6%,transparent) !important; background:#16222f !important; }
        .sa-menu.mode-text-mobile a.active{ border-color:var(--jmi-accent) !important; color:var(--jmi-text) !important;
            background:linear-gradient(135deg,#16222f,#0e1a28) !important; }
        .sa-menu.mode-text-mobile a i{ display:inline-block !important; width:18px !important; text-align:center !important;
            font-size:15px !important; margin-right:8px !important; color:var(--jmi-accent) !important; }
        .sa-menu.mode-text-mobile a.active i{ color:var(--jmi-text) !important; }
        .sa-menu.mode-text-mobile a em{ display:inline !important; font-size:13.5px !important; text-align:left !important;
            color:inherit !important; white-space:nowrap !important; opacity:1 !important; visibility:visible !important;
            position:static !important; transform:none !important; background:none !important; border:none !important;
            padding:0 !important; margin:0 !important; max-width:none !important; line-height:1.3 !important; font-weight:700 !important; }
    }
    
    .nv-mv a{ display:inline-block; width:20px; height:20px; line-height:18px; text-align:center;
        margin:0 1px; border-radius:6px; text-decoration:none; font-size:10px;
        background:rgba(255,198,58,.12); border:1px solid rgba(255,198,58,.5); color:#ffc63a; }
    .nv-mv a:hover{ background:rgba(255,198,58,.3); }
    /* кнопка скрыть/показать пункт подменю в режиме коррекции */
    .nv-eye{ display:inline-block; width:18px; height:18px; line-height:16px; text-align:center;
        border-radius:5px; text-decoration:none; font-size:10px; vertical-align:middle;
        background:rgba(255,198,58,.12); border:1px solid rgba(255,198,58,.4); color:#ffc63a;
        margin-right:4px; }
    .nv-eye:hover{ background:rgba(255,198,58,.3); }
    /* скрытый пункт — полупрозрачный с пометкой в режиме коррекции */
    li a.hidden-nav{ opacity:.4; text-decoration:line-through; }
    /* полоса-напоминание, что включён режим коррекции */
    .fixbar{display:flex;align-items:center;justify-content:center;gap:14px;min-height:48px;box-sizing:border-box;text-align:center;padding:7px 16px;font-size:12.5px;font-weight:800;color:#07141a;background:linear-gradient(90deg,#18dbe8,#72efbd);position:relative;z-index:2790}
    .fixbar i{margin-right:6px}.fx-t{display:inline-flex;align-items:center;margin:0;line-height:1.25}.fx-btns{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
    .fx-b{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:112px!important;min-width:112px!important;max-width:112px!important;min-height:32px!important;height:32px!important;box-sizing:border-box;margin:0!important;padding:0 8px!important;border:1px solid rgba(255,255,255,.16);border-radius:9px;text-decoration:none;background:rgba(7,35,39,.28);color:#f3ffff!important;font-size:11.5px!important;line-height:1!important;font-weight:800;white-space:nowrap;box-shadow:none!important;transform:none!important;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
    .fx-b i{margin:0!important;font-size:11px;line-height:1}.fx-b:hover{background:rgba(5,30,35,.48);border-color:rgba(255,255,255,.34);transform:translateY(-1px)!important;box-shadow:0 5px 14px rgba(0,0,0,.14)!important}.fx-b.off{opacity:.38;pointer-events:none}.fx-b.ok{background:rgba(0,105,73,.58)}.fx-b.no{background:rgba(93,31,43,.58)}
    html.theme-light .fixbar{color:#10242a}html.theme-light .fx-b{color:#fff!important}
    /* 5.28.410 — жёстко выравниваем ВСЕ кнопки панели коррекции по одной оси.
       Глобальные правила ссылок/первого элемента больше не могут приподнять «Назад». */
    .fixbar .fx-btns > .fx-b{
        position:relative!important;top:0!important;right:auto!important;bottom:auto!important;left:auto!important;
        align-self:center!important;vertical-align:middle!important;float:none!important;
        margin:0!important;transform:translateY(0)!important;
    }
    .fixbar .fx-btns > .fx-b:hover{transform:translateY(-1px)!important}
    .fx-msg{ text-align:center; padding:7px 16px; font-size:12.5px; font-weight:700;
        color:#7bffc4; background:rgba(0,255,150,.08);
        border-bottom:1px solid rgba(0,255,150,.25); }
    @media (max-width:600px){
        .fx-t{ display:block; margin:0 0 6px; }
        .fx-b{ padding:6px 10px; font-size:11.5px; }
    }
    @media (max-width:600px){
        .fixbar{ font-size:11.5px; padding:7px 10px; }
        .fixbar a{ display:block; margin:7px auto 0; max-width:220px; }
        .nv-mv a{ width:24px; height:24px; line-height:22px; }
    }


    @media (max-width:900px){.fixbar{align-items:flex-start;gap:7px;flex-direction:column;padding:8px 10px}.fx-t{width:100%;justify-content:center}.fx-btns{width:100%}.fx-b{width:112px!important;min-width:112px!important;max-width:112px!important;height:31px!important;min-height:31px!important;padding:0 7px!important}}
    /* 5.28.113 — единый персональный колокольчик рядом с переключателем темы */
    .nav-notify{position:relative!important;z-index:1200}
    .jmi-notify{position:relative}
    /* 5.28.114 — невидимый hover-мост между колокольчиком и выпадающим окном.
       Абсолютное меню находится на 11px ниже кнопки; без моста курсор на миг
       покидал .jmi-notify и меню закрывалось раньше, чем до него доходила мышь. */
    .jmi-notify:after{display:none!important;content:none!important}
    .jmi-notify-btn{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:42px!important;height:40px!important;min-width:42px!important;max-width:42px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.10)!important;background:#141a24!important;color:#a9bac3!important;cursor:pointer;transition:transform .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease!important}
    .jmi-notify-btn:hover,.jmi-notify.open .jmi-notify-btn{transform:translateY(-2px);color:#69f7ff!important;border-color:rgba(0,234,255,.55)!important;box-shadow:0 0 18px rgba(0,234,255,.22)!important}
    .jmi-notify-btn>i{font-size:17px}
    .jmi-notify-count{position:absolute;right:-5px;top:-6px;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#ff405d;color:#fff!important;border:2px solid #0f141d;font:900 10px/1 Arial,sans-serif;box-shadow:0 3px 10px rgba(255,64,93,.42)}
    .jmi-notify-count[hidden]{display:none!important}
    .jmi-notify-pop{position:absolute;right:0;top:calc(100% + 11px);width:min(410px,calc(100vw - 24px));background:linear-gradient(180deg,rgba(17,24,35,.985),rgba(11,16,25,.99));border:1px solid rgba(0,234,255,.24);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.56),0 0 30px rgba(0,234,255,.08);overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-7px) scale(.985);transform-origin:top right;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:5000;color:#dce9ee;text-align:left}
    .jmi-notify.open .jmi-notify-pop{opacity:1;visibility:visible;pointer-events:auto;transform:none}
    .jmi-notify-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 11px;border-bottom:1px solid rgba(255,255,255,.07)}
    .jmi-notify-head b{display:block;color:#f0fbff;font-size:14px}.jmi-notify-head b i{margin-right:7px;color:#60eff7}.jmi-notify-head span{display:block;margin-top:3px;color:#78909b;font-size:11px;font-weight:700}
    .jmi-notify-settings-btn{width:34px!important;height:34px!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.10)!important;color:#9fb2bc!important;cursor:pointer}.jmi-notify-settings-btn:hover{color:#5ff0f7!important;border-color:rgba(0,234,255,.38)!important}
    .jmi-notify-actions{display:flex;gap:7px;padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.055)}
    .jmi-notify-actions button{flex:1;padding:8px 9px!important;border-radius:9px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.08)!important;color:#a9bac3!important;font-size:11px!important;font-weight:800!important;cursor:pointer}.jmi-notify-actions button:hover{background:rgba(0,234,255,.08)!important;color:#eaffff!important;border-color:rgba(0,234,255,.24)!important}
    .jmi-notify-list{max-height:430px;overflow-y:auto;overflow-x:hidden;padding:8px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(0,234,255,.35) transparent;border-radius:0 0 17px 17px;contain:paint}
    .jmi-notify-list::-webkit-scrollbar{width:6px;height:6px}.jmi-notify-list::-webkit-scrollbar-track{background:transparent}.jmi-notify-list::-webkit-scrollbar-thumb{background:rgba(0,234,255,.38);border-radius:999px}.jmi-notify-list::-webkit-scrollbar-button,.jmi-notify-list::-webkit-scrollbar-button:single-button,.jmi-notify-list::-webkit-scrollbar-button:start,.jmi-notify-list::-webkit-scrollbar-button:end,.jmi-notify-list::-webkit-scrollbar-button:vertical:decrement,.jmi-notify-list::-webkit-scrollbar-button:vertical:increment,.jmi-notify-list::-webkit-scrollbar-button:vertical:start:decrement,.jmi-notify-list::-webkit-scrollbar-button:vertical:end:increment{display:none!important;visibility:hidden!important;opacity:0!important;content:""!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important}
    .jmi-notify-item{position:relative;display:grid;grid-template-columns:38px 1fr auto;gap:10px;padding:11px 9px;border-radius:12px;border:1px solid transparent;transition:background .15s ease,border-color .15s ease,transform .15s ease;cursor:pointer}.jmi-notify-item:hover{background:rgba(255,255,255,.045);border-color:rgba(0,234,255,.12);transform:translateX(-1px)}
    .jmi-notify-item.unread{background:linear-gradient(90deg,rgba(0,234,255,.075),rgba(0,234,255,.015));border-color:rgba(0,234,255,.13)}
    .jmi-notify-ico{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(0,234,255,.08);border:1px solid rgba(0,234,255,.17);color:#68eff7}.jmi-notify-item.warning .jmi-notify-ico{background:rgba(255,190,50,.10);border-color:rgba(255,190,50,.25);color:#ffc34b}.jmi-notify-item.danger .jmi-notify-ico{background:rgba(255,70,96,.10);border-color:rgba(255,70,96,.24);color:#ff667d}.jmi-notify-item.success .jmi-notify-ico{background:rgba(67,230,149,.10);border-color:rgba(67,230,149,.24);color:#58e9a0}
    .jmi-notify-copy{min-width:0}.jmi-notify-title{color:#e9f5f8;font-size:12.5px;font-weight:900;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jmi-notify-msg{margin-top:4px;color:#9badb5;font-size:11.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.jmi-notify-meta{margin-top:6px;display:flex;align-items:center;gap:7px;color:#667d88;font-size:9.8px;font-weight:800}.jmi-notify-cat{color:#7d96a0}.jmi-notify-time{white-space:nowrap}
    .jmi-notify-side{display:flex;flex-direction:column;gap:5px}.jmi-notify-side button{width:25px!important;height:25px!important;padding:0!important;border-radius:8px!important;background:transparent!important;border:1px solid transparent!important;color:#627781!important;cursor:pointer}.jmi-notify-side button:hover{background:rgba(255,255,255,.06)!important;color:#d9f5f7!important;border-color:rgba(255,255,255,.08)!important}
    /* 5.28.114 — индикатор непрочитанного теперь аккуратно сидит на углу иконки,
       а не висит отдельной точкой у левого края карточки. */
    .jmi-notify-dot{position:absolute;left:39px;top:8px;width:7px;height:7px;box-sizing:border-box;border-radius:50%;background:#35e7ef;border:2px solid #111923;box-shadow:0 0 0 2px rgba(53,231,239,.12),0 0 9px rgba(53,231,239,.72);z-index:3}.jmi-notify-item:not(.unread) .jmi-notify-dot{display:none}
    .jmi-notify-empty{min-height:145px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#718791;font-size:12px;font-weight:800}.jmi-notify-empty i{font-size:25px;color:#4d6772}
    .jmi-notify-settings{padding:8px 12px 11px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.12)}.jmi-notify-settings[hidden]{display:none!important}.jmi-notify-pref{display:flex;align-items:center;gap:9px;padding:7px 2px;color:#a9bac3;font-size:11.5px;font-weight:800}.jmi-notify-pref i{width:16px;text-align:center;color:#6bdce4}.jmi-notify-pref span{flex:1}.jmi-notify-switch{position:relative;width:34px;height:19px;border-radius:12px;background:#27343d;border:1px solid #394b55;cursor:pointer;transition:.18s}.jmi-notify-switch:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;left:2px;top:2px;background:#7b8e97;transition:.18s}.jmi-notify-switch.on{background:rgba(29,197,147,.22);border-color:#39b98e}.jmi-notify-switch.on:after{left:17px;background:#5ae5b3;box-shadow:0 0 8px rgba(90,229,179,.5)}
    .jmi-notify-server-box{margin:6px auto 8px;padding:10px;border:1px solid rgba(0,234,255,.13);border-radius:12px;background:rgba(0,234,255,.035)}.jmi-notify-server-box.off{opacity:.55;pointer-events:none}.jmi-notify-server-cap{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10.5px;font-weight:900;color:#d8eef2;margin-bottom:7px}.jmi-notify-monitor-link{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:7px;color:#6bdce4!important;background:rgba(0,234,255,.05);border:1px solid rgba(0,234,255,.11);text-decoration:none!important;font-size:9px;font-weight:900;white-space:nowrap}.jmi-notify-server-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px}.jmi-notify-mode{padding:7px 8px!important;border-radius:9px!important;border:1px solid rgba(255,255,255,.09)!important;background:rgba(255,255,255,.025)!important;color:#8fa4ad!important;font-size:10.5px!important;font-weight:900!important;cursor:pointer}.jmi-notify-mode.on{border-color:rgba(0,234,255,.42)!important;background:rgba(0,234,255,.09)!important;color:#dffcff!important}.jmi-notify-server-pick{display:flex;gap:6px;margin-top:8px}.jmi-notify-server-combo{position:relative;min-width:0;flex:1}.jmi-notify-server-input{width:100%;height:34px;padding:0 34px 0 9px;border-radius:9px;border:1px solid rgba(255,255,255,.11);background:#0d141d;color:#dce9ee;font-size:10.5px;outline:none}.jmi-notify-server-input:focus{border-color:rgba(0,234,255,.38);box-shadow:0 0 0 2px rgba(0,234,255,.06)}.jmi-notify-server-chevron{position:absolute;right:2px;top:2px;width:30px!important;height:30px!important;padding:0!important;border:0!important;background:transparent!important;color:#8ea5af!important;cursor:pointer}.jmi-notify-server-menu{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 5px);display:none;max-height:210px;overflow-y:auto;overflow-x:hidden;padding:5px;border:1px solid rgba(0,234,255,.20);border-radius:10px;background:#0d141d;box-shadow:0 14px 32px rgba(0,0,0,.48);scrollbar-width:thin;scrollbar-color:rgba(0,234,255,.35) transparent}.jmi-notify-server-menu.open{display:block}.jmi-notify-server-menu::-webkit-scrollbar{width:6px}.jmi-notify-server-menu::-webkit-scrollbar-thumb{background:rgba(0,234,255,.34);border-radius:999px}.jmi-notify-server-menu::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important;visibility:hidden!important;opacity:0!important}.jmi-notify-server-option{width:100%!important;display:grid!important;grid-template-columns:8px minmax(0,1fr) 18px!important;align-items:center!important;gap:7px!important;padding:7px 8px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#dce9ee!important;text-align:left!important;cursor:pointer!important}.jmi-notify-server-option:hover{background:rgba(0,234,255,.07)!important}.jmi-notify-server-option.picked{background:rgba(67,230,149,.06)!important}.jmi-notify-server-option span{min-width:0}.jmi-notify-server-option b,.jmi-notify-server-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jmi-notify-server-option b{font-size:10px}.jmi-notify-server-option small{margin-top:2px;color:#718791;font-size:8.8px}.jmi-notify-server-option>i:last-child{color:#6bdce4;text-align:center}.jmi-notify-server-option.picked>i:last-child{color:#55e6a1}.jmi-notify-server-option-empty{padding:10px;color:#718791;font-size:9.5px}.jmi-notify-server-add{width:34px!important;height:34px!important;padding:0!important;border-radius:9px!important;border:1px solid rgba(0,234,255,.28)!important;background:rgba(0,234,255,.08)!important;color:#69f7ff!important;cursor:pointer}.jmi-notify-server-selected{display:flex;flex-direction:column;gap:5px;margin-top:8px}.jmi-notify-server-row{display:grid;grid-template-columns:8px minmax(0,1fr) 24px;align-items:center;gap:7px;padding:6px 7px;border-radius:9px;background:rgba(255,255,255,.03)}.jmi-notify-server-dot{display:block;width:7px;height:7px;border-radius:50%;background:#65747b}.jmi-notify-server-dot.on{background:#43e695;box-shadow:0 0 7px rgba(67,230,149,.55)}.jmi-notify-server-name{min-width:0}.jmi-notify-server-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dce9ee;font-size:10.5px}.jmi-notify-server-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718791;font-size:9px}.jmi-notify-server-rm{width:24px!important;height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:#778b94!important;cursor:pointer}.jmi-notify-server-empty{padding:7px 2px;color:#718791;font-size:10px;line-height:1.35}.jmi-notify-server-help{margin-top:9px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;color:#718791;font-size:9px;line-height:1.35}.jmi-notify-server-help span{min-width:0;max-width:180px}.jmi-notify-server-help a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;max-width:132px;padding:6px 9px;border:1px solid rgba(0,234,255,.13);border-radius:8px;background:rgba(255,255,255,.025);color:#6bdce4!important;text-decoration:none!important;font-size:9.5px;font-weight:900;line-height:1.1;white-space:normal;text-align:center}.jmi-notify-server-help a:hover{border-color:rgba(0,234,255,.30);background:rgba(0,234,255,.06)}
    html.theme-light .jmi-notify-btn{background:linear-gradient(180deg,#fffdf9,#f1eee7)!important;border-color:#d7d0c4!important;color:#51616c!important;box-shadow:0 3px 10px rgba(65,56,43,.08)!important}html.theme-light .jmi-notify-btn:hover,html.theme-light .jmi-notify.open .jmi-notify-btn{color:#916000!important;border-color:#c8952f!important;box-shadow:0 6px 18px rgba(147,101,13,.16)!important}
    html.theme-light .jmi-notify-count{border-color:#fffdf9}
    html.theme-light .jmi-notify-pop{background:linear-gradient(180deg,rgba(255,253,249,.995),rgba(246,242,234,.995));border-color:#d5c8b3;color:#26313b;box-shadow:0 24px 60px rgba(62,48,29,.22)}html.theme-light .jmi-notify-head{border-color:#e3ddd3}html.theme-light .jmi-notify-head b{color:#202b34}html.theme-light .jmi-notify-head b i{color:#a76e00}html.theme-light .jmi-notify-head span{color:#6b7781}html.theme-light .jmi-notify-settings-btn{background:#fffaf0!important;border-color:#ddd2be!important;color:#6c747b!important}
    html.theme-light .jmi-notify-actions{border-color:#e5ded3}html.theme-light .jmi-notify-actions button{background:#fffaf0!important;border-color:#ddd3c2!important;color:#4e5961!important}html.theme-light .jmi-notify-actions button:hover{background:#fff2d8!important;color:#6f4900!important;border-color:#d3a34c!important}
    html.theme-light .jmi-notify-item:hover{background:#f8f2e7;border-color:#d8c7aa}html.theme-light .jmi-notify-item.unread{background:linear-gradient(90deg,#f4ead7,#fffaf0);border-color:#d4bd8d}html.theme-light .jmi-notify-title{color:#202b34}html.theme-light .jmi-notify-msg{color:#4f5e68}html.theme-light .jmi-notify-meta{color:#7a858c}html.theme-light .jmi-notify-cat{color:#78643b}html.theme-light .jmi-notify-ico{background:#eee6d8;border-color:#d3c6b2;color:#6f6658;box-shadow:none!important}html.theme-light .jmi-notify-item.success .jmi-notify-ico{background:#e5efe9;border-color:#b9d0c2;color:#4e8068}html.theme-light .jmi-notify-item.warning .jmi-notify-ico{background:#f3ead7;border-color:#d9c28c;color:#856a2a}html.theme-light .jmi-notify-item.danger .jmi-notify-ico{background:#f3e5e6;border-color:#d9b7bc;color:#8b515b}html.theme-light .jmi-notify-settings{background:#f7f2e9;border-color:#dfd8cc}html.theme-light .jmi-notify-pref{color:#37434c}html.theme-light .jmi-notify-pref i{color:#846a30}html.theme-light .jmi-notify-side button{color:#7b858c!important}
    /* 5.28.202 — Light notification settings: actions match the warm white panel instead of the dark shell. */
    html.theme-light .jmi-notify-server-box{background:linear-gradient(180deg,#fffaf0,#fff7e9)!important;border-color:#e5c57e!important;box-shadow:inset 0 1px rgba(255,255,255,.9)!important}
    html.theme-light .jmi-notify-server-cap{color:#35414a!important}
    html.theme-light .jmi-notify-monitor-link{background:linear-gradient(180deg,#fff8e8,#f4ead5)!important;border-color:#d8b96f!important;color:#8b6209!important;box-shadow:none!important}
    html.theme-light .jmi-notify-monitor-link:hover{background:#fff1cf!important;border-color:#c8952f!important;color:#6f4900!important}
    html.theme-light .jmi-notify-server-help a{background:linear-gradient(180deg,#fff8e8,#f4ead5)!important;border-color:#d8b96f!important;color:#8b6209!important;box-shadow:none!important}
    html.theme-light .jmi-notify-server-help a:hover{background:#fff1cf!important;border-color:#c8952f!important;color:#6f4900!important}
    html.theme-light .jmi-notify-mode{background:#fffdf8!important;border-color:#ddd2be!important;color:#5a6670!important}
    html.theme-light .jmi-notify-mode.on{background:linear-gradient(180deg,#fff4dc,#ffedc6)!important;border-color:#d8a84e!important;color:#754d00!important}
    html.theme-light .jmi-notify-server-input{background:#fffdf9!important;border-color:#ddd2be!important;color:#39464f!important}
    html.theme-light .jmi-notify-server-chevron{color:#85949b!important}
    html.theme-light .jmi-notify-server-row{background:#fffaf1!important;border:1px solid #eadfce!important}
    html.theme-light .jmi-notify-server-name b{color:#34414a!important}html.theme-light .jmi-notify-server-name small,html.theme-light .jmi-notify-server-help{color:#7b858b!important}
    /* 5.28.203 — calmer Light notification accents: no over-saturated cyan/gold icons. */
    html.theme-light .jmi-notify-settings :is(i.fa,.jmi-notify-pref>i,.jmi-notify-server-cap i,.jmi-notify-server-help i,.jmi-notify-monitor-link i){color:#a67816!important;text-shadow:none!important;filter:none!important}
    html.theme-light .jmi-notify-monitor-link,html.theme-light .jmi-notify-server-help a{background:#fffaf0!important;border-color:#d9c79f!important;color:#7b5a18!important}
    html.theme-light .jmi-notify-monitor-link:hover,html.theme-light .jmi-notify-server-help a:hover{background:#fff4dc!important;border-color:#cdb071!important;color:#66470c!important}
    html.theme-light .jmi-notify-mode.on{background:#fff5df!important;border-color:#d9b667!important;color:#6d4d12!important}
    html.theme-light .jmi-notify-server-dot.on{background:#61c99c!important;box-shadow:0 0 5px rgba(56,159,117,.28)!important}
    html.theme-light .jmi-notify-server-menu{background:#fffdf9!important;border-color:#d8c7aa!important;box-shadow:0 12px 28px rgba(83,62,29,.18)!important}
    html.theme-light .jmi-notify-server-option{color:#35414a!important}html.theme-light .jmi-notify-server-option:hover{background:#fff3dc!important}

    @media(max-width:520px){.jmi-notify-server-box{margin-left:auto;margin-right:auto;padding:9px}.jmi-notify-server-cap{align-items:center}.jmi-notify-monitor-link{padding:5px 7px}.jmi-notify-server-help{grid-template-columns:1fr auto;gap:7px}.jmi-notify-server-help span{max-width:150px}.jmi-notify-server-help a{max-width:112px;padding:6px 7px;font-size:9px}}
    /* 5.28.128: hard geometry boundaries for the server notification selector. */
    .jmi-notify-server-box,.jmi-notify-server-box *{box-sizing:border-box}
    .jmi-notify-server-box{width:calc(100% - 8px);max-width:calc(100% - 8px);min-width:0;margin-left:auto!important;margin-right:auto!important}
    .jmi-notify-server-cap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0}
    .jmi-notify-server-cap>span{min-width:0;overflow-wrap:anywhere}
    .jmi-notify-monitor-link{max-width:100%}
    .jmi-notify-server-modes,.jmi-notify-server-pick,.jmi-notify-server-combo,.jmi-notify-server-selected,.jmi-notify-server-help{width:100%;max-width:100%;min-width:0}
    .jmi-notify-server-mode,.jmi-notify-mode{min-width:0;max-width:100%}
    .jmi-notify-server-input{display:block;width:100%!important;max-width:100%!important;min-width:0!important}
    .jmi-notify-server-chevron{max-width:30px}
    .jmi-notify-server-menu{width:100%;max-width:100%;min-width:0}
    .jmi-notify-server-row{width:100%;max-width:100%;min-width:0}
    .jmi-notify-server-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px}
    .jmi-notify-server-help span{flex:1 1 160px;max-width:none;min-width:0}
    /* 5.28.129: действие не раздуваем и не режем троеточием — оно компактное,
       но всегда показывает полную подпись «Добавить новый». */
    .jmi-notify-server-help a{flex:0 0 auto;width:auto;max-width:none;min-width:0;padding:5px 8px;font-size:9px;white-space:nowrap;overflow:visible;text-overflow:clip}
    @media(max-width:520px){.jmi-notify-server-box{width:calc(100% - 4px);max-width:calc(100% - 4px)}.jmi-notify-server-cap{grid-template-columns:minmax(0,1fr) auto;gap:6px}.jmi-notify-monitor-link{max-width:122px}.jmi-notify-server-modes{gap:5px}.jmi-notify-server-help a{flex:0 0 auto;max-width:none;min-width:0;padding:5px 7px;font-size:8.8px;white-space:nowrap}}
    @media(max-width:390px){.jmi-notify-server-cap{grid-template-columns:1fr}.jmi-notify-monitor-link{justify-self:start}.jmi-notify-server-modes{grid-template-columns:1fr}.jmi-notify-server-help{align-items:stretch}.jmi-notify-server-help span{flex-basis:100%}.jmi-notify-server-help a{flex:1 1 100%;width:100%;max-width:100%;min-width:0}}
    html.theme-light .jmi-notify-dot{border-color:#fff8ec;box-shadow:0 0 0 2px rgba(12,177,184,.12),0 0 8px rgba(12,177,184,.40)}html.theme-light .jmi-notify-server-box{background:#fff9ee;border-color:#dec68f}html.theme-light .jmi-notify-server-cap,html.theme-light .jmi-notify-server-name b{color:#26313b}html.theme-light .jmi-notify-mode{background:#fffdf8!important;border-color:#ded4c4!important;color:#64717a!important}html.theme-light .jmi-notify-mode.on{background:#fff0cf!important;border-color:#d3a34c!important;color:#6f4900!important}html.theme-light .jmi-notify-server-input,html.theme-light .jmi-notify-server-menu{background:#fffdf8;color:#26313b;border-color:#ddd3c2}html.theme-light .jmi-notify-server-row{background:#f5eee3}html.theme-light .jmi-notify-server-name small,html.theme-light .jmi-notify-server-help,html.theme-light .jmi-notify-server-option small{color:#77828a}html.theme-light .jmi-notify-server-option{color:#26313b!important}html.theme-light .jmi-notify-server-option:hover{background:#fff0cf!important}html.theme-light .jmi-notify-monitor-link{color:#8d6208!important;background:#fff3d7;border-color:#dfc27d}
    /* 5.28.203 final Light notification palette wins over legacy late overrides. */
    html.theme-light .jmi-notify-monitor-link,html.theme-light .jmi-notify-server-help a{background:#fffaf0!important;border-color:#d9c79f!important;color:#7b5a18!important;box-shadow:none!important}
    html.theme-light .jmi-notify-monitor-link:hover,html.theme-light .jmi-notify-server-help a:hover{background:#fff4dc!important;border-color:#cdb071!important;color:#66470c!important}
    html.theme-light .jmi-notify-mode.on{background:#fff5df!important;border-color:#d9b667!important;color:#6d4d12!important}
    html.theme-light .jmi-notify-settings :is(i.fa,.jmi-notify-pref>i,.jmi-notify-server-cap i,.jmi-notify-server-help i,.jmi-notify-monitor-link i){color:#9a7426!important;text-shadow:none!important;filter:none!important}
    /* 5.28.130 — центр уведомлений на ПК привязан к центру основной колонки,
       а не к правому краю колокольчика. На телефоне добавлена явная кнопка закрытия. */
    .jmi-notify-head-tools{display:flex;align-items:center;gap:7px;flex:0 0 auto}
    .jmi-notify-close{display:none;width:34px!important;height:34px!important;padding:0!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.10)!important;color:#9fb2bc!important;cursor:pointer;align-items:center;justify-content:center}
    .jmi-notify-close:hover{color:#5ff0f7!important;border-color:rgba(0,234,255,.38)!important}
    html.theme-light .jmi-notify-close{background:#fffaf0!important;border-color:#ddd2be!important;color:#6c747b!important}

    /* 5.28.131 — серверная настройка ровно по центру settings-колонки,
       «Серверы и права» визуально последняя категория; mobile close не зависит от hover. */
    .jmi-notify-settings>.jmi-notify-server-box{width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;margin:6px auto 8px!important}
    @media(max-width:700px){.jmi-notify-settings>.jmi-notify-server-box{width:calc(100% - 4px)!important;max-width:calc(100% - 4px)!important;margin-left:auto!important;margin-right:auto!important}}
    @media(min-width:701px){
        .jmi-notify-pop{position:fixed!important;left:50%!important;right:auto!important;top:var(--jmi-notify-top,76px)!important;transform:translate(-50%,-7px) scale(.985)!important;transform-origin:top center!important}
        .jmi-notify.open .jmi-notify-pop{transform:translateX(-50%)!important}
    }
    @media(max-width:700px){
        /* 5.28.119 — мобильный центр уведомлений выводится как независимая
           фиксированная карточка, а не внутри трансформируемой шапки. */
        .jmi-notify:after{display:none!important}
        .jmi-notify-pop,.jmi-notify-pop.jmi-notify-mobile{
            position:fixed!important;left:10px!important;right:10px!important;top:calc(86px + env(safe-area-inset-top,0px))!important;
            width:auto!important;max-width:none!important;max-height:calc(100dvh - 108px - env(safe-area-inset-bottom,0px))!important;
            transform:translateY(-8px) scale(.985)!important;transform-origin:top center!important;
            border-radius:17px!important;z-index:12050!important;
            /* 5.28.129: на телефоне прокручивается ВСЯ панель, включая настройки.
               Раньше overflow:hidden + отдельный scroll списка не давали добраться
               до нижней части длинных настроек серверов. */
            overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;
            overscroll-behavior:contain!important;scrollbar-gutter:stable;
        }
        .jmi-notify-pop.jmi-notify-mobile.mobile-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
        /* 5.28.131: на touch :hover может оставаться «липким» после тапа.
           Закрытое mobile-окно теперь всегда скрыто состоянием, а не hover. */
        .jmi-notify-pop.jmi-notify-mobile:not(.mobile-open){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-8px) scale(.985)!important}
        .jmi-notify-list{max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
        .jmi-notify-head{padding:13px 14px 10px;position:sticky;top:0;z-index:3;background:inherit;backdrop-filter:blur(12px)}.jmi-notify-actions{padding:8px 10px}
        .jmi-notify-close{display:inline-flex!important}
        .jmi-notify-item{grid-template-columns:38px minmax(0,1fr) auto;padding:10px 8px}
        .jmi-notify-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    }

    /* 5.28.121 — единый мобильный защитный слой для ВСЕХ страниц.
       Это не меняет desktop-геометрию и не перекрашивает темы: правила
       отвечают только за размеры/переносы на узком viewport. Цель — ни
       один служебный экран, таблица, форма, кнопочная группа или длинный
       технический текст не должен расширять страницу за границы телефона. */
    @media(max-width:700px){
        html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:clip!important}
        body>*{max-width:100%}
        *,*::before,*::after{box-sizing:border-box}
        main,section,article,aside,nav,header,footer,form,fieldset{min-width:0;max-width:100%}
        img,video,canvas,svg,iframe{max-width:100%!important;height:auto}
        input,select,textarea,button{max-width:100%;min-width:0}
        textarea,input[type=text],input[type=search],input[type=email],input[type=url],input[type=number],input[type=password],select{width:100%}
        pre{width:100%;max-width:100%;overflow-x:auto!important;white-space:pre-wrap;overflow-wrap:anywhere}
        code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
        table{display:block;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
        td,th{overflow-wrap:anywhere}
        .modal,.popup,.dialog,.panel,.card,[role=dialog]{max-width:calc(100vw - 20px)!important}
        [class$="-wrap"],[class*="-wrap "],[class$="-grid"],[class*="-grid "],[class$="-row"],[class*="-row "]{min-width:0;max-width:100%}
        [class$="-grid"]>*,[class*="-grid "]>*,[class$="-row"]>*,[class*="-row "]>*{min-width:0}
        p,li,dd,dt,label,.meta,.sub,.desc,.note,.help,.message,.name,.title{overflow-wrap:anywhere}
        .jmi-check-cache-note{margin-left:10px!important;margin-right:10px!important;max-width:calc(100vw - 20px)!important}
    }
    @media(max-width:430px){
        .fixbar,.viewbar,.jmi-qa-strip{overflow-wrap:anywhere}
    }
    
    .abd-back{ display:none; position:fixed; inset:0; z-index:9700;
        background:rgba(4,7,12,.86); }
    .abd-back.on{ display:block; }
    .abd-win{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
        width:480px; max-width:calc(100vw - 24px); max-height:calc(100vh - 40px);
        overflow-y:auto; box-sizing:border-box; padding:28px 26px 22px;
        background:#0e1420; border:1px solid rgba(255,79,106,.5); border-radius:18px;
        box-shadow:0 0 50px -14px rgba(255,79,106,.7); text-align:center; }
    .abd-ico{ width:64px; height:64px; line-height:64px; margin:0 auto 16px; border-radius:50%;
        background:rgba(255,79,106,.1); border:1px solid rgba(255,79,106,.55); color:#ff8fa0;
        font-size:27px; filter:drop-shadow(0 0 12px rgba(255,79,106,.6)); }
    .abd-title{ font-size:19px; font-weight:900; color:#ff8fa0; letter-spacing:.3px; margin-bottom:12px; }
    .abd-text{ font-size:14px; line-height:1.65; color:#b7c6cc; margin-bottom:14px; text-align:left; }
    .abd-text b{ color:#eafcff; }
    .abd-why{ text-align:left; margin:0 0 18px; padding:14px 16px; border-radius:12px;
        background:#141a24; border:1px solid rgba(255,255,255,.09); }
    .abd-why div{ font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:#8aa0a8; margin-bottom:9px; }
    .abd-why ul{ margin:0; padding-left:18px; font-size:13px; line-height:1.7; color:#cdd9de; }
    .abd-how{ display:none; text-align:left; margin:0 0 18px; padding:14px 16px; border-radius:12px;
        background:rgba(0,234,255,.06); border:1px solid rgba(0,234,255,.3); }
    .abd-how.on{ display:block; }
    .abd-how div{ font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:#00eaff; margin-bottom:9px; }
    .abd-how ol{ margin:0; padding-left:18px; font-size:13px; line-height:1.7; color:#cdd9de; }
    .abd-act{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
    .abd-btn{ flex:1 1 auto; min-width:150px; padding:12px 18px; border-radius:12px; cursor:pointer;
        font-weight:800; font-size:13.5px; letter-spacing:.3px; transition:all .18s ease; border:1px solid; }
    .abd-btn.ok{ background:rgba(0,234,255,.12); border-color:rgba(0,234,255,.55); color:#00eaff; }
    .abd-btn.ok:hover{ background:rgba(0,234,255,.24); box-shadow:0 0 20px -8px #00eaff; }
    .abd-btn.later{ background:transparent; border-color:rgba(255,255,255,.14); color:#8aa0a8; }
    .abd-btn.later:hover{ color:#e6f0f4; border-color:rgba(255,255,255,.3); }
    .abd-mute{ margin-top:12px; text-align:center; }
    .abd-mute a{ font-size:11.5px; color:#5f7079; text-decoration:none; }
    .abd-mute a:hover{ color:#8aa0a8; text-decoration:underline; }
    @media (max-width:600px){
        .abd-win{ padding:22px 16px 16px; }
        .abd-title{ font-size:17px; }
    }
    