/* Palette sampled from the user's existing https://trucksimhub.net/ UI.
   Source code is original to this clean ConvoyLink rebuild. */
:root {
  --background: #101318;
  --panel: #181e26;
  --panel-raised: #1c242b;
  --border: #2d3642;
  --text: #f3f5f7;
  --muted: #bcc6d2;
  --accent: #f6b84b;
  --accent-soft: #2c2922;
  --accent-border: #5a4930;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1160px; margin: auto; padding: 48px 24px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 28px; }
.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand-logo { flex: 0 0 auto; object-fit: contain; }
.brand-family { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.brand-home { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.eyebrow { font-size: 12px; letter-spacing: .15em; color: var(--accent); font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 16px 0; }
h1 span { display: block; color: var(--accent); }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 17px; }
p { color: var(--muted); margin: 8px 0 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.wide { grid-column: 1/-1; }
.badge { padding: 10px 16px; border-radius: 24px; white-space: nowrap; font-size: 13px; }
.pending { background: var(--accent-soft); color: var(--accent); }
.ok { background: #183f35; color: #96e6c3; }
.bad { background: #482c31; color: #ffb6bd; }
.metric { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding: 12px 0; }
.good { color: #96e6c3; }
.badtext { color: #ffb6bd; }
.muted, small { color: #acb9c7; }
.account, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.vtc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vtc { border: 1px solid var(--border); background: var(--panel-raised); padding: 20px; border-radius: 8px; overflow-wrap: anywhere; }
.vtc h3 { margin-top: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.member-identity { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.member-identity strong { color: var(--text); }
.member-identity small { font-size: 12px; }
button, .button {
  border: 1px solid var(--accent); background: var(--accent); color: #171b20;
  border-radius: 7px; padding: 10px 16px; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer;
}
button:hover { background: #ffca6d; }
button:disabled { opacity: .5; cursor: wait; }
.button img { display: block; max-width: 100%; }
label { display: block; color: var(--muted); margin-bottom: 14px; }
input, textarea, select {
  display: block; margin-top: 6px; border: 1px solid #41505f; border-radius: 7px;
  background: #11171e; color: var(--text); font: inherit; padding: 10px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
form { max-width: 700px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 380px; overflow: auto; }
#notice:not(:empty) { padding: 15px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 8px; margin-bottom: 20px; }
footer { text-align: center; color: #acb9c7; font-size: 12px; padding: 28px; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.section-space { margin-top: 24px; }
summary { cursor: pointer; font-size: 20px; font-weight: 650; color: var(--accent); }
.load-order li { padding: 10px 0; overflow-wrap: anywhere; }
.load-order button, .vtc form button { margin: 4px; }
.grid > *, .vtc-list > * { min-width: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .hero, .account { align-items: flex-start; flex-direction: column; }
  .shell { padding: 28px 16px; }
  .card { padding: 20px; }
  .metric { font-size: 14px; }
}
