/* CX Drive brand: charcoal #1F2226, amber #F0A406 (from the logo). Amber buttons carry charcoal text (7.5:1 contrast). */
:root { --brand: #F0A406; --brand-dark: #D89300; --brand-tint: #FFF6E0; --link: #7A5200; --ink: #1F2226; --muted: #5B6168; --line: #E2E4E0; --bg: #F7F7F5; --good: #1E6B45; --good-tint: #E6F1EC; --red: #9F2A1C; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); }
header { background: var(--ink); color: #fff; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--brand); }
header .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #D7DBD6; }
header .brand img { height: 26px; width: auto; display: block; }
main { max-width: 960px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
main.narrow { max-width: 480px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 24px; } h2 { font-size: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select { height: 44px; border: 1px solid #C9CDC7; border-radius: 10px; padding: 0 12px; font-size: 16px; font-family: inherit; background: #fff; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
button { min-height: 44px; border-radius: 10px; border: none; background: var(--brand); color: var(--ink); font-size: 15px; font-weight: 700; padding: 0 16px; cursor: pointer; font-family: inherit; }
button:hover { background: var(--brand-dark); }
button.secondary { background: #fff; color: var(--ink); border: 1px solid #C9CDC7; font-weight: 600; }
button.secondary:hover { background: #F1F3EF; }
button.danger { background: var(--red); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
a.button { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: var(--brand); color: var(--ink); font-weight: 700; text-decoration: none; }
a.button:hover { background: var(--brand-dark); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.big { font-size: 28px; font-weight: 700; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 12px; background: var(--good-tint); color: var(--good); font-size: 13px; font-weight: 600; }
.pill.warn { background: #FFF4CC; color: #5C4600; }
.pill.bad { background: #FBE9E7; color: var(--red); }
.option { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; color: var(--ink); font-weight: 500; }
.option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }
.option:hover { background: #FFFBF2; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px; font-weight: 600; }
td { border-top: 1px solid #ECEEEA; padding: 8px; vertical-align: middle; }
.scroll { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--ink); border: 1px solid #C9CDC7; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.stars button { background: none; color: #9AA09A; font-size: 30px; padding: 0 4px; }
.stars button:hover { background: none; }
.stars button.on { color: var(--brand); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 10; max-width: 90vw; }
.toast.bad { background: var(--red); }
.hidden { display: none !important; }
