:root{
  --bg:#0f1115;
  --card:#161a22;
  --muted:#9aa3b2;
  --text:#e9edf5;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 28px rgba(0,0,0,.35);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
.app{
  height:100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.header{
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.title{ font-size: 20px; font-weight: 700; }
.sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.tabs{
  display:flex;
  gap: 8px;
  overflow-x:auto;
  padding-bottom: 4px;
}
.tab{
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
}
.tab[aria-selected="true"]{
  border-color: rgba(77,163,255,.45);
  background: rgba(77,163,255,.14);
}

.content{ flex: 1 1 auto; display:flex; min-height: 0; }
.card{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  overflow:auto;
}

.h1{ font-size: 18px; font-weight: 800; margin:0 0 6px 0; }
.p{ color: var(--muted); margin: 0 0 12px 0; line-height: 1.35; }

.section{ margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.sectionTitle{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
}
.list{ margin: 0; padding-left: 18px; color: var(--text); }
.list li{ margin: 6px 0; }
.muted{ color: var(--muted); }

.pill{
  display:inline-block;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,.88);
  margin-right: 6px;
}

.table{
  width:100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}
.table th, .table td{
  border-bottom: 1px solid var(--border);
  padding: 8px 8px;
  text-align:left;
  vertical-align: top;
}
.table th{ color: rgba(255,255,255,.9); font-weight: 800; }

.footer{ display:flex; gap: 10px; }
.btn{
  flex: 1 1 auto;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
}
.btn.primary{
  border-color: rgba(77,163,255,.55);
  background: rgba(77,163,255,.18);
}
.btn:active{ transform: translateY(1px); }
small{ color: var(--muted); }
/* Collapsible action cards */
.actionCard{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  margin-top: 10px;
}

.actionHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.actionTitle{
  font-weight: 800;
  font-size: 14px;
  margin: 0;
}

.actionSummary{
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.chev{
  flex: 0 0 auto;
  opacity: .85;
  font-weight: 900;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.actionBody{
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.hidden{ display:none; }
