/* Mobile has its own reading and task hierarchy. Every visual rule is scoped
   to <=900px; desktop continues to use the original component styles. */
.psi-motion-site .nav .nav-login { display: none; }
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
  body.psi-motion-site { --psi-motion-distance: 10px; --psi-motion-enter: 420ms; }
  .psi-motion-site :is(button, a) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .psi-motion-site :is(p, h1, h2, h3, li, dd) { overflow-wrap: anywhere; }
  .psi-motion-site :is(.section, .detail-wrap, .gallery-page-head, .archive-grid-uniform) { padding-inline: clamp(20px, 5vw, 40px); }
  .psi-motion-site .nav, .psi-motion-site .nav.scrolled { height: 58px; padding-inline: 20px; background: #08131ff5; border-bottom: 1px solid #ffffff14; box-shadow: none; }
  .psi-motion-site .nav .logo { width: 92px; height: 44px; }
  /* Reference layout: one top row and a flush, left-aligned link list. */
  .psi-motion-site .nav .nav-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 15px; margin-left: auto; margin-right: 10px; border: 1px solid #ffffff25; border-radius: 999px; font-size: 14px; line-height: 1.2; color: var(--ink); }
  .psi-motion-site .nav .menu { width: 44px; height: 44px; flex-shrink: 0; margin-left: 0; padding: 0; border: 1px solid #ffffff25; border-radius: 50%; font-size: 22px; }
  .psi-motion-site .nav #site-nav { top: 58px; left: 0; right: 0; width: 100%; justify-self: stretch; padding: 10px 20px max(24px, env(safe-area-inset-bottom)); max-height: calc(100svh - 58px); max-height: calc(100dvh - 58px); background: #08131f; border-top: 1px solid #ffffff16; border-radius: 0; }
  body.psi-motion-site .nav[data-psi-navigation="ready"] #site-nav { box-shadow: none; }
  .psi-motion-site .nav #site-nav > a { display: flex; align-items: center; min-height: 56px; padding: 14px 0; font-size: 18px; letter-spacing: 0; line-height: 1.5; border-radius: 0; white-space: normal; }
  .psi-motion-site .nav #site-nav > a.active { background: transparent; color: #fff; }
  .psi-motion-site .nav #site-nav .language-switch { min-height: 54px; padding: 14px 0; margin-top: 12px; font-size: 14px; border-radius: 0; }
  body.psi-motion-site .nav .psi-nav-backdrop { top: 58px; }
  .home-page .hero.hero-a { --hero-nav-height: 58px; min-height: 520px; height: 100svh; max-height: 980px; }
  .home-page .hero.hero-a .hero-a-content { top: calc(58px + clamp(20px, 4svh, 38px)); left: 20px; right: 20px; }
  .home-page .hero.hero-a #hero-title { font-size: clamp(29px, 8.7vw, 48px); line-height: 1.2; letter-spacing: -.025em; white-space: normal; }
  html[lang=en] .home-page .hero.hero-a #hero-title { font-size: clamp(25px, 6.7vw, 42px); }
  .home-page .hero.hero-a .hero-a-subtitle { font-size: 12px; line-height: 1.5; letter-spacing: .13em; margin: 12px 0 20px; }
  .home-page .hero.hero-a .hero-a-button { min-height: 46px; padding: 11px 20px; border: 1px solid #ffffffb3; border-radius: 99px; background: transparent; font-size: 14px; }
  .home-page .section, .home-page .home-join, .psi-motion-site .section { padding-block: 52px; }
  .home-page .section-head { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 26px; }
  .home-page .section h2, .home-page .home-join h2 { font-size: clamp(30px, 6.5vw, 42px); line-height: 1.2; margin-top: 12px; }
  .home-page .tiny, .psi-motion-site .tiny { font-size: 11px; line-height: 1.5; letter-spacing: .13em; }
  .home-page .home-more { font-size: 14px; padding-block: 10px; min-height: 44px; }
  .home-page .home-section-copy, .home-milestone p { font-size: 16px; line-height: 1.8; }
  .home-projects .project-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-projects .project { border: 1px solid #ffffff17; border-radius: 18px; overflow: hidden; background: #0c1c2b; }
  .home-projects .project > img { aspect-ratio: 16 / 10; }
  .home-projects .project-body { padding: 22px; }
  .home-projects .project-body h3 { font-size: 24px; margin: 10px 0 12px; }
  .home-projects .project-body p { font-size: 16px; line-height: 1.8; min-height: 0; }
  .home-projects .project-body span, .home-projects .project-body b { font-size: 11px; line-height: 1.6; }
  .home-milestones { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-milestone { position: relative; margin-left: 5px; border: 0; border-left: 1px solid #476176; padding: 0 0 30px 24px; }
  .home-milestone:last-child { padding-bottom: 0; }
  .home-milestone::before { content: ''; position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #b8d2e4; }
  .home-milestone h3 { font-size: 23px; margin: 10px 0 12px; }
  .home-space, .home-team { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-photo-grid { gap: 10px; }
  .home-photo-card, .home-team-photo img { border-radius: 12px; }
  .home-person-row { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .home-person-row dt { font-size: 13px; }
  .home-person-row li { font-size: 18px; }
  .home-page .home-join { gap: 24px; }
  .home-join-actions { width: 100%; }
  .home-page .home-join .btn { width: 100%; justify-content: center; border-radius: 12px; min-height: 50px; font-size: 16px; margin: 0; }
  .home-join-actions .home-email, .home-join-directions { font-size: 14px; }
  .detail-page { --detail-inset: clamp(20px, 5vw, 40px); line-height: 1.8; }
  .detail-page .detail-main, .psi-motion-site .subpage { padding-top: 58px; }
  .detail-page .detail-hero, .team-page .team-hero { min-height: 320px; height: auto; }
  .detail-page .detail-hero > img { object-position: 60% center; }
  .detail-page .detail-hero-shade, .team-page .team-hero .detail-hero-shade { background: linear-gradient(0deg, #06101b 0%, #06101bc9 40%, #06101b26 100%); }
  .detail-page .detail-hero-content { min-height: 320px; height: auto; padding-bottom: 28px; }
  .detail-page .detail-breadcrumb { min-height: 44px; padding-top: 17px; font-size: 13px; }
  .detail-page .detail-hero .detail-kicker { font-size: 10px; letter-spacing: .12em; margin-bottom: 12px; }
  .detail-page .detail-hero h1, html[lang=en] .detail-page .detail-hero h1 { font-size: clamp(32px, 8vw, 52px); line-height: 1.12; margin-bottom: 16px; }
  .detail-page .detail-hero-content > p:last-child { max-width: 560px; font-size: 16px; line-height: 1.65; }
  .detail-page .detail-block { padding-block: 44px; }
  .detail-page h2 { font-size: clamp(28px, 6vw, 38px); line-height: 1.25; margin-bottom: 20px; }
  .detail-page h3 { font-size: 23px; line-height: 1.4; }
  .detail-intro, .detail-milestone, .detail-apply-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-intro > div:last-child { padding-top: 0; }
  .detail-intro > div:last-child p, .history-intro p { font-size: 16px; line-height: 1.85; margin-bottom: 20px; }
  .detail-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .detail-heading > p, .detail-muted, .detail-image-note { font-size: 13px; line-height: 1.75; }
  .detail-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .detail-process article > span { margin-bottom: 15px; font-size: 12px; }
  .detail-process article > p { font-size: 15px; line-height: 1.8; }
  .detail-milestone { padding-block: 26px; }
  .detail-milestone time { font-size: 28px; }
  .detail-photo-grid, .detail-related-grid, .journal-grid, .detail-directions { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .detail-photo img, .journal-card > img, .detail-related, .about-story-card { border-radius: 14px; overflow: hidden; }
  .journal-card > div { padding-top: 18px; }
  .journal-card p { font-size: 16px; line-height: 1.8; }
  .journal-card span, .detail-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .detail-related { grid-template-columns: minmax(0, 1fr); background: #0b1c2b; }
  .detail-related > div { padding: 24px; }
  .detail-related > img { min-height: 0; aspect-ratio: 16 / 10; }
  .detail-related p { font-size: 16px; }
  .detail-cta, .detail-join-foot { flex-direction: column; align-items: stretch; gap: 24px; padding-block: 36px; }
  .detail-button { min-height: 48px; border-radius: 10px; font-size: 15px !important; padding: 13px 20px; }
  .detail-directions p { min-height: 0; font-size: 16px; }
  .detail-directions article > span { margin-bottom: 14px; }
  .detail-form { padding: 24px 20px; border: 1px solid #ffffff17; border-radius: 16px; }
  .detail-form label { font-size: 15px; margin-bottom: 22px; }
  .detail-form input, .detail-form select, .detail-form textarea { font-size: 16px; border-radius: 9px; min-height: 50px; }
  .detail-form .detail-button { width: 100%; }
  .detail-form-status, .detail-result p, .detail-faq details > p { font-size: 15px; line-height: 1.85; }
  .detail-faq summary { display: list-item; padding-block: 5px; min-height: 44px; font-size: 17px; }
  .detail-result pre { font-size: 14px; padding: 18px; }
  .history-list > li { position: relative; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-left: 5px; border-top: 0; border-left: 1px solid #365166; padding: 0 0 36px 24px; }
  .history-list > li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #b8d2e4; }
  .history-list time { font-size: 22px; }
  .history-list h2 { font-size: 27px; margin-bottom: 14px; }
  .history-list p { font-size: 16px; line-height: 1.85; }
  .team-page .team-intro { padding-bottom: 24px; }
  .team-page .team-people { padding-top: 20px; }
  .team-page .team-roster-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px; }
  .team-page .team-role-index { font-size: 12px; margin-bottom: 12px; }
  .team-page .team-role h3 { font-size: 22px; }
  .team-page .team-role-en { font-size: 11px; }
  .team-page .team-names { gap: 12px; }
  .team-page .team-names li { font-size: clamp(25px, 6vw, 36px); }
  .team-page .team-photo figcaption { flex-direction: column; align-items: flex-start; font-size: 13px; gap: 8px; }
  .space-photo-grid, .psi-motion-site .archive-grid-uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .space-photo-grid .detail-photo, .archive-thumb { border: 1px solid #ffffff14; border-radius: 12px; overflow: hidden; }
  .space-photo-grid .detail-photo img, .archive-thumb img { aspect-ratio: 4 / 3; }
  .psi-motion-site .archive-thumb span { font-size: 10px; letter-spacing: .02em; left: 7px; bottom: 7px; padding: 4px 6px; }
  .psi-mobile-gallery-hidden { display: none !important; }
  .psi-mobile-gallery-controls { display: flex; justify-content: center; padding: 22px 0 0; }
  .psi-mobile-gallery-more { width: 100%; min-height: 48px; border: 1px solid #ffffff35; border-radius: 12px; background: #ffffff06; color: #e8f0f6; font: inherit; font-size: 14px; cursor: pointer; }
  .psi-motion-site .gallery-page { padding-top: 82px; }
  .psi-motion-site .gallery-page-head { display: block; padding-block: 20px 24px; }
  .psi-motion-site .gallery-page-head h1 { font-size: 36px; line-height: 1.15; margin-top: 12px; }
  .psi-motion-site .gallery-page-head p { font-size: 16px; line-height: 1.8; }
  .psi-motion-site .archive-grid-uniform { padding-top: 24px; padding-bottom: 0; }
  .psi-motion-site .gallery-page > .psi-mobile-gallery-controls { margin-inline: 20px; padding-bottom: 44px; }
  .space-page .personnel-entry { margin-top: 0; padding-block: 22px; background: transparent; }
  .personnel-entry .personnel-entry__panel { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; background: #10283b; border: 1px solid #ffffff20; border-radius: 16px; }
  .personnel-entry .personnel-entry__copy { min-width: 0; }
  .personnel-entry .personnel-entry__kicker { font-size: 10px; margin-bottom: 8px; }
  .personnel-entry .personnel-entry__copy h2 { font-size: 23px; margin-bottom: 8px; }
  .personnel-entry .personnel-entry__description { font-size: 14px; line-height: 1.7; }
  .personnel-entry .personnel-entry__actions { width: 100%; }
  .personnel-entry .personnel-entry__button { width: 100%; min-height: 48px; border-radius: 10px; font-size: 15px !important; }
  .personnel-entry .personnel-entry__note { font-size: 12px; }
  .detail-lightbox { width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; padding: max(12px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)); border-radius: 0; }
  .detail-lightbox-head p { font-size: 14px; overflow-wrap: anywhere; }
  .detail-lightbox-head button { width: 48px; height: 48px; flex: none; }
  .detail-lightbox-stage { position: relative; display: flex; padding-block: 12px 72px; }
  .detail-lightbox-stage img { width: 100%; height: 100%; }
  .detail-lightbox-stage [data-prev-image], .detail-lightbox-stage [data-next-image] { position: absolute; bottom: 10px; min-width: 52px; min-height: 48px; border: 1px solid #ffffff35; border-radius: 12px; }
  .detail-lightbox-stage [data-prev-image] { left: calc(50% - 62px); }
  .detail-lightbox-stage [data-next-image] { right: calc(50% - 62px); }
  .detail-lightbox > a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  .psi-motion-site .lightbox { padding: max(70px, env(safe-area-inset-top)) 14px 100px; }
  .psi-motion-site .lightbox img { max-width: 100%; max-height: calc(100dvh - 170px); }
  .psi-motion-site .lightbox-close { width: 48px; height: 48px; top: max(14px, env(safe-area-inset-top)); right: 14px; }
  .psi-motion-site .lightbox-prev, .psi-motion-site .lightbox-next { top: auto; bottom: max(35px, env(safe-area-inset-bottom)); transform: none; width: 52px; height: 48px; border-radius: 12px; }
  .psi-motion-site .lightbox-prev { left: calc(50% - 62px); }
  .psi-motion-site .lightbox-next { right: calc(50% - 62px); }
  .psi-motion-site .lightbox-counter { bottom: 13px; }
  .psi-motion-site .subpage-hero { min-height: 300px; }
  .psi-motion-site .subpage-hero-copy { padding: 0 20px 30px; }
  .psi-motion-site .subpage-hero h1 { font-size: 40px; line-height: 1.15; }
  .psi-motion-site .about-page-intro, .psi-motion-site .about-story-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .psi-motion-site .about-page-intro p, .psi-motion-site .about-story-card p { font-size: 16px; line-height: 1.85; }
  .psi-motion-site .about-story-card div { padding: 22px; }
  .psi-motion-site .about-story-card img { height: auto; aspect-ratio: 16 / 10; }
  .psi-motion-site footer { padding: 28px 20px max(28px, env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 14px; font-size: 10px; line-height: 1.8; letter-spacing: .03em; }
  .psi-motion-site footer > span { font-size: 10px; }
  .psi-motion-site footer > div { width: 100%; margin-left: 0; gap: 22px; flex-wrap: wrap; align-items: center; }
  .psi-motion-site footer a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }

  /* Workbench: brand + actions, then a touch-friendly horizontal module list. */
  .workspace { display: block; --aside: 0px; }
  .workspace .sidebar { position: sticky; top: 0; z-index: 30; height: auto; background: #080808; border-right: 0; border-bottom: 1px solid #ffffff28; }
  .psi-mobile-workbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: env(safe-area-inset-top) 16px 0; border-bottom: 1px solid #ffffff15; }
  .workspace .sidebar .brand { display: flex; align-items: center; min-height: 52px; padding: 0; margin: 0; border: 0; }
  .workspace .sidebar .brand img { width: 76px; height: 34px; }
  .workspace .sidebar .brand > span { display: none; }
  .psi-mobile-workbar .top-links { gap: 5px; font-size: 12px; min-width: 0; }
  .psi-mobile-workbar .top-links .service-tag, .psi-mobile-workbar .top-links .site-link { display: none; }
  .psi-mobile-workbar .language { padding: 8px 4px; min-height: 44px; border: 0; font-size: 11px; }
  .psi-mobile-workbar .mobile-profile { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 54px; padding: 6px 8px; border: 1px solid #ffffff28; border-radius: 9px; font-size: 12px; }
  .psi-mobile-workbar .mobile-logout { display: inline-flex; min-width: 44px; min-height: 44px; }
  .workspace .side-nav { display: flex; flex-direction: row; overflow-x: auto; gap: 0; padding: 0 8px; scrollbar-width: thin; overscroll-behavior-inline: contain; }
  .workspace .side-nav a { flex: 0 0 auto; flex-direction: row; min-width: 94px; min-height: 48px; padding: 10px 12px; gap: 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 13px; white-space: nowrap; }
  .workspace .side-nav a + a { border-left: 0; }
  .workspace .side-nav a.active { border-bottom-color: #e8153d; background: #ffffff08; }
  .workspace .side-nav a::after { display: none; }
  .workspace .side-nav svg { width: 18px; height: 18px; }
  .workspace .side-account, .workspace .work-main > .topbar { display: none; }
  .workspace .work-body { padding: 26px 20px calc(56px + var(--psi-savebar-reserve, 0px)); }
  .workspace .page-heading { gap: 18px; margin-bottom: 24px; padding-bottom: 0; }
  .workspace .page-heading h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.02em; }
  .workspace .page-heading p, .workspace .notice { font-size: 14px; line-height: 1.75; }
  .workspace .heading-actions { width: 100%; gap: 8px; justify-content: flex-start; }
  .workspace .heading-actions .button { font-size: 13px; padding: 10px 14px; border-radius: 9px; }
  .workspace .accounts-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .workspace .account-list { display: none; }
  .workspace .mobile-account-select { display: block; margin-bottom: 24px; }
  .workspace .account-editor { padding: 22px 18px; border-radius: 14px; background: #0b0b0b; }
  .workspace .editor-heading h2 { font-size: 24px; }
  .workspace .form-row { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
  .workspace :is(.form-row > label, .field > label, .permission-row strong, .plain-checkbox) { font-size: 14px; line-height: 1.65; }
  .workspace :is(.permission-row small, .permissions-title p, .field small, .form-actions .hint, .photo-caption, .dialog-note, .form-error) { font-size: 13px; line-height: 1.75; }
  .workspace :is(.input, input[type=search], select, textarea, .group-editor-row .input) { min-height: 48px; font-size: 16px; border-radius: 9px; padding: 11px 13px; scroll-margin-block: 140px; }
  .workspace .search-wrap input { padding-left: 40px; }
  .workspace :is(.input, input[type=search], textarea)::placeholder { font-size: 14px; }
  .workspace .password-row { flex-wrap: wrap; }
  .workspace .password-row .masked { min-width: 120px; border-radius: 9px; }
  .workspace .password-row .button { min-height: 46px; font-size: 13px; border-radius: 9px; }
  .workspace .permissions-title h3 { font-size: 17px; }
  .workspace .permission-row { gap: 14px; min-height: 82px; padding: 14px; }
  .workspace .form-actions .button { min-height: 46px; font-size: 13px; border-radius: 9px; }
  .workspace .filter-tabs { overflow-x: auto; width: 100%; flex-wrap: nowrap; justify-content: flex-start; }
  .workspace .filter-tabs button { flex: 0 0 auto; min-height: 46px; padding: 10px 13px; font-size: 13px; }
  .workspace .filter-tabs small { font-size: 11px; }
  .workspace .filters .search-wrap { width: 100%; }
  .workspace .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .workspace .photo-thumb { border-radius: 12px; }
  .workspace .photo-card-heading strong { font-size: 13px; line-height: 1.6; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .workspace .photo-card-heading small, .workspace .tag { font-size: 11px; }
  .workspace .photo-card-controls { flex-wrap: wrap; }
  .workspace .photo-card-controls .plain-checkbox { font-size: 13px; }
  .workspace .photo-card-controls > div { margin-left: auto; }
  .workspace .icon-button { min-width: 44px; min-height: 44px; }
  .workspace .folder-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .workspace .folder-card { border-radius: 12px; padding: 12px; }
  .workspace .folder-card .folder-open { font-size: 15px; }
  .workspace .drive-spaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 10px; overflow: hidden; }
  .workspace .drive-space { padding: 12px 8px; font-size: 14px; min-height: 50px; }
  .workspace .drive-space-heading h2 { font-size: 19px; }
  .workspace .drive-space-heading p, .workspace .file-meta, .workspace .drive-breadcrumb button { font-size: 13px; line-height: 1.75; }
  .workspace .file-row.head { display: none; }
  .workspace .file-row:not(.head) { grid-template-columns: minmax(0, 1fr) 88px; gap: 5px 12px; padding: 16px 12px; }
  .workspace .file-name { grid-column: 1; grid-row: 1; font-size: 15px; min-width: 0; }
  .workspace .file-name > span { white-space: normal; overflow-wrap: anywhere; }
  .workspace .file-row:not(.head) > .file-meta:not(.file-date) { grid-column: 1; grid-row: 2; margin-left: 29px; }
  .workspace .file-date { display: none; }
  .workspace .file-actions { grid-column: 2; grid-row: 1 / span 2; max-width: 88px; align-self: center; flex-wrap: nowrap; }
  .workspace .member-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .workspace .member-card { padding: 22px 18px; border-radius: 14px; background: #0b0b0b; }
  .workspace .team-group-heading h2 { font-size: 20px; }
  .workspace .member-info h3 { font-size: 17px; }
  .workspace .member-info p, .workspace .member-bio { font-size: 14px; line-height: 1.8; }
  .workspace .empty p { font-size: 14px; }
  .workspace .empty h3 { font-size: 19px; }
  #work-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  #work-dialog .dialog-head { padding: 14px 18px; }
  #work-dialog .dialog-head h2 { font-size: 20px; }
  #work-dialog .dialog-content { padding: 22px 18px; }
  #work-dialog :is(.dialog-note, .form-error, .photo-caption, .field small) { font-size: 14px; line-height: 1.8; }
  #work-dialog :is(.field > label, .plain-checkbox) { font-size: 15px; }
  #work-dialog :is(input, select, textarea) { font-size: 16px; min-height: 48px; border-radius: 9px; scroll-margin-block: 80px; }
  #work-dialog .field-grid { grid-template-columns: minmax(0, 1fr); }
  #work-dialog .form-actions .button { min-height: 46px; font-size: 14px; border-radius: 9px; }
  .psi-mobile-savebar { position: fixed; z-index: 55; bottom: var(--psi-keyboard-inset, 0px); left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: #101010f7; border-top: 1px solid #ffffff30; box-shadow: 0 -8px 30px #0004; }
  .psi-mobile-savebar[hidden] { display: none; }
  .psi-mobile-savebar__status { flex: 1; min-width: 0; font-size: 13px; line-height: 1.55; color: #b7b7b2; }
  .psi-mobile-savebar__button { min-height: 48px; min-width: 108px; padding: 12px 18px; border: 1px solid #e8153d; border-radius: 10px; background: #e8153d; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
  .psi-mobile-savebar__button:disabled { background: #222; border-color: #ffffff25; color: #92928e; cursor: default; }
  body.psi-mobile-has-savebar { --psi-savebar-reserve: 90px; }
  #work-toast { left: 50%; bottom: calc(18px + var(--psi-savebar-reserve, 0px) + var(--psi-keyboard-inset, 0px)); width: max-content; max-width: calc(100vw - 32px); font-size: 14px; border-radius: 10px; }
  #transfer-panel { right: 16px; bottom: calc(16px + var(--psi-savebar-reserve, 0px) + var(--psi-keyboard-inset, 0px)); width: calc(100vw - 32px); max-width: 400px; border-radius: 14px; }
  #transfer-panel .transfer-title, #transfer-panel small { font-size: 13px; line-height: 1.7; }
  #site-editor, .site-editor { min-width: 0; }
  #site-editor :is(.field-grid, .editor-grid, .content-grid), .site-editor :is(.field-grid, .editor-grid, .content-grid) { grid-template-columns: minmax(0, 1fr); }

  #site-editor .site-editor-toolbar { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 14px; }
  #site-editor .site-editor-toolbar > label, #site-editor .site-editor-search { font-size: 14px; }
  #site-editor .site-editor-preview { width: 100%; justify-self: stretch; font-size: 14px; }
  #site-editor .site-editor-find { flex-direction: column; align-items: stretch; gap: 16px; }
  #site-editor .site-editor-search { max-width: none; }
  #site-editor .site-editor-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #site-editor .site-editor-types button { min-height: 46px; min-width: 0; padding-inline: 8px; font-size: 14px; }
  #site-editor .site-editor-field { padding: 20px 18px; border-radius: 14px; }
  #site-editor .site-editor-field > header { flex-wrap: wrap; gap: 8px; }
  #site-editor .site-editor-field > header label { font-size: 16px; }
  #site-editor .site-editor-field > header span, #site-editor .site-editor-count { font-size: 12px; }
  #site-editor .site-editor-field textarea { min-height: 110px; font-size: 16px; border-radius: 9px; }
  #site-editor .site-editor-image-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #site-editor .site-editor-image-options, #site-editor .site-editor-image-options > label { width: 100%; }
  #site-editor .site-editor-image-options > label:not(.button) { font-size: 14px; }
  #site-editor .site-editor-image-options small, #site-editor .site-editor-intro { font-size: 14px; line-height: 1.8; }
  #site-editor .site-editor-upload { width: 100%; min-height: 48px; font-size: 14px; border-radius: 9px; }
  #site-editor .site-editor-savebar { position: static; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; border-radius: 14px; box-shadow: none; }
  #site-editor .site-editor-savebar .button { min-height: 48px; font-size: 14px; border-radius: 9px; }
  #site-editor .site-editor-savebar strong { font-size: 14px; }

  /* Access terminal retains its animation; the idle form becomes a short flow. */
  .app { overflow: visible; }
  .app > .topbar { min-height: 56px; height: auto; padding: max(8px, env(safe-area-inset-top)) 20px 8px; gap: 12px; }
  .app > .topbar .brand { gap: 10px; padding: 0; }
  .app > .topbar .brand img { width: 44px; }
  .app > .topbar .brand-name { font-size: 8px; letter-spacing: .04em; }
  .app > .topbar .brand-name b { font-size: 9px; letter-spacing: .08em; }
  .app > .topbar .brand-rule, .app .terminal-label, .app .top-meta > i { display: none; }
  .app .top-meta { gap: 10px; font-size: 12px; }
  .app .top-meta :is(.language, .back) { min-height: 44px; min-width: 36px; }
  .app .stage { min-height: 600px; height: calc(100svh - 121px); }
  .app .stage-label, .app .stage-coordinate { font-size: 9px; top: 20px; }
  .app .stage-label { left: 20px; }
  .app .stage-coordinate { right: 20px; }
  .app .identity-card { left: 50%; top: 50%; width: min(440px, calc(100% - 40px)); transform: translate(-50%, -50%); padding: 20px; }
  .app .identity-caption { display: none; }
  .app .permission-list li { font-size: 13px; padding-block: 10px; letter-spacing: .02em; }
  .app .permission-list b { font-size: 10px; letter-spacing: 0; white-space: normal; }
  .app .permission-heading, .app .card-heading { font-size: 10px; line-height: 1.6; letter-spacing: .05em; }
  .app .card-foot { font-size: 9px; line-height: 1.6; letter-spacing: 0; }
  .app .id-role { font-size: 12px; }
  .app .idle-copy p, .app .error-copy p { font-size: 15px; line-height: 1.8; letter-spacing: .02em; }
  .app .primary { font-size: 15px; min-height: 48px; }
  .app .start-sub { font-size: 12px; letter-spacing: .02em; }
  .app .footer { padding-inline: 20px; min-height: 64px; gap: 12px; }
  .app .phase-status { font-size: 11px; letter-spacing: .02em; min-width: 0; }
  .app .phase-bars { display: none; }
  .app .skip, .app .auth-switch { font-size: 12px; min-height: 44px; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .stage { --psi-login-offset: 0px; min-height: calc(var(--psi-visual-height, 100svh) - 121px); height: auto; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .idle-copy { width: calc(100% - 40px); max-width: 420px; margin-top: 148px; padding-bottom: 30px; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .idle-copy h1 { font-size: 28px; margin: 10px 0; letter-spacing: .08em; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .idle-copy > p { max-width: 100%; font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .psi-line-logo.scene-idle { top: 88px !important; width: 132px !important; margin-top: 0; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .fallback-logo { top: 88px; width: 132px; }
  html[data-psi-inline-auth] [data-psi-form] { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html[data-psi-inline-auth] .psi-field-label { font-size: 13px; letter-spacing: .02em; }
  html[data-psi-inline-auth] .psi-field { min-height: 52px; font-size: 16px; border-radius: 10px; scroll-margin-block: 80px; }
  html[data-psi-inline-auth] .psi-field::placeholder { font-size: 14px; }
  html[data-psi-inline-auth] .psi-password-toggle { min-width: 48px; border-radius: 0 10px 10px 0; }
  html[data-psi-inline-auth] .psi-login { min-height: 50px; border-radius: 10px; font-size: 15px; padding: 13px 18px; letter-spacing: .05em; }
  html[data-psi-inline-auth] .psi-login::before { border-radius: 10px 0 0 10px; left: 0; top: 0; bottom: 0; }
  html[data-psi-inline-auth] .psi-feedback { font-size: 14px; line-height: 1.75; }
  html[data-psi-inline-auth] .idle-copy .start-sub { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 370px) {
  .psi-mobile-workbar { padding-inline: 12px; gap: 4px; }
  .psi-mobile-workbar .brand img { width: 64px; }
  .psi-mobile-workbar .top-links { gap: 2px; }
  .psi-mobile-workbar .mobile-profile { min-width: 48px; padding-inline: 6px; font-size: 0; }
  .psi-mobile-workbar .mobile-profile::after { content: '账号'; font-size: 12px; }
  html[lang=en] .psi-mobile-workbar .mobile-profile::after { content: 'Account'; }
  .workspace .work-body { padding-inline: 16px; }
  .workspace .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-page .detail-process { grid-template-columns: minmax(0, 1fr); }
  .app > .topbar { padding-inline: 16px; }
  .app .top-meta .back span { display: none; }
  .app .stage-coordinate { display: none; }
}
@media (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
  .home-page .hero.hero-a { min-height: 380px; }
  .home-page .hero.hero-a .hero-a-content { top: 78px; }
  .detail-page .detail-hero, .team-page .team-hero { min-height: 290px; height: auto; }
  .detail-page .detail-hero-content { min-height: 290px; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .psi-line-logo.scene-idle { width: 100px !important; top: 65px !important; }
  html[data-psi-inline-auth]:is([data-auth-state=login], [data-auth-state=confirming]) .idle-copy { margin-top: 120px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .psi-motion-site [data-psi-reveal], .psi-motion-site.psi-motion-ready [data-psi-reveal].psi-reveal-pending { opacity: 1; translate: none; transition: none; }
  .psi-motion-site *, .psi-motion-site *::before, .psi-motion-site *::after { scroll-behavior: auto !important; }
  .psi-mobile-savebar, .psi-mobile-gallery-more { animation: none; transition: none; }
}

/* 7.0.23: phone Hero follows the reference's full-width media placement.
   Keep the existing PSI palette; only the mobile home layout changes. */
@media (max-width: 900px) {
  .home-page .hero.hero-a {
    --hero-nav-height: 58px;
    height: calc(58px + 92.5vw);
    min-height: 0;
    max-height: none;
  }
  .home-page .hero.hero-a .hero-a-content {
    top: calc(58px + clamp(6px, 1.5vw, 12px));
    bottom: auto;
    left: 20px;
    right: 20px;
  }
  .home-page .hero.hero-a #hero-title {
    font-size: clamp(29px, 8.7vw, 48px);
    line-height: 1.2;
    white-space: nowrap;
  }
  .home-page .hero.hero-a .hero-a-subtitle,
  .home-page .hero.hero-a .hero-a-button { display: none; }
  .home-page .hero.hero-a::after { height: 16%; }
  .home-page .hero.hero-a .hero-overlay {
    background: linear-gradient(0deg, #040b133d, transparent 38%);
  }
  .home-page .hero.hero-a .hero-left-shade {
    background: linear-gradient(180deg, #02080f80 0%, #02080f38 25%, transparent 52%);
  }
  .home-page .nav .nav-explore { gap: 7px; white-space: nowrap; }
}
@media (max-width: 370px) {
  .home-page .nav .logo { width: 82px; }
  .home-page .nav .nav-explore { padding-inline: 12px; font-size: 13px; }
  .home-page .nav .nav-explore svg { display: none; }
}
@media (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
  .home-page .hero.hero-a { height: calc(58px + 65vw); min-height: 0; }
}

/* 7.0.24: a quiet title sequence with scene-led captions on the phone Hero. */
@media (max-width: 900px) {
  .home-page .hero.hero-a[data-hero-story] .hero-a-content {
    left: clamp(24px, 6vw, 48px);
    right: 24px;
    text-align: left;
    animation: none;
  }
  .home-page .hero.hero-a[data-hero-story] #hero-title,
  html[lang=en] .home-page .hero.hero-a[data-hero-story] #hero-title {
    font-size: clamp(36px, 10.8vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
    white-space: normal;
    text-wrap: balance;
    text-shadow: 0 2px 22px #02080f60;
  }
  .hero-story-lead, .hero-story-main { display: block; }
  .hero-story-lead {
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .015em;
    margin-bottom: 2px;
    animation: psi-hero-word-in 600ms 80ms cubic-bezier(.2,.7,.2,1) both;
  }
  .hero-story-main { animation: psi-hero-word-in 680ms 230ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-story-brand {
    margin: 10px 0 0;
    color: #e0e7ee;
    font-family: Inter, sans-serif;
    font-size: clamp(9px, 2.35vw, 11px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .16em;
    text-shadow: 0 1px 12px #02080f88;
    animation: psi-hero-word-in 600ms 420ms ease-out both;
  }
  .hero-story-caption {
    position: absolute;
    z-index: 3;
    left: clamp(24px, 6vw, 48px);
    right: 24px;
    bottom: clamp(24px, 6vw, 40px);
    margin: 0;
    padding-top: 14px;
    color: #f7f9fb;
    font-size: clamp(12px, 3.3vw, 15px);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .035em;
    text-shadow: 0 1px 14px #02080fbb;
    pointer-events: none;
  }
  .hero-story-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 1px;
    background: #f7f9fb88;
  }
  .home-page .hero.hero-a[data-hero-story] .hero-overlay {
    background: linear-gradient(0deg, #040b13a6, #040b1326 28%, transparent 50%);
  }
  .home-page .hero.hero-a[data-hero-story] .hero-left-shade {
    background: linear-gradient(180deg, #02080f94 0%, #02080f4d 30%, transparent 65%);
  }
  @keyframes psi-hero-word-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-story-lead, .hero-story-main, .hero-story-brand { animation: none; }
}

/* 7.0.26: exits belong to the primary header, without a second return row. */
@media (max-width: 900px) {
  .psi-mobile-returnbar { display: contents; }
  .psi-mobile-returnbar > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 60px;
    min-height: 44px;
    padding: 8px 7px;
    border-radius: 7px;
    color: #f4f7fa;
    font-family: Inter, 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none;
  }
  .psi-mobile-returnbar > a:active { background: #ffffff0c; }
  .psi-mobile-returnbar > a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .psi-mobile-returnbar > a > svg { display: block; flex: none; width: 18px; height: 18px; }
  .psi-mobile-returnbar [data-return-back] { order: -3; margin-right: auto; }
  .psi-mobile-returnbar [data-return-home] {
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
    width: 80px;
    padding: 0;
    font-size: 12px;
    line-height: 1.2;
  }
  .psi-mobile-returnbar .psi-mobile-home-mark { display: block; width: 80px; height: 40px; object-fit: contain; object-position: center; }
  .psi-mobile-returns[data-mobile-return-kind=public] .nav [data-return-home] { left: 50%; }
  .psi-mobile-returns[data-mobile-return-kind=public] .psi-mobile-home-mark { object-fit: contain; }
  .psi-mobile-returns .nav { gap: 8px; padding-inline: 12px; }
  .psi-mobile-returns .nav > .logo { display: none; }
  .psi-mobile-returns .nav .nav-login { min-width: 48px; padding-inline: 10px; margin: 0; font-size: 13px; }
  .psi-mobile-returns .nav .nav-login > svg { display: none; }
  .psi-mobile-returns .nav:has(.menu[aria-expanded=true]) > .psi-mobile-returnbar { display: none; }
  .psi-mobile-returns .nav:has(.menu[aria-expanded=true]) > .logo {
    display: flex;
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    width: 80px;
    height: 44px;
    margin: 0;
    padding: 0;
  }
  .psi-mobile-returns .nav:has(.menu[aria-expanded=true]) > .logo img { width: 80px; height: 40px; object-fit: contain; object-position: center; }
  .psi-mobile-returns .nav:has(.menu[aria-expanded=true]) .nav-login { margin-left: auto; }
  .psi-mobile-returns .detail-breadcrumb { display: none; }
  .psi-mobile-returns .app > .topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    flex-wrap: nowrap;
    min-height: 58px;
    padding: max(7px, env(safe-area-inset-top)) 12px 7px;
    gap: 8px;
  }
  .psi-mobile-returns .app > .topbar > .brand,
  .psi-mobile-returns .app > .topbar .top-meta a.back { display: none; }
  .psi-mobile-returns .app > .topbar > .top-meta { margin-left: auto; }
  .psi-mobile-returns .workspace .psi-mobile-workbar { position: relative; min-height: 58px; padding: max(7px, env(safe-area-inset-top)) 12px 7px; gap: 8px; }
  .psi-mobile-returns .app > .topbar [data-return-home],
  .psi-mobile-returns .workspace [data-return-home] { top: max(7px, env(safe-area-inset-top)); }
  .psi-mobile-returns .workspace .psi-mobile-workbar > .brand,
  .psi-mobile-returns .workspace .psi-mobile-workbar > .top-links,
  .psi-mobile-returns .workspace .side-nav > .site-link { display: none; }
  .psi-mobile-account-menu { position: relative; margin-left: auto; color: #f4f7fa; }
  .psi-mobile-account-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #ffffff28;
    border-radius: 8px;
    list-style: none;
    font-size: 13px;
    cursor: pointer;
  }
  .psi-mobile-account-menu > summary::-webkit-details-marker { display: none; }
  .psi-mobile-account-menu[open] > summary { background: #ffffff0c; }
  .psi-mobile-account-menu > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .psi-mobile-account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 220px;
    padding: 6px;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    background: #101010;
    box-shadow: 0 12px 30px #0008;
  }
  .workspace .psi-mobile-account-panel > :is(a, button) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    gap: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f4f7fa;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
  }
  .workspace .psi-mobile-account-panel > :is(a, button):hover { background: #ffffff0c; }
  .workspace .psi-mobile-account-panel > :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .psi-mobile-returns .workspace .psi-mobile-account-panel .mobile-profile::after { content: none; }
  .workspace .psi-mobile-account-panel [data-action=logout]::after { content: '退出登录'; }
  html[lang=en] .workspace .psi-mobile-account-panel [data-action=logout]::after { content: 'Log out'; }
}
@media (max-width: 370px) {
  .psi-mobile-returns[data-mobile-return-kind=public] .nav { padding-inline: 6px; gap: 4px; }
  .psi-mobile-returns[data-mobile-return-kind=public] .nav [data-return-home],
  .psi-mobile-returns .nav:has(.menu[aria-expanded=true]) > .logo { width: 80px; min-width: 80px; }
  .psi-mobile-returns[data-mobile-return-kind=public] .psi-mobile-home-mark { width: 80px; height: 40px; }
  .psi-mobile-returns .nav .nav-login { padding-inline: 4px; font-size: 11px; }
}

/* 7.0.32: keep the mobile headings free of decorative indices and kickers. */
@media (max-width: 900px) {
  .home-page [data-home-block] .tiny,
  .history-page .detail-hero .detail-kicker,
  .detail-page:has(.overview-intro) .detail-hero .detail-kicker { display: none; }
  .home-page [data-home-block] .tiny + h2 { margin-top: 0; }
}

/* 7.0.33: use the existing reveal controller for a softer homepage rhythm. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.home-page.psi-motion-site { --psi-motion-enter: 520ms; --psi-motion-distance: 14px; }
  body.home-page.psi-motion-site [data-psi-reveal] {
    transition: opacity var(--psi-motion-enter) var(--psi-motion-ease),
      translate var(--psi-motion-enter) var(--psi-motion-ease), background-size 180ms linear;
    transition-delay: min(var(--psi-reveal-delay, 0ms), 90ms);
  }
  body.home-page.psi-motion-site [data-psi-reveal=media] { --psi-motion-enter: 640ms; }
  body.home-page.psi-motion-site .project[data-psi-reveal] > img {
    transform: scale(1);
    transition: transform 700ms var(--psi-motion-ease);
  }
  body.home-page.psi-motion-site.psi-motion-ready .project[data-psi-reveal].psi-reveal-pending > img { transform: scale(1.035); }
}

