/* NeverLand carved navigation. Decorative layers never intercept input. */
:root{--brand-stone:url('/support/assets/brand/stone-df276b8f2d41.webp');--brand-night:url('/support/assets/brand/night-d4e12ba5fc90.webp');--nav-width:244px}
.topbar{display:flex;align-items:flex-end;justify-content:flex-end;min-height:226px;height:auto;padding:168px 20px 0;gap:0;background:#081321 var(--brand-night) center bottom/cover no-repeat;isolation:isolate;border-color:#334958;position:sticky;top:0;z-index:40;color:#edf4ff}
[data-theme="light"] .topbar{background:#081321 var(--brand-night) center bottom/cover no-repeat}
.topbar:before{content:'';position:absolute;inset:auto 0 0;height:38px;background:linear-gradient(transparent,#07121ce8);z-index:-1;pointer-events:none}
.topbar .brand-row{position:absolute;left:0;top:10px;width:var(--nav-width);justify-content:center;gap:0}
.topbar .brand{display:flex;flex-direction:column;gap:1px;text-align:center;color:#e6f5ff}
.brand-logo{display:block;width:142px;height:142px;object-fit:contain;mix-blend-mode:normal}
.topbar .brand small{color:#c8e7ee;font-size:10px;letter-spacing:.12em;text-shadow:0 1px 4px #000}
.header-banner{position:absolute;left:50%;top:3px;transform:translateX(-50%);width:clamp(340px,34vw,520px);height:159px;object-fit:contain;mix-blend-mode:screen;pointer-events:none}
.topbar .top-actions{display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:flex-end;gap:9px;max-width:calc(100% - var(--nav-width));margin-left:auto;min-width:0;padding-top:6px;padding-bottom:0}
.topbar .tabs{background:none!important;border:0;padding:0;display:flex;gap:6px;align-items:stretch;flex-shrink:0;order:0}
.topbar .tabs a,.topbar .profile-chip,.topbar .notification-bell,.topbar .theme-toggle,.topbar .top-link,.topbar .shift-chip,.topbar .telegram-login,.login-card .telegram-login{position:relative;min-height:52px;border:1px solid #344757!important;border-top:0!important;border-radius:2px 2px 0 0!important;background:linear-gradient(90deg,#060d18c9,#101d2fec,#07111eea)!important;color:#e6edf8!important;box-shadow:inset 0 9px 12px #000a,inset 3px 0 7px #0009,0 -3px 0 #121e27;isolation:isolate}
.topbar .tabs a:before,.topbar .profile-chip:before,.topbar .notification-bell:before,.topbar .theme-toggle:before,.topbar .top-link:before,.topbar .shift-chip:before,.sidebar .nav a:before,.sidebar-bottom>a:before,.topbar .telegram-login:before,.login-card .telegram-login:before{content:'';position:absolute;left:-3px;right:-3px;top:-9px;height:17px;background:var(--brand-stone) 8px 8px/238px auto;clip-path:polygon(0 0,100% 0,100% 55%,96% 55%,96% 82%,91% 82%,91% 52%,81% 52%,81% 65%,74% 65%,74% 100%,71% 100%,71% 60%,60% 60%,60% 77%,48% 77%,48% 51%,38% 51%,38% 92%,35% 92%,35% 58%,24% 58%,24% 73%,16% 73%,16% 100%,12% 100%,12% 55%,4% 55%,4% 74%,0 74%);filter:drop-shadow(0 3px 2px #000b);pointer-events:none;z-index:2}
.topbar .tabs a{padding:17px 17px 13px;font-size:13px;white-space:nowrap;display:flex;align-items:center}
.topbar .tabs a.active{background:linear-gradient(#0c182b,#173662)!important;box-shadow:inset 0 8px 11px #000b,inset 0 -3px 0 #5094ff;color:#fff!important}
.topbar .tabs a:hover,.topbar .profile-chip:hover,.topbar .notification-bell:hover,.topbar .theme-toggle:hover,.topbar .telegram-login:hover,.login-card .telegram-login:hover{background:linear-gradient(#111d2f,#203754)!important}
.topbar .notification-bell,.topbar .theme-toggle{width:46px;height:52px;padding:14px 10px 9px}
.topbar .profile-chip{gap:9px;padding:12px 11px 8px;max-width:234px;min-width:0;align-items:center}
.topbar .profile-name{font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;max-width:145px}
.topbar .profile-name small{display:block;color:#b6c9e0;font-size:11px;margin-top:2px}
.topbar .profile-chip .avatar{width:34px;height:34px;font-size:13px;background:linear-gradient(145deg,#417cce,#2955a3);color:#fff;border:1px solid #85b7ff;border-radius:50%;box-shadow:0 0 0 2px #0a172b,0 0 12px #4e91f04d;flex-shrink:0}
.profile-chevron{font-size:14px;color:#c2d6f3}
.topbar .shift-chip{order:0;margin:0;align-items:center;gap:6px;min-width:0;padding:13px 7px 7px;font-size:12px;display:flex}
.topbar .shift-chip select{width:122px;max-width:122px;background:#101d2e!important;color:#e6edf8!important;color-scheme:dark;border:0;min-height:29px;font-size:12px}
.topbar .shift-chip select option{background:#101d2e;color:#e6edf8}
.topbar #header-workload{font-size:11px;color:#b7cde7;border-color:#34475c}
.topbar .top-link{display:flex;padding:14px 14px 9px;font-size:13px}
.theme-control{position:relative;flex-shrink:0}
.theme-popover{position:absolute;top:calc(100% + 10px);right:0;min-width:226px;margin:0;padding:16px;z-index:50;color:var(--text);box-shadow:0 16px 40px #0007}
.theme-popover strong{display:block;margin-bottom:10px;font-size:14px}
.theme-popover label{display:flex;align-items:center;gap:10px;margin:0;padding:10px 4px;white-space:nowrap;font-size:14px;cursor:pointer}
.theme-popover input{width:16px;height:16px;margin:0;padding:0;accent-color:var(--accent)}
.notification-center{margin:0}
.topbar .notification-popover{color:var(--text)}
.topbar #notification-badge{z-index:3;top:0;right:-3px;line-height:18px;min-width:21px;border-color:#142130}
.topbar a:focus-visible,.topbar button:focus-visible,.sidebar a:focus-visible{outline:2px solid #97c9ff;outline-offset:3px}
.layout{grid-template-columns:var(--nav-width) minmax(0,1fr);min-height:calc(100dvh - var(--header-height,226px))}
.sidebar,[data-theme="light"] .sidebar{padding:22px 14px;gap:28px;border-right:3px solid #24394e;background:linear-gradient(#07111a30,#07111a44),var(--brand-stone) center top/256px auto;color:#dce9f9;top:var(--header-height,226px);height:calc(100dvh - var(--header-height,226px));scrollbar-color:#466078 #101d2c;z-index:20}
.sidebar .nav-label,[data-theme="light"] .sidebar .nav-label{font-size:10px;line-height:1.5;color:#b2c9e6;text-shadow:0 1px 4px #000;padding:0 9px;margin-bottom:17px;letter-spacing:.12em}
.sidebar .nav{gap:16px}
.sidebar .nav a,.sidebar-bottom>a,[data-theme="light"] .sidebar .nav a{position:relative;display:flex;align-items:center;gap:12px;min-height:48px;padding:13px 12px 10px;border:1px solid #334b61;border-top:0;border-radius:1px;color:#c7d9f1;background:linear-gradient(90deg,#081321f5,#0b1625eb,#081321f5);box-shadow:inset 0 9px 9px #0009,inset 3px 0 5px #0009,0 2px 1px #152b39;font-size:13px;line-height:1.5;isolation:isolate}
.sidebar .nav a:hover,[data-theme="light"] .sidebar .nav a:hover,.sidebar-bottom>a:hover{background:linear-gradient(#102139,#19314c);color:#fff}
.sidebar .nav a.active,[data-theme="light"] .sidebar .nav a.active{background:linear-gradient(#101e35,#19355d);box-shadow:inset 3px 0 0 #568fff,inset 0 9px 10px #000b;color:#fff;border-color:#4673a9}
.sidebar .nav a .icon{width:19px;height:19px;color:#a8c7ec}
.sidebar .nav-count{margin-left:auto;border-color:#132238;background:#ffc45d;color:#231b0b;box-shadow:0 0 0 1px #72603d;min-width:24px;min-height:24px;font-size:11px}
.sidebar .nav-count.is-zero{background:#26384c;color:#b3c6e0;box-shadow:none}
.sidebar .settings-nav{border-color:#34495c;margin-top:22px;padding-top:20px}
.sidebar-bottom{padding:8px 0 0;border:0}
.sidebar-bottom>a{color:#9fccff}.sidebar-bottom p{color:#acbfd6;font-size:11px;padding:7px 8px}
.ticket-tabs{gap:4px!important;align-items:stretch;border-bottom:1px solid var(--line)}
.ticket-tabs button{border-radius:3px 3px 0 0!important;background:linear-gradient(var(--raised),var(--panel));border:1px solid var(--line);box-shadow:inset 0 3px 0 #ffffff0a;padding:13px 20px!important}
.ticket-tabs button[aria-selected="true"]{border-top:3px solid var(--accent);background:var(--panel)}
.avatar{position:relative;overflow:hidden;isolation:isolate}
.avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;z-index:1}
.avatar>span{display:grid;place-items:center;width:100%;height:100%}
.avatar-large{width:88px!important;height:88px!important;border-radius:50%;font-size:28px;display:grid;place-items:center;background:var(--soft);color:var(--blue);flex-shrink:0}
.profile-main{display:grid;align-content:start;gap:24px;min-width:0}
.avatar-editor-row{display:flex;gap:20px;align-items:center}
.avatar-editor-row>div:last-child{min-width:0}
.avatar-editor-row .hint{margin-top:10px;font-size:12px}
.avatar-editor-row label{margin:0;cursor:pointer}
.avatar-editor-row:has(input:focus-visible) label{outline:2px solid var(--blue);outline-offset:4px}
.avatar-editor-row:has(input:disabled) label{opacity:.55;cursor:wait}
.avatar-status{margin:16px 0;min-height:20px;line-height:1.5}
.avatar-card .button-group{gap:10px}.avatar-card .btn{white-space:normal}
.profile-main .form-card{min-width:0}
#sidebar-close,.nav-backdrop{display:none}
[hidden]{display:none!important}
@media(min-width:1500px){.header-banner{height:165px;width:500px}.brand-logo{width:146px;height:146px}}
@media(max-width:1240px){
 .topbar .top-actions{max-width:100%}
 .topbar .profile-name{max-width:96px}.topbar .tabs a{padding-left:12px;padding-right:12px}
 .topbar .brand-row{top:3px}.brand-logo{width:126px;height:126px}.header-banner{height:148px;width:410px}
}
@media(max-width:1000px){:root{--nav-width:210px}.topbar .profile-name{max-width:85px}.topbar .profile-chip{padding-left:7px;padding-right:7px}.topbar .top-actions{gap:7px;max-width:100%}.topbar .tabs a{font-size:12px;padding-left:9px;padding-right:9px}.sidebar{padding-left:10px;padding-right:10px}.sidebar .nav a{font-size:12px;padding-left:10px;padding-right:10px}}
@media(max-width:800px){
 .topbar{position:relative;padding:120px 12px 0;min-height:0;display:block}
 .topbar .brand-row{top:4px;left:8px;width:90px}.brand-logo{width:80px;height:80px}.topbar .brand small{font-size:7px;max-width:88px;letter-spacing:.025em}
 .header-banner{top:7px;width:clamp(176px,50vw,370px);height:108px;left:50%}
 .topbar .mobile-menu{display:inline-flex;position:absolute;top:87px;left:20px;width:44px;height:38px;min-height:38px;padding:8px;border-color:#476380;color:#dfedff;background:#0d1d30}
 .topbar .top-actions{max-width:none;width:100%;padding-top:20px;gap:10px;justify-content:flex-end;flex-wrap:wrap;align-items:flex-end}
 .topbar .top-actions .tabs{order:4;flex:1 1 100%;justify-content:flex-end;padding:8px 0 0;gap:6px}
 .topbar .top-actions .tabs a{min-height:44px;flex:0 1 auto;justify-content:center;padding:13px 14px 10px;font-size:12px}
 .topbar .shift-chip{position:relative;left:auto;bottom:auto;margin-right:0;min-height:44px;padding:10px 4px 4px;order:0}
 .topbar .shift-chip select{width:113px;max-width:113px;font-size:12px}.topbar #header-workload{padding-left:5px;font-size:10px}
 .topbar .notification-bell,.topbar .theme-toggle{width:40px;height:44px;min-height:44px;padding:13px 9px 8px}
 .topbar .profile-chip{min-height:44px;max-width:160px;padding:10px 8px 6px}.topbar .profile-name{display:none}.profile-chevron{display:none}
 .topbar .profile-chip .avatar{width:28px;height:28px}
 .layout{grid-template-columns:minmax(0,1fr)}
 .sidebar{position:fixed;inset:0 auto 0 0;top:0;height:100dvh;width:264px;max-width:calc(100vw - 42px);transform:translateX(-100%);z-index:70;overscroll-behavior:contain;padding-top:62px}
 .sidebar.open{transform:translateX(0)}
 #sidebar-close{display:inline-flex;position:absolute;right:13px;top:12px;min-height:36px;color:#e7f1ff;background:#11243c;border-color:#486683}
 .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#020916aa;z-index:60;border:0;border-radius:0;cursor:default}
 body.navigation-open{overflow:hidden}
 .theme-popover,.topbar .notification-popover{position:fixed;top:12px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 24px);overflow:auto;z-index:55}
 .main{padding:24px 18px 36px}
 .ticket-tabs button{padding:11px 12px!important}
}
@media(max-width:390px){.topbar .top-actions{gap:6px}.topbar .shift-chip select{width:102px;max-width:102px}.topbar .profile-chip{padding-left:6px;padding-right:6px}.topbar .shift-chip{gap:3px}.avatar-editor-row{gap:13px}.avatar-large{width:72px!important;height:72px!important}.header-banner{width:176px}.topbar .brand-row{width:68px}.brand-logo{width:64px;height:64px}.topbar .brand small{font-size:6px;max-width:68px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
.profile-grid>.card{align-self:start}

/* Login uses the same stone lip as the portal and profile controls. */
.topbar .telegram-login{padding:15px 18px 11px;font-size:13px;white-space:normal;text-align:center}
.login-card .telegram-login{margin-top:10px;padding:17px 20px 13px;gap:10px}
.telegram-login .icon{flex-shrink:0;color:#d9ecff}
.telegram-login:focus-visible{outline:2px solid #97c9ff;outline-offset:4px}

/* Transparent, brighter source artwork; personal avatar photos keep their own colors. */
img[src="/support/assets/brand/logo-1820cb8bbf97.webp"]{filter:drop-shadow(0 0 5px #719aff30)}

/* Profile identity is a compact unit, independent of form section headings. */
#profile-form>.session-info{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 24px}
#profile-form>.session-info>.avatar{width:48px;height:48px;min-width:48px;border-radius:12px;font-size:16px}
#profile-form>.session-info>div{display:grid;gap:5px;min-width:0}
#profile-form>.session-info h2{margin:0;font-size:18px;line-height:1.35;overflow-wrap:anywhere}
#profile-form>.session-info .meta{display:block;margin:0;line-height:1.4;overflow-wrap:anywhere}
#profile-form>.session-info>.tag{margin:0;justify-self:end;align-self:center}
@media(max-width:480px){
 #profile-form>.session-info{grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:10px}
 #profile-form>.session-info>.avatar{width:44px;height:44px;min-width:44px}
 #profile-form>.session-info>.tag{grid-column:2;justify-self:start}
}
