:root{
  --black:#0b0b0c;
  --white:#ffffff;
  --gray-100:#e5e5e5;
  --gray-300:#a8a8a8;
  --gray-500:#6b6b6b;
  --yellow:#FFD400;
  --ring: rgba(255, 212, 0, 0.35);
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif;
  background:var(--black);
  color:var(--gray-100);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;
}

.container{
  max-width:1380px;
  margin:0 auto;
  padding:0 24px;
}

nav{
  position:sticky;
  top:0;
  background:rgba(11,11,12,0.95);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  z-index:1000;
  padding:18px 0;
}

nav .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.logo{
  font-size:15px;
  letter-spacing:1px;
  font-weight:700;
  color:var(--white);
  text-transform:uppercase;
  text-decoration:none;
}

nav ul{
  display:flex;
  list-style:none;
  gap:22px;
}

nav a{
  color:var(--gray-300);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:color .2s;
}

nav a:hover{ color:var(--white); }

.nav-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:var(--white);
  color:var(--black);
  padding:14px 26px;
  text-decoration:none;
  font-weight:750;
  font-size:15px;
  line-height:1;
  border:2px solid var(--white);
  border-radius:12px;
  transition:transform .18s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover{
  background:transparent;
  color:var(--white);
  transform: translateY(-1px);
}

.btn:active{ transform:translateY(0); }
.btn:focus{ outline:none; }
.btn:focus-visible{ box-shadow:0 0 0 4px var(--ring); }

.btn.secondary{
  background:transparent;
  color:var(--white);
  border:2px solid rgba(255,255,255,0.22);
}

.btn.secondary:hover{
  border-color:rgba(255,255,255,0.45);
  color:var(--white);
  background:rgba(255,255,255,0.02);
}

.btn.yellow{
  background:var(--yellow);
  border-color:var(--yellow);
  color:var(--black);
}

.btn.yellow:hover{
  background:transparent;
  color:var(--yellow);
  border-color:var(--yellow);
}

.btn.sm{
  padding:10px 16px;
  font-size:13px;
  border-radius:10px;
}

.active-toggle{
  border-color:var(--yellow);
  color:var(--yellow);
  background:rgba(255,212,0,0.05);
}

section{ padding:40px 0; }
.divider{ border-top:1px solid rgba(255,255,255,0.08); }

.hero{
  padding:28px 0 20px;
}

.status-line{
  font-size:12px;
  color:var(--yellow);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.6px;
  margin-bottom:18px;
}

h1{
  font-size:clamp(36px, 5vw, 60px);
  font-weight:800;
  color:var(--white);
  letter-spacing:-2px;
  line-height:1.06;
  margin-bottom:10px;
}

h2{
  font-size:clamp(20px, 2.8vw, 30px);
  color:var(--white);
  margin-bottom:8px;
  font-weight:800;
  letter-spacing:-0.8px;
}

h3{
  color:var(--white);
  font-size:24px;
  font-weight:750;
  letter-spacing:-0.4px;
}

.tagline{
  font-size:clamp(16px, 1.8vw, 21px);
  color:var(--gray-300);
  max-width:920px;
  margin-bottom:18px;
}

.highlight{
  color:var(--yellow);
  font-weight:700;
}

.hero-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:12px;
  margin:14px 0 16px;
}

.card,
.panel,
.tile,
.summary-card,
.tree-node-label,
.directory-chip,
.asset-card,
.stat-card{
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
}

.card{
  padding:16px;
}

.card .label{
  font-size:11px;
  color:var(--gray-500);
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:8px;
}

.card .value{
  font-size:15px;
  color:var(--gray-100);
  font-weight:650;
}

.card .value strong{
  color:var(--white);
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:space-between;
  align-items:center;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chips-large{
  flex:1 1 280px;
}

.breadcrumb,
.fact-pill{
  font-size:12px;
  color:var(--gray-300);
  border:1px solid rgba(255,212,0,0.25);
  background:rgba(255,212,0,0.05);
  padding:8px 12px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
}

.breadcrumb{
  cursor:pointer;
}

.breadcrumb:hover{
  border-color:var(--yellow);
  color:var(--white);
}

.search-shell{
  display:flex;
  gap:12px;
  align-items:center;
  flex:1 1 440px;
  justify-content:flex-end;
}

.search-shell input{
  width:min(100%, 460px);
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.12);
  color:var(--white);
  padding:14px 18px;
  border-radius:12px;
  font-size:16px;
}

.search-shell input::placeholder{
  color:var(--gray-500);
}

.search-shell input:focus{
  outline:none;
  border-color:rgba(255,212,0,0.55);
  box-shadow:0 0 0 4px var(--ring);
}
.dashboard-shell{
  margin-top:8px;
  display:grid;
  grid-template-columns:300px 1fr;
  gap:18px;
  align-items:start;
}

