/* Instagram / WhatsApp-style look: flat backgrounds, strong text contrast, thin dividers. Loaded last so it wins. */
html:root,html:root[data-theme=light]{
 --bg:#fff;--panel:#fff;--s1:#fff;--s2:#f2f2f2;--s3:#e4e4e4;--line:#dbdbdb;--line2:#c7c7c7;
 --ink:#000;--ink2:#262626;--muted:#737373;--on:#fff;--shadow:none;
 --surface:#fff;--surface-2:#f2f2f2;--text:#000;--border:#dbdbdb;
}
html:root[data-theme=dark]{
 color-scheme:dark;
 --bg:#000000;--panel:#000000;--s1:#0a0a0a;--s2:#111111;--s3:#1c1c1c;--line:#1f1f1f;--line2:#3a434c;
 --ink:#fff;--ink2:#e9edef;--muted:#a8b0b6;--on:#000000;--shadow:none;
 --surface:#0a0a0a;--surface-2:#111111;--text:#fff;--border:#1f1f1f;
}
/* flat page backgrounds: no gradient washes */
html:root body,html:root[data-theme=dark] body,html:root[data-theme=light] body{background:var(--bg)!important;background-image:none!important;color:var(--ink)!important}
html:root[data-theme=dark],html:root[data-theme=dark] body{background:#000000!important}
html:root[data-theme=light],html:root[data-theme=light] body{background:#fff!important}
/* shell top bar */
html:root .platform-bar,html:root[data-theme=dark] .platform-bar,html:root[data-theme=light] .platform-bar{background:var(--bg)!important;background-image:none!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;color:var(--ink)!important}
html:root .platform-bar nav,html:root[data-theme=dark] .platform-bar nav{background:var(--s2)!important}
html:root .platform-bar nav button{color:var(--muted)!important;font-weight:600}
html:root .platform-bar nav button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;box-shadow:none!important}
html:root #shellHealth,html:root #shellContacts,html:root[data-theme=dark] #shellHealth,html:root[data-theme=dark] #shellContacts{background:var(--s2)!important;border:0!important;color:var(--ink)!important}
html:root #shellRadar,html:root[data-theme=dark] #shellRadar{background:var(--ink)!important;color:var(--bg)!important}
html:root #platformLoading,html:root[data-theme=dark] #platformLoading{background:var(--bg)!important;background-image:none!important;color:var(--ink)!important}
/* cards, popups, panels: flat surface, hairline border, no glow */
html:root dialog,html:root[data-theme=dark] dialog,html:root[data-theme=dark] #shellRadarDialog,html:root[data-theme=dark] #shellHealthDialog{background:var(--s1)!important;background-image:none!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:0 10px 40px #0006!important}
html:root .post,html:root .pick,html:root .tile,html:root .card,html:root .ig-tile,html:root .ig-pick,html:root .ig-week,html:root .hl-card,html:root .wl-card,html:root .radar-row,
html:root[data-theme=dark] .post,html:root[data-theme=dark] .pick,html:root[data-theme=dark] .tile,html:root[data-theme=dark] .card,html:root[data-theme=dark] .ig-tile,html:root[data-theme=dark] .ig-pick,html:root[data-theme=dark] .wl-card,html:root[data-theme=dark] .radar-row{background:var(--s1)!important;background-image:none!important;border:1px solid var(--line)!important;box-shadow:none!important;color:var(--ink)!important}
html:root .studio-hero,html:root[data-theme=dark] .studio-hero,html:root .art-card,html:root[data-theme=dark] .art-card{background:var(--s1)!important;background-image:none!important;border-color:var(--line)!important;color:var(--ink)!important}
/* inputs and chips: clear fill against the page */
html:root input,html:root select,html:root textarea{background:var(--s2)!important;color:var(--ink)!important;border:1px solid var(--line)!important}
html:root input::placeholder,html:root textarea::placeholder{color:var(--muted)!important;opacity:1}
html:root .tab,html:root .btn,html:root .chip,html:root .seg button,html:root .pbtn{background:var(--s2)}
html:root .tab[aria-pressed=true],html:root .seg button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important}
html:root .tab[aria-pressed=true] b{color:var(--bg)!important}
/* text: bright primary, readable secondary */
html:root .sub,html:root small,html:root .count,html:root .prog,html:root .who,html:root .wl-meta{color:var(--muted)!important}
html:root h1,html:root h2,html:root h3,html:root h4{color:var(--ink)!important}
html:root a{color:inherit}
/* bottom/side bars in the Instagram frame */
html:root .bnav,html:root[data-theme=dark] .bnav,html:root .ig-header,html:root[data-theme=dark] .ig-header,html:root .bar,html:root[data-theme=dark] .bar{background:var(--bg)!important;background-image:none!important;border-color:var(--line)!important;color:var(--ink)!important}
/* thin scrollbar like the apps */
*{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
/* leftover tints: stat tiles, bottom nav, sidebar active state, hint labels */
html:root .stats button span,html:root .stats button small{color:var(--muted)!important}
html:root .stats button b,html:root .stats b{color:var(--ink)!important}
html:root .bnav button{color:var(--muted)!important;background:transparent!important}
html:root .bnav button[aria-current],html:root .bnav button[aria-pressed=true],html:root .bnav button.on,html:root .bnav button.active{color:var(--ink)!important;background:transparent!important}
html:root .stats button,html:root .stats>*{background:var(--s1)!important;border:1px solid var(--line)!important}
html:root[data-theme=dark] .pbtn[aria-label^="Used"],html:root[data-theme=dark] .pbtn[aria-label^="Copied"]{background:var(--s2)!important}
html:root body .bnav button[aria-pressed=true]{background:var(--s2)!important;color:var(--ink)!important;box-shadow:none!important}
html:root body .bnav button[aria-pressed=true] svg{color:var(--ink)!important;stroke:currentColor}
html:root body .bnav button[aria-pressed=true]::before{background:var(--ink)!important}
html:root body .bnav .nav-switch button,html:root body .bnav [data-platform],html:root body #appDrawer .cu-ws button{border-color:var(--line)!important;background:transparent!important;color:var(--ink)!important}
html:root body .bnav [data-platform][aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important}
html:root body .chbtn,html:root body .bar .prog .pbtn,html:root body .bar .prog .pbtn[aria-label]{border:0!important;background:var(--s2)!important;color:var(--ink)!important}
html:root body .bar .prog .pbtn[aria-label^="Copied"]::after,html:root body .bar .prog .pbtn[aria-label^="Used"]::after{color:var(--muted)}
html:root body .bar .prog .pbtn b{color:var(--ink)!important}
/* shell sidebar (app drawer) */
html:root .app-drawer,html:root[data-theme=dark] .app-drawer{background:var(--bg)!important;background-image:none!important;border-color:var(--line)!important;box-shadow:none!important;color:var(--ink)!important}
html:root .app-drawer-nav button,html:root .app-drawer-nav a{color:var(--ink)!important;background:transparent!important;box-shadow:none!important}
html:root .app-drawer-nav button[aria-current=true],html:root .app-drawer-nav button[aria-pressed=true]{background:var(--s2)!important;color:var(--ink)!important;font-weight:700}
html:root .app-drawer-nav button svg{color:var(--ink)!important}
html:root .app-drawer button[data-platform],html:root .app-drawer .app-drawer-top button[data-app-platform]{border:1px solid var(--line)!important;background:transparent!important;color:var(--ink)!important}
html:root .app-drawer [aria-pressed=true][data-app-platform],html:root .app-drawer [aria-pressed=true][data-platform],html:root .app-drawer [aria-current=true][data-app-platform]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root .app-drawer small,html:root .app-drawer-brand small{color:var(--muted)!important}
html:root .app-drawer-nav button[aria-current=true]::before{background:var(--ink)!important}
html:root .app-drawer button[aria-pressed=true]:not(.app-drawer-nav button),html:root .app-drawer-top button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}

