:root{
  --site-shell-height:64px;
  --site-shell-bg:rgba(10,14,22,.92);
  --site-shell-border:rgba(255,255,255,.12);
  --site-shell-text:#f8fafc;
  --site-shell-muted:#a7b0c0;
  --site-shell-accent:#4ade80;
}

body.site-shell-offset{
  padding-top:calc(var(--site-shell-height) + 24px);
}

.site-shell-banner{
  position:fixed;
  inset:0 0 auto 0;
  z-index:2400;
  min-height:var(--site-shell-height);
  display:flex;
  align-items:center;
  background:var(--site-shell-bg);
  border-bottom:1px solid var(--site-shell-border);
  color:var(--site-shell-text);
  backdrop-filter:blur(14px);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.site-shell-inner{
  width:100%;
  max-width:1440px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  gap:14px;
}

.site-shell-brand{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  color:var(--site-shell-text);
  text-decoration:none;
  font:800 14px/1 Inter, Arial, sans-serif;
  letter-spacing:.08em;
}

.site-shell-slot{
  min-width:0;
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--site-shell-muted);
  font:600 13px/1.2 Inter, Arial, sans-serif;
}

.site-shell-link{
  color:var(--site-shell-muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:999px;
  transition:.18s ease;
}

.site-shell-link:hover{
  color:var(--site-shell-text);
  background:rgba(255,255,255,.08);
}

.site-shell-auth-button,
.site-shell-primary,
.site-shell-secondary,
.site-shell-danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  border:1px solid var(--site-shell-border);
  border-radius:999px;
  padding:0 14px;
  color:var(--site-shell-text);
  background:rgba(255,255,255,.08);
  font:800 13px/1 Inter, Arial, sans-serif;
  cursor:pointer;
  transition:.18s ease;
}

.site-shell-auth-button{
  margin-left:auto;
}

.site-shell-auth-button:hover,
.site-shell-primary:hover,
.site-shell-secondary:hover,
.site-shell-danger:hover{
  transform:translateY(-1px);
  border-color:rgba(74,222,128,.7);
}

.site-shell-primary{
  background:var(--site-shell-accent);
  color:#08110b;
  border-color:var(--site-shell-accent);
}

.site-shell-secondary{
  background:transparent;
}

.site-shell-danger{
  background:rgba(239,68,68,.12);
  border-color:rgba(239,68,68,.35);
  color:#fecaca;
}

.site-shell-overlay{
  position:fixed;
  inset:0;
  z-index:2600;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.68);
}

.site-shell-overlay.show{
  display:flex;
}

.site-shell-dialog{
  width:min(560px, 100%);
  max-height:calc(100vh - 44px);
  overflow:auto;
  background:#111827;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.42);
  color:var(--site-shell-text);
}

.site-shell-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.site-shell-dialog h2{
  margin:0;
  font:800 22px/1.2 Inter, Arial, sans-serif;
}

.site-shell-dialog p{
  margin:8px 0 0;
  color:var(--site-shell-muted);
  font:500 14px/1.45 Inter, Arial, sans-serif;
}

.site-shell-close{
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  color:var(--site-shell-text);
  background:rgba(255,255,255,.08);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}

.site-shell-tabs{
  display:flex;
  gap:8px;
  padding:16px 22px 0;
}

.site-shell-tab{
  flex:1;
  min-height:38px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  color:var(--site-shell-muted);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  font:800 13px/1 Inter, Arial, sans-serif;
}

.site-shell-tab.active{
  color:#08110b;
  background:var(--site-shell-accent);
  border-color:var(--site-shell-accent);
}

.site-shell-body{
  padding:20px 22px 22px;
}

.site-shell-form{
  display:grid;
  gap:12px;
}

.site-shell-label{
  display:grid;
  gap:7px;
  color:var(--site-shell-muted);
  font:700 12px/1 Inter, Arial, sans-serif;
}

.site-shell-input{
  width:100%;
  min-height:44px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  padding:0 13px;
  color:var(--site-shell-text);
  background:rgba(255,255,255,.07);
  font:600 14px/1 Inter, Arial, sans-serif;
  outline:none;
}

.site-shell-input:focus{
  border-color:rgba(74,222,128,.8);
  box-shadow:0 0 0 3px rgba(74,222,128,.16);
}

.site-shell-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:4px;
}

.site-shell-notice{
  display:none;
  margin:0 22px 18px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  color:#dbeafe;
  background:rgba(59,130,246,.16);
  font:700 13px/1.4 Inter, Arial, sans-serif;
}

.site-shell-notice.show{
  display:block;
}

.site-shell-grid{
  display:grid;
  gap:14px;
}

.site-shell-panel-card{
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.05);
}

.site-shell-panel-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.site-shell-panel-row:last-child{
  border-bottom:0;
}

.site-shell-kicker{
  color:var(--site-shell-muted);
  font:800 11px/1 Inter, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.site-shell-value{
  margin-top:6px;
  color:var(--site-shell-text);
  font:800 15px/1.2 Inter, Arial, sans-serif;
}

.site-shell-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  border-radius:999px;
  padding:0 9px;
  color:#bbf7d0;
  background:rgba(34,197,94,.14);
  font:800 12px/1 Inter, Arial, sans-serif;
}

.site-shell-pill.pending{
  color:#fed7aa;
  background:rgba(249,115,22,.14);
}

.site-shell-empty{
  color:var(--site-shell-muted);
  font:600 13px/1.45 Inter, Arial, sans-serif;
}

@media (max-width:720px){
  :root{
    --site-shell-height:72px;
  }

  .site-shell-inner{
    flex-wrap:wrap;
    gap:8px;
  }

  .site-shell-slot{
    order:3;
    flex-basis:100%;
    overflow:auto;
    padding-bottom:2px;
  }

  .site-shell-auth-button{
    margin-left:auto;
  }
}
