:root{
  --bg:#0b0c10;
  --panel:#11131a;
  --panel2:#0f1117;
  --text:#e9edf5;
  --muted:#a8b0c2;
  --border:#20263a;
  --accent:#6ea8fe;
  --good:#2ee59d;
  --danger:#ff6b6b;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:22px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(110,168,254,.18), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, rgba(46,229,157,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

/* ===== TOPBAR ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(10px);
}

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

.search{
  width:min(520px, 46vw);
  padding:10px 12px;
  border:1px solid var(--border);
  background: rgba(17,19,26,.65);
  color:var(--text);
  border-radius:999px;
  outline:none;
}
.search:focus{
  border-color: rgba(110,168,254,.8);
  box-shadow: 0 0 0 4px rgba(110,168,254,.15)
}

.btn{
  border:1px solid var(--border);
  background: rgba(17,19,26,.65);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.btn:hover{border-color: rgba(110,168,254,.55)}
.btn:active{transform: translateY(1px)}
.btn-ghost{background: transparent}



/* Header logos */
.brand-logo,
.topbar-logo{
  height: 42px;
  width: auto;
  display: block;

 

}

/* Hero logo (bigger) */
.hero-logo{
  height: 200px;
  width: auto;
  display: block;

  
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-title{
  font-weight:800;
  letter-spacing:.4px;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
  opacity:.85;
}

/* ===== HERO ===== */
.hero{
  padding: 34px 18px 22px;
  text-align:center;
  display:grid;
  place-items:center;
  gap:10px;
}

.hero-title{
  margin:0;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight:900;
  letter-spacing:.2px;
}

.hero-sub{
  margin:0;
  color: var(--muted);
  font-size:14px;
}

/* ===== LAYOUT ===== */
.layout{
  display: block;
  min-height: calc(100vh - 62px);
}
.main{padding:18px}
.content{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ===== CARDS ===== */
.card{
  border:1px solid var(--border);
  background: rgba(17,19,26,.55);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-header{
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
  padding:16px 16px 14px;
  cursor:pointer;
}

.card-title{
  font-size:20px;
  font-weight:850;
  letter-spacing:.2px;
  margin:0;
}

.card-meta{
  display:flex; gap:10px; align-items:center;
  color:var(--muted);
  font-size:12px;
  margin-top:6px
}

.pill{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:5px 10px;
  border-radius:999px;
}

.card-body{
  border-top:1px solid rgba(255,255,255,.06);
  padding:14px 16px 16px;
  display:none;
}
.card.open .card-body{display:block}

.text p{
  margin: 10px 0;
  line-height:1.55;
  color: rgba(233,237,245,.95);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:14px;
}

.box{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(15,17,23,.45);
  border-radius: var(--radius);
  padding:12px;
}
.box h3{
  margin:0 0 8px;
  font-size:13px;
  color: var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.8px
}

.checklist{display:flex; flex-direction:column; gap:8px}
.check{
  display:flex; gap:10px; align-items:flex-start;
  padding:8px 8px;
  border-radius: 12px;
}
.check:hover{background: rgba(255,255,255,.04)}
.check input{margin-top:2px}
.check label{cursor:pointer; line-height:1.25}

.section-actions{display:flex; gap:8px; margin-top:10px}
.smallbtn{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.smallbtn:hover{border-color: rgba(110,168,254,.55)}

.highlight{background: rgba(110,168,254,.18); padding:0 3px; border-radius:6px}

/* ===== DIALOG ===== */
.dialog{
  width:min(920px, 96vw);
  border:none;
  border-radius: var(--radius2);
  background: rgba(17,19,26,.92);
  color: var(--text);
  box-shadow: var(--shadow);
  padding:0;
}
.dialog::backdrop{background: rgba(0,0,0,.55)}
.dialog-inner{margin:0; padding:0}
.dialog-header{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dialog-title{font-weight:850; font-size:18px}
.dialog-body{padding:14px}
.dialog-actions{display:flex; gap:10px; margin-bottom:12px}
.master-checklist{display:flex; flex-direction:column; gap:12px}
.group{
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(15,17,23,.55)
}
.group-title{font-weight:800; margin-bottom:8px}
.group .check{padding:6px 6px}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .layout{grid-template-columns: 1fr}
  .sidebar{display:none}
  .grid2{grid-template-columns: 1fr}
  .search{width: 40vw}
  .hero-logo{height: 140px}
  .brand-logo{height: 36px}
}

/* ===== PRINT ===== */
@media print{
  .topbar, .hero, .sidebar, #toggleChecklist, #print, #search {display:none !important}
  body{background:#fff; color:#000}
  .card{box-shadow:none; background:#fff; border:1px solid #ddd}
  .card-body{display:block !important}
  .grid2{grid-template-columns: 1fr}
  .box{border:1px solid #eee; background:#fff}
}
