/* ══════════════════════════════════════════════════════════════════════════
   REBORN / CONTROL CENTER — staff portal styles (loaded only on the staff page)
   Deep black, layered charcoal glass, metallic silver type, champagne gold kept
   for staff privileges. Motion is CSS-only, transform/opacity, and switches off
   under prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */
.cc-root, .cc {
  --cc-bg: #050505; --cc-bg-2: #090909;
  --cc-panel: rgba(17,17,18,.72); --cc-panel-solid: #111112; --cc-raise: rgba(255,255,255,.035);
  --cc-line: rgba(255,255,255,.07); --cc-line-2: rgba(255,255,255,.12); --cc-line-hi: rgba(255,255,255,.22);
  --cc-text: #eceef1; --cc-dim: #a3a8b0; --cc-mute: #6f747c;
  --cc-silver: linear-gradient(180deg, #ffffff 0%, #d9dde3 45%, #8f959e 100%);
  --cc-silver-btn: linear-gradient(180deg, #f7f8fa 0%, #cfd3d9 55%, #a2a8b1 100%);
  --cc-gold: #d8bd85; --cc-gold-hi: #f1dfb6; --cc-gold-soft: rgba(216,189,133,.1); --cc-gold-line: rgba(216,189,133,.34);
  --cc-gold-btn: linear-gradient(180deg, #f3e3bd 0%, #d7b97c 55%, #a9874a 100%);
  --cc-ok: #4fd18b; --cc-warn: #e8b35a; --cc-bad: #f0686b; --cc-info: #8db5ff;
  --cc-r: 14px; --cc-r-sm: 10px;
  --cc-ease: cubic-bezier(.2, .8, .2, 1); --cc-spring: cubic-bezier(.34, 1.36, .64, 1);
  --cc-head: 'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --cc-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cc-text);
}
.cc .li, .cc-root .li { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.li-spin { animation: cc-spin 1s linear infinite; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
[x-cloak] { display: none !important; }

/* ── Full-screen app mode ── */
html.cc-mode, html.cc-mode body { overflow: hidden; }
html.cc-mode .rc-staff-badge, html.cc-mode .sa-header { visibility: hidden; }
.cc { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 264px minmax(0, 1fr); background: var(--cc-bg); transition: grid-template-columns .45s var(--cc-spring); font-family: var(--cc-head); font-stretch: 100%; }
.cc.is-rail { grid-template-columns: 76px minmax(0, 1fr); }
.cc-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 500px at 70% -10%, rgba(255,255,255,.06), transparent 60%),
  radial-gradient(700px 500px at 10% 110%, rgba(216,189,133,.035), transparent 60%),
  linear-gradient(180deg, var(--cc-bg-2), var(--cc-bg)); }
.cc-bg::after { content: ""; position: absolute; inset: 0; opacity: .035; background-image: var(--rc-grain, none); background-size: 200px 200px; }

/* ── Sidebar ── */
.cc-side { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100vh; height: 100dvh; padding: 18px 14px 14px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  background: linear-gradient(180deg, rgba(14,14,15,.92), rgba(7,7,8,.96)); border-right: 1px solid var(--cc-line); }
.cc-side::-webkit-scrollbar { display: none; }
.cc-side::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 40%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.28), transparent); pointer-events: none; }
.cc-side-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; text-align: center; }
.cc-side-emblem { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(255,255,255,.12)); animation: cc-float 7s ease-in-out infinite; }
@keyframes cc-float { 50% { transform: translateY(-3px) rotate(-1.5deg); filter: drop-shadow(0 10px 22px rgba(255,255,255,.2)); } }
.cc-wordmark { margin: 0; font: 900 1.5rem/1 var(--cc-head); font-stretch: 125%; letter-spacing: .04em; text-transform: uppercase; transform: skewX(-8deg); background: var(--cc-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-sub-caps { margin: 5px 0 0; font: 600 .6rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .36em; text-transform: uppercase; color: var(--cc-dim); }
.cc-icon-btn.cc-side-close { display: none; position: absolute; right: 10px; top: 10px; }

.cc-me { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: var(--cc-r); background: var(--cc-raise); border: 1px solid var(--cc-line); }
.cc-me-av { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #2a2a2c, #0b0b0c); border: 1px solid var(--cc-line-2); }
.cc-me-av img { width: 28px; height: 28px; object-fit: contain; }
.cc-online { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--cc-ok); box-shadow: 0 0 0 2px #0b0b0c, 0 0 10px rgba(79,209,139,.8); }
.cc-me-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-me-txt b { font-size: .98rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-role { display: inline-flex; align-items: center; gap: 5px; font: 800 .62rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-dim); }
.cc-role .li { width: 12px; height: 12px; }
.cc-role.is-owner { color: var(--cc-gold); }
.cc-me-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--cc-mute); }
.cc-me-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-ok); box-shadow: 0 0 6px var(--cc-ok); }

.cc-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-nav-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px 6px; border: 0; background: none; cursor: pointer; font: 700 .62rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--cc-mute); }
.cc-nav-head:hover { color: var(--cc-dim); }
.cc-nav-caret { width: 13px !important; height: 13px !important; transition: transform .3s var(--cc-ease); }
.cc-nav-group.is-closed .cc-nav-caret { transform: rotate(-90deg); }
.cc-nav-items { display: grid; gap: 2px; overflow: hidden; transition: grid-template-rows .35s var(--cc-ease), opacity .25s; grid-template-rows: 1fr; }
.cc-nav-items > * { min-height: 0; }
.cc-nav-group.is-closed .cc-nav-items { display: none; }
.cc-nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: var(--cc-r-sm); border: 1px solid transparent; background: none; cursor: pointer; color: var(--cc-dim); font: 600 .9rem/1 var(--cc-head); text-align: left; transition: color .2s, background-color .25s, border-color .25s, box-shadow .25s; }
.cc-nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.cc-nav-item.is-on { color: #fff; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border-color: var(--cc-line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px -14px rgba(255,255,255,.35); }
.cc-nav-item.is-on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cc-silver-btn); box-shadow: 0 0 12px rgba(255,255,255,.55); }
.cc-nav-item:focus-visible, .cc-btn:focus-visible, .cc-icon-btn:focus-visible, .cc-chip:focus-visible, .cc-page-btn:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.cc-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
.cc-nav-badge { padding: 3px 8px; border-radius: 999px; font: 700 .68rem/1 var(--cc-head); color: var(--cc-text); background: rgba(255,255,255,.08); border: 1px solid var(--cc-line-2); }

