/* Approved Snooffle tile material. Shared by operator + creator + read-only studio. */
:root{--ink:#29332e;--muted:#556159;--pink:#f8edf1;--cream:#fffafb;--matcha:#e5efdb;--matcha-deep:#526c40;--glass:rgba(255,253,254,.78);--surface:#fffafb;--surface-soft:#f4f3f1;--line:rgba(41,51,46,.14);--edge:rgba(255,255,255,.88);--chart:#758b57;--shadow:0 5px 24px rgba(70,45,59,.045);color-scheme:light}
:root[data-theme=dark]{--ink:#f0f1f0;--muted:#b8beb9;--pink:#1b1d1f;--cream:#242729;--matcha:#39423a;--matcha-deep:#c4d1b8;--glass:#26292b;--surface:#26292b;--surface-soft:#303436;--line:#4a5051;--edge:#3c4142;--chart:#c4d1b8;--shadow:none;color-scheme:dark}
body,body.cockpit{color:var(--ink);background:var(--pink);font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body{background:radial-gradient(ellipse at 85% 5%,rgba(229,239,219,.32),transparent 42%),var(--pink)}
html[data-theme=dark] body{background:var(--pink)}
h1,h2,h3,button,input,select,textarea{font-family:inherit;letter-spacing:normal}h1,h2{letter-spacing:-.025em}h1{font-size:30px;line-height:1.2}h2{font-size:19px}h3{font-size:15px}
header{gap:16px}header>span{margin-right:auto;font-size:13px}header .brand{font-size:30px}.badge{background:var(--matcha);color:var(--ink)}
button,.button,summary,select,input,textarea{color:var(--ink)}button,.button{background:var(--surface);border:1px solid var(--line);min-height:44px;padding:8px 14px;font-size:13px;line-height:1.4;margin-top:0;border-radius:12px}
@media (hover:hover) and (pointer:fine){button:hover:not(:disabled),.button:hover{background:var(--surface-soft);filter:none}}button:active:not(:disabled){transform:translateY(1px)}
[data-theme-toggle]{white-space:nowrap;font-size:12px;font-weight:500;min-height:40px;padding:8px 12px;margin:0}
input,textarea,select,.cp-insight-filters select,.cp-insight-filters input{background:var(--surface);color:var(--ink);border:1px solid var(--line);font-size:14px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}:focus-visible{outline:2px solid var(--matcha-deep);outline-offset:3px}
.panel,nav,.cp-nav,.cp-section,.cp-count,.dashboard-tile,.dashboard-canvas .fact,.overview-trends>.timeline,.insight-columns>section,.overview-basis,#live-stats>.explorer-section,.panel-fact,.saved-views{background:var(--glass);border:1px solid var(--edge);box-shadow:var(--shadow);border-radius:20px;backdrop-filter:blur(18px)}
.cp-section,.dashboard-tile,.overview-trends>.timeline,.insight-columns>section{padding:20px}
.shell{max-width:1580px;grid-template-columns:200px minmax(0,1fr);padding:22px 28px;gap:24px}.shell header{padding:0 0 14px}.shell nav{padding:12px;gap:4px}.shell nav a{font-size:13px;min-height:46px;padding:12px;border-radius:12px}@media (hover:hover) and (pointer:fine){.shell nav a:hover,.cp-nav a:hover{background:var(--surface-soft)}}.shell nav a[aria-current],.cp-nav a[aria-current=page]{background:var(--matcha);color:var(--ink)}
.heading{align-items:center;flex-wrap:wrap}.heading>div{margin-right:auto}.heading h1{font-size:28px}.heading #refresh{min-height:40px;font-size:12px}.heading .eyebrow{color:var(--muted)}
.dashboard-canvas .fact-value{font-size:32px;font-weight:600;letter-spacing:-.025em}.dashboard-canvas .facts{gap:16px}.dashboard-canvas .fact{padding:20px}.dashboard-canvas .fact h3{font-weight:500;color:var(--muted)}.dashboard-canvas .fact-context{color:var(--muted)}
.timeline svg{min-height:0;max-height:220px}.timeline svg text,.cp-history-chart text{fill:var(--muted);font-size:11px}.timeline svg line,.cp-history-chart line{stroke:var(--line)}.timeline svg polyline,.timeline svg path[stroke],.cp-history-chart polyline{stroke:var(--chart)}.timeline svg circle:not(.chart-hit){fill:var(--chart)}.chart-hit:focus-visible{stroke:var(--chart)}.chart-tip{background:var(--ink);color:var(--cream)}.overview-trends .timeline svg{max-width:none;max-height:180px}
.insight-columns{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.insight-columns>section:first-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.insight-columns>section:first-child>h2,.insight-columns>section:first-child>p{grid-column:1/-1}.insight-columns>section:first-child>h2{margin:0}.insight-columns>section:first-child>p{margin:0;font-size:12px}
.insight-columns>section:first-child .content-preview{display:block;padding:0;border:0;margin:0;min-width:0}.insight-columns>section:first-child .content-preview img,.insight-columns>section:first-child .thumbnail-empty{display:flex;width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;background:var(--surface-soft);border-radius:12px;align-items:center;justify-content:center;text-align:center;font-size:12px;color:var(--muted)}.insight-columns>section:first-child .content-preview h3{margin:10px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.insight-columns>section:first-child .content-preview p{font-size:11px;line-height:1.5}.insight-columns>section:first-child .content-preview a{min-height:44px;display:inline-flex;align-items:center}.insight-columns .finding{font-size:21px;font-weight:600}
.period-segments,.media-filters button,.panel-verdict,.post-format,.post-open,.media-format,.media-selected{background:var(--surface);color:var(--ink);border-color:var(--line)}.period-segments input:checked+span,.media-filters button[aria-pressed=true],.panel-tabs button[aria-pressed=true]{background:var(--matcha);color:var(--ink);border-color:var(--matcha-deep)}
.media-cover,.post-cover,.thumbnail-empty{background:var(--surface-soft)}.post-card.panel{background:var(--glass);border-color:var(--edge)}.panel-verdict.down,.cp-tag.warn,.cp-badge{background:#f2d8e2;color:#4b3340}.cp-tag,.owner-banner{background:var(--matcha);color:var(--ink)}.welcome,.cp-ops-flow>div,.cp-history-chart,.cp-niche,.cp-insight-filters{background:var(--surface);border-color:var(--line)}
#error,#product-error,.cp-issues li.warn{color:var(--ink)}#status,#error{background:var(--surface-soft);border:1px solid var(--line);border-radius:12px}#error{border-left-width:1px}.cp-niche{border:1px solid var(--line)}.cp-niche.warn{border-color:var(--line)}.cp-niche.ok{border-color:var(--matcha-deep)}
body.cockpit header{width:min(1540px,calc(100% - 56px));padding:24px 0}body.cockpit main{width:min(1540px,calc(100% - 56px));padding:6px 0 24px}.cp-shell{grid-template-columns:210px minmax(0,1fr);gap:24px}.cp-nav{padding:12px;top:20px}.cp-nav a{font-size:13px;min-height:46px;padding:11px 12px}.cp-brand{font-size:12px;color:var(--muted);padding:8px 12px}.cp-nav-foot{border-top:1px solid var(--line);padding-top:12px}.cp-nav-foot button{min-height:40px}.cp-title{font-size:28px;margin:0 0 6px}.cp-sub{font-size:12px;line-height:1.55;color:var(--muted);max-width:75ch}.cp-section h2{font-size:18px;margin:0 0 10px}.cp-section h3{font-size:14px}.cp-count b{font-size:28px}.cp-count span{font-size:12px}.cp-counts{gap:14px}
.cp-overview-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 16px}.cp-overview-heading .cp-sub{margin:0}.cp-overview-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.cp-overview-filters label{display:grid;gap:5px;font-size:11px;font-weight:500;color:var(--muted);margin:0;flex:1 1 160px;max-width:280px}.cp-overview-filters select{width:100%;min-height:42px;border-radius:12px;padding:8px 12px}
.cp-overview{display:grid;gap:16px}.cp-overview-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.cp-overview-middle{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cp-overview-bottom{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr);gap:16px}.cp-overview .cp-section{margin:0;overflow:visible;min-width:0}.cp-overview .cp-section>p{margin-bottom:12px}.cp-overview .cp-section>p:last-child{margin-bottom:0}.cp-overview a{font-size:12px;display:inline-flex;align-items:center;min-height:44px}.cp-hero-value{font-size:32px;font-weight:600;letter-spacing:-.025em;line-height:1.25;margin:18px 0 10px}.cp-overview progress{accent-color:var(--chart);height:9px;width:100%;border:0;border-radius:8px;display:block;margin:16px 0 6px}progress::-webkit-progress-bar{background:var(--surface-soft);border-radius:8px}progress::-webkit-progress-value{background:var(--chart);border-radius:8px}.cp-overview .cp-review-meter{margin:18px 0 10px;align-items:center}.cp-overview .cp-review-meter strong{font-size:32px}.cp-overview .cp-review-total>p{font-size:12px;color:var(--muted)}.cp-overview .cp-review-total{max-width:none}
.cp-bar-track{background:var(--surface-soft);height:9px}.cp-bar-track span{background:var(--chart)}.cp-bar-row{gap:10px;grid-template-columns:minmax(75px,1fr) minmax(50px,1.3fr) auto}.cp-bar-label{font-size:12px}.cp-bar-value{font-size:12px}.cp-bar-row small{font-size:11px}.cp-bars{gap:16px}.cp-shortlist{list-style:none;padding:0;margin:16px 0}.cp-shortlist li{padding:12px 0;border-bottom:1px solid var(--line);margin:0;overflow-wrap:anywhere}.cp-shortlist strong,.cp-shortlist span{display:block;font-size:13px}.cp-shortlist span{color:var(--muted);font-size:12px;margin-top:4px}.cp-overview dl{display:grid;grid-template-columns:1fr auto;font-size:12px;gap:14px 8px;margin:20px 0}.cp-overview dd{margin:0;text-align:right;font-size:16px}.cp-content-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cp-content-cover{position:relative!important;display:flex!important;aspect-ratio:9/16;align-items:center;justify-content:center;background:var(--surface-soft);border-radius:12px;overflow:hidden;color:var(--muted);font-size:12px;text-align:center;min-height:0!important}.cp-content-cover img{width:100%;height:100%;object-fit:contain}.cp-cover-format{position:absolute;top:8px;left:8px;padding:3px 6px;border-radius:6px;background:var(--surface);color:var(--ink);font-size:10px}.cp-content-item{min-width:0}.cp-content-item h3{margin:10px 0 6px;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cp-content-item small{font-size:11px;color:var(--muted)}.cp-content-item .cp-sub{margin:0;font-size:11px}.cp-content-item>a:last-child{font-size:11px}
.cp-table th{font-size:11px}.cp-table td{font-size:13px}.cp-table button,.cp-actions button,.cp-form button{min-height:44px}.cp-filter button{min-height:40px;background:var(--surface);border-color:var(--line)}.cp-filter button[aria-pressed=true]{background:var(--matcha);color:var(--ink)}
.layout-settings{position:relative;z-index:3;font-size:13px}.layout-settings>summary{list-style:none;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;min-height:40px;display:flex;align-items:center;white-space:nowrap}.layout-settings>summary::-webkit-details-marker{display:none}.layout-options{position:absolute;right:0;top:calc(100% + 8px);width:270px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 12px 40px rgba(0,0,0,.16)}.layout-options p{font-size:13px;font-weight:600;margin:0 0 12px}.layout-options label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;margin:0;min-height:40px;color:var(--ink)}.layout-options input[type=checkbox]{min-height:0;width:18px;height:18px;margin:0;accent-color:var(--matcha-deep)}.layout-options small{display:block;color:var(--muted);font-size:11px;margin-top:10px}.layout-options button{margin-top:12px;width:100%}
html[data-theme=dark] .post-format,html[data-theme=dark] .post-open,html[data-theme=dark] .media-format,html[data-theme=dark] .media-selected{background:#303436;color:var(--ink)}html[data-theme=dark] .cp-badge,html[data-theme=dark] .cp-tag.warn,html[data-theme=dark] .panel-verdict.down{background:#443c42;color:#e8dce3}html[data-theme=dark] .cp-review-meter progress{accent-color:var(--chart)}html[data-theme=dark] .older-posts .fact{background:var(--surface-soft)}html[data-theme=dark] .repeat-ideas,html[data-theme=dark] .rank-list,html[data-theme=dark] .post-evidence,html[data-theme=dark] .week-detail,html[data-theme=dark] .niche-card{background:var(--surface);border-color:var(--line)}
@media(max-width:1100px){.cp-overview-bottom{grid-template-columns:1fr 1fr}.cp-overview-bottom>[data-tile=content]{grid-column:1/-1}.cp-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.cp-section{padding:16px}.shell{grid-template-columns:170px minmax(0,1fr);padding:20px}.insight-columns{grid-template-columns:1fr}.cp-overview-middle{grid-template-columns:1fr}}
@media(max-width:900px){.shell{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}.shell nav{position:sticky;top:8px;bottom:auto;left:auto;right:auto;grid-column:1;display:flex;flex-wrap:wrap;justify-content:flex-start;padding:6px;gap:2px;z-index:2}.shell nav a{font-size:12px;padding:8px 10px;min-height:40px}.shell main,.shell footer{grid-column:1}.shell footer{padding-bottom:28px}.shell header{flex-wrap:wrap;padding-bottom:8px}.shell header>span{max-width:none;text-align:left}.cp-shell{grid-template-columns:1fr}.cp-nav{position:sticky;top:8px;flex-direction:row;flex-wrap:wrap;overflow:visible;z-index:2;gap:2px;padding:6px}.cp-nav a{white-space:normal;min-height:40px;font-size:12px;padding:8px 10px}.cp-nav-foot{padding:0;border:0;gap:4px;margin:0}.cp-nav-foot button{font-size:11px;padding:8px;min-height:40px}.cp-brand{display:none}.heading{flex-direction:row;gap:10px}.heading button{max-width:none}.heading h1{font-size:26px}body.cockpit header,body.cockpit main{width:calc(100% - 32px)}body.cockpit header{padding:16px 0}body.cockpit main{padding-top:0}.cp-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-overview-metrics>[data-tile=budget]{grid-column:1/-1}.cp-hero-value,.cp-overview .cp-review-meter strong{font-size:28px}}
@media(max-width:540px){header{flex-wrap:wrap}header>span{font-size:11px}[data-theme-toggle]{margin-left:auto;padding:8px 10px;font-size:11px;min-height:40px}.brand{font-size:26px}.cp-overview-bottom{grid-template-columns:1fr}.cp-overview-filters{gap:10px}.cp-overview-filters label{flex:1 1 140px;max-width:none}.cp-overview-heading{gap:12px}.cp-title{font-size:26px}.cp-overview .cp-section{padding:16px}.cp-overview{gap:12px}.cp-overview-metrics,.cp-overview-middle,.cp-overview-bottom{gap:12px}.dashboard-canvas .fact{padding:16px 12px}.dashboard-canvas .fact-value{font-size:27px}.insight-columns>section:first-child{gap:8px}.insight-columns>section:first-child .content-preview h3{font-size:12px}.layout-options{width:250px;right:0}.heading .layout-settings{margin-left:auto}.cp-overview-heading .layout-options{right:auto;left:0}.timeline svg{max-height:200px}.cp-content-gallery{gap:8px}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.panel,nav,.cp-nav,.cp-section,.cp-count,.dashboard-tile,.dashboard-canvas .fact,.overview-trends>.timeline,.insight-columns>section,.overview-basis,#live-stats>.explorer-section,.panel-fact,.saved-views{background:var(--surface);backdrop-filter:none} }
@media(prefers-contrast:more){:root{--muted:var(--ink);--edge:var(--ink);--line:var(--ink)}}
@media(prefers-reduced-motion:reduce){button:active:not(:disabled){transform:none}}
@media(forced-colors:active){.cp-bar-track span{background:Highlight}.cp-content-cover{border:1px solid CanvasText}.layout-settings>summary{border-color:ButtonText}}
/* Secondary views use the same surfaces rather than inherited white panels. */
.timeline,.niche-block,.top-list>li,.media-viewport,.saved-view-form input,.test-fields input{background:var(--surface);border-color:var(--line)}.niche-block{box-shadow:var(--shadow);border:1px solid var(--edge)}.niche-block h3{font-size:18px}.niche-bar-rail{background:var(--surface-soft)}.niche-bar-rail>span{background:var(--chart)}.niche-history svg text,.growth-details svg text{fill:var(--muted)}.niche-history svg line,.growth-details svg line{stroke:var(--line)}.niche-history svg polyline,.growth-details svg polyline{stroke:var(--chart)}.niche-history svg circle,.growth-details svg circle{fill:var(--chart)}.saved-views-strip button,.week-strip button[aria-pressed=true]{background:var(--matcha);color:var(--ink)}@media (hover:hover) and (pointer:fine){.period-segments label:hover span{background:var(--surface-soft)}}.period-segments input:focus-visible+span{outline-color:var(--matcha-deep)}.media-tile[aria-pressed=true]{border-color:var(--matcha-deep)}
#live-stats .dashboard-tile>.timeline,#weekly-means .timeline{background:none;box-shadow:none}.top-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;max-height:600px}.top-list>li{padding:12px;border:1px solid var(--line)}.top-list .content-preview{display:flex;flex-direction:column;gap:10px}.top-list .thumbnail-action{width:100%}.top-list .thumbnail-action img,.top-list .thumbnail-action .thumbnail-empty{width:100%;height:auto;aspect-ratio:9/16;object-fit:contain}.top-list .rank-button strong{font-size:15px}.top-list .content-preview h4{font-size:12px}.top-list .content-preview p,.top-list .content-preview a{font-size:11px}.top-list .rank-button span{font-size:12px}.repeat-ideas h3{font-size:18px}
@media(max-width:1250px){.top-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.top-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.top-list>li{padding:10px}.layout-settings{z-index:4}.shell header>span{order:3;flex-basis:100%;margin:0}.shell header #logout{margin-left:auto}[data-theme-toggle]{margin-left:0}.heading #refresh{max-width:140px}.cp-overview-heading .layout-options{left:0}.shell main{overflow:visible}}
.cp-review-compact{display:flex;align-items:center;gap:16px;margin:16px 0 10px}.cp-review-ring{width:94px;height:94px;position:relative;flex-shrink:0}.cp-review-ring svg{display:block;width:100%;height:100%}.cp-ring-track{stroke:var(--surface-soft)}.cp-ring-value{stroke:var(--chart);stroke-linecap:round}.cp-review-ring strong{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;font-variant-numeric:tabular-nums}.cp-review-compact p{font-size:13px;line-height:1.5;margin:0 0 6px}.cp-review-compact .cp-sub{font-size:12px}.cp-overview .cp-progress-accessible{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.cp-overview [data-tile=review]>details{font-size:12px}.cp-overview [data-tile=review]>details summary{cursor:pointer;min-height:40px;align-content:center}.cp-overview [data-tile=review]>details p{margin:8px 0}.cp-history-chart circle{fill:var(--chart)}.cp-history-chart line[stroke-width]{stroke:var(--chart)}
@media(max-width:540px){.cp-review-compact{flex-direction:column;align-items:start;gap:8px}.cp-review-ring{width:86px;height:86px}}
/* Saved account views remain available without competing with the KPI tiles. */
.saved-views{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;padding:12px 16px;box-shadow:none}.saved-views .saved-views-heading h2{margin:0;font-size:13px}.saved-views>.fact-context:not([role=status]){display:none}.saved-views>details{margin-left:auto}.saved-views>details[open]{flex-basis:100%;margin:8px 0}.saved-views>details[open]~details{margin-left:0}.saved-views-strip{padding:0}.saved-views summary{font-size:12px}.saved-views>[role=status]:empty{display:none}
@media(max-width:900px){html{scroll-padding-top:130px}.timeline,.explorer-section,.niche-block,#post-time-detail{scroll-margin-top:130px}}
.cp-health>summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center}.cp-health>.cp-sub{margin-top:12px}.cp-overview [data-tile=inventory] details{font-size:12px}.cp-overview [data-tile=inventory] details summary{min-height:40px;align-content:center;cursor:pointer}.cp-overview [data-tile=inventory] details dl{font-size:12px}
.content-preview-cover{display:block;flex-shrink:0;text-decoration:none;min-height:0!important;max-width:100%}.insight-columns>section:first-child .content-preview-cover{width:100%;display:block!important}.content-preview-cover:focus-visible{border-radius:12px}
.cp-overview-metrics:has(>[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}.cp-overview-middle:has(>[hidden]),.overview-trends:has(>[hidden]),.insight-columns:has(>[hidden]){grid-template-columns:1fr}.cp-overview-bottom:has(>[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}.cp-overview-bottom:has(>[hidden])>[data-tile=content]{grid-column:auto}
@media(max-width:600px){.cp-overview-bottom:has(>[hidden]){grid-template-columns:1fr}.cp-overview-metrics:has(>[hidden])>[data-tile=budget]{grid-column:auto}}
.period-segments span{transition:none}
