/* Facebook (module circle): the product's own chrome. Top bar with section tabs, left menu, 680 px feed, right rail.
   Colours, radii and type follow the product (system font stack, #f0f2f5 canvas, white 8 px cards, #0866ff accent). */
/* P9 scheme tokens: light = the colours these rules always used, dark = Facebook in its own dark theme. */
:root {
  --facebook-blue-text: #0866ff;
  --facebook-line: #fff;
  --facebook-surface: #fff;
  --facebook-surface-2: #ebf5ff;
  --facebook-surface-3: #e4e6e9;
  --facebook-surface-4: #ddd;
  --facebook-surface-5: #d8dadf;
  --facebook-surface-6: #ccc;
}
[data-scheme="dark"] {
  --facebook-blue-text: #4599ff;
  --facebook-line: #414141;
  --facebook-surface: #242526;
  --facebook-surface-2: #2b3137;
  --facebook-surface-3: #3a3b3c;
  --facebook-surface-4: #474747;
  --facebook-surface-5: #484a4e;
  --facebook-surface-6: #595959;
}
.module-body[data-module="circle"] {
  --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --app-accent: #0866ff;
  --app-bg: #f0f2f5;
  --app-surface: #ffffff;
  --app-radius: 8px;
  --fb-text: #050505;
  --fb-muted: #65676b;
  --fb-line: #ced0d4;
  --fb-hover: #f2f2f2;
  --fb-soft: #e4e6eb;
  --fb-blue: #0866ff;
  background: var(--app-bg);
  color: var(--fb-text);
  font-family: var(--app-font);
  min-height: 100%;
}
.workspace:has(.module-head.is-native) { padding: 0; }
[data-module="circle"] button { font: inherit; color: inherit; }
[data-module="circle"] .face { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--facebook-surface-4); }
[data-module="circle"] .face-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--face); color: #08120f; /* P9: AA on the light persona colours (white was 2:1) */ font-weight: 600; }
[data-module="circle"] .verified { margin-left: 4px; vertical-align: -2px; flex: none; }
.fb-red { color: #f02849; } .fb-green { color: #45bd62; } .fb-yellow { color: #f7b928; } .fb-blue { color: var(--facebook-blue-text); }

/* ---------- top bar ---------- */
.fb-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 56px; padding: 0 16px; background: var(--facebook-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.fb-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fb-wordmark { font-weight: 800; font-size: 28px; letter-spacing: -1.2px; color: var(--fb-blue); line-height: 1; }
.fb-search { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--app-bg); color: var(--fb-muted); width: 240px; }
.fb-search input { border: 0; background: none; outline: none; font: inherit; font-size: 15px; width: 100%; color: var(--fb-text); }
.fb-tabs { display: flex; align-items: stretch; height: 56px; gap: 6px; }
.fb-tabs .circle-nav-item, .fb-tab-mock { position: relative; display: flex; align-items: center; justify-content: center; width: 112px; border: 0; background: none; color: var(--fb-muted); border-radius: 8px; margin: 4px 0; cursor: pointer; }
.fb-tabs .circle-nav-item:hover, .fb-tab-mock:hover { background: var(--fb-hover); }
.fb-tabs .circle-nav-item.is-on { color: var(--fb-blue); background: none; }
.fb-tabs .circle-nav-item.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--fb-blue); border-radius: 2px 2px 0 0; }
.fb-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fb-top-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.fb-round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fb-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; color: var(--fb-text); }
.fb-round::-webkit-details-marker { display: none; }
.fb-round:hover { background: var(--facebook-surface-5); }

