:root{--bg:#101010;--panel:#181818;--panel2:#202020;--line:#303030;--text:#f5f3ee;--muted:#a4a19a;--orange:#ff681f;--red:#f06969;--green:#7ac99b;--yellow:#f5c45c;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.hidden{display:none!important}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;padding:28px 18px;background:#141414;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:2}.brand-mark{font-weight:800;letter-spacing:.04em;font-size:21px}.brand-mark span{color:var(--orange);font-size:12px;margin-left:5px;letter-spacing:.13em}.env-pill{margin:28px 0 32px;padding:9px 11px;border:1px solid #59402e;background:#211911;border-radius:9px;color:#ffc493;font-size:11px}.env-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:8px}nav{display:grid;gap:6px}nav a{color:#aaa69f;text-decoration:none;padding:11px 12px;border-radius:9px;font-size:13px}nav a:hover,nav a.active{color:white;background:#282421}nav a.active{box-shadow:inset 2px 0 var(--orange)}.sidebar-foot{margin-top:auto;display:grid;grid-template-columns:10px 1fr auto;gap:8px;align-items:center;color:var(--muted);font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--yellow)}.text-button{color:#aaa;background:none;font-size:11px}main{margin-left:246px;padding:28px clamp(20px,4vw,58px) 48px;max-width:1650px}.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:26px;border-bottom:1px solid var(--line)}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}.topbar h1{font-size:34px;margin:4px 0 0}.eyebrow{color:var(--orange);font-size:10px;letter-spacing:.14em;font-weight:700;margin:0 0 7px}.top-controls{display:flex;align-items:flex-end;gap:10px}.top-controls label,.login-card label,.edit-dialog label{display:grid;gap:6px;font-size:10px;color:var(--muted)}select,input,textarea{background:#1b1b1b;color:var(--text);border:1px solid #3b3b3b;border-radius:8px;padding:10px 12px;min-height:39px}textarea{resize:vertical}input[type=month]{color-scheme:dark}.section{padding:30px 0 10px;scroll-margin-top:15px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:16px}.section-heading h2{font-size:22px;margin:0}.muted{color:var(--muted);font-size:12px;line-height:1.55;margin:8px 0 0}.badge{display:inline-flex;align-items:center;border-radius:100px;padding:7px 11px;font-size:10px;font-weight:700;letter-spacing:.04em}.badge.neutral{background:#30291c;color:#ffd38b}.badge.good{background:#183328;color:#8ce0af}.badge.bad{background:#3d2020;color:#ffabab}.metric-grid{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:10px}.metric{background:linear-gradient(145deg,#1c1c1c,#171717);border:1px solid var(--line);border-radius:13px;padding:15px;min-height:95px}.metric strong{display:block;font-weight:700;font-size:25px;margin-bottom:8px}.metric span{font-size:10px;line-height:1.4;color:var(--muted)}.alert-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.alert{background:#241e16;border:1px solid #49371f;color:#ebc48a;font-size:11px;padding:9px 11px;border-radius:9px}.button-row{display:flex;gap:8px;flex-wrap:wrap}.primary,.ghost,.danger-outline{border-radius:9px;padding:10px 13px;font-size:11px;font-weight:700}.primary{background:var(--orange);color:#17100b}.primary:hover{background:#ff7c3a}.ghost{background:#252525;color:#eee;border:1px solid #3a3a3a}.danger-outline{background:transparent;color:#ffaaaa;border:1px solid #653939}.primary:disabled,.ghost:disabled,.danger-outline:disabled{opacity:.4;cursor:not-allowed}.batch-status{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#181818;color:#c8c5be;font-size:11px;margin:15px 0}.filters{display:flex;align-items:center;gap:10px;margin:12px 0 14px}.filters select{min-width:140px}.upload-button{display:inline-flex;align-items:center;padding:10px 12px;border:1px solid #444;border-radius:8px;background:#242424;font-size:11px;cursor:pointer}.upload-button input{display:none}.post-list{display:grid;gap:10px}.post-card{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:15px;display:grid;grid-template-columns:minmax(190px,1.15fr) minmax(220px,1fr) minmax(135px,.5fr) auto;gap:15px;align-items:center}.post-title{font-weight:700;font-size:14px;margin:0 0 6px}.post-meta{font-size:10px;color:var(--muted);line-height:1.6}.post-caption{color:#c9c6c0;font-size:11px;line-height:1.5;max-height:55px;overflow:hidden}.state{font-size:10px;font-weight:700;color:#f8c06e}.state.approved{color:var(--green)}.state.failed{color:var(--red)}.post-warning{font-size:10px;color:#ffc08f;margin-top:6px}.post-actions{display:flex;gap:6px;flex-wrap:wrap}.tiny{font-size:10px;padding:7px 9px;border-radius:7px}.evergreen-grid,.connection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.evergreen-card,.connection-card{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:15px}.evergreen-card h3,.connection-card h3{font-size:13px;margin:0 0 7px}.evergreen-card p,.connection-card p{font-size:10px;color:var(--muted);line-height:1.5;margin:0}.connection-head{display:flex;justify-content:space-between;gap:6px;align-items:center}.connection-card .badge{font-size:9px;padding:6px 7px}.connection-card button{margin-top:13px}.log-list{border:1px solid var(--line);border-radius:13px;overflow:hidden}.log-row{display:grid;grid-template-columns:145px 160px 1fr;gap:12px;padding:11px 13px;border-bottom:1px solid var(--line);font-size:10px}.log-row:last-child{border:0}.log-row time,.log-row .log-action{color:var(--muted)}footer{border-top:1px solid var(--line);padding-top:20px;margin-top:34px;color:#77746e;font-size:10px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 30%,#25201c,#101010 60%)}.login-card{width:min(400px,100%);background:#1a1a1a;border:1px solid #383838;border-radius:18px;padding:30px;box-shadow:0 30px 100px #0008}.login-card h1{font-size:25px;margin:25px 0 8px}.login-card p,.login-card small{font-size:11px;color:var(--muted);line-height:1.55}.login-card input{width:100%}.login-card button{width:100%;margin:14px 0}.login-card code{color:#ffd49a}.error{color:#ff9898;font-size:11px;min-height:14px}.edit-dialog{width:min(720px,calc(100% - 28px));max-height:90vh;overflow:auto;background:#171717;color:var(--text);border:1px solid #3a3a3a;border-radius:16px;padding:22px}.edit-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}.edit-dialog form{display:grid;gap:12px}.edit-dialog h2{margin:0;font-size:20px}.edit-dialog small{font-size:10px;line-height:1.5;color:var(--muted)}.edit-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(4,1fr)}.post-card{grid-template-columns:1fr 1fr}.post-actions{grid-column:1/-1}}@media(max-width:760px){.sidebar{position:static;width:auto;height:auto;padding:16px 18px;border-right:0;border-bottom:1px solid var(--line)}.env-pill{margin:13px 0}.sidebar nav{display:flex;overflow:auto}.sidebar nav a{white-space:nowrap;padding:9px}.sidebar-foot{display:none}main{margin:0;padding:20px 16px 35px}.topbar{align-items:flex-start;flex-direction:column}.top-controls{width:100%;display:grid;grid-template-columns:1fr 1fr}.top-controls button{grid-column:1/-1}.topbar h1{font-size:28px}.section-heading{align-items:flex-start;flex-direction:column}.button-row{width:100%}.button-row button{flex:1}.metric-grid{grid-template-columns:repeat(2,1fr)}.post-card{grid-template-columns:1fr;gap:9px}.post-actions{grid-column:auto}.filters{flex-wrap:wrap}.filters select{flex:1}.log-row{grid-template-columns:1fr;gap:4px}.edit-row{grid-template-columns:1fr}}
/* Client content sources extend the existing dashboard. */
.source-form{background:#151515;border:1px solid #303030;border-radius:14px;padding:20px;margin:18px 0;display:grid;gap:14px}.source-form label,.edit-dialog label{display:grid;gap:7px}.source-field-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.source-field-grid label{font-size:12px;color:#bbb}.source-list{display:grid;gap:12px;margin-top:20px}.source-card{padding:18px;border:1px solid #333;border-radius:12px;background:#171717}.source-card h3{margin:0 0 8px}.source-card .button-row{margin-top:12px}.source-feedback{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#ccc}.source-feedback.error{color:#ffae8d}.source-row-preview{overflow:auto;max-height:240px;font-size:12px}.source-row-preview table{border-collapse:collapse}.source-row-preview td,.source-row-preview th{padding:8px;border:1px solid #333;max-width:260px;min-width:100px}.source-form details{padding:10px;border:1px solid #333}.media-preview img,.media-preview video{max-width:180px;max-height:180px;border-radius:8px;object-fit:contain;margin-top:12px}.source-status{font-size:12px;color:#aaa}.source-account-option{display:inline-flex;gap:6px;margin:5px 14px 5px 0}.source-form input[type=checkbox]{width:auto}.source-errors{color:#ffb79c;margin:8px 0}.source-card code{overflow-wrap:anywhere}@media(max-width:900px){.source-field-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}}@media(max-width:580px){.source-field-grid{grid-template-columns:1fr}.source-form{padding:14px}.top-controls{flex-wrap:wrap}}
.source-list,.source-card,.source-form{min-width:0;max-width:100%}.source-card{overflow-wrap:anywhere}.source-card small{display:block;overflow-wrap:anywhere;word-break:break-word}.source-card a{color:#ff9c65}.source-form input,.source-form select{min-width:0;max-width:100%}
.media-preview img{background:#f5f3ee}
