:root { --sps-blue: #06B8E8; --sps-navy: #0B1F3A; --sps-orange: #FF7A1A; --sps-black: #000; --sps-white: #fff; --muted: #5b6770; --line: #e3e8ec; --bg: #f5f8fa; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--sps-navy); background: var(--bg); }
a { color: #0379a0; }
.topbar { background: var(--sps-navy); color: var(--sps-white); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { font-size: 22px; font-weight: bold; letter-spacing: -0.3px; color: var(--sps-white); text-decoration: none; }
.wordmark span { color: var(--sps-blue); }
.topbar nav a { color: var(--sps-white); margin-left: 16px; text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: var(--sps-blue); }
.topbar nav a.active { border-bottom: 2px solid var(--sps-blue); padding-bottom: 2px; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--sps-white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 420px; margin: 60px auto; }
h1 { font-size: 24px; margin: 0 0 16px; } h2 { font-size: 18px; margin: 0 0 12px; }
label { display: block; font-size: 14px; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 10px; border: 1px solid #c8d0d6; border-radius: 6px; font: inherit; }
button, .btn { background: var(--sps-blue); color: var(--sps-navy); border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: bold; cursor: pointer; margin-top: 16px; text-decoration: none; display: inline-block; }
.muted { color: var(--muted); font-size: 14px; }
.errorlist { color: #b00020; padding-left: 18px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--sps-white); border: 1px solid var(--line); border-top: 4px solid var(--sps-blue); border-radius: 8px; padding: 14px; text-decoration: none; color: inherit; }
.stat b { display: block; font-size: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: normal; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #e6f8fd; }
.table-wrap { overflow-x: auto; }
button:hover, .btn:hover { background: var(--sps-orange); color: var(--sps-white); }
input:focus { outline: 2px solid var(--sps-blue); outline-offset: 1px; border-color: var(--sps-blue); }
.pill-warn { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--sps-orange); color: var(--sps-white); }
.card.alert { border-left: 4px solid var(--sps-orange); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; min-width: 180px; padding: 8px; border: 1px solid #c8d0d6; border-radius: 6px; font: inherit; }
.inline-form button, td form button { margin-top: 0; padding: 8px 14px; }
.btn-secondary { background: var(--sps-navy); color: var(--sps-white); }
.card.notice { border-left: 4px solid var(--sps-blue); padding: 12px 20px; }
.nav-badge { background: var(--sps-orange); color: var(--sps-white); border-radius: 10px; padding: 1px 7px; font-size: 12px; margin-left: 4px; }
.wordmark em { font-style: normal; font-weight: normal; color: var(--sps-white); margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); }

/* ---- client portal ---- */
.client-head h1 { margin-bottom: 2px; }
.client-head p { margin: 0 0 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--sps-navy); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: #0379a0; }
.tabs a.active { border-bottom-color: var(--sps-blue); font-weight: bold; }
h2.section { font-size: 18px; margin: 0 0 12px; }
.stats { margin-bottom: 20px; }
.small { font-size: 13px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.pill-rental { background: #fff1e6; }
.placeholder { border-style: dashed; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.choice { background: var(--sps-white); border: 1px solid var(--line); border-left: 4px solid var(--sps-blue); border-radius: 8px; padding: 16px; text-decoration: none; color: inherit; }
.choice:hover { border-left-color: var(--sps-orange); }
.choice b { display: block; font-size: 17px; margin-bottom: 4px; } .choice span { color: var(--muted); font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col > .card { margin-bottom: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
.stacked .field { margin-bottom: 12px; }
.stacked label { margin: 0 0 4px; font-weight: bold; font-size: 14px; }
.stacked label.check { font-weight: normal; display: flex; gap: 8px; align-items: flex-start; }
.stacked select, .stacked textarea, .stacked input[type=number] { width: 100%; padding: 10px; border: 1px solid #c8d0d6; border-radius: 6px; font: inherit; background: #fff; }
.stacked ul { list-style: none; padding: 0; margin: 0; } .stacked ul label { font-weight: normal; }
.stacked .has-error input, .stacked .has-error select, .stacked .has-error textarea { border-color: #b00020; }
.req { color: var(--sps-orange); }
.status { font-size: 12px; padding: 3px 9px; border-radius: 10px; background: #e6f8fd; white-space: nowrap; }
.status-submitted, .status-open, .status-pending { background: #e6f8fd; }
.status-in_progress, .status-contacted, .status-signed_up, .status-qualifying { background: #fff1e6; color: #8a3d00; }
.status-waiting { background: var(--sps-orange); color: #fff; }
.status-completed, .status-closed, .status-applied, .status-done, .status-reward_sent { background: #e5f5e9; color: #1d6b33; }
.status-cancelled, .status-rejected, .status-not_proceeding { background: #eef0f2; color: var(--muted); }
.prio { font-size: 12px; padding: 3px 9px; border-radius: 10px; background: #eef0f2; white-space: nowrap; }
.prio-3 { background: #fff1e6; color: #8a3d00; } .prio-4 { background: var(--sps-orange); color: #fff; font-weight: bold; }
.reward { background: #fff1e6; border-left: 4px solid var(--sps-orange); padding: 10px 14px; border-radius: 6px; }
.actions-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.actions-row .btn { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.btn-small { padding: 6px 12px; font-size: 14px; margin-top: 0; }
.explainer { background: var(--bg); border-radius: 6px; padding: 4px 16px; margin-bottom: 16px; font-size: 15px; }
.thread { margin: 16px 0; }
.msg { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.msg-staff { border-left: 4px solid var(--sps-blue); background: #f5fcfe; }
.msg p { margin: 6px 0 0; }
.prewrap { white-space: pre-wrap; }
.narrow-wide { max-width: 640px; }
.article-list { list-style: none; padding: 0; margin: 0; } .article-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain { padding-left: 18px; }
.article { max-width: 760px; line-height: 1.6; } .lead { font-size: 18px; color: var(--muted); }
.login-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(280px, 1fr); gap: 24px; max-width: 900px; margin: 40px auto; align-items: start; }
.login-layout .card { margin: 0; }
@media (max-width: 760px) { .login-layout { grid-template-columns: 1fr; margin-top: 16px; } }
.stat-alert { border-top-color: var(--sps-orange); }