.sidebar-column,
.main-column{
  display:grid;
  gap:18px;
}

.panel{
  padding:18px;
}

.panel-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}

.panel-header-tight{
  margin-bottom:14px;
}

.section-kicker{
  font-size:12px;
  color:var(--yellow);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1.6px;
  margin-bottom:8px;
}

.summary-cards,
.tree-root{
  display:grid;
  gap:12px;
}

.summary-card{
  width:100%;
  padding:16px;
  display:block;
  text-align:left;
  color:inherit;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:all .25s ease;
}

.summary-card:hover,
.summary-card.active{
  border-color:var(--yellow);
  transform:translateY(-1px);
}

.summary-card strong{
  display:block;
  color:var(--white);
  font-size:16px;
  margin-bottom:4px;
}

.summary-card .count{
  color:var(--gray-300);
  font-size:14px;
}

.tree-node{
  display:grid;
  gap:8px;
}

.tree-node-label{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--gray-100);
  text-decoration:none;
  cursor:pointer;
  transition:all .25s ease;
}

.tree-node-label:hover{
  border-color:var(--yellow);
}

.tree-node-children{
  margin-left:12px;
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,0.08);
  display:grid;
  gap:8px;
}

.stats-strip{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:14px;
}

.stat-card{
  padding:14px;
}

.stat-card .label{
  font-size:12px;
  color:var(--gray-500);
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:1px;
}

.stat-card .value{
  margin-top:6px;
  font-size:28px;
  line-height:1;
  color:var(--white);
  font-weight:800;
  letter-spacing:-1px;
}

.browser-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap:18px;
}

.browser-panel{
  min-height:620px;
  display:grid;
  grid-template-rows:auto auto 1fr;
  gap:16px;
}

.detail-panel{
  min-height:620px;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:16px;
}

.view-toggles{
  display:flex;
  gap:10px;
}

.directory-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.directory-chip{
  display:inline-flex;
  padding:10px 14px;
  color:var(--gray-100);
  text-decoration:none;
  cursor:pointer;
  transition:all .25s ease;
}

.directory-chip:hover{
  border-color:var(--yellow);
  color:var(--white);
}

.asset-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
  align-content:start;
}

.asset-grid.list-view{
  grid-template-columns:1fr;
}

.asset-card{
  padding:16px;
  display:grid;
  text-align:left;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:all .25s ease;
  gap:14px;
}

.asset-card:hover{
  border-color:var(--yellow);
  transform:translateY(-1px);
}

.asset-thumb{
  aspect-ratio: 1.18;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.asset-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.asset-type-badge{
  font-size:11px;
  color:var(--yellow);
  margin-top:-2px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:700;
}

.asset-name{
  color:var(--white);
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  word-break:break-word;
}

.asset-meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
  color:var(--gray-300);
  font-size:13px;
}

.empty-state{
  display:grid;
  place-items:center;
  min-height:240px;
  text-align:center;
}

.empty-state h3{
  margin-bottom:6px;
}

.empty-state p{
  color:var(--gray-300);
}

.detail-empty{
  display:grid;
  place-items:start stretch;
}

.neutral-tile{
  padding:20px;
  text-align:center;
  color:var(--gray-300);
}

.detail-card{
  display:grid;
  grid-template-rows:minmax(280px, 46vh) auto;
  gap:18px;
}

.preview-frame{
  border-radius:16px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height:280px;
}

.preview-frame img,
.preview-frame iframe,
.preview-frame video{
  width:100%;
  height:100%;
  border:0;
  object-fit:contain;
}

.preview-frame audio{
  width:calc(100% - 28px);
}

.preview-placeholder{
  padding:26px;
  text-align:center;
  color:var(--gray-300);
}

.detail-meta h3{
  margin-bottom:8px;
}

.detail-path{
  color:var(--gray-500);
  word-break:break-word;
  margin-bottom:12px;
}

.detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.hidden{
  display:none !important;
}

@media (max-width: 1180px){
  .dashboard-shell,
  .browser-layout,
  .stats-strip{
    grid-template-columns:1fr;
  }
}

@media (max-width: 820px){
  nav ul{ display:none; }
  h1{ font-size:34px; }
  .cta-row,
  .panel-header{
    flex-direction:column;
    align-items:stretch;
  }
  .search-shell{
    justify-content:stretch;
    flex-direction:column;
    align-items:stretch;
  }
  .search-shell input{
    width:100%;
  }
}

@media (max-width: 560px){
  .btn{
    width:100%;
  }
  .nav-actions .btn,
  .view-toggles .btn,
  .detail-actions .btn{
    width:auto;
  }
  .asset-grid{
    grid-template-columns:1fr;
  }
}
