:root { color-scheme: light; --ink:#17211b; --muted:#647067; --paper:#f5f2e9; --card:#fffdf7; --accent:#185f48; --line:#d9d6cc; --series-views:#2a78d6; --series-visitors:#1baf7a; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
.topbar { min-height:56px; padding:0 max(16px,calc((100vw - 1080px)/2)); display:flex; align-items:center; background:var(--card); border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-weight:900; letter-spacing:.12em; margin-right:auto; flex-shrink:0; }
.nav-links { display:flex; align-items:center; gap:2px; flex-wrap:wrap; }
.nav-links a { font-size:.85rem; font-weight:600; padding:6px 10px; border-radius:7px; white-space:nowrap; }
.nav-links a:hover { background:#eaebe3; text-decoration:none; }
.shell { width:min(760px,calc(100% - 32px)); margin:56px auto; }.shell.narrow{width:min(680px,calc(100% - 32px));}
.page-heading,.profile-hero { margin-bottom:32px; }.page-heading h1,.profile-hero h1,.panel h1{font:700 clamp(2rem,6vw,3.5rem)/1.05 Georgia,serif;margin:.15em 0;}
.eyebrow { margin:0; color:var(--accent); font-size:.75rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.feed { display:grid; gap:18px; }.post-card,.panel,.empty,.profile-hero,.kpi-tile,.node-status { padding:28px; background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 35px rgba(31,38,33,.05); }
.post-card h2 { margin:.55em 0 .35em; font:700 1.65rem/1.2 Georgia,serif; }.post-meta { display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:.88rem; }.post-meta a{font-weight:700;}.post-meta time{margin-left:auto;}
.post-content { overflow-wrap:anywhere; white-space:normal; }.post-card footer{margin-top:18px;font-size:.86rem;}.profile-hero{display:flex;gap:22px;align-items:flex-start;}.avatar{flex:0 0 72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:white;font:700 2rem Georgia,serif;}
.editor-grid { width:min(1080px,calc(100% - 32px)); display:grid; grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr); gap:20px; }.stack{display:grid;gap:16px;}label{display:grid;gap:6px;font-weight:650;}input,textarea,select,button{font:inherit;}input,textarea,select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);}textarea{resize:vertical;}button,.button{display:inline-block;border:0;border-radius:9px;padding:11px 16px;background:var(--accent);color:white;font-weight:750;cursor:pointer;}button.secondary,.button.secondary{background:#e6e4dc;color:var(--ink);}.field-row,.actions{display:flex;gap:12px;}.field-row>*{flex:1}.check{display:flex;grid-template-columns:auto 1fr;align-items:center;justify-content:start}.check input{width:auto}.muted{color:var(--muted);font-weight:400}.status{min-height:1.5em}.status.error{color:#a13d37}.status.success{color:var(--accent)}.hidden{display:none!important}.saved-post{margin-top:18px;padding:16px;border-radius:10px;background:#e3efe9;}
.media-fields{margin:0;padding:16px;border:1px solid var(--line);border-radius:12px}.media-fields legend{padding:0 6px;font-weight:750}.post-media{display:grid;gap:10px;margin-top:18px}.post-media img{width:100%;max-height:520px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}.media-link{display:block;padding:12px;border-radius:9px;background:#eeece4;font-weight:700}
.upload-row{align-items:end;margin-top:10px}.upload-row .upload-picker input{padding:8px}.upload-row button{flex:0 0 auto}button:disabled,.button:disabled{opacity:.5;cursor:not-allowed}
.password-field .password-wrapper{display:flex;gap:0;position:relative}
.password-field .password-wrapper input{padding-right:4.25rem}
.password-field .toggle-password{position:absolute;right:1px;top:1px;bottom:1px;border-radius:0 9px 9px 0;padding:0 14px;background:transparent;color:var(--muted);font-size:.82rem;font-weight:650;letter-spacing:.02em;cursor:pointer;border:0;z-index:1}
.password-field .toggle-password:hover{color:var(--accent);background:rgba(0,0,0,0.03)}

.dashboard-shell{width:min(1080px,calc(100% - 32px));display:grid;gap:20px;}
.node-status{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.node-status h2{margin:0;font:700 1.5rem Georgia,serif;}
.status-badge{padding:4px 10px;border-radius:999px;background:#e3efe9;color:var(--accent);font-weight:750;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;}
.kpi-tile{padding:18px 20px;min-width:0;}
.kpi-tile .kpi-label{margin:0 0 6px;color:var(--muted);font-size:.82rem;font-weight:650;}
.kpi-tile .kpi-value{margin:0;font:650 1.85rem/1.15 system-ui,-apple-system,"Segoe UI",sans-serif;overflow-wrap:break-word;}
.kpi-tile .kpi-note{margin:4px 0 0;color:var(--muted);font-size:.8rem;}
.chart-card h2,.two-col h2{margin:0 0 14px;font:700 1.3rem Georgia,serif;}
.chart-legend{display:flex;gap:18px;margin-bottom:6px;font-size:.85rem;color:var(--muted);}
.chart-legend .swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;}
.chart-bar{transition:opacity .1s;}.chart-bar:hover,.chart-hit:focus-visible+.chart-bar{opacity:.75;}
.chart-hit{fill:transparent;}.chart-hit:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.chart-day{fill:var(--muted);font-size:8px;font-family:system-ui,sans-serif;}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.content-list,.activity-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.content-list li,.activity-list li{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:.92rem;}
.content-list li:last-child,.activity-list li:last-child{border-bottom:0;padding-bottom:0;}
.activity-list time,.content-list .count{color:var(--muted);font-size:.85rem;white-space:nowrap;}
.empty-row{color:var(--muted);font-size:.9rem;}
.provider-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.provider-card{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:14px;opacity:.75}.provider-card.available{opacity:1;border-color:#8ebcab}.provider-card h2{font:700 1.15rem Georgia,serif;margin:0}.provider-card p{margin:4px 0;color:var(--muted);font-size:.85rem}.provider-logo{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#316ff6;color:white;font-weight:900}.provider-logo.youtube{background:#e62117}.provider-logo.linkedin{background:#0a66c2}.provider-logo.instagram{background:#a83aac}.provider-logo.tiktok{background:#111}.provider-card .status-badge,.provider-state{grid-column:1/-1;justify-self:start}.provider-state{font-size:.75rem;color:var(--muted);font-weight:700}.integration-columns{align-items:start}.integration-columns h2{margin:0;font:700 1.3rem Georgia,serif}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.source-list{display:grid;gap:10px}.source-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.source-row>div{min-width:0;display:grid}.source-row a{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-row small{display:block}.error-badge{background:#f4dfdc;color:#a13d37}
@media (max-width:720px){.two-col{grid-template-columns:1fr}}
.tab-bar{display:flex;gap:4px;margin-bottom:20px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:4px;}
.tab{flex:1;border:0;border-radius:8px;padding:9px 12px;background:transparent;color:var(--muted);font-weight:650;font-size:.88rem;cursor:pointer;}
.tab.active{background:var(--accent);color:white;}
.post-list-item{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px;background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:12px;}
.post-list-main{flex:1;min-width:0;}
.post-list-main h3{margin:0 0 6px;font:700 1.15rem/1.3 Georgia,serif;}
.post-list-main h3 a{color:var(--ink);}
.post-list-main h3 a:hover{color:var(--accent);}
.post-list-excerpt{margin:0;color:var(--muted);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.post-list-meta{display:flex;align-items:center;gap:10px;flex-shrink:0;font-size:.85rem;}
.post-list-meta .badge{font-size:.72rem;padding:3px 9px;border-radius:999px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;}
.badge-green{background:#e3efe9;color:var(--accent);}
.badge-yellow{background:#f5edce;color:#8a6f2b;}
.post-list-meta .button.small{padding:6px 12px;font-size:.82rem;}
.post-list-meta .muted{white-space:nowrap;}
.gateway-card{padding:16px 18px;background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:10px;}
.gateway-card-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.gateway-card .muted{font-size:.84rem;}
.gateway-card .configure-btn{margin-top:8px;}
@media (max-width:700px){.post-list-item{flex-direction:column;}.post-list-meta{flex-wrap:wrap;}}
