:root {
  --bg: #0b0e14;
  --panel: #141924;
  --panel-2: #1b2230;
  --text: #e6ebf2;
  --muted: #8b95a7;
  --brand: #4f8cff;
  --brand-2: #38d39f;
  --warn: #ef4444;
  --amber: #f59e0b;
  --border: #26304180;
  --radius: 14px;
  --card: #1a1f2e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
button { font-family: inherit; }
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b95a7' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 30px;
}
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 520px at 85% -10%, #17233d 0%, transparent 60%),
    radial-gradient(900px 480px at -10% 30%, #12203c66 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.container { margin: 0 auto; }

/* ambient glow orbs (landing page only) — pre-blurred gradients, no filter:
   blur() here, it's GPU-heavy enough to jank low-end machines */
.orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: -1;
}
.orb.a { width: 700px; height: 700px; top: -260px; right: -180px;
  background: radial-gradient(circle, #1d3f7a59 0%, transparent 65%);
  animation: drift 26s ease-in-out infinite alternate; }
.orb.b { width: 620px; height: 620px; bottom: -240px; left: -200px;
  background: radial-gradient(circle, #0f3d3355 0%, transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

/* top announcement banner */
.banner {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; text-align: center; padding: 10px 16px;
  font-size: 14.5px; font-weight: 500;
}
.banner a { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.banner strong { font-weight: 800; }

/* nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand span { color: var(--brand); }
nav .links { display: flex; align-items: center; }
nav .links a { margin-left: 20px; color: var(--muted); font-weight: 600; }
nav .links a:hover { color: var(--text); }
nav .links a.btn { color: #fff; }

/* hero */
.hero { padding: 64px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

/* hero split layout (copy left, product mock right) */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; padding: 56px 0 20px; text-align: left;
}
.hero-grid .hero-copy h1 { margin: 0 0 16px; }
.hero-grid .hero-copy p { margin: 0 0 26px; max-width: none; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-2); background: #10281f; border: 1px solid #1d4535;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.75);} }

/* product mock — a miniature live dashboard */
.mock { position: relative; animation: fadeUp .7s ease both .15s; }
.mock-panel {
  background: linear-gradient(180deg, #161c29, #121722);
  border: 1px solid #2a344a; border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 80px -20px #00000090, 0 0 0 1px #ffffff08 inset;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-head .t { font-weight: 800; font-size: 13px; }
.mock-head .t span { color: var(--brand); }
.mock-head .dots { display: flex; gap: 5px; }
.mock-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: #2a3448; }
.mock-card {
  background: var(--card); border: 1px solid #232c3f; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.45;
}
.mock-card .u { font-weight: 800; font-size: 13.5px; }
.mock-card .d { color: var(--muted); font-size: 11.5px; }
.mock-card .metrics { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.mock-card .metrics b { color: var(--text); font-weight: 700; }
.mock-card .metrics .good { color: #22c55e; }
.mock-card .metrics .bad { color: var(--warn); }
.mock-card.alert { border-color: #55232a; background: linear-gradient(180deg, #241a20, #1a1720); }

/* floating Telegram-style alert bubble */
.tg-bubble {
  position: absolute; right: -14px; bottom: -26px; width: 78%;
  background: #182233; border: 1px solid #2c3a55; border-radius: 14px 14px 4px 14px;
  padding: 12px 14px; font-size: 12.5px; line-height: 1.5;
  box-shadow: 0 24px 60px -12px #000000c0;
  animation: floaty 5.5s ease-in-out infinite;
}
.tg-bubble .from { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; margin-bottom: 5px; }
.tg-bubble .from .av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.tg-bubble .time { color: var(--muted); font-size: 10.5px; font-weight: 500; margin-left: auto; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }
.reveal { animation: fadeUp .7s ease both; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px;
  font-weight: 700; border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #3f6fd8); color: #fff; font-size: 15px;
  box-shadow: 0 8px 24px -8px #4f8cff66;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 28px -8px #4f8cff80; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); box-shadow: none; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 46px 0 8px;
}
.stats-strip .s {
  text-align: center; padding: 18px 10px; border-radius: var(--radius);
  background: #12172266; border: 1px solid var(--border);
}
.stats-strip .s b { display: block; font-size: 21px; letter-spacing: -.02em; }
.stats-strip .s span { color: var(--muted); font-size: 13.5px; }

/* features */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 40px 0; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3a4a6a; box-shadow: 0 18px 40px -18px #00000080; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.emoji { font-size: 26px; }
.card .emoji { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: #1b2436; margin-bottom: 12px; }

.sec-title { text-align: center; font-size: 32px; letter-spacing: -.02em; margin: 60px 0 6px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 0 26px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 20px; counter-reset: step; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 20px;
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.step h3 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* founder note */
.founder {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(180deg, #141b2a, #121722);
  border: 1px solid var(--border); border-left: 3px solid var(--brand-2);
  border-radius: var(--radius); padding: 24px 26px; margin: 40px 0;
}
.founder .av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
}
.founder p { margin: 0; font-size: 15.5px; }
.founder .who { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 20px 0 40px; }
.plan {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-3px); }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 20px 60px -24px #4f8cff59; }
.plan .tag { position: absolute; top: -11px; right: 20px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }
.plan li .soon-note { font-size: 12px; color: #d9a441; font-weight: 600; }

/* CTA band */
.cta-band {
  text-align: center; padding: 44px 26px; margin: 30px 0 10px;
  background: linear-gradient(180deg, #141d31, #10151f);
  border: 1px solid #2a3a5c; border-radius: 18px;
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

/* panels / forms */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 440px; margin: 40px auto; }
.panel h2 { margin: 0 0 6px; }
.panel .sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 15px;
  font-family: inherit;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 14px; }
.subtext { color: var(--muted); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.hide { display: none; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--border); }
.pill.trial { color: var(--brand-2); }
.pill.canceled { color: #ff6b6b; }
.pill.viewer { color: var(--amber); }

/* segmented control (sensitivity slider) */
.seg { display: flex; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.seg button { flex: 1; background: transparent; border: none; color: var(--muted); padding: 9px 6px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--brand); color: #fff; }

/* feature list (live vs coming soon) */
.features { display: grid; gap: 8px; }
.feat { display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.feat.locked { opacity: .72; }
.feat .fname { font-weight: 600; }
.feat .badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .02em; }
.badge.live { color: var(--brand-2); background: #10281f; }
.badge.soon { color: #d9a441; background: #2a2410; }
.badge.pro { color: var(--brand); background: #12203c; margin-left: 6px; }

/* onboarding setup block */
.setup { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.setup h3 { margin: 0 0 4px; font-size: 16px; }
.setup select { max-width: 150px; }

.note { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--muted); margin-top: 16px; }
footer { color: var(--muted); font-size: 14px; text-align: center; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }

#toast { position: fixed; top: 16px; right: 16px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); padding: 12px 18px; border-radius: 10px; opacity: 0; transform: translateY(-12px); transition: .25s; pointer-events: none; z-index: 50; max-width: 360px; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { border-color: #ff6b6b; }
#toast.ok { border-color: var(--brand-2); }

/* responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; text-align: center; }
  .hero-grid .hero-copy p { max-width: 560px; margin-left: auto; margin-right: auto; }
  .mock { max-width: 460px; margin: 0 auto; }
  .tg-bubble { right: 0; }
  .steps, .stats-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .tg-bubble, .hero h1 .grad, .hero-kicker .dot, .mock, .reveal { animation: none !important; }
  .btn, .card, .plan { transition: none; }
}

/* ================= dashboard app ================= */
body.dash { background: var(--bg); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #0b0e14e6; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-right { display: flex; align-items: center; gap: 16px; }
.tb-right a { color: var(--muted); font-weight: 600; font-size: 14px; }
.tb-right a:hover { color: var(--text); }
.tb-link { color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.tb-link:hover { color: var(--text); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); font-size: 15px;
}
.avatar:hover { border-color: var(--brand); }
.notif-bell { position: relative; cursor: pointer; font-size: 19px; line-height: 1; }
.notif-bell .badge {
  position: absolute; top: -6px; right: -9px; display: none;
  background: var(--warn); color: #fff; font-size: 10px; font-weight: 800;
  padding: 1px 5px; border-radius: 10px; min-width: 16px; text-align: center;
}

.dash-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.center-note { text-align: center; padding: 70px 20px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tile {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  padding: 14px 16px; text-align: center; cursor: pointer; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: #3a4a6a; transform: translateY(-1px); }
.tile .val { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tile .lbl { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.tile.warn.hot .val { color: var(--warn); }
.tile.money .val { color: var(--brand-2); }
.hint-i { opacity: .7; font-size: 11px; }

/* cost drawer */
.drawer {
  display: none; margin: 0 0 14px; padding: 16px 18px;
  background: linear-gradient(180deg, #141b2a, #121722);
  border: 1px solid #2a3a5c; border-radius: 14px;
}
.drawer.open { display: block; animation: fadeUp .2s ease both; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-note { font-size: 13px; margin: 8px 0 12px; }

/* controls */
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.controls select { max-width: 190px; }
.sens-row { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-left: auto; }
.sens-row select { padding: 6px 30px 6px 10px; font-size: 13px; border-radius: 8px; }

.share-panel { display: none; margin-bottom: 14px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.share-panel[style*="block"] { animation: fadeUp .2s ease both; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.share-row input { flex: 1; min-width: 200px; }
.danger-link { color: var(--warn); font-size: 12px; font-weight: 600; }

/* skeleton loading */
@keyframes shimmer-bg { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel { background: linear-gradient(90deg, var(--panel-2) 25%, var(--card) 50%, var(--panel-2) 75%); background-size: 800px 100%; animation: shimmer-bg 1.8s ease-in-out infinite; border-radius: 8px; }
.skel-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.skel-tile { height: 72px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.skel-tile .bar { height: 20px; width: 50%; margin: 18px auto 0; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.skel-card { height: 180px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skel-card .bar { height: 14px; border-radius: 6px; }
.skel-card .bar.w50 { width: 50%; }
.skel-card .bar.w30 { width: 30%; }
.skel-card .bar.w80 { width: 80%; }
.skel-card .bar.h10 { height: 10px; }
#skelWrap { display: none; }
#loading.skel-mode #skelWrap { display: block; }
#loading.skel-mode p.muted { display: none; }

/* truck cards */
.truck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.truck-card {
  padding: 16px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.tc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tc-head .unit { font-size: 17px; font-weight: 800; }
.tc-head .driver { font-size: 12px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story { font-size: 13px; line-height: 1.45; }
.story a { text-decoration: underline; }
.load-line {
  font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: 9px;
  background: #12203c66; border: 1px solid #22335580;
}
.dim { color: var(--muted); font-size: 11.5px; }
.metrics { display: flex; flex-direction: column; gap: 4px; }
.metric { font-size: 12px; display: flex; justify-content: space-between; }
.metric .warn { color: var(--warn); font-weight: 700; }
.metric .ok { color: #22c55e; }
.mini-note { font-size: 12px; margin: 2px 0 0; }
.actions { display: flex; gap: 6px; margin-top: 2px; }
.btn.mini { font-size: 11.5px; padding: 5px 11px; border-radius: 9px; cursor: pointer; }

/* events */
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.sec-head h3 { margin: 0; }
.evt-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 11px;
  margin-bottom: 7px; cursor: pointer; transition: border-color .15s;
}
.evt-card:hover { border-color: #3a4a6a; }
.evt-row { display: flex; gap: 9px; padding: 10px 13px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.evt-row .sev { font-size: 15px; flex-shrink: 0; }
.evt-row .grow { flex: 1; min-width: 180px; line-height: 1.45; }
.evt-row .cat { font-weight: 700; }
.evt-row .time { white-space: nowrap; }
.chip {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: var(--panel-2); border: 1px solid var(--border); white-space: nowrap;
}
.chip.unit { color: var(--muted); }
.chip.money { color: var(--brand-2); background: #10281f; border-color: #1d4535; }
.chip.mini { font-size: 10px; padding: 1px 7px; color: #d9a441; background: #2a2410; border-color: #4a3d1a; }
.evt-detail { display: none; padding: 2px 14px 12px 37px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.evt-detail.open { display: block; }

.compare-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.compare-table th, .compare-table td { padding: 8px 12px; text-align: center; border: 1px solid var(--border); }
.compare-table th { font-weight: 700; color: var(--muted); font-size: 12px; }
.compare-table td.ok { color: #22c55e; }
.compare-table td.warn { color: var(--warn); font-weight: 700; }
.evt-detail p { margin: 4px 0; }
.evt-detail b { color: var(--text); }

/* dashboard responsive */
@media (max-width: 780px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .truck-grid { grid-template-columns: 1fr; }
  .sens-row { margin-left: 0; }
  .tb-right { gap: 11px; }
  .tb-right a:not(.avatar) { font-size: 13px; }
  .dash-wrap { padding: 14px; }
  input, select, textarea { font-size: 16px; } /* stop iOS focus zoom */
  .truck-add-row { flex-direction: column; align-items: stretch; }
}
