/* Этап 8: Настройки (settings-cab, settings-notif, settings-pero, settings-sub) и подсказки недоступных разделов (role-mgr, role-ffmgr).
   Карточки белые, радиус 16, тень-рамка #E3E3E3, отступ 20; две колонки: основная + 420. Только компьютер (html.ui2). */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-bar{position:static;margin:0 -40px;padding:16px 40px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5{font:400 14px/20px "Medeo Sans",sans-serif;color:#141414}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-g{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:16px;align-items:start}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-g1{display:block}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-cs0{margin:0 0 6px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-b5{font-weight:500}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content select.s5-in.tm{display:inline-block;width:84px;height:28px;padding:0 6px;text-align:left;vertical-align:middle}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-col{display:flex;flex-direction:column;gap:16px;min-width:0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-c{padding:20px;border-radius:16px;background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E3;border:0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-ct{display:flex;align-items:center;gap:12px;font:500 15px/20px "Medeo Sans",sans-serif;color:#141414}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-ca{margin-left:auto;font:400 14px/20px "Medeo Sans",sans-serif;color:#0A6FDB;text-decoration:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-cs{margin-top:6px;font-size:13px;line-height:18px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-cs2{margin-top:6px;font-size:14px;line-height:20px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-cs a,html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-rs a,html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-warn a{color:#0A6FDB;text-decoration:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-list{margin-top:6px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-r{display:flex;align-items:center;gap:16px;padding:14px 0;border-top:1px solid #F0F0F0;margin:0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-r.s5-hl{background:#F0F6FF;box-shadow:-12px 0 0 #F0F6FF,12px 0 0 #F0F6FF;transition:background .3s}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-r.kv{padding:10px 0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-r.kv .s5-rt{color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-rl{flex:1;min-width:0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-rt{font:400 14px/20px "Medeo Sans",sans-serif;color:#141414}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-rs{font-size:13px;line-height:18px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-rr{display:flex;align-items:center;gap:8px;flex:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-v{font-variant-numeric:tabular-nums;white-space:nowrap}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-v small{font-size:13px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-red{color:#B42318;font-weight:500}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-no{font-size:13px;color:#666666;white-space:nowrap}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-link{display:inline-block;margin-top:12px;color:#0A6FDB;text-decoration:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-link0{color:#0A6FDB;text-decoration:none;white-space:nowrap;font-size:14px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-sep{height:1px;margin:16px 0 0;background:transparent}
/* кнопки — капсулы без рамок, серые; одна синяя */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-b{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:0;border-radius:10px;background:#F3F3F3;color:#141414;font:400 14px/20px "Medeo Sans",sans-serif;white-space:nowrap;cursor:pointer;text-decoration:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-b.p{background:#0A6FDB;color:#FFFFFF}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-bt{margin-top:12px;display:flex;gap:8px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-bt .s5-b{height:36px;padding:0 14px}
/* тумблер 36×20 */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw{position:relative;display:inline-block;width:36px;height:20px;flex:none;cursor:pointer;margin:0}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw i{position:absolute;inset:0;border-radius:10px;background:#D9D9D9;transition:background .15s;pointer-events:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#FFFFFF;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw input:checked+i{background:#0A6FDB}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw input:checked+i::after{left:18px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw input:focus-visible+i{outline:2px solid rgba(10,111,219,.45);outline-offset:2px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-sw.dis{opacity:.45;cursor:default}
/* поля */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-in{display:block;width:100%;box-sizing:border-box;height:40px;padding:0 12px;border:0!important;border-radius:10px!important;background:#FFFFFF!important;box-shadow:inset 0 0 0 1px #DCDCDC!important;font:400 14px/20px "Medeo Sans",sans-serif!important;color:#141414!important;outline:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-in:focus{box-shadow:inset 0 0 0 2px #0A6FDB!important}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-in.sm{width:96px;height:32px;text-align:right}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) select.s5-in.sm{width:140px;text-align:left}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-in.tm{display:inline-block;width:116px;height:28px;padding:0 8px;vertical-align:middle}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-in.ta{height:auto;padding:10px 12px;resize:vertical;white-space:pre-wrap}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-u{font-size:14px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-fl{display:block;min-width:0;margin-top:12px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-fl>span:first-child{display:block;font-size:13px;line-height:18px;color:#666666;margin-bottom:6px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .s5-mask{display:flex;align-items:center;height:40px;padding:0 12px;border-radius:10px;box-shadow:inset 0 0 0 1px #DCDCDC;font-size:14px;color:#141414}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-seg{margin-top:12px;display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:#F3F3F3}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-seg button{height:30px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#666666;font:400 14px/20px "Medeo Sans",sans-serif;cursor:pointer}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-seg button.on{background:#FFFFFF;color:#141414}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-c .s5-pg{display:block;margin:12px 0 0;padding:0;height:6px;border-radius:3px;background:#EEEEEE;overflow:hidden}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-c .s5-pg i{display:block;height:6px;border-radius:3px;background:#0A6FDB}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-key{margin-top:12px;display:flex;gap:8px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-key .s5-in{flex:1;height:36px;text-transform:uppercase}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-key .s5-b{height:36px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-skl{height:14px;margin:14px 0;border-radius:7px;background:#F3F3F3;width:70%}
/* уведомления: Событие | Telegram */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-nh{display:grid;grid-template-columns:minmax(0,1fr) 110px;margin-top:8px;padding:8px 0;border-top:1px solid #F0F0F0;font-size:13px;line-height:18px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-nh span:last-child{text-align:center}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-ng{padding:14px 0 4px;border-top:1px solid #F0F0F0;font-size:13px;line-height:18px;color:#666666;font-weight:500}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-nr{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;padding:12px 0;border-top:1px solid #F7F7F7}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-nc{text-align:center}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-nn input{width:64px;height:24px;padding:0 6px;border:0;border-radius:6px;box-shadow:inset 0 0 0 1px #DCDCDC;font:400 13px/18px "Medeo Sans",sans-serif;text-align:right}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-warn{margin-bottom:8px;padding:12px 14px;border-radius:12px;background:#FFF6E5;font-size:13px;line-height:18px;color:#141414}
/* панели справа (токен) */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-pan .s5-ph{margin:12px 0 0;font-size:13px;line-height:18px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-pan .s5-pe{margin:8px 0 0;font-size:13px;line-height:18px;color:#B42318}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-pan .s5-pe:empty{display:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-pan .s5-del{display:inline-block;margin-top:16px;color:#B42318;text-decoration:none;font-size:14px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-pan .s5-fl:first-child{margin-top:0}
/* фоновые задачи — прежний список в карточке */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs{margin-top:6px}

/* ---------- роли: недоступный раздел — бледный пункт меню с подсказкой (role-mgr, role-ffmgr) ---------- */
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .topbar .n5-tab.role{color:#BDBDBD!important;background:transparent!important;cursor:default}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .topbar .n5-tab.role svg{stroke:#BDBDBD!important;color:#BDBDBD!important}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-rtip{position:fixed;z-index:120;width:300px;box-sizing:border-box;padding:12px 14px;border-radius:12px;background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E3,0 12px 32px rgba(20,20,20,.12);font:400 13px/18px "Medeo Sans",sans-serif;color:#141414;pointer-events:none}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-rtip b{display:block;font-weight:500;font-size:14px;line-height:20px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-rtip div{margin-top:4px;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) .n5-acc5{padding:8px 12px 10px;font:400 12px/16px "Medeo Sans",sans-serif;color:#666666}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs .badge{background:none!important;border:0!important;padding:0!important;color:#666666!important;font:400 13px/18px "Medeo Sans",sans-serif!important;display:inline-flex;align-items:center;gap:6px}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs .badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#A3A3A3}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs .badge.ok::before{background:#1E7A45}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs .badge.bad::before{background:#B42318}
html.ui2:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) #content .s5-jobs .badge.brand::before{background:#0A6FDB}