/* ===== desktop: icon-only rail, expands with the menu button ===== */
@media(min-width:861px){
 html:not([data-plat]) body{padding-left:72px!important}
 html body #appDrawer{width:72px!important;padding:14px 10px!important;overflow-x:hidden;transition:width .22s ease,box-shadow .22s ease!important;z-index:1095!important}
 html body #platformLoading{inset:var(--bar-h,64px) 0 0 72px!important}
 #railToggle{display:grid!important;place-items:center;width:52px;height:52px;margin:0 0 6px;border:0;border-radius:14px;background:transparent;color:var(--ink);cursor:pointer;flex:none}
 #railToggle:hover{background:var(--s2)}
 #railToggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
 /* collapsed: icons only */
 html body #appDrawer:not(.rail-open) .app-drawer-top{padding:0 0 8px;justify-content:center}
 html body #appDrawer:not(.rail-open) .app-drawer-brand>span:last-child,
 html body #appDrawer:not(.rail-open) .app-drawer-label,
 html body #appDrawer:not(.rail-open) .app-drawer-brand{display:none}
 html body #appDrawer:not(.rail-open) .app-drawer-divider{margin:8px 10px}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button,
 html body #appDrawer:not(.rail-open) .app-drawer-bottom button{font-size:0!important;justify-content:center;padding:0!important;width:52px;min-height:52px;gap:0}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button .di,
 html body #appDrawer:not(.rail-open) .app-drawer-bottom button .di{width:26px;height:26px}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button .di svg,
 html body #appDrawer:not(.rail-open) .app-drawer-bottom button .di svg{width:26px;height:26px}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button::before{display:none}
 /* expanded: slides over the page */
 html body #appDrawer.rail-open{width:256px!important;padding:14px 16px!important;box-shadow:0 0 0 100vmax #0000,14px 0 40px #0005!important}
 #railScrim{position:fixed;inset:0;z-index:1094;background:transparent}
}
@media(max-width:860px){#railToggle,#railScrim{display:none!important}}
@media(min-width:861px){
 /* platform switch as four small icons in the rail */
 html body #appDrawer:not(.rail-open) .cu-ws{display:grid!important;grid-template-columns:1fr;gap:2px;margin:0 0 6px}
 html body #appDrawer:not(.rail-open) .cu-ws button{font-size:0!important;width:52px;min-height:40px;border:0!important;border-radius:12px!important;display:grid;place-items:center;padding:0}
 html body #appDrawer:not(.rail-open) .cu-ws button::before{font-size:17px;line-height:1;font-weight:700}
 html body #appDrawer:not(.rail-open) .cu-ws [data-ws=youtube]::before{content:"▶"}
 html body #appDrawer:not(.rail-open) .cu-ws [data-ws=instagram]::before{content:"◎"}
 html body #appDrawer:not(.rail-open) .cu-ws [data-ws=both]::before,html body #appDrawer:not(.rail-open) .cu-ws [data-ws=across]::before,html body #appDrawer:not(.rail-open) .cu-ws [data-ws=radar]::before{content:"✦"}
 html body #appDrawer:not(.rail-open) .cu-ws [data-ws=team]::before{content:"▦"}
}
@media(min-width:861px){
 html body #appDrawer.rail-open .app-drawer-top{flex-wrap:nowrap;gap:8px;align-items:center;padding:0 0 14px}
 html body #appDrawer.rail-open .app-drawer-brand{flex:1;min-width:0;white-space:nowrap}
 html body #appDrawer.rail-open .app-drawer-brand strong{font-size:18px;white-space:nowrap}
 html body #appDrawer.rail-open .app-drawer-brand small{display:none}
 html body #appDrawer.rail-open #railToggle{width:44px;height:44px;margin:0;background:transparent}
 html body #appDrawer.rail-open .app-brand-icon{width:34px;height:34px}
 html body #appDrawer.rail-open .app-brand-icon svg{width:34px;height:34px}
}

/* ===== duplicate icon: Team Studio is already a page in the menu ===== */
#appDrawer .cu-ws [data-ws=team]{display:none!important}
#appDrawer .cu-ws{grid-template-columns:repeat(3,1fr)}
@media(min-width:861px){html body #appDrawer.rail-open .cu-ws{grid-template-columns:1fr 1fr}}

/* ===== at-a-glance side panel (wide desktop) ===== */
#glance{display:none}
@media(min-width:1280px){
 #glance:not([hidden]){display:flex;flex-direction:column;gap:14px;position:fixed;top:var(--bar-h,64px);right:0;bottom:0;width:320px;padding:20px 20px 28px 4px;overflow-y:auto;z-index:60;background:var(--bg);overscroll-behavior:contain}
 html.has-glance #workspaceFrames{margin-right:324px}
 html.has-glance body #platformLoading{inset:var(--bar-h,64px) 324px 0 72px!important}
}
.gl-card{background:var(--s1);border:1px solid var(--line);border-radius:16px;padding:14px 14px 12px}
.gl-card h3{margin:0 0 10px;font-size:15px;font-weight:800;letter-spacing:-.01em}
.gl-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.gl-stats div{background:var(--s2);border-radius:12px;padding:9px 6px;text-align:center}
.gl-stats b{display:block;font-size:20px;font-weight:800;line-height:1.1;color:var(--ink)}
.gl-stats span{display:block;margin-top:2px;font-size:11px;color:var(--muted);font-weight:600}
.gl-foot{margin:10px 0 0;font-size:11.5px;color:var(--muted)}
.gl-empty{margin:0;font-size:13px;color:var(--muted);line-height:1.45}
.gl-row{display:block;text-decoration:none;color:var(--ink);padding:8px 8px;margin:0 -8px;border-radius:10px}
.gl-row:hover{background:var(--s2)}
.gl-t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;font-weight:600;line-height:1.35}
.gl-s{display:flex;justify-content:space-between;gap:8px;margin-top:3px;font-size:12px;color:var(--muted)}
.gl-s>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.gl-s b{color:var(--ink);font-weight:800;flex:none}
.gl-plan-h{margin:0 0 6px;font-size:12.5px;color:var(--muted)}
.gl-plan{margin:0;padding-left:20px;font-size:13.5px;line-height:1.5;font-weight:600}
.gl-topics{display:grid;gap:2px}
.gl-topic{font:inherit;text-align:left;border:0;background:transparent;color:var(--ink);padding:8px;margin:0 -8px;border-radius:10px;cursor:pointer;display:grid;gap:1px}
.gl-topic:hover{background:var(--s2)}
.gl-topic span{font-size:14px;font-weight:700}
.gl-topic small{font-size:12px;color:var(--muted)}
.gl-kw{display:grid;gap:2px}
.gl-kwrow{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.gl-kwrow:last-child{border-bottom:0}
.gl-rank{color:var(--muted);font-weight:800}
.gl-kwname{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-kwn{font-size:12px;color:var(--muted);white-space:nowrap}
.gl-kwn b{color:var(--ink)}

/* ===== platform mark at the left of the counters row; counters on the right with an icon ===== */
html[data-plat=youtube]{--plat-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E")}
html[data-plat=instagram]{--plat-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E")}
html[data-plat=both]{--plat-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E");--plat-pos:left center,right center;--plat-w:64px}
html body .bar .workspace-controls{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;flex:1 1 0!important;min-width:0!important;width:auto!important;justify-content:space-between!important}
html body .bar .workspace-controls::before{content:"";flex:none;width:var(--plat-w,32px);height:32px;background:var(--ink);-webkit-mask-image:var(--plat-mask);mask-image:var(--plat-mask);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:var(--plat-pos,center);mask-position:var(--plat-pos,center)}
html[data-plat=both] body .bar .workspace-controls::before{-webkit-mask-size:30px 30px;mask-size:30px 30px}
html body .bar .ch-control,html body .bar #igAccounts,html body .bar .workspace-controls>.chbtn{display:none!important}
html body .bar .prog{margin-left:auto!important;flex:0 0 auto!important;justify-content:flex-end!important}
@media(max-width:900px){html body .bar .workspace-controls{grid-column:1/-1!important;grid-row:2!important;width:100%!important}}
/* counters: icon after the number (no words) */
html:root body .bar .prog .pbtn::after{content:""!important;display:inline-block;width:14px;height:14px;margin-left:5px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat;font-size:0!important;opacity:.9}
html:root body .bar .prog .pbtn span{display:none!important}
html:root body .bar .prog .pbtn{flex-direction:row!important;min-height:40px;padding:0 11px!important;gap:0!important}
html:root body .bar .prog .pbtn[data-tab=used],html:root body .bar .prog .pbtn[data-view=used],html:root body .bar .prog .pbtn[data-status=used]{--ic:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");color:#1f9d55!important;background:#1f9d5522!important}
html:root body .bar .prog .pbtn[data-tab=copied],html:root body .bar .prog .pbtn[data-view=copied],html:root body .bar .prog .pbtn[data-status=copied]{--ic:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%229%22 y=%229%22 width=%2211%22 height=%2211%22 rx=%222.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.2%22/%3E%3Cpath d=%22M15 9V6.5A2.5 2.5 0 0 0 12.5 4h-6A2.5 2.5 0 0 0 4 6.5v6A2.5 2.5 0 0 0 6.5 15H9%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.2%22/%3E%3C/svg%3E");color:#8b5cf6!important;background:#8b5cf622!important}
html:root body .bar .prog .pbtn[data-tab=looks]{--ic:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%226.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.4%22/%3E%3Cpath d=%22m16 16 4.5 4.5%22 stroke=%22%23000%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");color:#d97706!important;background:#d9770622!important}
html:root body .bar .prog .pbtn[data-hid]{--ic:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6z%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.2%22/%3E%3Cpath d=%22M4 20 20 4%22 stroke=%22%23000%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");color:#e5484d!important;background:#e5484d22!important}
html:root body .bar .prog .pbtn[disabled]:is([data-tab=used],[data-view=used],[data-status=used]){--ic:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E")}
html:root body .bar .prog .pbtn b{color:inherit!important}
/* Across both page header */
#shellRadarDialog[data-page] .radar-head{display:flex;align-items:center;gap:12px}
#shellRadarDialog[data-page] .radar-head::before{content:"";flex:none;width:64px;height:30px;background:var(--ink);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E") left center/30px 30px no-repeat,url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E") right center/30px 30px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E") left center/30px 30px no-repeat,url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E") right center/30px 30px no-repeat}

/* ===== Get the app: removed everywhere ===== */
[data-app-tool=install],#shellInstall,#shellInstallDialog,#settingsInstall,.settings-utility[aria-label="Get the app"],[data-tool=shellInstall]{display:none!important}

/* ===== profile sheet: account block ===== */
.cu-acct{display:grid;gap:8px;padding:2px 0 14px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.cu-acct-who{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.cu-acct-who b{font-size:16px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cu-acct-who small{font-size:12px;color:var(--muted);flex:none}
.cu-acct-links{display:flex;gap:8px;flex-wrap:wrap}
.cu-acct-links .cu-b{flex:1;text-align:center;text-decoration:none}

/* ===== desktop rail: every icon visible, no scrolling ===== */
@media(min-width:861px){
 html body #appDrawer:not(.rail-open){overflow:hidden!important;padding:8px 10px!important}
 html body #appDrawer:not(.rail-open) .app-drawer-scroll{overflow:visible!important;padding:0}
 html body #appDrawer:not(.rail-open) .app-drawer-nav{gap:0}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button,html body #appDrawer:not(.rail-open) .app-drawer-bottom button{width:48px;min-height:clamp(32px,4.9vh,44px)!important;height:clamp(32px,4.9vh,44px)}
 html body #appDrawer:not(.rail-open) .app-drawer-nav button .di,html body #appDrawer:not(.rail-open) .app-drawer-bottom button .di,html body #appDrawer:not(.rail-open) .app-drawer-nav button .di svg,html body #appDrawer:not(.rail-open) .app-drawer-bottom button .di svg{width:22px;height:22px}
 #railToggle{height:clamp(34px,5vh,46px);width:48px;margin-bottom:2px}
 html body #appDrawer:not(.rail-open) .cu-ws button{min-height:clamp(28px,4vh,36px)!important;width:48px}
 html body #appDrawer:not(.rail-open) .cu-ws{margin-bottom:2px}
 html body #appDrawer:not(.rail-open) .app-drawer-divider{margin:4px 10px}
 html body #appDrawer:not(.rail-open) .app-drawer-bottom{padding-top:0;margin-top:auto}
}

/* ===== duplicates out of the menu: accounts switch lives in the profile sheet, Idea radar = Across both ===== */
[data-app-tool=accounts],[data-app-tool=radar]{display:none!important}
/* rail platform icons use the same marks as the page row */
:root{--m-vid:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E");--m-cam:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E")}
html body #appDrawer:not(.rail-open) .cu-ws [data-ws=youtube]::before,html body #appDrawer:not(.rail-open) .cu-ws [data-ws=instagram]::before{content:""!important;width:22px;height:22px;background:currentColor;-webkit-mask:var(--m-vid) center/contain no-repeat;mask:var(--m-vid) center/contain no-repeat}
html body #appDrawer:not(.rail-open) .cu-ws [data-ws=instagram]::before{-webkit-mask-image:var(--m-cam);mask-image:var(--m-cam)}

/* ===== when the side panel shows something, the page does not show it a second time ===== */
html[data-glance] body[data-page=popular] #tiles,html[data-glance] body[data-page=fresh] #tiles,
html[data-glance] body[data-page=popular] #plan,html[data-glance] body[data-page=fresh] #plan,
html[data-glance] body[data-page=popular] .section-title[data-on="popular fresh"],html[data-glance] body[data-page=fresh] .section-title[data-on="popular fresh"],
html[data-glance] body[data-page=search] #topics,
html[data-glance] #igOverview>.section-title,html[data-glance] #igOverview>.stats,html[data-glance] #igHighlights,
html[data-glance] #igSearchTools>.section-title,html[data-glance] #igTopics{display:none!important}
/* panel: topic window switch + selected topic */
.gl-seg{display:flex;gap:4px;margin:0 0 8px;background:var(--s2);border-radius:10px;padding:3px}
.gl-seg button{flex:1;font:inherit;font-size:12px;font-weight:700;border:0;border-radius:8px;padding:6px 4px;background:transparent;color:var(--muted);cursor:pointer}
.gl-seg button[aria-pressed=true]{background:var(--ink);color:var(--bg)}
.gl-topic.on{background:var(--s2)}

/* ===== buttons: one simple system, each kind looks different ===== */
:root{--act:#0095f6;--act-h:#1877f2;--ok:#1f9d55;--bad:#e5484d}
/* default = quiet grey button */
html:root .btn,html:root .secondary-btn,html:root .morebtn,html:root .other,html:root .peek,html:root .more,html:root .selectcopies,html:root .onlythese,html:root .rshare{background:var(--s2)!important;color:var(--ink)!important;border:0!important;box-shadow:none!important;border-radius:10px!important;font-weight:700!important}
html:root .btn:hover,html:root .secondary-btn:hover,html:root .morebtn:hover{background:var(--s3)!important}
/* main action = solid blue */
html:root .primary-btn,html:root .btn.primary,html:root .primary,html:root .bulk-primary,html:root .goto,html:root .gotobest,html:root .mp-yes,html:root .wl-btn.primary,html:root .btn.dl{background:var(--act)!important;color:#fff!important;border:0!important;box-shadow:none!important;border-radius:10px!important;font-weight:700!important}
html:root .primary-btn:hover,html:root .bulk-primary:hover,html:root .goto:hover,html:root .gotobest:hover,html:root .mp-yes:hover{background:var(--act-h)!important}
html:root .bulk-primary[disabled],html:root .primary-btn[disabled]{opacity:.45}
/* copy = blue tint, used = green tint, remove/hide = red tint */
html:root .copy,html:root .cp,html:root .wl-copy,html:root .wl-send{background:color-mix(in srgb,var(--act) 16%,transparent)!important;color:var(--act)!important;border:0!important;border-radius:10px!important;font-weight:700!important}
html:root .usebtn:not(.mp-yes),html:root .d-use{background:color-mix(in srgb,var(--ok) 16%,transparent)!important;color:var(--ok)!important;border:0!important;border-radius:10px!important;font-weight:700!important}
html:root .mp-no,html:root .unhide,html:root .btn.danger,html:root .hidb{background:color-mix(in srgb,var(--bad) 14%,transparent)!important;color:var(--bad)!important;border:0!important;border-radius:10px!important;font-weight:700!important}
/* filters and tabs = outlined pills; the chosen one is filled */
html:root .chip,html:root .tab,html:root .tchip,html:root .rchip,html:root .tog,html:root .chips>button,html:root .seg button,html:root .cu-seg .cu-b,html:root .switch button{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;box-shadow:none!important;border-radius:999px!important;font-weight:600!important}
html:root .chip[aria-pressed=true],html:root .chip[aria-expanded=true],html:root .tab[aria-pressed=true],html:root .tchip[aria-pressed=true],html:root .rchip[aria-pressed=true],html:root .tog[aria-pressed=true],html:root .chips>button[aria-pressed=true],html:root .seg button[aria-pressed=true],html:root .switch button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root .switch,html:root .seg{background:transparent!important;border:0!important;gap:6px!important}
/* text-only actions */
html:root .read-more,html:root .ig-text-link,html:root .reset-view,html:root .cancel,html:root .x{background:none!important;border:0!important;box-shadow:none!important;color:var(--muted)!important;font-weight:600!important;text-decoration:none!important}
html:root .ig-pick-open{background:none!important;border:0!important;box-shadow:none!important;color:var(--ink)!important;font-weight:700!important;text-decoration:none!important}
html:root .read-more:hover,html:root .ig-text-link:hover,html:root .reset-view:hover,html:root .cancel:hover,html:root .ig-pick-open:hover{color:var(--ink)!important;text-decoration:underline!important}
/* round icon buttons */
html:root .iconbtn,html:root #appMenuButton{background:var(--s2)!important;color:var(--ink)!important;border:0!important;border-radius:50%!important}
/* containers: flat, one hairline, no shadows */
html:root details.panel,html:root .rangebox,html:root .done,html:root .recap,html:root .topics,html:root .notice,html:root .empty,html:root .saved{background:var(--s1)!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important}
html:root details.panel>summary{font-weight:700}

/* ===== rail: no platform icons (the mark in the page row switches workspace) ===== */
@media(min-width:861px){html body #appDrawer:not(.rail-open) .cu-ws,html body #appDrawer.rail-open .cu-ws{display:none!important}}
/* ===== the mark is a real button with a small menu ===== */
html body .bar .workspace-controls:has(.plat-btn)::before{display:none!important}
html body .bar .workspace-controls{position:relative}
.plat-btn{position:relative;flex:none;width:var(--plat-w,44px);height:40px;border:0;border-radius:12px;background:transparent;cursor:pointer;display:grid;place-items:center;padding:0;color:var(--ink)}
.plat-btn::before{content:"";width:var(--plat-w,30px);height:30px;background:currentColor;-webkit-mask-image:var(--plat-mask);mask-image:var(--plat-mask);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}
.plat-btn::after{content:"";position:absolute;left:30px;top:26px;width:0;height:0;border:4px solid transparent;border-top-color:var(--muted)}
.plat-btn:hover{background:var(--s2)}
.plat-menu{position:absolute;left:0;top:46px;z-index:50;min-width:190px;background:var(--s1);border:1px solid var(--line);border-radius:14px;padding:6px;box-shadow:0 12px 36px #0006;display:grid;gap:2px}
.plat-menu[hidden]{display:none}
.plat-menu button{display:flex;align-items:center;gap:12px;font:inherit;font-weight:600;font-size:14px;border:0;background:transparent;color:var(--ink);padding:10px 12px;border-radius:10px;cursor:pointer;text-align:left}
.plat-menu button:hover{background:var(--s2)}
.plat-menu button.on{background:var(--s2);font-weight:800}
.plat-menu i{width:22px;height:22px;background:currentColor;flex:none;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain}
.plat-menu i[data-i=youtube],.plat-seg i[data-i=youtube]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E")}
.plat-menu i[data-i=instagram],.plat-seg i[data-i=instagram]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E")}
.plat-menu i[data-i=both]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%222.5%22 y=%225%22 width=%2219%22 height=%2214%22 rx=%224.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M10 9.2v5.6l5-2.8z%22 fill=%22%23000%22/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%225.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224.2%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3C/svg%3E");-webkit-mask-size:14px 14px;mask-size:14px 14px;-webkit-mask-position:left center,right center;mask-position:left center,right center}

/* ===== v15: hover-expand rail, one icon column, inline logo, real gear ===== */
@media(min-width:861px){
 html body #appDrawer#appDrawer{width:72px!important;padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column;transition:width .22s cubic-bezier(.4,0,.2,1),box-shadow .22s!important}
 html body #appDrawer#appDrawer.rail-open{width:244px!important;box-shadow:12px 0 32px #0003!important}
 html body #appDrawer#appDrawer #railToggle,html body #appDrawer#appDrawer #appDrawerClose,html body #appDrawer#appDrawer .app-drawer-label,html body #appDrawer#appDrawer .cu-ws,#railScrim{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-top{padding:14px 0 10px!important;display:block!important}
 html body #appDrawer#appDrawer .app-drawer-brand{display:flex!important;align-items:center;gap:14px;margin:0 12px;padding-left:11px;height:48px;white-space:nowrap}
 html body #appDrawer#appDrawer .app-brand-icon{width:24px!important;height:24px!important;flex:none;color:var(--ink)!important;background:none!important}
 html body #appDrawer#appDrawer .app-brand-icon svg{width:24px!important;height:24px!important;--bg:var(--bg)}
 html body #appDrawer#appDrawer .app-drawer-brand>span:last-child{display:block!important}
 html body #appDrawer#appDrawer .app-drawer-brand strong{font-size:18px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
 html body #appDrawer#appDrawer .app-drawer-brand small{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-scroll{flex:1;overflow:hidden!important;padding:0!important;display:block}
 html body #appDrawer#appDrawer .app-drawer-nav{gap:0;display:flex;flex-direction:column}
 html body #appDrawer#appDrawer .app-drawer-divider{margin:4px 24px!important}
 html body #appDrawer#appDrawer .app-drawer-nav button,html body #appDrawer#appDrawer .app-drawer-bottom button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:16px!important;width:calc(100% - 24px)!important;margin:0 12px!important;padding:0 0 0 11px!important;height:clamp(34px,5vh,46px)!important;min-height:0!important;font-size:15px!important;font-weight:500;white-space:nowrap;border-radius:10px!important;overflow:hidden}
 html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true]{font-weight:700}
 html body #appDrawer#appDrawer .app-drawer-nav button .di,html body #appDrawer#appDrawer .app-drawer-bottom button .di{width:26px!important;height:26px!important;flex:none;display:grid;place-items:center;margin:0!important}
 html body #appDrawer#appDrawer .app-drawer-nav button .di svg,html body #appDrawer#appDrawer .app-drawer-bottom button .di svg{width:24px!important;height:24px!important;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
 html body #appDrawer#appDrawer .app-drawer-nav button::before{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-nav button:hover,html body #appDrawer#appDrawer .app-drawer-bottom button:hover{background:var(--s2)!important}
 html body #appDrawer#appDrawer .app-drawer-bottom{margin-top:auto;padding:0 0 12px!important}
}
html body #appDrawer#appDrawer [data-app-tool=accounts],html body #appDrawer#appDrawer [data-app-tool=radar],html body #appDrawer#appDrawer [data-app-tool=install]{display:none!important}

/* v15: top-bar controls and profile popup share the flat neutral look */
html:root body #cuProfile,html:root body #cuWatch{background:transparent!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:none!important}
html:root body #cuProfile:hover,html:root body #cuWatch:hover{background:var(--s2)!important}
html:root body #cuWatch[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root body #cuSheet .cu-main{background:var(--s2)!important;color:var(--ink)!important;border-color:transparent!important}
html:root body #cuSheet .cu-main[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important}
.cu-chans{display:grid;gap:2px}
.cu-chh{font-size:12px;font-weight:700;color:var(--muted);margin:2px 4px 4px}
html:root body #cuSheet button.cu-chrow{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
html:root body #cuSheet button.cu-chrow:hover{background:var(--s2)}
.cu-chav{width:36px;height:36px;border-radius:50%;background:var(--s3);display:grid;place-items:center;font-weight:700;flex:none}
.cu-chnm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.cu-chst{font-size:13px;font-weight:700;color:var(--act,#0095f6)}
html:root body #cuSheet button.cu-chrow[aria-pressed=true] .cu-chst{color:var(--muted);font-weight:600}
html:root body #cuSheet button.cu-chrow[aria-pressed=true] .cu-chav{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--ink)}
@media(min-width:861px){html body #appDrawer#appDrawer .app-drawer-brand{width:calc(100% - 24px);overflow:hidden;box-sizing:border-box}}
html:root body #cuSheet .cu-panel{border-color:var(--line)!important;background:var(--bg)!important}
html:root body #cuSheet .cu-grip{background:var(--s3)!important}
@media(min-width:861px){#cuSheet .cu-grip{display:none}}
html:root body #cuSheet .cu-list button.cu-b,html:root body #cuSheet .cu-seg button.cu-b{border:1px solid var(--line)!important;background:transparent!important;box-shadow:none!important;color:var(--ink)!important}
html:root body #cuSheet .cu-seg button.cu-b[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root body #cuSheet .cu-list button.cu-b:hover,html:root body #cuSheet .cu-seg button.cu-b:hover{background:var(--s2)!important}
html body #appDrawer#appDrawer .app-drawer-nav button[data-app-tool=accounts],html body #appDrawer#appDrawer .app-drawer-nav button[data-app-tool=radar],html body #appDrawer#appDrawer .app-drawer-nav button[data-app-tool=install]{display:none!important}

/* Idea radar: a true full page (covers the whole work area, no side panel, no frame showing through) */
html:has(#shellRadarDialog[open]) #glance{display:none!important}
html:has(#shellRadarDialog[open]) #workspaceFrames{margin-right:0!important}
html body #workspaceFrames>#shellRadarDialog,html:root body #workspaceFrames>#shellRadarDialog[open]{border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;background:var(--bg)!important}
@media(min-width:861px){
 html body #workspaceFrames>#shellRadarDialog[open]{position:fixed!important;top:var(--bar-h,64px);left:72px;right:0;bottom:0;width:auto!important;height:auto!important;z-index:20}
}
/* Scan health: true full page like Idea radar (hides #glance, strips dialog border/shadow, aligns to 1100px column) */
html:has(#shellHealthDialog[open]) #glance{display:none!important}
html:has(#shellHealthDialog[open]) #workspaceFrames{margin-right:0!important}
html body #workspaceFrames>#shellHealthDialog,html:root body #workspaceFrames>#shellHealthDialog[open]{border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;background:var(--bg)!important}
@media(min-width:861px){
 html body #workspaceFrames>#shellHealthDialog[open]{padding-inline:max(clamp(16px,3vw,34px),calc((100vw - 72px - 1100px) / 2))!important}
}
html body #shellRadarDialog[data-page] .radar-head{display:flex!important;justify-content:flex-start!important;align-items:center;gap:14px;text-align:left}
html body #shellRadarDialog[data-page] .radar-head>*{text-align:left}
html body #shellRadarDialog[data-page] .radar-head small{display:block}

/* ===== responsive cards: layout follows the card's own width, so nothing breaks when the window is resized ===== */
html body #igFeed>.post{container-type:inline-size;container-name:igpost}
html body .post-top{flex-wrap:wrap;row-gap:8px}
html body .post-top>div:nth-child(2){flex:1 1 90px;min-width:0;overflow:hidden}
html body .post-top a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal!important;word-break:normal!important}
html body .post-type{flex:none}
html body .post-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important}
html body .post-metrics b{white-space:nowrap;overflow-wrap:normal!important;word-break:normal!important}
html body .post-metrics span{overflow-wrap:normal;hyphens:none}
@container igpost (max-width:560px){
 .ig-post-lead.has-cover{grid-template-columns:minmax(0,1fr) 110px!important;gap:12px!important}
 .ig-post-cover{width:110px!important}
}
@container igpost (max-width:400px){
 .ig-post-lead.has-cover{grid-template-columns:minmax(0,1fr)!important}
 .ig-post-cover{width:100%!important;max-height:260px;order:-1}
 .ig-post-cover img{width:100%;height:100%;object-fit:cover}
 .post .actions>*{flex:1 1 45%}
}

/* ===== v19: tidy-up ===== */
/* 1. one dropdown style everywhere: arrow always the same distance from the edge */
html:root select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b0b6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:16px!important;padding-right:40px!important;text-overflow:ellipsis}
html:root[data-theme=light] select:not([multiple]):not([size]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
/* 2. text that was only noise */
html body #phP,html body #railSub,html body .section-title>span,html body #legend,html body #bstNote,html body .data-note,html body #sub,html body #igNotice,html body .ph p{display:none!important}
/* 3. menu items that did nothing */
html body #appDrawer [data-app-page=groups],html body #appDrawer [data-app-page=shared],html body .bnav [data-nav=groups],html body .bnav [data-nav=shared]{display:none!important}
/* 4. empty search state: faint line, no box */
html body .empty{background:none!important;border:0!important;box-shadow:none!important;padding:48px 16px!important;text-align:center;color:var(--muted)!important;font-size:14px}
/* 5. overview numbers: one flat strip separated by lines, no box in a box */
html body #rbar,html body .rbar,html body .rbox-wrap{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body .rbox{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:6px 20px!important;border-left:1px solid var(--line)!important}
html body .rbox:first-child{border-left:0!important;padding-left:0!important}
/* 6. select bar: no box; a round check on the left, "More filters" on the right of the same row */
html body .bulk-bar{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important}
html body .bulk-bar #ytBulkToggle,html body .bulk-bar #igBulkToggle{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 8px 0 0!important;border:0!important;background:transparent!important;color:var(--ink)!important;font-weight:600}
html body .bulk-bar #ytBulkToggle[hidden],html body .bulk-bar #igBulkToggle[hidden]{display:none!important}
html body .bulk-bar #ytBulkToggle::before,html body .bulk-bar #igBulkToggle::before,.fx-check::before{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--muted);box-sizing:border-box;flex:none}
.fx-check{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 8px 0 0;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.fx-check[aria-checked=true]::before{background:var(--act,#0095f6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;border-color:var(--act,#0095f6)}
.fx-check[aria-checked=mixed]::before{background:var(--act,#0095f6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center/16px no-repeat;border-color:var(--act,#0095f6)}
html body #ytSelectShown,html body #ytSelectAll,html body #ytClearSelected,html body #igSelectShown,html body #igSelectAll,html body #igClearSelected{display:none!important}
html body .bulk-actions{padding:6px 0 10px;border-bottom:1px solid var(--line);margin-bottom:10px}
html body .fx-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 10px}
html body .fx-row>.advanced{margin-left:auto}
html body .fx-row>.advanced[open]{flex:1 1 100%;order:3}
html body .fx-row>.advanced>summary{margin-left:auto;width:max-content}
html body .fx-row>.bulk-bar[hidden]{display:none!important}
.cu-sync{margin:8px 4px 0;font-size:12px;color:var(--muted)}

/* settings dialog: flat, readable in light and dark */
html:root body #shellAppearanceDialog{background:var(--bg)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 12px 40px #0003!important}
html:root body #shellAppearanceDialog small{color:var(--muted)!important;letter-spacing:.08em}
html:root body #appearanceClose{border:0!important;background:var(--s2)!important;color:var(--ink)!important;box-shadow:none!important;outline:none}
html:root body #appearanceClose:focus-visible{outline:2px solid var(--ink)!important;outline-offset:2px}
html:root body .settings-account{background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:18px 0!important;margin:0!important}
html:root body .settings-badge{background:none!important;border:0!important;color:var(--muted)!important;padding:0!important}
html:root body .settings-account-name{color:var(--ink)!important}
html:root body .settings-hint{color:var(--muted)!important}
html:root body .settings-actions a,html:root body .settings-actions button{border:1px solid var(--line)!important;background:transparent!important;color:var(--ink)!important;border-radius:10px!important;box-shadow:none!important;text-decoration:none}
html:root body .settings-actions a.settings-primary{background:var(--act,#0095f6)!important;border-color:transparent!important;color:#fff!important}
html:root body .appearance-modes button{border:1px solid var(--line)!important;background:transparent!important;color:var(--ink)!important;border-radius:10px!important;box-shadow:none!important}
html:root body .appearance-modes button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root body #shellAppearanceDialog button:not(#appearanceClose):not([data-accent-hue]):not([data-appearance-theme]){background:var(--s2)!important;color:var(--ink)!important;border:0!important;box-shadow:none!important}
html:root body #shellAppearanceDialog h3,html:root body #shellAppearanceDialog h4{color:var(--ink)!important}
/* menu items that did nothing (stronger than the rail rule) */
html body #appDrawer#appDrawer .app-drawer-nav button[data-app-page=groups],html body #appDrawer#appDrawer .app-drawer-nav button[data-app-page=shared]{display:none!important}
/* the page inside the workspace frame must not reserve its own left menu space (that was the empty strip on the left) */
@media(min-width:861px){html[data-plat] body{padding-left:0!important}html[data-plat] .bar>.in,html[data-plat] main.wrap{max-width:none!important;padding-inline:clamp(16px,2vw,28px)!important}}
/* no box inside a box: lists of plain facts are separated by lines */
html:root body .recap,html:root body #recap{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;gap:0!important;margin-top:8px}
html:root body .recap>.rbox{border-top:0}
html:root #glance .gl-card{background:none!important;border:0!important;border-radius:0!important;padding:16px 4px!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important}
html:root #glance .gl-card:last-child{border-bottom:0!important}
html:root #glance .gl-stats{gap:0}
html:root #glance .gl-stats div{background:none!important;border-radius:0;border-left:1px solid var(--line);padding:4px 6px}
html:root #glance .gl-stats div:first-child{border-left:0}
html body .advanced{border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
html body .advanced>summary{border:0!important;background:var(--s2)!important;border-radius:10px!important;min-height:40px;padding:0 14px!important}

/* v20 — flat topics grid, truly boxless empty state, no standalone Send dialog */
html:root body .empty,html:root body .notice.empty{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:40px 16px!important;text-align:center;color:var(--muted)!important;font-size:14px;opacity:.75}
html:root body .topics{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
html:root body .topics .tchips{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:0 24px}
html:root body .topics .tchip{display:grid;gap:2px;width:100%;max-width:none;text-align:left;background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;color:var(--ink)!important}
html:root body .topics .tchip b{font-size:15px;font-weight:600;overflow-wrap:anywhere}
html:root body .topics .tchip small{font-size:12px;font-weight:400;color:var(--muted)}
html:root body .topics .tchip .rise{color:var(--muted)}
html:root body .topics .tchip[aria-pressed=true]{background:none!important;color:var(--ink)!important;box-shadow:inset 3px 0 0 var(--ink)!important;padding-left:10px!important}
html:root body .topics .tchip[aria-pressed=true] small{color:var(--muted)}
html:root #shellContacts,html:root #shareContactsDialog:not([open]){display:none!important}
html:root body #appDrawer#appDrawer button[data-app-tool=send]{display:none!important}

/* ===== v21 ===== */
/* one blue, everywhere */
html:root{--yellow:var(--act)}
html:root *:focus-visible{outline:2px solid var(--act)!important;outline-offset:2px!important;box-shadow:none!important}
html:root *:focus:not(:focus-visible){outline:none!important}
html:root ::selection{background:#0095f633}
html:root body .bar .prog .pbtn{background:var(--s2)!important;color:var(--ink)!important;border:0!important}
html:root .chips [aria-pressed=true],html:root .chips>button[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
/* selected pills: readable counts */
html:root .tab[aria-pressed=true] b,html:root .chip[aria-pressed=true] b,html:root .tog[aria-pressed=true] b,html:root .seg button[aria-pressed=true] b,html:root .tchip[aria-pressed=true] small{color:color-mix(in srgb,var(--bg) 62%,transparent)!important;opacity:1!important}
html:root body #cuSheet .cu-seg button.cu-b{justify-content:center;text-align:center}
/* empty state sits centred under its section */
html:root body .empty{grid-column:1/-1;justify-self:stretch;width:100%;box-sizing:border-box;text-align:center!important}
/* workspace slider: YouTube · Instagram · Idea radar */
.plat-seg{--w:44px;position:relative;flex:none;display:inline-flex;height:40px;padding:3px;border-radius:999px;background:var(--s2);isolation:isolate}
.plat-seg::before{content:"";position:absolute;z-index:-1;top:3px;left:3px;width:var(--w);height:34px;border-radius:999px;background:var(--ink);transform:translateX(calc(var(--pos,0)*var(--w)));transition:transform .2s cubic-bezier(.4,0,.2,1)}
.plat-seg button{width:var(--w);height:34px;display:grid;place-items:center;border:0;background:transparent;padding:0;cursor:pointer;color:var(--ink);border-radius:999px;transition:color .2s}
.plat-seg button[aria-pressed=true]{color:var(--bg)}
.plat-seg i{width:22px;height:22px;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center}
.plat-seg i[data-i=radar]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M12 12 18 6%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M12 12 18 6%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}
html body .bar .workspace-controls:has(.plat-seg)::before{display:none!important}
html:root #shellRadarDialog[data-page] .radar-head::before{display:none!important}
html:root #shellRadarDialog[data-page] .radar-head{gap:16px}
/* Back-to-top: a plain round icon button */
html:root body .totop{width:44px;height:44px;padding:0;font-size:0!important;border-radius:50%;background:var(--s2);color:var(--ink);border:1px solid var(--line);box-shadow:none;display:none;place-items:center}
html:root body .totop.on{display:grid}
html:root body .totop::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 19V5M5 12l7-7 7 7%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 19V5M5 12l7-7 7 7%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center/contain no-repeat}
/* one menu only: the top-left menu. No bottom bar. */
html body .bnav,html[data-plat] .bnav{display:none!important}
html:root body .totop{bottom:calc(20px + env(safe-area-inset-bottom,0px))!important}
/* profile popup drops down from the profile icon, never a bottom sheet */
html:root body #cuSheet{align-items:flex-start!important;justify-content:flex-end!important;background:transparent!important}
html:root body #cuSheet .cu-panel{width:min(360px,calc(100vw - 24px))!important;max-height:calc(100dvh - 84px)!important;margin:calc(64px + env(safe-area-inset-top,0px)) 12px 0!important;border-radius:16px!important;border:1px solid var(--line)!important;box-shadow:0 12px 40px #0005!important;padding:12px!important;transform-origin:top right}
html:root body #cuSheet .cu-grip{display:none!important}
html:root body #cuSheet:not([hidden]) .cu-panel{animation:cu-drop .16s ease-out both!important}
@keyframes cu-drop{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
/* desktop rail: use the room the missing items gave us, like Instagram */
@media(min-width:861px){
 html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-nav button,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-bottom button,html body #appDrawer#appDrawer.rail-open .app-drawer-nav button,html body #appDrawer#appDrawer.rail-open .app-drawer-bottom button{height:clamp(40px,calc((100vh - 200px)/11),56px)!important;min-height:0!important}
 html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-nav button .di,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-bottom button .di,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-nav button .di svg,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-bottom button .di svg{width:26px!important;height:26px!important}
}
/* mobile: left-side menu panel, not a bottom popup */
@media(max-width:860px){
 html body #appDrawer#appDrawer{inset:0 auto 0 0!important;width:min(300px,84vw)!important;height:100%!important;max-height:none!important;border-radius:0!important;border:0!important;border-right:1px solid var(--line)!important;padding:calc(12px + env(safe-area-inset-top,0px)) 12px 12px!important;transform:translateX(-105%)!important;transition:transform .24s cubic-bezier(.4,0,.2,1),visibility 0s .24s!important;box-shadow:none!important;display:flex!important;flex-direction:column;overflow-y:auto!important}
 html body #appDrawer#appDrawer[aria-hidden=false]{transform:none!important;transition:transform .24s cubic-bezier(.4,0,.2,1),visibility 0s!important;box-shadow:12px 0 40px #0006!important}
 html body #appDrawer#appDrawer::before{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-nav,html body #appDrawer#appDrawer .app-drawer-bottom{display:flex!important;flex-direction:column;gap:0}
 html body #appDrawer#appDrawer .app-drawer-bottom{margin-top:auto}
 html body #appDrawer#appDrawer .cu-ws{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-nav button,html body #appDrawer#appDrawer .app-drawer-bottom button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:16px;width:100%;height:48px;min-height:0;margin:0;padding:0 12px;border-radius:12px;border:0;background:transparent;font-size:16px}
 html body #appDrawer#appDrawer #appDrawerClose{display:grid!important;position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:10px;width:40px;height:40px;background:transparent!important}
 html body #appDrawer#appDrawer .app-drawer-label{display:none!important}
 html body #appDrawer#appDrawer .app-drawer-top{padding:0 0 12px!important}
 /* top bar: every control the same size and the same rhythm */
 html:root body #appMenuButton{background:transparent!important;width:44px!important;height:44px!important;margin:0;padding:0;border-radius:12px!important;display:grid;place-items:center}
 html:root body #appMenuButton svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;display:block}
 html:root body #cuWatch,html:root body #cuProfile{width:44px;height:44px;flex:none}
}
html:root body #prog .pbtn,html:root body #prog .pbtn[class]{background:var(--s2)!important;color:var(--ink)!important;border:0!important;box-shadow:none!important}
html:root body #prog .pbtn *{color:inherit!important}
#appTabs,html body #appTabs{display:none!important}
@media(max-width:860px){
 html body #appDrawer#appDrawer .app-drawer-nav button,html body #appDrawer#appDrawer .app-drawer-bottom button{height:48px!important;min-height:48px!important}
 html body #appDrawer#appDrawer .app-drawer-brand small{display:none!important}
}
@media(max-width:860px){html body #appDrawer#appDrawer .app-brand-icon,html body #appDrawer#appDrawer .app-brand-icon svg{color:var(--ink)!important}}
html:root body .empty{margin-inline:auto}

/* ===== v22 Celeb Wire in Fresh ===== */
html:root body .wire{margin:8px 0 28px;display:block}
html:root body .wire[hidden]{display:none}
html:root body .wire-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
html:root body .wire-head h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.02em}
html:root body .wire-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:0 28px}
html:root body .wire-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;min-width:0}
html:root body .wire-row:hover .wire-t b{text-decoration:underline}
html:root body .wire-row img{flex:none;width:72px;height:72px;border-radius:10px;object-fit:cover;background:var(--s2)}
html:root body .wire-t{display:grid;gap:3px;min-width:0}
html:root body .wire-t small{font-size:12px;color:var(--muted)}
html:root body .wire-t b{font-size:15px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html:root body .wire-more{margin-top:10px;background:none;border:0;color:var(--act);font:inherit;font-weight:600;cursor:pointer;padding:8px 0}

/* v23 rail rhythm like Instagram: rows are shorter than their pitch, so the current one reads as its own tile */
@media(min-width:861px){
 html body #appDrawer#appDrawer .app-drawer-nav button,html body #appDrawer#appDrawer .app-drawer-bottom button,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-nav button,html body #appDrawer#appDrawer:not(.rail-open) .app-drawer-bottom button,html body #appDrawer#appDrawer.rail-open .app-drawer-nav button,html body #appDrawer#appDrawer.rail-open .app-drawer-bottom button{height:clamp(34px,calc((100vh - 220px)/11 - 8px),48px)!important;margin:4px 12px!important;font-weight:400}
 html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true]{font-weight:700!important;background:transparent!important}
 html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true]:hover{background:var(--s2)!important}
 html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true] .di svg{stroke-width:2.7!important}
 html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true][data-app-page=popular] .di svg,html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true][data-app-page=best] .di svg,html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true][data-app-page=avengers] .di svg{fill:currentColor!important}
 html body #appDrawer#appDrawer .app-drawer-nav button:not([aria-current=true]):hover{background:var(--s2)!important}
}

/* v24 no highlight on the active menu item, any button (Watchlist included); hover only */
html body #appDrawer#appDrawer button[aria-current=true],html body #appDrawer#appDrawer button[aria-pressed=true]{background:transparent!important;box-shadow:none!important;font-weight:700}
html body #appDrawer#appDrawer button[aria-current=true]:hover,html body #appDrawer#appDrawer button[aria-pressed=true]:hover{background:var(--s2)!important}
html body #appDrawer#appDrawer button[aria-current=true] .di svg{stroke-width:2.7}

/* v26 clickable panel stats */
html:root #glance .gl-stats button{all:unset;box-sizing:border-box;display:block;text-align:center;padding:4px 6px;border-left:1px solid var(--line);cursor:pointer;border-radius:8px}
html:root #glance .gl-stats button:first-child{border-left:0}
html:root #glance .gl-stats button b{display:block;font-size:20px;font-weight:800;line-height:1.1;color:var(--ink)}
html:root #glance .gl-stats button span{display:block;margin-top:2px;font-size:11px;color:var(--muted);font-weight:600}
html:root #glance .gl-stats button:hover{background:rgba(127,127,127,.12)}
html:root #glance .gl-stats button:hover b{color:var(--act)}
html:root #glance .gl-sub{margin:12px 0 2px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
html:root #glance .gl-sub:first-of-type{margin-top:4px}
.plat-seg i.logo{-webkit-mask:none;mask:none;background-color:#fff;background-size:contain;background-repeat:no-repeat;background-position:center;background-origin:content-box;padding:3px;border-radius:50%;width:24px;height:24px}
.plat-seg i[data-i=reddit]{-webkit-mask-image:url("icons/reddit.svg");mask-image:url("icons/reddit.svg")}
.plat-seg::before{transition:none!important}.plat-seg button{transition:none!important}
/* v33 platform switcher: flat row, no capsule. Active = full ink + a thin line under it. */
html:root .plat-seg{background:none!important;padding:0!important;height:40px;border-radius:0;gap:0;isolation:auto}
html:root .plat-seg::before{display:none!important}
html:root .plat-seg button{width:44px;height:40px;border-radius:0;position:relative;color:var(--muted)!important;background:none!important}
html:root .plat-seg button:hover{color:var(--ink)!important}
html:root .plat-seg button[aria-pressed=true]{color:var(--ink)!important}
html:root .plat-seg button[aria-pressed=true]::after{content:"";position:absolute;left:10px;right:10px;bottom:1px;height:2px;border-radius:2px;background:var(--ink)}
html:root .plat-seg i{width:24px;height:24px;flex:none}

/* v34 mono: pure black or pure white, hairline lines, white pill buttons, ONE blue (only where needed). */
html:root,html:root[data-theme=light]{--bg:#fff;--panel:#fff;--s1:#fff;--s2:#f5f5f5;--s3:#ebebeb;--line:#e8e8e8;--line2:#d4d4d4;--ink:#000;--ink2:#1a1a1a;--muted:#6b6b6b;--on:#fff;--surface:#fff;--surface-2:#f5f5f5;--border:#e8e8e8;--text:#000}
html:root[data-theme=dark]{color-scheme:dark;--bg:#000;--panel:#000;--s1:#0a0a0a;--s2:#111;--s3:#1c1c1c;--line:#1f1f1f;--line2:#2e2e2e;--ink:#fafafa;--ink2:#e6e6e6;--muted:#8b8b8b;--on:#000;--surface:#0a0a0a;--surface-2:#111;--border:#1f1f1f;--text:#fafafa}
html:root[data-theme=dark],html:root[data-theme=dark] body{background:#000!important}
html:root[data-theme=light],html:root[data-theme=light] body{background:#fff!important}
/* decorative colours become neutral; blue is the one accent; red stays for errors only */
html:root{--yellow:var(--ink);--orange:var(--ink);--pink:var(--ink);--violet:var(--ink);--green:var(--ink);--good:var(--ink);--ok:var(--ink);--cyan:var(--act);--blue:var(--act);--accent:var(--act)}
/* main buttons: solid ink pill (white on black, black on white), like the X console */
html:root .primary-btn,html:root .btn.primary,html:root .primary,html:root .bulk-primary,html:root .goto,html:root .mp-yes,html:root .btn.mp-yes,html:root .wl-btn.primary,html:root .btn.dl,html:root .ig-track-form button{background:var(--ink)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;font-weight:700}
html:root .primary-btn:hover,html:root .btn.primary:hover,html:root .primary:hover,html:root .bulk-primary:hover,html:root .goto:hover,html:root .mp-yes:hover,html:root .btn.mp-yes:hover,html:root .wl-btn.primary:hover,html:root .btn.dl:hover,html:root .ig-track-form button:hover{background:var(--ink2)!important;color:var(--bg)!important}
html:root .btn,html:root .pbtn,html:root .chip{border:1px solid var(--line2)!important;background:transparent!important;border-radius:999px}
html:root .copy,html:root .cp,html:root .wl-copy,html:root .wl-send{background:var(--s2)!important;color:var(--ink)!important}
html:root .btn:not(.primary):not(.mp-yes):not(.dl):hover,html:root .pbtn:hover{background:var(--s2)!important}
/* panels: black page, near-black panel, hairline border, soft corners, no glow */
html:root .post,html:root .pick,html:root .tile,html:root .card,html:root .ig-tile,html:root .ig-pick,html:root .ig-week,html:root .hl-card,html:root .wl-card,html:root .radar-row,html:root dialog{background:var(--s1)!important;border:1px solid var(--line)!important;border-radius:12px;box-shadow:none!important}
html:root *{text-shadow:none!important}
/* v35 mono: neutralise every leftover purple / green / orange / periwinkle */
html:root,html:root[data-theme=light],html:root[data-theme=dark]{
 --yellow:var(--ink);--orange:var(--ink);--pink:var(--ink);--violet:var(--ink);--green:var(--ink);--good:var(--ink);--ok:var(--ink);--cyan:var(--act);--blue:var(--act);--accent:var(--act);
 --violetbg:var(--s2);--accent-soft:var(--s2);--accent-deep:var(--ink);--brand-soft:var(--s2);--brand-line:var(--line2);--brand-glow:transparent;--glow:transparent;
 --brand-link:var(--act);--brand-action:var(--ink);--brand-on-action:var(--bg);--action:var(--ink);--signal:var(--act);--signal-ink:var(--bg)}
html:root .pbtn[aria-label^="Copied"],html:root .pbtn[aria-label^="Used"],html:root[data-theme=dark] .pbtn[aria-label^="Copied"],html:root[data-theme=dark] .pbtn[aria-label^="Used"]{color:var(--ink)!important;background:var(--s2)!important}
html:root .pbtn[aria-label^="Used"]{font-weight:800}
html:root #igHeadUsed,html:root #igHeadCopied{color:var(--ink)!important}
html:root .hl-sum.ok .hl-dot{background:var(--ink)!important;box-shadow:none!important}
html:root .hl-sum.warn .hl-dot{background:var(--act)!important;box-shadow:none!important}
html:root .hl-card.ok .hl-pill,html:root .hl-card.warn .hl-pill,html:root[data-theme=dark] .hl-card.ok .hl-pill,html:root[data-theme=dark] .hl-card.warn .hl-pill{background:var(--s2)!important;color:var(--ink)!important}
html:root .hl-bar i{background:var(--ink)!important}
html:root .hl-card.warn .hl-bar i{background:var(--act)!important}
html:root .cu-dot{background:var(--act)!important}
html:root .cu-warn{color:var(--ink)!important}
html:root .ig-insights-shortcut,html:root[data-theme=dark] .ig-insights-shortcut{background:var(--s2)!important;color:var(--ink)!important;border-color:var(--line2)!important}
html:root .settings-primary,html:root #shellApkDownload,html:root #healthRefresh,html:root #shareSync{background:var(--ink)!important;color:var(--bg)!important;border-radius:999px!important}
html:root body .bar .prog .pbtn[data-view=used],html:root body .bar .prog .pbtn[data-view=copied],html:root[data-theme=dark] body .bar .prog .pbtn[data-view=used],html:root[data-theme=dark] body .bar .prog .pbtn[data-view=copied],html:root[data-theme=light] body .bar .prog .pbtn[data-view=used],html:root[data-theme=light] body .bar .prog .pbtn[data-view=copied],html:root[data-theme=dark] body .bar .prog .pbtn[aria-label^="Used"],html:root[data-theme=dark] body .bar .prog .pbtn[aria-label^="Copied"],html:root[data-theme=dark] .wl-st.c,html:root[data-theme=dark] .wl-st.u,html:root .wl-st.c,html:root .wl-st.u{color:var(--ink)!important;background:var(--s2)!important}

/* Happening now: small thumbnail + caption, grouped by day */
.gl-now{display:flex!important;gap:10px;align-items:flex-start}
.gl-th{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none;background:var(--s2)}
.gl-nm{flex:1;min-width:0}
.gl-more{border:0;background:none;padding:6px 0 2px;font:inherit;font-size:12.5px;font-weight:700;color:var(--act);cursor:pointer}
.gl-card .gl-empty{margin:4px 0 6px;font-size:12.5px}

/* v36: neutral dim behind dialogs, no accent picker, rows that never stretch apart, labels that never push, text that uses the free space */
html:root dialog::backdrop,html:root body dialog::backdrop,html:root #appearanceDialog::backdrop,html:root .install-dialog::backdrop,html:root #shellRadarDialog::backdrop{background:rgba(0,0,0,.62)!important;backdrop-filter:blur(3px)}
html:root body .sheet{background:rgba(0,0,0,.62)!important}
html:root .appearance-accent{display:none!important}
/* equal-height cards: extra height goes to the bottom, never spread between the rows */
html:root .card,html:root #list>.card,html:root .post{align-content:start!important}
html:root .card>.body{align-content:start!important;position:relative;--bp:clamp(20px,2.4vw,30px);--tw:130px}
/* YouTube: Copied / Used / Hot labels sit on the thumbnail, so nothing moves when they appear */
html:root .card>.body.has-thumb>.tl{grid-column:1;grid-row:1;align-self:start;justify-self:start;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:calc(100% - 12px);margin:6px 0 0 6px;pointer-events:none}
html:root .card>.body.has-thumb>.tl .lab{background:rgba(0,0,0,.74)!important;color:#fff!important;border:0!important;box-shadow:none!important;font-size:10px;font-weight:700;line-height:1.2;padding:3px 7px;border-radius:6px;margin:0;white-space:nowrap}
/* picture and title share the first row; the channel line then spans the full width under both */
html:root .card>.body.has-thumb>.yt-thumb{grid-column:1;grid-row:1}
html:root .card>.body.has-thumb>.ttl{grid-column:2;grid-row:1;align-self:start}
html:root .card>.body.has-thumb>.who{grid-column:1/-1;grid-row:2}
@media(max-width:900px){html:root .card>.body{--tw:112px}}
@media(max-width:700px){html:root .card>.body{--bp:18px;--tw:96px}}
@media(max-width:390px){html:root .card>.body{--tw:82px}}
/* Instagram: the content type sits on the left, under the account name */
html:root body .post-type{margin:0 100% 0 0!important;align-self:flex-start;background:var(--s2)!important;color:var(--ink)!important}
html:root .avatar,html:root[data-theme=dark] .avatar{background:var(--s3)!important;background-image:none!important;color:var(--ink)!important}

/* v37 active tab reads at a glance: icon turns solid, grows a little, label bold */
html body #appDrawer#appDrawer .app-drawer-nav button .di,html body #appDrawer#appDrawer .app-drawer-bottom button .di{transition:scale .22s var(--m-out,cubic-bezier(.23,1,.32,1))}
html body #appDrawer#appDrawer .app-drawer-nav button[aria-current=true] .di,html body #appDrawer#appDrawer .app-drawer-bottom button[aria-current=true] .di{scale:1.16}
html body #appDrawer#appDrawer button[aria-current=true]{font-weight:800!important}
html body #appDrawer#appDrawer button[aria-current=true] .di svg{stroke-width:2.4!important;stroke-linejoin:round;stroke-linecap:round}
/* solid shapes (inner details cut out in the page colour) */
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=popular] .di svg path,
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=best] .di svg path,
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=avengers] .di svg path,
html body #appDrawer#appDrawer button[aria-current=true][data-app-platform=reddit] .di svg path{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=search] .di svg circle{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=search] .di svg path{stroke-width:3.4!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=done] .di svg circle{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=done] .di svg path{stroke:var(--bg)!important;stroke-width:2.8!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-platform=team] .di svg rect{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-platform=team] .di svg path{stroke:var(--bg)!important;stroke-width:2.2!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=insights] .di svg path,
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=aivision] .di svg path{stroke-width:4!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-page=fresh] .di svg path{stroke-width:3.4!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=watch] .di svg path{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=watch] .di svg circle{fill:var(--bg)!important;stroke:var(--bg)!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=audioLeads] .di svg circle{fill:currentColor!important}
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=plan] .di svg path,
html body #appDrawer#appDrawer button[aria-current=true][data-app-tool=health] .di svg path{stroke-width:3!important}

/* v38 Watchlist button is always the white pill; profile dot sits outside the icon's top-right edge */
html:root body #cuWatch,html:root body #cuWatch[aria-pressed=true],html:root body #cuWatch[aria-pressed=false]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important}
html:root body #cuWatch:hover{background:color-mix(in srgb,var(--ink) 88%,var(--bg))!important}
html:root body #cuWatch svg{stroke:var(--bg)!important}
html:root body #cuProfile{position:relative;overflow:visible}
html:root body #cuProfile .cu-dot{position:absolute!important;margin:0!important;top:-3px;right:-3px;width:12px;height:12px;border:2px solid var(--bg)!important;box-sizing:border-box}

/* v39 logo text in Sriracha (icon unchanged) */
@font-face{font-family:"Sriracha";src:url("fonts/sriracha.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
html body #appDrawer#appDrawer .app-drawer-brand strong{font-family:"Sriracha",cursive!important;font-weight:400!important;font-size:24px!important;letter-spacing:0!important;line-height:1}

/* v40 bigger logo: icon and text */
html body #appDrawer#appDrawer .app-brand-icon,html body #appDrawer#appDrawer .app-brand-icon svg{width:36px!important;height:36px!important}
html body #appDrawer#appDrawer:not(.rail-open) .app-brand-icon,html body #appDrawer#appDrawer:not(.rail-open) .app-brand-icon svg{width:36px!important;height:36px!important}
html body #appDrawer#appDrawer.rail-open .app-drawer-brand{gap:10px}
html body #appDrawer#appDrawer .app-drawer-brand strong{font-size:27px!important}
html body #appDrawer#appDrawer .app-drawer-top{padding-top:6px;padding-bottom:14px}
/* v41 logo icon centred on the exact 36px rail axis as .di icons below it */
@media(min-width:861px){html body #appDrawer#appDrawer .app-brand-icon{margin-left:-5px}}

/* v42 "Same story" badge on Instagram cards */
html body .ig-story-badge{display:inline-flex;align-items:center;margin-left:10px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer;vertical-align:middle}
html body .ig-story-badge:hover{background:var(--s2)}
/* "View in feed" / "Go to it": outline pill that always follows the card's own text colour (never dark-on-dark) */
html:root .pick .row .gotobest,html:root .card .gotobest,html:root .pl-row .gotobest,html:root .bet-row .gotobest{background:transparent!important;color:inherit!important;border:1px solid color-mix(in srgb,currentColor 35%,transparent)!important;border-radius:999px!important;font-weight:700}
html:root .pick .row .gotobest:hover,html:root .card .gotobest:hover,html:root .pl-row .gotobest:hover,html:root .bet-row .gotobest:hover{background:color-mix(in srgb,currentColor 10%,transparent)!important}
/* clip comparison with your channels */
html:root .cmp{display:grid;gap:8px;font-size:13px;line-height:1.45;color:var(--ink2)}
html:root .cmp .cm{border-top:1px solid var(--line);padding-top:8px}
html:root .cmp b{color:var(--ink)}
html:root .cmp .up{color:var(--ink);font-weight:700}html:root .cmp .dn{color:var(--muted,var(--ink2));font-weight:700}
/* "Continue where you left off": same white/black pill as the rest of the site, not blue */
html:root .resume button{background:var(--ink)!important;color:var(--bg)!important;border-radius:999px!important;padding:9px 16px!important}
html:root .resume button.x{background:transparent!important;color:var(--ink2)!important;border:1px solid var(--line)!important}
/* the side menu folds back quickly when the pointer leaves */
html body #appDrawer#appDrawer:not(.rail-open){transition:width .1s ease-out,box-shadow .1s!important}

.cu-nk{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-2px 10px 8px 62px;font-size:12px;color:var(--muted)}
.cu-nk span{min-width:0;overflow-wrap:anywhere}
html:root body #cuSheet .cu-nk button{font:inherit;font-size:12px;font-weight:700;color:var(--ink);background:none;border:1px solid var(--line);border-radius:999px;padding:4px 10px;cursor:pointer}
html:root body #cuSheet .cu-nin{font:inherit;font-size:13px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:6px 8px;min-width:0;flex:1 1 130px}

html:root body .mp .mp-yes{background:var(--ink)!important;color:var(--bg)!important;opacity:1!important;border:0!important;box-shadow:none!important}
html:root body .mp .mp-yes:hover{background:var(--ink2)!important}

/* profile popup: theme switch + saved-data footer (replaces the old Settings pop-up) */
html:root body #cuSheet .cu-seg.cu-theme{grid-template-columns:repeat(3,1fr)}
html:root body #cuSheet .cu-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
html:root body #cuSheet #cuKeep{background:none!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:999px;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
html:root body #cuSheet .cu-ver{margin:10px 0 0;font-size:11.5px;color:var(--muted)}
/* the bottom menu item is now Profile */
html body #appDrawer#appDrawer .app-drawer-bottom button .di svg{width:22px;height:22px}
html:root body .cu-acct-who small{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Insights tabs: a straight underline, no rounded corners; Watchlist lives in the menu, not the top bar */
html:root body #aiVis .v-tab{border-radius:0!important;background:none!important;box-shadow:none!important}
html:root body #aiVis .v-tab:focus-visible{outline:none!important;box-shadow:inset 0 0 0 1px var(--line)!important}
html:root body #cuWatch,html:root body .platform-bar #cuWatch{display:none!important}

/* profile sheet: current channel first, nickname bold, the rest in a dropdown, real buttons at the bottom */
.cu-chitem{display:block}
html:root body #cuSheet button.cu-chcur{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;outline:0}
html:root body #cuSheet button.cu-chcur:hover{background:var(--s2)}
.cu-chtx{flex:1;min-width:0;display:flex;flex-direction:column}
.cu-chtx .cu-chnm{font-weight:800;font-size:15px}
.cu-chhd{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cu-chst{color:var(--ink)!important;font-weight:700}
.cu-chmore{display:grid;gap:2px;margin:4px 0 6px;padding-left:6px;border-left:1px solid var(--line)}
html:root body #cuSheet .cu-nk{margin:-4px 10px 6px 58px}
html:root body #cuSheet .cu-nk button{border:0;padding:2px 0;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
html:root body #cuSheet .cu-nk .cu-nin~button{border:1px solid var(--line);padding:4px 10px;text-decoration:none;color:var(--ink)}
.cu-sync{margin:0 4px 10px!important}
html:root body #cuSheet .cu-acct{border-bottom:0;margin-bottom:0}
#cuSheet a.cu-b{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;box-sizing:border-box}
#cuSheet a.cu-b:hover{background:var(--s2)}
#cuSheet .cu-panel>.cu-acct-links{margin-top:14px}
#cuSheet .cu-panel:focus,#cuSheet .cu-panel:focus-visible{outline:0!important;box-shadow:none}

/* profile menu: opens next to the bottom-left profile item on desktop; plain text rows with lines, like Instagram and X */
@media(min-width:861px){
 html:root body #cuSheet{align-items:flex-end!important;justify-content:flex-start!important}
 html:root body #cuSheet .cu-panel{margin:0 0 12px 82px!important;width:min(340px,calc(100vw - 100px))!important;max-height:calc(100dvh - 24px)!important;transform-origin:bottom left}
}
html:root body #cuSheet #sppEdit.cu-b,html:root body #cuSheet .cu-list button.cu-b,html:root body #cuSheet a.cu-b{border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;justify-content:flex-start!important;font-weight:600!important;min-height:46px;padding:0 10px!important}
html:root body #cuSheet #sppEdit.cu-b:hover,html:root body #cuSheet .cu-list button.cu-b:hover,html:root body #cuSheet a.cu-b:hover{background:var(--s2)!important}
html:root body #cuSheet .cu-panel>.cu-acct-links{display:grid;gap:0;margin-top:10px;padding-top:6px;border-top:1px solid var(--line)}
html:root body #cuSheet .cu-panel>.cu-acct-links .cu-b{flex:none;text-align:left}
html:root body #cuSheet h3{margin-top:14px}
html:root body #cuSheet .cu-panel>.cu-acct-links{position:sticky;bottom:-14px;background:var(--bg);padding-bottom:4px;z-index:2}
html:root body #cuSheet #sppEdit.cu-b,html:root body #cuSheet .cu-list button.cu-b,html:root body #cuSheet a.cu-b{min-height:40px}

/* mobile: swipe-page tab bars look like Team Studio (text only, line underneath) */
@media(max-width:860px){
html:root #doneTabs.seg{display:flex!important;width:100%;gap:0!important;padding:0!important;border-radius:0!important;background:transparent!important;border-bottom:1px solid var(--line)!important}
html:root #doneTabs.seg button{flex:1 1 0;min-width:0;min-height:44px;padding:12px 4px!important;background:transparent!important;color:var(--muted)!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;font-size:14px;font-weight:600}
html:root #doneTabs.seg button[aria-pressed=true]{background:transparent!important;color:var(--ink)!important;border-bottom-color:var(--ink)!important;font-weight:700}
html:root #doneTabs.seg button b{color:inherit!important;opacity:.7!important;font-weight:600}
html:root body #aiVis .v-tabs{gap:0}
html:root body #aiVis .v-tab{flex:1 1 0;padding:13px 6px 11px;white-space:nowrap}
}

/* speed: cards far below the screen are not drawn until you scroll near them */
html:root #list>.card:nth-child(n+7),html:root #igFeed>.post:nth-child(n+7),html:root .feed>.post:nth-child(n+7){content-visibility:auto;contain-intrinsic-size:auto 600px}

/* ===== Insights: AI insights | Classic switcher, same text-underline look as the other tab bars ===== */
html:root body #aiVis .v-modes{flex:none!important;height:auto!important;display:flex;gap:0;padding:0;margin:0;background:var(--bg);border-bottom:1px solid var(--line);position:relative;z-index:4}
html:root body #aiVis .v-modes button{flex:1 1 0;min-width:0;min-height:46px;padding:12px 6px;background:transparent!important;color:var(--muted)!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;font:600 14.5px/1.2 inherit;font-family:inherit;margin:0}
html:root body #aiVis .v-modes button[aria-selected=true]{color:var(--ink)!important;border-bottom-color:var(--ink)!important;font-weight:700}
html:root body #aiVis .v-modes button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--line)!important}
html:root body #aiVis.v-classic .v-h{display:none}

/* ===== profile sheet: one tidy column ===== */
html:root body #cuSheet .cu-panel{display:flex;flex-direction:column;gap:0;padding:10px 16px calc(16px + env(safe-area-inset-bottom,0px))}
html:root body #cuSheet .cu-grip{flex:none;margin:0 auto 12px}
html:root body #cuSheet .cu-acct{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:10px;padding:2px 0 16px;margin:0 0 6px;border-bottom:1px solid var(--line)}
html:root body #cuSheet .cu-acct-who{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;row-gap:1px;align-items:center;min-width:0}
html:root body #cuSheet .cu-acct-who .spp-av{grid-row:1/3;width:56px;height:56px;--s:56px}
html:root body #cuSheet .cu-acct-who b{grid-column:2;font-size:18px;font-weight:800;line-height:1.2;align-self:end}
html:root body #cuSheet .cu-acct-who small{grid-column:2;font-size:13px;color:var(--muted);align-self:start}
html:root body #cuSheet .cu-acct-who:not(:has(.spp-av)) b{grid-column:1/-1}
html:root body #cuSheet .cu-acct-who:not(:has(.spp-av)) small{grid-column:1/-1}
html:root body #cuSheet #sppEdit{width:auto;min-height:36px;padding:0 14px;border-radius:999px;font-size:13px;font-weight:700;justify-self:end;background:transparent}
html:root body #cuSheet #cuAcct>*:not(.cu-acct-who):not(#sppEdit){grid-column:1/-1}
html:root body #cuSheet h3{margin:18px 2px 6px;font-size:11.5px;letter-spacing:.09em;color:var(--muted);font-weight:700}
html:root body #cuSheet h3:not(:first-of-type){border-top:1px solid var(--line);margin:14px 0 6px;padding:14px 2px 0}
html:root body #cuSheet .cu-list{gap:0}
html:root body #cuSheet .cu-list button.cu-b{border:0;border-radius:0;min-height:50px;padding:0 2px;font-weight:600;font-size:15.5px;background:transparent}
html:root body #cuSheet .cu-list button.cu-b:not([hidden])~button.cu-b:not([hidden]){border-top:1px solid var(--line)}
html:root body #cuSheet .cu-warn{padding:3px 9px;border-radius:999px;background:color-mix(in srgb,#f5a524 18%,transparent);color:#92400e;font-size:12px;font-weight:700}
:root[data-theme=dark] body #cuSheet .cu-warn{color:#ffd978}
html:root body #cuSheet .cu-seg.cu-theme{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:14px;background:color-mix(in srgb,var(--ink) 7%,transparent)}
html:root body #cuSheet .cu-seg.cu-theme button.cu-b{min-height:40px;padding:0;justify-content:center;border:0;border-radius:11px;background:transparent;font-weight:600;font-size:14.5px}
html:root body #cuSheet .cu-seg.cu-theme button.cu-b[aria-pressed=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.18);font-weight:700}
html:root body #cuSheet .cu-note{display:block;margin-top:4px;color:var(--muted);font-size:12.5px}
/* account links, then storage, version and sync status at the bottom */
html:root body #cuSheet .cu-acct-links{order:10;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
html:root body #cuSheet .cu-acct-links .cu-b{min-height:44px;justify-content:center;border:1px solid var(--line);border-radius:12px;font-weight:700;font-size:14.5px;background:transparent}
html:root body #cuSheet .cu-acct-links #cuAcctOut{color:var(--bad,#e5484d);border-color:color-mix(in srgb,var(--bad,#e5484d) 40%,var(--line))}
html:root body #cuSheet .cu-acct-links [hidden]{display:none}
html:root body #cuSheet .cu-foot{order:11;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
html:root body #cuSheet .cu-foot button{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:13px;font-weight:700}
html:root body #cuSheet .cu-ver{order:12;margin:8px 0 0;font-size:12px;color:var(--muted)}
html:root body #cuSheet .cu-sync{order:13;margin:4px 0 0;font-size:12px;color:var(--muted)}
html:root body #cuSheet .cu-sync[hidden]{display:none}
html:root body #cuSheet .cu-acct-links:not(:has(.cu-b:not([hidden]))){display:none}
/* v43: high-contrast primary actions, crisp button hover/pressed states, red Hide channel/account, Discover-only Popular/Fresh (including <=860px), YouTube .usebtn Mono pill, Instagram Discover controls */
html:root .post .actions > a:first-child,
html:root .post .actions > a.primary,
html:root .wl-post .actions > a:first-child,
html:root .wl-post .actions > a.primary{background:var(--ink)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;font-weight:700!important;text-decoration:none!important}
html:root .post .actions > a:first-child:hover,
html:root .post .actions > a.primary:hover,
html:root .wl-post .actions > a:first-child:hover,
html:root .wl-post .actions > a.primary:hover{background:var(--ink2)!important;color:var(--bg)!important;text-decoration:none!important}
html:root .post .actions button:not([data-hide]),
html:root .post .actions button.usebtn:not([data-hide]),
html:root .card .actions button.usebtn,
html:root .pick .row button.usebtn{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:999px!important;font-weight:600!important}
html:root .post .actions button:not([data-hide]):hover,
html:root .post .actions button.usebtn:not([data-hide]):hover,
html:root .card .actions button.usebtn:hover,
html:root .pick .row button.usebtn:hover{background:var(--s2)!important;color:var(--ink)!important}
html:root .post .actions button:not([data-hide])[aria-pressed=true],
html:root .post .actions button.usebtn:not([data-hide])[aria-pressed=true],
html:root .card .actions button.usebtn[aria-pressed=true],
html:root .pick .row button.usebtn[aria-pressed=true]{background:var(--ink)!important;color:var(--bg)!important;border-color:var(--ink)!important;font-weight:700!important}
html:root .post .actions button:not([data-hide])[aria-pressed=true]:hover,
html:root .post .actions button.usebtn:not([data-hide])[aria-pressed=true]:hover,
html:root .card .actions button.usebtn[aria-pressed=true]:hover,
html:root .pick .row button.usebtn[aria-pressed=true]:hover{background:var(--ink2)!important;color:var(--bg)!important;border-color:var(--ink2)!important}
html:root .card .actions button.usebtn,
html:root .pick .row button.usebtn{padding:7px 13px!important}
html:root button.usebtn::before,
html:root .usebtn::before,
html:root .card .actions button.usebtn::before,
html:root .pick .row button.usebtn::before{content:none!important;display:none!important}
html:root #igManageInline,
html:root #igPrev,
html:root #igMore{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:999px!important;box-shadow:none!important;font-weight:700}
html:root #igManageInline:hover,
html:root #igPrev:hover,
html:root #igMore:hover{background:var(--s2)!important;border-color:var(--line2)!important;box-shadow:none!important}
html:root #igPrev[hidden],
html:root #igMore[hidden]{display:none!important}
html:root .hidech,
html:root .post .actions button[data-hide],
html:root .account-row button[data-hide],
html:root .ig-score-row button[data-hide]{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--bad,#e5484d)!important;border-radius:999px!important;font-weight:700!important}
html:root .hidech:hover,
html:root .post .actions button[data-hide]:hover,
html:root .account-row button[data-hide]:hover,
html:root .ig-score-row button[data-hide]:hover{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--bad,#e5484d)!important;text-decoration:underline!important}
html body .bar .switch[hidden],
html body .chips button[hidden]{display:none!important}
@media(max-width:860px){
 html body[data-page=popular] .bar .switch,
 html body[data-page=fresh] .bar .switch,
 html body:not([data-page]) .bar .switch:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 100%!important;width:100%;min-width:0}
}

/* v44: non-Discover workspace Mono pills, DM shares/Search/Trends Mono surfaces, Watchlist underline tabs */
html:root .btn:not(.primary):not(.bulk-primary):not(.mp-yes):not(.mp-no):not(.dl):not(.danger):not(.unhide):not(.hidb):not(.copy):not(.cp):not([data-hide]):not(.hidech),
html:root .secondary-btn,
html:root .morebtn,
html:root .wl-btn:not(.primary),
html:root #doneBulk .bulk-actions button:not(.bulk-primary),
html:root .ig-group-card button,
html:root .ig-trend-actions button,
html:root #igSaveSearch{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:999px!important;box-shadow:none!important;font-weight:600!important}

html:root .btn:not(.primary):not(.bulk-primary):not(.mp-yes):not(.mp-no):not(.dl):not(.danger):not(.unhide):not(.hidb):not(.copy):not(.cp):not([data-hide]):not(.hidech):hover:not(:disabled),
html:root .secondary-btn:hover:not(:disabled),
html:root .morebtn:hover:not(:disabled),
html:root .wl-btn:not(.primary):hover:not(:disabled),
html:root #doneBulk .bulk-actions button:not(.bulk-primary):hover:not(:disabled),
html:root .ig-group-card button:hover:not(:disabled),
html:root .ig-trend-actions button:hover:not(:disabled),
html:root #igSaveSearch:hover:not(:disabled){background:var(--s2)!important;color:var(--ink)!important}

html:root .copy,
html:root .cp,
html:root .wl-copy,
html:root .wl-send,
html:root .pl-b button[data-l]{background:var(--s2)!important;color:var(--ink)!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font-weight:600!important}
html:root .copy:hover:not(:disabled),
html:root .cp:hover:not(:disabled),
html:root .wl-copy:hover:not(:disabled),
html:root .wl-send:hover:not(:disabled),
html:root .pl-b button[data-l]:hover:not(:disabled){background:var(--s3)!important;color:var(--ink)!important}

html:root .drow button.usebtn,
html:root .drow .d-use{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:999px!important;box-shadow:none!important;font-weight:600!important}
html:root .drow button.usebtn:hover:not(:disabled),
html:root .drow .d-use:hover:not(:disabled){background:var(--s2)!important;color:var(--ink)!important}

html:root .mp-no,
html:root .unhide,
html:root .btn.danger,
html:root .hidb{background:color-mix(in srgb,var(--bad) 14%,transparent)!important;color:var(--bad)!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font-weight:700!important}
html:root .mp-no:hover:not(:disabled),
html:root .unhide:hover:not(:disabled),
html:root .btn.danger:hover:not(:disabled),
html:root .hidb:hover:not(:disabled){background:color-mix(in srgb,var(--bad) 22%,transparent)!important;color:var(--bad)!important}

html body .bulk-bar #doneSelectToggle{display:inline-flex;align-items:center;gap:10px;min-height:40px;padding:0 8px 0 0!important;border:0!important;background:transparent!important;color:var(--ink)!important;font-weight:600;border-radius:0!important;box-shadow:none!important}
html body .bulk-bar #doneSelectToggle[hidden]{display:none!important}
html body .bulk-bar #doneSelectToggle::before{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--muted);box-sizing:border-box;flex:none}

html:root .ig-dm-card,
html:root .ig-dm-empty{background:var(--s1)!important;background-image:none!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important;color:var(--ink)!important}
html:root .ig-dm-card-head{color:var(--muted)!important}
html:root .ig-dm-actions a{background:var(--ink)!important;color:var(--bg)!important;border:0!important;border-radius:999px!important;font-weight:700!important;box-shadow:none!important}
html:root .ig-dm-actions a:hover{background:var(--ink2)!important;color:var(--bg)!important;transform:none!important;box-shadow:none!important}
html:root .ig-dm-actions button{background:transparent!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:999px!important;font-weight:600!important;box-shadow:none!important}
html:root .ig-dm-actions button:hover{background:var(--s2)!important;color:var(--ink)!important;transform:none!important;box-shadow:none!important}
html:root #igSaveSearch{min-height:40px;padding:8px 16px;margin-top:8px}
html:root .ig-group-card button,
html:root .ig-trend-actions button{min-height:38px;padding:8px 14px}

html:root #wlTabs.wl-tabs{display:flex!important;gap:0!important;padding:0!important;margin:4px 0 14px!important;border-radius:0!important;background:transparent!important;border-bottom:1px solid var(--line)!important}
html:root #wlTabs.wl-tabs button{flex:1 1 0;min-height:44px;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--muted)!important;font-weight:600!important;box-shadow:none!important}
html:root #wlTabs.wl-tabs button:hover{color:var(--ink)!important}
html:root #wlTabs.wl-tabs button[aria-pressed=true]{background:transparent!important;color:var(--ink)!important;border-bottom-color:var(--ink)!important;font-weight:700!important}
