/* Application-owned adapter, promoted from the approved Draft 5. */
html.shared-ui {
  --f34-font-display: var(--su-font-display); --f34-font-body: var(--su-font-body);
  --f34-font-editorial: var(--su-font-editorial); --f34-font-label: var(--su-font-label);
}
@media screen {
  html.shared-ui {
    --su-accent:#c3d5e3; --su-secondary:#b18cff; --su-tertiary:#39dfbd; --su-on-accent:#101518; --su-focus:#e2eef7;
    --color-text-lighter:var(--su-ink); --color-text-alt-light:#c6ccd2; --color-text-alt-dark:var(--su-muted);
    --forge-color-primary-lighter:var(--su-accent); --forge-color-primary-lighter-alt:var(--su-accent);
    --forge-color-primary-light:var(--su-tertiary); --forge-color-link:var(--su-accent);
    --forge-color-link-visited:var(--su-secondary); --forge-color-link-hover:#e2eef7;
    --forge-color-black:var(--su-canvas); --forge-color-black-lighter:var(--su-surface);
    --forge-color-text:var(--su-ink); --forge-color-text-alt:var(--su-muted);
    --color-item-link:var(--su-secondary); --color-item-link-light:var(--su-secondary);
  }
  .shared-ui .landing_background { display:none; }
  .shared-ui :is(.content_block,.main_content_sidebar) { background:var(--su-surface); color:var(--su-ink); border-radius:0; }
  .shared-ui :is(.profile_section_heading h2,.main_content_sidebar h1) { font-family:var(--su-font-display); text-transform:uppercase; }
  .shared-ui .profile_archive .profile_section_heading h2 { font-family:var(--su-font-editorial); }
  .shared-ui .profile_projects .project_showcase_header { background-image:linear-gradient(#111315ed,#111315ed),url('/shared-ui/artwork/f34-repeat.webp'); background-size:cover; }
  .shared-ui .profile_projects :is(.project_showcase_tile--forgejo,.project_showcase_tile--projectman,.project_showcase_tile--pulse) { background-image:linear-gradient(#1b1e21eb,#1b1e21eb),url('/shared-ui/artwork/f34-poster.webp'); background-size:auto,80px 80px; background-position:center,right top; background-repeat:no-repeat; }
  .shared-ui .su-tag img { position:static; width:50px; height:50px; object-fit:contain; }
  .shared-ui body.profile_page { background:var(--su-canvas); }
  .shared-ui .profile_container { --portfolio-accent:var(--su-accent); --portfolio-accent-dark:#243139; }
  .shared-ui .profile_hero { border:0; background:linear-gradient(115deg,#1f2429,#111315 65%); box-shadow:0 20px 48px #0004; }
  .shared-ui .profile_hero::before { display:none; }
  .shared-ui .profile_hero_body { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
  .shared-ui .profile_hero_copy { padding:32px; }
  .shared-ui .profile_hero_title { font-size:clamp(2.5rem,6vw,6rem); line-height:.95; text-shadow:none; }
  .shared-ui .profile_hero_headline { font-size:clamp(1.15rem,2.5vw,2rem); }
  .shared-ui .profile_hero_body > .su-art { height:100%; min-height:360px; }
  .shared-ui .profile_hero_status { border:0; color:var(--su-muted); background:var(--su-field); }
  .shared-ui .profile_hero_online { color:var(--su-tertiary); }
  .shared-ui .profile_hero_online i { background:var(--su-tertiary); box-shadow:none; }
  .shared-ui .profile_hero_kicker { color:var(--su-accent); }
  .shared-ui .profile_hero_bio { color:#c6ccd2; }
  .shared-ui .profile_hero_actions a { border-radius:0; background:var(--su-accent); border-color:var(--su-accent); color:var(--su-on-accent); }
  .shared-ui .profile_hero_actions a:hover { background:#e2eef7; color:#101518; transform:none; }
  .shared-ui :is(.profile_hero_actions,.profile_contact_actions) .profile_action_primary { background:var(--su-accent)!important; color:var(--su-on-accent)!important; border-color:var(--su-accent)!important; }
  .shared-ui :is(.profile_hero_actions,.profile_contact_actions) .profile_action_primary:hover { background:#e2eef7!important; }
  .shared-ui .profile_signal_strip { border:0; gap:2px; background:var(--su-canvas); box-shadow:none; }
  .shared-ui .profile_signal { border:0; background:var(--su-surface); }
  .shared-ui .profile_signal dt { color:var(--su-muted); }
  .shared-ui .profile_signal dd { color:var(--su-accent); }
  .shared-ui .profile_signal:nth-child(2) dd { color:var(--su-secondary); }
  .shared-ui .profile_signal:nth-child(3) dd { color:var(--su-tertiary); }
  .shared-ui .profile_section_heading { border:0; }
  .shared-ui .profile_section_heading > p { color:var(--su-secondary); }
  .shared-ui .profile_forgejo_summary { border:0; border-left:5px solid var(--su-accent); background:linear-gradient(#111315ee,#111315ee),url('/shared-ui/artwork/silver-film.webp') center/cover,var(--su-surface); box-shadow:none; }
  .shared-ui .profile_forgejo_summary::before { display:none; }
  .shared-ui .profile_forgejo_summary_header p { color:var(--su-tertiary); }
  .shared-ui .profile_forgejo_metrics div { border:0; background:var(--su-field); }
  .shared-ui .profile_forgejo_metrics dt { color:var(--su-muted); }
  .shared-ui .profile_forgejo_activity { border:0; background:var(--su-field); }
  .shared-ui .project_showcase_heatmap_cell { border:0; border-radius:0; background:#262c2d; }
  .shared-ui .project_showcase_heatmap_cell--level-1 { background:#3e625d; }
  .shared-ui .project_showcase_heatmap_cell--level-2 { background:#608e84; }
  .shared-ui .project_showcase_heatmap_cell--level-3 { background:#7fb5a9; }
  .shared-ui .project_showcase_heatmap_cell--level-4 { background:var(--su-tertiary); box-shadow:none; }
  .shared-ui .profile_record { border:0; background:var(--su-surface); box-shadow:none; }
  /* Project panels inherit the application card primitives; only their inner layout is adapted here. */
  .shared-ui .project_showcase::before { display:none; }
  .shared-ui :is(.project_showcase,.project_showcase_tile,.project_showcase_footer,.profile_record,.profile_signal_strip,.profile_forgejo_summary) { overflow:visible; }
  .shared-ui .project_showcase_identity h2 { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.12; }
  .shared-ui .project_showcase_story > p { display:block; overflow:visible; -webkit-line-clamp:unset; }
  .shared-ui .project_showcase_mark { border:0; border-radius:0; background:var(--su-accent); color:#101518; box-shadow:none; }
  .shared-ui :is(.project_showcase_kicker,.project_showcase_tile_label) { color:var(--su-muted); }
  .shared-ui .project_showcase_tile { border:0; background:var(--su-raised); box-shadow:none; }
  .shared-ui .project_showcase_tile::before { display:none; }
  .shared-ui .project_showcase_footer { border:0; background:#181b1d; color:var(--su-ink); }
  .shared-ui .project_showcase_status { background:#172520; color:var(--su-tertiary); box-shadow:none; }
  .shared-ui .project_showcase_story p { color:#c6ccd2; }
  .shared-ui .project_showcase_meta { border-color:var(--su-line); color:var(--su-accent); }
  .shared-ui .profile_record_index { border:0; background:#1c1a22; color:var(--su-secondary); }
  .shared-ui .profile_record:hover { background:var(--su-raised); transform:none; box-shadow:none; }
  .shared-ui .profile_record { border-left:4px solid var(--su-secondary); }
  .shared-ui .profile_section_heading h2.su-editorial { font-family:var(--su-font-editorial); }
  .shared-ui .profile_forgejo_summary { padding-left:26px; }
  .shared-ui .project_showcase_header { background:var(--su-surface); }
  .shared-ui[data-su-expression="expressive"] .project_showcase_mark { background:var(--su-tertiary); }
  .shared-ui[data-su-expression="expressive"] .profile_record_index { background:var(--su-secondary); color:#101518; }
}
@media screen and (max-width:760px) {
  .shared-ui :is(.profile_forgejo_summary,.profile_projects .project_showcase_header,.profile_projects .project_showcase_tile) { background-image:none; }
  .shared-ui .profile_hero_body { grid-template-columns:1fr; }
  .shared-ui .profile_hero_body > .su-art { height:240px; min-height:0; }
  .shared-ui .profile_hero_copy { padding:24px 16px; }
  .shared-ui .profile_signal:nth-child(n) { border:0; }
  .shared-ui .profile_hero { background:var(--su-surface); box-shadow:none; }
}
/* Legacy portfolio rules include explicit light ink and dark image surfaces.
   Normalize the complete printed page, not just the shared-ui components. */
@media print {
  html.shared-ui body { background:#fff!important; }
  html.shared-ui :is(.landing_background,.background_scroll_container) { display:none!important; }
  html.shared-ui body *,
  html.shared-ui body *::before,
  html.shared-ui body *::after {
    color:#111!important;
    background:transparent!important;
    box-shadow:none!important;
    text-shadow:none!important;
    border-color:#777!important;
    transition:none!important;
    animation:none!important;
  }
  html.shared-ui .project_showcase_media_caption { background:#fff!important; }
  html.shared-ui .project_dossier_lead > span { background:#fff!important; padding:8px; }
  html.shared-ui .profile_action_primary { background:#fff!important; border-color:#777!important; }
}