.cc-side-foot { display: grid; gap: 8px; }
.cc-staffmode { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; border-radius: var(--cc-r); cursor: pointer; text-align: left; color: var(--cc-gold-hi);
  border: 1px solid var(--cc-gold-line); background: linear-gradient(135deg, rgba(216,189,133,.16), rgba(216,189,133,.03) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 30px -18px rgba(216,189,133,.8); transition: border-color .25s, box-shadow .25s; }
.cc-staffmode:hover { border-color: rgba(216,189,133,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 40px -16px rgba(216,189,133,.9); }
.cc-staffmode .li:first-child { width: 22px; height: 22px; color: var(--cc-gold); }
.cc-staffmode-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-staffmode-txt b { font: 800 .8rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; }
.cc-staffmode-txt small { font-size: .72rem; color: rgba(241,223,182,.7); }
.cc-rail-btn { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: var(--cc-r-sm); border: 1px solid var(--cc-line); background: none; color: var(--cc-mute); cursor: pointer; font: 600 .82rem/1 var(--cc-head); transition: color .2s, border-color .2s; }
.cc-rail-btn:hover { color: #fff; border-color: var(--cc-line-2); }

/* rail */
.cc.is-rail .cc-side { padding: 16px 10px; align-items: stretch; }
.cc.is-rail .cc-side-brand-txt, .cc.is-rail .cc-me-txt, .cc.is-rail .cc-nav-label, .cc.is-rail .cc-nav-badge, .cc.is-rail .cc-staffmode-txt, .cc.is-rail .cc-staffmode .li:last-child { display: none; }
.cc.is-rail .cc-side-emblem { width: 40px; height: 40px; }
.cc.is-rail .cc-me { justify-content: center; padding: 8px; background: none; border-color: transparent; }
.cc.is-rail .cc-nav-head { justify-content: center; padding: 10px 0 4px; font-size: 0; }
.cc.is-rail .cc-nav-head::before { content: ""; width: 18px; height: 1px; background: var(--cc-line-2); }
.cc.is-rail .cc-nav-caret { display: none; }
.cc.is-rail .cc-nav-group.is-closed .cc-nav-items { display: grid; }
.cc.is-rail .cc-nav-item { justify-content: center; padding: 0; }
.cc.is-rail .cc-nav-item.is-on::before { left: -10px; }
.cc.is-rail .cc-staffmode { justify-content: center; padding: 10px; }
.cc.is-rail .cc-rail-btn { justify-content: center; padding: 0; }

/* ── Main column ── */
.cc-main { position: relative; z-index: 1; min-width: 0; height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.cc-top { position: relative; padding: 24px 28px 10px; overflow: hidden; animation: cc-drop .8s var(--cc-ease) both; }
@keyframes cc-drop { from { opacity: 0; transform: translateY(-10px); } }
.cc-top-row { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.cc-icon-btn.cc-menu-btn { display: none; }
.cc-title { flex: 1; min-width: 0; }
.cc-title h1 { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font: 600 clamp(1.5rem, 2.4vw, 2.15rem)/1.05 var(--cc-head); font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; color: #e7e9ec; }
.cc-title-brand { font-weight: 900; font-stretch: 125%; transform: skewX(-8deg); display: inline-block; background: var(--cc-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-title-slash { color: var(--cc-mute); font-weight: 300; }
.cc-title p { margin: 8px 0 0; font-size: .95rem; color: var(--cc-dim); }
.cc-top-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cc-top-meta { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 0; margin-top: 14px; }
.cc-top-meta > * + * { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--cc-line-2); }
.cc-sys { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font: 700 .82rem/1 var(--cc-head); border: 1px solid var(--cc-line-2); background: var(--cc-raise); }
.cc-sys-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc-mute); }
.cc-sys.is-ok .cc-sys-dot { background: var(--cc-ok); box-shadow: 0 0 0 0 rgba(79,209,139,.6); animation: cc-ping 2.4s infinite; }
.cc-sys.is-warn .cc-sys-dot { background: var(--cc-warn); } .cc-sys.is-bad .cc-sys-dot { background: var(--cc-bad); animation: cc-ping-bad 1.6s infinite; }
.cc-sys.is-pending .cc-sys-dot { animation: cc-fade 1.2s ease-in-out infinite alternate; }
@keyframes cc-ping { 70% { box-shadow: 0 0 0 8px rgba(79,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(79,209,139,0); } }
@keyframes cc-ping-bad { 70% { box-shadow: 0 0 0 8px rgba(240,104,107,0); } 100% { box-shadow: 0 0 0 0 rgba(240,104,107,0); } }
@keyframes cc-fade { to { opacity: .3; } }
.cc-clock { display: inline-flex; align-items: center; gap: 11px; color: var(--cc-dim); }
.cc-clock .li { width: 22px; height: 22px; color: var(--cc-text); }
.cc-clock > span { display: flex; flex-direction: column; gap: 3px; }
.cc-clock b { font-size: .86rem; color: var(--cc-text); } .cc-clock small { font-size: .78rem; }

/* buttons */
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: var(--cc-r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 .86rem/1 var(--cc-head); color: var(--cc-text); transition: transform .2s var(--cc-ease), filter .2s, border-color .2s, background-color .2s, box-shadow .2s, color .2s; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:disabled { opacity: .5; cursor: default; transform: none; }
.cc-btn--sm { min-height: 34px; padding: 0 12px; font-size: .8rem; }
.cc-btn--xs { min-height: 30px; padding: 0 10px; font-size: .74rem; gap: 6px; }
.cc-btn--xs .li, .cc-btn--sm .li { width: 15px; height: 15px; }
.cc-btn--ghost { background: rgba(255,255,255,.03); border-color: var(--cc-line-2); }
.cc-btn--ghost:hover { border-color: var(--cc-line-hi); background: rgba(255,255,255,.06); }
.cc-btn--ghost.is-danger:hover, .cc-icon-btn.is-danger:hover { color: #ffb3b5; border-color: rgba(240,104,107,.5); background: rgba(240,104,107,.08); }
.cc-btn--silver { color: #0b0b0c; background: var(--cc-silver-btn); box-shadow: inset 0 1px 0 #fff, 0 10px 26px -14px rgba(255,255,255,.6); }
.cc-btn--silver:hover { filter: brightness(1.05); }
.cc-btn--gold { color: #1b1408; background: var(--cc-gold-btn); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 26px -14px rgba(216,189,133,.8); }
.cc-btn--gold:hover { filter: brightness(1.05); }
.cc-btn--danger { color: #fff; background: linear-gradient(180deg, #f17b7e, #c9393d); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px -14px rgba(240,104,107,.8); }
.cc-icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--cc-r-sm); border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.03); color: var(--cc-text); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.cc-icon-btn:hover { border-color: var(--cc-line-hi); background: rgba(255,255,255,.06); }
.cc-icon-btn:disabled { opacity: .35; cursor: default; }
.cc-icon-btn--sm { width: 32px; height: 32px; } .cc-icon-btn--sm .li { width: 15px; height: 15px; }
.cc-link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--cc-dim); font: 600 .8rem/1 var(--cc-head); text-decoration: none; }
.cc-link-btn:hover { color: #fff; } .cc-link-btn .li { width: 14px; height: 14px; }
.cc-search-btn { display: flex; align-items: center; gap: 10px; width: 290px; height: 42px; padding: 0 8px 0 14px; border-radius: var(--cc-r-sm); border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.03); color: var(--cc-mute); cursor: pointer; font: 500 .86rem/1 var(--cc-head); transition: border-color .2s, background-color .2s; }
.cc-search-btn:hover { border-color: var(--cc-line-hi); background: rgba(255,255,255,.05); color: var(--cc-dim); }
.cc-search-btn span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { padding: 4px 7px; border-radius: 6px; border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.04); font: 600 .68rem/1 var(--cc-mono); color: var(--cc-dim); }
.cc-bell-dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 800 .62rem/1 var(--cc-head); color: #1b1408; background: var(--cc-gold-btn); box-shadow: 0 0 0 2px var(--cc-bg); }
.cc-avatar-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--cc-line-2); cursor: pointer; display: grid; place-items: center; font: 800 .95rem/1 var(--cc-head); color: #0b0b0c; background: var(--cc-silver-btn); box-shadow: inset 0 1px 0 #fff; transition: box-shadow .2s; }
.cc-avatar-btn:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(255,255,255,.12); }

/* popovers */
.cc-pop-wrap { position: relative; }
.cc-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; min-width: 240px; padding: 6px; border-radius: var(--cc-r); border: 1px solid var(--cc-line-2); background: rgba(16,16,17,.94); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 70px -24px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05); transform-origin: top right; }
.cc-pop--notif { width: min(380px, calc(100vw - 32px)); padding: 0; }
.cc-pop-in { transition: opacity .18s ease, transform .22s var(--cc-ease); }
.cc-pop-from { opacity: 0; transform: translateY(-6px) scale(.98); }
.cc-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--cc-line); font-size: .9rem; }
.cc-pop-empty { margin: 0; padding: 22px; text-align: center; font-size: .84rem; color: var(--cc-mute); }
.cc-pop-profile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid var(--cc-line); margin-bottom: 4px; }
.cc-menu-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--cc-text); cursor: pointer; font: 500 .86rem/1.2 var(--cc-head); text-align: left; text-decoration: none; transition: background-color .15s; }
.cc-menu-item:hover, .cc-menu-item.is-on { background: rgba(255,255,255,.06); }
.cc-menu-item .li { width: 16px; height: 16px; color: var(--cc-dim); }
.cc-menu-item small { margin-left: auto; font-size: .72rem; color: var(--cc-mute); }
.cc-menu-item.is-danger { color: #ffb3b5; } .cc-menu-item.is-danger .li { color: #ffb3b5; }
.cc-notif-list { max-height: 420px; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.cc-notif { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; align-items: start; width: 100%; padding: 11px 10px; border: 0; border-radius: 10px; background: none; color: var(--cc-text); cursor: pointer; text-align: left; }
.cc-notif:hover { background: rgba(255,255,255,.05); }
.cc-notif.is-unread::after { content: ""; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--cc-gold); }
.cc-notif-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--cc-dim); }
.cc-notif.is-warn .cc-notif-ic { color: var(--cc-warn); background: rgba(232,179,90,.1); } .cc-notif.is-bad .cc-notif-ic { color: var(--cc-bad); background: rgba(240,104,107,.1); }
.cc-notif-ic .li { width: 16px; height: 16px; }
.cc-notif-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-notif-txt b { font-size: .84rem; font-weight: 600; } .cc-notif-txt small { font-size: .74rem; color: var(--cc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-notif-when { font-size: .7rem; color: var(--cc-mute); white-space: nowrap; }

/* ── Content ── */
.cc-view { position: relative; padding: 14px 28px 40px; }
.cc-page { display: flex; flex-direction: column; gap: 18px; }
.cc-page-in { transition: opacity .35s ease, transform .45s var(--cc-ease); }
.cc-page-from { opacity: 0; transform: translateY(8px); }
.cc-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cc-in { animation: cc-rise .7s var(--cc-ease) both; animation-delay: calc(var(--d, 0) * 55ms + 120ms); }
@keyframes cc-rise { from { opacity: 0; transform: translateY(12px); } }
.cc-toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; max-width: min(420px, calc(100vw - 48px)); padding: 13px 16px; border-radius: 12px; font-size: .86rem; color: var(--cc-text); background: rgba(18,18,19,.96); border: 1px solid var(--cc-line-2); box-shadow: 0 24px 60px -24px rgba(0,0,0,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* panels */
.cc-panel { position: relative; min-width: 0; padding: 20px; border-radius: var(--cc-r); background: var(--cc-panel); border: 1px solid var(--cc-line);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 30px 60px -40px rgba(0,0,0,.9); }
.cc-panel::before { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); pointer-events: none; }
.cc-panel--gold { border-color: var(--cc-gold-line); }
.cc-panel--gold::before { background: linear-gradient(90deg, transparent, rgba(216,189,133,.6), transparent); }
.cc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cc-panel-title { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.cc-panel-title > .li { width: 26px; height: 26px; margin-top: 1px; color: #e8eaed; stroke-width: 1.6; }
.cc-panel-title h3 { margin: 0; font: 800 1.02rem/1.15 var(--cc-head); font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; color: #f3f4f6; }
.cc-panel-title p { margin: 4px 0 0; font-size: .82rem; color: var(--cc-dim); }
.cc-panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-reveal { border-color: var(--cc-gold-line); box-shadow: 0 0 0 3px rgba(216,189,133,.05), 0 0 60px -26px rgba(216,189,133,.7); }
.cc-row { display: grid; gap: 18px; align-items: start; min-width: 0; }
.cc-row--a { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.cc-row--b { grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr) minmax(0, 1fr); }
.cc-row--c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-h4 { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font: 800 .7rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-dim); }
.cc-h4 .li { width: 14px; height: 14px; color: var(--cc-gold); }
.cc-kicker { margin: 0; font: 700 .66rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .22em; text-transform: uppercase; color: var(--cc-mute); }
.cc-muted { color: var(--cc-mute); } .cc-small { font-size: .82rem; margin: 0; }
.cc-hint { margin: 14px 0 0; font-size: .76rem; line-height: 1.55; color: var(--cc-mute); }
.cc-hint code, .cc-empty code, .ccx-sub code { font: .76rem var(--cc-mono); color: var(--cc-text); }
.cc-err { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .84rem; color: #ffb3b5; background: rgba(240,104,107,.08); border: 1px solid rgba(240,104,107,.3); }
.cc-ok { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .84rem; color: #9ae8bf; background: rgba(79,209,139,.08); border: 1px solid rgba(79,209,139,.3); }
.cc-empty { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--cc-r); border: 1px dashed var(--cc-line-2); background: rgba(255,255,255,.015); }
.cc-empty > .li { width: 26px; height: 26px; color: var(--cc-dim); }
.cc-empty h4 { margin: 0 0 4px; font-size: .95rem; } .cc-empty p { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--cc-dim); max-width: 620px; }

/* skeletons */
.cc-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: cc-shimmer 1.4s ease-in-out infinite; }
.cc-skel--num { width: 60%; height: 30px; } .cc-skel--row { width: 100%; height: 16px; }
@keyframes cc-shimmer { to { background-position: -200% 0; } }

/* ── Stats ── */
.cc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cc-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 14px; border-radius: var(--cc-r);
  background: linear-gradient(180deg, rgba(22,22,23,.85), rgba(11,11,12,.85)); border: 1px solid var(--cc-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .35s var(--cc-ease), border-color .3s, box-shadow .3s; }
.cc-stat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.35), transparent 35%, transparent 65%, rgba(255,255,255,.12)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.cc-stat:hover { transform: translateY(-2px); border-color: var(--cc-line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px -24px rgba(255,255,255,.18); }
.cc-stat:hover::before { opacity: 1; }
.cc-stat.is-big { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.08), transparent 55%), linear-gradient(180deg, rgba(26,26,27,.9), rgba(12,12,13,.9)); border-color: var(--cc-line-2); }
.cc-stat.is-big::before { opacity: .6; }
.cc-stat-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-stat-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: #e9ebee; background: rgba(255,255,255,.05); border: 1px solid var(--cc-line); }
.cc-stat-ic .li { width: 18px; height: 18px; }
.cc-stat-label { font: 700 .7rem/1.2 var(--cc-head); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-stat-val { min-height: 38px; display: flex; align-items: center; }
.cc-stat-val b { font: 800 clamp(1.45rem, 1.8vw, 1.95rem)/1 var(--cc-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: #fff; }
.cc-stat.is-big .cc-stat-val b { background: var(--cc-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-stat-val b.is-na { color: var(--cc-mute); }
.cc-stat-foot { display: flex; align-items: flex-end; gap: 8px; min-height: 30px; }
.cc-stat-foot small { flex: 1; min-width: 0; font-size: .72rem; color: var(--cc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-spark { width: 84px; height: 30px; flex-shrink: 0; }
.cc-spark svg { width: 100%; height: 100%; overflow: visible; }
.cc-spark-line { fill: none; stroke: #e7eaee; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-trend { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; font: 700 .7rem/1 var(--cc-head); white-space: nowrap; border: 1px solid; }
.cc-trend .li { width: 12px; height: 12px; }
.cc-trend.is-up { color: #8fe3b6; background: rgba(79,209,139,.09); border-color: rgba(79,209,139,.3); }
.cc-trend.is-down { color: #ffadaf; background: rgba(240,104,107,.09); border-color: rgba(240,104,107,.3); }
.cc-stat.is-live .cc-stat-ic { color: var(--cc-ok); }

/* ── Servers ── */
.cc-servers { display: grid; gap: 12px; }
.cc-server { border-radius: var(--cc-r); border: 1px solid var(--cc-line); background: rgba(255,255,255,.018); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.cc-server:hover { border-color: var(--cc-line-2); box-shadow: 0 16px 40px -28px rgba(255,255,255,.25); }
.cc-server-main { display: grid; grid-template-columns: 168px minmax(0, 1.1fr) minmax(0, 1fr) minmax(90px, .9fr) 22px; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; cursor: pointer; }
.cc-server-art { position: relative; height: 82px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; padding: 0 14px; background: #0c0c0d center 30% / cover no-repeat; filter: grayscale(1) contrast(1.1); }
.cc-server-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.85), rgba(5,5,5,.25)); }
.cc-server-art span { position: relative; z-index: 1; font: 900 1.5rem/1 var(--cc-head); font-stretch: 125%; letter-spacing: .02em; transform: skewX(-8deg); background: var(--cc-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-server-id { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cc-server-id b { font-size: 1rem; font-weight: 700; }
.cc-server-id small, .cc-server-health { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--cc-dim); }
.cc-server-id small .li, .cc-server-health .li { width: 13px; height: 13px; }
.cc-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font: 800 .66rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; border: 1px solid; transition: color .5s, background-color .5s, border-color .5s; }
.cc-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: background-color .5s; }
.cc-status.is-online { color: #8fe3b6; background: rgba(79,209,139,.08); border-color: rgba(79,209,139,.35); }
.cc-status.is-online i { box-shadow: 0 0 0 0 rgba(79,209,139,.6); animation: cc-ping 2.4s infinite; }
.cc-status.is-maintenance { color: #f1c985; background: rgba(232,179,90,.08); border-color: rgba(232,179,90,.35); }
.cc-status.is-offline { color: #ffadaf; background: rgba(240,104,107,.08); border-color: rgba(240,104,107,.35); }
.cc-status.is-offline i { animation: cc-ping-bad 1.6s infinite; }
.cc-status.is-unknown, .cc-status.is-soon { color: var(--cc-dim); background: rgba(255,255,255,.04); border-color: var(--cc-line-2); }
.cc-server-pop { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-server-count { display: flex; align-items: center; gap: 9px; }
.cc-server-count .li { width: 20px; height: 20px; color: var(--cc-dim); }
.cc-server-count b { font: 800 1.7rem/1 var(--cc-head); font-variant-numeric: tabular-nums; color: #fff; }
.cc-server-pop > small { font: 700 .62rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-mute); }
.cc-server-pop .cc-server-health { margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .72rem; }
.cc-server-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 36px; }
.cc-server-bars i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #f2f4f6, rgba(242,244,246,.3)); transform-origin: bottom; animation: cc-bar .9s var(--cc-ease) both; animation-delay: calc(var(--bi, 0) * 18ms + 300ms); }
@keyframes cc-bar { from { transform: scaleY(0); } }
.cc-server.is-maintenance .cc-server-bars i { background: linear-gradient(180deg, #f1c985, rgba(241,201,133,.25)); }
.cc-server.is-offline .cc-server-bars i, .cc-server.is-unknown .cc-server-bars i { background: rgba(255,255,255,.18); }
.cc-server-nobars { font-size: .72rem; align-self: center; }
.cc-server-chev { color: var(--cc-mute); transition: transform .3s var(--cc-ease); }
.cc-server-chev.is-open { transform: rotate(90deg); }
.cc-server-more { padding: 4px 16px 16px; border-top: 1px solid var(--cc-line); background: rgba(0,0,0,.18); }
.cc-server.is-unknown .cc-server-body { padding: 16px; display: grid; gap: 8px; }
.cc-expand { transition: opacity .3s ease, transform .35s var(--cc-ease); }
.cc-expand-from { opacity: 0; transform: translateY(-6px); }

/* ── Analytics ── */
.cc-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.02); }
.cc-seg button { min-width: 48px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; font: 700 .78rem/1 var(--cc-head); color: var(--cc-dim); transition: color .2s, background-color .25s, border-color .25s, box-shadow .25s; }
.cc-seg button:hover { color: #fff; }
.cc-seg button.is-on { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border-color: var(--cc-line-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.cc-seg--metric { margin: -4px 0 14px; }
.cc-chart-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cc-chart-sum > span:first-child { width: 100%; font-size: .78rem; color: var(--cc-dim); }
.cc-chart-sum b { font: 800 1.9rem/1 var(--cc-head); font-variant-numeric: tabular-nums; color: #fff; }
.cc-chart { position: relative; cursor: crosshair; touch-action: pan-y; }
.cc-chart-svg svg { display: block; width: 100%; height: auto; }
.cc-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.cc-axis { fill: var(--cc-mute); font: 500 10.5px var(--cc-head); text-anchor: middle; }
.cc-axis--y { text-anchor: end; }
.cc-area-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cc-draw 1.3s var(--cc-ease) .15s forwards; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.cc-area-fill { opacity: 0; animation: cc-fadein 1s ease .5s forwards; }
.cc-area-dot { fill: #0b0b0c; stroke: #fff; stroke-width: 2.4; opacity: 0; animation: cc-fadein .4s ease 1.3s forwards; }
@keyframes cc-draw { to { stroke-dashoffset: 0; } }
@keyframes cc-fadein { to { opacity: 1; } }
.cc-tip { position: absolute; top: 4px; z-index: 2; pointer-events: none; padding: 8px 11px; border-radius: 9px; background: rgba(20,20,21,.96); border: 1px solid var(--cc-line-hi); box-shadow: 0 14px 30px -12px rgba(0,0,0,.9); white-space: nowrap; display: flex; flex-direction: column; gap: 3px; transition: left .12s ease-out; }
.cc-tip small { font-size: .7rem; color: var(--cc-dim); } .cc-tip b { font-size: .92rem; }
.cc-chart-guide { position: absolute; top: 6%; bottom: 12%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.4), transparent); pointer-events: none; transition: left .12s ease-out; }

/* ── Tables ── */
.cc-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.cc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cc-table th { padding: 10px 10px; text-align: left; font: 700 .64rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-mute); border-bottom: 1px solid var(--cc-line); white-space: nowrap; }
.cc-table th button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.cc-table th button:hover { color: var(--cc-text); } .cc-table th .li { width: 12px; height: 12px; opacity: .7; }
.cc-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.cc-table tbody tr:last-child td { border-bottom: 0; }
.cc-table tr.is-row { cursor: pointer; transition: background-color .2s; }
.cc-table tr.is-row:hover td { background: rgba(255,255,255,.035); }
.cc-table tr.is-row td:first-child { border-radius: 9px 0 0 9px; } .cc-table tr.is-row td:last-child { border-radius: 0 9px 9px 0; }
.cc-table code { font: .8rem var(--cc-mono); color: #e9ebee; }
.is-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-empty-row { padding: 30px 10px !important; text-align: center; color: var(--cc-mute); }
.cc-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cc-who > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .cc-who b { font-weight: 600; } .cc-who small { font-size: .72rem; color: var(--cc-mute); }
.cc-av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem/1 var(--cc-head); color: #e9ebee; background: radial-gradient(circle at 30% 25%, #2b2b2d, #0f0f10); border: 1px solid var(--cc-line-2); }
.cc-av .li { width: 20px; height: 20px; }
.cc-av.is-online { box-shadow: 0 0 0 2px var(--cc-bg), 0 0 0 4px rgba(79,209,139,.8); }
.cc-av.is-gold { color: #1b1408; background: var(--cc-gold-btn); border: 0; }
.cc-av--md { width: 40px; height: 40px; } .cc-av--lg { width: 50px; height: 50px; font-size: 1.05rem; }
.cc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 800 .64rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--cc-line-2); color: var(--cc-dim); background: rgba(255,255,255,.04); transition: color .4s, background-color .4s, border-color .4s; }
.cc-badge.is-ok { color: #8fe3b6; background: rgba(79,209,139,.09); border-color: rgba(79,209,139,.32); box-shadow: 0 0 16px -8px rgba(79,209,139,.7); }
.cc-badge.is-warn { color: #f1c985; background: rgba(232,179,90,.09); border-color: rgba(232,179,90,.34); }
.cc-badge.is-bad { color: #ffadaf; background: rgba(240,104,107,.09); border-color: rgba(240,104,107,.34); }
.cc-badge.is-info { color: #bcd3ff; background: rgba(141,181,255,.08); border-color: rgba(141,181,255,.3); }
.cc-badge.is-gold { color: #1b1408; background: var(--cc-gold-btn); border-color: transparent; }
.cc-badge.is-muted { color: #9aa0a8; }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-mute); flex-shrink: 0; }
.cc-dot.is-ok { background: var(--cc-ok); } .cc-dot.is-warn { background: var(--cc-warn); } .cc-dot.is-bad { background: var(--cc-bad); }
.cc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .8rem; }
.cc-pages { display: flex; gap: 4px; }
.cc-page-btn { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.02); color: var(--cc-dim); cursor: pointer; font: 700 .8rem/1 var(--cc-head); display: inline-grid; place-items: center; transition: color .2s, border-color .2s, background-color .2s; }
.cc-page-btn .li { width: 15px; height: 15px; }
.cc-page-btn:hover:not(:disabled) { color: #fff; border-color: var(--cc-line-hi); }
.cc-page-btn.is-on { color: #fff; border-color: var(--cc-line-hi); background: rgba(255,255,255,.1); }
.cc-page-btn:disabled { opacity: .35; cursor: default; }
.cc-row-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cc-row-actions--start { justify-content: flex-start; margin-top: 4px; }

/* toolbar, search, chips */
.cc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cc-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 560px; }
.cc-search > .li { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--cc-mute); pointer-events: none; }
.cc-search input, .cc-select, .cc-field input, .cc-link-row input, .cc-form-row input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--cc-r-sm); border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.025); color: var(--cc-text); font: 500 .88rem var(--cc-head); outline: none; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.cc-search input { padding-left: 38px; }
.cc-search input:focus, .cc-select:focus, .cc-field input:focus, .cc-link-row input:focus, .cc-form-row input:focus { border-color: var(--cc-line-hi); background: rgba(255,255,255,.045); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.cc-search input::placeholder, .cc-field input::placeholder, .cc-link-row input::placeholder, .cc-form-row input::placeholder { color: #5c6168; }
.cc-search--sm { flex: 0 1 220px; } .cc-search--sm input { height: 34px; font-size: .8rem; }
.cc-search--wide { max-width: 600px; }
.cc-select { width: auto; min-width: 130px; flex-shrink: 0; cursor: pointer; padding-right: 30px; }
.cc-select option { background: #111; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.cc-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.02); color: var(--cc-dim); cursor: pointer; font: 600 .78rem/1 var(--cc-head); transition: color .2s, background-color .25s, border-color .25s; }
.cc-chip:hover { color: #fff; border-color: var(--cc-line-hi); }
.cc-chip.is-on { color: #0b0b0c; background: var(--cc-silver-btn); border-color: transparent; }
.cc-chip .li { width: 13px; height: 13px; }

/* health */
.cc-sys-banner { display: flex; align-items: center; justify-content: center; gap: 9px; margin: -2px 0 12px; padding: 10px 14px; border-radius: 999px; font: 700 .86rem/1 var(--cc-head); border: 1px solid var(--cc-line-2); background: rgba(255,255,255,.03); color: var(--cc-dim); transition: all .5s; }
.cc-sys-banner .li { width: 17px; height: 17px; }
.cc-sys-banner.is-ok { color: #9ae8bf; border-color: rgba(79,209,139,.35); background: rgba(79,209,139,.07); box-shadow: 0 0 30px -14px rgba(79,209,139,.7); }
.cc-sys-banner.is-warn { color: #f1c985; border-color: rgba(232,179,90,.35); background: rgba(232,179,90,.07); }
.cc-sys-banner.is-bad { color: #ffadaf; border-color: rgba(240,104,107,.35); background: rgba(240,104,107,.07); }
.cc-sys-banner.is-pending .li { animation: cc-spin 1s linear infinite; }
.cc-health { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cc-health-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 16px; align-items: center; gap: 11px; width: 100%; padding: 9px 6px; border: 0; border-radius: 9px; background: none; color: var(--cc-text); cursor: pointer; text-align: left; font: 500 .86rem/1.2 var(--cc-head); transition: background-color .2s; }
.cc-health-row:hover { background: rgba(255,255,255,.035); }
.cc-health-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-health-chev { width: 14px !important; height: 14px !important; color: var(--cc-mute); transition: transform .3s var(--cc-ease); }
.cc-health li.is-open .cc-health-chev { transform: rotate(90deg); }
.cc-hdot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc-mute); }
.cc-hdot.is-ok { background: var(--cc-ok); box-shadow: 0 0 8px rgba(79,209,139,.7); }
.cc-hdot.is-warn { background: var(--cc-warn); } .cc-hdot.is-bad { background: var(--cc-bad); animation: cc-ping-bad 1.6s infinite; }
.cc-hdot.is-pending { animation: cc-fade 1s ease-in-out infinite alternate; }
.cc-hpill { padding: 4px 9px; border-radius: 999px; font: 700 .66rem/1 var(--cc-head); white-space: nowrap; color: var(--cc-dim); background: rgba(255,255,255,.04); border: 1px solid var(--cc-line); }
.cc-hpill.is-ok { color: #8fe3b6; background: rgba(79,209,139,.08); border-color: rgba(79,209,139,.28); }
.cc-hpill.is-warn { color: #f1c985; background: rgba(232,179,90,.08); border-color: rgba(232,179,90,.3); }
.cc-hpill.is-bad { color: #ffadaf; background: rgba(240,104,107,.08); border-color: rgba(240,104,107,.3); }
.cc-health-more { margin: 0 6px 8px 27px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--cc-line); display: grid; gap: 6px; font-size: .78rem; }
.cc-health-more p { margin: 0; overflow-wrap: anywhere; }
.cc-health-fix { display: flex; align-items: center; gap: 7px; color: var(--cc-dim); } .cc-health-fix .li { width: 13px; height: 13px; }

/* timeline */
.cc-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: grid; gap: 2px; }
.cc-timeline::before { content: ""; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)); }
.cc-timeline li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 4px 8px 0; }
.cc-tl-ic { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #121213; border: 1px solid var(--cc-line-2); color: #e9ebee; }
.cc-tl-ic .li { width: 15px; height: 15px; }
.cc-timeline li.is-bad .cc-tl-ic { color: var(--cc-bad); border-color: rgba(240,104,107,.4); }
.cc-tl-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-tl-txt b { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tl-txt small { font-size: .74rem; color: var(--cc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-tl-when { font-size: .72rem; color: var(--cc-mute); white-space: nowrap; }
.cc-timeline li.cc-tl-empty { display: block; padding: 18px 0; color: var(--cc-mute); font-size: .84rem; }
.cc-timeline li.cc-tl-empty[style*="none"] { display: none; }
.cc-timeline--full { max-height: none; }
.cc-timeline--sm li { padding: 5px 0; }

/* bars, links, users, kv */
.cc-bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 46px; align-items: center; gap: 10px; padding: 7px 0; font-size: .84rem; }
.cc-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.cc-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6f757e, #f2f4f6); transform-origin: left; animation: cc-grow .9s var(--cc-ease) both; }
.cc-bar.is-live > i { background: linear-gradient(90deg, #2b8f5d, var(--cc-ok)); }
@keyframes cc-grow { from { transform: scaleX(0); } }
.cc-bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.cc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cc-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.02); color: var(--cc-text); text-decoration: none; transition: transform .25s var(--cc-ease), border-color .25s, background-color .25s; }
.cc-link:hover { transform: translateY(-2px); border-color: var(--cc-line-hi); background: rgba(255,255,255,.05); }
.cc-link-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.cc-link-ic .li { width: 17px; height: 17px; }
.cc-link-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-link-txt b { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-link-txt small { font-size: .72rem; color: var(--cc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-link-ext { width: 14px !important; height: 14px !important; color: var(--cc-mute); }
.cc-users { display: grid; gap: 8px; }
.cc-user { border-radius: 12px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.015); overflow: hidden; transition: border-color .25s; }
.cc-user.is-open { border-color: var(--cc-line-2); } .cc-user.is-off { opacity: .6; }
.cc-user-row { display: flex; align-items: center; gap: 13px; padding: 12px 14px; flex-wrap: wrap; }
.cc-user-main { min-width: 0; flex: 1; }
.cc-user-main p { margin: 0; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; } .cc-user-main b { font-size: .95rem; }
.cc-user-main small { display: block; margin-top: 4px; font-size: .74rem; color: var(--cc-mute); }
.cc-user-more { padding: 6px 14px 16px; border-top: 1px solid var(--cc-line); background: rgba(0,0,0,.2); }
.cc-session { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cc-line); }
.cc-session:last-child { border-bottom: 0; }
.cc-session-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.cc-session > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: .86rem; } .cc-session small { font-size: .74rem; color: var(--cc-mute); }
.cc-kv { margin: 0 0 14px; display: grid; gap: 8px; }
.cc-kv > div { min-width: 0; display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.cc-kv dt { width: 150px; flex-shrink: 0; color: var(--cc-mute); }
.cc-kv dd { margin: 0; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-kv code { font: .84rem var(--cc-mono); color: #fff; } .cc-kv code.is-secret { font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; color: var(--cc-gold-hi); }
.cc-kv--grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 10px 0 0; }
.cc-kv--grid > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--cc-line); }
.cc-kv--grid dt { width: auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; } .cc-kv--grid dd { font-weight: 600; }

/* forms */
.cc-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cc-field > span:first-child { font: 600 .76rem/1 var(--cc-head); letter-spacing: .03em; color: var(--cc-dim); }
.cc-field small { font-weight: 400; color: var(--cc-mute); }
.cc-pw { position: relative; display: block; } .cc-pw input { padding-right: 46px; }
.cc-pw button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--cc-mute); cursor: pointer; display: grid; place-items: center; }
.cc-pw button:hover { color: #fff; }
.cc-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; }
.cc-form-row--tight { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 8px; }
.cc-form-row--tight input { height: 36px; font-size: .8rem; }
.cc-form-col { display: grid; gap: 14px; max-width: 440px; } .cc-form-col .cc-btn { justify-self: start; }
.cc-links-edit { display: grid; gap: 8px; margin-bottom: 12px; }
.cc-link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.cc-link-row input { height: 38px; font-size: .84rem; }

/* drawer, modals, palette */
.cc-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cc-scrim:not(.cc-scrim--top) { z-index: 2; display: none; }
.cc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(540px, 100vw); overflow-y: auto; scrollbar-width: thin; background: linear-gradient(180deg, rgba(18,18,19,.98), rgba(8,8,9,.98)); border-left: 1px solid var(--cc-line-2); box-shadow: -40px 0 90px -40px rgba(0,0,0,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.cc-drawer-anim { transition: transform .45s var(--cc-spring), opacity .25s ease; }
.cc-drawer-off { transform: translateX(104%); opacity: .5; }
.cc-drawer-in { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cc-drawer-head { display: flex; align-items: center; gap: 13px; padding-bottom: 6px; }
.cc-drawer-head > div { min-width: 0; flex: 1; }
.cc-drawer-head h2 { margin: 4px 0 0; font: 800 1.25rem/1.2 var(--cc-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-mini-stats > div { padding: 12px; border-radius: 12px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-mini-stats span { font: 700 .64rem/1 var(--cc-head); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-mute); }
.cc-mini-stats b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dl { margin: 0; border-radius: 12px; border: 1px solid var(--cc-line); overflow: hidden; }
.cc-dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; padding: 9px 12px; font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.cc-dl > div:nth-child(odd) { background: rgba(255,255,255,.015); } .cc-dl > div:last-child { border-bottom: 0; }
.cc-dl dt { color: var(--cc-mute); } .cc-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font: .78rem var(--cc-mono); }
.cc-mini-list { display: grid; gap: 5px; }
.cc-mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.015); color: var(--cc-text); font: 500 .82rem/1.2 var(--cc-head); text-align: left; }
button.cc-mini-row { cursor: pointer; transition: border-color .2s, background-color .2s; } button.cc-mini-row:hover { border-color: var(--cc-line-hi); background: rgba(255,255,255,.04); }
div.cc-mini-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.cc-mini-row code { font: .76rem var(--cc-mono); }
.cc-owner { margin-top: 6px; padding: 16px; border-radius: var(--cc-r); border: 1px solid var(--cc-gold-line); background: linear-gradient(135deg, rgba(216,189,133,.09), rgba(216,189,133,.02)); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cc-owner .cc-h4 { margin: 0; color: var(--cc-gold-hi); } .cc-owner .cc-form-row { width: 100%; } .cc-owner .cc-hint { margin: 0; }
.cc-modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cc-palette { position: fixed; z-index: 81; left: 50%; top: 12vh; width: min(640px, calc(100vw - 32px)); margin-left: max(-320px, calc(-50vw + 16px)); border-radius: 16px; border: 1px solid var(--cc-line-2); background: rgba(16,16,17,.97); box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.cc-palette-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--cc-line); }
.cc-palette-in > .li { color: var(--cc-mute); }
.cc-palette-in input { flex: 1; height: 58px; border: 0; outline: 0; background: none; color: var(--cc-text); font: 500 1rem var(--cc-head); }
.cc-palette-list { max-height: 52vh; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.cc-palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 9px; border: 0; background: none; color: var(--cc-text); cursor: pointer; font: 500 .9rem/1.2 var(--cc-head); text-align: left; }
.cc-palette-item .li { width: 16px; height: 16px; color: var(--cc-dim); }
.cc-palette-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-palette-item small { font-size: .72rem; color: var(--cc-mute); }
.cc-palette-item.is-on { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--cc-line-2); }
.cc-confirm { position: fixed; z-index: 82; left: 50%; top: 50%; width: min(440px, calc(100vw - 32px)); transform: translate(-50%, -50%); padding: 24px; border-radius: 16px; border: 1px solid var(--cc-line-2); background: rgba(17,17,18,.98); box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); }
.cc-confirm.cc-pop-from { transform: translate(-50%, -48%) scale(.98); }
.cc-confirm > div { display: grid; gap: 12px; }
.cc-confirm h3 { margin: 0; font: 800 1.1rem/1.25 var(--cc-head); } .cc-confirm p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--cc-dim); }
.cc-confirm .cc-row-actions { justify-content: flex-end; margin-top: 6px; }
.cc-confirm-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--cc-line-2); }
.cc-confirm-ic.is-danger { color: var(--cc-bad); background: rgba(240,104,107,.08); border-color: rgba(240,104,107,.3); }
.cc-confirm-ic .li { width: 22px; height: 22px; }

/* ── Signed-out screens ── */
.ccx-center { min-height: min(74vh, 680px); display: grid; place-items: center; padding: 28px 0; }
.ccx-card { position: relative; width: min(440px, 100%); padding: 32px 30px 28px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--cc-line-2); background: radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, #121213, #070708);
  box-shadow: 0 50px 120px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); animation: cc-rise .7s var(--cc-ease) both; font-family: var(--cc-head); }
.ccx-card::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); }
.ccx-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.ccx-emblem { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(255,255,255,.15)); }
.ccx-brand .cc-wordmark { font-size: 1.35rem; }
.ccx-title { margin: -6px 0 0; font: 800 1.65rem/1.1 var(--cc-head); font-stretch: 112%; background: var(--cc-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ccx-sub { margin: -4px 0 4px; font-size: .88rem; line-height: 1.55; color: var(--cc-dim); }
.ccx-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: .95rem; }
.ccx-foot { margin: 2px 0 0; text-align: center; font-size: .78rem; color: var(--cc-mute); }
.ccx-link { align-self: center; border: 0; background: none; color: var(--cc-dim); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: #fff; animation: cc-spin .9s linear infinite; }

/* ── Responsive ── */
@media (max-width: 1500px) {
  .cc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-row--b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cc-row--b > :first-child { grid-column: 1 / -1; }
  .cc-search-btn { width: 230px; }
}
@media (max-width: 1180px) {
  .cc-row--a, .cc-row--c { grid-template-columns: minmax(0, 1fr); }
  .cc-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-search-btn span, .cc-quick-btn span { display: none; }
  .cc-search-btn { width: auto; }
}
@media (max-width: 960px) {
  .cc, .cc.is-rail { grid-template-columns: minmax(0, 1fr); }
  .cc-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 75; transform: translateX(-104%); transition: transform .45s var(--cc-spring); box-shadow: 30px 0 80px -30px rgba(0,0,0,.95); }
  .cc.is-drawer .cc-side { transform: none; }
  .cc-scrim:not(.cc-scrim--top) { display: block; z-index: 74; }
  .cc-icon-btn.cc-side-close { display: grid; }
  .cc-rail-btn { display: none; }
  .cc.is-rail .cc-side-brand-txt, .cc.is-rail .cc-me-txt, .cc.is-rail .cc-nav-label, .cc.is-rail .cc-nav-badge, .cc.is-rail .cc-staffmode-txt { display: revert; }
  .cc.is-rail .cc-nav-item { justify-content: flex-start; padding: 0 12px; }
  .cc.is-rail .cc-nav-head { font-size: .62rem; justify-content: space-between; padding: 8px 10px 6px; } .cc.is-rail .cc-nav-head::before { display: none; }
  .cc-icon-btn.cc-menu-btn { display: inline-grid; }
  .cc-main { height: 100dvh; }
  .cc-top { padding: 16px 16px 8px; }
  .cc-view { padding: 10px 16px 32px; }
  .cc-row--b, .cc-row--2, .cc-row--3 { grid-template-columns: minmax(0, 1fr); }
  .cc-stats, .cc-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-server-main { grid-template-columns: 110px minmax(0, 1fr) auto; grid-template-areas: "art id chev" "pop pop pop" "bars bars bars"; row-gap: 12px; }
  .cc-server-art { grid-area: art; height: 64px; } .cc-server-art span { font-size: 1.15rem; }
  .cc-server-id { grid-area: id; } .cc-server-pop { grid-area: pop; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; } .cc-server-bars { grid-area: bars; } .cc-server-chev { grid-area: chev; }
  .cc-site-btn, .cc-avatar-btn { display: none; }
  .cc-top-tools { gap: 6px; }
}
@media (max-width: 600px) {
  .cc-top-row { flex-wrap: wrap; }
  .cc-title { order: 2; flex-basis: 100%; }
  .cc-top-tools { margin-left: auto; }
  .cc-title h1 { font-size: 1.35rem; gap: 8px; }
  .cc-title p { font-size: .84rem; }
  .cc-top-meta { justify-content: flex-start; flex-wrap: wrap; row-gap: 10px; }
  .cc-top-meta > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
  .cc-top-meta .cc-sys { margin-right: 12px; }
  .cc-panel { padding: 16px; }
  .cc-stat { padding: 13px; } .cc-spark { width: 60px; }
  .cc-form-row, .cc-form-row--tight { grid-template-columns: minmax(0, 1fr); }
  .cc-link-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--cc-line); border-radius: 10px; }
  .cc-link-row input:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .cc-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cc-pop { position: fixed; left: 16px; right: 16px; top: 70px; width: auto !important; }
  .cc-kv dt { width: 110px; }
  .cc-table .is-trunc { max-width: 140px; }
  .cc-palette { top: 8vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cc *, .cc *::before, .cc *::after, .ccx-card { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cc-area-line { stroke-dashoffset: 0; } .cc-area-fill, .cc-area-dot { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════════════════
   Hero banner + white edge glow (matches the Control Center mockup)
   ══════════════════════════════════════════════════════════════════════════ */
.cc-hero { position: absolute; left: 0; right: 0; top: 0; height: 340px; pointer-events: none; z-index: 0; overflow: hidden; }
.cc-hero-img { position: absolute; top: -18px; left: 16%; width: min(1240px, 80%); height: 100%; background: 50% 34% / cover no-repeat; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%), linear-gradient(180deg, #000 40%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%), linear-gradient(180deg, #000 40%, transparent 96%);
  -webkit-mask-composite: source-in; mask-composite: intersect; animation: cc-hero-in 1.4s var(--cc-ease) both; }
@keyframes cc-hero-in { from { opacity: 0; transform: scale(1.04); } }
.cc-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 62% 0%, rgba(255,255,255,.08), transparent 70%); }
.cc-top, .cc-view { z-index: 1; }

/* Sidebar: full-height illuminated edge, brightest at the top-left like the mockup */
.cc-side { border-right-color: rgba(255,255,255,.1); box-shadow: 1px 0 0 rgba(255,255,255,.03), 18px 0 60px -40px rgba(255,255,255,.25); }
.cc-side::after { top: 0; height: 100%; width: 2px; right: -1px;
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.95) 22%, rgba(255,255,255,.9) 42%, rgba(255,255,255,.3) 70%, rgba(255,255,255,.06) 100%);
  box-shadow: 0 0 8px 1px rgba(255,255,255,.55), 0 0 26px 4px rgba(255,255,255,.22), 0 0 70px 8px rgba(255,255,255,.08); }
.cc-side::before { content: ""; position: absolute; top: 12%; right: -40px; width: 80px; height: 46%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); filter: blur(6px); }

/* Active nav item: bright white rim + halo */
.cc-nav-item.is-on { color: #fff; background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.62);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 16px rgba(255,255,255,.32), 0 0 40px -6px rgba(255,255,255,.22), inset 0 0 14px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.35); }
.cc-nav-item.is-on::before { display: none; }

/* Profile card + panels: light catching the top-left rim */
.cc-me, .cc-panel, .cc-server, .cc-stat { isolation: isolate; }
.cc-me::after, .cc-panel::after, .cc-server::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.08) 22%, transparent 48%, transparent 72%, rgba(255,255,255,.14) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cc-me, .cc-server { position: relative; }
.cc-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.02), 0 30px 60px -40px rgba(0,0,0,.9), -10px -10px 50px -38px rgba(255,255,255,.35); }

/* Stat cards: lit rim on all, the featured one glows */
.cc-stat::before { opacity: .55; }
.cc-stat:hover { border-color: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 22px rgba(255,255,255,.16); }
.cc-stat.is-hero { border-color: rgba(255,255,255,.85);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.13), transparent 60%), linear-gradient(180deg, rgba(30,30,31,.92), rgba(12,12,13,.92));
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 22px rgba(255,255,255,.38), 0 0 60px -10px rgba(255,255,255,.28), inset 0 0 22px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.5); }
.cc-stat.is-hero::before { opacity: 1; background: linear-gradient(140deg, rgba(255,255,255,.9), rgba(255,255,255,.2) 40%, rgba(255,255,255,.2) 60%, rgba(255,255,255,.7)); }
.cc-stat.is-hero .cc-stat-val b { background: none; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.35); }
.cc-stat.is-hero .cc-stat-ic { border-color: rgba(255,255,255,.4); box-shadow: 0 0 12px rgba(255,255,255,.2); }

/* Selected controls glow white */
.cc-seg button.is-on, .cc-page-btn.is-on { border-color: rgba(255,255,255,.7); background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: 0 0 14px rgba(255,255,255,.3), inset 0 0 10px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.4); }
.cc-btn--ghost:hover, .cc-icon-btn:hover, .cc-search-btn:hover { box-shadow: 0 0 16px -2px rgba(255,255,255,.22); }
.cc-sys.is-ok { border-color: rgba(255,255,255,.18); box-shadow: 0 0 18px -6px rgba(79,209,139,.5); }
.cc-avatar-btn { box-shadow: inset 0 1px 0 #fff, 0 0 18px rgba(255,255,255,.3); }

/* Staff mode: champagne glow */
.cc-staffmode { border-color: rgba(216,189,133,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 18px rgba(216,189,133,.12), 0 0 22px rgba(216,189,133,.35), 0 0 60px -14px rgba(216,189,133,.5); }

/* Live dots glow a touch more */
.cc-status.is-online { box-shadow: 0 0 14px -4px rgba(79,209,139,.6); }
.cc-badge.is-ok { box-shadow: 0 0 14px -4px rgba(79,209,139,.65); }

@media (max-width: 960px) {
  .cc-hero { height: 260px; } .cc-hero-img { width: 130%; right: -30%; opacity: .55; }
  .cc-side::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cc-hero-img { animation: none; } }

/* Header controls float over the banner on dark glass */
.cc-top .cc-search-btn, .cc-top .cc-icon-btn, .cc-top .cc-btn--ghost, .cc-top .cc-sys, .cc-top .cc-clock { background: rgba(8,8,9,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cc-top .cc-clock { padding: 6px 12px; border-radius: 12px; border: 1px solid var(--cc-line); }
.cc-top-meta > * + * { border-left: 0; padding-left: 0; margin-left: 10px; }
.cc-table td.cc-muted { white-space: nowrap; }
@media (max-width: 960px) { .cc-hero-img { left: -10%; width: 140%; } }

/* ══════════════════════════════════════════════════════════════════════════
   Sidebar glow v2: hover halo on every item + streaked edge light (mockup)
   ══════════════════════════════════════════════════════════════════════════ */
.cc-nav-item { transition: color .25s, background-color .3s, border-color .3s, box-shadow .35s var(--cc-ease), transform .3s var(--cc-ease); }
.cc-nav-item:hover:not(.is-on) {
  color: #fff; border-color: rgba(255,255,255,.42);
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: 0 0 12px rgba(255,255,255,.22), 0 0 30px -8px rgba(255,255,255,.18), inset 0 0 10px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.22);
  transform: translateX(2px);
}
.cc-nav-item:hover .li, .cc-nav-item.is-on .li { filter: drop-shadow(0 0 6px rgba(255,255,255,.55)); }
.cc-nav-item.is-on .cc-nav-label { text-shadow: 0 0 12px rgba(255,255,255,.35); }
.cc-nav-item:active { transform: translateX(2px) scale(.99); }
.cc-rail-btn:hover, .cc-nav-head:hover { text-shadow: 0 0 10px rgba(255,255,255,.4); }
.cc-me { transition: border-color .3s, box-shadow .3s; }
.cc-me:hover { border-color: rgba(255,255,255,.3); box-shadow: 0 0 18px -4px rgba(255,255,255,.25); }

/* Edge light: two bright streaks (top + middle) along the sidebar's right border */
.cc-side::after {
  width: 2px; right: -1px; top: 0; height: 100%;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 6%, rgba(255,255,255,.85) 18%, rgba(255,255,255,.15) 30%,
      rgba(255,255,255,.1) 40%, rgba(255,255,255,.9) 52%, rgba(255,255,255,.75) 64%, rgba(255,255,255,.12) 76%,
      rgba(255,255,255,.05) 90%, rgba(255,255,255,.35) 97%, rgba(255,255,255,0) 100%);
  box-shadow: 0 0 6px 1px rgba(255,255,255,.5), 0 0 22px 3px rgba(255,255,255,.2), 0 0 60px 6px rgba(255,255,255,.08);
}
.cc-side::before {
  content: ""; position: absolute; top: 0; right: -60px; width: 120px; height: 100%; pointer-events: none; filter: blur(4px);
  background:
    radial-gradient(40px 160px at 60px 12%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(40px 170px at 60px 58%, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(30px 80px at 60px 96%, rgba(216,189,133,.18), transparent 70%);
}
.cc-side { overflow: visible; }
.cc-side > * { position: relative; z-index: 1; }
.cc-nav { overflow: visible; }

@media (prefers-reduced-motion: reduce) { .cc-nav-item:hover:not(.is-on) { transform: none; } }
@media (max-width: 960px) { .cc-side::before { display: none; } }

/* Let the glow and hover nudge show instead of being clipped. */
.cc-nav-items { overflow: visible; padding: 0 4px 0 0; }
.cc-nav-item:hover:not(.is-on) { transform: translateX(1px); }

/* ══════════════════════════════════════════════════════════════════════════
   Content glow v3: every card catches light like the mockup — lit top-left
   corner, a light streak along the top and bottom edges, glowing icons,
   sparklines, pills and dots, and a white halo on hover.
   ══════════════════════════════════════════════════════════════════════════ */
.cc-panel, .cc-stat {
  background:
    radial-gradient(42% 2px at 50% 100%, rgba(255,255,255,.75), transparent 100%),
    radial-gradient(70% 60% at 0% 0%, rgba(255,255,255,.055), transparent 60%),
    var(--cc-panel);
  transition: border-color .35s, box-shadow .4s var(--cc-ease), transform .35s var(--cc-ease);
}
.cc-panel {
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 26px -20px rgba(255,255,255,.4), -12px -12px 50px -36px rgba(255,255,255,.4), 0 30px 60px -40px rgba(0,0,0,.9);
}
/* top streak: brighter and wider */
.cc-panel::before { left: 4%; right: 30%; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75) 22%, rgba(255,255,255,.35) 60%, rgba(255,255,255,0)); box-shadow: 0 0 8px rgba(255,255,255,.35); }
/* rim: hot top-left corner, softer bottom-right */
.cc-me::after, .cc-panel::after, .cc-server::after {
  background: linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.18) 14%, rgba(255,255,255,.04) 34%, transparent 55%, rgba(255,255,255,.05) 78%, rgba(255,255,255,.32) 100%);
}
.cc-panel:hover { border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 28px -10px rgba(255,255,255,.3), 0 18px 30px -20px rgba(255,255,255,.5), -12px -12px 50px -34px rgba(255,255,255,.5); }

.cc-panel-title > .li { filter: drop-shadow(0 0 7px rgba(255,255,255,.5)); }
.cc-panel-title h3 { text-shadow: 0 0 14px rgba(255,255,255,.28); }

/* Stat cards */
.cc-stat { border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 22px -18px rgba(255,255,255,.4); }
.cc-stat::before { opacity: 1; background: linear-gradient(140deg, rgba(255,255,255,.7), rgba(255,255,255,.1) 22%, transparent 45%, transparent 70%, rgba(255,255,255,.3)); }
.cc-stat:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 20px rgba(255,255,255,.22), 0 0 48px -12px rgba(255,255,255,.2), inset 0 0 16px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.35); }
.cc-stat-ic { border-color: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 10px -2px rgba(255,255,255,.18); }
.cc-stat-ic .li { filter: drop-shadow(0 0 5px rgba(255,255,255,.55)); }
.cc-stat-val b { text-shadow: 0 0 16px rgba(255,255,255,.22); }
.cc-stat.is-big .cc-stat-val b { filter: drop-shadow(0 0 10px rgba(255,255,255,.22)); }
.cc-spark-line { filter: drop-shadow(0 0 4px rgba(255,255,255,.7)); }
.cc-trend.is-up { box-shadow: 0 0 12px -3px rgba(79,209,139,.65), inset 0 0 6px rgba(79,209,139,.12); text-shadow: 0 0 8px rgba(79,209,139,.5); }
.cc-trend.is-down { box-shadow: 0 0 12px -3px rgba(240,104,107,.6), inset 0 0 6px rgba(240,104,107,.12); text-shadow: 0 0 8px rgba(240,104,107,.45); }

/* Server rows */
.cc-server { border-color: rgba(255,255,255,.12); background: radial-gradient(40% 2px at 55% 100%, rgba(255,255,255,.45), transparent), rgba(255,255,255,.02); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cc-server:hover { border-color: rgba(255,255,255,.4); box-shadow: 0 0 22px -6px rgba(255,255,255,.28), inset 0 0 14px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.2); }
.cc-server-art { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cc-server-art span { filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); }
.cc-server-bars i { box-shadow: 0 0 6px rgba(255,255,255,.35); }
.cc-server-count b { text-shadow: 0 0 14px rgba(255,255,255,.3); }
.cc-server-count .li, .cc-server-id small .li, .cc-server-health .li { filter: drop-shadow(0 0 4px rgba(255,255,255,.4)); }
.cc-server:hover .cc-server-chev { color: #fff; filter: drop-shadow(0 0 5px rgba(255,255,255,.7)); }

/* Chart */
.cc-area-line { filter: drop-shadow(0 0 4px rgba(255,255,255,.75)) drop-shadow(0 0 14px rgba(255,255,255,.35)); }
.cc-area-dot { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.cc-chart-sum b { text-shadow: 0 0 18px rgba(255,255,255,.3); }

/* Tables */
.cc-table tr.is-row td { transition: background-color .25s, box-shadow .25s; }
.cc-table tr.is-row:hover td { background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(255,255,255,.14); }
.cc-table tr.is-row:hover td:first-child { box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(255,255,255,.14); }
.cc-table tr.is-row:hover td:last-child { box-shadow: inset -1px 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(255,255,255,.14); }
.cc-badge.is-ok { text-shadow: 0 0 8px rgba(79,209,139,.55); }
.cc-badge.is-warn { box-shadow: 0 0 14px -4px rgba(232,179,90,.6); text-shadow: 0 0 8px rgba(232,179,90,.5); }
.cc-badge.is-bad { box-shadow: 0 0 14px -4px rgba(240,104,107,.6); text-shadow: 0 0 8px rgba(240,104,107,.5); }
.cc-row-actions .li, .cc-table .cc-icon-btn:hover .li { filter: drop-shadow(0 0 4px rgba(255,255,255,.45)); }

/* System health */
.cc-sys-banner.is-ok { box-shadow: 0 0 24px -8px rgba(79,209,139,.8), inset 0 0 14px rgba(79,209,139,.1); text-shadow: 0 0 10px rgba(79,209,139,.55); }
.cc-dot.is-ok { box-shadow: 0 0 0 3px rgba(79,209,139,.12), 0 0 10px rgba(79,209,139,.85); }
.cc-dot.is-warn { box-shadow: 0 0 0 3px rgba(232,179,90,.12), 0 0 10px rgba(232,179,90,.8); }
.cc-dot.is-bad { box-shadow: 0 0 0 3px rgba(240,104,107,.12), 0 0 10px rgba(240,104,107,.8); }
.cc-health-row { transition: background-color .25s, box-shadow .25s; }
.cc-health-row:hover { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 14px -4px rgba(255,255,255,.2); }
.cc-health-row:hover .cc-health-chev { color: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.7)); }

/* Staff activity timeline */
.cc-timeline::before { width: 2px; left: 18.5px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.08)); box-shadow: 0 0 6px rgba(255,255,255,.3); }
.cc-tl-ic { border-color: rgba(255,255,255,.28); background: radial-gradient(circle at 50% 30%, #222224, #0e0e0f); box-shadow: 0 0 12px -2px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.cc-tl-ic .li { filter: drop-shadow(0 0 4px rgba(255,255,255,.55)); }
.cc-timeline li { border-radius: 10px; transition: background-color .25s; }
.cc-timeline li:hover { background: rgba(255,255,255,.035); }
.cc-timeline li:hover .cc-tl-ic { border-color: rgba(255,255,255,.6); box-shadow: 0 0 18px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.3); }

/* Inputs and buttons inside panels */
.cc-panel .cc-search, .cc-panel .cc-field input, .cc-panel .cc-select { transition: border-color .25s, box-shadow .25s; }
.cc-panel .cc-search:focus-within, .cc-panel .cc-field input:focus, .cc-panel .cc-select:focus { border-color: rgba(255,255,255,.45); box-shadow: 0 0 16px -4px rgba(255,255,255,.3); }
.cc-btn:hover { box-shadow: 0 0 16px -3px rgba(255,255,255,.3); }

@media (prefers-reduced-motion: reduce) { .cc-stat:hover { transform: none; } }

/* Light streaks drawn as real lines on the top and bottom edges, with a halo */
.cc-panel::before, .cc-stat::after {
  content: ""; position: absolute; inset: -1px; height: auto; left: -1px; right: -1px; border-radius: inherit; pointer-events: none; z-index: 3; box-shadow: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 3%, rgba(255,255,255,.95) 16%, rgba(255,255,255,.55) 38%, rgba(255,255,255,.08) 62%, rgba(255,255,255,0) 80%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0) 14%, rgba(255,255,255,.35) 32%, rgba(255,255,255,1) 50%, rgba(255,255,255,.35) 68%, rgba(255,255,255,0) 86%) bottom / 100% 1px no-repeat;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.35));
}
.cc-stat::after { opacity: .85; }
.cc-stat.is-hero::after { opacity: 1; }
.cc-panel--gold::before { background:
    linear-gradient(90deg, rgba(216,189,133,0) 3%, rgba(216,189,133,.95) 16%, rgba(216,189,133,.4) 45%, rgba(216,189,133,0) 80%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(216,189,133,0) 14%, rgba(216,189,133,.9) 50%, rgba(216,189,133,0) 86%) bottom / 100% 1px no-repeat;
  filter: drop-shadow(0 0 3px rgba(216,189,133,.9)) drop-shadow(0 0 10px rgba(216,189,133,.35)); }
