:root{
  --glass: rgba(255,255,255,.04);
  --glass2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.08);
  --stroke2: rgba(255,255,255,.12);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --r16: 16px;
  --r14: 14px;
  --r12: 12px;

  /* ✅ new: accent for actions (Copy/Reset) */
  --accent: rgba(255,210,120,.95);
  --accent2: rgba(140,200,255,.95);
}

/* ✅ Full screen + page scroll */
html, body{
  height:100%;
}
body.dash{
  min-height:100vh;
  overflow-y:auto; /* ✅ page scroll */
  overflow-x:hidden;
}

/* ✅ Make content use full viewport width */
.toolsWrap{
  /* was max-width:1280px; margin:0 auto; */
  width: 100%;
  max-width: none;          /* ✅ full screen */
  margin: 0;                /* ✅ no centering constraints */
  padding: 18px;
  min-height: calc(100vh - 72px); /* 72px ~ topbar height */
}

.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.hero h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.2px;
}
.hero .sub{
  margin-top:6px;
  opacity:.75;
  line-height:1.4;
}

.chipRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  cursor:pointer;
  user-select:none;
  transition: .18s ease;
  opacity:.92;
}
.chip:hover{ transform: translateY(-1px); background: var(--glass2); border-color: var(--stroke2); }
.chip .dot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,.07);
}
.chip.active .dot{ background: rgba(255,210,120,.95); box-shadow: 0 0 0 3px rgba(255,210,120,.15); }
.chip small{ opacity:.7; }

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--stroke);
  border-radius: var(--r16);
  box-shadow: var(--shadow);
  overflow:hidden;
  /* ✅ panel can be tall; page scroll works */
}

.panelInner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  min-height: 560px;
  /* ✅ fill viewport height for “expensive” look */
  height: calc(100vh - 72px - 18px - 18px - 64px); /* topbar + wrap padding + hero approx */
  max-height: 860px; /* safe cap for very large monitors */
}

/* ✅ Internal scroll areas */
.catalog{
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,.06);
  overflow:auto; /* ✅ scroll catalog */
}

.viewer{
  padding: 16px;
  overflow:auto; /* ✅ scroll viewer */
}

/* Left side: catalog */
.catalogTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(10,12,18,.88), rgba(10,12,18,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.search{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}
.search input{
  width:100%;
  border:none;
  outline:none;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}
.search .k{
  opacity:.65;
  font-size:12px;
  padding: 2px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
}

.searchIcon{
  opacity:.7;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  opacity:.9;
  white-space:nowrap;
}
.badge b{ font-weight:600; }
.badge span{ opacity:.7; font-size:12px; }

.groups{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

.group{
  padding: 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius: var(--r14);
  background: rgba(255,255,255,.02);
}

.groupHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.groupHead h3{
  margin:0;
  font-size: 14px;
  letter-spacing:.2px;
}
.groupHead .hint{
  opacity:.6;
  font-size: 12px;
}

.gridCards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.toolCard{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-radius: var(--r12);
  padding: 12px;
  cursor:pointer;
  transition:.18s ease;
  position:relative;
  overflow:hidden;
  min-height: 86px;
}
.toolCard:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}
.toolCard.active{
  border-color: rgba(255,210,120,.38);
  box-shadow: 0 0 0 2px rgba(255,210,120,.08) inset;
}

.toolTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight: 650;
  letter-spacing:.1px;
}
.toolDesc{
  margin-top:6px;
  opacity:.65;
  font-size:12.5px;
  line-height:1.35;
}

.pillMini{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  opacity:.75;
  white-space:nowrap;
}

.tagRow{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tag{
  font-size: 11px;
  opacity:.7;
  padding: 4px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

/* Right side: tool view */
.viewerTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(10,12,18,.88), rgba(10,12,18,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.viewerTitle{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.viewerTitle h2{
  margin:0;
  font-size: 16px;
  letter-spacing:.2px;
}
.viewerTitle .meta{
  opacity:.65;
  font-size: 12px;
  line-height:1.35;
}

.viewerActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ✅ highlight Copy/Reset buttons (same class) */
.btnGhost{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  cursor:pointer;
  transition:.18s ease;
  opacity:.98;

  /* ✅ make text brighter + eye-catching */
  color: rgba(255,255,255,.96);
  font-weight: 700;
  letter-spacing: .2px;

  /* subtle glow so “Copy / Reset” pop */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 10px 24px rgba(0,0,0,.22);
  text-shadow: 0 1px 10px rgba(255,255,255,.10);
}

/* if there is icon inside button */
.btnGhost svg,
.btnGhost .ico{
  opacity: .95;
}

.btnGhost:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(0,0,0,.24);

  /* little accent glow on hover */
  box-shadow:
    0 0 0 1px rgba(255,210,120,.14) inset,
    0 0 0 3px rgba(255,210,120,.06),
    0 14px 28px rgba(0,0,0,.26);
}

/* ✅ optional: make first action (usually Copy) warmer accent */
.viewerActions .btnGhost:first-child{
  color: rgba(255,235,200,.98);
  border-color: rgba(255,210,120,.22);
}
.viewerActions .btnGhost:first-child:hover{
  box-shadow:
    0 0 0 1px rgba(255,210,120,.18) inset,
    0 0 0 3px rgba(255,210,120,.08),
    0 14px 28px rgba(0,0,0,.26);
}

/* ✅ optional: make last action (usually Reset) cooler accent */
.viewerActions .btnGhost:last-child{
  color: rgba(210,235,255,.98);
  border-color: rgba(140,200,255,.22);
}
.viewerActions .btnGhost:last-child:hover{
  box-shadow:
    0 0 0 1px rgba(140,200,255,.18) inset,
    0 0 0 3px rgba(140,200,255,.08),
    0 14px 28px rgba(0,0,0,.26);
}

.toolBody{
  border:1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  border-radius: var(--r14);
  padding: 14px;
  min-height: 470px;
}

.hr{
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 12px 0;
}

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field label{
  display:block;
  font-size:12px;
  opacity:.72;
  margin-bottom:6px;
}
.field .inp{
  width:100%;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.out{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
  min-height: 96px;
  white-space: pre-wrap;
}

.noteBox{
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 12px;
  opacity:.92;
  line-height:1.45;
  font-size: 13px;
}

.miniGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.stat{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 10px;
}
.stat .k{ opacity:.65; font-size:12px; }
.stat .v{ margin-top:4px; font-weight:650; }

.warn{
  color: rgba(255,190,120,.95);
}

/* ✅ prettier scrollbars (optional, doesn't break) */
.catalog::-webkit-scrollbar,
.viewer::-webkit-scrollbar,
body::-webkit-scrollbar { width: 10px; height: 10px; }
.catalog::-webkit-scrollbar-thumb,
.viewer::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.25);
}
.catalog::-webkit-scrollbar-track,
.viewer::-webkit-scrollbar-track,
body::-webkit-scrollbar-track { background: rgba(0,0,0,.12); }

/* Responsive */
@media (max-width: 980px){
  .panelInner{
    grid-template-columns: 1fr;
    height: auto; /* ✅ mobile: allow natural page scroll */
    max-height: none;
  }
  .catalog{
    border-right:none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    max-height: 420px; /* ✅ catalog scroll on mobile */
  }
  .viewer{ max-height: none; }
  .gridCards{ grid-template-columns: 1fr; }

  /* ✅ keep full width on mobile too */
  .toolsWrap{
    width: 100%;
    max-width: none;
    margin: 0;
  }
}