/* ---------- three columns ---------- */
.circle-layout { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 680px) minmax(220px, 300px); grid-template-areas: "left main right"; justify-content: space-between; gap: 24px; padding: 16px 16px 40px; align-items: start; }
.circle-main { grid-area: main; display: flex; flex-direction: column; gap: 16px; min-width: 0; width: 100%; max-width: 680px; justify-self: center; }
.fb-left { grid-area: left; position: sticky; top: 72px; display: flex; flex-direction: column; }
.fb-right { grid-area: right; position: sticky; top: 72px; display: flex; flex-direction: column; }
.fb-left-item, .circle-contact { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 15px; font-weight: 500; cursor: pointer; width: 100%; color: var(--fb-text); }
.fb-left-item:hover, .circle-contact:hover { background: var(--facebook-surface-3); }
.fb-left-ico { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c); flex: none; }
.fb-left hr, .fb-right hr { border: 0; border-top: 1px solid var(--fb-line); margin: 8px 8px; }
.fb-left h3, .fb-right h3 { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; color: var(--fb-muted); margin: 8px 8px 4px; }
.fb-rail-tools { display: inline-flex; gap: 14px; }
.fb-sq { width: 36px; height: 36px; border-radius: 8px; background: var(--cover, var(--facebook-surface-6)); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fb-sq-plus { background: var(--fb-soft); }
.fb-online { position: relative; display: inline-flex; }
.fb-online .status-dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid var(--app-bg); background: #31a24c; border-radius: 50%; }
.fb-ad { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.fb-ad img, .fb-ad-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; background: var(--fb-soft); }
.fb-ad strong { display: block; font-size: 15px; font-weight: 500; }
.fb-ad small { color: var(--fb-muted); font-size: 13px; }
.fb-bday { display: flex; align-items: center; gap: 12px; padding: 8px; font-size: 15px; }
.circle-contact-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- cards ---------- */
.fb-card { background: var(--facebook-surface); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.fb-h { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.circle-panel { display: flex; flex-direction: column; gap: 10px; }
.circle-panel.fb-card { padding: 16px; }
.fb-btn { border: 0; border-radius: 6px; padding: 0 12px; height: 36px; font-weight: 600; font-size: 15px; background: var(--fb-soft); color: var(--fb-text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fb-btn:hover { filter: brightness(0.96); }
.fb-btn-primary { background: var(--fb-blue); color: #fff !important; }
.fb-btn-soft { background: var(--facebook-surface-2); color: var(--fb-blue) !important; }
.fb-back { border: 0; background: none; color: var(--fb-blue); font-weight: 600; font-size: 15px; cursor: pointer; align-self: flex-start; padding: 4px 0; }
.circle-empty { color: var(--fb-muted); font-size: 15px; }

/* stories */
.circle-stories { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fb-story { position: relative; flex: none; width: 112px; height: 200px; border-radius: 10px; overflow: hidden; background: #333; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.fb-story img, .fb-story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.fb-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%, transparent 65%, rgba(0, 0, 0, 0.55)); }
.fb-story small { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.fb-story-ring { position: absolute; top: 10px; left: 10px; z-index: 1; border: 4px solid var(--fb-blue); border-radius: 50%; display: inline-flex; }
.fb-story-create { background: var(--facebook-surface); }
.fb-story-create img, .fb-story-create .fb-story-bg { height: 72%; }
.fb-story-create::after { display: none; }
.fb-story-create small { color: var(--fb-text); text-align: center; }
.fb-story-plus { position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--fb-blue); color: #fff; border: 4px solid var(--facebook-line); display: inline-flex; align-items: center; justify-content: center; }

/* composer */
.circle-composer { padding: 12px 16px 10px; }
.fb-compose-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--fb-soft); }
.fb-compose-top textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; border-radius: 20px; background: var(--app-bg); padding: 10px 12px; font: inherit; font-size: 17px; line-height: 20px; height: 40px; color: var(--fb-text); }
.fb-compose-top textarea:focus { height: 80px; border-radius: 12px; }
.fb-compose-top textarea::placeholder { color: var(--fb-muted); }
.fb-post-btn { height: 36px; }
.fb-compose-tools { display: flex; gap: 4px; padding-top: 8px; }
.fb-tool-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 8px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--fb-muted); cursor: pointer; position: relative; min-width: 0; }
.fb-tool-btn:hover { background: var(--fb-hover); }
.fb-tool-btn > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fb-tool-btn > summary::-webkit-details-marker { display: none; }
.fb-upload .upload-widget { display: flex; flex-direction: column; align-items: flex-start; }
.fb-upload .upload-pick { padding: 0; color: var(--fb-muted); font-size: 15px; background: none; }
.fb-upload .upload-status { font-size: 11px; font-weight: 400; }
.circle-feeling-list { position: absolute; top: calc(100% + 6px); right: 0; display: flex; flex-direction: column; background: var(--facebook-surface); border-radius: 8px; padding: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1); z-index: 8; }
.circle-feeling-list .reaction-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font-size: 15px; white-space: nowrap; cursor: pointer; }
.circle-feeling-list .reaction-option:hover { background: var(--fb-hover); }

/* ---------- posts ---------- */
.circle-feed { display: flex; flex-direction: column; gap: 16px; }
.circle-post { padding: 12px 0 4px; }
.circle-post-head { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.fb-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.fb-name { display: flex; align-items: center; flex-wrap: wrap; font-size: 15px; }
.fb-name strong { font-weight: 600; }
.fb-who small { display: flex; align-items: center; gap: 2px; color: var(--fb-muted); font-size: 13px; }
.fb-dot { margin: 0 4px; color: var(--fb-muted); }
.fb-follow { border: 0; background: none; padding: 0; color: var(--fb-blue) !important; font-weight: 600; font-size: 15px; cursor: pointer; }
.fb-in { margin-left: 4px; color: var(--fb-text); font-weight: 600; }
.fb-menu { position: relative; margin-left: auto; }
.fb-menu > summary { background: none; width: 36px; height: 36px; color: var(--fb-muted); }
.fb-menu > summary:hover { background: var(--fb-hover); }
.fb-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 9; min-width: 240px; background: var(--facebook-surface); border-radius: 8px; padding: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; }
.fb-menu-list button { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; border-radius: 6px; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.fb-menu-list button:hover { background: var(--fb-hover); }
.circle-post-text { font-size: 15px; line-height: 1.34; margin: 8px 16px 12px; white-space: pre-line; overflow-wrap: anywhere; }
.fb-more { position: relative; }
.fb-more-toggle { position: absolute; opacity: 0; pointer-events: none; }
.circle-post-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
.fb-more-label { display: inline-block; margin: 0 16px 12px; font-weight: 600; font-size: 15px; cursor: pointer; }
.fb-more-label:hover { text-decoration: underline; }
.fb-more-toggle:checked ~ .circle-post-text.is-clamped { display: block; -webkit-line-clamp: unset; margin-bottom: 12px; }
.fb-more-toggle:checked ~ .fb-more-label { display: none; }
.circle-media { display: block; width: 100%; max-height: 680px; object-fit: cover; background: #000; }
.circle-shared { margin: 0 16px 12px; border: 1px solid var(--fb-line); border-radius: 8px; overflow: hidden; }
.circle-shared .circle-post-head { padding: 12px 12px 0; }
.circle-shared .circle-post-text { margin: 8px 12px 12px; }
.circle-post-metrics { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 16px; padding: 10px 0; color: var(--fb-muted); font-size: 15px; }
.fb-reacts { display: inline-flex; align-items: center; gap: 6px; }
.fb-r-stack { display: inline-flex; }
.fb-r { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid var(--facebook-line); margin-left: -4px; background: var(--facebook-surface); }
.fb-r:first-child { margin-left: 0; }
.fb-r-like { background: #1b74e4; }
.fb-r-love { background: #f33e58; }
.fb-counts { display: inline-flex; gap: 12px; }
.fb-counts button { border: 0; background: none; padding: 0; color: var(--fb-muted) !important; font-size: 15px; cursor: pointer; }
.fb-counts button:hover { text-decoration: underline; }
.circle-post-actions { display: flex; gap: 4px; margin: 0 12px; padding: 4px 0; border-top: 1px solid var(--fb-line); }
.circle-post-actions > * { flex: 1; }
[data-module="circle"] .circle-post-actions .metric { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; border: 0; border-radius: 4px; background: none; color: var(--fb-muted); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
[data-module="circle"] .circle-post-actions .metric::-webkit-details-marker { display: none; }
[data-module="circle"] .circle-post-actions .metric:hover { background: var(--fb-hover); }
[data-module="circle"] .metric.is-on { color: var(--fb-blue); }
[data-module="circle"] .metric.is-love, [data-module="circle"] .metric.is-angry { color: #f33e58; }
[data-module="circle"] .metric.is-haha, [data-module="circle"] .metric.is-wow, [data-module="circle"] .metric.is-sad { color: #f7b125; }
.reaction-wrap { position: relative; }
.reaction-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 9; display: flex; gap: 2px; padding: 4px 6px; background: var(--facebook-surface); border-radius: 30px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.reaction-picker[hidden] { display: none; }
.reaction-picker .reaction-option { border: 0; background: none; font-size: 30px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: transform 0.12s; }
.reaction-picker .reaction-option:hover { transform: scale(1.25) translateY(-4px); }
.circle-share-box { position: relative; }
.circle-share-form { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 9; width: min(320px, 80vw); display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--facebook-surface); border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
.circle-share-form textarea { border: 1px solid var(--fb-line); border-radius: 6px; padding: 8px; font: inherit; resize: vertical; }

/* comments */
.circle-comments { padding: 4px 16px 8px; border-top: 1px solid var(--fb-line); }
.fb-relevant { display: inline-flex; align-items: center; gap: 2px; color: var(--fb-muted); font-weight: 600; font-size: 15px; margin: 6px 0 8px; }
.circle-comment-item { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 10px; }
.circle-comment-item.is-reply { margin-top: 8px; }
.circle-comment-body { min-width: 0; flex: 1; }
.fb-bubble { position: relative; display: inline-block; max-width: 100%; background: var(--app-bg); border-radius: 18px; padding: 8px 12px; }
.fb-bubble strong { font-size: 13px; font-weight: 600; }
.fb-bubble p { margin: 2px 0 0; font-size: 15px; line-height: 1.33; overflow-wrap: anywhere; }
.fb-bubble-likes { position: absolute; right: -8px; bottom: -10px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px 1px 2px; background: var(--facebook-surface); border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); font-size: 13px; color: var(--fb-muted); }
.fb-bubble-likes .fb-r { width: 16px; height: 16px; font-size: 9px; border: 0; }
.fb-comment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 3px 12px 0; font-size: 12px; color: var(--fb-muted); }
.fb-tool { border: 0; background: none; padding: 0; font-weight: 700; font-size: 12px; color: var(--fb-muted) !important; cursor: pointer; list-style: none; }
.fb-tool::-webkit-details-marker { display: none; }
.fb-tool:hover { text-decoration: underline; }
.circle-reply[open] { flex-basis: 100%; }
.circle-reply-form, .circle-comment-form { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.circle-reply-form input, .circle-comment-form input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; border-radius: 18px; background: var(--app-bg); padding: 0 12px; font: inherit; font-size: 15px; color: var(--fb-text); }
.circle-comment-form { margin: 8px 0 4px; }
.fb-send { border: 0; background: none; color: var(--fb-blue); cursor: pointer; display: inline-flex; padding: 6px; }
.circle-more > summary { list-style: none; cursor: pointer; color: var(--fb-muted); font-weight: 600; font-size: 15px; margin: 6px 0; }
.circle-more > summary::-webkit-details-marker { display: none; }
.circle-more > summary:hover { text-decoration: underline; }
.circle-more[open] > summary { display: none; }
.fb-replies { margin-top: 2px; }

/* groups, pages, watch */
.circle-group-card { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; }
.circle-cover { display: block; width: 80px; height: 80px; border-radius: 8px; background: var(--cover, var(--facebook-surface-6)); object-fit: cover; }
.circle-cover.big { width: 100%; height: 220px; border-radius: 8px 8px 0 0; grid-column: 1 / -1; }
.circle-group-copy, .circle-page-row .circle-contact-copy { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.circle-group-copy strong, .circle-page-row strong { font-size: 17px; font-weight: 600; }
.circle-group-copy small, .circle-page-row small { color: var(--fb-muted); font-size: 13px; }
.circle-group-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.circle-page-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; }
.circle-group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 0 0 16px; overflow: hidden; }
.circle-group-head > .fb-head-copy, .circle-group-head > .fb-btn { margin: 0 16px; }
.fb-head-copy h2 { font-size: 28px; font-weight: 700; margin: 0; display: flex; align-items: center; }
.fb-head-copy small { display: inline-flex; align-items: center; gap: 4px; color: var(--fb-muted); font-size: 15px; }
.fb-head-copy p { margin: 8px 0 0; font-size: 15px; }
.fb-page-id { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: end; margin: -48px 16px 0; }
.fb-page-id .face { border: 4px solid var(--facebook-line); }
.circle-player video, .circle-player-poster { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.circle-player strong { display: block; font-size: 17px; margin-top: 8px; }
.circle-player small { color: var(--fb-muted); }
.circle-watch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.circle-watch-item { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; text-align: left; cursor: pointer; }
.circle-watch-item .circle-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.circle-watch-item strong { font-size: 15px; }
.circle-watch-item small { color: var(--fb-muted); }

/* ---------- narrower screens ---------- */
@media (max-width: 1260px) {
  .circle-layout { grid-template-columns: minmax(0, 680px) minmax(220px, 300px); grid-template-areas: "main right"; justify-content: center; }
  .fb-left { display: none; }
  .fb-tabs .circle-nav-item, .fb-tab-mock { width: 80px; }
}
@media (max-width: 900px) {
  .circle-layout { grid-template-columns: minmax(0, 680px); grid-template-areas: "main"; }
  .fb-right { display: none; }
  .fb-search { width: 40px; padding: 0 12px; }
  .fb-search input { display: none; }
}
@media (max-width: 720px) {
  .fb-top { grid-template-columns: 1fr auto; grid-template-rows: 52px 48px; height: auto; padding: 0 12px; }
  .fb-tabs { grid-column: 1 / -1; grid-row: 2; height: 48px; justify-content: space-between; gap: 0; border-top: 1px solid var(--fb-soft); }
  .fb-tabs .circle-nav-item, .fb-tab-mock { width: auto; flex: 1; margin: 0; border-radius: 0; }
  .fb-tabs .circle-nav-item.is-on::after { bottom: 0; }
  .fb-top-right .face, .fb-top-right .fb-round:first-child { display: none; }
  .fb-search { display: none; }
  .circle-layout { padding: 8px 0 32px; gap: 8px; }
  .circle-main { gap: 8px; }
  .fb-card { border-radius: 0; box-shadow: none; }
  .circle-feed { gap: 8px; }
  .circle-stories { padding: 0 8px; }
  .fb-story { width: 96px; height: 170px; }
  .circle-composer { padding: 10px 12px; }
  .fb-tool-btn span, .fb-upload .upload-pick { font-size: 13px; }
  .fb-tool-btn { gap: 4px; padding: 6px 2px; }
  .circle-post-head { padding: 0 12px; }
  .circle-post-text { margin: 8px 12px 10px; }
  .circle-post-metrics { margin: 0 12px; }
  .circle-comments { padding: 4px 12px 8px; }
  .circle-group-card, .circle-page-row { grid-template-columns: 56px minmax(0, 1fr); }
  .circle-group-card .circle-cover { width: 56px; height: 56px; }
  .circle-group-actions, .circle-page-row .fb-btn { grid-column: 2; justify-self: start; }
  .circle-panel { padding: 0 8px; }
  .circle-panel.fb-card { padding: 12px; }
  .fb-page-id { grid-template-columns: auto minmax(0, 1fr); }
  .fb-page-id .fb-btn { grid-column: 1 / -1; justify-content: center; }
  .fb-head-copy h2 { font-size: 22px; }
  .fb-back { margin-left: 12px; }
}

/* P9 dark scheme: the module tokens above, Facebook in its own dark theme */
[data-scheme="dark"] .module-body[data-module="circle"] {
  --app-accent: #79a7f8;
  --app-bg: #18191a;
  --app-surface: #242526;
  --fb-text: #e4e6eb;
  --fb-muted: #b0b3b8;
  --fb-line: #3e4042;
  --fb-hover: #3a3b3c;
  --fb-soft: #3a3b3c;
  --fb-blue: #0866ff; /* fills keep white text at AA; blue text on the dark cards is #7ab4ff below */
}
[data-scheme="dark"] .fb-btn-soft { color: #7ab4ff !important; }
[data-scheme="dark"] [data-module="circle"] .metric.is-on, [data-scheme="dark"] .fb-send { color: #7ab4ff; }
