:root {
  --ink: #0f1419;
  --muted: #536471;
  --line: #eff3f4;
  --hover: #f7f9f9;
  --blue: #1d9bf0;
  --link: #006fba;
  --green: #087443;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.45 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
button, a { transition: background-color 150ms, color 150ms; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; stroke-width: 1.8; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.app-shell { display: grid; grid-template-columns: 230px minmax(0,640px) 290px; max-width: 1160px; min-height: 100dvh; margin: 0 auto; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 22px 20px 20px 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; margin-bottom: 24px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 29px; height: 29px; fill: currentColor; stroke: none; }
.brand strong { font-size: 20px; font-weight: 800; }
.side-nav { display: grid; gap: 8px; }
.side-nav button { display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 0 16px; border-radius: 999px; text-align: left; font-size: 20px; }
.side-nav svg { width: 25px; height: 25px; }
.side-nav button:hover { background: var(--line); }
.side-nav .rail-active { font-weight: 700; }
.side-nav .rail-active svg { stroke-width: 2.5; }
.suggest-button { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; border-radius: 999px; background: var(--ink); color: #fff; margin: 24px 0; font-weight: 700; }
.suggest-button svg { width: 18px; height: 18px; }
.suggest-button:hover, .primary:hover { background: #30373c; }
.operator { margin-top: auto; }
.operator-card { display: grid; grid-template-columns: 40px minmax(0,1fr) 32px; align-items: center; gap: 9px; padding: 10px 0; }
.operator-card strong { display: block; font-size: 14px; }
.operator-card small { display: block; color: var(--muted); font-size: 13px; }
.operator-card .avatar { width: 40px; height: 40px; }
.operator-card .icon-btn { width: 32px; min-width: 32px; }
.build-row { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.workspace { min-width: 0; border-inline: 1px solid var(--line); }
.page-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 17px 20px; background: #fffffff5; backdrop-filter: blur(12px); }
.page-header h1 { font-size: 23px; line-height: 1.25; font-weight: 800; }
.page-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; color: var(--ink); }
.icon-btn:hover:not(:disabled) { background: var(--line); }
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 5px); right: 0; width: max-content; max-width: 180px; padding: 5px 8px; background: var(--ink); color: #fff; font-size: 12px; border-radius: 4px; pointer-events: none; opacity: 0; z-index: 20; }
.tooltip:hover::after, .tooltip:focus-visible::after { opacity: 1; }
.search-row { display: flex; align-items: center; gap: 8px; padding: 0 16px 16px; scroll-margin-top: 92px; }
.command-search { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: var(--line); color: var(--muted); }
.command-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 1px var(--blue); }
.command-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 15px; }
.command-search input::placeholder { color: var(--muted); opacity: 1; }
#filter-toggle[aria-expanded=true], #filter-toggle.has-filters { color: var(--link); background: #e8f5fd; }
.filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding: 18px 20px; background: var(--hover); border-block: 1px solid var(--line); }
.filters label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.filters select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 28px 8px 10px; border: 1px solid #cfd9de; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.text-button { color: var(--link); min-height: 44px; padding: 0 8px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 54px; font-size: 15px; color: var(--muted); font-weight: 600; padding: 0 12px; }
.tab:hover { background: var(--hover); }
.tab.active { color: var(--ink); font-weight: 700; }
.tab.active::after { content: ''; position: absolute; bottom: 0; left: calc(50% - 29px); width: 58px; height: 4px; background: var(--blue); border-radius: 4px; }
.active-filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px; background: #f4faff; color: var(--link); font-size: 13px; border-bottom: 1px solid var(--line); }
.active-filters span { overflow-wrap: anywhere; }
.creator-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 44px; gap: 12px; padding: 19px 18px 17px; border-bottom: 1px solid var(--line); transition: background-color 150ms; }
.creator-row:hover { background: #fafbfc; }
.avatar-button { align-self: start; padding: 0; border-radius: 50%; }
.avatar { position: relative; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; flex: none; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-content { min-width: 0; }
.person { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; padding: 0; max-width: 100%; text-align: left; min-height: 25px; }
.person-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.person:hover .person-name { text-decoration: underline; text-underline-offset: 2px; }
.handle { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.creator-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.creator-meta strong { color: var(--ink); font-weight: 600; }
.meta-divider { color: #9aabb7; }
.creator-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; }
.profile-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; color: var(--link); font-size: 13px; text-align: left; }
.profile-link:hover { text-decoration: underline; }
.profile-link svg { width: 15px; height: 15px; }
.collab-status { font-size: 12px; color: var(--green); }
.x-profile { align-self: start; color: var(--muted); }
.x-logo { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.list-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.pages { display: flex; gap: 12px; }
.roster-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding: 14px 20px 24px; color: var(--muted); font-size: 12px; }
.roster-footer a, .roster-footer button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; color: var(--muted); }
.roster-footer a:hover, .roster-footer button:hover { text-decoration: underline; }
.roster-footer svg { width: 14px; height: 14px; }
.mobile-disclaimer { display: none; }
.creator-sidebar { position: sticky; top: 0; height: fit-content; padding: 29px 0 24px 28px; }
.creator-sidebar h2 { font-size: 20px; line-height: 1.3; font-weight: 800; }
.topic-links { display: grid; margin-top: 17px; }
.topic-links button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.topic-links button:hover, .topic-links button[aria-pressed=true] { color: var(--link); }
.topic-links svg { width: 17px; height: 17px; color: var(--muted); }
.contribute { margin-top: 32px; }
.contribute p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 9px 0; }
.contribute a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--link); font-size: 14px; font-weight: 600; }
.contribute a:hover { text-decoration: underline; }
.contribute svg { width: 15px; height: 15px; }
.roster-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 24px; }
dialog { width: min(580px,calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 8px; padding: 28px; color: var(--ink); background: #fff; }
dialog::backdrop { background: #0f14195c; }
dialog h2 { font-size: 23px; line-height: 1.3; margin: 0 30px 16px 0; }
dialog > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0; }
dialog > p a { color: var(--link); }
.close { position: absolute; right: 8px; top: 8px; }
.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.drawer { margin: 0 0 0 auto; width: min(540px,100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding: 0; }
.drawer-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 8px 20px; background: #fffffff5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.drawer-body { padding: 24px; overflow-wrap: anywhere; }
.drawer-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.drawer-heading .avatar { width: 72px; height: 72px; font-size: 22px; }
.drawer-heading h2 { margin: 0 0 4px; font-size: 24px; }
.drawer-heading .source-link { color: var(--muted); font-size: 15px; }
.drawer-body > p { color: var(--muted); }
.drawer-body h3 { font-size: 16px; line-height: 1.4; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.source-link, .contact-link { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; color: var(--link); font-size: 13px; }
.source-link svg, .contact-link svg { width: 14px; height: 14px; }
.source-link:hover, .contact-link:hover { text-decoration: underline; }
.contact-link { min-height: 44px; }
.audience-snapshot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; padding: 18px 0; margin: 20px 0; border-block: 1px solid var(--line); }
.audience-snapshot > strong { font-size: 22px; }
.audience-snapshot > span { color: var(--muted); font-size: 13px; }
.audience-snapshot .source-link { margin-left: auto; }
.collaboration-note { margin-bottom: 24px; }
.collaboration-note p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.context-caption { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.detail-bottom { margin-top: 18px; }
.policy-row { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.policy-row svg { margin-top: 3px; }
.policy-row h3 { font-size: 15px; }
.policy-row p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; }
#empty { padding: 50px 24px; text-align: center; }
#empty > svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 12px; }
#empty h2 { font-size: 22px; }
#empty p { color: var(--muted); margin: 10px 0 20px; }
.ghost-btn { border: 1px solid #cfd9de; border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 700; }
.ghost-btn:hover { background: var(--line); }
#toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity 150ms; }
#toast.visible { opacity: 1; }
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 210px minmax(0,640px); max-width: 850px; }
  .creator-sidebar { display: none; }
  .sidebar { padding-right: 16px; }
  .brand { gap: 6px; padding-inline: 4px; }
  .brand strong { font-size: 19px; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 76px minmax(0,640px); max-width: 716px; }
  .sidebar { padding-inline: 10px; align-items: center; }
  .brand { padding: 0; justify-content: center; }
  .brand strong, .side-nav span, .suggest-button span, .operator { display: none; }
  .side-nav button { width: 54px; justify-content: center; padding: 0; }
  .suggest-button { width: 48px; }
}
@media (max-width: 620px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); align-items: flex-start; justify-content: center; }
  .brand { margin: 0; gap: 8px; }
  .brand strong { display: block; font-size: 19px; }
  .brand-mark, .brand-mark svg { width: 25px; height: 25px; }
  .side-nav, .suggest-button { display: none; }
  .workspace { border: 0; }
  .page-header { min-height: 86px; padding: 14px 16px; }
  .page-header h1 { font-size: 22px; }
  .search-row { padding-inline: 12px; gap: 4px; }
  .command-search { padding-inline: 14px; }
  .filters { padding: 16px; gap: 12px; }
  .filters select { font-size: 13px; }
  .creator-row { grid-template-columns: 44px minmax(0,1fr) 44px; padding: 17px 12px 15px; gap: 10px; }
  .avatar { width: 44px; height: 44px; }
  .person { display: grid; gap: 1px; }
  .person-name { font-size: 16px; }
  .handle { font-size: 14px; }
  .creator-meta { font-size: 12px; margin-top: 7px; }
  .creator-links { margin-top: 6px; }
  .profile-link { font-size: 12px; }
  .mobile-disclaimer { display: block; width: 100%; margin-top: 8px; }
  .roster-footer { padding-inline: 16px; }
  .drawer-body { padding: 20px; }
  .drawer-heading .avatar { width: 64px; height: 64px; }
  .drawer-heading h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