.cc-panel, .cc-stat { background: radial-gradient(70% 60% at 0% 0%, rgba(255,255,255,.06), transparent 60%), radial-gradient(50% 30% at 50% 100%, rgba(255,255,255,.04), transparent 70%), var(--cc-panel); }
.cc-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 26px -22px rgba(255,255,255,.55), -12px -12px 50px -36px rgba(255,255,255,.4), 0 30px 60px -40px rgba(0,0,0,.9); }
.cc-stat:not(:hover):not(.is-hero) { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 22px -18px rgba(255,255,255,.5); }
.cc-panel:hover::before, .cc-stat:hover::after { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px rgba(255,255,255,.5)); }

/* ══════════════════════════════════════════════════════════════════════════
   Sidebar art: champagne-toned hoop above Staff Mode, fading into the rail
   ══════════════════════════════════════════════════════════════════════════ */
.cc-nav { flex: 0 0 auto; }
.cc-side-art { position: relative; flex: 1 1 0; min-height: 0; max-height: 250px; margin: auto -14px -6px; pointer-events: none; overflow: hidden; }
.cc-side-art-img { position: absolute; inset: 0; background: 58% 62% / cover no-repeat; opacity: .78;
  -webkit-mask-image: radial-gradient(120% 95% at 62% 70%, #000 30%, rgba(0,0,0,.55) 55%, transparent 78%);
  mask-image: radial-gradient(120% 95% at 62% 70%, #000 30%, rgba(0,0,0,.55) 55%, transparent 78%);
  animation: cc-art-in 1.6s var(--cc-ease) .2s both, cc-art-float 9s ease-in-out 1.8s infinite alternate; }
.cc-side-art::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 60% 85%, rgba(216,189,133,.28), transparent 70%), linear-gradient(180deg, rgba(5,5,5,.9), transparent 35%); }
/* diagonal light swoosh, like the mockup */
.cc-side-art-streak { position: absolute; z-index: 1; left: 8%; top: 18%; width: 130%; height: 46px; transform: rotate(-38deg); transform-origin: left center;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,240,210,.32), rgba(216,189,133,.12) 45%, transparent 72%); filter: blur(7px); mix-blend-mode: screen;
  animation: cc-art-sweep 7s ease-in-out 2s infinite; }
