/* Figma feed primitives, adapted to the shared C typography and web contrast. */
.feed-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; object-fit: contain; }
.feed-card { padding: 24px; border-bottom: 1px solid var(--line); background: #fff; min-width: 0; }
.feed-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.feed-author { display: flex; align-items: center; gap: 12px; min-width: 0; background: transparent; text-align: left; border-radius: 12px; }
.feed-avatar { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); padding: 2px; }
.feed-author strong { font-size: 16px; font-weight: 700; }
.feed-author small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.feed-more { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: transparent; }
.feed-more .feed-icon { width: 16px; height: 16px; }
.feed-card-content { margin: 6px 0 0 56px; min-width: 0; }
.feed-official { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: var(--action); color: white; border-radius: 20px; font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
.feed-official .feed-icon { width: 9px; height: 11px; }
.feed-post-heading { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.65; letter-spacing: -.015em; margin: 0 0 8px; color: var(--ink); }
.feed-post-text { font-size: 15px; line-height: 1.85; color: #465867; overflow-wrap: anywhere; white-space: pre-wrap; }
.feed-image-button { display: block; margin-top: 15px; width: 100%; background: var(--surface-blue); border-radius: 12px; overflow: hidden; }
.feed-post-image { width: 100%; height: 245px; object-fit: cover; border-radius: 12px; }
.feed-card[data-post-id="agency-welcome"] .feed-post-image { object-fit: contain; background: #f5f1ff; height: auto; aspect-ratio: 1800 / 1013; }
.feed-card[data-post-id="rika-day"] .feed-post-image { object-position: 50% 10%; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; color: var(--accent); font-size: 12px; line-height: 1.7; }
.feed-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 9px -10px -7px; }
.feed-action { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; gap: 7px; padding: 8px 10px; background: transparent; border-radius: 22px; color: var(--muted); font-size: 12px; }
.feed-action .feed-icon { width: 18px; height: 18px; }
.feed-action:hover, .feed-more:hover { background: var(--surface-blue); }
.feed-action[aria-pressed="true"] { background: var(--surface-blue); color: var(--accent); }
.feed-quote { margin: 16px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 20px; }
.feed-quote > div { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 13px; }
.feed-quote img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.feed-quote > p:last-child { color: #465867; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.feed-quote-label, .feed-repost-note { color: var(--accent); font-size: 11px; line-height: 1.7; }
.feed-repost-note { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.feed-repost-note .feed-icon { width: 15px; height: 15px; }

/* The original exported nav geometry is retained; visible labels and hit areas are added. */
.feed-dock { position: relative; width: 402px; max-width: 100%; aspect-ratio: 402 / 121; }
.feed-dock-art { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 4px 12px #25364614); }
.feed-dock-art .feed-icon { position: absolute; object-fit: fill; }
.feed-dock-art .dock-bg { width: 94.03%; height: 73.55%; left: 2.985%; top: 13.22%; }
.feed-dock-art .dock-left { width: 35.82%; height: 38.84%; left: 4.23%; top: 30.17%; }
.feed-dock-art .dock-right { width: 35.82%; height: 38.84%; left: 59.95%; top: 30.17%; transform: scaleX(-1); }
.feed-dock-item { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 44px; min-height: 48px; top: 32%; background: transparent; border-radius: 20px; color: var(--accent); font-size: 10px; font-weight: 700; }
.feed-dock-item .feed-icon { width: 20px; height: 20px; }
.feed-dock-item:hover { background: #d9edff70; }
.dock-home { left: 7.4%; }
.dock-story { left: 24.6%; }
.dock-manager { width: 19%; height: 70%; left: 40.5%; top: 14%; justify-content: flex-start; }
.dock-manager .feed-icon { width: 100%; height: 86%; }
.dock-manager > span { margin-top: -8px; background: #fff; border-radius: 5px; padding: 0 5px; }
.dock-notification { right: 24.6%; }
.dock-notification-icon { position: relative; width: 20px; height: 20px; }
.dock-notification-icon .feed-icon { position: absolute; inset: 0; }
.dock-dm { right: 7.4%; }

.feed-page { background: #edf5fb; color: var(--ink); }
.feed-page #feed-main:focus, .feed-page #feed-heading:focus { outline: none; }
.feed-site-header { min-height: 82px; padding: 16px max(32px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fcfcfc; border-bottom: 1px solid var(--line); }
.feed-site-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.feed-site-brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.feed-back { display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: 13px; }
.feed-layout { width: min(1120px, calc(100% - 64px)); display: grid; grid-template-columns: 180px minmax(0, 1fr) 250px; gap: 28px; margin: 34px auto 0; align-items: start; padding-bottom: 145px; }
.feed-left, .feed-right { position: sticky; top: 28px; min-width: 0; }
.feed-left h2 { font-size: 19px; line-height: 1.5; margin-top: 14px; }
.feed-side-filters { display: grid; gap: 6px; margin: 30px 0 26px; }
.feed-side-filters button { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 50px; border-radius: 14px; padding: 12px; background: transparent; text-align: left; font-size: 15px; }
.feed-side-filters [aria-pressed="true"] { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 3px 12px #25364606; }
.feed-side-filters .feed-icon { width: 24px; height: 24px; }
.feed-side-filters [data-feed-filter="official"] .feed-icon { width: 30px; height: 30px; margin-left: -3px; margin-right: -3px; }
.feed-left .button { width: 100%; font-size: 14px; padding-inline: 16px; }
.feed-side-note { font-size: 11px; line-height: 1.9; color: var(--muted); margin-top: 18px; }
.feed-side-ornament { margin-top: 28px; width: 100%; height: auto; }
.feed-left .text-button { margin-top: 10px; font-size: 12px; }
.feed-column { background: white; border: 1px solid var(--line); border-radius: 4px 20px 4px 20px; min-width: 0; box-shadow: 0 8px 30px #25364605; }
.feed-heading { padding: 28px 24px 22px; }
.feed-heading .eyebrow { font-size: 10px; }
.feed-heading h1 { font-size: clamp(26px, 2.5vw, 33px); line-height: 1.4; margin-top: 13px; }
.feed-heading > p:last-child { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.feed-notice { margin: 0 20px; padding: 14px; background: var(--surface-blue); border-left: 3px solid var(--accent-base); border-radius: 4px 12px 4px 12px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.feed-notice > span { display: block; color: var(--accent); font-weight: 700; margin-bottom: 3px; }
.feed-filter-wrap { display: flex; gap: 10px; align-items: center; padding: 23px 24px 14px; }
.feed-filter { flex: 1; display: flex; border: 1px solid var(--line); border-radius: 25px; background: white; padding: 3px; }
.feed-filter button { width: 50%; min-height: 44px; border-radius: 22px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 600; }
.feed-filter [aria-pressed="true"] { color: #fff; background: var(--action); font-weight: 700; }
.feed-save-filter { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; min-height: 44px; border-radius: 24px; background: white; font-size: 11px; }
.feed-save-filter[aria-pressed="true"] { color: var(--accent); background: var(--surface-blue); }
.feed-character-strip { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 24px 14px; border-bottom: 1px solid var(--line); }
.feed-character-strip button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 8px; min-height: 44px; border-radius: 24px; font-size: 11px; color: var(--muted); background: white; border: 1px solid transparent; }
.feed-character-strip img { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; }
.feed-character-strip [aria-pressed="true"] { border-color: var(--frame); color: var(--accent); background: var(--surface-blue); }
.feed-compose-prompt { display: flex; align-items: center; gap: 12px; min-height: 76px; width: 100%; text-align: left; background: white; padding: 18px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.feed-compose-prompt > img:first-child { width: 30px; height: 36px; object-fit: contain; }
.feed-compose-prompt > .feed-icon:last-child { margin-left: auto; }
.feed-result-status { padding: 12px 24px; background: #fbfdff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.feed-empty { padding: 45px 24px 60px; text-align: center; }
.feed-empty h2 { font-size: 22px; margin: 0; }
.feed-empty p { margin: 15px auto 24px; font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 280px; }
.feed-empty .button { font-size: 14px; }
.feed-end { padding: 28px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.feed-cast-panel { padding: 22px; background: #ffffffb0; border: 1px solid var(--line); border-radius: 4px 20px 4px 20px; }
.feed-cast-panel .eyebrow { font-size: 10px; }
.feed-cast-panel h2 { font-size: 18px; margin-top: 12px; }
.feed-cast-panel > p:not(.eyebrow) { font-size: 12px; line-height: 1.8; margin-top: 12px; color: var(--muted); }
.feed-cast-list { display: grid; margin-top: 16px; gap: 5px; }
.feed-cast-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; min-height: 56px; background: transparent; text-align: left; border-radius: 10px; }
.feed-cast-list img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.feed-cast-list strong { font-size: 13px; }
.feed-cast-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.feed-cast-list button > span:last-child { margin-left: auto; color: var(--accent); }
.feed-cast-list [aria-pressed="true"] { background: var(--surface-blue); }
.feed-manager-note { margin-top: 23px; padding: 25px 20px; border-radius: 4px 20px 4px 20px; background: linear-gradient(#ffffffd9, #ffffffd9), white url('./assets/figma/diamond-pattern.svg') right top / 260px auto no-repeat; border: 1px solid var(--line); }
.feed-manager-note .eyebrow { font-size: 9px; }
.feed-manager-note h2 { font-size: 22px; margin-top: 15px; line-height: 1.5; }
.feed-manager-note > p:not(.eyebrow) { margin-top: 18px; font-size: 13px; line-height: 1.85; color: var(--muted); }
.feed-manager-note .button { width: 100%; font-size: 13px; margin-top: 22px; padding: 12px; }
.feed-manager-note .text-button { width: 100%; font-size: 12px; }
.feed-source-note { margin-top: 20px; padding: 0 8px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.feed-dock-position { position: fixed; z-index: 12; bottom: max(3px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 64px)); display: grid; grid-template-columns: 180px minmax(0, 1fr) 250px; gap: 28px; pointer-events: none; }
.feed-dock-position .feed-dock { grid-column: 2; justify-self: center; pointer-events: auto; }
.feed-fab { position: fixed; z-index: 11; bottom: calc(120px + env(safe-area-inset-bottom)); left: calc(50% + 120px); width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 18px #25364625; background: white; }
.feed-fab .feed-icon { width: 56px; height: 56px; }
.feed-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.feed-dialog h2 { font-size: 24px; padding-right: 20px; }
.feed-dialog .dialog-content { padding: 32px; }
.feed-detail-note, .feed-composer-note { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 22px 0; }
.feed-detail-author { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 15px; }
.feed-detail-author img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.feed-detail-text { font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-detail-image { margin-top: 18px; width: 100%; max-height: 55dvh; object-fit: contain; border-radius: 12px; background: #f4f7fa; }
.feed-dialog .button { margin-top: 24px; width: 100%; font-size: 14px; }
.feed-dialog form label { display: block; margin: 20px 0 10px; font-size: 14px; font-weight: 700; }
.feed-dialog textarea { display: block; width: 100%; resize: vertical; min-height: 150px; max-height: 45dvh; border: 1px solid var(--frame); border-radius: 12px; padding: 14px; font: inherit; font-size: 16px; line-height: 1.8; color: var(--ink); background: #fbfdff; }
.feed-composer-meta { display: flex; gap: 20px; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.feed-composer-meta > span { flex-shrink: 0; margin-left: auto; }
#feed-compose-error { color: #ad2441; line-height: 1.7; }
.feed-repost-menu { display: grid; gap: 10px; }
.feed-repost-menu button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border-radius: 12px; background: var(--surface-blue); color: var(--accent); font-size: 15px; }
.feed-notification-list { display: grid; gap: 8px; }
.feed-notification-list button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px; background: var(--surface-blue); border-radius: 12px; text-align: left; }
.feed-notification-list img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.feed-notification-list strong { font-size: 14px; line-height: 1.7; }
.feed-notification-list small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* The landing uses the same post data and assets in its existing phone scene. */
.mini-feed-filter { display: flex; border: 1px solid var(--line); padding: 3px; border-radius: 25px; margin-bottom: 12px; }
.mini-feed-filter button { width: 50%; min-height: 44px; font-size: 12px; border-radius: 22px; background: white; color: var(--accent); }
.mini-feed-filter [aria-pressed="true"] { background: var(--action); color: white; font-weight: 700; }
.mini-feed-scroll { max-height: 282px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--frame) transparent; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-feed-scroll:focus-visible { outline-offset: -3px; }
.feed-card-compact { padding: 10px 0 15px; }
.feed-card-compact .feed-card-content { margin: 10px 0 0; }
.feed-card-compact .feed-author { gap: 8px; }
.feed-card-compact .feed-avatar { width: 34px; height: 34px; }
.feed-card-compact .feed-author strong { font-size: 12px; }
.feed-card-compact .feed-author small { font-size: 10px; }
.feed-card-compact .feed-post-heading { font-size: 13px; margin-bottom: 6px; }
.feed-card-compact .feed-post-text { font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card-compact .feed-official { font-size: 9px; margin-bottom: 8px; }
.feed-card-compact .feed-post-image { height: 120px; margin-top: 10px; }
.feed-card-compact .feed-tags { font-size: 9px; }
.feed-card-compact .feed-actions { margin: 10px 0 0; }
.feed-card-compact .feed-actions .feed-icon { width: 15px; height: 15px; }
.feed-card-compact .feed-quote { padding: 10px; }
.feed-card-compact .feed-quote > p:last-child { font-size: 11px; }
.phone .feed-dock { margin: -5px auto 0; }
.phone .feed-dock-item { min-height: 35px; min-width: 30px; font-size: 8px; }
.phone .feed-dock-item .feed-icon { width: 16px; height: 16px; }
.phone .dock-manager .feed-icon { width: 100%; height: 86%; }
.phone .feed-dock-decorative { pointer-events: none; }
.feed-preview-link { margin-top: 10px; font-size: 13px; }
.mini-feed-links { display: grid; gap: 6px; }
.mini-feed-links .text-button { font-size: 12px; justify-content: center; }

@media (max-width: 1100px) {
  .feed-left { display: none; }
  .feed-layout, .feed-dock-position { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .feed-dock-position .feed-dock { grid-column: 1; }
  .feed-fab { left: auto; right: calc(32px + 264px + 18px); }
}
@media (max-width: 760px) {
  .feed-site-header { min-height: 72px; padding: 10px 18px; gap: 12px; }
  .feed-site-brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .feed-site-brand small { font-size: 10px; }
  .feed-back { font-size: 11px; gap: 5px; }
  .feed-layout { display: block; width: min(560px, 100%); margin-top: 0; padding-bottom: 125px; }
  .feed-right { display: none; }
  .feed-column { border-top: 0; border-radius: 0; }
  .feed-heading { padding: 18px; }
  .feed-heading h1 { font-size: 26px; margin-top: 8px; }
  .feed-heading > p:last-child { display: none; }
  .feed-notice { margin-inline: 16px; padding: 10px 12px; font-size: 11px; }
  .feed-notice > span { display: none; }
  .feed-filter-wrap { padding: 19px 16px 10px; gap: 8px; }
  .feed-save-filter { font-size: 10px; }
  .feed-save-filter .feed-icon { width: 17px; height: 17px; }
  .feed-character-strip { padding-inline: 16px; gap: 4px; }
  .feed-character-strip button { font-size: 10px; padding-inline: 6px; }
  .feed-character-strip img { width: 20px; height: 20px; }
  .feed-compose-prompt { display: none; }
  .feed-result-status { padding: 8px 18px; }
  .feed-card { padding: 20px 16px; }
  .feed-card-content { margin-left: 52px; }
  .feed-author { gap: 10px; }
  .feed-avatar { width: 42px; height: 42px; }
  .feed-author strong { font-size: 14px; }
  .feed-post-heading { font-size: 15px; }
  .feed-post-text { font-size: 14px; }
  .feed-post-image { height: 190px; }
  .feed-tags { font-size: 11px; }
  .feed-quote { padding: 12px; }
  .feed-quote > p:last-child { font-size: 13px; }
  .feed-dock-position { display: flex; justify-content: center; width: calc(100% - 8px); bottom: env(safe-area-inset-bottom); }
  .feed-dock-position .feed-dock { flex-shrink: 1; }
  .feed-fab { right: max(18px, calc((100% - 560px) / 2 + 18px)); bottom: calc(112px + env(safe-area-inset-bottom)); }
  .feed-dialog .dialog-content { padding: 28px 22px; }
  .feed-dialog h2 { font-size: 21px; }
  .feed-card-compact { padding: 10px 0 15px; }
  .feed-card-compact .feed-card-content { margin-left: 0; }
}
