:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172538;background:#f4f6fa;font-size:16px;line-height:1.5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{background:#fff;border:1px solid #ccd4df;color:#263b54;border-radius:7px;padding:10px 15px;cursor:pointer;font-weight:600;font-size:.875rem}button:hover{background:#eaf0f8}button:disabled{opacity:.5;cursor:wait}.primary{background:#2555e7;border-color:#2555e7;color:white}.primary:hover{background:#1944c8}input,select,textarea{width:100%;border:1px solid #ccd4df;border-radius:6px;background:#fff;color:#172538;padding:10px 11px;font-size:.875rem}input[type=checkbox]{width:auto}label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;font-weight:600}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #9bb7ff;outline-offset:2px}a{color:#2555e7}h1,h2,p{margin:0}h1{font-size:1.875rem;letter-spacing:-.8px;font-weight:650}h2{font-size:1.125rem;font-weight:650}p{color:#627087}code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.875rem;word-break:break-all}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}aside{background:#112037;color:#fff;padding:30px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.wordmark{font-weight:750;font-size:1.6rem;letter-spacing:-.8px;color:inherit;text-decoration:none}.aside-label{color:#8293ae;font-size:.7rem;letter-spacing:1.5px;margin:10px 0 36px}nav{display:flex;flex-direction:column;gap:6px}nav a{padding:12px;color:#bfcce0;text-decoration:none;border-radius:6px;font-size:.9375rem;display:flex;justify-content:space-between}nav a.active{color:#fff;background:#263c61}nav a:hover{background:#203450}nav span{font-size:.8rem;padding:0 6px;background:#3d5070;border-radius:4px}.aside-foot{margin-top:auto;padding-top:40px;font-size:.875rem}.aside-foot p{color:#91a1ba;margin:14px 0 22px}.aside-foot button{color:#c6d1e3;background:transparent;border-color:#3d4d64}main{padding:35px 42px 50px;min-width:0;max-width:1600px;width:100%;margin:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:18px}.eyebrow{font-size:.75rem;letter-spacing:1.4px;color:#748197;margin-bottom:7px}.badge{font-size:.8125rem;background:#e8eef9;color:#31537f;padding:7px 12px;border-radius:20px;white-space:nowrap}.banner{border:1px solid #b7caff;background:#eaf0ff;color:#274eaa;border-radius:7px;padding:12px 16px;font-size:.875rem;margin-bottom:24px}.notice{margin:0 0 20px;border-left:3px solid #2555e7;background:#eaf0ff;padding:13px 17px}.notice.error{background:#fff0ef;border-color:#b44337;color:#983126}.toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 20px}.toolbar label{min-width:145px;flex:1}.toolbar button{height:43px;white-space:nowrap}.coverage{font-size:.875rem;color:#627087;margin-bottom:18px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-bottom:32px}.metric{background:#fff;border:1px solid #dce2ec;border-radius:10px;padding:22px}.metric-label{display:flex;justify-content:space-between;color:#68768a;font-size:.875rem}.metric strong{display:block;font-size:2rem;font-weight:650;letter-spacing:-1px;margin:10px 0}.metric small{font-size:.8125rem;color:#68768a}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0 15px}.section-head p{font-size:.875rem;margin-top:4px}.section-head>span{font-size:.8125rem;color:#718096}.table-wrap{border:1px solid #dce2ec;border-radius:9px;overflow:auto;background:#fff}table{border-collapse:collapse;width:100%;text-align:right;font-size:.875rem}th{font-size:.75rem;color:#617089;background:#f8fafc;text-transform:uppercase;letter-spacing:.5px;font-weight:600;padding:14px 18px;border-bottom:1px solid #e2e7ee}th:first-child,td:first-child{text-align:left}td{padding:16px 18px;border-bottom:1px solid #edf0f5;white-space:nowrap}tr:last-child td{border-bottom:0}td strong{font-size:.875rem;font-weight:600}td small{display:block;color:#77859a;font-size:.8125rem;margin-top:3px}.footnote{font-size:.8125rem;line-height:1.7;margin:18px 0}.empty{padding:34px;text-align:center;color:#6a7990;white-space:normal}.intro{margin-bottom:24px;max-width:760px}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.panel,.account-card,.proposal{background:white;border:1px solid #dce2ec;border-radius:10px;padding:23px}.account-card header{margin-bottom:20px}.account-card h2{font-size:1rem}.account-card form{display:grid;gap:14px}.account-card p{font-size:.875rem;margin:8px 0 14px}.check{flex-direction:row;align-items:center;font-weight:400}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.panel{margin-bottom:24px}.panel p{font-size:.9375rem;margin:8px 0 16px}.panel textarea{min-height:90px;margin-bottom:10px}.proposal{margin-bottom:14px}.proposal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.proposal-head p{font-size:.875rem;margin-top:4px}.change-values{display:flex;gap:20px;align-items:center;margin-top:20px;padding:15px;background:#f5f7fb;border-radius:6px;font-size:1.125rem}.change-values small{display:block;color:#6d7a8f;font-size:.75rem;text-transform:uppercase;letter-spacing:.7px}.status{display:inline-block;font-size:.75rem;border-radius:4px;background:#eaf0ff;color:#3053b0;padding:4px 8px}.status.applied{background:#e5f4ed;color:#1c7251}.status.failed,.status.unknown{background:#ffede9;color:#9c3328}.proposal .meta{font-size:.8125rem;color:#718096;margin-top:10px}details{margin-top:24px}summary{cursor:pointer;font-size:.875rem;color:#53667f}details>div{padding-top:14px}.fresh-row,.audit-row{padding:12px 0;border-bottom:1px solid #dce2ec;font-size:.875rem}.fresh-row small,.audit-row small{display:block;color:#738096}.setup{max-width:840px}.setup h2:not(:first-child){margin-top:28px}.setup li{margin:10px 0;color:#52627a}.endpoint{padding:16px;background:#f3f6fb;border:1px solid #dde4ee;border-radius:6px;display:grid;gap:8px;margin:18px 0}.endpoint span{font-size:.8125rem;color:#6e7b8f}.login{display:grid;place-items:center;min-height:100vh;background:#112037;padding:24px}.login-card{background:#fff;border-radius:14px;padding:40px;max-width:470px;width:100%}.login .wordmark{color:#2555e7;margin-bottom:24px}.login h1{font-size:2.5rem;line-height:1.15;margin-bottom:16px}.login p{font-size:.9375rem;margin:12px 0}.login form{display:grid;gap:16px;margin:24px 0}.login #login-error{color:#a83629}#mode-label{text-transform:uppercase;letter-spacing:1px;font-size:.75rem;color:#b3c5e8}@media(max-width:1000px){.shell{grid-template-columns:190px 1fr}aside{padding:25px 15px}main{padding:28px 24px}.toolbar label{min-width:130px}}@media(max-width:700px){.shell{display:block}aside{position:relative;height:auto;padding:18px}.aside-label,.aside-foot{display:none}nav{flex-direction:row;overflow:auto;margin-top:14px}nav a{font-size:.8125rem;white-space:nowrap;padding:9px}nav span{display:none}main{padding:24px 16px}header{align-items:flex-start}h1{font-size:1.5rem}.badge{white-space:normal;font-size:.75rem}.toolbar label{min-width:120px}.toolbar button{flex:1}.metrics{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.proposal-head{flex-wrap:wrap}.login-card{padding:28px}}

