/* Direct-to-library workspace inspired by Toolfolio's catalog layout. */
:root {
  --sidebar-width: 248px;
  --workspace-topbar-height: 68px;
  --library-space: #050505;
  --library-panel: #111112;
  --library-border: #27272a;
  --library-text: #f4f4f5;
  --library-muted: #92929a;
  --library-blue: #3b82f6;
}

html { scroll-padding-top: calc(var(--workspace-topbar-height) + 18px); }
body.library-home { min-width: 320px; color: var(--library-text); background: var(--library-space); }
.library-home [hidden] { display: none !important; }
.library-home a { text-decoration: none; }
.library-home .skip-link { z-index: 200; color: white; background: #111; border: 1px solid var(--library-border); border-radius: 2px; }

.library-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--library-border);
  background: #080808;
}
.library-sidebar > .brand {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--library-border);
  color: #f8f8f8;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.9px;
}
.library-sidebar .brand-mark { width: 31px; height: 31px; flex: 0 0 31px; }
.library-sidebar .brand-mark span { width: 16px; height: 13px; }
.sidebar-search {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--library-muted);
  background: transparent;
}
.sidebar-search:focus-within { border-color: #34343a; background: #111112; }
.sidebar-search .search-icon { flex: 0 0 auto; font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.sidebar-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #f4f4f5; background: transparent; font-size: 14px; }
.sidebar-search input::placeholder { color: #9b9ba2; opacity: 1; }
.sidebar-search kbd { flex: 0 0 auto; padding: 5px 7px; border: 0; border-radius: 3px; color: #b4b4bb; background: #222225; font: 500 10px/1 Inter, sans-serif; white-space: nowrap; }
.sidebar-search input::-webkit-search-cancel-button { cursor: pointer; }
.search-status { margin: 0 18px 8px; color: #9ebeff; font-size: 11px; line-height: 1.5; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; overflow: auto; padding: 2px 0 20px; }
.sidebar-link { position: relative; display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 18px; border-left: 3px solid transparent; color: #a1a1a8; font-size: 14px; font-weight: 500; transition: background .16s, color .16s; }
.sidebar-link:hover { color: #fff; background: #141415; }
.sidebar-link.active { border-left-color: #f4f4f5; color: white; background: #202022; }
.sidebar-icon { display: grid; width: 19px; flex: 0 0 19px; place-items: center; color: #a1a1a8; font-size: 19px; line-height: 1; }
.sidebar-link.active .sidebar-icon { color: white; }
.nav-group-label { margin: 25px 18px 9px; color: #88888f; font-size: 11px; font-weight: 600; }
.nav-count, .nav-chevron { margin-left: auto; color: #72727a; font-size: 11px; }
.nav-chevron { font-size: 21px; font-weight: 300; }
.sidebar-bottom { display: flex; min-height: 75px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 20px; border-top: 1px solid var(--library-border); }
.sidebar-bottom a { display: flex; align-items: center; justify-content: space-between; color: #e5e5e7; font-size: 12px; font-weight: 600; }
.sidebar-bottom > span { color: #71717a; font-size: 10px; }

.library-workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.workspace-topbar { position: sticky; z-index: 50; top: 0; display: flex; height: var(--workspace-topbar-height); align-items: stretch; justify-content: space-between; gap: 22px; padding: 0 26px 0 28px; border-bottom: 1px solid var(--library-border); background: rgb(5 5 5 / 96%); backdrop-filter: blur(16px); }
.top-tabs, .top-actions { display: flex; align-items: stretch; gap: 12px; }
.top-tabs a { position: relative; display: flex; align-items: center; padding: 0 16px; color: #92929a; font-size: 14px; font-weight: 500; }
.top-tabs a:hover, .top-tabs a.active { color: white; }
.top-tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: white; content: ""; }
.top-actions { align-items: center; gap: 11px; }
.top-link { padding: 0 12px; color: #b4b4bc; font-size: 12px; }
.top-link:hover { color: white; }
.library-home .button { min-height: 38px; padding: 0 13px; border-radius: 2px; font-size: 11px; }
.library-home .button-dark { border: 1px solid #3b82f6; color: white; background: #035fff; }
.library-home .button-dark:hover { background: #2c79ff; }
.sidebar-toggle { display: none; }
.sidebar-scrim { display: none; }

.library-main { min-height: calc(100vh - var(--workspace-topbar-height)); }
.library-content { width: min(100%, 1840px); margin: 0 auto; padding: 27px 30px 0; }
.library-overview { display: flex; min-height: 126px; align-items: center; justify-content: space-between; gap: 28px; padding: 0 0 24px; border-bottom: 1px solid var(--library-border); }
.library-overview .eyebrow, .library-note .eyebrow { margin-bottom: 8px; color: #8ab4ff; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.library-overview .eyebrow span { padding: 0 5px; color: #5c5c64; }
.library-overview h1 { margin: 0 0 7px; color: #f8f8f9; font-size: clamp(25px, 2.2vw, 34px); font-weight: 650; letter-spacing: -1.3px; line-height: 1.08; }
.library-overview p { margin: 0; color: var(--library-muted); font-size: 12px; line-height: 1.5; }
.library-stats { display: flex; align-items: center; gap: 0; }
.library-stats > div { display: flex; min-width: 95px; flex-direction: column; gap: 4px; padding: 0 15px; border-left: 1px solid var(--library-border); }
.library-stats strong { color: #f3f4f6; font-size: 16px; font-weight: 650; letter-spacing: -.4px; }
.library-stats span { color: #777780; font-size: 10px; }

.directory-section { padding: 26px 0 8px; scroll-margin-top: calc(var(--workspace-topbar-height) + 12px); }
.directory-heading { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
.directory-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; color: #f3f3f4; font-size: 19px; font-weight: 600; letter-spacing: -.65px; }
.directory-heading p { margin: 0; color: #777780; font-size: 11px; line-height: 1.5; }
.heading-count { display: inline-flex; min-width: 23px; height: 21px; align-items: center; justify-content: center; padding: 0 6px; border: 1px solid #2d2d32; border-radius: 2px; color: #a1a1aa; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.directory-actions { display: inline-flex; align-items: center; gap: 18px; }
.directory-heading .view-all { display: inline-flex; align-items: center; gap: 9px; color: #a1a1a8; font-size: 11px; font-weight: 500; white-space: nowrap; }
.directory-heading .view-all:hover { color: #8ab4ff; }
.directory-heading .view-all span { color: #b4b4bc; font-size: 16px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.brand-card { position: relative; display: flex; min-height: 84px; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #242427; border-radius: 2px; color: #f4f4f5; background: #0d0d0e; transition: border-color .15s, background .15s; }
.brand-card:hover { border-color: #45454b; background: #141416; transform: none; box-shadow: none; }
.brand-avatar { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 9%); border-radius: 4px; color: var(--avatar-ink, #f4f4f5); background: color-mix(in srgb, var(--avatar-bg, #202024) 65%, #101012); font: 750 13px/1 Inter, sans-serif; letter-spacing: -.4px; }
.brand-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.brand-info { min-width: 0; flex: 1; }
.brand-name-row { display: flex; align-items: center; gap: 6px; }
.brand-name { overflow: hidden; color: #f4f4f5; font: 600 12px/1.4 Inter, sans-serif; letter-spacing: -.15px; text-overflow: ellipsis; white-space: nowrap; }
.brand-name-row .card-arrow { position: static; flex: 0 0 auto; margin-left: auto; color: #6f6f77; font-size: 13px; }
.brand-industry { display: block; margin-top: 3px; overflow: hidden; color: #85858d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.brand-stats { display: block; margin-top: 4px; color: #6f6f77; font-size: 9px; }
.brand-stats b { color: #aaaab1; font-weight: 500; }
.brand-meta, .mini-bar { display: none; }
.empty-state { padding: 24px; border: 1px solid var(--library-border); color: #a1a1aa; background: #0d0d0e; font-size: 12px; }

.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.industry-card { display: block; min-width: 0; overflow: hidden; border: 1px solid #28282c; border-radius: 3px; color: #f4f4f5; background: #0c0c0d; transition: border-color .18s, transform .18s, background .18s; }
.industry-card:hover { border-color: color-mix(in srgb, var(--industry-accent, #3b82f6) 65%, #55555c); background: #111113; transform: translateY(-2px); box-shadow: none; }
.industry-art { position: relative; display: block; height: 112px; overflow: hidden; background: linear-gradient(125deg, color-mix(in srgb, var(--industry-accent) 33%, #151518), #101012 70%); }
.industry-art-image { position: absolute; display: block; width: 54%; height: 92%; border: 2px solid rgb(255 255 255 / 65%); border-radius: 3px; object-fit: cover; background: #171719; box-shadow: 0 8px 22px rgb(0 0 0 / 40%); }
.industry-art-image-1 { top: 14%; left: 7%; transform: rotate(-7deg); }
.industry-art-image-2 { top: 3%; left: 24%; transform: rotate(3deg); }
.industry-art-image-3 { top: 11%; left: 43%; transform: rotate(9deg); }
.industry-art-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgb(7 7 8 / 24%) 50%, #0d0d0f 100%); }
.industry-index { position: absolute; top: 10px; left: 11px; padding: 4px 6px; border: 1px solid rgb(255 255 255 / 20%); color: #f4f4f5; background: rgb(0 0 0 / 54%); font: 600 8px/1 Inter, sans-serif; letter-spacing: .6px; }
.industry-art-label { position: absolute; right: 12px; bottom: 11px; color: rgb(255 255 255 / 80%); font-size: 9px; line-height: 1.5; text-align: right; }
.industry-details { display: block; padding: 12px 13px 13px; }
.industry-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.industry-card h3 { margin: 0; color: #f1f1f3; font-size: 13px; font-weight: 600; letter-spacing: -.25px; }
.industry-arrow { color: #8ab4ff; font-size: 14px; }
.industry-summary { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #888891; font-size: 9px; }
.industry-summary b { color: #d6d6dc; font-weight: 550; }
.industry-local-count { display: block; margin-top: 5px; color: #777780; font-size: 8px; }
.industry-logos { display: flex; min-height: 22px; align-items: center; margin-top: 10px; }
.industry-logos img, .industry-logos i { display: grid; width: 22px; height: 22px; place-items: center; margin-left: -4px; border: 2px solid #0c0c0d; border-radius: 4px; color: #d1d1d6; background: #222226; font-size: 8px; font-style: normal; font-weight: 600; object-fit: cover; }
.industry-logos img:first-child, .industry-logos i:first-child { margin-left: 0; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.platform-card { display: flex; min-height: 88px; align-items: center; gap: 12px; padding: 12px; border: 1px solid #27272b; border-radius: 3px; background: linear-gradient(130deg, #101012, #0a0a0b); transition: border-color .18s, transform .18s, background .18s; }
.platform-card:hover { border-color: color-mix(in srgb, var(--platform-color) 55%, #48484f); background: #141416; transform: translateY(-2px); }
.platform-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid #29292f; border-radius: 7px; background: #18181b; }
.platform-icon svg { display: block; width: 30px; height: 30px; }
.platform-info { min-width: 0; flex: 1; }
.platform-info b { color: #ededee; font-size: 11px; font-weight: 600; }
.platform-info small { display: block; margin-top: 4px; overflow: hidden; color: #85858d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.platform-local-count { display: block; margin-top: 5px; color: #72727a; font-size: 8px; }
.platform-meter { display: block; height: 2px; margin-top: 8px; overflow: hidden; background: #29292d; }
.platform-meter span { display: block; width: var(--platform-meter, 0%); height: 100%; background: var(--platform-color, #8ab4ff); }
.platform-arrow { color: #777780; font-size: 14px; }

.pattern-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pattern-panel { min-width: 0; padding: 17px; border: 1px solid #242427; background: #0a0a0b; scroll-margin-top: calc(var(--workspace-topbar-height) + 12px); }
.pattern-panel .directory-heading { align-items: flex-start; min-height: 0; margin-bottom: 12px; }
.pattern-panel .directory-heading h2 { font-size: 16px; }
.pattern-panel .directory-heading p { max-width: 260px; }
.pattern-panel .directory-heading .view-all { align-self: center; }
.tag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.hook-tag { display: grid; min-height: 61px; grid-template-columns: 1fr auto; grid-template-rows: auto 3px; align-content: center; gap: 7px 8px; padding: 9px 10px; border: 1px solid #29292d; border-radius: 2px; background: linear-gradient(135deg, #121214, #0b0b0d); }
.hook-tag:hover, .emotion-card:hover { border-color: #4b5563; background: #17181a; }
.hook-name { overflow: hidden; color: #e4e4e7; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.hook-arrow { grid-column: 2; grid-row: 1; color: #777780; font-size: 11px; }
.hook-signal { display: block; grid-column: 1; grid-row: 2; height: 2px; background: #27272b; }
.hook-signal i { display: block; width: var(--hook-strength); height: 100%; background: #668ee0; }
.hook-count { grid-column: 2; grid-row: 2; color: #777780; font-size: 7px; white-space: nowrap; }
.hook-count b { color: #becff1; font-weight: 550; }
.emotion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.emotion-card { display: flex; min-height: 75px; flex-direction: column; justify-content: center; gap: 7px; padding: 9px; border: 1px solid #29292d; border-radius: 2px; background: linear-gradient(135deg, #121214, #0b0b0d); }
.emotion-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.emotion-name { color: #e4e4e7; font-size: 9px; }
.emotion-meta { display: flex; justify-content: space-between; gap: 5px; color: #777780; font-size: 7px; }
.emotion-score { color: #a9c7ff; font-size: 10px; }
.emotion-score small { padding-left: 2px; color: #777780; font-size: 7px; }
.emotion-meter { display: block; height: 2px; background: #29292d; }
.emotion-meter i { display: block; width: var(--emotion-score); height: 100%; background: linear-gradient(90deg, #4f7fd1, #b5a2ff); }

.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.collection-card { display: flex; min-height: 158px; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px; border: 1px solid #29292d; border-bottom-width: 3px; border-radius: 2px; background: #111112; transition: border-color .15s, background .15s; }
.collection-card:hover { border-color: #494950; background: #171719; }
.collection-card.collection-featured { background: linear-gradient(125deg, #121820, #111112 65%); }
.collection-brand-marks { display: flex; min-height: 27px; align-items: center; gap: 5px; }
.collection-brand-mark { display: grid; width: 27px; height: 27px; place-items: center; overflow: hidden; border: 1px solid #29292f; border-radius: 4px; background: #080809; }
.collection-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.collection-kicker { color: #8ab4ff; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.collection-card strong { color: #f4f4f5; font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.collection-card > span:not(.collection-kicker) { color: #92929a; font-size: 10px; line-height: 1.6; }
.collection-card b { display: flex; align-items: center; gap: 6px; margin-top: auto; color: #c8d9f5; font-size: 9px; font-weight: 500; }
.collection-card i { font-size: 12px; font-style: normal; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.guide-card { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; padding: 0 0 14px; border: 1px solid #242427; border-radius: 3px; color: inherit; background: #111112; transition: border-color .15s, background .15s; }
.guide-card:hover { border-color: #45454b; background: #141416; transform: none; box-shadow: none; }
.guide-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #17233a, #101012 70%); }
.guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.guide-card:hover .guide-thumb img { transform: scale(1.035); }
.guide-thumb::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 58%)); content: ""; }
.guide-thumb-label { position: absolute; z-index: 1; bottom: 10px; left: 12px; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 2px; color: #f4f4f5; background: rgb(6 6 7 / 68%); font-size: 8px; font-weight: 650; letter-spacing: .7px; }
.guide-type { display: block; margin: 13px 14px 7px; color: #8ab4ff; font-size: 8px; font-weight: 600; letter-spacing: .7px; }
.guide-card h3 { max-width: calc(100% - 28px); margin: 0 14px 6px; color: #e4e4e7; font: 550 14px/1.4 Inter, sans-serif; letter-spacing: -.2px; }
.guide-card p { margin: 0 14px; color: #85858d; font-size: 10px; line-height: 1.55; }
.guide-card .card-arrow { top: auto; right: 14px; bottom: 12px; color: #777780; font-size: 12px; }
.library-note { display: grid; grid-template-columns: .8fr 1.5fr auto; align-items: center; gap: 22px; margin-top: 35px; padding: 20px; border: 1px solid #242427; background: #0a0a0b; }
.library-note h2 { margin: 0; color: #ededee; font-size: 17px; font-weight: 600; letter-spacing: -.5px; }
.library-note p { margin: 0; color: #92929a; font-size: 10px; line-height: 1.7; }
.library-note > a { color: #9cc2ff; font-size: 10px; white-space: nowrap; }
.library-note > a:hover { color: #fff; }
.workspace-footer { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; border-top: 1px solid #222225; color: #696970; font-size: 9px; }
.workspace-footer a { color: #92929a; }
.workspace-footer a:hover { color: white; }

/* Discover uses the same real creatives as the brand pages. */
.creative-masonry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
.creative-card { display: block; min-width: 0; overflow: hidden; border: 1px solid #252528; border-radius: 2px; color: #f4f4f5; background: #0b0b0c; transition: border-color .15s, background .15s; }
.creative-card:hover { border-color: #505057; background: #111113; }
.creative-visual { position: relative; display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #111114; }
.creative-visual > img, .creative-visual > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.creative-card.source-adfolio .creative-visual { aspect-ratio: 1 / 1; background: #fff; }
.creative-card.source-adfolio .creative-visual > img { object-fit: contain; }
.creative-visual > img { transition: transform .24s ease; }
.creative-card:hover .creative-visual > img { transform: scale(1.025); }
.creative-play { position: absolute; top: 50%; left: 50%; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(255 255 255 / 38%); border-radius: 50%; color: #fff; background: rgb(0 0 0 / 60%); font-size: 12px; transform: translate(-50%, -50%); pointer-events: none; }
.creative-format { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 2px; color: #eee; background: rgb(0 0 0 / 68%); font-size: 8px; line-height: 1; text-transform: uppercase; }
.creative-fallback-mark { display: grid; width: 70px; height: 70px; place-items: center; border: 1px solid #303038; border-radius: 8px; color: #ddd; background: #171719; font-size: 28px; font-weight: 700; }
.creative-card-copy { display: block; padding: 10px 11px 12px; }
.creative-brand-row { display: flex; min-width: 0; align-items: center; gap: 7px; margin-bottom: 7px; }
.creative-brand-row b { overflow: hidden; color: #e8e8eb; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.creative-brand-logo { width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid #303038; border-radius: 3px; object-fit: cover; background: #111; }
.creative-platform { overflow: hidden; margin-left: auto; color: #777780; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.creative-card-copy > strong { display: -webkit-box; overflow: hidden; color: #f3f3f4; font-size: 11px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.creative-description { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #85858d; font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.load-more { display: block; min-height: 38px; margin: 18px auto 0; padding: 0 15px; border: 1px solid #303038; border-radius: 2px; color: #e4e4e7; background: #111112; cursor: pointer; font-size: 11px; }
.load-more:hover { border-color: #5a5a62; background: #171719; }
.directory-section#ads { padding-top: 13px; }

@media (min-width: 1800px) {
  .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .library-content { padding-right: 23px; padding-left: 23px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creative-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-stats > div { min-width: 78px; padding: 0 11px; }
}
@media (max-width: 920px) {
  :root { --sidebar-width: 222px; }
  .library-content { padding-right: 18px; padding-left: 18px; }
  .library-overview { align-items: flex-start; flex-direction: column; gap: 17px; padding-top: 20px; }
  .library-stats { width: 100%; }
  .library-stats > div:first-child { padding-left: 0; border-left: 0; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creative-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 7px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pattern-sections { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  :root { --sidebar-width: 248px; --workspace-topbar-height: 58px; }
  .library-sidebar { z-index: 90; transform: translateX(-100%); transition: transform .2s ease; }
  .library-sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim:not([hidden]) { position: fixed; z-index: 80; inset: 0; display: block; background: rgb(0 0 0 / 65%); }
  .library-workspace { margin-left: 0; }
  .workspace-topbar { align-items: center; gap: 8px; padding: 0 13px; }
  .sidebar-toggle { display: flex; width: 34px; height: 34px; flex: 0 0 34px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #303038; border-radius: 2px; background: #111112; }
  .sidebar-toggle span { display: block; width: 14px; height: 1px; background: #e4e4e7; }
  .top-tabs { flex: 1; gap: 1px; }
  .top-tabs a { padding: 0 8px; font-size: 11px; white-space: nowrap; }
  .top-actions { gap: 0; }
  .top-link { display: none; }
  .library-home .top-cta { min-height: 33px; padding: 0 8px; font-size: 9px; }
  .library-content { padding: 14px 13px 0; }
  .library-overview { min-height: 0; gap: 13px; padding: 7px 0 17px; }
  .library-overview .eyebrow { margin-bottom: 6px; font-size: 8px; }
  .library-overview h1 { font-size: 26px; }
  .library-overview p { font-size: 10px; }
  .library-stats { justify-content: space-between; }
  .library-stats > div { min-width: 0; padding: 0 8px; }
  .library-stats strong { font-size: 13px; }
  .library-stats span { font-size: 8px; }
  .directory-section { padding-top: 21px; }
  .directory-heading { align-items: flex-start; gap: 9px; margin-bottom: 11px; }
  .directory-actions { gap: 8px; }
  .directory-heading h2 { font-size: 16px; }
  .directory-heading p { max-width: 230px; font-size: 9px; }
  .directory-heading .view-all { align-self: center; font-size: 9px; }
  .brand-grid { gap: 6px; }
  .brand-card { min-height: 76px; gap: 8px; padding: 8px; }
  .brand-avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 10px; }
  .creative-card-copy { padding: 8px; }
  .creative-brand-row { gap: 5px; margin-bottom: 5px; }
  .creative-brand-row b { font-size: 8px; }
  .creative-brand-logo { width: 17px; height: 17px; flex-basis: 17px; }
  .creative-platform { font-size: 7px; }
  .creative-card-copy > strong { font-size: 9px; }
  .creative-description { display: none; }
  .brand-name { font-size: 10px; }
  .brand-industry { font-size: 8px; }
  .brand-stats { font-size: 8px; }
  .industry-grid, .platform-grid { gap: 6px; }
  .industry-card { min-height: 72px; padding: 9px; }
  .industry-card h3 { font-size: 10px; }
  .industry-card p, .industry-count { font-size: 8px; }
  .platform-card { min-height: 58px; gap: 8px; padding: 8px; }
  .platform-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .platform-info b { font-size: 9px; }
  .platform-info small { font-size: 7px; }
  .pattern-panel { padding: 12px; }
  .pattern-panel .directory-heading { flex-direction: column; }
  .pattern-panel .directory-heading .view-all { align-self: flex-start; }
  .tag-list { gap: 5px; }
  .hook-tag { min-height: 36px; padding: 0 7px; }
  .hook-tag span:first-child { font-size: 8px; }
  .hook-tag span:last-child { font-size: 7px; }
  .emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .collection-card { min-height: 142px; gap: 7px; padding: 10px; }
  .collection-card strong { font-size: 11px; }
  .collection-card > span:not(.collection-kicker) { font-size: 8px; }
  .collection-card b { font-size: 8px; }
  .guide-card { min-height: 0; padding: 0 0 10px; }
  .guide-thumb { aspect-ratio: 16 / 10; }
  .guide-type { font-size: 7px; }
  .guide-card h3 { font-size: 10px; }
  .guide-card p { font-size: 8px; }
  .library-note { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; padding: 14px; }
  .library-note h2 { font-size: 15px; }
  .workspace-footer { flex-wrap: wrap; justify-content: flex-start; padding: 13px 0; font-size: 8px; }
  .workspace-footer span:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .industry-grid, .platform-grid { grid-template-columns: 1fr; }
  .industry-card { display: grid; min-height: 116px; grid-template-columns: 34% minmax(0, 1fr); padding: 0; }
  .industry-art { height: 100%; min-height: 116px; }
  .industry-art-image { width: 70%; height: 80%; }
  .industry-art-image-2 { left: 18%; }
  .industry-art-image-3 { left: 33%; }
  .industry-art-shade { background: linear-gradient(90deg, transparent 0%, rgb(7 7 8 / 25%) 70%, #0d0d0f 100%); }
  .industry-art-label { right: 5px; bottom: 7px; font-size: 7px; }
  .industry-details { align-self: center; padding: 11px 12px; }
  .industry-card h3 { font-size: 14px; }
  .industry-summary { font-size: 11px; }
  .industry-local-count { font-size: 9px; }
  .industry-logos { margin-top: 7px; }
  .platform-card { min-height: 70px; padding: 10px; }
  .platform-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .platform-icon svg { width: 28px; height: 28px; }
  .platform-info b { font-size: 12px; }
  .platform-info small { font-size: 10px; }
  .platform-local-count { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Shared Toolfolio-like frame for the Ads Hub library. */
body.gm-root { min-width: 320px; margin: 0; color: #f4f4f5; background: #050505 !important; }
body.gm-root .gm-site-nav-root, body.gm-root .gm-site-nav-spacer, body.gm-root .gm-pillar-tabs,
body.gm-root .gm-footer, body.gm-root .gm-site-footer, body.gm-root .site-footer,
body.gm-root .resource-bar, body.gm-root [data-gm-chrome] { display: none !important; }
.shared-library-sidebar { position: fixed; z-index: 110; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; border-right: 1px solid #27272a; color: #f4f4f5; background: #080808; }
.shared-library-brand { display: flex; min-height: 80px; align-items: center; gap: 11px; padding: 0 19px; border-bottom: 1px solid #27272a; color: #f8f8f8; font-size: 21px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; }
.shared-brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #f4f4f5; border-radius: 1px; color: white; font-size: 20px; font-weight: 800; }
.shared-library-search { display: flex; min-height: 48px; align-items: center; gap: 9px; margin: 12px 12px 8px; padding: 0 10px; border: 1px solid transparent; color: #aaaab1; background: transparent; }
.shared-library-search:focus-within { border-color: #35353b; background: #111112; }
.shared-library-search > span { font-size: 23px; line-height: 1; }
.shared-library-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #f4f4f5; background: transparent; font-size: 13px; }
.shared-library-search input::placeholder { color: #92929a; }
.shared-library-search kbd { flex: 0 0 auto; padding: 5px 6px; color: #aaaab1; background: #222225; font-size: 9px; }
.shared-library-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; overflow: auto; padding: 3px 0 20px; }
.shared-library-nav small { margin: 24px 17px 6px; color: #85858d; font-size: 11px; font-weight: 600; }
.shared-nav-link { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 17px; border-left: 3px solid transparent; color: #a1a1a8; font-size: 13px; font-weight: 500; text-decoration: none; }
.shared-nav-link:hover, .shared-nav-link:focus-visible { color: #fff; background: #171719; }
.shared-nav-link:first-child { border-left-color: #f4f4f5; color: #fff; background: #202022; }
.shared-nav-link > span { display: grid; width: 20px; place-items: center; color: #aaaab1; font-size: 18px; }
.shared-sidebar-bottom { display: flex; min-height: 74px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 19px; border-top: 1px solid #27272a; }
.shared-sidebar-bottom a { color: #e5e5e7; font-size: 11px; font-weight: 600; text-decoration: none; }
.shared-sidebar-bottom span { color: #71717a; font-size: 9px; }
.shared-library-topbar { position: fixed; z-index: 100; inset: 0 0 auto 248px; display: flex; height: 68px; align-items: stretch; justify-content: space-between; gap: 18px; padding: 0 25px 0 28px; border-bottom: 1px solid #27272a; color: #f4f4f5; background: rgb(5 5 5 / 96%); backdrop-filter: blur(16px); }
.shared-library-topbar nav, .shared-library-topbar > div { display: flex; align-items: stretch; gap: 20px; }
.shared-library-topbar nav a { position: relative; display: flex; align-items: center; color: #e4e4e7; font-size: 13px; text-decoration: none; }
.shared-library-topbar nav a:first-child::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: white; content: ""; }
.shared-library-topbar nav a + a { color: #92929a; }
.shared-library-topbar > div { align-items: center; gap: 12px; }
.shared-top-link { color: #aaaab1; font-size: 11px; text-decoration: none; }
.shared-login { padding: 10px 13px; border: 1px solid #333339; color: white; background: #111112; font-size: 11px; text-decoration: none; }
body.gm-root main#main { min-height: 100vh; margin: 0 0 0 248px; padding: 68px 28px 48px; color: #e4e4e7; background: #050505 !important; }
body.gm-root main#main > .gm-lib-page { width: min(100%, 1640px); margin: 0 auto; padding: 0 clamp(0px, 1.5vw, 20px) 70px; color: #e4e4e7; background: #050505 !important; }
body.gm-root .gm-lib-hero { background: transparent !important; background-image: none !important; }
body.gm-root .gm-lib-hero-body { padding: 17px 0 20px !important; }
body.gm-root .gm-lib-hero-row { align-items: center !important; gap: 16px !important; margin-bottom: 12px !important; }
body.gm-root .gm-lib-hero-logo { width: 58px !important; height: 58px !important; flex-basis: 58px !important; border: 1px solid #333339; border-radius: 8px !important; object-fit: cover; background: #111; }
body.gm-root .gm-lib-hero h1 { margin: 0 !important; color: #f4f4f5 !important; font-size: clamp(25px, 2.5vw, 36px) !important; font-weight: 620 !important; letter-spacing: -1.1px !important; line-height: 1.15 !important; }
body.gm-root .gm-lib-hero p { max-width: 780px !important; color: #a1a1aa !important; font-size: 13px !important; line-height: 1.65 !important; }
body.gm-root .gm-lib-page .js-ad-card { overflow: hidden; border: 1px solid #29292f !important; border-radius: 2px !important; color: #e4e4e7 !important; background: #0b0b0c !important; box-shadow: none !important; }
body.gm-root .gm-lib-page .js-ad-card:hover { border-color: #55555c !important; transform: none !important; }
body.gm-root .gm-lib-page .js-ad-card img, body.gm-root .gm-lib-page .js-ad-card video { display: block; max-width: 100%; object-fit: cover; }
body.gm-root .gm-lib-page .js-ad-card .bg-brand-bg-alt { background: #111114 !important; }
body.gm-root .gm-lib-page .lib-summary, body.gm-root .gm-lib-page .gm-lib-stat,
body.gm-root .gm-lib-page .lib-toc a, body.gm-root .gm-lib-page details.bg-brand-bg-card,
body.gm-root .gm-lib-page .gm-lib-cta { border-color: #29292f !important; color: #e4e4e7 !important; background: #0b0b0c !important; box-shadow: none !important; }
body.gm-root .gm-lib-page table thead th { color: #e4e4e7 !important; background: #111114 !important; }
body.gm-root .gm-lib-page table th, body.gm-root .gm-lib-page table td { border-color: #29292f !important; }
body.gm-root .gm-lib-page .gm-lib-rest blockquote, body.gm-root .gm-lib-page .gm-lib-rest [data-summary].border-l-4 { border-color: #303038 !important; border-left-color: #3b82f6 !important; color: #d4d4d8 !important; background: #0b0b0d !important; }
body.gm-root .library-directory { width: min(100%, 1400px); min-height: calc(100vh - 116px); margin: 0 auto; padding-top: 30px; }
body.gm-root .library-directory h1 { margin: 8px 0 10px; color: #f4f4f5; font-size: clamp(34px, 4.4vw, 60px); font-weight: 650; letter-spacing: -2px; line-height: 1; }
body.gm-root .library-directory .eyebrow { color: #8ab4ff; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
body.gm-root .library-directory .directory-intro { max-width: 760px; color: #a1a1aa; font-size: 15px; line-height: 1.7; }
body.gm-root .library-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 25px; }
body.gm-root .library-link { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #29292f; color: #e4e4e7; background: #0d0d0e; font-size: 12px; font-weight: 550; text-decoration: none; }
body.gm-root .library-link:hover { border-color: #55555c; background: #151517; }
.browse-industry-grid, .browse-platform-grid { margin-top: 30px; }
body.gm-root .industry-card, body.gm-root .platform-card, body.gm-root .taxonomy-analytics-card, body.gm-root .editorial-directory-card { text-decoration: none; }
.taxonomy-analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 50px; }
.taxonomy-analytics-card { position: relative; display: flex; min-height: 180px; flex-direction: column; padding: 18px; overflow: hidden; border: 1px solid #29292f; color: #f4f4f5; background: linear-gradient(145deg, #111114, #09090a 70%); text-decoration: none; transition: border-color .18s, transform .18s; }
.taxonomy-analytics-card:hover { border-color: #4a4a52; transform: translateY(-2px); }
.taxonomy-card-overline { color: #8ab4ff; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.taxonomy-card-title { display: block; margin-top: 14px; color: #f4f4f5; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.taxonomy-card-description { max-width: 290px; margin-top: 6px; color: #92929a; font-size: 10px; line-height: 1.6; }
.taxonomy-card-stat { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 14px; color: #777780; font-size: 9px; }
.taxonomy-card-stat b { color: #e4e4e7; font-size: 15px; font-weight: 600; }
.taxonomy-score { margin-left: auto; color: #a9c7ff; font-size: 13px; }
.taxonomy-score small { padding-left: 2px; color: #777780; font-size: 8px; }
.taxonomy-card-meter { display: block; height: 2px; margin-top: 10px; background: #252529; }
.taxonomy-card-meter i { display: block; width: var(--taxonomy-meter); height: 100%; background: #5689e9; }
.taxonomy-card-arrow { position: absolute; top: 16px; right: 16px; color: #777780; }
.editorial-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 52px; }
.editorial-directory-card { position: relative; display: flex; min-height: 0; flex-direction: column; overflow: hidden; padding: 0 0 15px; border: 1px solid #29292f; color: #f4f4f5; background: #111112; text-decoration: none; transition: border-color .18s, transform .18s; }
.editorial-directory-card:hover { border-color: #4c4c55; transform: translateY(-2px); }
.editorial-card-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #17233a, #101012 70%); }
.editorial-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.editorial-directory-card:hover .editorial-card-thumb img { transform: scale(1.035); }
.editorial-card-thumb::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / 62%)); content: ""; }
.editorial-card-thumb > span { position: absolute; z-index: 1; bottom: 10px; left: 13px; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 24%); color: #f4f4f5; background: rgb(6 6 7 / 68%); font-size: 8px; font-weight: 650; letter-spacing: .7px; }
.editorial-card-thumb-fallback { min-height: 140px; }
.editorial-card-index { position: absolute; z-index: 2; top: 12px; right: 13px; padding: 4px 6px; color: #f4f4f5; background: rgb(0 0 0 / 55%); font: 600 10px/1 Inter, sans-serif; }
.editorial-card-type { margin: 14px 15px 0; color: #8ab4ff; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.editorial-directory-card h2 { max-width: calc(100% - 30px); margin: 8px 15px 7px; color: #f4f4f5; font-size: 16px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; }
.editorial-directory-card p { max-width: 350px; margin: 0 15px; color: #92929a; font-size: 10px; line-height: 1.65; }
.editorial-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 18px 15px 0; color: #b7cfff; font-size: 9px; }
.editorial-card-action b { font-size: 15px; font-weight: 400; }
body.gm-root .local-platform-route { padding-bottom: 35px; }
.local-route-kicker { display: flex; align-items: center; gap: 8px; color: #8ab4ff; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.local-route-title-row { display: flex; align-items: center; gap: 13px; margin-top: 12px; }
.local-route-title-row h1 { margin: 0 !important; color: #f4f4f5 !important; font-size: clamp(34px, 4vw, 58px) !important; font-weight: 650 !important; letter-spacing: -2px !important; line-height: 1 !important; }
.local-route-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border: 1px solid #29292f; border-radius: 10px; background: #151517; }
.local-route-icon svg { width: 36px; height: 36px; }
.local-route-intro { max-width: 760px; margin: 14px 0 0; color: #a1a1aa; font-size: 14px; line-height: 1.7; }
.local-ad-dataset { max-width: 1500px; margin: 6px auto 38px; padding: 0 clamp(0px, 1.5vw, 20px) 24px; color: #e4e4e7; }
.local-ad-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 15px; }
.local-ad-eyebrow { margin-bottom: 6px; color: #8ab4ff; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.local-ad-heading h2 { margin: 0; color: #f4f4f5; font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.local-ad-heading p { margin: 4px 0 0; color: #85858d; font-size: 10px; }
.local-ad-total { padding: 6px 8px; border: 1px solid #303038; color: #c5c5cc; font-size: 9px; white-space: nowrap; }
.local-ad-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #29292f; background: #0c0c0e; }
.local-ad-metrics > div { display: flex; min-height: 68px; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 14px; border-right: 1px solid #29292f; }
.local-ad-metrics > div:last-child { border-right: 0; }
.local-ad-metrics strong { color: #f1f1f3; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.local-ad-metrics span { color: #777780; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.local-ad-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 12px; }
.local-filter-list { display: flex; flex-wrap: wrap; gap: 5px; }
.local-filter-list button { min-height: 28px; padding: 0 9px; border: 1px solid #2c2c31; color: #a1a1aa; background: #101012; cursor: pointer; font: 500 9px/1 Inter, system-ui, sans-serif; }
.local-filter-list button.is-active { border-color: #587fcb; color: #dbe8ff; background: #152039; }
.local-filter-list button span { margin-left: 5px; color: #777780; }
.local-top-platform { color: #777780; font-size: 9px; }
.local-top-platform b { margin-left: 5px; color: #c9d9fa; font-weight: 550; }
.local-creative-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.local-ad-dataset [hidden] { display: none !important; }
.local-empty { padding: 28px; border: 1px solid #29292f; color: #92929a; background: #0c0c0e; font-size: 11px; text-align: center; }
.local-load-more { margin-top: 15px; }
.shared-sidebar-toggle { display: none; }
body.gm-root main .bf .bf-band { border-top: 1px solid #252529; color: #e4e4e7; background: #050505 !important; }
body.gm-root main .bf .bf-answer { padding: 22px; border: 1px solid #29292f; border-radius: 2px; background: #111112 !important; }
body.gm-root main .bf .bf-answer h3, body.gm-root main .bf .bf-answer h3 a { color: #f4f4f5 !important; }
body.gm-root main .bf .bf-answer p { color: #9a9aa2 !important; }
body.gm-root main .bf .bf-links a { color: #b7cfff !important; }
@media (max-width: 1020px) {
  body.gm-root main#main { padding-right: 19px; padding-left: 19px; }
  body.gm-root .library-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taxonomy-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-creative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shared-library-sidebar { z-index: 120; transform: translateX(-100%); transition: transform .2s ease; }
  body.shared-nav-open .shared-library-sidebar { transform: translateX(0); }
  body.shared-nav-open::after { position: fixed; z-index: 115; inset: 0; background: rgb(0 0 0 / 65%); content: ""; }
  .shared-library-topbar { left: 0; height: 58px; align-items: center; gap: 9px; padding: 0 12px; }
  .shared-library-topbar nav { flex: 1; gap: 13px; }
  .shared-library-topbar nav a { font-size: 11px; }
  .shared-library-topbar > div { gap: 0; }
  .shared-top-link { display: none; }
  .shared-login { padding: 8px; font-size: 9px; }
  .shared-sidebar-toggle { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border: 1px solid #303038; color: #eee; background: #111112; font-size: 16px; }
  body.gm-root main#main { margin-left: 0; padding: 58px 14px 32px; }
  body.gm-root main#main > .gm-lib-page { padding-right: 0; padding-left: 0; }
  body.gm-root .gm-lib-hero-body { padding: 13px 0 15px !important; }
  body.gm-root .gm-lib-hero-logo { width: 46px !important; height: 46px !important; flex-basis: 46px !important; }
  body.gm-root .gm-lib-hero h1 { font-size: 24px !important; }
  body.gm-root .library-links { grid-template-columns: 1fr; }
  body.gm-root .library-directory h1 { font-size: 36px; }
  body.gm-root .library-directory .directory-intro { font-size: 11px; }
  .taxonomy-analytics-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .editorial-directory-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .editorial-directory-card { min-height: 0; padding: 0 0 14px; }
  .editorial-card-thumb { aspect-ratio: 16 / 9; }
  .editorial-directory-card h2 { margin-top: 8px; }
  .taxonomy-analytics-card { min-height: 150px; padding: 14px; }
  .local-ad-heading { align-items: flex-start; }
  .local-ad-heading h2 { font-size: 17px; }
  .local-ad-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-ad-metrics > div:nth-child(2) { border-right: 0; }
  .local-ad-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid #29292f; }
  .local-ad-toolbar { align-items: flex-start; flex-direction: column; }
  .local-creative-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 7px; }
  .local-ad-dataset { padding-right: 0; padding-left: 0; }
}

.gm-root .guide-article-thumb { max-width: 820px; margin: 24px 0 0; overflow: hidden; border: 1px solid #29292f; border-radius: 4px; background: #111112; }
.gm-root .guide-article-thumb img { display: block; width: 100%; max-height: 480px; aspect-ratio: 16 / 9; object-fit: cover; }
.gm-root .guide-article-thumb figcaption { padding: 8px 11px; color: #92929a; font: 500 10px/1.5 Inter, system-ui, sans-serif; }

/* Ads Hub library refinement */
:root { --sidebar-width: 248px; --library-content-max: 1480px; }
.library-content { width: min(100%, var(--library-content-max)); }
.library-sidebar > .brand { font-size: 21px; letter-spacing: -.7px; }
.library-sidebar .brand-mark { display: grid; place-items: center; border: 1px solid #34343a; border-radius: 9px; background: linear-gradient(145deg, #17191f, #0b0b0c); }
.library-sidebar .brand-mark svg { width: 23px; height: 23px; fill: none; stroke: #8ab4ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.sidebar-search .search-icon { width: 20px; height: 20px; transform: none; }
.sidebar-search .search-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sidebar-icon { width: 20px; flex-basis: 20px; }
.sidebar-icon svg, .lucide-icon { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link { min-height: 49px; font-size: 14px; }
.nav-group-label { font-size: 12px; }
.library-overview .eyebrow, .library-note .eyebrow { font-size: 10px; }
.library-overview h1 { font-size: clamp(30px, 2.5vw, 40px); }
.library-overview p { font-size: 14px; }
.library-stats > div { min-width: 108px; }
.library-stats strong { font-size: 20px; }
.library-stats span { font-size: 12px; }
.directory-heading { margin-bottom: 17px; }
.directory-heading h2 { font-size: 22px; }
.directory-heading p { font-size: 13px; }
.directory-heading .view-all, .top-link { font-size: 13px; }
.brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-card { min-height: 88px; gap: 13px; padding: 12px; }
.brand-avatar { width: 46px; height: 46px; flex-basis: 46px; }
.brand-name { font-size: 14px; }
.brand-industry { font-size: 12px; }
.brand-stats { font-size: 11px; }
.industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.industry-card { min-height: 142px; border-radius: 3px; background: linear-gradient(140deg, color-mix(in srgb, var(--industry-accent) 7%, #111112), #0c0c0d 66%); }
.industry-art { display: none !important; }
.industry-details { display: flex; min-height: 140px; flex-direction: column; padding: 16px; }
.industry-card-top { display: flex; min-height: 38px; align-items: center; gap: 10px; }
.industry-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid color-mix(in srgb, var(--industry-accent) 34%, #27272a); border-radius: 8px; color: var(--industry-accent); background: color-mix(in srgb, var(--industry-accent) 12%, #111112); }
.industry-icon .lucide-icon { width: 21px; height: 21px; }
.industry-logos { display: flex; min-width: 0; align-items: center; margin-left: auto; }
.industry-logos img, .industry-logos i { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; margin-left: -5px; overflow: hidden; border: 2px solid #111112; border-radius: 7px; color: #ddd; background: #202024; font: 600 11px/1 Inter, sans-serif; object-fit: cover; }
.industry-logos img:first-child, .industry-logos i:first-child { margin-left: 0; }
.industry-title-row { margin-top: auto; padding-top: 12px; }
.industry-title-row h3 { font-size: 17px; line-height: 1.3; }
.industry-summary { gap: 7px; margin-top: 5px; font-size: 12px; }
.industry-summary b { color: #c7c7cf; font-weight: 550; }
.industry-local-count { display: none; }
.industry-arrow { margin-left: auto; color: #8ab4ff; font-size: 15px; }
.platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.platform-card { min-height: 96px; gap: 13px; padding: 14px; }
.platform-icon { width: 40px; height: 40px; flex-basis: 40px; padding: 6px; }
.platform-info b { font-size: 15px; }
.platform-info small { margin-top: 4px; font-size: 12px; }
.platform-local-count { margin-top: 3px; font-size: 11px; }
.platform-arrow { font-size: 16px; }
.pattern-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pattern-panel { min-width: 0; padding: 17px; }
.tag-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.hook-tag { display: flex; min-height: 58px; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid #29292f; border-radius: 3px; background: #0d0d0f; }
.taxonomy-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #303039; border-radius: 8px; color: #91b6ff; background: #14161c; }
.hook-copy, .emotion-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.hook-name, .emotion-name { color: #f4f4f5; font-size: 15px; font-weight: 600; }
.hook-description, .emotion-description { color: #92929a; font-size: 12px; line-height: 1.45; }
.hook-arrow, .emotion-arrow { margin-left: auto; color: #8ab4ff; font-size: 15px; }
.hook-signal, .hook-count { display: none !important; }
.emotion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.emotion-card { position: relative; display: flex; min-height: 73px; align-items: center; gap: 10px; padding: 10px; border: 1px solid #29292f; border-radius: 3px; background: #0d0d0f; }
.emotion-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid #303039; border-radius: 8px; color: #c1a2ff; background: #17131d; }
.emotion-icon .lucide-icon { width: 19px; height: 19px; }
.emotion-name { font-size: 14px; }
.emotion-description { font-size: 11px; }
.emotion-head, .emotion-score, .emotion-meter, .emotion-meta { display: none !important; }
.taxonomy-disclaimer { margin: 12px 0 0; color: #767680; font-size: 11px; line-height: 1.5; }
.snapshot-section { padding: 27px 0 9px; border-bottom: 1px solid var(--library-border); }
.snapshot-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.snapshot-heading .eyebrow { color: #8ab4ff; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.snapshot-heading h2 { margin: 5px 0 4px; color: #f4f4f5; font-size: 22px; font-weight: 600; letter-spacing: -.6px; }
.snapshot-heading p { margin: 0; color: #92929a; font-size: 13px; }
.snapshot-total { display: flex; align-items: flex-end; gap: 7px; color: #888890; font-size: 12px; }
.snapshot-total b { color: #f4f4f5; font-size: 22px; line-height: 1; }
.snapshot-note { margin: 13px 0 17px; color: #767680; font-size: 11px; line-height: 1.55; }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.snapshot-panel { min-width: 0; padding: 13px 14px 11px; border: 1px solid #29292f; border-radius: 3px; background: linear-gradient(140deg, #111114, #0a0a0b); }
.snapshot-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.snapshot-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #303039; border-radius: 8px; color: #91b6ff; background: #14161c; }
.snapshot-icon .lucide-icon { width: 19px; height: 19px; }
.snapshot-panel-head h3 { margin: 0; color: #f2f2f4; font-size: 14px; font-weight: 600; }
.snapshot-panel-head p { margin: 3px 0 0; color: #777780; font-size: 11px; }
.snapshot-bars { display: grid; gap: 7px; }
.snapshot-row { display: grid; grid-template-columns: minmax(70px, .8fr) minmax(48px, 1fr) 44px; align-items: center; gap: 8px; }
.snapshot-row-label { overflow: hidden; color: #b4b4bc; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.snapshot-row-track { height: 5px; overflow: hidden; border-radius: 10px; background: #242429; }
.snapshot-row-track i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #668dff, #86adff); }
.snapshot-row b { color: #d9d9de; font-size: 11px; font-weight: 550; text-align: right; }
.snapshot-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid #242429; color: #777780; font-size: 10px; }
.latest-import-section { border-bottom: 1px solid #252529; }
.latest-import-section .directory-heading p { max-width: 780px; }
.recent-creative-masonry { margin-top: 4px; }
.library-note { margin-top: 34px; }
.workspace-footer, .library-note p { font-size: 13px; }
.creative-card-copy { padding: 12px 13px 14px; }
.creative-brand-row b { font-size: 12px; }
.creative-platform { font-size: 10px; }
.creative-card-copy > strong { font-size: 13px; }
.creative-description { font-size: 11px; }

/* Captured guide pages share the same readable content measure as the directory. */
body.gm-root main#main { padding-right: 24px; padding-left: 24px; }
body.gm-root main#main > .gm-lib-page { width: min(100%, 1380px); padding-right: 0; padding-left: 0; }
body.gm-root .library-directory { width: min(100%, 1380px); }
.shared-library-topbar nav a { font-size: 14px; }
.shared-top-link { font-size: 13px; }
.shared-library-sidebar .shared-library-brand { gap: 11px; font-size: 21px; letter-spacing: -.6px; }
.shared-brand-mark { display: grid; place-items: center; border: 1px solid #34343a; border-radius: 9px; color: #8ab4ff; background: linear-gradient(145deg, #17191f, #0b0b0c); }
.shared-brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.shared-nav-link { min-height: 48px; font-size: 14px; }
.shared-nav-link > span:first-child { display: grid; width: 20px; flex: 0 0 20px; place-items: center; color: #a1a1aa; font-size: 0; }
.shared-nav-link > span:first-child svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.shared-brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #34496e; border-radius: 11px; color: #8ab4ff; background: linear-gradient(145deg, #17294b, #0b101b); }
.shared-brand-mark svg { width: 25px; height: 25px; fill: none; stroke-width: 1.7; }
body.gm-root .library-directory h1 { font-size: clamp(38px, 4vw, 58px); }
body.gm-root .library-directory .directory-intro { font-size: 16px; }
body.gm-root .industry-card, body.gm-root .platform-card { color: #f4f4f5; }
.taxonomy-analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 18px; }
.taxonomy-analytics-card { min-height: 168px; padding: 16px; background: linear-gradient(145deg, #111114, #09090a 70%); }
.taxonomy-card-topline { display: flex; align-items: center; gap: 9px; }
.taxonomy-card-topline .taxonomy-icon { width: 36px; height: 36px; flex-basis: 36px; }
.taxonomy-card-overline { font-size: 9px; }
.taxonomy-card-title { margin-top: 13px; font-size: 19px; }
.taxonomy-card-description { max-width: 360px; margin-top: 7px; font-size: 13px; line-height: 1.5; }
.taxonomy-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; color: #9dbbff; font-size: 12px; }
.taxonomy-card-action b { font-size: 16px; font-weight: 400; }
.taxonomy-card-stat, .taxonomy-card-meter { display: none !important; }
.taxonomy-directory-note { max-width: 840px; margin: 15px 0; color: #80808a; font-size: 13px; line-height: 1.5; }
.editorial-card-type { font-size: 9px; }
.editorial-directory-card h2 { font-size: 18px; }
.editorial-directory-card p { font-size: 13px; }
.editorial-card-action { font-size: 12px; }
.local-route-kicker, .local-ad-eyebrow { font-size: 10px; }
.local-ad-heading p, .local-top-platform { font-size: 12px; }
.local-ad-total, .local-filter-list button, .local-ad-metrics span { font-size: 11px; }
.local-creative-card .creative-brand-row b { font-size: 12px; }
.local-creative-card .creative-card-copy > strong { font-size: 13px; }
.local-creative-card .creative-description { font-size: 11px; }
@media (min-width: 1800px) { .library-content { width: min(100%, var(--library-content-max)); } .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .industry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .industry-grid, .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 920px) { .pattern-sections { grid-template-columns: 1fr; } .snapshot-grid { grid-template-columns: 1fr; } .industry-grid, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .library-content { width: 100%; padding-right: 14px; padding-left: 14px; } .library-stats { flex-wrap: wrap; } .library-stats > div { min-width: 84px; padding-right: 8px; padding-left: 8px; } .industry-grid, .platform-grid, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .industry-details { min-height: 126px; padding: 12px; } .industry-icon { width: 34px; height: 34px; flex-basis: 34px; } .industry-logos img, .industry-logos i { width: 23px; height: 23px; flex-basis: 23px; } .industry-title-row h3 { font-size: 15px; } .industry-summary { font-size: 10px; } .platform-card { min-height: 82px; gap: 9px; padding: 10px; } .platform-icon { width: 34px; height: 34px; flex-basis: 34px; } .platform-info b { font-size: 13px; } .platform-info small { font-size: 10px; } .platform-local-count { font-size: 9px; } .emotion-grid { grid-template-columns: 1fr; } .snapshot-heading { align-items: flex-start; } .snapshot-heading p { max-width: 30ch; } body.gm-root main#main { padding-right: 14px; padding-left: 14px; } body.gm-root main#main > .gm-lib-page, body.gm-root .library-directory { width: 100%; } .taxonomy-analytics-grid { grid-template-columns: 1fr; } }

/* High contrast and clear reading measure across captured editorial routes. */
.shared-library-brand { gap: 11px; font-size: 21px; letter-spacing: -.6px; }
.gm-root main#main .bf-ed > header.gm-hero { color: #e4e4e7 !important; background: #050505 !important; }
.gm-root main#main .bf-ed > header.gm-hero h1,
.gm-root main#main .bf-ed > header.gm-hero .gm-kicker { color: #f4f4f5 !important; }
.gm-root main#main .bf-ed > header.gm-hero .gm-hero-sub,
.gm-root main#main .bf-ed > header.gm-hero .gm-dek,
.gm-root main#main .bf-ed > header.gm-hero .hint { color: #a1a1aa !important; }
.gm-root main#main .bf-ed .bf-band,
.gm-root main#main .bf-ed > section.bf-band:first-of-type { --bf-card:#111112; --bf-alt:#19191c; --bf-line:#29292f; --bf-line-hi:#4c6fae; --bf-accent:#8ab4ff; --bf-heading:#f4f4f5; --bf-body:#d4d4d8; --bf-muted:#a1a1aa; --bf-faint:#92929a; color:#a1a1aa !important; background-color:#080809 !important; background-image:none !important; }
.gm-root main#main .bf-ed .bf-band h2,
.gm-root main#main .bf-ed .bf-band h3 { color:#f4f4f5 !important; }
.gm-root main#main .bf-ed .bf-band p,
.gm-root main#main .bf-ed .bf-band td { color:#b4b4bc !important; }
.gm-root main#main .bf-ed .bf-band .bf-answer,
.gm-root main#main .bf-ed .bf-band .bf-row,
.gm-root main#main .bf-ed .bf-band .bf-card { border-color:#29292f !important; background:#111112 !important; }
.gm-root main#main .lib-light { color:#d4d4d8 !important; background:#050505 !important; }
.gm-root main#main .lib-light [class*="bg-brand-bg-card"],
.gm-root main#main .lib-light [class*="bg-white"] { background:#111112 !important; }
.gm-root main#main .lib-light [class*="text-brand-heading"],
.gm-root main#main .lib-light h1,
.gm-root main#main .lib-light h2,
.gm-root main#main .lib-light h3 { color:#f4f4f5 !important; }
.gm-root main#main .lib-light [class*="text-brand-body"] { color:#d4d4d8 !important; }
.gm-root main#main .lib-light [class*="text-brand-subtext"],
.gm-root main#main .lib-light [class*="text-brand-label"] { color:#a1a1aa !important; }
.gm-root main#main .lib-light [class*="border-"] { border-color:#29292f !important; }
.taxonomy-detail-kicker { display:flex; align-items:center; gap:10px; margin:0 0 14px; color:#8ab4ff; font:700 12px/1.3 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.taxonomy-icon-svg { display:block; width:24px; height:24px; flex:0 0 24px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; }
.taxonomy-seo-content { width:min(100%, 1040px); margin:0 auto; padding:20px 24px 60px; color:#d4d4d8; }
.taxonomy-detail-intro { padding:28px; border:1px solid #29292f; background:linear-gradient(145deg,#111216,#09090a 70%); }
.taxonomy-detail-intro h2,.taxonomy-detail-next h2 { margin:8px 0 12px; color:#f4f4f5; font:600 clamp(23px,2.4vw,34px)/1.15 Inter,system-ui,sans-serif; letter-spacing:-.8px; }
.taxonomy-detail-intro > p:not(.taxonomy-detail-overline) { max-width:70ch; margin:0; color:#c1c1c9; font-size:16px; line-height:1.7; }
.taxonomy-detail-overline { margin:0; color:#8ab4ff; font:700 10px/1.4 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.taxonomy-data-note { margin-top:18px !important; padding-top:14px; border-top:1px solid #29292f; color:#90909a !important; font-size:13px !important; }
.taxonomy-detail-next { display:grid; grid-template-columns:48px minmax(0,1fr); gap:17px; align-items:start; margin-top:14px; padding:24px 28px; border:1px solid #29292f; background:#0d0d0f; }
.taxonomy-detail-next-icon { display:grid; width:46px; height:46px; place-items:center; border:1px solid #303039; border-radius:10px; color:#9bbcff; background:#15171c; }
.taxonomy-detail-next-icon .taxonomy-icon-svg { width:22px; height:22px; }
.taxonomy-detail-next p:not(.taxonomy-detail-overline) { max-width:75ch; margin:0; color:#a1a1aa; font-size:14px; line-height:1.7; }
.taxonomy-detail-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.taxonomy-detail-links a { display:inline-flex; min-height:40px; align-items:center; gap:10px; padding:0 14px; border:1px solid #34343a; color:#dbe8ff; background:#15171c; font-size:13px; font-weight:550; }
.taxonomy-detail-links a:hover { border-color:#668ee0; background:#1b2030; }
@media(max-width:680px) { .taxonomy-seo-content { padding:14px 0 36px; } .taxonomy-detail-intro,.taxonomy-detail-next { padding:18px; } .taxonomy-detail-next { grid-template-columns:36px minmax(0,1fr); gap:12px; } .taxonomy-detail-next-icon { width:36px; height:36px; } .taxonomy-detail-intro > p:not(.taxonomy-detail-overline) { font-size:14px; } }

/* Readable catalog sizing and data-backed detail pages. */
.library-content { width:min(100%, 1480px); }
.shared-library-topbar nav a { font-size:16px; }
.shared-top-link { font-size:15px; }
.shared-library-sidebar .shared-library-brand { font-size:22px; }
.shared-nav-link { min-height:50px; font-size:16px; }
.shared-nav-link > span:first-child svg { width:20px; height:20px; stroke-width:1.8; }
.shared-library-nav small { font-size:13px; }
.shared-library-search input { font-size:15px; }
.shared-sidebar-bottom a { font-size:14px; }
.shared-sidebar-bottom > span { font-size:12px; }
.industry-details { min-height:162px; padding:19px; }
.industry-icon { width:44px; height:44px; flex-basis:44px; }
.industry-icon .lucide-icon { width:24px; height:24px; }
.industry-logos img,.industry-logos i { width:34px; height:34px; flex-basis:34px; }
.industry-title-row h3 { font-size:20px; }
.industry-summary { font-size:13px; }
.platform-card { min-height:104px; gap:15px; padding:17px; }
.platform-icon { width:50px; height:50px; flex-basis:50px; }
.platform-icon svg { width:38px; height:38px; }
.platform-info b { font-size:17px; }
.platform-info small { font-size:13px; }
.platform-local-count { font-size:11px; }
.taxonomy-card-title { font-size:20px; }
.taxonomy-card-description { font-size:14px; }
.editorial-directory-card h2 { font-size:20px; }
.editorial-directory-card p { font-size:14px; }
.creative-card-copy > strong { font-size:15px; }
.creative-description { font-size:13px; }

.local-route-mount { padding:0 0 70px !important; }
.local-route-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:11px; margin:0 0 34px; color:#777780; font-size:14px; }
.local-route-breadcrumb a { color:#a9c7ff; text-decoration:none; }
.local-route-breadcrumb a:hover { color:#fff; }
.local-route-breadcrumb [aria-current="page"] { color:#d4d4d8; }
.local-route-overview { padding:0 0 28px; border-bottom:1px solid #29292f; }
.local-route-kicker { color:#9bbcff; font-size:12px; letter-spacing:.12em; }
.local-route-title-row { gap:18px; margin-top:17px; }
.local-route-title-row h1 { font-size:clamp(38px,4vw,58px) !important; letter-spacing:-1.9px !important; line-height:1.04 !important; }
.local-route-icon { width:58px; height:58px; flex:0 0 58px; border-color:#31343d; border-radius:12px; background:linear-gradient(145deg,#171a22,#0b0c0f); }
.local-route-icon svg { width:39px; height:39px; }
.local-route-icon .lucide-icon { width:27px; height:27px; }
.local-route-intro { max-width:780px; margin-top:15px; font-size:17px; line-height:1.65; }
.local-route-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:26px; border:1px solid #29292f; background:#0b0b0d; }
.local-route-stat-grid>div { display:flex; min-height:83px; flex-direction:column; justify-content:center; gap:5px; padding:13px 18px; border-right:1px solid #29292f; }
.local-route-stat-grid>div:last-child { border-right:0; }
.local-route-stat-grid strong { color:#f4f4f5; font-size:24px; font-weight:650; letter-spacing:-.5px; }
.local-route-stat-grid span { color:#9a9aa2; font-size:12px; }
.local-analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:24px 0 12px; }
.local-chart-card { min-width:0; padding:20px; border:1px solid #29292f; background:linear-gradient(145deg,#111114,#0b0b0d 75%); }
.local-chart-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.local-chart-heading>div>span { color:#91b4ff; font-size:10px; font-weight:700; letter-spacing:.12em; }
.local-chart-heading h2 { margin:5px 0 0; color:#f4f4f5; font-size:20px; font-weight:600; letter-spacing:-.4px; }
.local-chart-heading>a { display:flex; align-items:center; gap:8px; color:#b7cfff; font-size:13px; text-decoration:none; white-space:nowrap; }
.local-chart-total { padding:6px 8px; border:1px solid #33343b; color:#d4d4d8; font-size:12px; white-space:nowrap; }
.local-format-stack { display:flex; height:10px; gap:3px; margin:24px 0 17px; overflow:hidden; background:#202025; }
.local-format-stack span { width:var(--format-share); background:var(--format-color); }
.local-chart-rows { display:grid; gap:12px; }
.local-chart-row { display:grid; grid-template-columns:78px minmax(30px,1fr) 54px; align-items:center; gap:10px; }
.local-chart-label { display:flex; align-items:center; gap:8px; color:#d4d4d8; font-size:14px; }
.local-chart-label i { width:9px; height:9px; border-radius:50%; background:var(--row-color); }
.local-chart-bar,.local-brand-bar { display:block; height:6px; overflow:hidden; background:#25252b; }
.local-chart-bar i,.local-brand-bar i { display:block; width:var(--bar-width); height:100%; background:var(--row-color,#8ab4ff); }
.local-chart-row>b { color:#f4f4f5; font-size:14px; font-weight:600; text-align:right; }
.local-chart-footnote { margin:17px 0 0; color:#83838c; font-size:12px; line-height:1.5; }
.local-brand-chart { display:grid; gap:8px; margin-top:17px; }
.local-brand-row { display:grid; grid-template-columns:24px 34px minmax(90px,1fr) minmax(40px,1.1fr) 42px; align-items:center; gap:10px; color:#e4e4e7; text-decoration:none; }
.local-brand-rank { color:#72727c; font:500 11px/1 Inter,system-ui,sans-serif; }
.local-brand-logo { display:grid; width:32px; height:32px; place-items:center; overflow:hidden; border:1px solid #33343b; border-radius:7px; color:#dbe8ff; background:#17191e; }
.local-brand-logo img { width:100%; height:100%; object-fit:contain; }
.local-brand-logo>span { font-size:14px; font-weight:650; }
.local-brand-name { overflow:hidden; color:#e4e4e7; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.local-brand-bar { height:5px; }
.local-brand-bar i { background:#7fa5ff; }
.local-brand-row>b { color:#d4d4d8; font-size:13px; font-weight:550; text-align:right; }
.local-chart-empty { margin:20px 0; color:#a1a1aa; font-size:14px; }
.local-snapshot-note { max-width:900px; margin:18px 0 30px; padding-left:14px; border-left:2px solid #4b78c7; color:#9b9ba3; font-size:13px; line-height:1.6; }
.local-ad-dataset { margin-top:26px; padding:0 0 36px; }
.local-ad-heading { margin-bottom:18px; }
.local-ad-eyebrow { font-size:11px; }
.local-ad-heading h2 { font-size:25px; }
.local-ad-heading p { font-size:14px; }
.local-ad-total { font-size:13px; }
.local-ad-toolbar { margin:16px 0; }
.local-filter-list { gap:7px; }
.local-filter-list button { min-height:36px; padding:0 12px; font-size:13px; }
.local-top-platform { font-size:13px; }
.local-creative-grid { gap:16px; }
.local-creative-card .creative-brand-row b { font-size:14px; }
.local-creative-card .creative-card-copy>strong { font-size:15px; line-height:1.45; }
.local-creative-card .creative-description { font-size:13px; line-height:1.5; }
.local-empty { display:flex; flex-direction:column; align-items:center; gap:9px; padding:36px; font-size:15px; }
.local-empty strong { color:#f4f4f5; font-size:20px; }
.local-empty span { color:#a1a1aa; }
.local-empty a { margin-top:5px; color:#a9c7ff; font-size:14px; }

.taxonomy-page { min-height:calc(100vh - 130px); padding-bottom:64px !important; }
.taxonomy-page-header { padding:5px 0 32px; border-bottom:1px solid #29292f; }
.taxonomy-page-title { display:flex; align-items:center; gap:18px; }
.taxonomy-page-icon,.taxonomy-explainer-icon,.taxonomy-data-callout-icon { display:grid; width:60px; height:60px; flex:0 0 60px; place-items:center; border:1px solid #343943; border-radius:14px; color:#9bbcff; background:linear-gradient(145deg,#171a22,#0b0c0f); }
.taxonomy-page-icon .lucide-icon { width:29px; height:29px; }
.taxonomy-page-title h1 { margin:8px 0 0; color:#f4f4f5; font-size:clamp(38px,4vw,58px); font-weight:650; letter-spacing:-1.8px; line-height:1.08; }
.taxonomy-page-lede { max-width:850px; margin:22px 0 0; color:#b4b4bc; font-size:19px; line-height:1.65; }
.taxonomy-explainer { display:grid; grid-template-columns:60px minmax(0,1fr); gap:19px; align-items:start; margin:25px 0 16px; padding:25px; border:1px solid #29292f; background:linear-gradient(145deg,#111216,#09090a 75%); }
.taxonomy-explainer h2,.taxonomy-cues h2,.taxonomy-next-step h2 { margin:5px 0 10px; color:#f4f4f5; font-size:24px; font-weight:600; letter-spacing:-.6px; line-height:1.25; }
.taxonomy-explainer p:not(.taxonomy-detail-overline),.taxonomy-next-step p:not(.taxonomy-detail-overline) { max-width:78ch; margin:0; color:#b4b4bc; font-size:16px; line-height:1.7; }
.taxonomy-detail-overline { font-size:11px; }
.taxonomy-cues { padding:24px 25px; border:1px solid #29292f; background:#0d0d0f; }
.taxonomy-cues-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.taxonomy-checklist-mark { color:#5d6e8c; font:600 28px/1 Inter,system-ui,sans-serif; }
.taxonomy-cues ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:15px 0 0; padding:0; list-style:none; }
.taxonomy-cues li { display:flex; min-height:68px; align-items:flex-start; gap:11px; padding:15px; border:1px solid #2a2a30; color:#d4d4d8; background:#111114; font-size:14px; line-height:1.5; }
.taxonomy-cues li .lucide-icon { flex:0 0 17px; margin-top:1px; color:#8ab4ff; }
.taxonomy-data-callout { display:grid; grid-template-columns:38px minmax(0,1fr); gap:13px; align-items:start; margin-top:16px; padding:19px 21px; border:1px solid #30333b; background:#101114; }
.taxonomy-data-callout-icon { width:36px; height:36px; flex-basis:36px; border-radius:9px; }
.taxonomy-data-callout strong { color:#e4e4e7; font-size:15px; }
.taxonomy-data-callout p { margin:5px 0 0; color:#9fa0a8; font-size:13px; line-height:1.6; }
.taxonomy-next-step { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; padding:23px 25px; border:1px solid #30343d; background:linear-gradient(110deg,#0c0d10,#121722); }
.taxonomy-next-step h2 { margin-top:6px; }
.taxonomy-next-step a,.taxonomy-related a { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; color:#c3d8ff; font-size:14px; text-decoration:none; }
.taxonomy-next-step a { min-height:44px; padding:0 15px; border:1px solid #3a527a; background:#132039; white-space:nowrap; }
.taxonomy-next-step a:hover,.taxonomy-related a:hover { color:#fff; border-color:#668ee0; }
.taxonomy-related { display:flex; flex-wrap:wrap; gap:10px; margin-top:15px; }
.taxonomy-related a { min-height:38px; padding:0 12px; border:1px solid #29292f; color:#aebfdf; background:#0c0c0e; font-size:13px; }

@media (min-width:1600px) { .library-content { width:min(100%,1480px); } }
@media (max-width:1050px) { .local-analytics-grid { grid-template-columns:1fr; } .taxonomy-cues ul { grid-template-columns:1fr; } }
@media (max-width:680px) {
  .shared-nav-link { min-height:46px; font-size:15px; }
  .local-route-breadcrumb { margin-bottom:24px; font-size:12px; }
  .local-route-title-row { align-items:flex-start; gap:12px; }
  .local-route-title-row h1 { font-size:36px !important; letter-spacing:-1.2px !important; }
  .local-route-icon { width:46px; height:46px; flex-basis:46px; }
  .local-route-icon svg { width:31px; height:31px; }
  .local-route-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .local-route-stat-grid>div:nth-child(2) { border-right:0; }
  .local-route-stat-grid>div:nth-child(-n+2) { border-bottom:1px solid #29292f; }
  .local-chart-card { padding:15px; }
  .local-brand-row { grid-template-columns:20px 30px minmax(74px,1fr) 40px; gap:7px; }
  .local-brand-bar { display:none; }
  .local-ad-heading h2 { font-size:20px; }
  .taxonomy-page-title { align-items:flex-start; gap:12px; }
  .taxonomy-page-title h1 { font-size:36px; letter-spacing:-1.1px; }
  .taxonomy-page-icon { width:48px; height:48px; flex-basis:48px; border-radius:11px; }
  .taxonomy-page-lede { font-size:16px; }
  .taxonomy-explainer { grid-template-columns:42px minmax(0,1fr); gap:12px; padding:17px; }
  .taxonomy-explainer-icon { width:42px; height:42px; flex-basis:42px; }
  .taxonomy-explainer h2,.taxonomy-cues h2,.taxonomy-next-step h2 { font-size:20px; }
  .taxonomy-next-step { align-items:flex-start; flex-direction:column; padding:18px; }
}

/* Home tabs and taxonomy cards: keep the directory direct and Toolfolio-like. */
body.library-home:not(.library-latest-view) #latest-additions { display: none !important; }
body.library-home.library-latest-view .library-content > :not(#latest-additions):not(.ai-search-dock) { display: none !important; }
body.library-home.library-latest-view #latest-additions { display: block !important; margin-top: 30px; }
body.library-home.library-latest-view #latest-additions .directory-heading h2 { font-size: 26px; }

.industry-card,
.industry-card:hover {
  position: relative;
  overflow: hidden;
  border: 1px solid #29292d;
  border-radius: 2px;
  background: #0b0b0c;
  box-shadow: none;
  transform: none;
}
.industry-card::before,
.industry-card::after { display: none !important; }
.industry-card:hover { border-color: #55555b; background: #111113; }
.industry-details { min-height: 145px; padding: 16px; }
.industry-card-top { min-height: 34px; gap: 10px; }
.industry-logos { flex: 1; justify-content: flex-start; margin: 0; }
.industry-logos img,
.industry-logos i {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  margin-left: -4px;
  border: 1px solid #27272b;
  border-radius: 3px;
  background: #171719;
}
.industry-logos img:first-child,
.industry-logos i:first-child { margin-left: 0; }
.industry-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  color: #8f9098;
  background: transparent;
}
.industry-icon .lucide-icon { width: 22px; height: 22px; }
.industry-title-row { padding-top: 11px; }
.industry-title-row h3 { font-size: 18px; line-height: 1.3; }
.industry-summary { margin-top: 5px; font-size: 12px; }
.industry-summary b { color: #d7d7dc; }
.industry-arrow { display: none !important; }

body.library-home .taxonomy-section { margin-top: 44px; scroll-margin-top: calc(var(--workspace-topbar-height) + 14px); }
body.library-home .taxonomy-section .directory-heading { margin-bottom: 16px; }
body.library-home .taxonomy-section .directory-heading h2 { font-size: 23px; }
body.library-home .taxonomy-section .directory-heading p { max-width: 60ch; }
body.library-home .tag-list,
body.library-home .emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
body.library-home .hook-tag,
body.library-home .emotion-card {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid #29292d;
  border-radius: 2px;
  border-bottom: 4px solid #28282b;
  background: #151517;
  box-shadow: 0 2px 0 rgb(255 255 255 / 3%);
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
body.library-home .hook-tag:hover,
body.library-home .emotion-card:hover { border-color: #55555b; border-bottom-color: #55555b; background: #1a1a1d; transform: translateY(-1px); }
body.library-home .hook-copy,
body.library-home .emotion-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
body.library-home .hook-name,
body.library-home .emotion-name { color: #f2f2f3; font-size: 20px; font-weight: 600; line-height: 1.3; white-space: normal; }
body.library-home .hook-description,
body.library-home .emotion-description { color: #a2a2aa; font-size: 14px; line-height: 1.5; }
body.library-home .taxonomy-icon,
body.library-home .emotion-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #c2c2c8;
  background: transparent;
}
body.library-home .taxonomy-icon .lucide-icon,
body.library-home .emotion-icon .lucide-icon { width: 21px; height: 21px; }
body.library-home .hook-arrow,
body.library-home .emotion-arrow { display: none !important; }
body.library-home .taxonomy-disclaimer { margin-top: 12px; font-size: 12px; }

.snapshot-section { margin-top: 32px; padding-top: 25px; }
.snapshot-heading h2 { font-size: 22px; }

@media (max-width: 680px) {
  .industry-details { min-height: 126px; padding: 12px; }
  .industry-title-row h3 { font-size: 16px; }
  .industry-summary { font-size: 11px; }
  body.library-home .tag-list,
  body.library-home .emotion-grid { grid-template-columns: 1fr; }
  body.library-home .tag-list,
  body.library-home .emotion-grid { grid-template-columns: 1fr; }
  body.library-home .hook-tag,
  body.library-home .emotion-card { min-height: 82px; padding: 13px; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body.library-home .tag-list,
  body.library-home .emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared library shell, centered canvas, theme control, and local creative preview. */
:root {
  color-scheme: dark;
  --canvas-width: 1480px;
  --surface-0: #050505;
  --surface-1: #0d0d0f;
  --surface-2: #151517;
  --line: #29292f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --subtle: #777780;
}
body.library-home .library-content { width: min(100%, var(--canvas-width)); }
body.gm-root main#main > .gm-lib-page,
body.gm-root .library-directory,
body.gm-root .local-route-mount { width: min(100%, var(--canvas-width)); }
body.gm-root main#main { padding-right: clamp(18px, 3vw, 48px); padding-left: clamp(18px, 3vw, 48px); }
body.gm-root .library-directory { padding: 28px 0 72px; }

.shared-sidebar-bottom { gap: 7px; }
.theme-toggle {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid var(--library-border, #29292f);
  border-radius: 3px;
  color: var(--library-muted, #a1a1aa);
  background: var(--library-panel, #111112);
  font: 500 12px/1 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--library-text, #f4f4f5); border-color: #55555c; }
.theme-toggle-icon { display: grid; width: 18px; height: 18px; place-items: center; color: #8ab4ff; font-size: 17px; }
.shared-sidebar-scrim { display: none; }
.shared-sidebar-toggle { display: none; }

button.creative-card {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.creative-card:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 3px; }
.creative-preview-dialog {
  position: fixed;
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--library-border, #29292f);
  border-radius: 6px;
  color: var(--library-text, #f4f4f5);
  background: var(--library-panel, #111112);
  box-shadow: 0 24px 90px rgb(0 0 0 / 55%);
}
.creative-preview-dialog::backdrop { background: rgb(0 0 0 / 76%); backdrop-filter: blur(3px); }
.creative-preview-close { position: sticky; z-index: 2; top: 12px; float: right; width: 36px; height: 36px; margin: 12px 12px -48px 0; border: 1px solid var(--library-border, #29292f); border-radius: 4px; color: inherit; background: var(--library-panel, #111112); font-size: 24px; line-height: 1; cursor: pointer; }
.creative-preview-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); min-height: 340px; }
.creative-preview-body > .creative-visual { min-height: 360px; background: #09090a; }
.creative-preview-body > .creative-visual img, .creative-preview-body > .creative-visual video { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.creative-preview-copy { align-self: center; padding: 38px; }
.creative-preview-copy h2 { margin: 0; color: var(--library-text, #f4f4f5); font-size: 25px; letter-spacing: -.6px; }
.creative-preview-copy h3 { margin: 22px 0 8px; color: var(--library-text, #f4f4f5); font-size: 19px; line-height: 1.4; }
.creative-preview-copy p { color: var(--library-muted, #a1a1aa); font-size: 14px; line-height: 1.65; }
.creative-preview-copy .creative-preview-meta { margin: 8px 0 0; color: #8ab4ff; font-size: 12px; }
.creative-preview-copy .creative-preview-source { margin-top: 22px; font-size: 11px; }
.creative-preview-brand-link { display: inline-flex; margin-top: 12px; color: #a9c7ff; font-size: 13px; text-decoration: none; }
.creative-preview-brand-link:hover { color: #fff; }

/* Toolfolio's catalog rhythm: simple cards, four compact logos, no decorative corner rings. */
.industry-card::before, .industry-card::after { content: none !important; display: none !important; }
.industry-card { background-image: none !important; }
.industry-details { display: flex; min-height: 146px; flex-direction: column; }
.industry-card-top { min-height: 32px; }
.industry-logos { min-height: 28px; }
.industry-logos img, .industry-logos i { border: 0 !important; box-shadow: none !important; }
.industry-icon { border: 0 !important; border-radius: 0 !important; color: #a1a1aa !important; background: transparent !important; }
.industry-card h3 { font-size: 19px; }
.industry-summary { font-size: 12px; }
body.library-home .hook-tag,
body.library-home .emotion-card { min-height: 122px; border-bottom-width: 1px; box-shadow: none; }
body.library-home .hook-name,
body.library-home .emotion-name { font-size: 19px; }

@media (max-width: 760px) {
  body.shared-nav-open::after { content: none !important; display: none !important; }
  .shared-sidebar-toggle { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; padding: 0; border: 1px solid #29292f; border-radius: 3px; color: #e4e4e7; background: #111112; font-size: 18px; }
  .shared-library-topbar nav { gap: 14px; }
  .shared-library-topbar nav a { font-size: 12px; }
  .shared-library-topbar > div { margin-left: auto; }
  .shared-top-link { display: none !important; }
  .shared-login { min-height: 34px !important; padding: 0 10px !important; font-size: 11px !important; }
  .shared-library-sidebar { z-index: 120; transform: translateX(-100%); transition: transform .2s ease; }
  body.shared-nav-open .shared-library-sidebar { transform: translateX(0); }
  .shared-sidebar-scrim { position: fixed; z-index: 115; inset: 0; display: none; border: 0; background: rgb(0 0 0 / 55%); }
  body.shared-nav-open .shared-sidebar-scrim { display: block; }
  body.gm-root main#main { margin-left: 0; padding: 58px 16px 32px; }
  .creative-preview-body { grid-template-columns: 1fr; }
  .creative-preview-body > .creative-visual { min-height: 250px; max-height: 48vh; }
  .creative-preview-copy { padding: 22px; }
}

/* System preference is the default; saved explicit choices override it. */
html[data-ads-theme="light"] { color-scheme: light; }
html[data-ads-theme="light"] body,
html[data-ads-theme="light"] body.library-home { color: #1b1b1e !important; background: #f7f7f5 !important; }
html[data-ads-theme="light"] .library-sidebar,
html[data-ads-theme="light"] .shared-library-sidebar { color: #202024; border-color: #dedee2; background: #fff; }
html[data-ads-theme="light"] .shared-library-brand,
html[data-ads-theme="light"] .shared-library-topbar,
html[data-ads-theme="light"] .workspace-topbar { color: #202024; border-color: #dedee2; background: rgb(255 255 255 / 94%); }
html[data-ads-theme="light"] .shared-library-topbar nav a,
html[data-ads-theme="light"] .shared-nav-link,
html[data-ads-theme="light"] .sidebar-link { color: #56565f; }
html[data-ads-theme="light"] .shared-nav-link:hover,
html[data-ads-theme="light"] .sidebar-link:hover { color: #141417; background: #f1f1f2; }
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"],
html[data-ads-theme="light"] .sidebar-link.active { color: #141417; border-color: #202024; background: #ededee; }
html[data-ads-theme="light"] .shared-sidebar-bottom,
html[data-ads-theme="light"] .sidebar-bottom { border-color: #dedee2; }
html[data-ads-theme="light"] .shared-sidebar-bottom > a,
html[data-ads-theme="light"] .sidebar-bottom a { color: #202024; }
html[data-ads-theme="light"] .shared-library-search input,
html[data-ads-theme="light"] .sidebar-search input { color: #202024; }
html[data-ads-theme="light"] .shared-library-search input::placeholder,
html[data-ads-theme="light"] .sidebar-search input::placeholder { color: #777780; }
html[data-ads-theme="light"] .shared-library-search kbd,
html[data-ads-theme="light"] .sidebar-search kbd { color: #55555d; background: #ededee; }
html[data-ads-theme="light"] .library-workspace,
html[data-ads-theme="light"] .library-main,
html[data-ads-theme="light"] body.gm-root main#main,
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page { color: #252529 !important; background: #f7f7f5 !important; }
html[data-ads-theme="light"] .library-overview h1,
html[data-ads-theme="light"] .directory-heading h2,
html[data-ads-theme="light"] .brand-name,
html[data-ads-theme="light"] .industry-card h3,
html[data-ads-theme="light"] .hook-name,
html[data-ads-theme="light"] .emotion-name,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero h1,
html[data-ads-theme="light"] body.gm-root .library-directory h1 { color: #19191c !important; }
html[data-ads-theme="light"] .brand-card,
html[data-ads-theme="light"] .industry-card,
html[data-ads-theme="light"] .platform-card,
html[data-ads-theme="light"] .editorial-directory-card,
html[data-ads-theme="light"] .taxonomy-analytics-card,
html[data-ads-theme="light"] .hook-tag,
html[data-ads-theme="light"] .emotion-card,
html[data-ads-theme="light"] .library-link,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-stat,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .lib-summary { color: #252529 !important; border-color: #dedee2 !important; background: #fff !important; }
html[data-ads-theme="light"] .brand-name,
html[data-ads-theme="light"] .industry-title-row h3,
html[data-ads-theme="light"] .platform-info b,
html[data-ads-theme="light"] .hook-name,
html[data-ads-theme="light"] .emotion-name { color: #19191c !important; }
html[data-ads-theme="light"] .brand-industry,
html[data-ads-theme="light"] .brand-stats,
html[data-ads-theme="light"] .industry-summary,
html[data-ads-theme="light"] .platform-info small,
html[data-ads-theme="light"] .hook-description,
html[data-ads-theme="light"] .emotion-description,
html[data-ads-theme="light"] .library-overview p,
html[data-ads-theme="light"] .directory-heading p,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero p,
html[data-ads-theme="light"] body.gm-root .library-directory .directory-intro { color: #5d5d65 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page .js-ad-card { color: #252529 !important; border-color: #dedee2 !important; background: #fff !important; }
html[data-ads-theme="light"] .creative-preview-dialog { color: #202024; border-color: #dedee2; background: #fff; }
html[data-ads-theme="light"] .creative-preview-copy h2,
html[data-ads-theme="light"] .creative-preview-copy h3 { color: #19191c; }
html[data-ads-theme="light"] .creative-preview-copy p { color: #5d5d65; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page .lib-toc a,
html[data-ads-theme="light"] body.gm-root .gm-lib-page details.bg-brand-bg-card { color: #252529 !important; border-color: #dedee2 !important; background: #fff !important; }
/* Taxonomy cards are generated by library-browse.js and need their own light palette. */
html[data-ads-theme="light"] .taxonomy-analytics-card { color: #252529 !important; border-color: #dedee2 !important; background: #fff !important; }
html[data-ads-theme="light"] .taxonomy-card-title { color: #19191c !important; }
html[data-ads-theme="light"] .taxonomy-card-description { color: #5d5d65 !important; }
html[data-ads-theme="light"] .taxonomy-card-overline,
html[data-ads-theme="light"] .taxonomy-card-action,
html[data-ads-theme="light"] .taxonomy-card-arrow,
html[data-ads-theme="light"] .taxonomy-score { color: #315eaa !important; }
html[data-ads-theme="light"] .taxonomy-icon { color: #356ad3 !important; border-color: #d7e1f3 !important; background: #f0f4fb !important; }
html[data-ads-theme="light"] .taxonomy-card-stat { color: #66666e !important; }
html[data-ads-theme="light"] .taxonomy-card-stat b { color: #252529 !important; }
html[data-ads-theme="light"] .taxonomy-card-meter { background: #e5e5e8 !important; }
html[data-ads-theme="light"] .taxonomy-analytics-card:hover { border-color: #b8c5dc !important; background: #fff !important; }
html[data-ads-theme="light"] .editorial-directory-card h2 { color: #19191c !important; }
html[data-ads-theme="light"] .editorial-directory-card p { color: #5d5d65 !important; }
html[data-ads-theme="light"] .editorial-card-type,
html[data-ads-theme="light"] .editorial-card-action { color: #315eaa !important; }
html[data-ads-theme="light"] .local-route-title-row h1,
html[data-ads-theme="light"] .local-ad-heading h2 { color: #19191c !important; }
html[data-ads-theme="light"] .local-route-intro,
html[data-ads-theme="light"] .local-ad-heading p { color: #5d5d65 !important; }
html[data-ads-theme="light"] .local-ad-dataset { color: #252529 !important; }
html[data-ads-theme="light"] .local-ad-metrics { border-color: #dedee2 !important; background: #fff !important; }
html[data-ads-theme="light"] .local-ad-metrics > div { border-color: #dedee2 !important; }
html[data-ads-theme="light"] .local-ad-metrics strong,
html[data-ads-theme="light"] .local-ad-metrics b { color: #19191c !important; }
html[data-ads-theme="light"] .local-ad-metrics span,
html[data-ads-theme="light"] .local-ad-metrics small { color: #5d5d65 !important; }

/* The creative archive is a masonry feed: each image keeps its own aspect ratio. */
body.library-home .creative-masonry {
  display: block;
  column-count: 4;
  column-gap: 14px;
  column-fill: balance;
}
body.library-home .creative-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  break-inside: avoid;
  vertical-align: top;
}
body.library-home .creative-card[hidden] { display: none !important; }
body.library-home .creative-visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
}
body.library-home .creative-visual > img,
body.library-home .creative-visual > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
body.library-home .creative-card:hover .creative-visual > img { transform: none; }
body.library-home .creative-card.source-adfolio .creative-visual { aspect-ratio: auto; }
body.library-home .creative-card.source-adfolio .creative-visual > img { object-fit: contain; }
body.library-home .creative-fallback-mark { margin: 30px auto; }
body.library-home .creative-card-copy > strong,
body.library-home .creative-description {
  display: block;
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
}
body.library-home .creative-description { margin-top: 6px; }
@media (max-width: 1280px) { body.library-home .creative-masonry { column-count: 3; } }
@media (max-width: 920px) { body.library-home .creative-masonry { column-count: 2; column-gap: 10px; } }
@media (max-width: 520px) { body.library-home .creative-masonry { column-count: 1; } }

/* Floating search stays beneath the workspace tabs while the library scrolls. */
.ai-search-dock {
  position: sticky;
  z-index: 45;
  top: calc(var(--workspace-topbar-height) + 9px);
  width: min(900px, 100%);
  margin: 14px auto 6px;
  padding: 10px 12px 9px;
  border: 1px solid #303039;
  border-radius: 8px;
  background: rgb(15 15 18 / 94%);
  box-shadow: 0 12px 35px rgb(0 0 0 / 34%);
  backdrop-filter: blur(18px);
}
.ai-search-heading { display: flex; align-items: center; gap: 9px; margin: 0 3px 8px; }
.ai-search-mark { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #34496e; border-radius: 8px; color: #a8c4ff; background: linear-gradient(145deg, #1a2a49, #11151f); font-size: 16px; }
.ai-search-heading > div, .ai-chat-header > div { display: grid; gap: 2px; }
.ai-search-heading strong, .ai-chat-header strong { color: #f3f3f5; font-size: 12px; font-weight: 650; }
.ai-search-heading > div > span, .ai-chat-header > div > span { color: #8a8a94; font-size: 10px; }
.ai-search-grounding { margin-left: auto; color: #84848e; font-size: 10px; }
.ai-search-form { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border: 1px solid #36363e; border-radius: 6px; background: #08080a; }
.ai-search-glyph { color: #9ebeff; font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.ai-search-form input, .ai-chat-form input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #f4f4f5; background: transparent; font: 500 13px/1.4 Inter, system-ui, sans-serif; }
.ai-search-form input::placeholder, .ai-chat-form input::placeholder { color: #777780; opacity: 1; }
.ai-search-form kbd { padding: 5px 6px; border-radius: 3px; color: #a1a1aa; background: #202024; font: 500 9px/1 Inter, system-ui, sans-serif; white-space: nowrap; }
.ai-search-form > button { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #4b7ff0; border-radius: 4px; color: #fff; background: #1464f6; font: 600 11px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.ai-search-form > button:hover { background: #2d78ff; }
.ai-search-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 2px 0; }
.ai-search-prompts button { padding: 5px 8px; border: 1px solid #2a2a31; border-radius: 999px; color: #a5a5ae; background: #141417; font: 500 9px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.ai-search-prompts button:hover { border-color: #4b70b7; color: #c9d9ff; }
.ai-chat-panel { position: fixed; z-index: 110; right: 22px; bottom: 20px; display: flex; width: min(430px, calc(100vw - 30px)); height: min(640px, calc(100vh - 40px)); flex-direction: column; overflow: hidden; border: 1px solid #35353d; border-radius: 10px; color: #ededf0; background: #0d0d10; box-shadow: 0 24px 90px rgb(0 0 0 / 58%); }
.ai-chat-header { display: flex; min-height: 60px; align-items: center; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #29292f; background: #111114; }
.ai-chat-header > button { display: grid; width: 30px; height: 30px; place-items: center; margin-left: auto; border: 1px solid #33333a; border-radius: 4px; color: #aaaab3; background: transparent; font-size: 20px; cursor: pointer; }
.ai-chat-messages { display: flex; flex: 1; flex-direction: column; gap: 12px; overflow: auto; padding: 15px; }
.ai-chat-welcome { padding: 6px 1px 2px; }
.ai-chat-welcome h2 { margin: 12px 0 6px; color: #f3f3f5; font-size: 20px; letter-spacing: -.6px; }
.ai-chat-welcome p, .ai-chat-assistant-message > p { margin: 0; color: #b0b0b8; font-size: 12px; line-height: 1.65; }
.ai-chat-label { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: #9dbbff; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ai-chat-label > span { font-size: 13px; }
.ai-chat-user-message { max-width: 88%; align-self: flex-end; margin: 0; padding: 10px 12px; border: 1px solid #35589a; border-radius: 9px 9px 2px 9px; color: #edf3ff; background: #172541; font-size: 12px; line-height: 1.5; }
.ai-chat-assistant-message { padding: 11px; border: 1px solid #29292f; border-radius: 2px 9px 9px; background: #141417; }
.ai-chat-results { display: grid; gap: 5px; margin-top: 10px; }
.ai-chat-result { display: grid; grid-template-columns: 32px minmax(0,1fr) 14px; align-items: center; gap: 8px; padding: 6px; border: 1px solid #29292f; border-radius: 4px; color: inherit; background: #0c0c0e; text-align: left; cursor: pointer; }
.ai-chat-result:hover { border-color: #4b70b7; background: #151922; }
.ai-chat-result-mark { display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 4px; color: #c6d8ff; background: #1c2432; font-size: 12px; font-weight: 700; }
.ai-chat-result-mark img { width: 100%; height: 100%; object-fit: contain; }
.ai-chat-result > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.ai-chat-result b { color: #e5e5e9; font-size: 10px; }
.ai-chat-result small { overflow: hidden; color: #8c8c96; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-chat-result > span:last-child { color: #a5c1ff; }
.ai-chat-form { display: flex; min-height: 42px; align-items: center; gap: 8px; margin: 0 13px; padding: 4px 5px 4px 10px; border: 1px solid #36363e; border-radius: 6px; background: #08080a; }
.ai-chat-form input { font-size: 11px; }
.ai-chat-form button { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 4px; color: white; background: #1464f6; font-size: 19px; cursor: pointer; }
.ai-chat-note { margin: 8px 13px 11px; color: #71717a; font-size: 9px; line-height: 1.4; }
html[data-ads-theme="light"] .ai-search-dock { border-color: #d9d9df; background: rgb(255 255 255 / 94%); box-shadow: 0 12px 35px rgb(20 20 30 / 12%); }
html[data-ads-theme="light"] .ai-search-heading strong, html[data-ads-theme="light"] .ai-chat-header strong, html[data-ads-theme="light"] .ai-chat-welcome h2 { color: #19191c; }
html[data-ads-theme="light"] .ai-search-heading > div > span, html[data-ads-theme="light"] .ai-search-grounding { color: #66666e; }
html[data-ads-theme="light"] .ai-search-form, html[data-ads-theme="light"] .ai-chat-form { border-color: #d5d5dc; background: #fff; }
html[data-ads-theme="light"] .ai-search-form input, html[data-ads-theme="light"] .ai-chat-form input { color: #202024; }
html[data-ads-theme="light"] .ai-search-form kbd { color: #55555d; background: #ededee; }
html[data-ads-theme="light"] .ai-search-prompts button { color: #52525b; border-color: #dedee2; background: #f5f5f7; }
html[data-ads-theme="light"] .ai-chat-panel { color: #202024; border-color: #d5d5dc; background: #fff; box-shadow: 0 24px 90px rgb(20 20 30 / 25%); }
html[data-ads-theme="light"] .ai-chat-header { border-color: #e2e2e6; background: #f8f8fa; }
html[data-ads-theme="light"] .ai-chat-header > button, html[data-ads-theme="light"] .ai-chat-assistant-message, html[data-ads-theme="light"] .ai-chat-result { border-color: #dedee2; color: #252529; background: #f6f6f8; }
html[data-ads-theme="light"] .ai-chat-welcome p, html[data-ads-theme="light"] .ai-chat-assistant-message > p, html[data-ads-theme="light"] .ai-chat-result small { color: #5d5d65; }
html[data-ads-theme="light"] .ai-chat-result b { color: #222226; }
@media (max-width: 680px) {
  .ai-search-dock { top: calc(var(--workspace-topbar-height) + 5px); margin-top: 9px; padding: 8px; }
  .ai-search-grounding, .ai-search-form kbd { display: none; }
  .ai-search-form { gap: 7px; padding-left: 8px; }
  .ai-search-form input { font-size: 11px; }
  .ai-search-form > button { min-height: 33px; gap: 4px; padding: 0 8px; font-size: 10px; }
  .ai-search-prompts { gap: 4px; }
  .ai-search-prompts button { font-size: 8px; }
  .ai-chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(600px, calc(100vh - 16px)); }
}

@media (prefers-color-scheme: light) {
  html:not([data-ads-theme-preference="dark"]) { color-scheme: light; }
}

/* Keep every browse view inside the same centered workspace and make taxonomy
   and guide navigation expandable without leaving the library shell. */
:root { --canvas-width: 1480px; }
body.library-home .library-content { box-sizing: border-box; width: min(100%, var(--canvas-width)); }
body.gm-root main#main {
  box-sizing: border-box;
  width: min(var(--canvas-width), calc(100vw - var(--sidebar-width) - 48px));
  margin: 0 0 0 max(var(--sidebar-width), calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - var(--canvas-width)) / 2));
  padding: 68px 0 48px;
}
body.gm-root main#main.library-directory { padding-top: 98px; }
body.gm-root main#main > .gm-lib-page,
body.gm-root main#main > .local-route-mount { box-sizing: border-box; width: 100%; max-width: var(--canvas-width); margin: 0 auto; padding-right: 0; padding-left: 0; }
body.gm-root main#main.library-directory { max-width: var(--canvas-width); }

.shared-nav-group { display: block; min-width: 0; }
.shared-nav-group > summary { list-style: none; cursor: pointer; }
.shared-nav-group > summary::-webkit-details-marker { display: none; }
.shared-nav-group-toggle { width: 100%; text-align: left; }
.shared-nav-group-label { min-width: 0; flex: 1; }
.shared-nav-chevron { width: 15px; height: 15px; flex: 0 0 15px; margin-left: auto; color: #777780; transition: transform .16s ease; }
.shared-nav-chevron path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shared-nav-group[open] .shared-nav-chevron { transform: rotate(180deg); }
.shared-library-subnav { display: grid; gap: 1px; padding: 2px 8px 8px 49px; }
.shared-library-subnav a { display: block; min-width: 0; padding: 7px 8px; border-left: 1px solid #29292f; color: #96969e; font-size: 11px; font-weight: 450; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.shared-library-subnav a:hover, .shared-library-subnav a:focus-visible { color: #f4f4f5; background: #121214; }
.shared-library-subnav a[aria-current="page"] { border-left: 2px solid #8ab4ff; color: #f4f4f5; background: #121214; }
.sidebar-nav-group { width: 100%; }
.sidebar-nav-group .shared-nav-group-toggle { min-height: 48px; }
.sidebar-nav-group .shared-library-subnav { padding-left: 50px; }
.sidebar-nav-group .shared-library-subnav a { font-size: 11px; }
.sidebar-nav-group .shared-nav-group-label { font-size: inherit; }
.shared-sidebar-bottom .theme-toggle, .sidebar-bottom .theme-toggle { margin-top: 8px; }

html[data-ads-theme="light"] .shared-library-subnav a { border-color: #dedee2; color: #62626b; }
html[data-ads-theme="light"] .shared-library-subnav a:hover,
html[data-ads-theme="light"] .shared-library-subnav a:focus-visible,
html[data-ads-theme="light"] .shared-library-subnav a[aria-current="page"] { color: #19191c; background: #f1f1f2; }
html[data-ads-theme="light"] .shared-library-subnav a[aria-current="page"] { border-left-color: #315eaa; }
html[data-ads-theme="light"] .theme-toggle { color: #4b4b53; border-color: #dedee2; background: #f7f7f8; }
html[data-ads-theme="light"] .theme-toggle:hover { color: #19191c; border-color: #b8b8c0; }

@media (max-width: 680px) {
  body.gm-root main#main,
  body.gm-root main#main.library-directory { width: calc(100vw - 28px); margin: 0 14px; padding: 58px 0 32px; }
  body.gm-root main#main.library-directory { padding-top: 84px; }
  body.gm-root main#main > .gm-lib-page { padding-right: 0; padding-left: 0; }
  .shared-library-subnav { padding-left: 44px; }
}

/* A complete light palette for every surface in the library workspace. */
html[data-ads-theme="light"] {
  color-scheme: light;
  --library-space: #f4f5f7;
  --library-panel: #ffffff;
  --library-border: #dfe2e8;
  --library-text: #171b24;
  --library-muted: #596273;
  --library-blue: #285fd4;
  --surface-0: #f4f5f7;
  --surface-1: #ffffff;
  --surface-2: #f7f8fa;
  --line: #dfe2e8;
  --text: #171b24;
  --muted: #596273;
  --subtle: #737c8c;
}

html[data-ads-theme="light"] body,
html[data-ads-theme="light"] body.library-home {
  color: #171b24 !important;
  background: #f4f5f7 !important;
}

/* Sidebar and header: stable contrast in every link and disclosure state. */
html[data-ads-theme="light"] .library-sidebar,
html[data-ads-theme="light"] .shared-library-sidebar {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
  box-shadow: 5px 0 24px rgb(27 35 52 / 3%);
}
html[data-ads-theme="light"] .library-sidebar > .brand,
html[data-ads-theme="light"] .shared-library-brand {
  color: #171b24 !important;
  border-color: #e4e7ed !important;
}
html[data-ads-theme="light"] .brand-mark,
html[data-ads-theme="light"] .shared-brand-mark {
  color: #285fd4 !important;
  border-color: #c9d6f1 !important;
  background: #f0f4fc !important;
}
html[data-ads-theme="light"] .sidebar-search,
html[data-ads-theme="light"] .shared-library-search {
  color: #697385 !important;
}
html[data-ads-theme="light"] .sidebar-search:focus-within,
html[data-ads-theme="light"] .shared-library-search:focus-within {
  border-color: #a9bee9 !important;
  background: #f8faff !important;
}
html[data-ads-theme="light"] .sidebar-search input,
html[data-ads-theme="light"] .shared-library-search input {
  color: #202632 !important;
}
html[data-ads-theme="light"] .sidebar-search input::placeholder,
html[data-ads-theme="light"] .shared-library-search input::placeholder {
  color: #798293 !important;
}
html[data-ads-theme="light"] .sidebar-search kbd,
html[data-ads-theme="light"] .shared-library-search kbd {
  color: #586274 !important;
  background: #edf0f5 !important;
}
html[data-ads-theme="light"] .sidebar-link,
html[data-ads-theme="light"] .shared-nav-link,
html[data-ads-theme="light"] .shared-nav-link:first-child,
html[data-ads-theme="light"] .shared-nav-group > summary {
  color: #505a69 !important;
  border-left-color: transparent !important;
  background: transparent !important;
}
html[data-ads-theme="light"] .sidebar-link:hover,
html[data-ads-theme="light"] .sidebar-link:focus-visible,
html[data-ads-theme="light"] .shared-nav-link:hover,
html[data-ads-theme="light"] .shared-nav-link:focus-visible,
html[data-ads-theme="light"] .shared-nav-group > summary:hover,
html[data-ads-theme="light"] .shared-nav-group > summary:focus-visible {
  color: #182131 !important;
  background: #f2f5fa !important;
}
html[data-ads-theme="light"] .sidebar-link.active,
html[data-ads-theme="light"] .sidebar-link[aria-current="page"],
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"],
html[data-ads-theme="light"] .shared-nav-group > summary[aria-current="page"] {
  color: #1c2e4d !important;
  border-left-color: #3268d8 !important;
  background: #edf3ff !important;
}
html[data-ads-theme="light"] .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link > span,
html[data-ads-theme="light"] .nav-count,
html[data-ads-theme="light"] .nav-chevron,
html[data-ads-theme="light"] .shared-nav-chevron {
  color: #707b8c !important;
}
html[data-ads-theme="light"] .sidebar-link.active .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"] > span {
  color: #285fd4 !important;
}
html[data-ads-theme="light"] .nav-group-label,
html[data-ads-theme="light"] .shared-library-nav small {
  color: #798293 !important;
}
html[data-ads-theme="light"] .sidebar-bottom,
html[data-ads-theme="light"] .shared-sidebar-bottom {
  border-color: #e3e6ec !important;
  background: #ffffff !important;
}
html[data-ads-theme="light"] .sidebar-bottom a,
html[data-ads-theme="light"] .shared-sidebar-bottom a { color: #283242 !important; }
html[data-ads-theme="light"] .sidebar-bottom > span,
html[data-ads-theme="light"] .shared-sidebar-bottom span { color: #768091 !important; }
html[data-ads-theme="light"] .workspace-topbar,
html[data-ads-theme="light"] .shared-library-topbar {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 3px 12px rgb(27 35 52 / 3%);
}
html[data-ads-theme="light"] .top-tabs a,
html[data-ads-theme="light"] .shared-library-topbar nav a,
html[data-ads-theme="light"] .shared-library-topbar nav a + a {
  color: #657082 !important;
}
html[data-ads-theme="light"] .top-tabs a:hover,
html[data-ads-theme="light"] .top-tabs a.active,
html[data-ads-theme="light"] .shared-library-topbar nav a:hover,
html[data-ads-theme="light"] .shared-library-topbar nav a[aria-current="page"] {
  color: #171b24 !important;
}
html[data-ads-theme="light"] .top-tabs a.active::after,
html[data-ads-theme="light"] .shared-library-topbar nav a:first-child::after {
  background: #285fd4 !important;
}
html[data-ads-theme="light"] .top-link,
html[data-ads-theme="light"] .shared-top-link { color: #536176 !important; }
html[data-ads-theme="light"] .top-link:hover,
html[data-ads-theme="light"] .shared-top-link:hover { color: #214fae !important; }
html[data-ads-theme="light"] .shared-login,
html[data-ads-theme="light"] .sidebar-toggle,
html[data-ads-theme="light"] .shared-sidebar-toggle {
  color: #263247 !important;
  border-color: #d7dce5 !important;
  background: #ffffff !important;
}
html[data-ads-theme="light"] .sidebar-toggle span { background: #475368 !important; }
html[data-ads-theme="light"] .theme-toggle {
  color: #414d5f !important;
  border-color: #d9dee7 !important;
  background: #f7f8fa !important;
}
html[data-ads-theme="light"] .theme-toggle:hover {
  color: #1c2e4d !important;
  border-color: #aebfe0 !important;
  background: #f0f4fc !important;
}

/* Discover canvas, headings, counts, and editorial cards. */
html[data-ads-theme="light"] .library-workspace,
html[data-ads-theme="light"] .library-main,
html[data-ads-theme="light"] body.gm-root main#main,
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page,
html[data-ads-theme="light"] body.gm-root .local-route-mount {
  color: #202632 !important;
  background: #f4f5f7 !important;
}
html[data-ads-theme="light"] .library-overview,
html[data-ads-theme="light"] .workspace-footer { border-color: #dfe2e8 !important; }
html[data-ads-theme="light"] .library-overview h1,
html[data-ads-theme="light"] .directory-heading h2,
html[data-ads-theme="light"] .library-stats strong,
html[data-ads-theme="light"] .brand-name,
html[data-ads-theme="light"] .industry-card h3,
html[data-ads-theme="light"] .industry-title-row h3,
html[data-ads-theme="light"] .platform-info b,
html[data-ads-theme="light"] .hook-name,
html[data-ads-theme="light"] .emotion-name,
html[data-ads-theme="light"] .guide-card h3,
html[data-ads-theme="light"] .collection-card strong,
html[data-ads-theme="light"] .library-note h2,
html[data-ads-theme="light"] .brand-card .brand-name,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero h1,
html[data-ads-theme="light"] body.gm-root .library-directory h1 {
  color: #171b24 !important;
}
html[data-ads-theme="light"] .library-stats span,
html[data-ads-theme="light"] .library-overview p,
html[data-ads-theme="light"] .directory-heading p,
html[data-ads-theme="light"] .brand-industry,
html[data-ads-theme="light"] .brand-stats,
html[data-ads-theme="light"] .industry-summary,
html[data-ads-theme="light"] .platform-info small,
html[data-ads-theme="light"] .hook-description,
html[data-ads-theme="light"] .emotion-description,
html[data-ads-theme="light"] .guide-card p,
html[data-ads-theme="light"] .collection-card > span:not(.collection-kicker),
html[data-ads-theme="light"] .library-note p,
html[data-ads-theme="light"] .workspace-footer,
html[data-ads-theme="light"] .workspace-footer a,
html[data-ads-theme="light"] .taxonomy-disclaimer,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero p,
html[data-ads-theme="light"] body.gm-root .library-directory .directory-intro {
  color: #5b6575 !important;
}
html[data-ads-theme="light"] .library-overview .eyebrow,
html[data-ads-theme="light"] .library-note .eyebrow,
html[data-ads-theme="light"] .guide-type,
html[data-ads-theme="light"] .collection-kicker,
html[data-ads-theme="light"] .editorial-card-type,
html[data-ads-theme="light"] .local-route-kicker,
html[data-ads-theme="light"] .local-ad-eyebrow,
html[data-ads-theme="light"] .directory-section .view-all:hover { color: #285fd4 !important; }
html[data-ads-theme="light"] .library-overview .eyebrow span { color: #a0a8b5 !important; }
html[data-ads-theme="light"] .directory-heading .view-all,
html[data-ads-theme="light"] .directory-heading .view-all span,
html[data-ads-theme="light"] .guide-card .card-arrow { color: #657082 !important; }
html[data-ads-theme="light"] .directory-heading .view-all:hover { color: #285fd4 !important; }
html[data-ads-theme="light"] .heading-count { color: #596273 !important; border-color: #d5dae3 !important; background: #fff !important; }
html[data-ads-theme="light"] .brand-card,
html[data-ads-theme="light"] .industry-card,
html[data-ads-theme="light"] .platform-card,
html[data-ads-theme="light"] .guide-card,
html[data-ads-theme="light"] .collection-card,
html[data-ads-theme="light"] .library-note,
html[data-ads-theme="light"] .empty-state {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgb(27 35 52 / 3%);
}
html[data-ads-theme="light"] .brand-card:hover,
html[data-ads-theme="light"] .industry-card:hover,
html[data-ads-theme="light"] .platform-card:hover,
html[data-ads-theme="light"] .guide-card:hover,
html[data-ads-theme="light"] .collection-card:hover {
  border-color: #b9c7df !important;
  background: #fcfdff !important;
  box-shadow: 0 5px 18px rgb(36 61 105 / 8%);
}
html[data-ads-theme="light"] .brand-avatar,
html[data-ads-theme="light"] .platform-icon {
  border-color: #e1e5ec !important;
  background-color: #f4f6fa !important;
}
html[data-ads-theme="light"] .brand-avatar img,
html[data-ads-theme="light"] .creative-brand-logo { background: #ffffff !important; }
html[data-ads-theme="light"] .brand-stats b,
html[data-ads-theme="light"] .industry-summary b { color: #35445c !important; }
html[data-ads-theme="light"] .collection-card b,
html[data-ads-theme="light"] .library-note > a,
html[data-ads-theme="light"] .editorial-card-action { color: #285fd4 !important; }

/* Ads preserve the creative's natural portrait or landscape dimensions. */
html[data-ads-theme="light"] .creative-card,
html[data-ads-theme="light"] .library-home .creative-card,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .js-ad-card {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgb(27 35 52 / 4%);
}
html[data-ads-theme="light"] .creative-card:hover,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .js-ad-card:hover {
  border-color: #b9c7df !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgb(36 61 105 / 10%);
}
html[data-ads-theme="light"] .creative-visual,
html[data-ads-theme="light"] .creative-preview-body > .creative-visual { background: #eceff4 !important; }
html[data-ads-theme="light"] .creative-brand-row b,
html[data-ads-theme="light"] .creative-card-copy > strong { color: #202632 !important; }
html[data-ads-theme="light"] .creative-platform,
html[data-ads-theme="light"] .creative-description { color: #667183 !important; }
html[data-ads-theme="light"] .creative-brand-logo { border-color: #e1e5ec !important; }
html[data-ads-theme="light"] .creative-fallback-mark { color: #39465b !important; border-color: #d9dee7 !important; background: #f5f7fa !important; }
html[data-ads-theme="light"] .load-more { color: #283242 !important; border-color: #d7dce5 !important; background: #ffffff !important; }
html[data-ads-theme="light"] .load-more:hover { border-color: #aebfe0 !important; background: #f7f9fd !important; }
html[data-ads-theme="light"] button.creative-card:focus-visible { outline-color: #285fd4 !important; }

/* The taxonomy, article, and brand routes use the same readable surfaces. */
html[data-ads-theme="light"] .taxonomy-analytics-card,
html[data-ads-theme="light"] .editorial-directory-card,
html[data-ads-theme="light"] .library-link,
html[data-ads-theme="light"] .local-ad-metrics,
html[data-ads-theme="light"] .local-route-next,
html[data-ads-theme="light"] .creative-preview-dialog,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .lib-summary,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-stat,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .lib-toc a,
html[data-ads-theme="light"] body.gm-root .gm-lib-page details.bg-brand-bg-card,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-cta {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgb(27 35 52 / 4%) !important;
}
html[data-ads-theme="light"] .taxonomy-card-title,
html[data-ads-theme="light"] .editorial-directory-card h2,
html[data-ads-theme="light"] .local-route-title-row h1,
html[data-ads-theme="light"] .local-ad-heading h2,
html[data-ads-theme="light"] .creative-preview-copy h2,
html[data-ads-theme="light"] .creative-preview-copy h3,
html[data-ads-theme="light"] body.gm-root .gm-lib-page h1,
html[data-ads-theme="light"] body.gm-root .gm-lib-page h2,
html[data-ads-theme="light"] body.gm-root .gm-lib-page h3 { color: #171b24 !important; }
html[data-ads-theme="light"] .taxonomy-card-description,
html[data-ads-theme="light"] .taxonomy-card-stat,
html[data-ads-theme="light"] .taxonomy-score small,
html[data-ads-theme="light"] .editorial-directory-card p,
html[data-ads-theme="light"] .local-route-intro,
html[data-ads-theme="light"] .local-ad-heading p,
html[data-ads-theme="light"] .local-ad-metrics span,
html[data-ads-theme="light"] .local-ad-metrics small,
html[data-ads-theme="light"] .creative-preview-copy p,
html[data-ads-theme="light"] body.gm-root .gm-lib-page p,
html[data-ads-theme="light"] body.gm-root .gm-lib-page li,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .text-gray-400,
html[data-ads-theme="light"] body.gm-root .gm-lib-page .text-gray-500 { color: #596273 !important; }
html[data-ads-theme="light"] .taxonomy-card-overline,
html[data-ads-theme="light"] .taxonomy-card-action,
html[data-ads-theme="light"] .taxonomy-card-arrow,
html[data-ads-theme="light"] .taxonomy-score,
html[data-ads-theme="light"] .editorial-card-type,
html[data-ads-theme="light"] .local-route-kicker,
html[data-ads-theme="light"] .local-ad-eyebrow,
html[data-ads-theme="light"] .creative-preview-copy .creative-preview-meta,
html[data-ads-theme="light"] .creative-preview-brand-link { color: #285fd4 !important; }
html[data-ads-theme="light"] .taxonomy-card-stat b,
html[data-ads-theme="light"] .local-ad-metrics strong,
html[data-ads-theme="light"] .local-ad-metrics b { color: #202632 !important; }
html[data-ads-theme="light"] .taxonomy-card-meter { background: #e6e9ef !important; }
html[data-ads-theme="light"] .taxonomy-card-meter i { background: #4c7de0 !important; }
html[data-ads-theme="light"] .taxonomy-icon { color: #315fae !important; border-color: #dae3f3 !important; background: #f1f5fc !important; }
html[data-ads-theme="light"] .taxonomy-analytics-card:hover,
html[data-ads-theme="light"] .editorial-directory-card:hover,
html[data-ads-theme="light"] .library-link:hover { border-color: #b9c7df !important; background: #fcfdff !important; }
html[data-ads-theme="light"] .local-ad-metrics > div { border-color: #dfe2e8 !important; }
html[data-ads-theme="light"] .local-ad-dataset { color: #202632 !important; }
html[data-ads-theme="light"] .local-ad-total { color: #566176 !important; border-color: #d8dee8 !important; background: #fff !important; }
html[data-ads-theme="light"] .local-filter-list button { color: #566176 !important; border-color: #d9dee7 !important; background: #fff !important; }
html[data-ads-theme="light"] .local-filter-list button[aria-pressed="true"] { color: #214fae !important; border-color: #abc0ea !important; background: #eff4ff !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page table { color: #202632 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page table thead th { color: #202632 !important; background: #f2f4f8 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page table th,
html[data-ads-theme="light"] body.gm-root .gm-lib-page table td { border-color: #dfe2e8 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page blockquote,
html[data-ads-theme="light"] body.gm-root .gm-lib-page [data-summary].border-l-4 { color: #465268 !important; border-color: #d7dfed !important; border-left-color: #4b78d1 !important; background: #f7f9fc !important; }
html[data-ads-theme="light"] body.gm-root .library-directory .eyebrow { color: #285fd4 !important; }
html[data-ads-theme="light"] body.gm-root .library-link { color: #202632 !important; }

/* Generated brand pages place their data sections beside .gm-lib-page, inside
   .lib-light. Reset that isolated content wrapper and its Tailwind utility
   surfaces too, otherwise it keeps the old dark palette in light mode. */
html[data-ads-theme="light"] body.gm-root main#main .lib-light {
  color: #202632 !important;
  background: #f4f5f7 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light :is(
  [class*="bg-brand-bg-card"], [class*="bg-brand-bg-alt"],
  [class*="bg-brand-bg-dark"], [class*="bg-white"],
  .gm-lib-stat, .lib-summary, .gm-lib-cta, .lib-toc a,
  details.bg-brand-bg-card, .js-ad-card
) {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgb(27 35 52 / 5%) !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light :is(
  [class*="text-brand-heading"], [class*="text-white"],
  h1, h2, h3, h4, strong, .gm-lib-stat > div:first-child
) { color: #171b24 !important; }
html[data-ads-theme="light"] body.gm-root main#main .lib-light :is(
  [class*="text-brand-body"], [class*="text-brand-subtext"],
  [class*="text-gray-300"], [class*="text-gray-400"],
  [class*="text-gray-500"], p, li, .gm-lib-stat > div:last-child,
  .lib-summary-label
) { color: #596273 !important; }
html[data-ads-theme="light"] body.gm-root main#main .lib-light [class*="border-"] {
  border-color: #dfe2e8 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light .gm-lib-stat > div:first-child,
html[data-ads-theme="light"] body.gm-root main#main .lib-light a[class*="text-brand-accent"] {
  color: #285fd4 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light .js-ad-card img,
html[data-ads-theme="light"] body.gm-root main#main .lib-light .js-ad-card video {
  background: #eceff4 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light table {
  color: #202632 !important;
  border-color: #dfe2e8 !important;
  background: #ffffff !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light table thead th {
  color: #202632 !important;
  background: #f2f4f8 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light table th,
html[data-ads-theme="light"] body.gm-root main#main .lib-light table td {
  border-color: #dfe2e8 !important;
}
html[data-ads-theme="light"] body.gm-root main#main .lib-light blockquote,
html[data-ads-theme="light"] body.gm-root main#main .lib-light [data-summary].border-l-4 {
  color: #465268 !important;
  border-color: #d7dfed !important;
  border-left-color: #4b78d1 !important;
  background: #f7f9fc !important;
}

/* Search and assistant surfaces use the same paper, ink, and blue palette. */
html[data-ads-theme="light"] .ai-search-dock {
  border-color: #d8dee8 !important;
  background: rgb(255 255 255 / 97%) !important;
  box-shadow: 0 12px 32px rgb(30 45 73 / 10%) !important;
}
html[data-ads-theme="light"] .ai-search-mark { border-color: #cbd8f1 !important; color: #285fd4 !important; background: #eef3fc !important; }
html[data-ads-theme="light"] .ai-search-heading strong,
html[data-ads-theme="light"] .ai-chat-header strong,
html[data-ads-theme="light"] .ai-chat-welcome h2 { color: #171b24 !important; }
html[data-ads-theme="light"] .ai-search-heading > div > span,
html[data-ads-theme="light"] .ai-search-grounding { color: #677286 !important; }
html[data-ads-theme="light"] .ai-search-form,
html[data-ads-theme="light"] .ai-chat-form { border-color: #d4dbe6 !important; background: #fbfcfe !important; }
html[data-ads-theme="light"] .ai-search-form input,
html[data-ads-theme="light"] .ai-chat-form input { color: #202632 !important; }
html[data-ads-theme="light"] .ai-search-form input::placeholder,
html[data-ads-theme="light"] .ai-chat-form input::placeholder { color: #7a8494 !important; }
html[data-ads-theme="light"] .ai-search-form kbd { color: #596273 !important; background: #edf0f5 !important; }
html[data-ads-theme="light"] .ai-search-prompts button { color: #4e5b6e !important; border-color: #dce1e9 !important; background: #f5f7fa !important; }
html[data-ads-theme="light"] .ai-search-prompts button:hover { color: #214fae !important; border-color: #aebfe0 !important; background: #eef3fc !important; }
html[data-ads-theme="light"] .ai-chat-panel { color: #202632 !important; border-color: #d7dce5 !important; background: #fff !important; box-shadow: 0 24px 80px rgb(27 35 52 / 22%) !important; }
html[data-ads-theme="light"] .ai-chat-header { border-color: #e1e5ec !important; background: #f7f8fb !important; }
html[data-ads-theme="light"] .ai-chat-header > button,
html[data-ads-theme="light"] .ai-chat-assistant-message,
html[data-ads-theme="light"] .ai-chat-result { color: #283242 !important; border-color: #dfe3ea !important; background: #f7f8fa !important; }
html[data-ads-theme="light"] .ai-chat-welcome p,
html[data-ads-theme="light"] .ai-chat-assistant-message > p,
html[data-ads-theme="light"] .ai-chat-result small,
html[data-ads-theme="light"] .ai-chat-note { color: #5f6a7a !important; }
html[data-ads-theme="light"] .ai-chat-result b { color: #202632 !important; }
html[data-ads-theme="light"] .ai-chat-result-mark { color: #315fae !important; background: #eaf0fb !important; }
html[data-ads-theme="light"] .creative-preview-dialog { color: #202632 !important; border-color: #d7dce5 !important; background: #fff !important; box-shadow: 0 24px 80px rgb(27 35 52 / 22%) !important; }
html[data-ads-theme="light"] .creative-preview-close { border-color: #d9dee7 !important; background: #fff !important; }
html[data-ads-theme="light"] .creative-preview-copy h2,
html[data-ads-theme="light"] .creative-preview-copy h3 { color: #171b24 !important; }
html[data-ads-theme="light"] .creative-preview-copy p { color: #596273 !important; }

@media (max-width: 760px) {
  html[data-ads-theme="light"] .shared-sidebar-scrim { background: rgb(28 37 54 / 30%) !important; }
}

/* Adbot shell: constrain the supplied lockup, center the workspace, and keep
   the navigation and reading surfaces consistent across every library route. */
:root {
  --app-frame-max: 1600px;
  --app-frame-left: max(0px, calc((100vw - var(--app-frame-max)) / 2));
  --app-frame-width: min(100vw, var(--app-frame-max));
  --sidebar-width: 248px;
  --workspace-topbar-height: 72px;
}

.library-sidebar,
.shared-library-sidebar {
  left: var(--app-frame-left) !important;
  width: var(--sidebar-width) !important;
  box-sizing: border-box;
}
.library-sidebar > .brand,
.shared-library-brand {
  min-height: 88px !important;
  box-sizing: border-box;
  padding: 12px 24px !important;
  gap: 12px !important;
  overflow: hidden;
}
.library-sidebar > .brand img.brand-logo,
.shared-library-brand img.shared-brand-logo {
  display: block !important;
  width: 100% !important;
  max-width: 188px !important;
  height: 63px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex: 0 1 188px !important;
}
html[data-ads-theme="dark"] .library-sidebar > .brand img.brand-logo,
html[data-ads-theme="dark"] .shared-library-brand img.shared-brand-logo {
  filter: none !important;
  border-radius: 10px;
  background-color: #f7f5f0;
}
html[data-ads-theme="light"] .library-sidebar > .brand img.brand-logo,
html[data-ads-theme="light"] .shared-library-brand img.shared-brand-logo {
  filter: none;
}

.library-workspace {
  width: calc(var(--app-frame-width) - var(--sidebar-width)) !important;
  margin-left: calc(var(--app-frame-left) + var(--sidebar-width)) !important;
  box-sizing: border-box;
}
.workspace-topbar {
  height: var(--workspace-topbar-height) !important;
  padding-right: 30px !important;
  padding-left: 30px !important;
}
.shared-library-topbar {
  inset: 0 auto auto calc(var(--app-frame-left) + var(--sidebar-width)) !important;
  width: calc(var(--app-frame-width) - var(--sidebar-width)) !important;
  height: var(--workspace-topbar-height) !important;
  box-sizing: border-box;
  padding-right: 30px !important;
  padding-left: 30px !important;
}
.library-content {
  width: min(100%, 1420px) !important;
  box-sizing: border-box;
  padding: 32px 36px 0 !important;
}
.library-overview {
  min-height: 150px !important;
  gap: 32px !important;
  padding-bottom: 26px !important;
}
.library-overview h1 { font-size: clamp(34px, 2.8vw, 46px) !important; letter-spacing: -1.8px !important; }
.library-overview p { font-size: 15px !important; }
.directory-heading h2 { font-size: 24px !important; letter-spacing: -.8px !important; }
.directory-heading p { font-size: 14px !important; }
.sidebar-link,
.shared-nav-link,
.shared-nav-group > summary {
  min-height: 48px !important;
  gap: 13px !important;
  padding-right: 18px !important;
  padding-left: 18px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}
.sidebar-icon,
.shared-nav-link > span,
.shared-nav-group > summary > span:first-child {
  width: 21px !important;
  flex-basis: 21px !important;
  font-size: 19px !important;
}
.sidebar-icon svg,
.shared-nav-link > span svg,
.shared-nav-group > summary svg {
  display: block;
  width: 20px;
  height: 20px;
}
.nav-group-label,
.shared-library-nav small {
  margin-top: 24px !important;
  margin-bottom: 8px !important;
  font-size: 11px !important;
  letter-spacing: .02em;
}
.sidebar-search,
.shared-library-search {
  min-height: 50px !important;
  margin: 14px 14px 8px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  box-sizing: border-box;
}
.sidebar-search input,
.shared-library-search input { font-size: 14px !important; }
.sidebar-bottom,
.shared-sidebar-bottom {
  gap: 8px !important;
  padding: 14px 20px !important;
}
.theme-toggle {
  display: flex !important;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #343942;
  border-radius: 6px;
  font: 500 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.theme-toggle-icon { font-size: 17px; }

body.gm-root main#main {
  width: calc(var(--app-frame-width) - var(--sidebar-width)) !important;
  min-height: 100vh;
  margin: 0 0 0 calc(var(--app-frame-left) + var(--sidebar-width)) !important;
  padding: calc(var(--workspace-topbar-height) + 24px) 36px 64px !important;
  box-sizing: border-box;
}
body.gm-root main#main > .gm-lib-page,
body.gm-root main#main > .library-directory,
body.gm-root main#main > article.library-directory,
body.gm-root main#main > .local-route-mount,
body.gm-root main#main .local-route-mount > .library-directory {
  width: min(100%, 1400px) !important;
  max-width: 1400px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box;
}
body.gm-root main#main > .gm-lib-page { padding-right: 0 !important; padding-left: 0 !important; }
body.gm-root main#main > .library-directory,
body.gm-root main#main > article.library-directory { padding-top: 18px !important; }
body.gm-root .library-directory h1 { font-size: clamp(36px, 4vw, 58px) !important; letter-spacing: -2px !important; }
body.gm-root .library-directory .directory-intro { font-size: 16px !important; }
.shared-library-topbar nav a { font-size: 15px !important; }
.shared-top-link,
.shared-login { font-size: 13px !important; }

/* A calm neutral light scheme with dark readable type and clear active states. */
html[data-ads-theme="light"] {
  --library-space: #f3f5f8;
  --library-panel: #ffffff;
  --library-border: #dce2eb;
  --library-text: #18202d;
  --library-muted: #586477;
  --library-blue: #285fd4;
}
html[data-ads-theme="light"] body.library-home,
html[data-ads-theme="light"] body.gm-root,
html[data-ads-theme="light"] .library-workspace,
html[data-ads-theme="light"] .library-main,
html[data-ads-theme="light"] body.gm-root main#main,
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page,
html[data-ads-theme="light"] body.gm-root .local-route-mount {
  color: #202938 !important;
  background: #f3f5f8 !important;
}
html[data-ads-theme="light"] .library-sidebar,
html[data-ads-theme="light"] .shared-library-sidebar {
  color: #263144 !important;
  background: #ffffff !important;
  border-color: #dce2eb !important;
  box-shadow: 4px 0 18px rgb(29 43 66 / 4%) !important;
}
html[data-ads-theme="light"] .library-sidebar > .brand,
html[data-ads-theme="light"] .shared-library-brand {
  min-height: 88px !important;
  color: #18202d !important;
  background: #ffffff !important;
  border-color: #e2e7ef !important;
}
html[data-ads-theme="light"] .sidebar-link,
html[data-ads-theme="light"] .shared-nav-link,
html[data-ads-theme="light"] .shared-nav-link:first-child,
html[data-ads-theme="light"] .shared-nav-group > summary {
  color: #445167 !important;
  border-left-color: transparent !important;
  background: transparent !important;
}
html[data-ads-theme="light"] .sidebar-link:hover,
html[data-ads-theme="light"] .shared-nav-link:hover,
html[data-ads-theme="light"] .shared-nav-group > summary:hover {
  color: #17243a !important;
  background: #f4f6fa !important;
}
html[data-ads-theme="light"] .sidebar-link.active,
html[data-ads-theme="light"] .sidebar-link[aria-current="page"],
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"],
html[data-ads-theme="light"] .shared-nav-group > summary[aria-current="page"] {
  color: #173c82 !important;
  border-left-color: #3268d8 !important;
  background: #edf3ff !important;
}
html[data-ads-theme="light"] .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link > span,
html[data-ads-theme="light"] .nav-count,
html[data-ads-theme="light"] .nav-chevron,
html[data-ads-theme="light"] .shared-nav-chevron { color: #738096 !important; }
html[data-ads-theme="light"] .sidebar-link.active .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"] > span { color: #285fd4 !important; }
html[data-ads-theme="light"] .nav-group-label,
html[data-ads-theme="light"] .shared-library-nav small { color: #737f92 !important; }
html[data-ads-theme="light"] .sidebar-bottom,
html[data-ads-theme="light"] .shared-sidebar-bottom {
  color: #3e4b60 !important;
  border-color: #e2e7ef !important;
  background: #ffffff !important;
}
html[data-ads-theme="light"] .sidebar-bottom a,
html[data-ads-theme="light"] .shared-sidebar-bottom a { color: #253148 !important; }
html[data-ads-theme="light"] .sidebar-bottom > span,
html[data-ads-theme="light"] .shared-sidebar-bottom > span { color: #748096 !important; }
html[data-ads-theme="light"] .theme-toggle {
  color: #3d4b61 !important;
  border-color: #d9e0ea !important;
  background: #f7f9fc !important;
}
html[data-ads-theme="light"] .theme-toggle:hover {
  color: #214fae !important;
  border-color: #b8c8e3 !important;
  background: #eef3fb !important;
}
html[data-ads-theme="light"] .workspace-topbar,
html[data-ads-theme="light"] .shared-library-topbar {
  color: #202938 !important;
  background: rgb(255 255 255 / 97%) !important;
  border-color: #dce2eb !important;
  box-shadow: 0 2px 10px rgb(29 43 66 / 4%) !important;
}
html[data-ads-theme="light"] .top-tabs a,
html[data-ads-theme="light"] .shared-library-topbar nav a,
html[data-ads-theme="light"] .shared-library-topbar nav a + a { color: #586477 !important; }
html[data-ads-theme="light"] .top-tabs a:hover,
html[data-ads-theme="light"] .top-tabs a.active,
html[data-ads-theme="light"] .shared-library-topbar nav a:hover,
html[data-ads-theme="light"] .shared-library-topbar nav a[aria-current="page"] { color: #18202d !important; }
html[data-ads-theme="light"] .top-tabs a.active::after,
html[data-ads-theme="light"] .shared-library-topbar nav a:first-child::after { background: #285fd4 !important; }
html[data-ads-theme="light"] .library-overview h1,
html[data-ads-theme="light"] .directory-heading h2,
html[data-ads-theme="light"] .library-stats strong,
html[data-ads-theme="light"] .guide-card h3,
html[data-ads-theme="light"] .collection-card strong,
html[data-ads-theme="light"] .industry-card h3,
html[data-ads-theme="light"] .platform-info b,
html[data-ads-theme="light"] .hook-name,
html[data-ads-theme="light"] .emotion-name,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero h1,
html[data-ads-theme="light"] body.gm-root .library-directory h1 {
  color: #18202d !important;
}
html[data-ads-theme="light"] .library-overview p,
html[data-ads-theme="light"] .directory-heading p,
html[data-ads-theme="light"] .guide-card p,
html[data-ads-theme="light"] .hook-description,
html[data-ads-theme="light"] .emotion-description,
html[data-ads-theme="light"] body.gm-root .gm-lib-hero p,
html[data-ads-theme="light"] body.gm-root .library-directory .directory-intro {
  color: #586477 !important;
}
html[data-ads-theme="light"] .industry-card,
html[data-ads-theme="light"] .platform-card,
html[data-ads-theme="light"] .brand-card,
html[data-ads-theme="light"] .hook-card,
html[data-ads-theme="light"] .emotion-card,
html[data-ads-theme="light"] .guide-card,
html[data-ads-theme="light"] .collection-card,
html[data-ads-theme="light"] .js-ad-card,
html[data-ads-theme="light"] .library-link,
html[data-ads-theme="light"] .taxonomy-analytics-card,
html[data-ads-theme="light"] .editorial-directory-card {
  color: #202938 !important;
  border-color: #dce2eb !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgb(28 41 61 / 5%) !important;
}
html[data-ads-theme="light"] .industry-card::before,
html[data-ads-theme="light"] .industry-card::after,
html[data-ads-theme="light"] .hook-card::before,
html[data-ads-theme="light"] .emotion-card::before { opacity: .08 !important; }
html[data-ads-theme="light"] .library-overview,
html[data-ads-theme="light"] .workspace-footer { border-color: #dce2eb !important; }

@media (max-width: 760px) {
  :root { --app-frame-left: 0px; --app-frame-width: 100vw; }
  .library-sidebar,
  .shared-library-sidebar { left: 0 !important; width: min(300px, 86vw) !important; }
  .library-workspace {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .workspace-topbar,
  .shared-library-topbar {
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 14px !important;
  }
  .library-content { width: 100% !important; padding: 22px 16px 0 !important; }
  .library-overview { align-items: flex-start !important; flex-direction: column; gap: 16px !important; }
  .library-stats { width: 100%; flex-wrap: wrap; }
  .library-stats > div { min-width: 0; flex: 1; padding: 0 8px; }
  body.gm-root main#main {
    width: 100% !important;
    margin: 0 !important;
    padding: 78px 16px 40px !important;
  }
  body.gm-root main#main > .gm-lib-page,
  body.gm-root main#main > .library-directory,
  body.gm-root main#main > article.library-directory,
  body.gm-root main#main > .local-route-mount,
  body.gm-root main#main .local-route-mount > .library-directory {
    width: 100% !important;
    max-width: 100% !important;
  }
  .shared-library-brand,
  .library-sidebar > .brand { min-height: 78px !important; }
  .library-sidebar > .brand img.brand-logo,
  .shared-library-brand img.shared-brand-logo { max-width: 176px !important; height: 48px !important; }
}

/* Keep the Adbot navigation comfortable at normal desktop zoom. */
.sidebar-link,
.shared-nav-link,
.shared-nav-group > summary {
  min-height: 52px !important;
  gap: 14px !important;
  font-size: 16px !important;
}
.sidebar-icon,
.shared-nav-link > span,
.shared-nav-group > summary > span:first-child {
  width: 22px !important;
  flex-basis: 22px !important;
}
.sidebar-icon svg,
.shared-nav-link > span svg,
.shared-nav-group > summary > span svg {
  width: 21px !important;
  height: 21px !important;
}
.shared-library-nav small,
.nav-group-label { font-size: 12px !important; }
.sidebar-search input,
.shared-library-search input { font-size: 15px !important; }
.shared-library-subnav a,
.sidebar-nav-group .shared-library-subnav a {
  min-height: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.sidebar-bottom a,
.shared-sidebar-bottom > a { font-size: 14px !important; }
.sidebar-bottom > span,
.shared-sidebar-bottom > span { font-size: 12px !important; }
.theme-toggle { min-height: 46px !important; font-size: 14px !important; }
.directory-heading p,
body.gm-root .library-directory .directory-intro { font-size: 16px !important; }

@media (max-width: 760px) {
  .sidebar-link,
  .shared-nav-link,
  .shared-nav-group > summary { min-height: 48px !important; font-size: 15px !important; }
  .shared-library-subnav a,
  .sidebar-nav-group .shared-library-subnav a { font-size: 13px !important; }
}

/* Keep search available as a compact floating control on both library tabs. */
body.library-home .library-main { padding-bottom: 112px !important; }
body.library-home .ai-search-dock {
  position: fixed !important;
  z-index: 115 !important;
  top: auto !important;
  bottom: 18px !important;
  left: calc(var(--app-frame-left) + var(--sidebar-width) + (var(--app-frame-width) - var(--sidebar-width)) / 2) !important;
  width: min(700px, calc(var(--app-frame-width) - var(--sidebar-width) - 48px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%);
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: 0 12px 36px rgb(0 0 0 / 24%) !important;
  backdrop-filter: none !important;
}
body.library-home .ai-search-heading,
body.library-home .ai-search-prompts { display: none !important; }
body.library-home .ai-search-form {
  min-height: 62px !important;
  gap: 12px !important;
  padding: 7px 8px 7px 18px !important;
  border: 1px solid #383a43 !important;
  border-radius: 14px !important;
  background: rgb(17 18 22 / 96%) !important;
  box-shadow: 0 1px 0 rgb(255 255 255 / 5%) inset !important;
  backdrop-filter: blur(18px);
}
body.library-home .ai-search-glyph { font-size: 23px !important; }
body.library-home .ai-search-form input { font-size: 14px !important; }
body.library-home .ai-search-form > button {
  min-height: 44px !important;
  gap: 8px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}
body.library-home.ai-chat-open .ai-search-dock { display: none !important; }
body.library-home .feed-sentinel { height: 2px; }
body.library-home .load-more[hidden] { display: none !important; }
body.library-home.library-latest-view #latest-additions { margin-top: 0 !important; }
body.library-home.library-latest-view #latest-additions .directory-heading h2 { font-size: 30px !important; }
body.library-home.library-latest-view #recent-creative-feed {
  display: block !important;
  width: 100% !important;
  column-count: 4 !important;
  column-gap: 16px !important;
  column-fill: balance !important;
}
body.library-home.library-latest-view #recent-creative-feed > .creative-card {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  break-inside: avoid !important;
}
html[data-ads-theme="light"] body.library-home .ai-search-form {
  border-color: #d4dbe6 !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%) inset !important;
}
html[data-ads-theme="light"] body.library-home .ai-search-dock { box-shadow: 0 12px 36px rgb(31 45 69 / 17%) !important; }
@media (max-width: 1280px) { body.library-home.library-latest-view #recent-creative-feed { column-count: 3 !important; } }
@media (max-width: 920px) { body.library-home.library-latest-view #recent-creative-feed { column-count: 2 !important; } }
@media (max-width: 760px) {
  body.library-home .ai-search-dock {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    width: calc(100vw - 24px) !important;
  }
  body.library-home .ai-search-form { min-height: 56px !important; gap: 8px !important; padding-left: 12px !important; }
  body.library-home .ai-search-form input { font-size: 13px !important; }
  body.library-home .ai-search-form > button { min-height: 40px !important; padding: 0 10px !important; font-size: 12px !important; }
}
@media (max-width: 520px) { body.library-home.library-latest-view #recent-creative-feed { column-count: 1 !important; } }

/* Bring the generated brand directory into the same centered browse system. */
body.gm-root main#main > .gm-lib-page,
body.gm-root main#main > .lib-light.gm-lib {
  width: min(100%, 1380px) !important;
  max-width: 1380px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}
body.gm-root main#main > .gm-lib-page { padding: 0 0 28px !important; }
body.gm-root main#main > .gm-lib-page .gm-lib-hero { background: transparent !important; }
body.gm-root main#main > .gm-lib-page .gm-lib-hero nav,
body.gm-root main#main > .gm-lib-page .gm-lib-hero-body,
body.gm-root main#main > .lib-light.gm-lib > section {
  width: 100% !important;
  max-width: 1380px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
  box-sizing: border-box !important;
}
body.gm-root main#main > .gm-lib-page .gm-lib-hero nav { padding-top: 10px !important; padding-bottom: 8px !important; }
body.gm-root main#main > .gm-lib-page .gm-lib-hero-body { padding-top: 26px !important; padding-bottom: 30px !important; }
body.gm-root main#main > .gm-lib-page .gm-display-lib {
  margin: 0 0 10px !important;
  color: #f5f6f8 !important;
  font-size: clamp(36px, 4vw, 54px) !important;
  line-height: 1.05 !important;
  letter-spacing: -2.2px !important;
}
body.gm-root main#main > .gm-lib-page .gm-lib-hero-body p {
  max-width: 68ch !important;
  margin: 0 !important;
  color: #a4a7b0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}
body.gm-root main#main > .lib-light.gm-lib {
  padding: 0 !important;
  color: #e7e8eb !important;
  background: transparent !important;
}
body.gm-root main#main > .lib-light.gm-lib > section { padding-top: 12px !important; padding-bottom: 60px !important; }
body.gm-root main#main > .lib-light.gm-lib > section > div:first-child {
  align-items: baseline !important;
  margin-bottom: 20px !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div:first-child h2 {
  margin: 0 !important;
  color: #f5f6f8 !important;
  font-size: 24px !important;
  font-weight: 650 !important;
  letter-spacing: -.7px !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div:first-child span { color: #9da1ab !important; font-size: 13px !important; }
body.gm-root main#main > .lib-light.gm-lib > section > div.grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a {
  display: flex !important;
  min-width: 0 !important;
  min-height: 178px !important;
  flex-direction: column !important;
  padding: 17px !important;
  border: 1px solid #292c33 !important;
  border-radius: 9px !important;
  color: #eceef2 !important;
  background: #101115 !important;
  box-shadow: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a:hover {
  border-color: #4b628c !important;
  background: #151821 !important;
  transform: translateY(-2px) !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:first-child {
  align-items: center !important;
  gap: 13px !important;
  margin-bottom: 18px !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a img {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  padding: 4px !important;
  border: 1px solid #30343d !important;
  border-radius: 10px !important;
  background: #f8f9fb !important;
  object-fit: contain !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a h3 {
  margin: 0 0 4px !important;
  color: #f3f4f6 !important;
  font-size: 16px !important;
  font-weight: 620 !important;
  line-height: 1.3 !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a h3 + span { color: #9da1ab !important; font-size: 13px !important; }
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(2) {
  gap: 10px !important;
  margin-top: auto !important;
  color: #c5c9d1 !important;
  font-size: 13px !important;
}
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(2) > span:nth-child(2) { color: #5f6571 !important; }
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(3) { gap: 6px !important; margin-top: 12px !important; }
body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(3) > span {
  padding: 4px 7px !important;
  border: 1px solid #293140 !important;
  border-radius: 5px !important;
  color: #a9c4ff !important;
  background: #151c29 !important;
  font-size: 11px !important;
}
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page .gm-display-lib { color: #171c26 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page .gm-lib-hero-body p { color: #5c6677 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib { color: #202938 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div:first-child h2 { color: #171c26 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a {
  border-color: #dce2eb !important;
  color: #202938 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgb(26 38 57 / 4%) !important;
}
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a:hover { border-color: #b6c5df !important; background: #fbfcff !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a h3 { color: #202938 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a h3 + span,
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div:first-child span { color: #657187 !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(2) { color: #4d596d !important; }
html[data-ads-theme="light"] body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a > div:nth-child(3) > span { border-color: #dbe4f1 !important; color: #315fae !important; background: #f2f6fc !important; }
@media (max-width: 1100px) { body.gm-root main#main > .lib-light.gm-lib > section > div.grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (max-width: 800px) { body.gm-root main#main > .lib-light.gm-lib > section > div.grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 520px) {
  body.gm-root main#main > .gm-lib-page .gm-lib-hero nav,
  body.gm-root main#main > .gm-lib-page .gm-lib-hero-body,
  body.gm-root main#main > .lib-light.gm-lib > section { padding-right: 0 !important; padding-left: 0 !important; }
  body.gm-root main#main > .lib-light.gm-lib > section > div.grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  body.gm-root main#main > .lib-light.gm-lib > section > div.grid > a { min-height: 160px !important; }
}

/* Final shared navigation, infinite feed, and compact floating search rules. */
.sidebar-nav a[href="/library/by-hook/"],
.sidebar-nav a[href="/library/by-emotion/"],
.shared-library-nav a[href="/library/by-hook/"],
.shared-library-nav a[href="/library/by-emotion/"] {
  cursor: pointer !important;
}
.sidebar-nav a[href="/library/by-hook/"] > .nav-chevron,
.sidebar-nav a[href="/library/by-emotion/"] > .nav-chevron,
.shared-library-nav a[href="/library/by-hook/"] > .nav-chevron,
.shared-library-nav a[href="/library/by-emotion/"] > .nav-chevron,
.shared-library-nav a[href="/library/by-hook/"] > .shared-nav-chevron,
.shared-library-nav a[href="/library/by-emotion/"] > .shared-nav-chevron { display: none !important; }

body.library-home .ai-search-dock {
  position: fixed !important;
  z-index: 115 !important;
  inset: auto auto max(16px, env(safe-area-inset-bottom)) calc(var(--app-frame-left) + var(--sidebar-width) + (var(--app-frame-width) - var(--sidebar-width)) / 2) !important;
  width: min(760px, calc(var(--app-frame-width) - var(--sidebar-width) - 56px)) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.library-home .ai-search-dock > :not(.ai-search-form) { display: none !important; }
body.library-home .ai-search-form {
  min-height: 58px !important;
  gap: 12px !important;
  padding: 6px 7px 6px 17px !important;
  border: 1px solid #d7dce5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgb(22 34 55 / 16%) !important;
  backdrop-filter: blur(14px) !important;
}
body.library-home .ai-search-form input { color: #1c2432 !important; font-size: 15px !important; }
body.library-home .ai-search-form input::placeholder { color: #778296 !important; }
body.library-home .ai-search-form > button {
  width: 42px !important;
  min-height: 42px !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #2563eb !important;
  font-size: 0 !important;
}
body.library-home .ai-search-form > button > span:first-child { display: none !important; }
body.library-home .ai-search-form > button > span:last-child { font-size: 21px !important; line-height: 1 !important; }
body.library-home .ai-search-glyph { color: #8291a8 !important; font-size: 21px !important; }
body.library-home.ai-chat-open .ai-search-dock { display: none !important; }
body.library-home .library-main { padding-bottom: 104px !important; }

html[data-ads-theme="dark"] body.library-home .ai-search-form {
  border-color: #343c49 !important;
  background: rgb(18 23 31 / 96%) !important;
  box-shadow: 0 10px 30px rgb(0 0 0 / 34%) !important;
}
html[data-ads-theme="dark"] body.library-home .ai-search-form input { color: #f2f5fa !important; }
html[data-ads-theme="dark"] body.library-home .ai-search-form input::placeholder { color: #929cad !important; }

body.library-home.library-latest-view #recent-creative-feed {
  display: block !important;
  width: 100% !important;
  column-count: 4 !important;
  column-gap: 16px !important;
  column-fill: balance !important;
}
body.library-home.library-latest-view #recent-creative-feed > .creative-card {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  break-inside: avoid !important;
}
body.library-home #recent-creative-feed-end,
body.library-home #creative-feed-end { display: block !important; height: 2px !important; }
body.library-home #load-more-recent-creatives,
body.library-home #load-more-creatives { display: none !important; }
@media (max-width: 1280px) { body.library-home.library-latest-view #recent-creative-feed { column-count: 3 !important; } }
@media (max-width: 920px) { body.library-home.library-latest-view #recent-creative-feed { column-count: 2 !important; } }
@media (max-width: 760px) {
  body.library-home .ai-search-dock {
    left: 50% !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 28px) !important;
  }
  body.library-home .ai-search-form { min-height: 54px !important; padding-left: 14px !important; border-radius: 15px !important; }
  body.library-home .ai-search-form > button { width: 40px !important; min-height: 40px !important; }
}
@media (max-width: 520px) {
  body.library-home.library-latest-view #recent-creative-feed { column-count: 1 !important; }
  body.library-home .library-main { padding-bottom: 88px !important; }
}

/* Adbot's library shell: a compact, Toolfolio-inspired canvas with a focused
   hero and a true image-height masonry feed. */
:root {
  --app-frame-max: 1600px;
  --sidebar-width: 248px;
  --workspace-topbar-height: 54px;
  --library-content-max: 1480px;
  --library-space: #05070b;
  --library-panel: #101216;
  --library-border: #252932;
  --library-text: #f5f7fb;
  --library-muted: #a0a8b7;
  --library-blue: #2563eb;
}

body.library-home { background: #05070b !important; }
.library-sidebar, .shared-library-sidebar { background: #07090d !important; }
.library-sidebar > .brand, .shared-library-brand { min-height: 76px !important; }
.sidebar-nav { gap: 1px !important; padding-top: 6px !important; }
.sidebar-link, .shared-nav-link { min-height: 43px !important; font-size: 13px !important; }
.sidebar-link.active { border-left-color: #f4f7ff !important; color: #fff !important; background: #1a1c21 !important; }
.nav-group-label, .shared-library-nav small { margin-top: 19px !important; margin-bottom: 6px !important; font-size: 10px !important; }
.nav-chevron { display: none !important; }
.workspace-topbar, .shared-library-topbar {
  height: var(--workspace-topbar-height) !important;
  border-color: #242831 !important;
  background: rgb(5 7 11 / 94%) !important;
}
.top-tabs a, .shared-library-topbar nav a { font-size: 13px !important; }
.top-tabs a.active::after, .shared-library-topbar nav a:first-child::after { background: #f5f7fb !important; }
.top-actions .top-cta, .shared-login { min-height: 34px !important; border-radius: 3px !important; }
.library-content { width: min(100%, var(--library-content-max)) !important; padding: 0 34px 0 !important; }
.library-hero {
  position: relative;
  display: grid;
  min-height: clamp(360px, 31vw, 440px);
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -34px;
  padding: 52px 24px 46px;
  border-bottom: 1px solid #202a3c;
  color: #f7f9ff;
  background: #030815;
  text-align: center;
}
.library-hero::before, .library-hero::after, .library-hero-art { position: absolute; inset: 0; pointer-events: none; }
.library-hero::before {
  z-index: -2;
  content: "";
  background:
    radial-gradient(ellipse 75% 32% at 50% 77%, rgb(0 89 255 / 48%), transparent 72%),
    radial-gradient(ellipse 60% 17% at 51% 70%, rgb(19 84 255 / 62%), transparent 75%),
    radial-gradient(ellipse 83% 13% at 48% 82%, rgb(0 48 166 / 54%), transparent 74%),
    linear-gradient(180deg, #030815 0%, #040b1d 100%);
  filter: saturate(1.2);
}
.library-hero::after {
  z-index: -1;
  content: "";
  opacity: .56;
  background-image: radial-gradient(circle, rgb(35 91 255 / 76%) 1.05px, transparent 1.55px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 78% 60% at 50% 70%, #000 8%, transparent 77%);
}
.library-hero-art {
  z-index: -1;
  opacity: .72;
  background:
    radial-gradient(ellipse 60% 8% at 50% 68%, rgb(18 93 255 / 84%), transparent 78%),
    radial-gradient(ellipse 50% 6% at 50% 79%, rgb(14 49 169 / 78%), transparent 82%);
  filter: blur(18px);
}
.library-hero-content { position: relative; z-index: 1; width: min(100%, 850px); margin: 0 auto; }
.hero-trust { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 21px; color: #dce7ff; font-size: 11px; font-weight: 650; letter-spacing: .12em; }
.hero-trust > span { width: 7px; height: 7px; border-radius: 50%; background: #5b8dff; box-shadow: 0 0 0 5px rgb(40 101 255 / 18%); }
.library-hero h1 { max-width: 800px; margin: 0 auto 18px; color: #f8faff !important; font-size: clamp(45px, 5.2vw, 76px) !important; font-weight: 650 !important; letter-spacing: -.065em !important; line-height: .99 !important; }
.library-hero-content > p { max-width: 700px; margin: 0 auto; color: #aebbd4; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.6; }
.library-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.library-hero-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 11px; padding: 0 17px; border: 1px solid #364153; border-radius: 5px; color: #f4f7ff; background: rgb(17 23 35 / 80%); font-size: 12px; font-weight: 550; transition: background .16s, border-color .16s, transform .16s; }
.library-hero-actions a:first-child { border-color: #2465ec; background: #075bfa; }
.library-hero-actions a:hover { border-color: #7796d5; background: #171f30; transform: translateY(-1px); }
.library-hero-actions a:first-child:hover { border-color: #3c7dff; background: #1768ff; }
.library-overview { min-height: 72px !important; justify-content: flex-start !important; padding: 0 0 5px !important; border-bottom: 1px solid #242831 !important; }
.library-overview .library-stats { width: 100%; justify-content: center; }
.library-stats > div { min-width: 148px !important; padding: 0 23px !important; border-left-color: #292e38 !important; }
.library-stats > div:first-child { border-left: 0 !important; }
.library-stats strong { color: #f5f7fb !important; font-size: 19px !important; }
.library-stats span { color: #8792a6 !important; font-size: 10px !important; }
.directory-section { padding-top: 28px !important; }
.directory-heading { margin-bottom: 16px !important; }
.directory-heading h2 { color: #f3f6fc !important; font-size: 22px !important; font-weight: 620 !important; letter-spacing: -.04em !important; }
.directory-heading p { color: #929bad !important; font-size: 12px !important; }
.heading-count { border-color: #333b49 !important; border-radius: 4px !important; color: #aab5c8 !important; background: #11151d !important; }
.directory-heading .view-all { color: #b0bad0 !important; }
.creative-masonry {
  display: block !important;
  column-count: 4 !important;
  column-gap: 14px !important;
  column-fill: balance !important;
}
.creative-masonry > .creative-card {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  overflow: hidden;
  break-inside: avoid !important;
  vertical-align: top;
}
.creative-visual { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; overflow: hidden; background: #11151d !important; }
.creative-visual > img, .creative-visual > video { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain !important; }
.creative-card-copy { padding: 11px 12px 13px !important; }
.creative-brand-row { gap: 8px !important; margin-bottom: 8px !important; }
.creative-brand-row b { color: #e3e9f4 !important; font-size: 11px !important; }
.creative-platform { color: #8d98ab !important; font-size: 9px !important; }
.creative-card-copy > strong { color: #f2f5fa !important; font-size: 13px !important; line-height: 1.4 !important; }
.creative-description { color: #9aa5b7 !important; font-size: 11px !important; line-height: 1.55 !important; }
.creative-card { border-color: #282e39 !important; border-radius: 4px !important; color: #f5f7fb !important; background: #0b0e14 !important; transition: border-color .18s, background .18s, transform .18s !important; }
.creative-card:hover { border-color: #4b5a74 !important; background: #10151e !important; transform: translateY(-2px) !important; }
.creative-card.source-adfolio .creative-visual { background: #fff !important; }
.creative-card.source-adfolio .creative-visual > img { object-fit: contain !important; }
.library-home .empty-state { border-color: #2b3340 !important; color: #aab4c4 !important; background: #0c1017 !important; }
.library-home.library-latest-view .library-content > :not(#latest-additions):not(.ai-search-dock) { display: none !important; }
.library-home.library-latest-view #latest-additions { padding-top: 32px !important; }
.library-home.library-latest-view #latest-additions .directory-heading h2 { font-size: 30px !important; }
body.gm-root { min-height: 100vh; background: #05070b !important; }
body.gm-root main#main, body.gm-root main#main > .gm-lib-page { color: #eef2f8 !important; background: #05070b !important; }
.shared-library-sidebar { width: var(--sidebar-width) !important; }
.shared-library-topbar { left: calc(var(--app-frame-left) + var(--sidebar-width)) !important; width: calc(var(--app-frame-width) - var(--sidebar-width)) !important; }
body.gm-root main#main { margin-left: calc(var(--app-frame-left) + var(--sidebar-width)) !important; padding: var(--workspace-topbar-height) 34px 54px !important; }
body.gm-root main#main > .gm-lib-page,
body.gm-root main#main > .lib-light.gm-lib,
body.gm-root .library-directory { width: min(100%, var(--library-content-max)) !important; max-width: var(--library-content-max) !important; margin-right: auto !important; margin-left: auto !important; }
body.gm-root .gm-lib-hero { background: transparent !important; }
body.gm-root .gm-lib-hero-body { padding-top: 36px !important; padding-bottom: 28px !important; }
body.gm-root .gm-lib-hero h1, body.gm-root .library-directory h1 { color: #f5f7fb !important; letter-spacing: -.045em !important; }
body.gm-root .gm-lib-hero p, body.gm-root .library-directory .directory-intro { color: #a0aabc !important; }
html[data-ads-theme="light"] body.library-home { background: #f1f3f7 !important; }
html[data-ads-theme="light"] .library-sidebar, html[data-ads-theme="light"] .shared-library-sidebar { background: #fff !important; }
html[data-ads-theme="light"] .workspace-topbar, html[data-ads-theme="light"] .shared-library-topbar { background: rgb(255 255 255 / 96%) !important; }
html[data-ads-theme="light"] .library-overview { border-color: #dce1e9 !important; }
html[data-ads-theme="light"] .library-stats strong { color: #1b2431 !important; }
html[data-ads-theme="light"] .library-stats span { color: #647084 !important; }
html[data-ads-theme="light"] .directory-heading h2 { color: #1b2431 !important; }
html[data-ads-theme="light"] .directory-heading p { color: #647084 !important; }
html[data-ads-theme="light"] .creative-card { border-color: #dfe4ec !important; color: #202938 !important; background: #fff !important; }
html[data-ads-theme="light"] .creative-card:hover { border-color: #b9c6db !important; background: #fff !important; }
html[data-ads-theme="light"] .creative-brand-row b, html[data-ads-theme="light"] .creative-card-copy > strong { color: #202938 !important; }
html[data-ads-theme="light"] .creative-platform, html[data-ads-theme="light"] .creative-description { color: #667185 !important; }
html[data-ads-theme="light"] body.gm-root, html[data-ads-theme="light"] body.gm-root main#main, html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page { color: #202938 !important; background: #f1f3f7 !important; }
@media (max-width: 1280px) { .creative-masonry { column-count: 3 !important; } }
@media (max-width: 920px) {
  .creative-masonry { column-count: 2 !important; column-gap: 11px !important; }
  .library-stats > div { min-width: 120px !important; padding: 0 16px !important; }
}
@media (max-width: 760px) {
  .library-content { padding-right: 17px !important; padding-left: 17px !important; }
  .library-hero { min-height: 350px; margin-right: -17px; margin-left: -17px; padding: 42px 18px; }
  .library-hero h1 { font-size: clamp(40px, 9vw, 58px) !important; }
  .hero-trust { font-size: 9px; letter-spacing: .09em; }
  .library-overview { min-height: 65px !important; }
  .library-stats { justify-content: flex-start !important; overflow-x: auto; }
  .library-stats > div { min-width: 96px !important; padding: 0 11px !important; }
  body.gm-root main#main { margin-left: 0 !important; padding: 58px 17px 38px !important; }
  .shared-library-topbar { left: 0 !important; width: 100% !important; }
}
@media (max-width: 520px) {
  .creative-masonry { column-count: 1 !important; }
  .library-hero { min-height: 330px; }
  .library-hero-content > p { font-size: 14px; }
  .library-hero-actions { gap: 8px; }
  .library-hero-actions a { min-height: 39px; padding: 0 13px; font-size: 11px; }
  .library-stats > div { min-width: 88px !important; }
}

/* Final workspace alignment and controls. */
.sidebar-search, .shared-library-search { display: none !important; }
.top-library-search {
  position: relative;
  display: flex !important;
  width: clamp(190px, 19vw, 258px);
  min-width: 0;
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #343a45;
  border-radius: 7px;
  color: #aeb6c4;
  background: #10141b;
  box-sizing: border-box;
}
.top-search-trigger {
  display: grid;
  width: 20px;
  height: 24px;
  flex: 0 0 20px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #9ba6b7;
  background: transparent;
  cursor: pointer;
}
.top-search-trigger svg,
.ai-search-glyph svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.top-library-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #e9edf4;
  background: transparent;
  font: 450 12px/1.4 Inter, system-ui, sans-serif;
}
.top-library-search input::placeholder { color: #7f8999; opacity: 1; }
.top-library-search kbd { flex: 0 0 auto; padding: 4px 5px; border-radius: 4px; color: #99a3b2; background: #202631; font: 500 9px/1 Inter, system-ui, sans-serif; }
.top-library-search:focus-within { border-color: #68758a; background: #131923; }
html[data-ads-theme="light"] .top-library-search { border-color: #d7dce5; color: #586477; background: #f7f8fa; }
html[data-ads-theme="light"] .top-library-search input { color: #202938; }
html[data-ads-theme="light"] .top-library-search input::placeholder { color: #7a8493; }
html[data-ads-theme="light"] .top-library-search kbd { color: #596273; background: #e9edf3; }

/* Neutral navigation text; reserve blue for primary actions. */
.sidebar-link, .sidebar-link:visited, .shared-nav-link, .shared-nav-link:visited {
  color: #aeb4bf !important;
}
.shared-nav-link:first-child {
  color: #aeb4bf !important;
  border-left-color: transparent !important;
  background: transparent !important;
}
.shared-nav-link:first-child:hover,
.shared-nav-link:first-child:focus-visible { color: #fff !important; background: #171b22 !important; }
.sidebar-link.active, .sidebar-link[aria-current="page"],
.shared-nav-link[aria-current="page"] {
  color: #f5f6f8 !important;
  border-left-color: #aeb4bf !important;
  background: #20242b !important;
}
.sidebar-link:hover, .shared-nav-link:hover,
.sidebar-link:focus-visible, .shared-nav-link:focus-visible {
  color: #fff !important;
  background: #171b22 !important;
}
.sidebar-icon, .shared-nav-link > span { color: #a1a8b4 !important; }
.sidebar-link.active .sidebar-icon, .shared-nav-link[aria-current="page"] > span { color: #e8ebf0 !important; }
html[data-ads-theme="light"] .sidebar-link,
html[data-ads-theme="light"] .sidebar-link:visited,
html[data-ads-theme="light"] .shared-nav-link,
html[data-ads-theme="light"] .shared-nav-link:visited { color: #4e596a !important; }
html[data-ads-theme="light"] .sidebar-link.active,
html[data-ads-theme="light"] .sidebar-link[aria-current="page"],
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"] {
  color: #202938 !important;
  border-left-color: #8b95a5 !important;
  background: #edf0f4 !important;
}
html[data-ads-theme="light"] .sidebar-link:hover,
html[data-ads-theme="light"] .shared-nav-link:hover,
html[data-ads-theme="light"] .sidebar-link:focus-visible,
html[data-ads-theme="light"] .shared-nav-link:focus-visible { color: #202938 !important; background: #f1f3f6 !important; }
html[data-ads-theme="light"] .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link > span,
html[data-ads-theme="light"] .sidebar-link.active .sidebar-icon,
html[data-ads-theme="light"] .shared-nav-link[aria-current="page"] > span { color: #647083 !important; }

.theme-switch {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 8px;
  padding: 3px;
  border: 1px solid #343a45;
  border-radius: 7px;
  background: #0e1116;
  box-sizing: border-box;
}
.theme-switch button {
  min-width: 0;
  height: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  color: #8f98a7;
  background: transparent;
  font: 550 11px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { color: #f4f6f9; background: #29303b; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); }
html[data-ads-theme="light"] .theme-switch { border-color: #d9dfe8; background: #edf0f4; }
html[data-ads-theme="light"] .theme-switch button { color: #657084; }
html[data-ads-theme="light"] .theme-switch button[aria-pressed="true"] { color: #202938; background: #fff; box-shadow: 0 1px 3px rgb(28 41 61 / 12%); }
.sidebar-bottom, .shared-sidebar-bottom { gap: 3px !important; padding: 10px 16px !important; }
.theme-switch { margin-top: 5px; }
.sidebar-bottom > span, .shared-sidebar-bottom > span { font-size: 10px !important; }

.shared-library-topbar nav a,
.top-tabs a { min-height: 100%; color: #aab1bd !important; font-size: 14px !important; font-weight: 500; text-decoration: none; }
.shared-library-topbar nav a::after { display: none; }
.shared-library-topbar nav a[aria-current="page"],
.top-tabs a.active { color: #f4f6f9 !important; }
.shared-library-topbar nav a[aria-current="page"]::after,
.top-tabs a.active::after { height: 2px !important; background: #dce2eb !important; }
.shared-library-topbar nav a[aria-current="page"]::after { display: block; }
html[data-ads-theme="light"] .shared-library-topbar nav a,
html[data-ads-theme="light"] .top-tabs a { color: #687386 !important; }
html[data-ads-theme="light"] .shared-library-topbar nav a[aria-current="page"],
html[data-ads-theme="light"] .top-tabs a.active { color: #202938 !important; }
html[data-ads-theme="light"] .shared-library-topbar nav a[aria-current="page"]::after,
html[data-ads-theme="light"] .top-tabs a.active::after { background: #596477 !important; }

.library-overview { min-height: 100px !important; padding: 0 0 18px !important; }
.library-overview .library-stats {
  display: grid !important;
  width: min(100%, 920px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  align-items: stretch;
}
.library-overview .library-stats > div {
  min-width: 0 !important;
  gap: 5px !important;
  padding: 0 22px !important;
  border-left: 1px solid #303641 !important;
}
.library-overview .library-stats > div:first-child { border-left: 0 !important; }
.library-overview .library-stats strong { font-size: 21px !important; line-height: 1.15; }
.library-overview .library-stats span { font-size: 11px !important; line-height: 1.35; }
html[data-ads-theme="light"] .library-overview .library-stats > div { border-left-color: #dce2eb !important; }
html[data-ads-theme="light"] .library-overview .library-stats > div:first-child { border-left: 0 !important; }

.ai-search-glyph { display: grid !important; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #96a3b8 !important; font-size: 0 !important; line-height: 0; transform: none !important; }
.ai-search-glyph svg { width: 17px; height: 17px; }
.ai-search-form { box-sizing: border-box; }
.ai-search-form > button { flex: 0 0 42px !important; }

/* Shared shell refinements: align the brand rail with the workspace header. */
:root { --workspace-topbar-height: 64px; }
.library-sidebar > .brand,
.shared-library-brand {
  display: flex !important;
  width: var(--sidebar-width) !important;
  height: var(--workspace-topbar-height) !important;
  min-height: var(--workspace-topbar-height) !important;
  max-height: var(--workspace-topbar-height) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 18px !important;
  border-bottom: 1px solid #242831 !important;
  box-sizing: border-box !important;
}
.library-sidebar > .brand img.brand-logo,
.shared-library-brand img.shared-brand-logo {
  width: auto !important;
  max-width: 190px !important;
  height: 56px !important;
  max-height: calc(var(--workspace-topbar-height) - 8px) !important;
  flex: 0 1 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
html[data-ads-theme="dark"] .library-sidebar > .brand img.brand-logo,
html[data-ads-theme="dark"] .shared-library-brand img.shared-brand-logo {
  border-radius: 0 !important;
  background: transparent !important;
  filter: none !important;
}
.workspace-topbar,
.shared-library-topbar {
  height: var(--workspace-topbar-height) !important;
  min-height: var(--workspace-topbar-height) !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.top-tabs,
.shared-library-topbar nav { height: 100% !important; align-items: stretch !important; }
.top-tabs a,
.shared-library-topbar nav a { min-height: 100% !important; display: inline-flex !important; align-items: center !important; }

/* The theme control is the only content in the sidebar footer. */
.sidebar-bottom,
.shared-sidebar-bottom {
  min-height: 72px !important;
  gap: 0 !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}
.sidebar-bottom > a,
.sidebar-bottom > span,
.shared-sidebar-bottom > a,
.shared-sidebar-bottom > span { display: none !important; }
.theme-switch { width: 100% !important; margin: 0 !important; }

/* Center all four figures inside a consistent band with no trailing gap. */
.library-overview {
  display: flex !important;
  height: 84px !important;
  min-height: 84px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
.library-overview .library-stats {
  height: 100% !important;
  align-items: center !important;
}
.library-overview .library-stats > div {
  min-height: 52px !important;
  align-self: center !important;
  justify-content: center !important;
}

/* Reserve every ad's actual aspect ratio and keep slow previews calm. */
.creative-visual {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--creative-ratio, 4 / 5) !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #11151d !important;
}
html[data-ads-theme="light"] .creative-visual { background: #eef1f5 !important; }
.creative-visual::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgb(255 255 255 / 8%) 45%, transparent 68%), #161a22;
  background-size: 240% 100%, auto;
}
html[data-ads-theme="light"] .creative-visual::before {
  background: linear-gradient(105deg, transparent 20%, rgb(255 255 255 / 72%) 45%, transparent 68%), #e7ebf1;
  background-size: 240% 100%, auto;
}
.creative-visual.media-loading::before {
  opacity: 1;
  animation: creative-skeleton-shimmer 1.55s ease-in-out infinite;
}
@keyframes creative-skeleton-shimmer {
  from { background-position: 100% 0, 0 0; }
  to { background-position: -100% 0, 0 0; }
}
.creative-visual > img,
.creative-visual > video {
  position: absolute !important;
  z-index: 1;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  opacity: 1;
  transition: opacity .18s ease-out;
}
.creative-visual.media-loading > img,
.creative-visual.media-loading > video { opacity: 0; }
.creative-visual > .creative-fallback-mark {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: none !important;
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
}
.creative-visual.media-missing > .creative-fallback-mark,
.creative-visual.media-fallback > .creative-fallback-mark { display: grid !important; }
.creative-visual > .creative-format,
.creative-visual > .creative-play { z-index: 3; }
.creative-visual.media-loading > .creative-play { opacity: 0; }
.creative-card.source-adfolio .creative-visual { background-color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  .creative-visual.media-loading::before { animation: none; }
}

@media (max-width: 760px) {
  :root { --workspace-topbar-height: 58px; }
  .library-sidebar > .brand,
  .shared-library-brand { height: 58px !important; min-height: 58px !important; max-height: 58px !important; }
  .library-sidebar > .brand img.brand-logo,
  .shared-library-brand img.shared-brand-logo { height: 50px !important; }
}
@media (max-width: 520px) {
  .library-overview {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 0 !important;
  }
  .library-overview .library-stats { height: auto !important; }
  .library-overview .library-stats > div { min-height: 44px !important; }
}
body.gm-root nav[aria-label="Breadcrumb"],
body.gm-root nav[aria-label="Breadcrumbs"],
body.gm-root .local-route-breadcrumb { display: none !important; }
body.gm-root main#main { padding-top: calc(var(--workspace-topbar-height) + 30px) !important; }
body.gm-root main#main > .gm-lib-page {
  width: min(100%, 1460px) !important;
  max-width: 1460px !important;
  padding: 0 !important;
}
body.gm-root main#main > .library-directory,
body.gm-root main#main > article.library-directory,
body.gm-root main#main > .local-route-mount {
  width: min(100%, 1460px) !important;
  max-width: 1460px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box;
}
body.gm-root main#main > .gm-lib-page > .gm-hero,
body.gm-root main#main > .gm-lib-page > .lib-light.gm-lib > section {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}
body.gm-root main#main > .gm-lib-page .gm-lib-hero-body { padding-top: 30px !important; padding-bottom: 25px !important; }
body.gm-root main#main > .gm-lib-page .gm-lib-hero h1 {
  margin: 0 0 12px !important;
  font-size: clamp(40px, 4vw, 54px) !important;
  letter-spacing: -.055em !important;
  line-height: 1.04 !important;
}
body.gm-root main#main > .gm-lib-page .gm-lib-hero p { max-width: 700px !important; font-size: 16px !important; line-height: 1.6 !important; }
body.gm-root main#main > .gm-lib-page .brand-directory-section { padding-top: 18px !important; }
body.gm-root main#main > .gm-lib-page .brand-directory-section > div:first-child {
  min-height: 28px;
  justify-content: flex-end !important;
  margin: 0 0 14px !important;
}
body.gm-root .brand-directory-count { color: #939eaf !important; font-size: 12px !important; }
html[data-ads-theme="light"] body.gm-root .brand-directory-count { color: #657187 !important; }
body.gm-root main#main > .gm-lib-page .brand-directory-section > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
@media (max-width: 1100px) { body.gm-root main#main > .gm-lib-page .brand-directory-section > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 800px) { body.gm-root main#main > .gm-lib-page .brand-directory-section > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) {
  .workspace-topbar, .shared-library-topbar {
    height: 58px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  .top-tabs, .shared-library-topbar nav { min-width: 0; flex: 1 1 auto; gap: 0 !important; }
  .top-tabs a, .shared-library-topbar nav a { min-height: 58px; padding: 0 9px !important; font-size: 13px !important; white-space: nowrap; }
  .top-actions, .shared-library-topbar > div { min-width: 0; gap: 8px !important; }
  .top-library-search { width: 38px !important; height: 36px !important; flex: 0 0 38px; justify-content: center; gap: 0; padding: 0 !important; overflow: hidden; border-radius: 8px !important; }
  .top-library-search input, .top-library-search kbd { display: none; }
  .top-library-search.is-open {
    position: absolute;
    z-index: 130;
    top: calc(100% + 8px);
    right: 12px;
    display: flex !important;
    width: min(340px, calc(100vw - 24px)) !important;
    height: 44px !important;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 10px !important;
    overflow: visible;
    box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
  }
  .top-library-search.is-open input { display: block; }
  .shared-top-link, .top-actions .top-link { display: none !important; }
  .shared-login, .top-actions .top-cta { min-height: 34px !important; padding: 0 9px !important; font-size: 10px !important; white-space: nowrap; }
  .library-overview .library-stats { width: 100% !important; }
  .library-overview .library-stats > div { padding: 0 12px !important; }
  .library-overview .library-stats strong { font-size: 18px !important; }
  .library-overview .library-stats span { font-size: 10px !important; }
  body.gm-root main#main { padding: 76px 22px 38px !important; }
  body.gm-root main#main > .gm-lib-page .gm-lib-hero-body { padding-top: 24px !important; padding-bottom: 20px !important; }
  body.gm-root main#main > .gm-lib-page .gm-lib-hero h1 { font-size: clamp(34px, 8vw, 44px) !important; }
  body.gm-root main#main > .gm-lib-page .gm-lib-hero p { font-size: 14px !important; }
  body.gm-root main#main > .gm-lib-page .brand-directory-section > .grid { gap: 10px !important; }
  .theme-switch button { height: 34px; font-size: 11px; }
}
@media (max-width: 520px) {
  .top-tabs a, .shared-library-topbar nav a { padding: 0 7px !important; font-size: 12px !important; }
  .top-actions .top-cta, .shared-login { max-width: 92px; overflow: hidden; }
  .library-overview .library-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 16px; }
  .library-overview .library-stats > div:nth-child(3) { border-left: 0 !important; }
  .library-overview .library-stats > div { min-height: 40px; }
  body.gm-root main#main { padding-right: 16px !important; padding-left: 16px !important; }
  body.gm-root main#main > .gm-lib-page .brand-directory-section > .grid { grid-template-columns: 1fr !important; }
}

/* Final shell and dock geometry: keep the brand lockup aligned to the rail,
   outline both workspace panels, and give the floating search one clear form. */
.library-sidebar,
.shared-library-sidebar,
.library-workspace {
  border: 1px solid #333 !important;
  box-sizing: border-box !important;
}
html[data-ads-theme="light"] .library-sidebar,
html[data-ads-theme="light"] .shared-library-sidebar,
html[data-ads-theme="light"] .library-workspace {
  border-color: #d7dce5 !important;
}
.library-sidebar > .brand,
.shared-library-brand {
  justify-content: flex-start !important;
  padding-right: 18px !important;
  padding-left: 18px !important;
}
.library-sidebar > .brand img.brand-logo,
.shared-library-brand img.shared-brand-logo {
  width: auto !important;
  max-width: 190px !important;
  height: 40px !important;
  max-height: calc(var(--workspace-topbar-height) - 8px) !important;
  margin-right: auto !important;
  flex: 0 1 auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: none !important;
}
body.library-home .ai-search-form {
  min-height: 58px !important;
  gap: 12px !important;
  padding: 6px 7px 6px 17px !important;
  border: 1px solid #d7dce5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgb(22 34 55 / 16%) !important;
  backdrop-filter: blur(14px) !important;
  box-sizing: border-box !important;
}
html[data-ads-theme="dark"] body.library-home .ai-search-form {
  border-color: #343c49 !important;
  background: rgb(18 23 31 / 96%) !important;
  box-shadow: 0 10px 30px rgb(0 0 0 / 34%) !important;
}
html[data-ads-theme="light"] body.library-home .ai-search-form {
  border-color: #d7dce5 !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: 0 10px 30px rgb(22 34 55 / 16%) !important;
}
@media (max-width: 760px) {
  .library-sidebar > .brand img.brand-logo,
  .shared-library-brand img.shared-brand-logo { height: 40px !important; }
}

/* Keep the browser canvas the same color as the selected page theme, including
   the overscroll area above and below short pages. */
html,
body.library-home,
body.gm-root {
  min-height: 100%;
  background-color: #05070b !important;
  overscroll-behavior-y: none;
}
html[data-ads-theme="light"] {
  color-scheme: light;
  background-color: #f4f5f7 !important;
}
html[data-ads-theme="light"] body.library-home,
html[data-ads-theme="light"] body.gm-root {
  min-height: 100%;
  background-color: #f4f5f7 !important;
}

/* Give the light theme its own deliberate hero and blue accent system. */
html[data-ads-theme="light"] body.library-home .library-hero {
  border-color: #d9e1ee !important;
  color: #18202d !important;
  background: #edf2f9 !important;
}
html[data-ads-theme="light"] body.library-home .library-hero::before {
  background:
    radial-gradient(ellipse 72% 34% at 50% 82%, rgb(37 99 235 / 14%), transparent 74%),
    radial-gradient(ellipse 48% 20% at 50% 78%, rgb(85 137 239 / 12%), transparent 76%),
    linear-gradient(180deg, #fbfcfe 0%, #edf2f9 100%) !important;
  filter: none !important;
}
html[data-ads-theme="light"] body.library-home .library-hero::after {
  opacity: .28 !important;
  background-image: radial-gradient(circle, rgb(37 99 235 / 36%) 1px, transparent 1.5px) !important;
}
html[data-ads-theme="light"] body.library-home .library-hero-art {
  opacity: .34 !important;
  background:
    radial-gradient(ellipse 60% 9% at 50% 76%, rgb(74 127 235 / 30%), transparent 78%),
    radial-gradient(ellipse 48% 7% at 50% 84%, rgb(69 113 207 / 18%), transparent 82%) !important;
}
html[data-ads-theme="light"] body.library-home .hero-trust { color: #485872 !important; }
html[data-ads-theme="light"] body.library-home .hero-trust > span {
  background: #316bd6 !important;
  box-shadow: 0 0 0 5px rgb(49 107 214 / 12%) !important;
}
html[data-ads-theme="light"] body.library-home .library-hero h1 { color: #172033 !important; }
html[data-ads-theme="light"] body.library-home .library-hero-content > p { color: #56647a !important; }
html[data-ads-theme="light"] body.library-home .library-hero-actions a {
  border-color: #d0d9e7 !important;
  color: #26354c !important;
  background: rgb(255 255 255 / 86%) !important;
}
html[data-ads-theme="light"] body.library-home .library-hero-actions a:first-child {
  border-color: #245fd4 !important;
  color: #fff !important;
  background: #2563eb !important;
}
html[data-ads-theme="light"] body.library-home .library-hero-actions a:hover {
  border-color: #9fb4d6 !important;
  background: #fff !important;
}
html[data-ads-theme="light"] body.library-home .library-hero-actions a:first-child:hover {
  border-color: #1d4fc0 !important;
  color: #fff !important;
  background: #1f5bdc !important;
}
html[data-ads-theme="light"] .top-actions .top-cta,
html[data-ads-theme="light"] .shared-login {
  border: 1px solid #2563eb !important;
  color: #fff !important;
  background: #2563eb !important;
}
html[data-ads-theme="light"] .top-tabs a.active::after,
html[data-ads-theme="light"] .shared-library-topbar nav a[aria-current="page"]::after { background: #2563eb !important; }
html[data-ads-theme="light"] .shared-library-topbar nav a:not([aria-current="page"])::after { background: transparent !important; }
html[data-ads-theme="light"] .library-overview,
html[data-ads-theme="light"] .library-overview .library-stats > div { border-color: #dce2eb !important; }
html[data-ads-theme="light"] .library-overview .library-stats strong { color: #18202d !important; }
html[data-ads-theme="light"] .library-overview .library-stats span { color: #647187 !important; }

/* Brand detail pages: a clear identity block, a compact metric strip, and
   quiet editorial surfaces with one consistent blue accent. */
html[data-ads-theme="light"] body.gm-root main#main > .gm-lib-page {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  padding: 0 !important;
  color: #18202d !important;
  background: transparent !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-hero.gm-lib-hero {
  margin: 0 0 18px !important;
  overflow: hidden !important;
  border: 1px solid #dce3ed !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff 0%, #f8fafd 58%, #edf3ff 100%) !important;
  box-shadow: 0 8px 28px rgb(26 43 72 / 5%) !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero > nav[aria-label="Breadcrumb"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px 32px 0 !important;
  color: #778196 !important;
  font-size: 12px !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero > nav a { color: #52627a !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero > nav a:hover { color: #285fd4 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 32px 30px !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-row {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 20px !important;
  margin: 0 !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-logo {
  width: 64px !important;
  height: 64px !important;
  margin: 3px 0 0 !important;
  border: 1px solid #dce2eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgb(23 34 53 / 7%) !important;
  object-fit: contain !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-copy { min-width: 0 !important; }
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-copy > div:first-child {
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-display-lib {
  width: min(100%, 780px) !important;
  max-width: 780px !important;
  margin: 0 !important;
  color: #172033 !important;
  font-size: clamp(36px, 3.6vw, 52px) !important;
  font-weight: 650 !important;
  letter-spacing: -.055em !important;
  line-height: 1.04 !important;
  text-wrap: balance;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-chip {
  min-height: 28px !important;
  margin-top: 5px !important;
  border: 1px solid #cddaf2 !important;
  border-radius: 999px !important;
  color: #2857b8 !important;
  background: #f0f5ff !important;
  font-size: 12px !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-copy > p:first-of-type {
  max-width: 760px !important;
  margin: 14px 0 0 !important;
  color: #526078 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-copy > p:nth-of-type(2) {
  max-width: 760px !important;
  margin: 8px 0 0 !important;
  color: #778196 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page [data-cro="next-step"] {
  align-items: center !important;
  gap: 10px 14px !important;
  margin-top: 18px !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page [data-cro="next-step"] a {
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid #245fd4 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #2563eb !important;
  box-shadow: 0 3px 8px rgb(37 99 235 / 16%) !important;
  font-size: 13px !important;
}
html[data-ads-theme="light"] body.gm-root .gm-lib-page [data-cro="next-step"] span { color: #68758a !important; font-size: 12px !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  color: #273246 !important;
  background: transparent !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 32px 22px !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .gm-lib-stat {
  display: flex !important;
  min-width: 0 !important;
  min-height: 92px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 15px 18px !important;
  border: 1px solid #dfe4ec !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 2px 7px rgb(24 39 63 / 4%) !important;
  text-align: left !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .gm-lib-stat .text-3xl,
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .gm-lib-stat .md\:text-4xl {
  margin: 0 !important;
  color: #285fd4 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .gm-lib-stat .text-sm { color: #68758a !important; font-size: 12px !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib #takeaways { padding: 0 32px 26px !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-summary {
  padding: 22px 24px !important;
  border: 1px solid #dfe4ec !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgb(24 39 63 / 4%) !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-summary-label {
  margin-bottom: 12px !important;
  color: #285fd4 !important;
  font-size: 11px !important;
  letter-spacing: .09em !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-summary li {
  color: #4f5d72 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-summary li::before { color: #285fd4 !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-toc { gap: 8px !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-toc a {
  border-color: #dfe4ec !important;
  border-radius: 999px !important;
  color: #46556d !important;
  background: #fff !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib .lib-toc a:hover {
  border-color: #9fb6e2 !important;
  color: #285fd4 !important;
  background: #f5f8ff !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="bg-brand-bg-card"],
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="bg-brand-bg-tint"] {
  border-color: #dfe4ec !important;
  border-radius: 12px !important;
  color: #29364b !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgb(24 39 63 / 4%) !important;
}
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="text-brand-accent"] { color: #285fd4 !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="text-brand-heading"] { color: #18202d !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="text-brand-body-secondary"],
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib [class*="text-brand-subtext"] { color: #647187 !important; }
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib h2,
html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib h3 { color: #18202d !important; letter-spacing: -.035em !important; }
@media (max-width: 760px) {
  html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero > nav[aria-label="Breadcrumb"] { padding: 18px 20px 0 !important; }
  html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-body { padding: 22px 20px 24px !important; }
  html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-row { grid-template-columns: 48px minmax(0, 1fr) !important; gap: 14px !important; }
  html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-lib-hero-logo { width: 48px !important; height: 48px !important; border-radius: 11px !important; }
  html[data-ads-theme="light"] body.gm-root .gm-lib-page .gm-display-lib { font-size: clamp(30px, 7vw, 40px) !important; }
  html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] { padding: 0 20px 18px !important; }
  html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-ads-theme="light"] body.gm-root .lib-light.gm-lib #takeaways { padding: 0 20px 22px !important; }
}

/* Keep the same brand-page hierarchy in dark mode. */
html[data-ads-theme="dark"] body.gm-root main#main > .gm-lib-page,
html[data-ads-theme="dark"] body.gm-root main#main > .lib-light.gm-lib {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-hero.gm-lib-hero {
  overflow: hidden !important;
  border: 1px solid #273244 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #111721 0%, #0d131d 58%, #101a2b 100%) !important;
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%) !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero > nav[aria-label="Breadcrumb"] {
  padding: 22px 32px 0 !important;
  color: #8d9bb0 !important;
  font-size: 12px !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero > nav a { color: #b5c1d3 !important; }
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-body { padding: 24px 32px 30px !important; }
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-row {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 20px !important;
  margin: 0 !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-logo {
  width: 64px !important;
  height: 64px !important;
  margin: 3px 0 0 !important;
  border: 1px solid #303b4d !important;
  border-radius: 14px !important;
  background: #fff !important;
  object-fit: contain !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-display-lib {
  width: min(100%, 780px) !important;
  max-width: 780px !important;
  margin: 0 !important;
  color: #f3f6fb !important;
  font-size: clamp(36px, 3.6vw, 52px) !important;
  font-weight: 650 !important;
  letter-spacing: -.055em !important;
  line-height: 1.04 !important;
  text-wrap: balance;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-chip {
  min-height: 28px !important;
  border: 1px solid #314463 !important;
  border-radius: 999px !important;
  color: #a9c5ff !important;
  background: #17243a !important;
  font-size: 12px !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-copy > p:first-of-type {
  max-width: 760px !important;
  margin: 14px 0 0 !important;
  color: #b7c2d2 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-copy > p:nth-of-type(2) {
  max-width: 760px !important;
  margin: 8px 0 0 !important;
  color: #8795aa !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html[data-ads-theme="dark"] body.gm-root .gm-lib-page [data-cro="next-step"] a {
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid #3472ed !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #2563eb !important;
  font-size: 13px !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] {
  padding: 0 32px 22px !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .gm-lib-stat {
  display: flex !important;
  min-width: 0 !important;
  min-height: 92px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 15px 18px !important;
  border: 1px solid #283448 !important;
  border-radius: 12px !important;
  color: #e7edf6 !important;
  background: #111721 !important;
  text-align: left !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .gm-lib-stat .text-3xl,
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .gm-lib-stat .md\:text-4xl { color: #85aaff !important; font-size: 28px !important; line-height: 1.1 !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .gm-lib-stat .text-sm { color: #a6b2c4 !important; font-size: 12px !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib #takeaways { padding: 0 32px 26px !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-summary {
  padding: 22px 24px !important;
  border: 1px solid #283448 !important;
  border-radius: 14px !important;
  color: #c7d0de !important;
  background: #111721 !important;
  box-shadow: none !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-summary-label { color: #85aaff !important; font-size: 11px !important; letter-spacing: .09em !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-summary li { color: #b7c2d2 !important; font-size: 14px !important; line-height: 1.65 !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-summary li::before { color: #85aaff !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-toc a {
  border-color: #2b384c !important;
  border-radius: 999px !important;
  color: #c4cede !important;
  background: #111721 !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib .lib-toc a:hover { border-color: #476aa8 !important; color: #a9c5ff !important; background: #17243a !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib [class*="bg-brand-bg-card"],
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib [class*="bg-brand-bg-tint"] {
  border-color: #283448 !important;
  border-radius: 12px !important;
  color: #d1d9e5 !important;
  background: #111721 !important;
  box-shadow: none !important;
}
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib [class*="text-brand-accent"] { color: #85aaff !important; }
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib [class*="text-brand-heading"],
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib h2,
html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib h3 { color: #eef2f8 !important; letter-spacing: -.035em !important; }
@media (max-width: 760px) {
  html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero > nav[aria-label="Breadcrumb"] { padding: 18px 20px 0 !important; }
  html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-body { padding: 22px 20px 24px !important; }
  html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-row { grid-template-columns: 48px minmax(0, 1fr) !important; gap: 14px !important; }
  html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-lib-hero-logo { width: 48px !important; height: 48px !important; border-radius: 11px !important; }
  html[data-ads-theme="dark"] body.gm-root .gm-lib-page .gm-display-lib { font-size: clamp(30px, 7vw, 40px) !important; }
  html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] { padding: 0 20px 18px !important; }
  html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib > section[aria-label="Brand statistics"] > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-ads-theme="dark"] body.gm-root .lib-light.gm-lib #takeaways { padding: 0 20px 22px !important; }
}

/* Visual-first creative browsing and shareable, page-backed ad previews. */
.creative-masonry {
  column-gap: 16px !important;
}
.creative-masonry > a.creative-card,
.creative-masonry > button.creative-card {
  display: inline-block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}
html[data-ads-theme="light"] .creative-masonry > a.creative-card:hover,
html[data-ads-theme="light"] .creative-masonry > button.creative-card:hover,
html[data-ads-theme="dark"] .creative-masonry > a.creative-card:hover,
html[data-ads-theme="dark"] .creative-masonry > button.creative-card:hover {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.creative-visual {
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #ebe9e4 !important;
  transition: box-shadow .18s ease, border-radius .18s ease !important;
}
.creative-card:hover .creative-visual {
  box-shadow: 0 5px 18px rgb(22 29 41 / 12%) !important;
}
.creative-card:focus-visible { outline: 3px solid #2e6be6 !important; outline-offset: 4px !important; }
.creative-format {
  right: 10px !important;
  bottom: 10px !important;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgb(18 22 29 / 74%) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  backdrop-filter: blur(10px);
}
.creative-card-copy { padding: 11px 3px 18px !important; }
.creative-brand-row { gap: 8px !important; margin-bottom: 6px !important; }
.creative-brand-logo { width: 22px !important; height: 22px !important; flex-basis: 22px !important; border-radius: 50% !important; }
.creative-brand-row b { font-size: 12px !important; font-weight: 650 !important; }
.creative-platform { font-size: 10px !important; }
.creative-card-copy > strong { font-size: 14px !important; font-weight: 620 !important; line-height: 1.35 !important; }
.creative-description { margin-top: 5px !important; font-size: 12px !important; line-height: 1.5 !important; }
.creative-preview-dialog {
  position: fixed !important;
  width: min(1160px, calc(100vw - 40px)) !important;
  max-width: none !important;
  max-height: min(88svh, 900px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dfe2e8 !important;
  border-radius: 24px !important;
  color: #202632 !important;
  background: #fff !important;
  box-shadow: 0 28px 100px rgb(16 22 32 / 30%) !important;
}
.creative-preview-dialog::backdrop { background: rgb(21 25 32 / 48%) !important; backdrop-filter: blur(8px) saturate(.82); }
.creative-preview-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  display: grid !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  place-items: center !important;
  border: 1px solid #e2e5eb !important;
  border-radius: 50% !important;
  color: #293142 !important;
  background: rgb(255 255 255 / 94%) !important;
  box-shadow: 0 2px 8px rgb(15 23 42 / 8%) !important;
  cursor: pointer;
}
.creative-preview-close svg,
.creative-preview-copy-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.creative-preview-body {
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr) !important;
  min-height: min(72vh, 760px) !important;
  max-height: min(88svh, 900px) !important;
}
.creative-preview-body > .creative-visual {
  display: grid !important;
  min-height: 0 !important;
  max-height: min(88svh, 900px) !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  padding: 24px !important;
  place-items: center !important;
  border-radius: 0 !important;
  background: #f0eee8 !important;
}
.creative-preview-body > .creative-visual img,
.creative-preview-body > .creative-visual video {
  width: 100% !important;
  height: 100% !important;
  max-height: min(82svh, 840px) !important;
  object-fit: contain !important;
}
.creative-preview-copy {
  display: flex !important;
  min-width: 0 !important;
  max-height: min(88svh, 900px) !important;
  flex-direction: column !important;
  align-self: stretch !important;
  justify-content: center !important;
  overflow: auto !important;
  padding: 56px 42px 38px !important;
}
.creative-preview-copy h2 { display: flex !important; align-items: center !important; gap: 12px !important; font-size: 21px !important; letter-spacing: -.035em !important; }
.creative-preview-copy h2 .creative-brand-logo { width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
.creative-preview-copy .creative-preview-meta { margin-top: 7px !important; color: #647187 !important; font-size: 12px !important; }
.creative-preview-copy h3 { margin: 32px 0 10px !important; color: #1b2431 !important; font-size: clamp(23px, 2vw, 30px) !important; font-weight: 650 !important; letter-spacing: -.045em !important; line-height: 1.16 !important; }
.creative-preview-copy p { color: #5c6678 !important; font-size: 14px !important; line-height: 1.7 !important; }
.creative-preview-source { margin-top: 12px !important; font-size: 11px !important; }
.creative-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.creative-preview-brand-link,
.creative-preview-copy-link {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #dce2eb !important;
  border-radius: 12px !important;
  color: #26344b !important;
  background: #fff !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.creative-preview-brand-link { border-color: #245fd4 !important; color: #fff !important; background: #2563eb !important; }
.creative-preview-brand-link:hover { color: #fff !important; background: #1e56d8 !important; }
.creative-preview-copy-link:hover { border-color: #b8c5da !important; background: #f8faff !important; }
.creative-preview-copy-link.is-copied { border-color: #a8d7c2 !important; color: #14764a !important; background: #f1fbf6 !important; }
.creative-preview-share-status { min-height: 20px; margin: 8px 0 0 !important; color: #24815b !important; font-size: 12px !important; }

html[data-ads-theme="dark"] .creative-preview-dialog { border-color: #2a3342 !important; color: #e9edf4 !important; background: #111721 !important; }
html[data-ads-theme="dark"] .creative-preview-dialog::backdrop { background: rgb(0 0 0 / 68%) !important; }
html[data-ads-theme="dark"] .creative-preview-close { border-color: #303b4c !important; color: #e9edf4 !important; background: rgb(17 23 33 / 94%) !important; }
html[data-ads-theme="dark"] .creative-preview-copy h2,
html[data-ads-theme="dark"] .creative-preview-copy h3 { color: #f3f6fb !important; }
html[data-ads-theme="dark"] .creative-preview-copy .creative-preview-meta,
html[data-ads-theme="dark"] .creative-preview-copy p { color: #aeb9c9 !important; }
html[data-ads-theme="dark"] .creative-preview-brand-link,
html[data-ads-theme="dark"] .creative-preview-copy-link { border-color: #34435b !important; color: #e4ebf7 !important; background: #161f2d !important; }
html[data-ads-theme="dark"] .creative-preview-brand-link { border-color: #3472ed !important; color: #fff !important; background: #2563eb !important; }
html[data-ads-theme="dark"] .creative-preview-share-status { color: #7fd0a5 !important; }
html[data-ads-theme="light"] .creative-preview-brand-link { border-color: #245fd4 !important; color: #fff !important; background: #2563eb !important; }
html[data-ads-theme="light"] .creative-preview-brand-link:hover { color: #fff !important; background: #1e56d8 !important; }
html[data-ads-theme="light"] .creative-masonry > a.creative-card,
html[data-ads-theme="light"] .creative-masonry > button.creative-card { background: transparent !important; }
html[data-ads-theme="light"] .creative-brand-row b,
html[data-ads-theme="light"] .creative-card-copy > strong { color: #202632 !important; }
html[data-ads-theme="light"] .creative-description,
html[data-ads-theme="light"] .creative-platform { color: #667183 !important; }

.creative-detail-page {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 0 56px !important;
  color: #202632 !important;
  background: transparent !important;
}
.creative-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  overflow: hidden;
  border: 1px solid #e0e3e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 36px rgb(28 40 60 / 7%);
}
.creative-detail-media { position: relative; display: grid; min-width: 0; min-height: 520px; padding: 28px; place-items: center; background: #f0eee8; }
.creative-detail-visual { display: grid; width: 100%; height: 100%; min-height: 400px; margin: 0; place-items: center; }
.creative-detail-visual img,
.creative-detail-visual video { display: block; width: 100%; height: 100%; max-height: 78vh; object-fit: contain; }
.creative-detail-placeholder { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: #fff; background: #315fae; font-size: 30px; font-weight: 700; }
.creative-detail-format { position: absolute; right: 42px; bottom: 42px; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgb(18 22 29 / 74%); font-size: 11px; font-weight: 600; }
.creative-detail-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 50px clamp(28px, 4vw, 60px); }
.creative-detail-breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 36px; color: #929bad; font-size: 12px; }
.creative-detail-breadcrumb a { color: #5d6d86; text-decoration: none; }
.creative-detail-breadcrumb a:hover { color: #2563eb; }
.creative-detail-kicker { margin: 0 0 11px !important; color: #315fae !important; font-size: 12px !important; font-weight: 650 !important; letter-spacing: .07em !important; text-transform: uppercase; }
.creative-detail-copy h1 { margin: 0 !important; color: #18202d !important; font-size: clamp(26px, 3vw, 38px) !important; font-weight: 670 !important; letter-spacing: -.05em !important; line-height: 1.12 !important; }
.creative-detail-brand { margin: 12px 0 0 !important; color: #56647a !important; font-size: 15px !important; font-weight: 600 !important; }
.creative-detail-description { margin: 20px 0 0 !important; color: #5c6678 !important; font-size: 15px !important; line-height: 1.75 !important; }
.creative-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.creative-detail-primary,
.creative-detail-share { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid #dce2eb; border-radius: 12px; color: #26344b; background: #fff; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.creative-detail-primary { border-color: #245fd4; color: #fff; background: #2563eb; }
.creative-detail-primary:hover { color: #fff; background: #1e56d8; }
.creative-detail-share:hover { border-color: #b8c5da; background: #f8faff; }
.creative-detail-share-status { min-height: 20px; margin: 8px 0 0 !important; color: #24815b !important; font-size: 12px !important; }
.creative-detail-note { margin: 25px 0 0 !important; color: #8b95a5 !important; font-size: 11px !important; }
html[data-ads-theme="dark"] .creative-detail-page { color: #e9edf4 !important; }
html[data-ads-theme="dark"] .creative-detail { border-color: #2a3342; background: #111721; box-shadow: 0 10px 36px rgb(0 0 0 / 18%); }
html[data-ads-theme="dark"] .creative-detail-media { background: #0b111b; }
html[data-ads-theme="dark"] .creative-detail-copy h1 { color: #f3f6fb !important; }
html[data-ads-theme="dark"] .creative-detail-brand,
html[data-ads-theme="dark"] .creative-detail-description { color: #b7c2d2 !important; }
html[data-ads-theme="dark"] .creative-detail-breadcrumb a { color: #b5c1d3; }
html[data-ads-theme="dark"] .creative-detail-share { border-color: #34435b; color: #e4ebf7; background: #161f2d; }
html[data-ads-theme="dark"] .creative-detail-note { color: #8795aa !important; }
@media (max-width: 760px) {
  .creative-preview-dialog { width: calc(100vw - 20px) !important; max-height: 92svh !important; border-radius: 20px !important; }
  .creative-preview-body { display: grid !important; grid-template-columns: 1fr !important; min-height: 0 !important; max-height: 92svh !important; overflow-y: auto !important; }
  .creative-preview-body > .creative-visual { min-height: 0 !important; height: min(46svh, 480px) !important; padding: 16px !important; }
  .creative-preview-body > .creative-visual img,
  .creative-preview-body > .creative-visual video { max-height: 44svh !important; }
  .creative-preview-copy { max-height: none !important; overflow: visible !important; padding: 25px 22px 22px !important; }
  .creative-preview-copy h3 { margin-top: 22px !important; }
  .creative-preview-close { top: 10px !important; right: 10px !important; width: 36px !important; height: 36px !important; }
  .creative-detail-page { padding-bottom: 30px !important; }
  .creative-detail { grid-template-columns: 1fr; border-radius: 20px; }
  .creative-detail-media { min-height: 0; height: min(58svh, 620px); padding: 20px; }
  .creative-detail-visual { min-height: 0; }
  .creative-detail-visual img,
  .creative-detail-visual video { max-height: 54svh; }
  .creative-detail-format { right: 30px; bottom: 30px; }
  .creative-detail-copy { padding: 25px 23px 30px; }
  .creative-detail-breadcrumb { margin-bottom: 24px; }
  .creative-masonry { column-gap: 11px !important; }
}

/* Keep the supplied light/dark horizontal wordmarks aligned in the fixed logo row. */
.library-sidebar > .brand img.brand-logo,
.shared-library-sidebar > .shared-library-brand img.shared-brand-logo {
  display: block !important;
  width: 190px !important;
  height: auto !important;
  max-width: calc(var(--sidebar-width) - 36px) !important;
  max-height: 48px !important;
  min-width: 0 !important;
  flex: 0 1 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 760px) {
  .library-sidebar > .brand img.brand-logo,
  .shared-library-sidebar > .shared-library-brand img.shared-brand-logo {
    width: 170px !important;
    max-height: 44px !important;
    flex-basis: 170px !important;
  }
}