@keyframes cc-art-in { from { opacity: 0; transform: translateY(14px) scale(1.06); } }
@keyframes cc-art-float { to { transform: translateY(-6px) scale(1.03); } }
@keyframes cc-art-sweep { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.cc.is-rail .cc-side-art { display: none; }
@media (max-height: 760px) { .cc-side-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .cc-side-art-img, .cc-side-art-streak { animation: none; } }
/* soft edges on every side so the art melts into the sidebar */
.cc-side-art-img { background-position: 50% 70%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.cc-side-art::after { background: radial-gradient(60% 40% at 55% 82%, rgba(216,189,133,.3), transparent 70%); }

/* ══════════════════════════════════════════════════════════════════════════
   Staff permissions
   ══════════════════════════════════════════════════════════════════════════ */
.cc-perm-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--cc-line); }
.cc-perm-wrap > .cc-h4, .cc-perm-edit > .cc-h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.cc-perms { display: grid; gap: 14px; }
.cc-perm-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc-perm-k { font: 700 .66rem/1 var(--cc-head); letter-spacing: .16em; text-transform: uppercase; color: var(--cc-mute); margin-right: 4px; }
.cc-chip.is-static { cursor: default; color: var(--cc-gold-hi); border-color: rgba(216,189,133,.45); box-shadow: 0 0 12px -4px rgba(216,189,133,.5); }
.cc-perm-presets .cc-chip.is-on { box-shadow: 0 0 16px -2px rgba(255,255,255,.45); }
.cc-perm-count { margin-left: auto; font-size: .74rem; color: var(--cc-mute); }
.cc-perm-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-perm-group { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; border: 1px solid var(--cc-line); background: rgba(255,255,255,.015); }
.cc-perm-group h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font: 700 .7rem/1 var(--cc-head); letter-spacing: .14em; text-transform: uppercase; color: var(--cc-dim); }
.cc-perm-group h5 .li { width: 15px; height: 15px; filter: drop-shadow(0 0 5px rgba(255,255,255,.45)); }
.cc-perm { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 11px; border-radius: 11px; border: 1px solid transparent; background: rgba(255,255,255,.02); color: var(--cc-dim); text-align: left; cursor: pointer; transition: border-color .25s, background-color .25s, box-shadow .3s, color .2s; }
.cc-perm:hover { color: #fff; border-color: rgba(255,255,255,.28); box-shadow: 0 0 14px -4px rgba(255,255,255,.25); }
.cc-perm:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
.cc-perm.is-on { color: #fff; border-color: rgba(216,189,133,.42); background: linear-gradient(90deg, rgba(216,189,133,.1), rgba(216,189,133,.02)); box-shadow: 0 0 16px -6px rgba(216,189,133,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.cc-perm-txt { display: grid; gap: 3px; min-width: 0; }
.cc-perm-txt b { font-size: .84rem; font-weight: 600; }
.cc-perm-txt small { font-size: .72rem; line-height: 1.35; color: var(--cc-mute); }
.cc-switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background-color .25s, border-color .25s, box-shadow .3s; }
.cc-switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8d8d92; transition: transform .3s var(--cc-spring), background-color .25s, box-shadow .3s; }
.cc-perm.is-on .cc-switch { background: rgba(216,189,133,.3); border-color: rgba(216,189,133,.7); box-shadow: 0 0 10px rgba(216,189,133,.45); }
.cc-perm.is-on .cc-switch i { transform: translateX(14px); background: #fff3dc; box-shadow: 0 0 8px rgba(255,236,200,.9); }
.cc-perms .cc-hint { margin: 0; }

.cc-user-perms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cc-perm-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--cc-line-2); font-size: .7rem; color: var(--cc-dim); background: rgba(255,255,255,.02); }
.cc-perm-tag.is-preset { color: var(--cc-gold-hi); border-color: rgba(216,189,133,.4); font-weight: 700; box-shadow: 0 0 10px -4px rgba(216,189,133,.55); }
.cc-btn--perm { color: var(--cc-gold-hi); border-color: rgba(216,189,133,.35); }
.cc-btn--perm:hover, .cc-btn--perm.is-on { color: #fff3dc; border-color: rgba(216,189,133,.7); box-shadow: 0 0 16px -3px rgba(216,189,133,.55); }
.cc-perm-edit { display: grid; gap: 14px; }
.cc-perm-edit .cc-row-actions--start { align-items: center; flex-wrap: wrap; }

.cc-banner { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: .8rem; line-height: 1.5; }
.cc-banner .li { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.cc-banner.is-warn { color: #f3d9a4; border: 1px solid rgba(232,179,90,.35); background: rgba(232,179,90,.07); box-shadow: 0 0 18px -8px rgba(232,179,90,.6); }

@media (max-width: 1180px) { .cc-perm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cc-perm-groups { grid-template-columns: minmax(0, 1fr); } .cc-perm-count { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cc-switch i { transition: none; } }

/* Dropdowns: the header must not clip its menus, and must sit above the page below it.
   Panels that hold a menu are raised too, so an open filter isn't covered by the next panel. */
.cc-top { overflow: visible; z-index: 30; }
.cc-hero { overflow: hidden; }
.cc-panel:has(.cc-pop-wrap), .cc-panel:focus-within { z-index: 6; }