.aside-foot a{color:#bfcce0}.login .legal-links{font-size:.8125rem}

/* Compact controls and cards remain usable without sideways page scrolling. */
.date-presets{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}.date-presets button{padding:8px 12px;border-radius:20px;font-size:.8125rem;min-height:40px}.date-presets button[aria-pressed=true]{background:#e8eeff;border-color:#2555e7;color:#1944c8}.comment-card{padding:22px;margin:14px 0;border:1px solid #dce2ec;background:white;border-radius:10px}.comment-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.comment-heading time,.comment-card .meta{font-size:.8125rem;color:#65768d}.comment-message{white-space:pre-wrap;overflow-wrap:anywhere;color:#172538;margin:14px 0}.comment-card a{display:inline-block;margin-top:12px}.view,form,label,.proposal-head>div{min-width:0}.proposal .meta,.proposal-head p,.fresh-row,.notice,.banner{overflow-wrap:anywhere}td small{white-space:normal;min-width:100px}#report-rows td:first-child{white-space:normal;min-width:220px}.toolbar select{max-width:100%}#proposal-form label{flex-basis:180px}#change-current{margin-bottom:0}
@media(max-width:700px){
 aside{padding:16px}.aside-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;margin:0}.aside-foot p{display:none}.aside-foot button{padding:8px 12px;min-height:44px}nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}nav a{white-space:normal;align-items:center;justify-content:center;text-align:center;min-height:44px;font-size:.8125rem}header{flex-wrap:wrap;margin-bottom:20px}main{padding:22px 14px}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px}.toolbar label{min-width:0}.toolbar label:first-child{grid-column:1/-1}button,input,select,textarea{min-height:44px}input,select,textarea{font-size:16px;max-width:100%;min-width:0}input[type=checkbox]{min-height:20px;min-width:20px}.toolbar button{height:auto;white-space:normal}#sync{grid-column:1/-1;order:2}.panel,.account-card,.proposal,.comment-card{padding:17px}.metrics{gap:12px}.section-head{flex-wrap:wrap}.change-values{gap:12px;font-size:1rem;flex-wrap:wrap}.login-card{padding:25px}.login h1{font-size:2rem}.account-card header{gap:10px}.date-presets{gap:7px}.date-presets button{font-size:.8125rem;flex:1 0 auto}#comments-form button{grid-column:1/-1}
 .table-wrap{border:0;background:transparent;overflow:visible}table,tbody{display:block}thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}#report-rows tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:#fff;border:1px solid #dce2ec;border-radius:10px;margin-bottom:14px;padding:15px;gap:14px}#report-rows td{display:block;padding:0;border:0;text-align:left;white-space:normal;min-width:0}#report-rows td:first-child{grid-column:1/-1;min-width:0;padding-bottom:12px;border-bottom:1px solid #edf0f5}#report-rows td::before{content:attr(data-label);display:block;color:#65768d;font-size:.75rem;margin-bottom:4px}#report-rows td:first-child::before{display:none}#report-rows td:last-child{grid-column:1/-1}#report-rows td:last-child button{width:100%}#report-rows td.empty{grid-column:1/-1}#report-rows td small{min-width:0;overflow-wrap:anywhere}#report-rows td strong{overflow-wrap:anywhere}.badge{max-width:100%}
}

