/* Approved typography A: readable Inter, with the existing Bricolage wordmark.
   This layer changes typography and only the space needed for readable reflow.
   The approved blue/red/white palette and complete media framing are inherited. */
@font-face {
  font-family: Inter;
  src: url("/static/assets/inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --type-family: Inter, "Segoe UI", Arial, sans-serif;
  --type-body: 16px;
  --type-detail: 14px;
  --type-label: 13px;
  --type-nav: 15px;
  font-family: var(--type-family);
}

body {
  font-family: var(--type-family);
  font-size: var(--type-body);
  line-height: 1.65;
}

/* Explicit overrides for older font shorthands; never flatten all font sizes. */
body h1, body h2, body h3, body h4,
body button, body input, body select, body textarea,
body .button, body .editorial-label,
body .curiosity-home .search-card label,
body .curiosity-home .search-input > span,
body .paper-identity strong, body .story-sticker strong,
body .scene-number, body .illustrated-button, body .folder-heading,
body .weekly-sticker strong, body .access-option strong,
body .dossier-save > strong, body .dossier-numbers strong,
body .next-save, body .result-notice strong, body .summary-metrics strong,
body .free-twelve, body .free-plus, body .free-art-note,
body .free-expand-button > span, body .profile-next-space .space-lead,
body .benefits-list strong, body .viewer-media-state strong,
body .cta-label, body .engagement-banner-copy strong,
body .media-preparation strong,
body .viewer-asset-navigation small, body .viewer-asset-navigation strong,
body .viewer-asset-count, body .viewer-profile-avatar,
body .viewer-profile-name strong, body .viewer-profile-name > span,
body .viewer-kind, body .viewer-description,
body .viewer-comment-note strong, body .viewer-comment-note p,
body .viewer-demo, body .viewer-media-state p,
body .engagement-copy strong, body .engagement-copy small,
body .viewer-date, body .viewer-permalink,
body .viewer-share-actions > a, body .viewer-share-actions > button,
body .publication-page-heading > p, body .publication-related-heading p {
  font-family: var(--type-family) !important;
}

body .wordmark, body .wordmark span {
  font-family: Bricolage, Space, sans-serif !important;
}

/* Shared navigation, status and action labels. */
body .prototype-note {
  height: auto;
  min-height: 27px;
  padding: 4px 16px;
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  flex-wrap: wrap;
}
body .prototype-detail { font-size: inherit; }
body .desktop-nav {
  font-size: var(--type-nav);
  font-weight: 500;
  line-height: 1.4;
  min-width: 0;
  flex-shrink: 1;
}
body .desktop-nav a {
  min-width: 0;
  white-space: normal;
  flex-wrap: wrap;
  line-height: 1.4;
}
body .nav-concept {
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}
body .effects-toggle {
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.4;
}
body .text-button, body .header-actions > a.text-button {
  font-size: var(--type-nav);
  font-weight: 600;
}
body .button, body .header-actions .button,
body .dossier-save > .button, body .analysis-cta,
body .journey-action .button, body .profile-next-copy > .button,
body .profile-next-space .profile-next-copy > .button,
body .button.free-expand-button, body .benefits-dialog > .free-expand-button,
body .media-preparation > .button {
  font-size: var(--type-body);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body .editorial-label, body .benefits-dialog > .editorial-label,
body .profile-gallery-heading .editorial-label,
body .profile-next-copy .editorial-label,
body .publication-page-heading .editorial-label {
  font-size: var(--type-label);
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1.6;
}
body .back-link, body .demo-label,
body .profile-breadcrumb, body .profile-breadcrumb > a,
body .profile-breadcrumb > button, body .profile-breadcrumb > span {
  font-size: var(--type-detail);
  line-height: 1.55;
}
body .profile-breadcrumb { align-items: flex-start; }
body .profile-breadcrumb > a { min-width: 0; }
body .profile-breadcrumb > span { min-width: 0; }
body .site-footer { flex-wrap: wrap; }
body .site-footer > p, body .site-footer > div,
body .site-footer a:not(.wordmark), body .site-footer button {
  font-size: var(--type-detail);
  line-height: 1.6;
}

/* Home: retain the expressive heading; enlarge the content people must read. */
body .curiosity-intro h1 {
  font-weight: 750;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-variation-settings: normal;
}
body .curiosity-intro > p {
  font-size: 18px;
  line-height: 1.7;
}
body .curiosity-intro > p.home-free-note {
  font-size: var(--type-detail);
  line-height: 1.7;
  max-width: 620px;
}
body .curiosity-intro .hero-pill {
  font-size: var(--type-label);
  line-height: 1.5;
  letter-spacing: .06em;
  max-width: 100%;
}
body .curiosity-home .search-kicker {
  font-size: var(--type-label);
  letter-spacing: .07em;
}
body .curiosity-home .search-card label {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -.02em;
}
body .curiosity-home .search-input input {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0;
}
body .curiosity-home .search-row > .button {
  font-size: var(--type-body);
  line-height: 1.45;
}
body .curiosity-home .search-hint, body .curiosity-home .try-examples,
body .curiosity-home .try-examples button, body .curiosity-home .field-error,
body .hero-assurance, body .illustrative-note,
body .paper-identity > div > span, body .paper-tags > span,
body .paper-link, body .story-photo > span, body .story-sticker,
body .journey-action > span, body .concept-badge,
body .weekly-copy summary, body .weekly-copy details > p,
body .comparison-top > span:first-child, body .comparison-timeline,
body .comparison-photos > div > span, body .comparison-rows > div,
body .comparison-rows small, body .comparison-caption,
body .weekly-sticker, body .context-note {
  font-size: var(--type-detail);
  line-height: 1.65;
}
body .paper-overline, body .scene-copy > span,
body .scene-mini-label, body .sample-label {
  font-size: var(--type-label);
  letter-spacing: .06em;
  line-height: 1.5;
}
body .journey-heading > p, body .scene-copy p,
body .weekly-copy > p, body .context-grid p {
  font-size: var(--type-body);
  line-height: 1.7;
}
body .weekly-copy > .weekly-warning {
  font-size: var(--type-detail);
  line-height: 1.7;
}
body .paper-identity strong, body .story-sticker strong,
body .weekly-sticker strong { line-height: 1.25; }
body .illustrated-input > span, body .illustrated-button,
body .illustrated-check, body .profile-illustration strong,
body .profile-illustration small, body .scene-profile-footer,
body .saved-illustration {
  font-size: var(--type-label);
  line-height: 1.45;
}
body .profile-paper, body .search-illustration,
body .profile-illustration, body .folder-illustration { min-width: 0; }
body .paper-identity > div { min-width: 0; }
body .paper-tags, body .hero-assurance { flex-wrap: wrap; }
body .comparison-rows > div { flex-wrap: wrap; }
body .comparison-rows small { margin-left: auto; }
body .comparison-timeline { letter-spacing: .04em; }

/* Profiles and gallery cards: meaningful dates and counts are never tiny. */
body .dossier-ribbon, body .dossier-ribbon > span:last-child,
body .dossier-avatar > span {
  font-size: var(--type-label);
  line-height: 1.55;
  letter-spacing: .04em;
}
body .dossier-ribbon > span { min-width: 0; }
body .username-line h1 {
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body .dossier-identity h2 { line-height: 1.3; }
body .dossier-bio, body .profile-gallery-heading p,
body .dossier-source p, body .profile-next-copy > p,
body .profile-next-space .profile-next-copy > p {
  font-size: var(--type-body);
  line-height: 1.75;
}
body .dossier-save > p, body .dossier-links a,
body .dossier-links > button, body .dossier-numbers > div > span,
body .number-available p > span, body .dossier-source,
body .profile-next-copy > small, body .space-advantages,
body .continue-access-options a,
body .profile-next-space .profile-next-copy > .connection-beta-note,
body .gallery-result-line, body .gallery-result-line > span,
body .gallery-count-note, body .gallery-demo-note,
body .profile-gallery .gallery-load-more + .gallery-demo-note {
  font-size: var(--type-detail);
  line-height: 1.65;
}
body .dossier-save > strong { font-size: 18px; line-height: 1.4; }
body .dossier-save { min-width: 0; }
body .dossier-numbers > div > span, body .number-available p > span {
  overflow-wrap: anywhere;
}
body .profile-filter-tabs > button {
  font-size: var(--type-detail);
  line-height: 1.45;
}
body .profile-filter-tabs > button > span { font-size: var(--type-label); }
body .gallery-search input, body .profile-order select {
  font-size: var(--type-body);
  line-height: 1.5;
}
body .profile-order select { max-width: 180px; }
body .profile-post-copy > div, body .profile-post-copy > div span,
body .post-badge, body .post-duration, body .missing-cover {
  font-size: var(--type-label);
  line-height: 1.5;
}
body .profile-post-copy > div {
  flex-wrap: wrap;
  align-items: baseline;
}
body .profile-post-copy h3 {
  font-size: var(--type-body);
  line-height: 1.45;
  letter-spacing: -.015em;
}
body .post-badge {
  max-width: calc(100% - 18px);
  white-space: normal;
  overflow-wrap: anywhere;
}
body #contentGrid .post-engagement .engagement-copy strong,
body #publicationRelatedGrid .post-engagement .engagement-copy strong {
  font-size: var(--type-detail);
  line-height: 1.5;
  min-height: 0;
}
body #contentGrid .post-engagement .engagement-copy small,
body #publicationRelatedGrid .post-engagement .engagement-copy small {
  font-size: var(--type-label);
  line-height: 1.5;
}
body .cta-label { font-size: 21px; line-height: 1.4; }
body .cta-label strong { font-size: 23px; line-height: 1.4; }
body .cta-assurance, body .cta-assurance > span:last-child,
body .cta-assurance .free-pill {
  font-size: var(--type-detail);
  line-height: 1.6;
}
body .free-expand-eyebrow > span:first-child,
body .free-badge, body .free-expand-button > span {
  font-size: var(--type-label);
  line-height: 1.45;
}
body .free-art-note { font-size: var(--type-detail); line-height: 1.5; }
body .free-expand-copy > p:not(.free-expand-status) {
  font-size: var(--type-body);
  line-height: 1.75;
}
body .free-expand-status {
  font-size: var(--type-detail) !important;
  line-height: 1.7 !important;
}

/* Optional benefits/summary dialogs retain ordinary scroll and close controls. */
body .benefits-dialog, body .info-dialog {
  overflow-y: auto;
  overflow-wrap: anywhere;
}
body .benefits-dialog > p, body .benefits-list p,
body .info-dialog p, body #summaryContent p {
  font-size: var(--type-body);
  line-height: 1.7;
}
body .benefits-list strong { font-size: 18px; line-height: 1.4; }
body .benefits-dialog > .benefits-footnote,
body .summary-metrics > div {
  font-size: var(--type-detail);
  line-height: 1.65;
}
body .benefits-dialog > .free-expand-button {
  min-width: 0;
  text-align: center;
}
body .benefits-dialog > .editorial-label { padding-right: 25px; }

