:root{--ink:#20322c;--muted:#748078;--line:#e0e7e1;--green:#235842;--green-light:#e6f1e9;--paper:#f4f7f3;--amber:#8e672b}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;padding:10px 17px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font-weight:600;transition:background .15s}button:hover{background:#edf2ec}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#174532}.quiet{border-color:transparent;background:transparent}.full{width:100%}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.16;letter-spacing:-1.3px;font-weight:650;margin-bottom:12px}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:8px}h3{font-size:15px;margin-top:20px;margin-bottom:9px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--muted);margin:20px 0 12px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;letter-spacing:-.4px}.logo{display:grid;place-items:center;background:var(--green);color:white;height:35px;width:35px;border-radius:11px;font:bold 30px Georgia,serif}
.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:#fbfcfa;border-right:1px solid var(--line);padding:30px 23px;display:flex;flex-direction:column}.sidebar .eyebrow{font-size:8px;margin:24px 0 36px;letter-spacing:1.5px}nav{display:flex;flex-direction:column;gap:8px}.nav{border:0;text-align:left;background:transparent;color:#718077;padding:12px 15px;font-size:13px;font-weight:550;display:flex;justify-content:space-between}.nav.active{background:var(--green-light);color:var(--green);font-weight:700}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:24px}.status-line{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.dot{height:7px;width:7px;background:#a1aaa3;border-radius:50%;display:inline-block}.dot.running{background:#44865d;box-shadow:0 0 0 4px #e3efe5}.main{margin-left:235px;padding:0 40px;max-width:1800px}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px}.pane{padding-top:34px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:20px}.page-heading .eyebrow{margin-top:0}.page-heading p{margin-bottom:0}.controls{display:flex;gap:9px;white-space:nowrap}.notice{background:#e9f2e9;border:1px solid #d7e6d9;border-radius:10px;padding:13px 17px;font-size:12px;color:#44634c;margin-bottom:22px}.notice.error{background:#fcf0eb;border-color:#f0d9d0;color:#913d2f}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stats article{background:white;border:1px solid var(--line);border-radius:12px;padding:21px}.stats span{color:var(--muted);font-size:12px}.stats strong{display:block;font-size:34px;letter-spacing:-1.5px;margin:9px 0 5px}.stats small{color:#9ba59d;font-size:10px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-header{padding:22px 23px 10px;display:flex;justify-content:space-between;align-items:center}.panel-header p{margin-bottom:0}.table-filters{display:flex;gap:10px;padding:14px 23px 20px}.table-filters input{flex:1;min-width:120px}.table-filters select{width:170px}
input,select,textarea{display:block;width:100%;border:1px solid #dbe2dc;border-radius:7px;background:white;color:var(--ink);padding:10px 11px;outline:none}input:focus,textarea:focus,select:focus{border-color:#8ab69b;box-shadow:0 0 0 3px #edf5ef}textarea{resize:vertical;line-height:1.5}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:770px}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:600;color:#8a968c;background:#fafcf9;padding:14px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #eef2ed;vertical-align:middle}tr:last-child td{border-bottom:0}.property{max-width:290px;display:flex;align-items:center;gap:12px}.property strong{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:235px}.property small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.provider-icon{height:31px;width:31px;display:grid;place-items:center;border-radius:9px;flex:none;font-weight:700;font-size:12px}.bp{background:#fbede2;color:#ba672d}.ps{background:#e7f1ec;color:#246e56}.provider-title{display:flex;align-items:center;gap:10px;margin-bottom:20px}.provider-title h2{margin:0;flex:1}.badge{font-size:10px;border-radius:6px;padding:5px 8px;font-weight:600;white-space:nowrap;display:inline-block}.draft{background:#e8efe8;color:#456a4c}.confirmed{background:#daf0e6;color:#17684c}.review{background:#fbf0da;color:#886225}.uncertain,.failed{background:#fae7df;color:#9a4c35}.rejected,.existing{background:#edf0ed;color:#818b82}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty span{font-size:35px;color:#aabdaf}.empty h3{font-size:18px;color:#51685a;margin-top:12px}.empty p{font-size:12px}.form-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:22px}.form-panel{padding:26px}.form-panel>h2{margin-bottom:21px}.fields{display:grid;gap:16px}.two-col{grid-template-columns:1fr 1fr}label{display:block;font-size:12px;font-weight:600;margin-bottom:16px}label input,label textarea,label select{margin-top:7px;font-size:13px;font-weight:400}.fields label{margin:0}.check{display:flex;align-items:flex-start;gap:9px;font-weight:500}.check input{width:16px;height:16px;margin:2px 0 0;box-shadow:none;accent-color:var(--green)}.hint{color:var(--muted);font-size:10px;font-weight:400;float:right}.message-preview{white-space:pre-wrap;font-family:inherit;font-size:12px;line-height:1.7;background:#f5f8f3;border-radius:8px;padding:17px;min-height:100px;word-break:break-word}.logs{background:#1c2c25;color:#c9ddcd;font:11px/1.8 ui-monospace,monospace;white-space:pre-wrap;padding:23px;border-radius:8px;max-height:65vh;overflow:auto}hr{border:0;border-top:1px solid var(--line);margin:26px 0}footer{display:flex;justify-content:space-between;color:#9aa59c;font-size:10px;margin:20px 0 30px}dialog{border:1px solid var(--line);border-radius:14px;width:min(700px,90vw);padding:27px;color:var(--ink)}dialog::backdrop{background:#172a2390}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-heading button{padding:4px 10px;font-size:22px}#toast{position:fixed;right:25px;top:20px;max-width:450px;background:var(--green);color:white;border-radius:9px;padding:14px 20px;box-shadow:0 5px 20px #173c3520;z-index:10}#toast.error{background:#944c38}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(125deg,#ecf3e8,#f8faf6)}.login-card{width:min(460px,90vw);border:1px solid #dfe8dc;background:white;padding:38px;border-radius:17px;box-shadow:0 20px 60px #4c6b4d12}.login-card .brand{margin-bottom:38px}.login-card h1{font-size:34px}.login-card form{margin-top:28px}.login-card .small{margin-top:20px;margin-bottom:0}[hidden]{display:none!important}
@media(max-width:1150px){.main{padding:0 25px}.sidebar{width:200px;padding:25px 17px}.main{margin-left:200px}.page-heading{align-items:flex-start;flex-direction:column}h1{font-size:31px}.stats{gap:10px}.stats article{padding:16px}.stats small{font-size:9px}}
@media(max-width:750px){.sidebar{position:static;width:auto;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .eyebrow,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;margin-top:15px;gap:5px}.nav{white-space:nowrap;padding:8px 10px;font-size:11px}.nav span{display:none}.main{margin-left:0;padding:0 17px}.topbar{height:60px}.pane{padding-top:25px}.stats{grid-template-columns:1fr 1fr}.form-grid,.two-col{grid-template-columns:1fr}.table-filters{flex-wrap:wrap;padding:13px}.table-filters input{flex-basis:100%}.table-filters select{width:calc(50% - 5px)}.form-panel{padding:20px}.controls{width:100%}.controls button{flex:1}footer{display:block}footer span{display:block;margin-top:7px}h1{font-size:28px}.page-heading{gap:17px}}

#area-map { width:100%; height:420px; display:block; border:1px solid var(--line, #d6ded6); border-radius:12px; touch-action:none; cursor:grab; }
#area-map:active {cursor:grabbing}
.map-tools {display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.advertiser-filter {max-width:320px;margin:0 24px 18px}
.insight-card {border:1px solid #dbe3db;border-radius:10px;padding:15px;margin:12px 0}
.insight-card h3 {margin:0 0 8px}
.insight-card p {margin:6px 0}
.station-cell {min-width:180px;max-width:250px;font-size:12px;line-height:1.6}
.advertiser-cell {min-width:160px;max-width:240px;font-size:12px}
#inspect-listing {margin-top:10px}
#area-coordinates {font-family:monospace}
/* Monitoring health and published cost evidence */
.health-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; margin-top:16px; }
.health-grid .insight-card { margin:0; min-width:0; }
.health-error { color:#a54635; overflow-wrap:anywhere; }
.badge.duplicate { background:#e9e3fa; color:#665188; }
.property .badge { display:inline-block; margin:5px 0; font-size:10px; }
.listings-panel td:nth-child(2) strong { display:block; white-space:nowrap; }
.listings-panel td:nth-child(2) small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }

.match-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:18px 23px 8px;background:#f8fbf8;border-top:1px solid var(--line)}
.match-toolbar label{min-width:175px;margin:0;font-size:11px;color:#52665a}.match-toolbar select{margin-top:6px;font-size:12px}
.criteria-summary{flex:1;margin:0 0 8px;color:#53665a;font-size:12px;min-width:230px}
.criteria-note{padding:0 23px;margin:10px 0 0;color:var(--muted);font-size:11px}
.property-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.criteria-badge{font-size:11px;letter-spacing:.05px}
.criteria-badge.criteria-match{background:#cdebd7;color:#155b32;border:1px solid #85be98;font-weight:750}
.criteria-badge.criteria-review{background:#fff0c8;color:#785515;border:1px solid #ddbf78}
.criteria-badge.criteria-no_match{background:#edf0ed;color:#617065;border:1px solid #dbe2dc}
.criteria-badge.criteria-unassessed{background:#f1f3f1;color:#657069;border:1px solid #dbe2dc}
tr.criteria-match>td{background:#edf8ef;border-bottom-color:#d4e7d9}tr.criteria-match>td:first-child{box-shadow:inset 5px 0 #2d8550}
tr.criteria-review>td{background:#fffaf0}tr.criteria-review>td:first-child{box-shadow:inset 4px 0 #b58a35}
tr.criteria-no_match>td{background:#fafbfa}tr.criteria-no_match .property strong{color:#667369}
tr.criteria-match:hover>td{background:#e1f2e6}tr.criteria-review:hover>td{background:#fff3d8}
@media(max-width:750px){.match-toolbar{padding:14px 13px 8px;gap:12px}.match-toolbar label{flex:1;min-width:145px}.criteria-summary{flex-basis:100%;margin:0}.criteria-note{padding:0 13px}.property{max-width:310px}.property-badges{max-width:260px}}
