/* KARS AI service — KARS Technologies (KARS One theme, navy #1e3a8a accent) */
:root {
  --navy: #1e3a8a;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --ok: #047857;
  --bad: #b91c1c;
  --border: #e5e7eb;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}
a { color: var(--navy); }
.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 1.4rem; background: #fff; color: var(--text);
  border-bottom: 1px solid #e5e9f2; flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 0.6rem; }
.topbar-wordmark { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.wm-kars { color: #1a365d; }
.wm-one { color: #4a90d9; font-weight: 600; }
.app-title { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 0.6rem;
  padding-left: 0.9rem; border-left: 1px solid var(--border); }
.topbar-right { display: flex; align-items: center; gap: 0.7rem; }
.home-pill { display: inline-flex; align-items: center; background: #f1f5ff; border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.88rem; font-weight: 700; color: #1e3a8a; white-space: nowrap;
  text-decoration: none; }
.home-pill:hover { background: #e4ecff; }
.content { flex: 1; padding: 1.4rem 1.6rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.page-foot { text-align: center; color: #9aa3b5; font-size: 0.82rem; padding: 1.2rem; }
h1 { font-size: 1.6rem; margin: 0.4rem 0 1rem; }
h3 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.88em; background: #f1f5ff;
  padding: 0.1rem 0.35rem; border-radius: 5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.cards .card { margin-bottom: 0; }
.warn-card { border-left: 4px solid #b45309; background: #fffbeb; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.soon { font-size: 0.68rem; background: #fef3c7; color: #92400e; border-radius: 999px;
  padding: 0.05rem 0.45rem; font-weight: 800; vertical-align: middle; }

/* Dark theme (Nov 24, 2026) — Sales dark pattern: near-black background,
   dark cards, white text, gold #C5A059 accent. Chosen in Portal My Profile
   > Preferences > View Style; stored as the shared kars_theme cookie, so
   every KARS app that reads it can follow one choice. EVERY rule here is
   scoped to html[data-theme="dark"] — the light theme above is untouched.
   KARS AI has no sidebar and no logo image; the wordmark is text only. */
html[data-theme="dark"] { --bg: #0b0b0f; --card: #1a1a22; --text: #f3f4f6; --muted: #9ca3af; --border: #2e2e3a; color-scheme: dark; }
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] body.karsone { background: #0b0b0f; }
html[data-theme="dark"] a { color: #8ab4ff; }
html[data-theme="dark"] h1, html[data-theme="dark"] h3 { color: #f3f4f6; }
html[data-theme="dark"] .muted { color: var(--muted); }
html[data-theme="dark"] .page-foot { color: #6b7280; }
/* Dark theme wordmark: dark blue -> gold, light blue -> white. */
html[data-theme="dark"] .wm-kars { color: #C5A059; }
html[data-theme="dark"] .wm-one { color: #fff; }
/* Topbar */
html[data-theme="dark"] .topbar { background: #0b0b0f; border-bottom-color: #2e2e3a; color: #f3f4f6; }
html[data-theme="dark"] .app-title { color: #9ca3af; border-left-color: #2e2e3a; }
html[data-theme="dark"] .home-pill { background: #fff; color: #1a1a22; }
html[data-theme="dark"] .home-pill:hover { background: #e5e7eb; }
/* Cards + tables */
html[data-theme="dark"] .card { background: #1a1a22; border-color: #2e2e3a; color: #f3f4f6; }
html[data-theme="dark"] .warn-card { background: #2a1f0a; border-left-color: #b45309; color: #fcd34d; }
html[data-theme="dark"] .tbl th, html[data-theme="dark"] .tbl td { border-bottom-color: #2e2e3a; color: #f3f4f6; }
html[data-theme="dark"] .tbl th { color: #9ca3af; }
html[data-theme="dark"] .mono { background: #26262f; color: #f3f4f6; }
html[data-theme="dark"] .ok { color: #6ee7b7; }
html[data-theme="dark"] .bad { color: #fca5a5; }
html[data-theme="dark"] .soon { background: #78350f; color: #fcd34d; }