[hidden] td::before{content:none!important}

.comment-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.comment-controls small{flex-basis:100%;color:#65768d;overflow-wrap:anywhere}.comment-controls button{min-height:44px}.comment-controls button:disabled{cursor:not-allowed}.status.visible-comment{background:#e5f4ed;color:#1c7251}.status.hidden-comment{background:#fff2d8;color:#805b12}.comment-card .meta{overflow-wrap:anywhere}

/* Keep native iOS date controls within their grid cells. */
@media(max-width:700px){
 #filters .date-field{min-inline-size:0}
 #filters input[type=date]{-webkit-appearance:none;appearance:none;display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;height:44px}
 #filters input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
 #filters input[type=date]::-webkit-datetime-edit{min-width:0;padding:0}
}
@media(max-width:480px){
 #filters .date-field{grid-column:1/-1}
}

.bid-cap-cell{white-space:normal;min-width:140px}.bid-cap-cell details{margin:0}.bid-cap-cell summary{color:#2555e7}.bid-cap-cell ul{list-style:none;padding:0;margin:10px 0 0;text-align:left}.bid-cap-cell li+li{margin-top:10px}.bid-cap-cell small{overflow-wrap:anywhere}

.daily-table th[scope=row]{text-transform:none;letter-spacing:0;font-size:.875rem;background:#fff;color:#172538;white-space:nowrap}.daily-table th small{display:block;font-size:.75rem;color:#77859a;font-weight:400}.daily-table tfoot th[scope=row],.daily-table tfoot td{background:#eaf0ff;font-weight:650;border-top:2px solid #b7caff}.daily-table .future-day{color:#8a95a5}.daily-table .bid-cap-cell{max-width:320px}.daily-table .bid-cap-cell details{min-width:160px}#daily-totals .metric strong small{font-weight:400;letter-spacing:0;font-size:.8rem;display:block}#daily-filters label{flex-basis:220px}
@media(max-width:700px){.daily-table-wrap{overflow-x:auto;background:#fff;border:1px solid #dce2ec;border-radius:9px}.daily-table{display:table;min-width:1050px}.daily-table tbody{display:table-row-group}.daily-table thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}.daily-table th:first-child{position:sticky;left:0;z-index:1;background:#f8fafc;box-shadow:2px 0 3px #1120370a}.daily-table td,.daily-table th{padding:12px}.daily-table tfoot th:first-child{background:#eaf0ff}#daily-filters label{grid-column:1/-1}#daily-sync{grid-column:1/-1;order:2}}
#daily-totals{grid-template-columns:repeat(4,minmax(0,1fr))}#daily-totals .metric{min-width:0}#daily-totals .metric strong{overflow-wrap:anywhere}
@media(max-width:1100px){#daily-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#daily-totals{grid-template-columns:1fr}}

/* Slightly tighter daily rows without reducing text size. */
.daily-table tbody th,.daily-table tbody td,.daily-table tfoot th,.daily-table tfoot td{padding-top:12px;padding-bottom:12px}
@media(max-width:700px){.daily-table tbody th,.daily-table tbody td,.daily-table tfoot th,.daily-table tfoot td{padding-top:10px;padding-bottom:10px}}

/* Creative Performance: compact metrics with Meta-hosted media. */
#creative-filters label{flex-basis:240px}.creative-controls{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:start}.creative-toggle{display:flex;gap:4px;background:#e9edf5;padding:4px;border-radius:9px}.creative-toggle button{border:0;background:transparent;padding:8px 16px;min-height:36px}.creative-toggle button[aria-pressed=true]{background:white;color:#2452dc;box-shadow:0 1px 4px #11203718}
.creative-table-wrap{overflow:auto;background:white;border:1px solid #dce2ec;border-radius:10px}.creative-table{min-width:1060px;display:table}.creative-table th,.creative-table td{padding:10px 12px;vertical-align:middle}.creative-table td:nth-child(2),.creative-table td:nth-child(3),.creative-table th[scope=row]{white-space:normal;min-width:140px;max-width:240px;text-align:left;overflow-wrap:anywhere}.creative-table th[scope=row]{background:transparent;text-transform:none;letter-spacing:0;font-size:.875rem;color:#172538;font-weight:600}.creative-table tbody tr:hover{background:#f5f8ff}.creative-table small{font-size:.72rem;min-width:0}.creative-thumb{padding:0;border:0;border-radius:6px;position:relative;width:60px;height:60px;overflow:hidden;background:#f1f4fa;display:block}.creative-thumb img{width:100%;height:100%;object-fit:cover}.creative-type,.creative-rank{position:absolute;background:#112037dc;color:white;font-size:10px;padding:3px 6px;border-radius:4px;bottom:4px;right:4px}.creative-rank{top:8px;left:8px;bottom:auto;right:auto;font-size:12px}.creative-no-image{font-size:11px;color:#6a7b92;padding:8px;display:block;text-align:center}.creative-status-chip{display:inline-block;background:#edf0f5;color:#536078;border-radius:5px;padding:4px 7px;font-size:11px;white-space:normal}.creative-status-chip.is-active{background:#e5f4ed;color:#21694a}.creative-status-chip.is-rejected{background:#fde9e5;color:#a73527}
.creative-library{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:start}.creative-card{min-width:0;border:1px solid #dce2ec;background:white;border-radius:10px;overflow:hidden}.creative-card-image{display:block;position:relative;padding:0;border:0;border-radius:0;background:#edf1f8;width:100%;min-height:100px}.creative-card-image img{width:100%;height:auto;max-height:340px;object-fit:contain;display:block}.creative-card-info{padding:12px;font-size:.75rem}.creative-card-info h3{font-size:.85rem;margin:0 0 8px;overflow-wrap:anywhere;line-height:1.4}.creative-card-info p{font-size:.72rem;line-height:1.5;margin:7px 0;overflow-wrap:anywhere;color:#607087}.creative-card-info p strong{display:block;color:#263955}.creative-card-info dl{border-top:1px solid #edf0f5;padding-top:8px;margin:10px 0 4px}.creative-card-info dl div{display:flex;justify-content:space-between;gap:5px;margin:6px 0}.creative-card-info dt{color:#607087;font-size:.7rem}.creative-card-info dd{margin:0;font-weight:650}.creative-card-info small{font-size:.65rem;color:#6a7b92;overflow-wrap:anywhere}
.creative-preview{position:fixed;right:24px;bottom:24px;width:300px;max-width:calc(100vw - 28px);background:white;box-shadow:0 12px 50px #11203740;border:1px solid #dce2ec;border-radius:12px;padding:12px;z-index:50}.creative-preview img{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:6px}.creative-preview p{font-size:.8rem;overflow-wrap:anywhere;margin:8px 0 0}.creative-preview button{position:absolute;right:4px;top:4px;min-width:32px;min-height:32px;padding:3px;border-radius:50%;background:white}.creative-thumb:focus-visible,.creative-card-image:focus-visible{outline:3px solid #2555e7;outline-offset:-3px}
@media(max-width:1200px){.creative-library{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#creative-filters label{grid-column:1/-1}#creative-refresh{grid-column:1/-1}.creative-table tbody{display:table-row-group}.creative-table thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}.creative-table th,.creative-table td{padding:9px 10px}.creative-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.creative-card-info{padding:10px}.creative-card-image img{max-height:260px}.creative-preview{right:14px;bottom:14px;width:250px}.creative-preview img{max-height:280px}.creative-controls{gap:8px}}
@media(max-width:360px){.creative-library{grid-template-columns:1fr}}
