:root{
  --bg:#08101c;
  --bg-2:#0f1726;
  --bg-3:#111c2d;
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(111,182,255,.30);
  --text:#e8eef9;
  --muted:#97a6bf;
  --accent:#6fb6ff;
  --accent-soft:rgba(111,182,255,.14);
  --gold:#d7ae5e;

  --rail-open:260px;
  --rail-closed:18px;
  --topbar:64px;

  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;

  --shadow-1:0 10px 30px rgba(0,0,0,.18);
  --shadow-2:0 18px 40px rgba(0,0,0,.28);

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}
body{
  background:
    radial-gradient(circle at top, rgba(80,140,255,.08), transparent 30%),
    linear-gradient(180deg,#06101d 0%, #08101c 100%);
  color:var(--text);
}
a{color:inherit;text-decoration:none}

.app{display:flex;min-height:100vh}

/* rail-wrap -> rail -> rail-head/rail-nav blijft contract */
.rail-wrap{
  width:var(--rail-closed);
  transition:width .22s ease;
  position:relative;
  z-index:20;
  flex:0 0 auto;
}
.rail-wrap:hover,
.rail-wrap:focus-within{
  width:var(--rail-open);
}
.rail{
  width:var(--rail-open);
  height:100vh;
  transform:translateX(calc(-1 * (var(--rail-open) - var(--rail-closed))));
  transition:transform .22s ease;
  background:rgba(11,18,32,.96);
  border-right:1px solid var(--line);
  box-shadow:var(--shadow-2);
  backdrop-filter:blur(10px);
  position:sticky;
  top:0;
  overflow:auto;
}
.rail-wrap:hover .rail,
.rail-wrap:focus-within .rail{
  transform:translateX(0);
}
.rail-head{
  padding:14px 14px 12px;
  border-bottom:1px solid var(--line);
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.rail-brand{
  display:block;
  width:100%;
  max-width:232px;
  border-radius:12px;
  background:linear-gradient(135deg,#0d2746,#173a66);
  box-shadow:0 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(215,174,94,.22);
  color:var(--gold);
  font-weight:800;
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:center;
  padding:18px 12px;
}
.rail-nav{
  padding:12px;
  display:grid;
  gap:12px;
}
.nav-group{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:10px;
  background:rgba(255,255,255,.025);
}
.nav-group-title{
  color:var(--muted);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:4px 6px 10px;
}
.nav-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:11px 13px;
  border-radius:16px;
  border:1px solid transparent;
  background:rgba(255,255,255,.03);
  color:var(--text);
  margin-bottom:8px;
  transition:background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.nav-link:last-child{margin-bottom:0}
.nav-link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.06);
  border-color:rgba(111,182,255,.18);
  box-shadow:var(--shadow-1);
}
.nav-link.is-active{
  background:var(--accent-soft);
  border-color:rgba(111,182,255,.35);
  color:#dff0ff;
}

/* topbar -> top-left/toolbar blijft contract */
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  min-height:var(--topbar);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 18px;
  background:rgba(10,16,28,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}
.top-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.kicker{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}
.divider{
  width:1px;
  height:18px;
  background:var(--line);
}
.page-title{
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.toolbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.tool-btn{
  border:1px solid transparent;
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font:inherit;
}
.tool-btn:hover{background:rgba(255,255,255,.07)}
.tool-btn.is-active{
  background:var(--accent-soft);
  border-color:rgba(111,182,255,.35);
  color:#dff0ff;
}
.turn-chip{
  border:1px solid rgba(111,182,255,.28);
  background:rgba(111,182,255,.14);
  color:#dff0ff;
  padding:10px 14px;
  border-radius:14px;
  font-weight:700;
  white-space:nowrap;
}

.content{padding:18px}
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:1.25fr .75fr;
}
.card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,28,44,.90), rgba(11,18,30,.94));
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow-1);
}
.meta{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}
.hero-title{
  margin:10px 0 8px;
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  line-height:1.05;
}
.lead{
  color:#d6e2f5;
  line-height:1.6;
  max-width:70ch;
}
.muted{color:var(--muted)}
.row{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color:var(--text);
  padding:11px 14px;
  border-radius:14px;
  cursor:pointer;
  font:inherit;
}
.btn:hover{
  border-color:rgba(111,182,255,.28);
  background:linear-gradient(180deg, rgba(111,182,255,.16), rgba(255,255,255,.04));
}
.btn-primary{
  background:linear-gradient(180deg, rgba(111,182,255,.22), rgba(111,182,255,.10));
  border-color:rgba(111,182,255,.35);
  color:#dff0ff;
}
.hero-panel{
  position:relative;
  overflow:hidden;
}
.hero-panel::after{
  content:"";
  position:absolute;
  inset:auto -10% -30% auto;
  width:320px;
  height:320px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(111,182,255,.18), transparent 66%);
  pointer-events:none;
}
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:18px;
}
.stat{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.03);
}
.stat-label{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.stat-value{
  margin-top:6px;
  font-size:24px;
  font-weight:800;
}
.stack{display:grid;gap:12px}
.list-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  padding:14px;
}
.list-item strong{display:block;margin-bottom:6px}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  border:1px solid rgba(111,182,255,.22);
  background:rgba(111,182,255,.10);
  color:#dff0ff;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
}
.placeholder{
  margin-top:12px;
  min-height:220px;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  display:grid;
  place-items:center;
  color:var(--muted);
  background:rgba(0,0,0,.10);
  text-align:center;
  padding:20px;
}
code.inline{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:2px 6px;
}

@media (max-width: 960px){
  .grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .content{padding:16px}
  .toolbar{justify-content:flex-start}
}


/* owge logo override */
.rail-brand{
  font-size:0 !important;
  color:transparent !important;
  text-indent:-9999px;
  overflow:hidden;
  min-height:88px;
  padding:12px !important;
  background:
    url("../assets/owge-logo.webp") center center / contain no-repeat,
    transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

.rail-head{
  min-height:112px !important;
  align-items:flex-start;
  padding-top:10px !important;
}


/* owge rect logo override */
.rail-head{
  min-height: 124px !important;
  padding: 10px 12px 12px !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.rail-brand{
  display:block !important;
  width:100% !important;
  max-width:232px !important;
  min-height:82px !important;
  padding:0 !important;
  border-radius:12px !important;
  background:
    url("../assets/owge-logo-rect.webp") center center / contain no-repeat,
    transparent !important;
  box-shadow:none !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
}

.rail-brand:hover{
  transform:none !important;
}


/* OWGE nav logo patch */
.rail-head{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:10px 10px 6px;
  min-height:88px;
}

.rail-brand--logo{
  display:block;
  width:100%;
  text-decoration:none;
}

.rail-brand__logo{
  display:block;
  width:100%;
  max-width:230px;
  height:auto;
  object-fit:contain;
}
\n\n/* OWGE logo whitespace crop fix */
.rail-brand--logo{
  display:block;
  width:100%;
  max-width:230px;
  overflow:hidden;
}

.rail-brand__logo{
  display:block;
  width:calc(100% + 22px);
  max-width:none;
  height:auto;
  margin-left:-11px;
  margin-top:-8px;
  margin-bottom:-8px;
}\n
/* OWGE nav fix — Damage / Repair always available, Assets removed */
.owge-damage-repair-nav {
  display: flex !important;
}

a[href*="p-assets"],
a[href*="/assets"] {
  display: none !important;
}

