*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#08080a;--bg2:#121214;--bg3:#1a1a1e;--border:#222228;--border2:#2a2a32;--text:#ececef;--muted:#8a8a93}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;overflow:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}

/* LANDING */
.landing-wrap{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.landing-nav{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;font-family:JetBrains Mono,monospace;font-size:11px;color:var(--muted);border-bottom:1px solid var(--border);letter-spacing:.5px}
.landing-nav .logo{font-weight:800;color:#fff;letter-spacing:1px;font-size:13px}
.hero{max-width:900px;margin:0 auto;padding:90px 24px 40px;position:relative;width:100%}
.hero-glow{position:absolute;top:-80px;left:10%;width:700px;height:700px;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,0.07),transparent 70%);filter:blur(40px);pointer-events:none}
.hero h1{font-size:clamp(40px,7vw,64px);line-height:.92;letter-spacing:-2.5px;font-weight:800}
.hero h1 .accent{background:linear-gradient(100deg,#fff 20%,#888);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{max-width:540px;margin:20px 0 28px;color:#999;font-size:16px;line-height:1.6}
.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.btn-discord{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;background:#5865F2;color:#fff;border-radius:999px;font-weight:600;font-size:14px;transition:transform .15s,background .15s}
.btn-discord:hover{background:#4752c4;transform:translateY(-1px)}
.hero-note{font-size:11px;color:var(--muted);font-family:JetBrains Mono,monospace}
.hero-stats{display:flex;gap:18px;margin-top:28px;font-family:JetBrains Mono,monospace;font-size:11px;color:#555}
.bento{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;max-width:900px;margin:0 auto;padding:24px;width:100%}
.bento-card{background:var(--bg2);border:1px solid var(--border);border-radius:16px;padding:18px}
.bento-card h3{font-size:13px;margin-bottom:6px}
.bento-card p{font-size:12.5px;color:var(--muted);line-height:1.5}
.landing-foot{text-align:center;padding:40px 0;color:#333;font-size:11px;font-family:JetBrains Mono,monospace;border-top:1px solid var(--border);margin-top:auto}

/* APP */
#app{display:flex;height:100dvh;width:100vw;overflow:hidden}
#sidebar{width:280px;min-width:280px;background:#0e0e10;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:20;transition:width .22s ease,transform .22s ease}
.sidebar-head{height:56px;padding:0 12px 0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);flex-shrink:0}
#hideSidebar,#showSidebar{width:32px;height:32px;border-radius:8px;background:var(--bg2);border:1px solid var(--border);color:var(--muted);cursor:pointer;display:grid;place-items:center;font-size:14px;flex-shrink:0}
.rail-top{padding:12px}
#newChat{width:100%;height:44px;border-radius:12px;border:1px solid var(--text);background:var(--text);color:#000;font-weight:700;font-size:13.5px;display:flex;align-items:center;gap:10px;padding:0 14px;cursor:pointer}
#newChat .ico{width:20px;display:grid;place-items:center;font-size:18px}
#history{flex:1;overflow-y:auto;padding:8px}
.hist-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:10px;margin:3px 0;border:1px solid transparent;color:var(--muted);font-size:13px;cursor:pointer}
.hist-item:hover{background:var(--bg2);border-color:var(--border);color:var(--text)}
.hist-title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-del{opacity:0;width:24px;height:24px;border-radius:6px;background:transparent;border:none;color:var(--muted);cursor:pointer;display:grid;place-items:center}
.hist-item:hover .hist-del{opacity:1}
.hist-del:hover{background:#ff2222 !important;color:#fff !important}
.sidebar-foot{padding:12px;border-top:1px solid var(--border);flex-shrink:0}
.plan-badge{font-size:11px;color:var(--muted);font-family:JetBrains Mono,monospace;margin-bottom:6px}
.foot-links{display:flex;gap:12px}.foot-links a{font-size:11px;color:var(--muted)}
#main{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--bg)}
#topbar{height:56px;min-height:56px;display:flex;align-items:center;gap:10px;padding:0 12px 0 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.spacer{flex:1}
.brain-status-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.6px;font-family:JetBrains Mono,monospace;text-transform:uppercase;border:1px solid;white-space:nowrap;flex-shrink:0}
.brain-status-pill.online{color:#22c55e;background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.2)}
.brain-status-pill.offline{color:#ef4444;background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.2)}
.brain-status-pill.degraded{color:#eab308;background:rgba(234,179,8,.08);border-color:rgba(234,179,8,.2)}
.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
.avatar{width:32px;height:32px;border-radius:50%;border:1px solid var(--border);background:var(--bg2);cursor:pointer;flex-shrink:0}
.dropdown{position:absolute;right:12px;top:60px;background:#18181b;border:1px solid var(--border2);border-radius:12px;min-width:200px;padding:6px;z-index:40}
.dropdown.hidden{display:none}.dropdown a{display:block;padding:9px 10px;color:var(--muted);border-radius:8px;font-size:13px}
.dropdown a:hover{background:var(--bg2);color:var(--text)}
.drop-user{padding:9px 10px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--border);margin-bottom:6px}
#chat{flex:1;overflow-y:auto;padding:24px 20px;max-width:840px;margin:0 auto;width:100%}
.msg{margin:20px 0;line-height:1.65;font-size:14.5px}.msg.user{background:var(--bg2);border:1px solid var(--border);padding:12px 14px;border-radius:16px;width:fit-content;max-width:88%;margin-left:auto}.msg.assistant{padding:6px 2px}
.msg pre{background:#101012;border:1px solid var(--border);border-radius:12px;padding:14px;overflow:auto;margin:12px 0;position:relative}
.copy-btn{position:absolute;top:8px;right:8px;padding:4px 8px;background:#1e1e22;border:1px solid var(--border);border-radius:6px;color:var(--muted);font-size:11px;cursor:pointer}

/* COMPOSER + FIXED SELECT */
#composerWrap{padding:12px 16px 18px;flex-shrink:0;background:linear-gradient(to top,var(--bg) 60%,transparent);display:flex;justify-content:center}
#composer{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 6px;background:#141416;border:1px solid #26262e;border-radius:999px;max-width:840px;width:100%;min-height:52px;box-shadow:0 4px 30px rgba(0,0,0,.4)}
#composer:focus-within{border-color:#333340}
#prompt{flex:1;background:transparent;border:none;color:var(--text);outline:none;resize:none;max-height:160px;min-height:24px;line-height:1.5;font-size:15px;padding:6px 4px;font-family:Inter,sans-serif}
.model-select-wrap{position:relative;flex-shrink:0;display:flex;align-items:center}
#modelSelect{appearance:none !important;-webkit-appearance:none !important;background:#1e1e22 !important;color:#ececef !important;border:1px solid #2a2a32 !important;border-radius:999px !important;padding:8px 28px 8px 12px !important;font-size:12px !important;font-weight:600 !important;outline:none !important;cursor:pointer !important;min-width:88px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a93' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:right 10px center !important}
#modelSelect option{background:#1e1e22;color:#fff}
#send{width:34px;height:34px;border-radius:50%;background:#ececef;color:#000;border:none;cursor:pointer;font-weight:800;flex-shrink:0;display:grid;place-items:center}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(8px);z-index:15}
.sidebar-overlay.open{display:block}

/* COLLAPSED RAIL */
#sidebar.collapsed{width:64px !important;min-width:64px !important}
#sidebar.collapsed .logo,#sidebar.collapsed .hist-title,#sidebar.collapsed .plan-badge,#sidebar.collapsed .foot-links,#sidebar.collapsed #newChat .txt,#sidebar.collapsed .hist-del{display:none !important}
#sidebar.collapsed .sidebar-head{justify-content:center;padding:0;height:56px;border-bottom:none}
#sidebar.collapsed #hideSidebar{width:36px;height:36px;border-radius:10px}
#sidebar.collapsed .rail-top{padding:8px;display:flex;justify-content:center}
#sidebar.collapsed #newChat{width:44px;height:44px;padding:0;justify-content:center;border-radius:12px}
#sidebar.collapsed #history{padding:6px}
#sidebar.collapsed .hist-item{width:44px;height:44px;justify-content:center;padding:0;margin:6px auto;border-radius:12px;border:1px solid var(--border);background:var(--bg2)}
#sidebar.collapsed .hist-item::before{content:'💬';font-size:13px;opacity:.7}
#sidebar.collapsed .sidebar-foot{border-top:none;display:none}
@media(min-width:801px){#showSidebar{display:none} #sidebar.hidden{transform:translateX(-100%)}}
@media(max-width:800px){
  #sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);width:86%;max-width:320px;min-width:0 !important;z-index:25}
  #sidebar.open{transform:translateX(0);width:86% !important}
  #sidebar.collapsed{transform:translateX(-100%);width:86% !important}
  #sidebar.collapsed.open{transform:translateX(0);width:86% !important}
  #sidebar.collapsed .logo,#sidebar.collapsed .hist-title,#sidebar.collapsed #newChat .txt{display:block !important}
  #sidebar.collapsed #newChat{width:100%;justify-content:flex-start;padding:0 14px}
  #sidebar.collapsed .hist-item{width:auto;height:auto;padding:10px 12px;justify-content:space-between}
  #sidebar.collapsed .hist-item::before{display:none}
  #sidebar.collapsed .sidebar-foot{display:block}
}

/* AVATAR */
.msg.assistant{display:flex;gap:12px;align-items:flex-start}
.msg.assistant.thinking{align-items:center}
.msg-body{flex:1;min-width:0}
.bot-avatar{width:30px;height:30px;min-width:30px;border-radius:50%;background:#16161a;border:1px solid #26262e;display:grid;place-items:center;overflow:hidden;position:relative;flex-shrink:0}
.bot-avatar img,.bot-avatar video{width:26px;height:26px;object-fit:contain}
.bot-avatar.thinking{border-color:#ff7a00;box-shadow:0 0 14px rgba(255,122,0,.45)}
.bot-avatar.thinking img,.bot-avatar.thinking video{width:30px;height:30px}
.forge-glow{position:absolute;inset:-2px;background:radial-gradient(circle,rgba(255,122,0,.35),transparent 70%);animation:forgePulse .9s infinite;pointer-events:none}
@keyframes forgePulse{0%,100%{opacity:.35;transform:scale(1)}50%{opacity:.7;transform:scale(1.15)}}
.think-content{display:flex;align-items:center;gap:10px}
#thinking-indicator .dot{width:6px;height:6px;background:#fff;border-radius:50%;animation:bounce 1.4s infinite}
#thinking-indicator .dot:nth-child(2){animation-delay:.2s}#thinking-indicator .dot:nth-child(3){animation-delay:.4s}

/* KESPA v13 DELTA - ADDITIVE ONLY - Feedback + Sleeping */
.msg-feedback{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid #1a1a1e;
}
.fb-btn{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid #26262e;
  background:#1a1a1e;
  color:#8a8a93;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:14px;
  transition:all .15s;
}
.fb-btn:hover{
  background:#222228;
  color:#ececef;
  border-color:#2a2a32;
  transform:translateY(-1px);
}
.fb-btn:disabled{
  opacity:.5;
  cursor:default;
  transform:none;
}
.fb-btn.fb-up:hover{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.25);
  color:#22c55e;
}
.fb-btn.fb-down:hover{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.25);
  color:#ef4444;
}
.fb-cards{
  font-size:11px;
  color:#555;
  font-family:JetBrains Mono,monospace;
  margin-left:4px;
}

/* Sleeping state */
.brain-status-pill.offline{
  animation:pulseOffline 2s infinite;
}
@keyframes pulseOffline{
  0%,100%{opacity:1}
  50%{opacity:.6}
}
.msg.assistant.error .msg-body{
  background:rgba(239,68,68,.06);
  border:1px solid rgba(239,68,68,.15);
  border-radius:12px;
  padding:12px 14px;
}

/* PROFILE */
body.profile-page{
  --profile-bg:#050507;
  --profile-panel:#0d0d12;
  --profile-panel-2:#111118;
  --profile-line:#23232d;
  --profile-line-soft:#191920;
  --profile-text:#f2f2f5;
  --profile-soft:#b8b8c3;
  --profile-muted:#7f7f8c;
  --profile-accent:#8ea8ff;
  --profile-accent-2:#c5a7ff;
  height:auto !important;
  min-height:100vh;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  background:radial-gradient(circle at 50% -15%,rgba(103,94,255,.15),transparent 35%),var(--profile-bg);
  color:var(--profile-text);
  font-family:Inter,sans-serif;
}
body.profile-page .profile-shell{min-height:100vh}
body.profile-page .profile-topbar{height:64px;border-bottom:1px solid var(--profile-line-soft);display:flex;align-items:center;gap:14px;padding:0 22px;background:rgba(5,5,7,.82);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}
body.profile-page .profile-brand{font-weight:900;letter-spacing:-.4px;text-decoration:none}
body.profile-page .profile-spacer{flex:1}
body.profile-page .profile-toplink{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid var(--profile-line);border-radius:10px;text-decoration:none;color:#cfcfd8;background:#0c0c11;font-size:13px;font-weight:700}
body.profile-page .profile-toplink:hover{border-color:#3a3a48;color:#fff}
body.profile-page .profile-wrap{width:min(1160px,calc(100% - 32px));margin:0 auto;padding:48px 0 72px}
body.profile-page .profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;padding:26px;border:1px solid var(--profile-line);border-radius:22px;background:linear-gradient(145deg,rgba(18,18,26,.97),rgba(9,9,13,.97));box-shadow:0 20px 70px rgba(0,0,0,.25)}
body.profile-page .profile-avatar{width:92px;height:92px;border-radius:24px;object-fit:cover;border:1px solid #333340;background:#111}
body.profile-page .profile-name{margin:0;font-size:clamp(28px,4vw,42px);font-weight:900;letter-spacing:-1.2px}
body.profile-page .profile-meta{margin-top:8px;display:flex;gap:9px;flex-wrap:wrap;align-items:center;color:var(--profile-muted);font:600 11px/1.4 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.4px}
body.profile-page .profile-chip{padding:6px 9px;border-radius:999px;border:1px solid var(--profile-line);background:#0b0b10;color:#9999a6}
body.profile-page .profile-track{text-align:right;color:var(--profile-muted);font:600 11px/1.6 'JetBrains Mono',monospace}
body.profile-page .profile-track strong{display:block;color:#d7d7df;font-size:12px}
body.profile-page .hero-stats{margin-top:16px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;font-family:inherit;font-size:inherit;color:inherit}
body.profile-page .hero-stat{min-height:112px;padding:18px;border:1px solid var(--profile-line);border-radius:17px;background:linear-gradient(180deg,#101016,#0b0b0f)}
body.profile-page .hero-stat b{display:block;font-size:clamp(22px,3vw,31px);line-height:1;font-weight:900;letter-spacing:-.7px}
body.profile-page .hero-stat span{display:block;margin-top:9px;color:var(--profile-muted);font:700 10px/1.45 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.45px}
body.profile-page .profile-banner{margin-top:16px;padding:20px 22px;border:1px solid #292938;border-radius:17px;background:linear-gradient(120deg,rgba(108,103,255,.12),rgba(197,167,255,.055));color:#cfcfd8;font-size:14px;line-height:1.65}
body.profile-page .profile-banner strong{color:#fff}
body.profile-page .profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
body.profile-page .profile-card{border:1px solid var(--profile-line);border-radius:18px;background:linear-gradient(180deg,var(--profile-panel-2),var(--profile-panel));overflow:hidden}
body.profile-page .profile-section-gap{margin-top:14px}
body.profile-page .profile-card-head{padding:18px 20px;border-bottom:1px solid var(--profile-line-soft);display:flex;justify-content:space-between;gap:12px;align-items:center}
body.profile-page .profile-card-head h2{margin:0;font-size:15px;font-weight:800;letter-spacing:-.2px}
body.profile-page .profile-card-head span{color:#676774;font:600 9px/1 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.6px}
body.profile-page .profile-card-body{padding:10px 20px 16px}
body.profile-page .profile-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 0;border-bottom:1px solid var(--profile-line-soft)}
body.profile-page .profile-row:last-child{border-bottom:0}
body.profile-page .profile-row .label{color:#92929f;font-size:13px}
body.profile-page .profile-row .value{text-align:right;color:#ededf2;font-size:13px;font-weight:800}
body.profile-page .profile-row .sub{display:block;margin-top:3px;color:#656571;font:500 10px/1.35 'JetBrains Mono',monospace}
body.profile-page .feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px 20px 20px}
body.profile-page .feature{padding:15px;border:1px solid var(--profile-line-soft);border-radius:14px;background:#0a0a0e}
body.profile-page .feature b{display:block;font-size:20px;font-weight:900}
body.profile-page .feature span{display:block;margin-top:5px;color:#777784;font:600 9px/1.35 'JetBrains Mono',monospace;text-transform:uppercase}
body.profile-page .distribution{padding:12px 20px 18px}
body.profile-page .dist-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:10px 0;border-bottom:1px solid var(--profile-line-soft);font-size:13px}
body.profile-page .dist-row:last-child{border-bottom:0}
body.profile-page .dist-row span{color:#9b9ba7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.profile-page .dist-row b{color:#ededf2}
body.profile-page .profile-note{margin-top:14px;padding:16px 18px;border:1px solid var(--profile-line-soft);border-radius:15px;background:#09090d;color:#6e6e79;font-size:11px;line-height:1.65}
body.profile-page .profile-note strong{color:#a9a9b4}
body.profile-page .profile-error{padding:22px;border:1px solid #563131;border-radius:16px;background:#160d0d;color:#e7c0c0}

body.profile-page .profile-privacy-body{padding:18px 20px 20px}
body.profile-page .profile-save-success{margin-bottom:14px;padding:11px 13px;border:1px solid rgba(34,197,94,.24);border-radius:12px;background:rgba(34,197,94,.07);color:#9de2b3;font-size:12px;font-weight:700}
body.profile-page .profile-privacy-form{display:flex;flex-direction:column;gap:16px}
body.profile-page .profile-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:22px;cursor:pointer}
body.profile-page .profile-toggle-copy{display:block;min-width:0}
body.profile-page .profile-toggle-copy strong{display:block;color:#ededf2;font-size:13px;font-weight:800}
body.profile-page .profile-toggle-copy small{display:block;max-width:760px;margin-top:6px;color:#777784;font-size:11px;line-height:1.55}
body.profile-page .profile-toggle{position:relative;width:48px;height:28px;flex:0 0 48px}
body.profile-page .profile-toggle input{position:absolute;opacity:0;pointer-events:none}
body.profile-page .profile-toggle-track{position:absolute;inset:0;border:1px solid #33333e;border-radius:999px;background:#17171d;transition:.18s ease}
body.profile-page .profile-toggle-track::after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#858590;transition:.18s ease}
body.profile-page .profile-toggle input:checked + .profile-toggle-track{border-color:rgba(142,168,255,.42);background:rgba(142,168,255,.18)}
body.profile-page .profile-toggle input:checked + .profile-toggle-track::after{transform:translateX(20px);background:#eef0ff}
body.profile-page .profile-toggle input:focus-visible + .profile-toggle-track{outline:2px solid var(--profile-accent);outline-offset:3px}
body.profile-page .profile-privacy-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;border-top:1px solid var(--profile-line-soft);color:#6f6f7b;font:600 10px/1.45 'JetBrains Mono',monospace}
body.profile-page .profile-save-button{min-height:38px;padding:0 14px;border:1px solid #eef0ff;border-radius:10px;background:#eef0ff;color:#101018;font:800 12px/1 Inter,sans-serif;cursor:pointer}
body.profile-page .profile-save-button:hover{background:#fff;border-color:#fff}
@media(max-width:980px){
  body.profile-page .hero-stats{grid-template-columns:repeat(3,1fr)}
  body.profile-page .feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  body.profile-page .profile-wrap{width:min(100% - 22px,1160px);padding-top:24px}
  body.profile-page .profile-topbar{padding:0 12px}
  body.profile-page .profile-hero{grid-template-columns:auto 1fr;padding:18px}
  body.profile-page .profile-avatar{width:70px;height:70px;border-radius:18px}
  body.profile-page .profile-track{grid-column:1/-1;text-align:left}
  body.profile-page .profile-grid{grid-template-columns:1fr}
  body.profile-page .profile-toggle-row{align-items:flex-start}
  body.profile-page .profile-privacy-actions{align-items:stretch;flex-direction:column}
  body.profile-page .profile-save-button{width:100%}
  body.profile-page .hero-stats{grid-template-columns:repeat(2,1fr)}
  body.profile-page .profile-toplink.logout{display:none}
}
@media(max-width:440px){
  body.profile-page .profile-hero{grid-template-columns:1fr;text-align:center}
  body.profile-page .profile-avatar{margin:0 auto}
  body.profile-page .profile-meta{justify-content:center}
  body.profile-page .profile-track{text-align:center}
  body.profile-page .hero-stats{grid-template-columns:1fr 1fr}
  body.profile-page .hero-stat{min-height:100px;padding:15px}
  body.profile-page .feature-grid{grid-template-columns:1fr 1fr}
}

/* LEADERBOARD */
body.leaderboard-page{
  --leaderboard-bg:#050507;
  --leaderboard-panel:#0d0d12;
  --leaderboard-panel-2:#111118;
  --leaderboard-line:#23232d;
  --leaderboard-line-soft:#191920;
  --leaderboard-text:#f2f2f5;
  --leaderboard-muted:#7f7f8c;
  --leaderboard-accent:#8ea8ff;
  --leaderboard-accent-2:#c5a7ff;
  height:auto !important;
  min-height:100vh;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  background:radial-gradient(circle at 50% -15%,rgba(103,94,255,.15),transparent 35%),var(--leaderboard-bg);
  color:var(--leaderboard-text);
  font-family:Inter,sans-serif;
}
body.leaderboard-page .leaderboard-shell{min-height:100vh}
body.leaderboard-page .leaderboard-topbar{height:64px;border-bottom:1px solid var(--leaderboard-line-soft);display:flex;align-items:center;gap:14px;padding:0 22px;background:rgba(5,5,7,.82);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);position:sticky;top:0;z-index:20}
body.leaderboard-page .leaderboard-brand{font-weight:900;letter-spacing:-.4px;text-decoration:none}
body.leaderboard-page .leaderboard-spacer{flex:1}
body.leaderboard-page .leaderboard-toplink{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid var(--leaderboard-line);border-radius:10px;text-decoration:none;color:#cfcfd8;background:#0c0c11;font-size:13px;font-weight:700}
body.leaderboard-page .leaderboard-toplink:hover{border-color:#3a3a48;color:#fff}
body.leaderboard-page .leaderboard-wrap{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:48px 0 72px}
body.leaderboard-page .leaderboard-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:10px 2px 24px}
body.leaderboard-page .leaderboard-eyebrow{display:block;margin-bottom:10px;color:var(--leaderboard-accent);font:700 10px/1 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.8px}
body.leaderboard-page .leaderboard-intro h1{margin:0;font-size:clamp(38px,6vw,64px);line-height:.95;letter-spacing:-2.4px;font-weight:900}
body.leaderboard-page .leaderboard-intro p{max-width:760px;margin:16px 0 0;color:#92929f;font-size:14px;line-height:1.65}
body.leaderboard-page .leaderboard-community-stat{min-width:150px;padding:18px 20px;border:1px solid var(--leaderboard-line);border-radius:16px;background:linear-gradient(180deg,#101016,#0b0b0f);text-align:right}
body.leaderboard-page .leaderboard-community-stat b{display:block;font-size:30px;line-height:1;font-weight:900}
body.leaderboard-page .leaderboard-community-stat span{display:block;margin-top:8px;color:var(--leaderboard-muted);font:700 9px/1.3 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.5px}
body.leaderboard-page .leaderboard-privacy-note{margin:0 0 14px;padding:13px 15px;border:1px solid rgba(142,168,255,.24);border-radius:14px;background:rgba(142,168,255,.07);color:#91919d;font-size:12px;line-height:1.55}
body.leaderboard-page .leaderboard-privacy-note strong{color:#d8d8e0}
body.leaderboard-page .leaderboard-privacy-note a{color:#aabaff;text-decoration:underline;text-underline-offset:2px}
body.leaderboard-page .leaderboard-sorts{display:flex;gap:8px;overflow-x:auto;padding:2px 0 16px;scrollbar-width:none}
body.leaderboard-page .leaderboard-sorts::-webkit-scrollbar{display:none}
body.leaderboard-page .leaderboard-sort{flex:0 0 auto;padding:9px 12px;border:1px solid var(--leaderboard-line);border-radius:999px;background:#0b0b10;color:#858592;font-size:12px;font-weight:700;text-decoration:none;transition:.15s ease}
body.leaderboard-page .leaderboard-sort:hover{border-color:#3a3a48;color:#ddd}
body.leaderboard-page .leaderboard-sort.active{background:#eef0ff;border-color:#eef0ff;color:#111018}
body.leaderboard-page .leaderboard-you{display:grid;grid-template-columns:auto auto 1fr auto;gap:16px;align-items:center;margin-bottom:14px;padding:17px 20px;border:1px solid rgba(142,168,255,.28);border-radius:17px;background:linear-gradient(120deg,rgba(108,103,255,.12),rgba(197,167,255,.055))}
body.leaderboard-page .leaderboard-you-rank{min-width:68px}
body.leaderboard-page .leaderboard-you-rank span,body.leaderboard-page .leaderboard-you-score span{display:block;color:#858592;font:700 9px/1.3 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.5px}
body.leaderboard-page .leaderboard-you-rank b{display:block;margin-top:4px;font-size:25px;font-weight:900}
body.leaderboard-page .leaderboard-you img{width:46px;height:46px;border-radius:13px;object-fit:cover;border:1px solid #353542;background:#111}
body.leaderboard-page .leaderboard-you-name strong{display:block;font-size:15px;font-weight:800}
body.leaderboard-page .leaderboard-you-name span{display:block;margin-top:5px;color:#7c7c89;font:600 10px/1.4 'JetBrains Mono',monospace}
body.leaderboard-page .leaderboard-you-score{text-align:right}
body.leaderboard-page .leaderboard-you-score b{display:block;font-size:23px;font-weight:900}
body.leaderboard-page .leaderboard-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
body.leaderboard-page .leaderboard-podium-card{position:relative;min-height:220px;padding:26px 18px 22px;border:1px solid var(--leaderboard-line);border-radius:18px;background:linear-gradient(180deg,#111117,#0b0b0f);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}
body.leaderboard-page .leaderboard-podium-card.rank-1{background:radial-gradient(circle at 50% 0%,rgba(197,167,255,.13),transparent 55%),linear-gradient(180deg,#14131b,#0b0b0f)}
body.leaderboard-page .leaderboard-podium-card.is-you{border-color:rgba(142,168,255,.34)}
body.leaderboard-page .leaderboard-medal{position:absolute;top:14px;left:14px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;border:1px solid #30303a;background:#0a0a0e;color:#d8d8df;font:800 12px/1 'JetBrains Mono',monospace}
body.leaderboard-page .leaderboard-podium-card img{width:70px;height:70px;border-radius:20px;object-fit:cover;border:1px solid #353542;background:#111;margin-bottom:13px}
body.leaderboard-page .leaderboard-podium-card>strong{font-size:15px;font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.leaderboard-page .leaderboard-you-chip{margin-top:7px;padding:4px 7px;border-radius:999px;background:rgba(142,168,255,.12);border:1px solid rgba(142,168,255,.24);color:#aabaff;font:700 8px/1 'JetBrains Mono',monospace;letter-spacing:.6px}
body.leaderboard-page .leaderboard-podium-score{display:block;margin-top:15px;font-size:26px;font-weight:900}
body.leaderboard-page .leaderboard-podium-label{margin-top:4px;color:#70707d;font:700 9px/1.3 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.5px}
body.leaderboard-page .leaderboard-card{border:1px solid var(--leaderboard-line);border-radius:18px;background:linear-gradient(180deg,var(--leaderboard-panel-2),var(--leaderboard-panel));overflow:hidden}
body.leaderboard-page .leaderboard-card-head{padding:18px 20px;border-bottom:1px solid var(--leaderboard-line-soft);display:flex;justify-content:space-between;gap:18px;align-items:center}
body.leaderboard-page .leaderboard-card-head h2{margin:0;font-size:15px;font-weight:800}
body.leaderboard-page .leaderboard-card-head span{display:block;margin-top:5px;color:#656571;font:600 9px/1.3 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.45px}
body.leaderboard-page .leaderboard-score-note{color:#656571;font:600 9px/1.5 'JetBrains Mono',monospace;text-align:right}
body.leaderboard-page .leaderboard-table-wrap{overflow-x:auto}
body.leaderboard-page .leaderboard-table{width:100%;border-collapse:collapse;min-width:970px}
body.leaderboard-page .leaderboard-table th{padding:11px 14px;border-bottom:1px solid var(--leaderboard-line-soft);color:#666673;background:#09090d;font:700 9px/1.3 'JetBrains Mono',monospace;text-align:right;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}
body.leaderboard-page .leaderboard-table th:nth-child(1),body.leaderboard-page .leaderboard-table th:nth-child(2){text-align:left}
body.leaderboard-page .leaderboard-table td{padding:13px 14px;border-bottom:1px solid var(--leaderboard-line-soft);color:#b8b8c2;font-size:12px;text-align:right;white-space:nowrap}
body.leaderboard-page .leaderboard-table tr:last-child td{border-bottom:0}
body.leaderboard-page .leaderboard-table tbody tr:hover{background:rgba(255,255,255,.018)}
body.leaderboard-page .leaderboard-table tbody tr.is-you{background:rgba(142,168,255,.055)}
body.leaderboard-page .leaderboard-table td:nth-child(1),body.leaderboard-page .leaderboard-table td:nth-child(2){text-align:left}
body.leaderboard-page .leaderboard-rank{font:800 13px/1 'JetBrains Mono',monospace;color:#efeff5 !important}
body.leaderboard-page .leaderboard-user-cell{display:flex;align-items:center;gap:11px;min-width:190px}
body.leaderboard-page .leaderboard-user-cell img{width:36px;height:36px;border-radius:11px;object-fit:cover;border:1px solid #30303a;background:#111;flex-shrink:0}
body.leaderboard-page .leaderboard-user-cell strong{display:block;color:#ededf2;font-size:12px;font-weight:800;max-width:180px;overflow:hidden;text-overflow:ellipsis}
body.leaderboard-page .leaderboard-user-cell span{display:block;margin-top:4px;color:#656571;font:500 9px/1.3 'JetBrains Mono',monospace}
body.leaderboard-page .leaderboard-note{margin-top:14px;padding:16px 18px;border:1px solid var(--leaderboard-line-soft);border-radius:15px;background:#09090d;color:#6e6e79;font-size:11px;line-height:1.65}
body.leaderboard-page .leaderboard-note strong{color:#aaaab5}
body.leaderboard-page .leaderboard-empty,body.leaderboard-page .leaderboard-error{padding:22px;border:1px solid var(--leaderboard-line);border-radius:16px;background:#0d0d12;color:#aaaab4}
body.leaderboard-page .leaderboard-error{border-color:#563131;background:#160d0d;color:#e7c0c0}
@media(max-width:820px){
  body.leaderboard-page .leaderboard-wrap{width:min(100% - 22px,1180px);padding-top:26px}
  body.leaderboard-page .leaderboard-topbar{padding:0 12px}
  body.leaderboard-page .leaderboard-intro{align-items:flex-start;flex-direction:column}
  body.leaderboard-page .leaderboard-community-stat{text-align:left}
  body.leaderboard-page .leaderboard-podium{grid-template-columns:1fr}
  body.leaderboard-page .leaderboard-podium-card{min-height:180px}
  body.leaderboard-page .leaderboard-you{grid-template-columns:auto auto 1fr}
  body.leaderboard-page .leaderboard-you-score{grid-column:1/-1;text-align:left;padding-top:4px;border-top:1px solid rgba(142,168,255,.14)}
  body.leaderboard-page .leaderboard-card-head{align-items:flex-start;flex-direction:column}
  body.leaderboard-page .leaderboard-score-note{text-align:left}
}
@media(max-width:520px){
  body.leaderboard-page .leaderboard-toplink:nth-of-type(2){display:none}
  body.leaderboard-page .leaderboard-you{grid-template-columns:auto 1fr}
  body.leaderboard-page .leaderboard-you-rank{grid-column:1/-1}
  body.leaderboard-page .leaderboard-you-name span{line-height:1.55}
}

/* PROFILE v2 - Milestones, activity history, public sharing */
body.profile-page .milestone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px 20px 20px}
body.profile-page .milestone-badge{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:15px;border:1px solid var(--profile-line-soft);border-radius:15px;background:#0a0a0e;min-width:0}
body.profile-page .milestone-badge.achieved{border-color:rgba(142,168,255,.28);background:linear-gradient(145deg,rgba(142,168,255,.08),rgba(197,167,255,.035))}
body.profile-page .milestone-badge.locked{opacity:.62}
body.profile-page .milestone-icon{width:38px;height:38px;border:1px solid #30303a;border-radius:12px;display:grid;place-items:center;background:#101015;font-size:18px}
body.profile-page .milestone-badge.achieved .milestone-icon{border-color:rgba(142,168,255,.35);box-shadow:0 0 18px rgba(142,168,255,.08)}
body.profile-page .milestone-copy{min-width:0}
body.profile-page .milestone-copy strong{display:block;color:#ededf2;font-size:12px;font-weight:800}
body.profile-page .milestone-copy span{display:block;margin-top:4px;color:#777784;font-size:10px;line-height:1.45}
body.profile-page .milestone-copy progress{appearance:none;-webkit-appearance:none;width:100%;height:5px;margin-top:10px;border:0;border-radius:999px;overflow:hidden;background:#1d1d24}
body.profile-page .milestone-copy progress::-webkit-progress-bar{background:#1d1d24;border-radius:999px}
body.profile-page .milestone-copy progress::-webkit-progress-value{background:linear-gradient(90deg,var(--profile-accent),var(--profile-accent-2));border-radius:999px}
body.profile-page .milestone-copy progress::-moz-progress-bar{background:linear-gradient(90deg,var(--profile-accent),var(--profile-accent-2));border-radius:999px}
body.profile-page .milestone-copy small{display:block;margin-top:5px;color:#61616d;font:600 8px/1.3 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.4px}
body.profile-page .milestone-badge.achieved .milestone-copy small{color:#aabaff}

body.profile-page .activity-calendar-wrap{padding:18px 20px 20px}
body.profile-page .activity-calendar-scroll{overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}
body.profile-page .activity-calendar{display:grid;grid-template-rows:repeat(7,12px);grid-auto-flow:column;grid-auto-columns:12px;gap:4px;width:max-content;margin:0 auto}
body.profile-page .activity-cell{display:block;width:12px;height:12px;border-radius:3px;border:1px solid #202028;background:#111116}
body.profile-page .activity-cell.empty{visibility:hidden}
body.profile-page .activity-cell.level-0{background:#111116;border-color:#202028}
body.profile-page .activity-cell.level-1{background:rgba(142,168,255,.24);border-color:rgba(142,168,255,.2)}
body.profile-page .activity-cell.level-2{background:rgba(142,168,255,.42);border-color:rgba(142,168,255,.3)}
body.profile-page .activity-cell.level-3{background:rgba(197,167,255,.62);border-color:rgba(197,167,255,.38)}
body.profile-page .activity-cell.level-4{background:#c5a7ff;border-color:#d8c6ff;box-shadow:0 0 8px rgba(197,167,255,.22)}
body.profile-page .activity-legend{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px;color:#646470;font:600 9px/1 'JetBrains Mono',monospace}
body.profile-page .activity-legend .activity-cell{display:inline-block;flex:0 0 12px}

body.profile-page .profile-share-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px;border:1px solid rgba(142,168,255,.22);border-radius:13px;background:rgba(142,168,255,.055)}
body.profile-page .profile-share-row strong{display:block;color:#ededf2;font-size:12px}
body.profile-page .profile-share-row span{display:block;margin-top:5px;color:#777784;font:500 10px/1.45 'JetBrains Mono',monospace;overflow-wrap:anywhere}
body.profile-page .profile-share-link{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #343442;border-radius:9px;background:#111118;color:#d7d7df;font-size:11px;font-weight:800;text-decoration:none}
body.profile-page .profile-share-link:hover{border-color:#525264;color:#fff}
body.profile-page .public-profile-label{display:inline-flex;margin:0 0 12px;padding:6px 9px;border:1px solid rgba(142,168,255,.24);border-radius:999px;background:rgba(142,168,255,.07);color:#aabaff;font:700 9px/1 'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.65px}

/* LEADERBOARD v2 - Time periods */
body.leaderboard-page .leaderboard-periods{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
body.leaderboard-page .leaderboard-periods::-webkit-scrollbar{display:none}
body.leaderboard-page .leaderboard-period{flex:0 0 auto;padding:10px 14px;border:1px solid #2d2d39;border-radius:10px;background:#101015;color:#9a9aa7;font-size:12px;font-weight:800;text-decoration:none;transition:.15s ease}
body.leaderboard-page .leaderboard-period:hover{border-color:#444454;color:#fff}
body.leaderboard-page .leaderboard-period.active{border-color:rgba(142,168,255,.4);background:rgba(142,168,255,.1);color:#c9d3ff}

@media(max-width:900px){
  body.profile-page .milestone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body.profile-page .milestone-grid{grid-template-columns:1fr;padding:14px}
  body.profile-page .activity-calendar-wrap{padding:14px}
  body.profile-page .profile-share-row{align-items:stretch;flex-direction:column}
  body.profile-page .profile-share-link{width:100%}
}

/* -------------------------------------------------------------------------
   KESPA STATUS v1
   Public service health + 90-day availability history.
   ------------------------------------------------------------------------- */
body.status-page{
  --status-panel:#0d0d12;
  --status-panel-2:#111117;
  --status-line:#23232d;
  --status-muted:#777783;
  --status-green:#38d47a;
  --status-yellow:#e3b341;
  --status-orange:#e47c3c;
  --status-red:#e05252;
  --status-purple:#8f8fff;
  min-height:100vh;
  overflow:auto;
  background:
    radial-gradient(circle at 75% -15%,rgba(90,84,196,.12),transparent 31%),
    radial-gradient(circle at 10% 105%,rgba(153,0,0,.09),transparent 30%),
    #000001;
  color:#ededf2;
}
body.status-page .status-shell{min-height:100vh;display:flex;flex-direction:column}
body.status-page .status-topbar{position:sticky;z-index:30;top:0;display:flex;min-height:68px;align-items:center;gap:20px;padding:0 max(18px,calc((100vw - 1120px)/2));border-bottom:1px solid rgba(255,255,255,.07);background:rgba(3,3,5,.88);backdrop-filter:blur(18px)}
body.status-page .status-brand{display:flex;align-items:center;gap:10px;min-width:0;color:#fff}
body.status-page .status-brand img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 0 15px rgba(90,84,196,.16))}
body.status-page .status-brand span{display:grid;gap:2px}
body.status-page .status-brand strong{font-size:12px;font-weight:900;letter-spacing:.04em}
body.status-page .status-brand small{color:#62626d;font:700 8px/1.2 JetBrains Mono,monospace;letter-spacing:.09em;text-transform:uppercase}
body.status-page .status-nav{display:flex;align-items:center;gap:7px;margin-left:auto}
body.status-page .status-nav a{padding:9px 11px;border-radius:9px;color:#848490;font-size:10px;font-weight:800}
body.status-page .status-nav a:hover{background:rgba(255,255,255,.035);color:#fff}
body.status-page .status-nav .status-nav-primary{border:1px solid rgba(143,143,255,.17);background:rgba(90,84,196,.07);color:#c3c3ff}
body.status-page .status-wrap{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:52px 0 56px}
body.status-page .status-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:26px;margin-bottom:24px}
body.status-page .status-eyebrow,body.status-page .status-section-kicker{display:block;margin-bottom:9px;color:#7e7ee1;font:700 9px/1.2 JetBrains Mono,monospace;letter-spacing:.1em;text-transform:uppercase}
body.status-page .status-hero h1{margin:0;color:#f8f8fb;font-size:clamp(30px,4.5vw,50px);font-weight:900;letter-spacing:-.045em;line-height:1}
body.status-page .status-hero p{max-width:720px;margin:14px 0 0;color:#747480;font-size:12px;line-height:1.7}
body.status-page .status-updated{flex:0 0 auto;text-align:right;color:#5e5e69;font:600 9px/1.45 JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.04em}
body.status-page .status-updated strong{display:block;margin-top:4px;color:#9a9aa6;font-size:10px;text-transform:none;letter-spacing:0}
body.status-page .status-overall{display:flex;align-items:center;gap:15px;margin-bottom:30px;padding:20px;border:1px solid var(--status-line);border-radius:17px;background:linear-gradient(180deg,rgba(17,17,23,.98),rgba(9,9,13,.98));box-shadow:0 18px 55px rgba(0,0,0,.15)}
body.status-page .status-overall-icon{display:grid;width:43px;height:43px;place-items:center;border-radius:14px;background:rgba(255,255,255,.035)}
body.status-page .status-overall-icon i{width:10px;height:10px;border-radius:50%;background:#777;box-shadow:0 0 14px currentColor}
body.status-page .status-overall strong{display:block;color:#eeeef3;font-size:15px;font-weight:850}
body.status-page .status-overall span{display:block;margin-top:5px;color:#74747f;font-size:10.5px;line-height:1.5}
body.status-page .status-overall.operational{border-color:rgba(56,212,122,.18);background:linear-gradient(135deg,rgba(56,212,122,.055),rgba(10,10,14,.98) 45%)}
body.status-page .status-overall.operational .status-overall-icon i{color:var(--status-green);background:var(--status-green)}
body.status-page .status-overall.degraded,body.status-page .status-overall.maintenance{border-color:rgba(227,179,65,.18);background:linear-gradient(135deg,rgba(227,179,65,.055),rgba(10,10,14,.98) 45%)}
body.status-page .status-overall.degraded .status-overall-icon i,body.status-page .status-overall.maintenance .status-overall-icon i{color:var(--status-yellow);background:var(--status-yellow)}
body.status-page .status-overall.partial,body.status-page .status-overall.major{border-color:rgba(224,82,82,.22);background:linear-gradient(135deg,rgba(153,0,0,.095),rgba(10,10,14,.98) 48%)}
body.status-page .status-overall.partial .status-overall-icon i,body.status-page .status-overall.major .status-overall-icon i{color:var(--status-red);background:var(--status-red)}
body.status-page .status-overall.unknown .status-overall-icon i{color:#6d6d77;background:#6d6d77}
body.status-page .status-page-notice{margin:-12px 0 28px;padding:12px 14px;border:1px solid rgba(227,179,65,.16);border-radius:12px;background:rgba(227,179,65,.045);color:#c9a95d;font-size:10px}
body.status-page .status-section{margin-top:32px}
body.status-page .status-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}
body.status-page .status-section-head h2{margin:0;color:#eeeef3;font-size:17px;font-weight:850;letter-spacing:-.02em}
body.status-page .status-section-kicker{margin-bottom:5px;font-size:8px}
body.status-page .status-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#63636e;font:600 8px/1 JetBrains Mono,monospace}
body.status-page .status-legend span{display:flex;align-items:center;gap:5px}
body.status-page .status-legend i{display:block;width:7px;height:7px;border-radius:2px;background:#292933}
body.status-page .status-legend i.operational{background:var(--status-green)}
body.status-page .status-legend i.degraded{background:var(--status-yellow)}
body.status-page .status-legend i.major{background:var(--status-red)}
body.status-page .status-legend i.unknown{background:#25252d}
body.status-page .status-component-group{margin-top:18px}
body.status-page .status-component-group>h3{margin:0 0 8px;padding:0 2px;color:#696975;font:700 8px/1.2 JetBrains Mono,monospace;letter-spacing:.09em;text-transform:uppercase}
body.status-page .status-component{padding:17px 18px;margin-bottom:9px;border:1px solid var(--status-line);border-radius:15px;background:linear-gradient(180deg,rgba(14,14,19,.98),rgba(9,9,13,.985))}
body.status-page .status-component-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
body.status-page .status-component-name strong{display:block;color:#ececf1;font-size:12px;font-weight:850}
body.status-page .status-component-name span{display:block;max-width:720px;margin-top:5px;color:#60606b;font-size:9.5px;line-height:1.55}
body.status-page .status-component-current{display:flex;align-items:center;gap:7px;flex:0 0 auto;padding:7px 9px;border:1px solid rgba(255,255,255,.07);border-radius:999px;color:#858590;background:rgba(255,255,255,.018);font:750 8px/1 JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.045em}
body.status-page .status-component-current i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
body.status-page .status-component-current.operational{border-color:rgba(56,212,122,.16);color:var(--status-green);background:rgba(56,212,122,.05)}
body.status-page .status-component-current.degraded,body.status-page .status-component-current.maintenance{border-color:rgba(227,179,65,.17);color:var(--status-yellow);background:rgba(227,179,65,.05)}
body.status-page .status-component-current.partial{border-color:rgba(228,124,60,.18);color:var(--status-orange);background:rgba(228,124,60,.055)}
body.status-page .status-component-current.major{border-color:rgba(224,82,82,.2);color:var(--status-red);background:rgba(153,0,0,.07)}
body.status-page .status-component-meta{display:flex;gap:22px;flex-wrap:wrap;margin-top:15px;color:#50505b;font:600 8px/1.35 JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.035em}
body.status-page .status-component-meta span{display:grid;gap:3px}
body.status-page .status-component-meta b{color:#94949f;font-size:9px;text-transform:none;letter-spacing:0}
body.status-page .status-history-scroll{margin-top:15px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}
body.status-page .status-history{display:grid;grid-template-columns:repeat(90,minmax(4px,1fr));gap:3px;min-width:680px}
body.status-page .status-history-cell{display:block;height:26px;border-radius:2px;background:#202028;transition:transform .12s ease,filter .12s ease}
body.status-page .status-history-cell:hover{transform:scaleY(1.12);filter:brightness(1.2)}
body.status-page .status-history-cell.operational{background:rgba(56,212,122,.78)}
body.status-page .status-history-cell.degraded{background:rgba(227,179,65,.82)}
body.status-page .status-history-cell.partial{background:rgba(228,124,60,.84)}
body.status-page .status-history-cell.major{background:rgba(224,82,82,.86)}
body.status-page .status-history-cell.maintenance{background:rgba(143,143,255,.72)}
body.status-page .status-history-cell.unknown{background:#202028}
body.status-page .status-component-detail{margin-top:10px;color:#555560;font-size:9px;line-height:1.45}
body.status-page .status-empty{padding:22px;border:1px dashed #292933;border-radius:14px;background:rgba(255,255,255,.01);color:#5f5f6a;font-size:10px}
body.status-page .status-incidents{display:grid;gap:11px}
body.status-page .status-incident{overflow:hidden;border:1px solid rgba(224,82,82,.2);border-radius:16px;background:linear-gradient(180deg,rgba(34,10,12,.38),rgba(10,10,14,.98) 35%)}
body.status-page .status-incident-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 18px;border-bottom:1px solid rgba(255,255,255,.055)}
body.status-page .status-incident-state{display:block;margin-bottom:5px;color:#e58686;font:800 8px/1.2 JetBrains Mono,monospace;text-transform:uppercase;letter-spacing:.07em}
body.status-page .status-incident h3{margin:0;color:#efeff3;font-size:13px;font-weight:850}
body.status-page .status-incident-head time{color:#575762;font:600 8px/1.4 JetBrains Mono,monospace;text-align:right}
body.status-page .status-incident-components{display:flex;gap:6px;flex-wrap:wrap;padding:11px 18px 0}
body.status-page .status-incident-components span{padding:5px 7px;border:1px solid rgba(255,255,255,.07);border-radius:999px;background:rgba(255,255,255,.02);color:#777782;font:700 7.5px/1 JetBrains Mono,monospace}
body.status-page .status-incident-timeline{display:grid;gap:0;padding:13px 18px 17px}
body.status-page .status-incident-update{position:relative;display:grid;grid-template-columns:16px 1fr;gap:9px;padding:8px 0}
body.status-page .status-incident-update:not(:last-child)::after{position:absolute;top:20px;bottom:-8px;left:5px;width:1px;background:#25252e;content:''}
body.status-page .status-update-dot{position:relative;z-index:1;width:11px;height:11px;margin-top:2px;border:3px solid #16161c;border-radius:50%;background:#898996}
body.status-page .status-incident-update strong{color:#aaaab5;font-size:9px;font-weight:800}
body.status-page .status-incident-update p{margin:5px 0;color:#858590;font-size:10.5px;line-height:1.65}
body.status-page .status-incident-update time{color:#50505a;font:600 8px/1.2 JetBrains Mono,monospace}
body.status-page .status-resolved-list{display:grid;gap:8px}
body.status-page .status-resolved-item{overflow:hidden;border:1px solid var(--status-line);border-radius:14px;background:#0b0b0f}
body.status-page .status-resolved-item summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;cursor:pointer;list-style:none}
body.status-page .status-resolved-item summary::-webkit-details-marker{display:none}
body.status-page .status-resolved-item summary strong{display:block;color:#bdbdc6;font-size:10.5px}
body.status-page .status-resolved-item summary span{display:block;margin-top:4px;color:#565661;font:600 8px/1.2 JetBrains Mono,monospace}
body.status-page .status-resolved-badge{margin:0!important;padding:5px 7px;border:1px solid rgba(56,212,122,.14);border-radius:999px;background:rgba(56,212,122,.045);color:#6ccc8e!important;text-transform:uppercase}
body.status-page .status-resolved-body{display:grid;gap:10px;padding:0 16px 15px;border-top:1px solid rgba(255,255,255,.045)}
body.status-page .status-resolved-update{padding-top:12px}
body.status-page .status-resolved-update strong{color:#8d8d98;font-size:9px}
body.status-page .status-resolved-update p{margin:5px 0;color:#74747f;font-size:10px;line-height:1.6}
body.status-page .status-resolved-update time{color:#4e4e59;font:600 8px/1.2 JetBrains Mono,monospace}
body.status-page .status-footer{display:flex;justify-content:space-between;gap:18px;width:min(1120px,calc(100% - 32px));margin:auto auto 0;padding:22px 0 30px;border-top:1px solid rgba(255,255,255,.055);color:#44444f;font:600 8px/1.5 JetBrains Mono,monospace}
@media(max-width:760px){
  body.status-page .status-topbar{min-height:62px;padding:0 14px}
  body.status-page .status-nav>a:not(.status-nav-primary){display:none}
  body.status-page .status-wrap{width:min(100% - 22px,1120px);padding-top:34px}
  body.status-page .status-hero{align-items:flex-start;flex-direction:column}
  body.status-page .status-updated{text-align:left}
  body.status-page .status-section-head{align-items:flex-start;flex-direction:column}
  body.status-page .status-component-top{align-items:flex-start;flex-direction:column}
  body.status-page .status-component-current{align-self:flex-start}
  body.status-page .status-history{min-width:620px}
  body.status-page .status-incident-head{flex-direction:column}
  body.status-page .status-incident-head time{text-align:left}
  body.status-page .status-footer{flex-direction:column}
}
