:root { --brand-red:#ed1c24; --brand-yellow:#f5d40c; --action:#ba1420; --action-hover:#99101b; --ink:#242629; --muted:#62676c; --border:#dedfe2; --surface:#fff; --canvas:#f5f5f3; }
* { box-sizing:border-box; }
html { scroll-padding-top:24px; }
body { margin:0; background:var(--canvas); color:var(--ink); font:15px/1.55 system-ui,-apple-system,Segoe UI,sans-serif; }
a { color:var(--action); text-decoration:underline; text-underline-offset:3px; }
a:hover { color:var(--action-hover); }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid #8b3900; outline-offset:4px; }
.top { min-height:92px; padding:16px 4%; background:#191b1e; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:3px solid var(--brand-red); }
.brand { display:flex; align-items:center; gap:20px; color:#fff; text-decoration:none; min-width:0; }
.brand:hover { color:#fff; }
.brand-logo { display:block; width:140px; height:auto; flex-shrink:0; }
.brand-caption { border-left:1px solid #ffffff35; padding-left:20px; font-size:15px; font-weight:600; max-width:250px; }
.brand-caption small { color:#c6c8cc; font-size:12px; font-weight:400; }
.top nav { display:flex; gap:22px; align-items:center; }
.top nav a { color:#f1f1f2; font-size:14px; text-decoration:none; padding:8px 0; border-bottom:2px solid transparent; }
.top nav a[aria-current] { color:var(--brand-yellow); border-color:var(--brand-yellow); }
.top nav a:hover { color:var(--brand-yellow); }
.top form { margin:0; }
.identity { font-size:13px; color:#c6c8cc; }
main { max-width:1450px; margin:28px auto; padding:0 4%; }
h1 { font-size:30px; line-height:1.2; letter-spacing:-.6px; margin:6px 0 10px; overflow-wrap:anywhere; }
h2 { font-size:19px; line-height:1.4; margin:0 0 16px; }
h3 { font-size:16px; overflow-wrap:anywhere; }
p { margin:10px 0; }
.heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:20px; }
.heading > div { flex:1; min-width:0; }
.eyebrow { font-size:12px; font-weight:750; letter-spacing:1.4px; color:var(--action); margin:0; }
.muted,.help { color:var(--muted); }
.help { font-size:13px; margin:7px 0 14px; }
.mode-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; font-size:13px; border:1px solid #e6d37d; background:#fff9de; padding:10px 14px; border-radius:8px; margin-bottom:24px; }
.mode-bar span:nth-child(2) { flex:1; }
.mode-live { border-color:#bdd1c2; background:#eef6f0; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.stats a { padding:14px 18px; border:1px solid var(--border); border-radius:9px; background:white; color:var(--ink); text-decoration:none; }
.stats a:hover { border-color:#8d9298; box-shadow:0 2px 8px #2426290a; }
.stats span { display:block; font-size:14px; color:var(--muted); }
.stats strong { font-size:30px; font-weight:650; }
.danger-text { color:#a12531; }.good-text { color:#2d6841; }
.overview-links { display:flex; flex-wrap:wrap; gap:10px 24px; font-size:14px; margin-bottom:12px; }
.overview-links a { padding:4px 0; }
.sync-summary { margin-bottom:18px; }.sync-summary .help { margin:5px 0; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:24px; margin-bottom:22px; min-width:0; }
.notice,.error,.success { padding:14px 16px; margin:14px 0 20px; border-radius:6px; }
.notice { background:#fff9de; border-left:3px solid #cfad00; color:#5d532d; }
.error,.field-error { color:#952530; background:#fff0f1; }
.error { border-left:3px solid #b72b39; }.error a { font-weight:650; }
.success { background:#e9f5ec; color:#295a39; border-left:3px solid #458456; }
.compact { padding:10px 14px; margin:12px 0; }
.field-error { font-size:14px; margin:6px 0 14px; padding:7px 10px; border-radius:4px; }
label,legend { display:block; font-size:14px; font-weight:600; color:#484d53; }
label:not(.check) { margin-top:15px; }
input,select,textarea { display:block; width:100%; min-width:0; border:1px solid #bfc3c8; border-radius:6px; background:#fff; padding:10px 12px; margin:6px 0 12px; font:16px/1.4 system-ui; color:var(--ink); }
input:focus,select:focus,textarea:focus { outline:2px solid var(--action); outline-offset:2px; }
[aria-invalid='true'] { border-color:#a12531; background:#fff9f9; }
input:disabled { background:#f3f4f5; color:#687078; }
input[type='checkbox'],input[type='radio'] { width:19px; height:19px; flex-shrink:0; margin:2px 0; accent-color:var(--action); }
.check { display:flex; align-items:flex-start; gap:10px; margin:12px 0; padding:5px 0; font-weight:500; min-height:36px; cursor:pointer; }
fieldset { margin:0 0 18px; padding:0; border:0; min-width:0; }
button,.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:1px solid transparent; border-radius:6px; background:var(--action); color:#fff; padding:10px 16px; cursor:pointer; font:600 14px/1.4 system-ui; text-align:center; text-decoration:none; }
button:hover,.button:hover { background:var(--action-hover); color:#fff; text-decoration:none; }
.secondary { background:#f3f3f4; color:#30343a; border-color:#d5d8dc; }
.secondary:hover { background:#e7e9ec; color:#242629; }
.quiet { background:none; color:#e2e4e7; padding:8px; }.quiet:hover { background:#ffffff12; color:var(--brand-yellow); }
button:disabled { opacity:.5; cursor:not-allowed; }
.full { width:100%; margin-top:8px; }
.search-row { display:flex; align-items:flex-end; gap:12px; }.search-row input { margin-bottom:0; }.search-row label { margin-top:0; }
.grow { flex:1; min-width:0; }
.advanced-filters { margin:14px 0; }.filter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 16px; }
.row-between { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }.row-between h2 { margin-bottom:0; }
.results-summary { font-size:14px; margin-bottom:14px; }
.table-wrap { overflow:auto; max-height:72vh; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th { text-align:left; font-size:13px; color:#555b62; background:#f6f6f5; font-weight:650; position:sticky; top:0; }
th,td { padding:14px 12px; border-bottom:1px solid #e8e9ec; vertical-align:top; }
tbody tr:hover { background:#fcfbf6; }
.notes-table td:nth-child(2),.notes-table td:nth-child(4) { max-width:240px; }
.notes-table th:nth-child(5),.notes-table th:nth-child(6) { min-width:150px; }
.note-link { font-weight:700; white-space:nowrap; padding:4px 0; display:inline-block; }
.badge { border-radius:5px; background:#eeeef0; color:#474b50; padding:5px 9px; font-size:13px; display:inline-block; font-weight:550; line-height:1.5; }
.badge.good { background:#e4f3e9; color:#2d643f; }.badge.warn { background:#fff0d5; color:#76500f; }.badge.danger { background:#fce8eb; color:#9b2734; }
.warn-text { color:#7c5518; }
small { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.mobile-label { display:none; }.empty { text-align:center; padding:40px 20px; color:var(--muted); }
.pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin:20px 0 0; font-size:14px; }
.detail-grid,.preview-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr); gap:24px; align-items:start; }
.note-settings { align-self:start; }.detail-summary { min-width:0; }
dl { display:grid; grid-template-columns:minmax(130px,180px) minmax(0,1fr); gap:14px; margin:0; }
dt { font-size:14px; color:var(--muted); }dd { margin:0; overflow-wrap:anywhere; }
.evidence { margin-top:16px; }.review { border-left:3px solid #d2a12e; }.review li { margin-bottom:8px; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:22px; }
.back { font-size:14px; display:inline-block; margin-bottom:18px; padding:5px 0; }
.message { border-top:1px solid var(--border); padding-top:10px; margin-top:20px; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.65 system-ui; background:#f6f6f5; padding:16px; max-height:350px; overflow:auto; }
.email-body { max-height:none; background:#fafafa; border:1px solid #eee; }
.downloads { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:14px; }
.audit { border-top:1px solid var(--border); padding:16px 0; }.audit p { margin:6px 0; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.break { overflow-wrap:anywhere; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.variable-buttons { display:flex; flex-wrap:wrap; gap:8px; }.variable-buttons button { font:13px ui-monospace,monospace; min-height:36px; padding:7px 10px; }
.save-bar { position:sticky; bottom:0; z-index:2; background:#fff; border:1px solid var(--border); padding:14px 20px; border-radius:8px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; box-shadow:0 -3px 12px #24262908; }.save-bar .help { margin:0; }
.login-layout { display:grid; grid-template-columns:minmax(0,1fr) 410px; gap:70px; align-items:center; max-width:1100px; margin:65px auto; }.login-layout h1 { font-size:42px; max-width:540px; }.intro { font-size:18px; color:var(--muted); }.login-card { border-top:3px solid var(--brand-red); }
hr { border:0; border-top:1px solid var(--border); margin:24px 0; }details { margin:16px 0; }summary { cursor:pointer; color:var(--action); font-weight:550; padding:5px 0; }summary:hover { text-decoration:underline; }
footer { max-width:1450px; margin:28px auto; padding:0 4%; font-size:12px; color:var(--muted); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }.skip-link { position:absolute; left:16px; top:-100px; z-index:10; background:white; padding:12px; }.skip-link:focus { top:12px; }.error-page { max-width:700px; margin:50px auto; }
@media(max-width:1100px) { .top { flex-wrap:wrap; gap:14px; }.top nav { margin-left:auto; }.identity { display:none; }.brand-caption { max-width:none; } }
@media(max-width:900px) { .detail-grid,.preview-layout,.settings-grid,.login-layout { grid-template-columns:1fr; gap:0; }.login-layout { margin:35px auto; }.login-layout h1 { font-size:34px; }.card { padding:20px; }.top nav { margin-left:0; }.filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.detail-summary .card { margin-bottom:20px; } }
@media(max-width:640px) {
  body { font-size:15px; }.top { padding:14px 4% 8px; gap:12px; }.brand { gap:14px; }.brand-logo { width:112px; }.brand-caption { padding-left:14px; font-size:13px; max-width:210px; }.brand-caption small { font-size:12px; }
  .top nav { width:100%; display:grid; grid-template-columns:1fr 1.4fr 1.2fr auto; gap:8px; }.top nav a { font-size:12px; line-height:1.35; padding:9px 0; }.top nav form { margin-left:auto; }.top nav:has(a:only-of-type) { grid-template-columns:1fr auto; }
  main { margin:18px auto; }.mode-bar { font-size:12px; margin-bottom:18px; gap:3px 12px; padding:9px 12px; }.mode-bar span:nth-child(2) { flex-basis:100%; }.mode-bar a { padding:4px 0; }
  .mode-bar a { display:none; }h1 { font-size:26px; }.heading { margin-bottom:16px; }.heading > div { flex-basis:100%; }.heading .muted { margin-bottom:0; }.heading > form { width:100%; }.heading > form button { width:100%; }
  .stats { gap:7px; }.stats a { padding:10px 7px; text-align:center; }.stats span { font-size:12px; }.stats strong { font-size:24px; }.overview-links { gap:4px 14px; font-size:13px; }.sync-summary .help { font-size:12px; }
  .card { padding:16px; margin-bottom:18px; }.list-card { padding:14px; }.search-row { gap:8px; }.search-row button { padding:10px 12px; }.filter-grid { gap:0 10px; }.filter-grid label { font-size:13px; }
  .results-summary { font-size:13px; gap:4px; }.results-summary p { margin:4px 0; }.results-summary a { padding:5px 0; }
  .list-card .table-wrap { max-height:none; overflow:visible; }.notes-table,.notes-table tbody { display:block; width:100%; }.notes-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .notes-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px 12px; padding:16px 0; border-top:1px solid var(--border); }
  .notes-table td { display:block; padding:0; border:0; min-width:0; font-size:14px; max-width:none!important; }.notes-table td.note-cell { grid-column:1; }.notes-table td.customer-cell { grid-column:1 / -1; font-size:15px; font-weight:550; }.notes-table td.status-cell { grid-column:2; grid-row:1; text-align:right; }.notes-table td.contact-cell { grid-column:1 / -1; }.notes-table td:nth-child(3) { grid-row:3; }.notes-table td:nth-child(5) { grid-row:3; }.mobile-label { display:block; color:var(--muted); font-size:12px; margin-bottom:2px; }.notes-table .badge { font-size:12px; }.notes-table td.empty { grid-column:1 / -1; padding:20px 6px; }
  dl { grid-template-columns:1fr; gap:4px; }dd { margin-bottom:10px; }.actions .button { width:100%; }.downloads { grid-template-columns:1fr; }.save-bar { flex-wrap:wrap; padding:12px; gap:10px; }.save-bar button { width:100%; }.pagination { gap:10px; font-size:13px; }.login-layout { margin:25px auto; }.login-layout h1 { font-size:30px; }.intro { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