/* Publication and the shared viewer match the approved Inter mockup. */
body .publication-page-heading h1 {
  font-size: 44px;
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.04em;
}
body .publication-page-heading > p, body .publication-related-heading p,
body .viewer-instagram .viewer-description {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}
body .viewer-instagram .viewer-profile-name strong {
  font-size: var(--type-body);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
}
body .viewer-instagram .viewer-profile-name > span,
body .viewer-instagram .viewer-comment-note strong,
body .viewer-instagram .viewer-comment-note p,
body .viewer-instagram .viewer-demo,
body .viewer-instagram .viewer-date,
body .viewer-instagram .viewer-permalink,
body .viewer-instagram .viewer-asset-count,
body .viewer-instagram .viewer-engagement .engagement-copy small,
body .viewer-instagram .profile-viewer-caption,
body .viewer-instagram .profile-viewer-nav span,
body .viewer-instagram .viewer-share-actions > a,
body .viewer-instagram .viewer-share-actions > button,
body .viewer-instagram .viewer-media-state p,
body .viewer-instagram .viewer-media-state > a {
  font-size: var(--type-detail);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}
body .viewer-instagram .viewer-kind {
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .08em;
}
body .viewer-instagram .viewer-media-state strong {
  font-size: var(--type-body);
  font-weight: 650;
  line-height: 1.5;
}
body .viewer-instagram .viewer-engagement .engagement-copy strong {
  font-size: 26px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}
body .viewer-instagram .viewer-engagement .is-unavailable .engagement-copy strong {
  font-size: var(--type-detail);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}
