
: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;
}
/* BTN_BORDER_HOVER_START */
/* Make all buttons have a light-blue border, and turn green on hover. */
button,
.btn {
  border: 1px solid #8ec5ff;          /* light blue */
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

/* Hover */
button:hover,
.btn:hover {
  border-color: #2ecc71;               /* green */
}

/* Keyboard focus (accessibility) */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #2ecc71;
  outline-offset: 2px;
}
/* BTN_BORDER_HOVER_END */

/* BTN_BORDER_TWEAK_START */
/* Default: light-blue border. Hover: green border. (All buttons / .btn / submit inputs) */
button,
.btn,
input[type="submit"] {
  border: 2px solid #9cc7ff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
  border-color: #39c36b;
  box-shadow: 0 0 0 2px rgba(57,195,107,0.15);
}

button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible {
  outline: none;
  border-color: #39c36b;
  box-shadow: 0 0 0 3px rgba(57,195,107,0.25);
}
/* BTN_BORDER_TWEAK_END */

/* ---- Button hover border styling (FFA) ---- */
.btn,
button,
input[type="submit"]{
  box-shadow: inset 0 0 0 1px #8ec5ff; /* light blue border */
  transition: box-shadow 120ms ease-in-out;
}

.btn:hover,
button:hover,
input[type="submit"]:hover{
  box-shadow: inset 0 0 0 1px #2ecc71; /* green hover border */
}
/* ---- end ---- */

/* ---- Button border/hover override (strong) ---- */
.btn,
button,
input[type="submit"],
input[type="button"]{
  border-color: #8ec5ff !important;              /* light blue border */
  box-shadow: inset 0 0 0 1px #8ec5ff !important; /* fallback border look */
  transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
  border-color: #2ecc71 !important;               /* green hover border */
  box-shadow: inset 0 0 0 1px #2ecc71 !important; /* fallback border look */
}
/* ---- end ---- */

/* ---- AI status dot ---- */
.ai-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  margin-right:6px;
  background:#999;
  vertical-align:middle;
}
.ai-dot.ok{ background:#2ecc71; }
.ai-dot.bad{ background:#e74c3c; }
/* ---- end ---- */

/* --- Button borders: light-blue default, green on hover --- */
.btn {
  border: 2px solid #9ecbff !important;   /* light blue */
}
.btn:hover,
.btn:focus {
  border-color: #34c759 !important;        /* green */
}

/* --- AI status dot (admin badge) --- */
.ai-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:6px;
  vertical-align:middle;
  background:#9aa0a6;
}
.ai-dot.ok{ background:#34c759; }  /* green */
.ai-dot.bad{ background:#ff3b30; } /* red */
