/* Iridus unified header v1.0 — homepage is the geometry reference. */
/* Shared header is part of document flow; it scrolls away with the page. */
.site-header.ir-uh-header{background:var(--bg,#0f1115)!important;border-bottom:0!important;backdrop-filter:none!important;position:relative!important;top:auto!important;z-index:90}
.site-header.ir-uh-header .container.nav,
.iridus-portal .site-header.ir-uh-header .container.header-inner{width:100%;max-width:1200px;min-height:69px;height:auto;padding:0 20px;margin:0 auto;display:flex;align-items:center;gap:26px;position:relative}
.site-header.ir-uh-header .container.nav::after,
.iridus-portal .site-header.ir-uh-header .header-inner::after{display:none!important}
.site-header.ir-uh-header .logo{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;text-decoration:none;color:#f5f5f7}
.site-header.ir-uh-header .logo img{width:46px!important;height:46px!important;object-fit:contain}
.site-header.ir-uh-header .logo .brand,.iridus-portal .site-header.ir-uh-header .logo .brand{font-size:20px!important;font-weight:900!important;line-height:1.2;letter-spacing:-.02em;color:#f5f5f7;white-space:nowrap}
.site-header.ir-uh-header .menu,.iridus-portal .site-header.ir-uh-header .header-menu{display:flex;align-items:center;gap:6px;flex:1;min-width:0;position:relative}
.site-header.ir-uh-header .menu .tab,.iridus-portal .site-header.ir-uh-header .header-menu a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 13px!important;border:0;border-radius:11px!important;font-size:15px!important;font-weight:700!important;line-height:1.2;color:#afb9c7;background:transparent;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none}
.site-header.ir-uh-header .menu .tab:hover,.iridus-portal .site-header.ir-uh-header .header-menu a:hover{color:#fff;background:#272e38}
.site-header.ir-uh-header .menu .tab.is-active,.iridus-portal .site-header.ir-uh-header .header-menu a[aria-current="page"]{color:#fff;background:#232831}
.site-header.ir-uh-header .nav-right,.iridus-portal .site-header.ir-uh-header .header-account{margin-left:auto;flex-shrink:0;position:relative}
.site-header.ir-uh-header .ir-uh-guest{display:inline-flex;align-items:center;border:1px solid #454c58;border-radius:11px;padding:9px 14px;color:#e9edf3;background:#252b35;text-decoration:none;font-weight:750;font-size:13px}
.site-header.ir-uh-header .ir-uh-guest:hover{background:#313946}
.site-header.ir-uh-header .ir-uh-control{position:relative;display:inline-flex;align-items:center;isolation:isolate;z-index:125}
/* Invisible pointer bridge across the dropdown offset. */
.site-header.ir-uh-header .ir-uh-control.is-open::after{content:"";position:absolute;top:100%;left:0;right:0;height:13px;pointer-events:auto}
.site-header.ir-uh-header .ir-uh-trigger{display:flex;align-items:center;gap:9px;min-height:40px;max-width:230px;padding:4px 11px 4px 5px!important;border:1px solid #3c4554!important;border-radius:12px!important;background:linear-gradient(140deg,#252b36,#181c24)!important;color:#f4f6fa!important;font:750 13px/1.25 system-ui,Arial,sans-serif!important;cursor:pointer;box-shadow:0 5px 14px #0003;transition:background .17s,border-color .17s,transform .17s}
.site-header.ir-uh-header .ir-uh-trigger:hover,.site-header.ir-uh-header .ir-uh-trigger[aria-expanded="true"]{background:#2d3644!important;border-color:#8291a6!important}
.site-header.ir-uh-header .ir-uh-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,#4b6070,#293240);color:#edf4fb;font-size:13px;font-weight:900;overflow:hidden}
.site-header.ir-uh-header .ir-uh-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.site-header.ir-uh-header .ir-uh-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:154px}
.site-header.ir-uh-header .ir-uh-chevron{height:14px;width:14px;opacity:.7;flex:none}
.site-header.ir-uh-header .ir-uh-flyout{position:absolute;right:0;top:calc(100% + 10px);z-index:120;width:min(310px,calc(100vw - 28px));border:1px solid #3a4351;border-radius:16px;background:#191e27!important;backdrop-filter:none!important;color:#eaf0f8;box-shadow:0 20px 52px #0009;padding:10px;animation:ir-uh-enter .17s ease both}
.site-header.ir-uh-header .ir-uh-flyout[hidden]{display:none!important}
.site-header.ir-uh-header .ir-uh-hover{pointer-events:none;padding:15px}
.site-header.ir-uh-header .ir-uh-identity{display:flex;gap:11px;align-items:center;min-width:0}
.site-header.ir-uh-header .ir-uh-identity .ir-uh-avatar{width:48px;height:48px;flex-basis:48px;border-radius:13px;font-size:19px}
.site-header.ir-uh-header .ir-uh-identity strong{display:block;font-size:15px;overflow-wrap:anywhere}
.site-header.ir-uh-header .ir-uh-secondary{display:block;color:#a9b4c5;font-size:12px;line-height:1.45;margin-top:4px}
.site-header.ir-uh-header .ir-uh-menu{padding:8px}
.site-header.ir-uh-header .ir-uh-menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#dce3ed;text-decoration:none;font:650 13px/1.3 system-ui,Arial,sans-serif;cursor:pointer;text-align:left}
.site-header.ir-uh-header .ir-uh-menu-item svg{width:18px;height:18px;flex:0 0 18px;color:#a8b9ce}
.site-header.ir-uh-header .ir-uh-menu-item:hover,.site-header.ir-uh-header .ir-uh-menu-item:focus-visible{background:#293240;color:#fff}
.site-header.ir-uh-header .ir-uh-separator{border-top:1px solid #354050;margin:8px 6px}
.site-header.ir-uh-header .ir-uh-logout{color:#f0adb5}
@keyframes ir-uh-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){.site-header.ir-uh-header .container.nav,.iridus-portal .site-header.ir-uh-header .container.header-inner{gap:10px;flex-wrap:wrap;padding:9px 14px;min-height:60px}.site-header.ir-uh-header .logo img{width:38px!important;height:38px!important}.site-header.ir-uh-header .logo .brand,.iridus-portal .site-header.ir-uh-header .logo .brand{font-size:16px!important}.site-header.ir-uh-header .menu,.iridus-portal .site-header.ir-uh-header .header-menu{display:contents}.site-header.ir-uh-header .menu .tab,.iridus-portal .site-header.ir-uh-header .header-menu a{font-size:12px!important;padding:6px 9px!important;min-height:32px}.site-header.ir-uh-header .nav-right,.iridus-portal .site-header.ir-uh-header .header-account{margin-left:auto;order:2}.site-header.ir-uh-header .menu .tab,.iridus-portal .site-header.ir-uh-header .header-menu a{order:3}.site-header.ir-uh-header .ir-uh-name{max-width:90px}}
@media(max-width:430px){.site-header.ir-uh-header .ir-uh-name{display:none}.site-header.ir-uh-header .ir-uh-trigger{padding:4px!important;gap:0}.site-header.ir-uh-header .ir-uh-chevron{display:none}.site-header.ir-uh-header .container.nav,.iridus-portal .site-header.ir-uh-header .container.header-inner{gap:5px 8px}}
@media(prefers-reduced-motion:reduce){.site-header.ir-uh-header .ir-uh-flyout{animation:none}.site-header.ir-uh-header .ir-uh-trigger{transition:none}}

/* BEGIN IRIDUS SURWAVE UI CORE FIX V2 — Django-served stylesheet */
/* Iridus SurWave UI core v1 | 2026-11-08
   SurWave-only visual skin over shared player workspace, preserves user/server accent badges. */
body.iridus-portal.iridus-domain-surwave {
  --bg:#151515;
  --panel:#1e1e1e;
  --panel-alt:#252525;
  --border:#353535;
  --text:#e9ebef;
  --muted:#a6a8af;
  background:#151515;
}
/* Unified footer, not a detached black bar. */
body.iridus-domain-surwave .site-footer {
  box-sizing:border-box;
  margin-top:auto;
  background:#151515!important;
  border-top:1px solid #303030!important;
  color:#a8abb2!important;
  box-shadow:none!important;
  padding:0;
  position:relative;
  z-index:2;
}
body.iridus-domain-surwave .site-footer .footer-inner {
  box-sizing:border-box;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:21px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px 28px;
  font-size:12px;
  line-height:1.5;
}
body.iridus-domain-surwave .ir-sw-footer-brand {
  color:#e9ebef;
  font-weight:800;
  letter-spacing:.015em;
}
body.iridus-domain-surwave .ir-sw-footer-project {
  color:#b3b3b3;
  font-weight:500;
}
body.iridus-domain-surwave .ir-sw-footer-links {display:flex;align-items:center;gap:6px 22px;flex-wrap:wrap}
body.iridus-domain-surwave .ir-sw-footer-links a {
  color:#bec0c7;
  text-decoration:none;
  font-weight:650;
  transition:color .18s;
}
body.iridus-domain-surwave .ir-sw-footer-links a:hover {color:#f1c40f;text-decoration:none}
body.iridus-domain-surwave .ir-sw-footer-links a:focus-visible {outline:2px solid #f1c40f;outline-offset:4px;border-radius:3px}
/* Main player workspace, same grid dimensions and collapse behavior as Espolit. */
body.iridus-portal.iridus-domain-surwave .iw-layout {
  --ir-sw-surface:#1d1d1f;
  --ir-sw-surface-raised:#242426;
  --ir-sw-line:#37373a;
}
body.iridus-portal.iridus-domain-surwave .iw-layout :is(.iw-panel,.iw-card,.iw-edit-panel) {
  background-color:var(--ir-sw-surface);
  border-color:var(--ir-sw-line);
  color:#edf0f5;
  box-shadow:0 10px 30px rgba(0,0,0,.20);
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-card:hover {
  border-color:#666053;
}
/* Keep the user-configured accent outline; do not colorize iw-no-accent. */
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile:not(.iw-no-accent) {
  background:
    linear-gradient(#1d1d1f,#1d1d1f) padding-box,
    linear-gradient(to bottom,var(--iw-accent,#8b9aaa) 0%,var(--iw-accent,#8b9aaa) 30%,color-mix(in srgb,var(--iw-accent,#8b9aaa) 55%,#353535) 52%,#3b3b3f 70%,#3b3b3f 100%) border-box!important;
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-cover::after {
  background:linear-gradient(180deg,transparent 12%,rgba(19,19,20,.18) 44%,rgba(29,29,31,.8) 78%,#1d1d1f 100%);
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-stat {
  background:linear-gradient(145deg,#29292c,#222225);
  border:1px solid #414145;
  border-radius:11px;
  padding:11px 10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-stat b {font-size:14px;color:#f5f5f6}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-stat small {color:#aeb2bc;font-size:11px}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-stats-head a {color:#d9c37a}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-about,
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-profile-stats {
  border-top-color:#39393b;
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-about-text {color:#c7c8cf}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-right-toggle {
  background:#2b2b2e;
  border-color:#59595e;
  color:#e8e8eb;
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-right-toggle:hover {background:#38383c;border-color:#8d8056}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-about button[data-iw-about-toggle] {
  background:#2b2b2e!important;
  color:#e6e6eb!important;
  border-color:#515156!important;
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-about button[data-iw-about-toggle]:hover {background:#39393d!important}
/* Stats page follows the same graphite material as the smaller profile tiles. */
body.iridus-portal.iridus-domain-surwave .iw-layout :is(.iw-stats-intro,.iw-stats-overview,.iw-stats-servers,.iw-stats-card){
  background:#222225;
  border-color:#3b3b40;
}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-stats-card{background:#2a2a2e}
body.iridus-portal.iridus-domain-surwave .iw-layout .iw-stats-card span{color:#bdc0c9}
/* Never overwrite per-server badges or user-configured profile frame colors. */
@media(max-width:760px) {
  body.iridus-domain-surwave .site-footer .footer-inner {padding:19px 16px;gap:11px}
  body.iridus-domain-surwave .ir-sw-footer-links {gap:8px 18px}
}
@media(prefers-reduced-motion:reduce) {
  body.iridus-domain-surwave .ir-sw-footer-links a {transition:none}
}

/* END IRIDUS SURWAVE UI CORE FIX V2 */
