:root{--ink:#1f2929;--green:#146557;--bg:#f4f7f5;--line:#dce6e1}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,sans-serif}
header{background:#163b32;color:#fff;display:flex;align-items:center;gap:2rem;padding:1rem clamp(1rem,4vw,4rem)}
header a{color:white;font-size:1.3rem;font-weight:700;text-decoration:none}header span{opacity:.85}
main{max-width:920px;margin:2rem auto 5rem;padding:0 1.25rem}section{background:white;border:1px solid var(--line);border-radius:12px;padding:1.5rem;margin:1.5rem 0}
a{color:var(--green)}a:focus-visible{outline:3px solid #e4af50;outline-offset:3px}h1,h2{line-height:1.25}
h1{font-size:clamp(1.8rem,3vw,2.5rem)}dt{font-weight:700}dd{margin:0 0 1rem}small{color:#61716a}
footer{padding:2rem 1.25rem;border-top:1px solid var(--line);text-align:center;color:#56685f}
@media(max-width:500px){header{display:block}header span{display:block;font-size:.85rem}}

/* Login: reuse Campaign Ops colours and typography, with one clear Google action. */
.auth-card{max-width:540px;margin:clamp(2rem,8vh,6rem) auto;padding:clamp(1.5rem,5vw,3rem);box-shadow:0 16px 48px rgba(15,47,38,.06)}
.auth-eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--green);font-size:.75rem;font-weight:700;margin:0 0 .65rem}
.auth-card h1{margin:.2rem 0 1rem}
.auth-intro{color:#43564e;margin:0 0 2rem;max-width:42ch}
.auth-button{width:100%;padding:.9rem 1.2rem;background:var(--green);border:1px solid var(--green);border-radius:8px;color:white;font:600 1rem/1.4 system-ui,sans-serif;cursor:pointer}
.auth-button:hover{background:#0c5145}
.auth-button:focus-visible{outline:3px solid #e4af50;outline-offset:3px}
.auth-note{font-size:.875rem;color:#56685f;margin:1.25rem 0 0}

/* Source-backed campaign audit and budget tables. */
.commercial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem}
.commercial-grid div{padding:.7rem 0;border-bottom:1px solid var(--line)}
.commercial-grid dd{font-size:1.2rem;font-weight:600;margin:.3rem 0 0}
.table-scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:420px;text-align:left}
th,td{border-bottom:1px solid var(--line);padding:.65rem}
thead{background:var(--bg)}
caption{text-align:left;color:#506058;padding:.5rem 0}
.audit-findings{list-style:none;margin:0;padding:0}
.audit-findings li{padding:1.25rem 0;border-top:1px solid var(--line)}
.audit-findings h3{font-size:1.08rem;margin:0 0 .65rem}
.audit-findings p{margin:.5rem 0;overflow-wrap:anywhere}
.severity{display:inline-block;font-size:.7rem;letter-spacing:.05em;font-weight:800;margin-right:.5rem;border-radius:4px;padding:.15rem .4rem;background:#e9edeb;color:#1e3430;vertical-align:middle}
.severity-blocker{background:#ffebdc;color:#762e12}
.severity-warning{background:#fff0bf;color:#62450d}
.severity-action{background:#e0eff8;color:#184d6b}
.severity-info{background:#edf1ee;color:#435a50}
code{overflow-wrap:anywhere}

/* Human-reviewed evidence controls; never ad-platform approval controls. */
.audit-review-form{display:grid;gap:.75rem;padding:1rem;background:var(--bg);border:1px solid var(--line);border-radius:8px;margin-top:1rem}
.audit-review-form label{display:grid;gap:.3rem;font-size:.9rem;font-weight:600}
.audit-review-form input,.audit-review-form textarea,.audit-review-form select{font:inherit;color:var(--ink);background:#fff;border:1px solid #97ada5;padding:.6rem;border-radius:6px;min-width:0;max-width:100%}
.audit-review-form input:focus-visible,.audit-review-form textarea:focus-visible,.audit-review-form select:focus-visible{outline:3px solid #e4af50;outline-offset:2px}
.audit-review-form button, .audit-panel button{width:fit-content;background:var(--green);color:#fff;border:0;border-radius:6px;padding:.65rem 1rem;font:600 1rem system-ui;cursor:pointer}
.audit-review-form button:hover,.audit-panel button:hover{background:#0c5145}
.audit-review-form button:focus-visible,.audit-panel button:focus-visible{outline:3px solid #e4af50;outline-offset:2px}
.ai-draft{padding:1rem;border-left:3px solid var(--green);background:var(--bg);white-space:normal}
.ai-draft p{overflow-wrap:anywhere}
