
:root { --bg:#0b0f14; --fg:#e7eef7; --muted:#9fb2c6; --card:#121a24; --line:#263244; --accent:#57a6ff; --good:#3ee07a; --bad:#ff6b6b; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif; background:var(--bg); color:var(--fg); }
a { color:var(--accent); text-decoration:none; }
.container { max-width:1100px; margin:0 auto; padding:16px; }
.topbar { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); margin-bottom:12px; }
.brand { display:flex; gap:10px; align-items:center; }
.brand h1 { font-size:18px; margin:0; }
.badges { display:flex; gap:8px; flex-wrap:wrap; }
.badge { background:var(--card); border:1px solid var(--line); padding:6px 10px; border-radius:999px; font-size:12px; color:var(--muted); }
.grid { display:grid; grid-template-columns: 1.4fr 1fr; gap:12px; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; }
.card h2 { margin:0 0 10px 0; font-size:16px; }
.small { color:var(--muted); font-size:12px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.btn { background:transparent; color:var(--fg); border:1px solid var(--line); padding:10px 12px; border-radius:12px; cursor:pointer; }
.btn.primary { border-color: var(--accent); }
.btn.good { border-color: var(--good); }
.btn.bad { border-color: var(--bad); }
.btn:active { transform: translateY(1px); }
input, select, textarea { width:100%; padding:10px; border-radius:12px; border:1px solid var(--line); background:#0d141e; color:var(--fg); }
textarea { min-height: 90px; resize: vertical; }
label { font-size:12px; color:var(--muted); display:block; margin:8px 0 6px; }
.hr { height:1px; background:var(--line); margin:12px 0; }
.helpbox { position:sticky; top:12px; }
.helpbox h3 { margin:0 0 6px 0; font-size:14px; }
.help-title { font-weight:600; }
.help-body { color:var(--muted); font-size:13px; line-height:1.35; }
.force-list { display:flex; flex-direction:column; gap:10px; }
.force { border:1px solid var(--line); border-radius:14px; padding:12px; background:#0d141e; }
.force-head { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.force-head .tag { font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); }
.tag.driving { border-color: rgba(62,224,122,.35); }
.tag.restraining { border-color: rgba(255,107,107,.35); }
.kv { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 680px) { .kv { grid-template-columns: 1fr; } }
.qmark { display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:12px; cursor:help; margin-left:6px; }
details { border:1px dashed rgba(159,178,198,.25); border-radius:12px; padding:8px 10px; margin-top:10px; }
summary { cursor:pointer; color:var(--muted); font-size:13px; }
.notice { border-left:3px solid var(--accent); padding:8px 10px; background:#0d141e; border-radius:10px; }
pre { white-space:pre-wrap; word-break:break-word; color:#cfe6ff; }
.footer {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  opacity: 0.95;
}

.footer-inner {
  max-width: 1100px;     /* keeps content nicely centered */
  margin: 0 auto;        /* centers the whole footer block */
  padding: 0 16px;       /* prevents touching page edges */
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;       /* responsive wrap on small screens */
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.footer .dot {
  margin: 0 6px;
  opacity: 0.7;
}

.footer-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
}

.footer-link {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.footer-link:hover {
  border-bottom-style: solid;
}


/* wordcount overflow */
textarea.over { outline: 2px solid rgba(255, 92, 92, 0.55); }


/* --- Added for Base Data Interview templates (aliases + footer) --- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }

.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.18); }
.pill.ok  { border-color: var(--good); }
.pill.bad { border-color: var(--bad); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,0.10); vertical-align: top; text-align: left; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }

.code { background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 10px; overflow: auto; }

.muted { opacity: 0.78; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.footer { margin-top: 18px; padding: 10px 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: flex-start; justify-content: center; }
.footer-icon { width: 18px; height: 18px; border-radius: 4px; flex: 0 0 auto; margin-top: 2px; }
.footer-text { text-align: left; opacity: 0.86; font-size: 13px; line-height: 1.35; }
.footer-text a { color: inherit; text-decoration: underline; }