body .viewer-instagram .viewer-share-actions {
  flex-wrap: wrap;
}
body .viewer-instagram .viewer-share-actions > a,
body .viewer-instagram .viewer-share-actions > button {
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body .viewer-instagram .viewer-profile-heading,
body .viewer-instagram .viewer-details-footer { flex-shrink: 0; }
body .viewer-instagram .viewer-details-main { min-height: 100px; }
body .viewer-instagram .profile-viewer-details {
  overflow-y: auto;
  overscroll-behavior: contain;
}
body .viewer-instagram .viewer-details-footer { overflow-wrap: anywhere; }

/* Legal and meaningful status messages use the same readable baseline. */
body .legal-copy p, body .legal-copy li,
body .result-notice p, body .field-error,
body .engagement-banner-copy p,
body .media-preparation p, body .media-preparation small {
  font-size: var(--type-body);
  line-height: 1.75;
}
body .engagement-banner-progress,
body .engagement-banner-progress > small {
  font-size: var(--type-detail);
  line-height: 1.65;
}

/* Keep enlarged labels within the existing responsive structure. */
@media (max-width: 1200px) {
  body .paper-identity { flex-wrap: wrap; }
  body .paper-identity strong { font-size: 20px; }
  body .scene-art { height: auto; min-height: 282px; }
  body .comparison-rows small { margin-left: 0; }
}
@media (min-width: 681px) and (max-height: 760px) {
  body .viewer-instagram .profile-viewer-details { overflow-y: auto; }
  body .viewer-instagram .viewer-details-main { flex: 0 0 auto; }
}
@media (max-width: 750px) {
  body .site-header { min-width: 0; }
  body .hero-assurance { justify-content: center; }
  body .journey-scene { min-width: 0; }
  body .scene-art { min-width: 0; }
  body .dossier-save { flex-wrap: wrap; }
  body .dossier-save > strong { max-width: none; }
  body .dossier-save > .button { margin-left: auto; }
}
@media (max-width: 680px) {
  body .publication-page-heading h1 {
    font-size: clamp(29px, 7.5vw, 36px);
    line-height: 1.2;
    letter-spacing: -.035em;
  }
  /* Inherit the original open/closed display rules; only let text flow. */
  body .viewer-instagram .profile-viewer-details { overflow: visible; }
  body .viewer-instagram .profile-viewer-details.is-open {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  body .viewer-instagram .viewer-details-main {
    flex: none;
    min-height: 0;
    overflow: visible;
  }
  body .viewer-instagram .viewer-profile-name { min-width: 0; }
  body .viewer-instagram .viewer-profile-name strong { overflow-wrap: anywhere; }
  body .viewer-instagram .viewer-engagement { gap: 16px; }
}
@media (max-width: 600px) {
  body .curiosity-intro > p { font-size: var(--type-body); }
  body .curiosity-home .search-card label { font-size: 18px; }
  body .curiosity-home .search-input input { font-size: var(--type-body); }
  body .curiosity-home .search-heading > div { min-width: 0; }
  body .hero-assurance { gap: 10px 18px; }
  body .dossier-ribbon {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  body .dossier-ribbon > span:last-child { max-width: none; }
  body .profile-breadcrumb { flex-wrap: wrap; gap: 8px 16px; }
  body .profile-breadcrumb > span { max-width: none; text-align: left; }
  body .username-line h1 { font-size: clamp(24px, 6.8vw, 30px); }
  body .dossier-identity h2 {
    font-size: 23px;
    max-width: none;
    overflow-wrap: anywhere;
  }
  body .dossier-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .dossier-numbers > div { min-width: 0; }
  body .dossier-numbers .number-available {
    grid-column: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 10px;
  }
  body .dossier-numbers strong { font-size: 27px; }
  body .dossier-numbers strong small { font-size: 18px; }
  body .dossier-save > strong { font-size: 17px; }
  body .dossier-save > .button { flex-wrap: wrap; }
  body .profile-filter-tabs { justify-content: flex-start; }
  body .profile-search-tools { flex-wrap: wrap; }
  body .gallery-search { flex: 1 1 100%; max-width: none; }
  body .profile-order { margin-left: auto; }
  body .gallery-result-line { flex-wrap: wrap; }
  body .profile-post-copy > div { display: block; }
  body .profile-post-copy > div span { display: block; }
  body .profile-post-copy h3 { min-height: 46px; }
  body .post-badge { max-width: calc(100% - 14px); }
  body .cta-label, body .cta-label strong { font-size: 18px; }
  body .gallery-load-button { text-align: left; }
  body .cta-assurance { gap: 8px 12px; }
  body .free-expand-eyebrow { align-items: flex-start; }
  body .free-expand-eyebrow > span:first-child { flex: 1 1 150px; }
  body .benefits-dialog h2 { line-height: 1.2; }
  body .site-footer > p { max-width: none; }
  body .site-footer > div { margin-left: 0; }
}
@media (max-width: 480px) {
  /* Two short header rows avoid shrinking action labels back to 10px. */
  body .site-header {
    height: auto;
    min-height: 75px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
  }
  body .site-header .wordmark { flex: 1; }
  body .site-header > .effects-toggle { margin-left: auto; }
  body .header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 18px;
  }
  body .header-actions > a.text-button {
    max-width: none;
    overflow: visible;
  }
  body .header-actions .button { padding: 10px 15px; }
  body .curiosity-intro .hero-pill { letter-spacing: .025em; text-align: left; }
  body .profile-story { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  body .paper-overline { overflow-wrap: anywhere; }
  body .paper-identity { display: block; }
  body .paper-identity > div { margin-top: 10px; }
  body .paper-identity strong { font-size: 17px; }
  body .paper-tags > span { max-width: 100%; flex-wrap: wrap; }
  body .paper-link { max-width: 100%; text-align: left; }
  body .story-photo-tall { height: 100%; min-height: 220px; }
  body .story-sticker { right: 15px; max-width: calc(100% - 30px); }
  body .scene-art { height: auto; min-height: 282px; padding: 37px 18px 22px; }
  body .search-illustration, body .profile-illustration, body .folder-illustration {
    max-width: 100%;
  }
  body .illustrated-input > span { overflow-wrap: anywhere; min-width: 0; }
  body .profile-illustration > div:first-child { flex-wrap: wrap; }
  body .profile-illustration > div:first-child > span { min-width: 0; }
  body .scene-profile-footer, body .saved-illustration { flex-wrap: wrap; }
  body .comparison-top { flex-wrap: wrap; gap: 8px; }
  body .comparison-timeline { flex-wrap: wrap; }
  body .comparison-rows > div { gap: 8px; }
  body .comparison-rows small { max-width: 100%; }
  body .comparison-caption { align-items: flex-start; }
  body .weekly-sticker { max-width: calc(100% - 20px); }
  body .context-note { align-items: flex-start; }
  body .legal-copy h1 { overflow-wrap: anywhere; }
}

/* Inter option 1: account, authentication, library and legal typography.
   Append after account.css and the shared typography rules. No color changes. */
.ac-auth-shell,.ac-workspace,.ac-confirm-dialog,.legal-copy{
  font-family:inherit;
  font-size:16px;
  line-height:1.6;
}
.ac-auth-story h1,.ac-page-heading h1,.ac-auth-card h2,.ac-button,
.ac-art-card-front strong,.ac-panel h2,.ac-metrics strong,.ac-account-avatar,
.ac-add-panel form>label,.ac-add-input>span,.ac-list-heading h2,
.ac-saved-monogram,.ac-saved-card h3,.ac-empty-state h3,.ac-confirm-dialog h2,
.ac-auth-continuation h3,.ac-access-options>legend,.ac-access-card-content>strong,
.ac-connections-list-heading>h3,.ac-form input,.ac-connection-form input,
.ac-add-input input,.ac-own-account input,.legal-copy h1,.legal-copy h2{
  font-family:inherit;
}
.ac-auth-story h1{
  font-size:clamp(36px,4.8vw,66px);
  line-height:1.08;
  letter-spacing:-.04em;
}
.ac-page-heading h1{
  font-size:clamp(36px,4.4vw,58px);
  line-height:1.1;
  letter-spacing:-.035em;
}
.ac-auth-card h2{
  font-size:clamp(30px,3.4vw,42px);
  line-height:1.12;
  letter-spacing:-.035em;
}
.ac-panel h2,.ac-identity-panel h2,.ac-auth-continuation h3,
.ac-connections-list-heading>h3,.ac-empty-state h3{
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.ac-panel-title h2{font-size:24px;line-height:1.22}
.ac-panel-tinted h2,.ac-section-heading h2{font-size:28px;line-height:1.2}
.ac-account-note h2{font-size:clamp(28px,2.8vw,35px);line-height:1.15}
.ac-list-heading h2{font-size:30px;line-height:1.2;letter-spacing:-.025em}
.ac-saved-card h3,.ac-access-card-content>strong{font-size:24px;line-height:1.25;letter-spacing:-.02em}
.ac-confirm-dialog h2{font-size:27px;line-height:1.2;letter-spacing:-.025em}
.ac-add-panel form>label{font-size:22px;line-height:1.3;letter-spacing:-.02em}
.ac-access-options>legend{font-size:20px;line-height:1.4;letter-spacing:-.015em}
.ac-art-card-front strong{font-size:24px;line-height:1.2;letter-spacing:-.025em}
.ac-metrics strong{font-size:clamp(28px,3vw,38px);line-height:1.1;font-variant-numeric:tabular-nums}
.ac-account-avatar{font-size:31px;line-height:1}
.ac-saved-monogram{font-size:20px;line-height:1}
.ac-add-input>span{font-size:26px;line-height:1}

/* Normal descriptions remain 16 px; explanatory details never drop below 14 px. */
.ac-auth-story>p,.ac-auth-intro,.ac-page-heading p,.ac-panel>p,.ac-section-heading p,
.ac-scope-list span,.ac-notice,.ac-connections-list>p,.ac-muted,
.ac-empty-state,.ac-loading-state,.ac-confirm-dialog p,
.ac-access-card-content>span:not(.ac-access-card-top),.ac-service-explanation{
  font-size:16px;
  line-height:1.6;
}
.ac-field-note,.ac-auth-switch,.ac-auth-footnote,.ac-auth-assurance p,
.ac-form-feedback,.ac-auth-continuation .ac-form-feedback,
.ac-own-account>.ac-field-note,.ac-add-panel .ac-field-note,
.ac-role-badge,.ac-outline-pill,.ac-page-heading>.ac-role-badge,
.ac-page-heading>.ac-outline-pill,.ac-status-pill,.ac-metrics span,
.ac-connection-row small,.ac-account-details>div,.ac-list-heading>span,
.ac-saved-card p,.ac-checkbox-label small,.ac-auth-profile-context p,
.ac-auth-access-preview>span,.ac-connection-profile>span,
.ac-access-card-content>small,.ac-connections-list-heading>span,
.ac-art-card-back,.ac-art-card-front>span:not(.ac-art-symbol),.ac-art-sticker{
  font-size:14px;
  line-height:1.55;
}
.ac-kicker,.ac-auth-story>.ac-kicker,.ac-auth-card>.ac-kicker,
.ac-panel-title .ac-kicker,.ac-panel-tinted>.ac-kicker,
.ac-section-heading .ac-kicker,.ac-identity-panel .ac-kicker,
.ac-page-heading>.ac-kicker,.ac-page-heading>div>.ac-kicker{
  font-size:14px;
  line-height:1.5;
  letter-spacing:.075em;
}
.ac-back,.ac-inline-link,.ac-external-help,.ac-account-note .ac-inline-link,
.ac-connection-profile .ac-inline-link,.ac-workspace-nav>a,
.ac-workspace-nav>.ac-nav-explore{
  font-size:15px;
  line-height:1.5;
}
.ac-form label,.ac-connection-form label,.ac-own-account label{
  font-size:14px;
  line-height:1.5;
}
.ac-form input,.ac-connection-form input,.ac-add-input input,.ac-own-account input{
  font-size:16px;
  line-height:1.5;
}
.ac-form input::placeholder,.ac-connection-form input::placeholder,
.ac-add-input input::placeholder,.ac-own-account input::placeholder{
  font-size:16px;
  line-height:1.5;
}
.ac-button,.ac-page-heading>.ac-button,.ac-connection-form>.ac-button,
.ac-add-row>.ac-button,.ac-saved-card .ac-button,.ac-confirm-actions .ac-button,
.ac-auth-continuation-actions .ac-button,.ac-connection-choice-form>.ac-button{
  font-size:16px;
  line-height:1.4;
  font-weight:650;
  letter-spacing:-.01em;
  white-space:normal;
  overflow-wrap:anywhere;
  max-width:100%;
  min-width:0;
}
.ac-scope-list strong,.ac-connection-row strong{font-size:16px;line-height:1.5}

/* Preserve the same panels and navigation while letting the larger text wrap. */
.ac-auth-shell>*,.ac-page-heading>*,.ac-panel-title>*,.ac-section-heading>*,
.ac-list-heading>*,.ac-account-details>div>*,.ac-notice>p,.ac-scope-list li>div{
  min-width:0;
}
.ac-auth-story h1,.ac-page-heading h1,.ac-auth-card h2,.ac-panel h2,
.ac-list-heading h2,.ac-connections-list-heading>h3,.ac-access-options>legend,
.ac-access-card-content>strong,.ac-empty-state h3,.ac-auth-continuation h3,
.ac-confirm-dialog h2,.ac-metrics strong,.ac-metrics span,.ac-kicker,
.ac-form label,.ac-connection-form label,.ac-own-account label,
.ac-workspace-nav>a,.ac-form-feedback,.ac-list-heading>span,.ac-auth-footnote{
  overflow-wrap:anywhere;
}
.ac-workspace-nav>a,.ac-role-badge,.ac-outline-pill,.ac-status-pill,
.ac-connection-profile .ac-inline-link,.ac-art-sticker{
  white-space:normal;
  max-width:100%;
}
.ac-page-heading,.ac-section-heading,.ac-list-heading,.ac-confirm-actions,
.ac-account-details>div{
  flex-wrap:wrap;
}
.ac-confirm-actions>.ac-button{flex:1 1 auto}
.ac-account-details dd{min-width:0}
.ac-art-card-front{height:auto;min-height:177px}
.ac-art-sticker{max-width:calc(100% - 170px)}
.ac-auth-shell table,.ac-workspace table,.ac-confirm-dialog table{
  width:100%;
  table-layout:fixed;
  font-size:14px;
  line-height:1.55;
}
.ac-auth-shell th,.ac-auth-shell td,.ac-workspace th,.ac-workspace td,
.ac-confirm-dialog th,.ac-confirm-dialog td{overflow-wrap:anywhere}
.legal-copy p,.legal-copy li{font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.legal-copy>.editorial-label{font-size:14px;line-height:1.5;letter-spacing:.075em}
.legal-copy h1{font-size:clamp(36px,4.8vw,64px);line-height:1.1;letter-spacing:-.035em;overflow-wrap:anywhere}
.legal-copy h2{font-size:26px;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.legal-copy .button{font-size:16px;line-height:1.4;white-space:normal;max-width:100%}

@media(max-width:1000px){
  .ac-art-sticker{max-width:calc(100% - 135px)}
}
@media(max-width:760px){
  .ac-workspace-nav>.ac-nav-explore{font-size:15px}
  .ac-auth-card h2{font-size:32px}
  .ac-auth-story h1,.ac-page-heading h1{font-size:36px}
  .ac-confirm-actions{gap:9px}
}
@media(max-width:440px){
  .ac-auth-card h2{font-size:30px}
  .ac-panel-title h2{font-size:24px}
  .ac-list-heading h2{font-size:28px}
  .ac-metrics strong{font-size:28px}
  .ac-role-badge,.ac-outline-pill,.ac-status-pill{overflow-wrap:anywhere}
}

/* Gallery CTA profile avatar: scoped image treatment only. */
.gallery-load-button .cta-profile-avatar{display:block;height:54px;border-radius:50%;overflow:hidden}
.gallery-load-button .cta-profile-avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.gallery-load-button .cta-profile-avatar>span{display:grid;place-items:center;width:100%;height:100%}
@media(max-width:650px){.gallery-load-button .cta-profile-avatar{height:36px}}
@media(max-width:350px){.gallery-load-button .cta-profile-avatar{height:30px}}

/* Gallery CTA inline profile: photos icon stays left, portrait precedes @user. */
.gallery-load-button .cta-profile-reference{display:inline-flex;align-items:center;gap:10px;max-width:100%;vertical-align:middle}
.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:34px;height:34px;flex:0 0 34px}
.gallery-load-button .cta-profile-reference>#galleryCtaUsername{min-width:0;max-width:100%;margin-top:0}
@media(max-width:650px){.gallery-load-button .cta-profile-reference{gap:8px}.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:30px;height:30px;flex-basis:30px}}
@media(max-width:350px){.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:26px;height:26px;flex-basis:26px}}

/* Double only the CTA inline profile portrait; retain responsive layout. */
.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:68px;height:68px;flex-basis:68px}
@media(max-width:650px){.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:60px;height:60px;flex-basis:60px}}
@media(max-width:350px){.gallery-load-button .cta-profile-reference>.cta-profile-avatar{width:52px;height:52px;flex-basis:52px}}

/* Profile navigation and source footer: scoped to the public profile. */
body .profile-breadcrumb>.profile-explore-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 17px;border:1px solid var(--brand-blue);border-radius:12px;background:var(--brand-blue);color:#fff;font-size:15px;font-weight:700;line-height:1.4;box-shadow:0 5px 14px #0d4fda1c;transition:background .16s,border-color .16s}
body .profile-breadcrumb>.profile-explore-link:hover{background:#0b43b8;border-color:#0b43b8}
body .profile-breadcrumb>.profile-explore-link:focus-visible{outline:3px solid var(--brand-red);outline-offset:3px}
body .profile-breadcrumb>.profile-explore-link>svg{width:18px;height:18px}
.aurora-profile .dossier-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 24px;padding:13px 32px;border-top:1px solid var(--brand-line);background:#f7faff}
.aurora-profile .dossier-footer>.dossier-source{flex:1 1 280px;min-width:0;padding:0;border:0;background:transparent}
.aurora-profile .dossier-footer>.dossier-source p{overflow-wrap:anywhere}
.aurora-profile .dossier-footer>#profileAccess{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;max-width:100%;padding:1px 0;color:var(--brand-muted);font-size:14px;line-height:1.65}
.aurora-profile .dossier-footer>#profileAccess>svg{width:14px;height:14px}
@media(max-width:600px){.aurora-profile .dossier-footer{flex-direction:column;gap:10px;padding:12px 19px}.aurora-profile .dossier-footer>.dossier-source{flex:0 1 auto;width:100%}.aurora-profile .dossier-footer>#profileAccess{align-self:flex-end}}
@media(max-width:350px){.aurora-profile .dossier-footer{padding-right:15px;padding-left:15px}}

/* Approved text-first benefits: scroll the copy, retain the normal X and CTA. */
body #benefitsDialog{width:min(650px,calc(100vw - 28px));max-width:650px;max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--brand-line);border-radius:24px;background:#fff;color:var(--brand-ink);overflow:hidden;box-shadow:0 22px 65px #14213d3b}
body #benefitsDialog::backdrop{background:#14213d9c;backdrop-filter:blur(4px)}
body #benefitsDialog .benefits-hooks-layout{display:flex;flex-direction:column;max-height:calc(100dvh - 30px);min-height:0}
body #benefitsDialog .benefits-hooks-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 30px 8px;flex-shrink:0;background:#fff}
body #benefitsDialog .benefits-symbol{display:grid;place-items:center;width:44px;height:44px;margin:0;border-radius:14px;border:1px solid var(--brand-line);background:#eef4ff;color:var(--brand-blue)}
body #benefitsDialog .benefits-symbol svg{width:21px;height:21px}
body #benefitsDialog .dialog-close{position:static;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;align-self:flex-start;border:1px solid var(--brand-line);background:#eef4ff;color:var(--brand-blue);border-radius:50%}
body #benefitsDialog .dialog-close svg{width:21px;height:21px}
body #benefitsDialog .benefits-hooks-body{padding:12px 30px 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:16px}
body #benefitsDialog .editorial-label{display:block;font:750 12px/1.5 Inter,sans-serif;letter-spacing:.09em;color:var(--brand-blue);margin:0 0 12px}
body #benefitsDialog h2{font:800 34px/1.1 Inter,sans-serif;letter-spacing:-1.35px;color:var(--brand-ink);margin:0 0 15px}
body #benefitsDialog h2>span{color:var(--brand-blue)}
body #benefitsDialog #benefitsDescription{font:400 16px/1.6 Inter,sans-serif;color:var(--brand-muted);margin:0 0 22px}
body #benefitsDialog .benefits-list{list-style:none;padding:0;margin:0;display:grid;gap:18px}
body #benefitsDialog .benefits-list li{display:flex;gap:12px;align-items:flex-start}
body #benefitsDialog .benefits-list li>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid var(--brand-line);border-radius:10px;background:#eef4ff;color:var(--brand-blue)}
body #benefitsDialog .benefits-list li>span svg{width:18px;height:18px}
body #benefitsDialog .benefits-list li>div{min-width:0}
body #benefitsDialog .benefits-list strong{display:block;font:750 17px/1.35 Inter,sans-serif;letter-spacing:-.25px;color:var(--brand-ink);margin:0 0 4px}
body #benefitsDialog .benefits-list p{font:400 14px/1.5 Inter,sans-serif;color:var(--brand-muted);margin:0}
body #benefitsDialog .benefits-more{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--brand-blue);color:#fff;font:800 17px/1.4 Inter,sans-serif;letter-spacing:.08em;padding:16px;border-radius:12px;margin-top:24px}
body #benefitsDialog .benefits-more svg{width:21px;height:21px;flex-shrink:0}
body #benefitsDialog .benefits-product-note{font:400 12px/1.55 Inter,sans-serif;color:var(--brand-muted);margin:12px 0 0;padding-bottom:2px}
body #benefitsDialog .benefits-hooks-footer{padding:22px 30px 24px;flex-shrink:0;background:#fff}
body #benefitsDialog .benefits-hooks-footer>.free-expand-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;min-height:60px;padding:18px 20px;margin:0;border:0;border-radius:13px;background:var(--brand-red);color:#fff;font:750 16px/1.4 Inter,sans-serif;box-shadow:0 9px 22px #da1f3d1f;text-align:center;white-space:normal}
body #benefitsDialog .free-expand-button svg{width:20px;height:20px;flex-shrink:0}
body #benefitsDialog .benefits-hooks-footer>p{font:400 12px/1.6 Inter,sans-serif;color:var(--brand-muted);text-align:center;margin:12px 0 0}
@media(max-width:480px){body #benefitsDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}body #benefitsDialog .benefits-hooks-layout{max-height:calc(100dvh - 22px)}body #benefitsDialog .benefits-hooks-head{padding:18px 18px 8px}body #benefitsDialog .benefits-hooks-body{padding:10px 18px 0}body #benefitsDialog .benefits-hooks-footer{padding:20px 18px}body #benefitsDialog h2{font-size:29px;letter-spacing:-1px;line-height:1.12}body #benefitsDialog #benefitsDescription{font-size:15px;line-height:1.55;margin-bottom:20px}body #benefitsDialog .editorial-label{font-size:11px;letter-spacing:.07em}body #benefitsDialog .benefits-list{gap:19px}body #benefitsDialog .benefits-list strong{font-size:16px}body #benefitsDialog .benefits-list li{gap:10px}body #benefitsDialog .benefits-list li>span{width:30px;height:30px;flex-basis:30px;border-radius:9px}body #benefitsDialog .benefits-hooks-footer>.free-expand-button{font-size:15px;padding:16px 12px}}
@media(max-height:430px){body #benefitsDialog .benefits-hooks-head{padding-top:8px;padding-bottom:4px}body #benefitsDialog .benefits-hooks-footer{padding-top:10px;padding-bottom:10px}body #benefitsDialog .benefits-hooks-footer>.free-expand-button{min-height:48px;padding-top:10px;padding-bottom:10px}body #benefitsDialog .benefits-hooks-footer>p{margin-top:6px}}

/* Approved home copy: reserve the same disclaimer space as the preview. */
.curiosity-home .weekly-visual{padding-bottom:88px}
.curiosity-home .weekly-sticker{bottom:0}
@media(min-width:1100px){body .curiosity-home .profile-story{padding-bottom:60px}body .curiosity-home .story-sticker{bottom:0}}

/* Approved question panel replaces the repeated 12 + 12 offer. */
body #profileQuestion{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;margin:28px 0 0;padding:30px;background:#eef4ff;border:1px solid var(--brand-line);border-radius:21px;align-items:center;overflow:hidden;color:var(--brand-ink)}
body #profileQuestion[hidden]{display:none}
body #profileQuestion .profile-question-copy{min-width:0}
body #profileQuestion .profile-question-kicker{font:750 11px/1.5 Inter,sans-serif;letter-spacing:.08em;color:var(--brand-blue)}
body #profileQuestion h2{font:800 31px/1.15 Inter,sans-serif;letter-spacing:-1.05px;color:var(--brand-ink);margin:12px 0 15px}
body #profileQuestion h2>span{color:var(--brand-blue)}
body #profileQuestion p{font:400 14px/1.65 Inter,sans-serif;color:var(--brand-muted);margin:0}
body #profileQuestion p.profile-question-note{font-size:12px;margin-top:12px}
body #profileQuestion .profile-question-art{position:relative;min-height:235px;min-width:0;display:grid;align-content:center;gap:10px}
body #profileQuestion .question-orbit{position:absolute;border-radius:50%;width:195px;height:195px;border:1px solid #0d4fda26;top:12px;left:15px}
body #profileQuestion .question-orbit-two{width:145px;height:145px;left:39px;top:37px}
body #profileQuestion .question-card{position:relative;display:flex;align-items:center;gap:11px;padding:15px 16px;border:1px solid var(--brand-line);background:#fff;border-radius:12px;box-shadow:0 8px 20px #14213d0a;color:var(--brand-blue);font:400 13px/1.4 Inter,sans-serif;transform:rotate(-4deg)}
body #profileQuestion .question-card>svg{width:20px;height:20px;flex-shrink:0;stroke-width:2}
body #profileQuestion .question-card>strong{color:var(--brand-ink);font-weight:700}
body #profileQuestion .question-card-two{transform:rotate(3deg);margin-left:18px}
body #profileQuestion .question-card-three{transform:rotate(-2deg);margin-right:14px}
@media(max-width:700px){body #profileQuestion{grid-template-columns:1fr;padding:24px;gap:16px}body #profileQuestion h2{font-size:29px}body #profileQuestion .profile-question-art{min-height:215px;max-width:300px;width:100%;margin:auto}}
@media(max-width:480px){body #profileQuestion{padding:22px 18px}body #profileQuestion h2{font-size:28px}body #profileQuestion .profile-question-art{max-width:235px}}

/* Approved "Suave y claro": larger Lucide metrics on gallery cards only. */
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr));
  align-items:start;gap:10px;min-height:0;padding-top:10px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric{
  display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;
  gap:6px;min-width:0;white-space:normal;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-icon{
  display:grid;place-items:center;width:40px;height:40px;min-width:40px;
  border-radius:50%;color:#da1f3d;background:#fff0f3;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric:nth-child(2) .engagement-icon{
  color:#0d4fda;background:#edf3ff;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-icon svg{
  display:block;width:24px;height:24px;stroke-width:2;flex:none;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-copy{
  display:contents;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-copy strong{
  display:block;min-width:0;min-height:0;margin:0;color:#14213d;
  font:650 14px/1.25 Inter,sans-serif;overflow-wrap:anywhere;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-copy small{
  display:block;grid-column:1/-1;min-width:0;margin:0;color:#526488;
  font:400 13px/1.4 Inter,sans-serif;white-space:normal;overflow-wrap:normal;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric:not(.is-available) strong{
  grid-column:1/-1;color:#526488;font-size:12px;font-weight:500;
  overflow-wrap:normal;word-break:normal;
}

/* Keep the inline publication viewer inside its padded mobile page. */
@media (max-width: 680px) {
  body .publication-shell #mediaDialog.publication-viewer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* Approved compact cards: type icon and measured figures, no repeated labels. */
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
  display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;
  gap:8px;min-height:24px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta time{
  min-width:0;font:400 13px/1.5 Inter,sans-serif;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-type-icon{
  display:grid;place-items:center;width:24px;height:24px;margin:0;
  color:#0d4fda;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-type-icon svg{
  display:block;width:24px;height:24px;stroke-width:2;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement{
  padding-top:14px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement .engagement-copy small{
  display:none;
}
/* Missing figures keep their state; active work uses only the small spinner. */
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric:not(.is-available) .engagement-copy strong{
  display:block;grid-column:2;grid-row:1;font:400 12px/1.35 Inter,sans-serif;
  color:#526488;white-space:normal;overflow-wrap:anywhere;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric[aria-busy="true"] .engagement-copy strong{
  display:none;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date time[aria-busy="true"]{
  display:inline-flex;align-items:center;gap:4px;
}

/* Approved filter icons and card dates: matching Lucide symbols. */
body .profile-gallery .profile-filter-tabs{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;
}
body .profile-gallery .profile-filter-tabs>button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:44px;padding:8px;border-radius:9px;white-space:nowrap;
  color:#0d4fda;font:500 14px/1.3 Inter,sans-serif;
}
body .profile-gallery .profile-filter-tabs>button>svg{
  display:block;flex:none;width:24px;height:24px;stroke-width:2;
}
body .profile-gallery .profile-filter-tabs>button>span{
  display:inline-grid;place-items:center;min-width:18px;padding:2px 3px;
  border-radius:4px;background:#edf3ff;color:#0d4fda;font-size:13px;line-height:1.2;
}
body .profile-gallery .profile-filter-tabs>button[aria-pressed="true"]{
  background:#0d4fda;color:#fff;
}
body .profile-gallery .profile-filter-tabs>button[aria-pressed="true"]>span{
  background:#ffffff2e;color:#fff;
}
body .profile-gallery .profile-order select{
  min-height:38px;max-width:145px;color:#526488;font:400 14px/1.4 Inter,sans-serif;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-card-date{
  display:flex;align-items:center;gap:6px;min-width:0;color:#526488;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date>svg{
  display:block;flex:none;width:16px;height:16px;stroke-width:1.8;
}
@media(max-width:640px){
  body .profile-gallery .profile-order select{font-size:16px;max-width:180px}
}

/* Approved media details below covers: carousel counts and explicit incomplete states. */
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
  grid-template-columns:minmax(0,1fr) auto;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-type-icon{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;
  gap:4px;width:auto;min-width:24px;max-width:64px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-type-count{
  display:block;color:#0d4fda;font:650 13px/1.4 Inter,sans-serif;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-type-state{
  display:block;flex:1 0 100%;max-width:100%;text-align:right;
  color:#526488;font:400 13px/1.4 Inter,sans-serif;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-card-date{
  flex-wrap:wrap;row-gap:2px;text-align:left;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date time{
  flex:1 1 64px;overflow-wrap:normal;
}
@media(max-width:360px){
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
    grid-template-columns:minmax(0,1fr);row-gap:6px;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-type-icon{
    justify-self:end;max-width:100%;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-type-state{
    flex:0 1 auto;max-width:none;
  }
}

/* Approved card metadata order: media left, date right. */
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
  grid-template-columns:auto minmax(0,1fr);
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-type-icon{
  grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;
  height:auto;min-height:24px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-type-state{
  text-align:left;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-card-date{
  grid-column:2;grid-row:1;justify-self:end;display:block;text-align:right;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date>svg{
  display:inline-block;vertical-align:middle;margin-right:6px;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date time{
  display:inline;
}
@media(max-width:360px){
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
    grid-template-columns:minmax(0,1fr);
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-card-date{
    grid-column:1;grid-row:2;
  }
}

/* Approved mobile metadata row: full-size icons and compact dates. */
body :is(#contentGrid,#publicationRelatedGrid) .post-date-full{
  display:inline;
}
body :is(#contentGrid,#publicationRelatedGrid) .post-date-short{
  display:none;
}
@media(max-width:640px){
  body :is(#contentGrid,#publicationRelatedGrid) .profile-post-copy{
    padding-left:0;padding-right:0;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta{
    grid-template-columns:auto minmax(0,1fr);gap:1px;align-items:start;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-type-icon{
    grid-column:1;grid-row:1;gap:2px;max-width:49px;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-meta>.post-card-date{
    grid-column:2;grid-row:1;display:flex;align-items:center;flex-wrap:nowrap;gap:1px;
    min-height:24px;white-space:nowrap;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-date>svg{
    margin-right:0;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-card-date time{
    display:block;flex:0 0 auto;white-space:nowrap;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-date-full{
    display:none;
  }
  body :is(#contentGrid,#publicationRelatedGrid) .post-date-short{
    display:inline;
  }
}

/* Loading words remain accessible, but cards show only their existing spinner. */
body :is(#contentGrid,#publicationRelatedGrid) .post-card-date time[aria-busy="true"] :is(.post-date-full,.post-date-short){
  display:none;
}

/* Real work only: CSS motion follows API states; no extra timers or requests. */
body .result-notice.is-working>svg,
body .engagement-loading>svg{
  animation:instatics-work-spin 1s linear infinite;transform-origin:center;
}
body .result-notice.is-working>svg{flex:none}
body .notice-progress-dots{display:inline-flex;min-width:1em;letter-spacing:.04em}
body .notice-progress-dots>span{animation:instatics-work-dot 1.2s steps(1,end) infinite}
body .notice-progress-dots>span:nth-child(2){animation-delay:.2s}
body .notice-progress-dots>span:nth-child(3){animation-delay:.4s}
body .engagement-loading{display:inline-flex;flex:none;align-items:center;justify-content:center;width:18px;height:18px}
body .engagement-loading>svg{display:block;width:16px;height:16px;stroke-width:2}
body :is(#contentGrid,#publicationRelatedGrid) .post-engagement>.engagement-metric>.engagement-loading{grid-column:2;grid-row:1;justify-self:start}
@keyframes instatics-work-spin{to{transform:rotate(360deg)}}
@keyframes instatics-work-dot{0%,24%{opacity:.25}25%,100%{opacity:1}}
@media(prefers-reduced-motion:reduce){
  body .result-notice.is-working>svg,body .engagement-loading>svg,body .notice-progress-dots>span{animation:none}
}
body.effects-paused .result-notice.is-working>svg,
body.effects-paused .engagement-loading>svg,
body.effects-paused .notice-progress-dots>span{animation:none}
/* End real-work indicators. */

/* Approved clear compact publication panel: shared card metrics and saved text. */
body .viewer-instagram #viewerDetails{
  color:#14213d;background:#fff;
}
body .viewer-instagram #viewerDetails .viewer-profile-heading{
  padding:20px 22px;border-color:#dce5f4;
}
body .viewer-instagram #viewerDetails .viewer-profile-avatar{
  width:38px;height:38px;flex:none;
}
body .viewer-instagram #viewerDetails .viewer-engagement{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  flex:none;margin:0;padding:24px 22px 20px;border:0;background:transparent;
}
body .viewer-instagram #viewerDetails .engagement-metric{
  display:flex;align-items:center;gap:9px;min-width:0;
}
body .viewer-instagram #viewerDetails .engagement-icon{
  display:grid;place-items:center;flex:none;width:40px;height:40px;min-width:40px;
  padding:0;border-radius:50%;color:#da1f3d;background:#fff0f3;
}
body .viewer-instagram #viewerDetails .engagement-metric:nth-child(2) .engagement-icon{
  color:#0d4fda;background:#edf3ff;
}
body .viewer-instagram #viewerDetails .engagement-icon>svg{
  display:block;flex:none;width:24px;height:24px;stroke-width:2;
}
body .viewer-instagram #viewerDetails .engagement-copy{
  display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .engagement-copy strong{
  color:#14213d;font:700 24px/1.2 var(--type-family);letter-spacing:-.025em;
}
body .viewer-instagram #viewerDetails .engagement-copy small{
  color:#526488;font:400 13px/1.45 var(--type-family);
}
body .viewer-instagram #viewerDetails .engagement-metric:not(.is-available) .engagement-copy strong{
  color:#526488;font:500 14px/1.45 var(--type-family);letter-spacing:0;
}
body .viewer-instagram #viewerDetails .viewer-details-main{
  flex:1 0 auto;min-width:0;min-height:0;padding:0 22px 22px;overflow:visible;
}
body .viewer-instagram #viewerDetails .viewer-publication-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;
  min-width:0;padding-bottom:17px;border-bottom:1px solid #dce5f4;color:#526488;
}
body .viewer-instagram #viewerDetails .viewer-kind-detail,
body .viewer-instagram #viewerDetails .viewer-date-detail{
  display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;
}
body .viewer-instagram #viewerDetails .viewer-kind-detail svg,
body .viewer-instagram #viewerDetails .viewer-date-detail>svg,
body .viewer-instagram #viewerDetails .viewer-comment-note>svg,
body .viewer-instagram #viewerDetails .viewer-saved-files>svg{
  display:block;flex:none;width:16px;height:16px;stroke-width:1.8;
}
body .viewer-instagram #viewerDetails #viewerKindIcon{
  display:grid;place-items:center;flex:none;width:24px;height:24px;color:#0d4fda;
}
body .viewer-instagram #viewerDetails #viewerKindIcon>svg{
  display:block;width:24px;height:24px;stroke-width:2;
}
body .viewer-instagram #viewerDetails .viewer-people:not([hidden]){
  display:grid;gap:10px;margin:0 0 18px;color:#526488;overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .viewer-people p:not([hidden]){display:grid;gap:3px;margin:0;font-size:13px;line-height:1.5;}
body .viewer-instagram #viewerDetails .viewer-people strong{font-size:13px;font-weight:600;color:#1b2b4b;}
body .viewer-instagram #viewerDetails .viewer-kind,
body .viewer-instagram #viewerDetails .viewer-date{
  margin:0;padding:0;border:0;color:#526488;font:400 13px/1.6 var(--type-family);
  letter-spacing:0;text-transform:none;overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .viewer-description{
  margin:22px 0 16px;color:#526488;font:400 14px/1.75 var(--type-family);
  white-space:pre-wrap;overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .viewer-comment-note{
  display:flex;align-items:flex-start;gap:9px;margin:0;color:#526488;
}
body .viewer-instagram #viewerDetails .viewer-comment-note>svg{
  margin-top:3px;color:#0d4fda;
}
body .viewer-instagram #viewerDetails .viewer-comment-note p{
  margin:0;color:#526488;font:400 13px/1.7 var(--type-family);overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .viewer-saved-comments{
  margin-top:12px;min-width:0;
}
body .viewer-instagram #viewerDetails .viewer-saved-comments ul{
  display:grid;gap:9px;list-style:none;margin:0;padding:0;
}
body .viewer-instagram #viewerDetails .viewer-saved-comments li{
  min-width:0;margin:0;padding:10px 12px;border:1px solid #dce5f4;border-radius:10px;
  background:#f5f8ff;color:#14213d;font:400 14px/1.65 var(--type-family);
  white-space:pre-wrap;overflow-wrap:anywhere;
}
body .viewer-instagram #viewerDetails .viewer-saved-files{
  display:flex;align-items:flex-start;gap:8px;margin-top:23px;color:#526488;
}
body .viewer-instagram #viewerDetails .viewer-saved-files>svg{margin-top:3px}
body .viewer-instagram #viewerDetails .viewer-demo{
  margin:0;color:#526488;font:400 13px/1.7 var(--type-family);
}
body .viewer-instagram #viewerDetails .viewer-details-footer{
  flex:none;padding:18px 22px 21px;border-color:#dce5f4;background:#fff;
}
body .viewer-instagram #viewerDetails .viewer-share-actions{
  display:flex;align-items:stretch;flex-wrap:nowrap;gap:9px;
}
body .viewer-instagram #viewerDetails .viewer-open-publication{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;
  min-width:0;min-height:44px;padding:10px 13px;border:1px solid #df1940;border-radius:8px;
  background:#df1940;color:#fff;font:650 14px/1.45 var(--type-family);text-align:center;
}
body .viewer-instagram #viewerDetails #viewerCopyPublication{
  display:inline-grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;
  padding:10px;border:1px solid #dce5f4;border-radius:8px;background:#fff;color:#14213d;
}
body .viewer-instagram #viewerDetails .viewer-share-actions svg{
  flex:none;width:18px;height:18px;
}
body .viewer-instagram #viewerDetails .viewer-permalink{
  display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;
  margin:15px 0 0;color:#526488;font:400 13px/1.6 var(--type-family);text-align:center;
}
body .viewer-instagram #viewerDetails .viewer-permalink>svg{width:15px;height:15px;flex:none}
body .viewer-instagram #viewerDetails :is(.viewer-open-publication,#viewerCopyPublication,.viewer-permalink):focus-visible{
  outline:3px solid #0d4fda;outline-offset:3px;
}
@media(max-width:390px){
  body .viewer-instagram #viewerDetails .viewer-profile-heading{padding:18px;gap:9px}
  body .viewer-instagram #viewerDetails .viewer-profile-name strong{font-size:14px}
  body .viewer-instagram #viewerDetails .viewer-engagement{padding:22px 18px 18px;gap:9px}
  body .viewer-instagram #viewerDetails .engagement-metric{gap:6px;flex-wrap:wrap}
  body .viewer-instagram #viewerDetails .engagement-loading{width:16px;height:16px}
  body .viewer-instagram #viewerDetails .viewer-details-main{padding:0 18px 20px}
  body .viewer-instagram #viewerDetails .viewer-details-footer{padding:18px}
}
/* End approved clear compact publication panel. */
