/* Desktop preserved; mobile compatibility is a lower cascade layer. */
@layer legacy {
@media(min-width:761px) {
/* Existing page adaptations retained during incremental migration. */
@media (max-width:760px){
  .material-tabs-desktop{display:none!important}

  .page-shell{display:none}

  .focus-notice{z-index:120}
.focus-notice-card{width:min(calc(100vw - 28px),440px)!important;max-height:calc(100dvh - 36px);overflow:auto}
.focus-notice-list{max-height:42dvh;overflow:auto}

  .page,.feed-page,.archive-shell,.collection-shell,.profile-shell,.auth-shell{padding-bottom:12px!important}
.back-link,.back-home,.archive-back,.collection-home-link,.profile-back,.auth-back{display:none!important}

  .page{padding-top:14px!important}

.page .hero{margin-top:0}
.page .hero-main h1{font-size:27px}


  .hero-banner{min-height:270px}
.hero-title h1{font-size:44px}
.content-layout{padding-bottom:0!important}
.archive-sidebar{margin-top:0!important}
.archive-nav{padding-bottom:8px!important}
.archive-content{padding-bottom:18px!important}
.collection-hero{min-height:200px}
.collection-panel,.handwritten-panel{scroll-margin-top:15px}
.collection-grid,.handwritten-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.collection-top{bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px)!important}
.collection-dialog{width:calc(100% - 20px)!important;max-height:calc(100dvh - 30px)}

  .profile-shell{padding-bottom:0!important}
.profile-topbar{padding:0 2px}
.profile-top-actions{display:none}
.profile-tabs{overflow:auto;justify-content:flex-start}
.profile-tabs button{flex:0 0 auto}
.profile-side-column{display:none}
.profile-layout{padding-top:12px}
.profile-identity-card{margin-top:10px}
.auth-shell{min-height:auto!important;padding-top:30px!important}
.auth-panel{margin-bottom:0!important}

  .profile-install-card p{margin:12px 0;color:var(--dream-muted);font-size:12px;line-height:1.65}
.profile-install-hint{display:block!important}}


@media (max-width:800px) and (hover:hover) and (pointer:fine){
  .archive-nav{display:flex!important}

  .mobile-archive-picker-toggle,
  .mobile-archive-picker{display:none!important}}


/* Shared mobile masthead: align data/material/atlas pages with the collection guide. */
@media (max-width:760px){

  .collection-nav-bar{
    position:relative!important;
    top:auto!important;
    z-index:1!important;
    display:flex!important;
    min-height:78px!important;
    height:auto!important;
    align-items:center!important;
    padding:18px 18px 15px!important;
    border-bottom:1px solid rgba(216,206,196,.72)!important;
    background:var(--dream-bg)!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }


  .collection-top-links,
  .collection-home-link{
    display:none!important;
  }


  .page,.feed-page,.archive-shell,.collection-shell{
    padding-top:0!important;
  }


  }


/* Unified mobile page mastheads: same image panel, same title rhythm, different labels only. */
@media (max-width:760px){
  .collection-shell,
  .feed-page,
  .archive-shell,
  .page{
    width:min(100% - 16px, 1480px)!important;
  }


  .collection-hero,
  .feed-page .hero-banner,
  .page .hero-main,
  .archive-sidebar-head{
    position:relative;
    display:flex;
    min-height:190px;
    height:190px;
    overflow:hidden;
    flex-direction:column;
    justify-content:flex-end;
    margin:10px 0 0;
    padding:24px 18px 20px;
    border:0;
    border-radius:0;
    color:var(--dream-paper);
    background:
      linear-gradient(180deg,rgba(25,18,16,.10),rgba(25,18,16,.88)),
      var(--hero-home-image,var(--latest-data-banner,var(--archive-sidebar-image,none))) center/cover no-repeat,
      #2b211e;
    box-shadow:none;
  }


  .collection-hero-art,
  .feed-page .hero-art{
    position:absolute;
    inset:0;
    display:block;
    min-height:0;
    background:var(--latest-data-banner,none) center/cover no-repeat;
    opacity:.88;
  }


  .collection-hero-art img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }


  .collection-hero::before,
  .feed-page .hero-banner::before,
  .page .hero-main::before,
  .archive-sidebar-head::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background:linear-gradient(180deg,rgba(25,18,16,.12),rgba(25,18,16,.90));
    pointer-events:none;
  }


  .collection-hero-copy,
  .feed-page .hero-title,
  .page .hero-main > *,
  .archive-sidebar-head > *{
    position:relative;
    z-index:1;
  }


  .collection-hero-copy{
    display:flex;
    min-height:auto;
    flex-direction:column;
    justify-content:flex-end;
    padding:0;
    background:transparent;
    color:inherit;
  }


  .feed-page .hero-title{
    inset:auto;
    max-width:100%;
  }


  .collection-kicker,
  .feed-page .hero-title p,
  .page .eyebrow,
  .archive-sidebar-head p{
    margin:0 0 8px;
    color:#ed6960;
    font-size:11px;
    font-weight:900;
    letter-spacing:.18em;
    line-height:1.2;
  }


  .collection-hero h1,
  .feed-page .hero-title h1,
  .page .hero-main h1,
  .archive-sidebar-head h1{
    max-width:100%;
    margin:0;
    color:var(--dream-paper);
    font-family:system-ui,sans-serif;
    font-size:28px;
    font-weight:800;
    line-height:1.12;
    letter-spacing:0;
    text-shadow:none;
  }


  .collection-description,
  .archive-sidebar-head span{
    margin:7px 0 0;
    color:rgba(255,253,252,.78);
    font-size:12px;
    line-height:1.45;
    letter-spacing:0;
  }


  .collection-stats,
  .feed-page .hero-label,
  .feed-page .hero-strip,
  .feed-page .hero-banner::after,
  .collection-hero-copy::after,
  .page .hero-main::after,
  .archive-sidebar-head::after{
    display:none;
  }


  .feed-page .top-shell,
  .archive-sidebar{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }


  


  .mobile-archive-picker-toggle{
    grid-template-columns:auto 1fr auto!important;
    justify-content:stretch!important;
  }


  .mobile-archive-picker-toggle strong{
    margin-left:8px!important;
  }


  .archive-layout{
    margin-top:0!important;
  }


  .archive-content,
  .feed-page .content-layout{
    padding-top:18px!important;
  }}


/* Second-pass mobile visual system: one type scale, one archive language, no routine horizontal scrolling. */
@media (max-width:760px){
  body,body *{font-family:system-ui,sans-serif !important}

  .mobile-material-tabs a:nth-child(3){grid-column:1/-1}

  .feed-page,.feed-page .top-shell,.feed-page .content-layout,.archive-body,.collection-body,.profile-page,.auth-page{background:transparent!important;color:var(--dream-ink)!important}

  .feed-page .hero-banner{min-height:220px;border-radius:14px}
.feed-page .hero-title h1{font-size:var(--mobile-size-xl)}

  .archive-nav{display:none!important}
.mobile-archive-picker-toggle{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;width:100%;min-height:44px;margin:10px 0 0;padding:0 13px;border:1px solid var(--dream-border);border-radius:12px;color:var(--dream-ink);background:rgba(255,255,255,.75);text-align:left}
.mobile-archive-picker-toggle span{color:var(--dream-muted);font-size:var(--mobile-size-xs)!important}
.mobile-archive-picker-toggle strong{margin-left:10px;font-size:var(--mobile-size-sm)!important}
.mobile-archive-picker-toggle i{font-style:normal;color:var(--dream-accent-ink)}
.mobile-archive-picker{position:fixed;z-index:110;right:12px;bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 10px);left:12px;display:grid;gap:12px;max-height:70dvh;overflow:auto;padding:15px;border:1px solid var(--dream-border);border-radius:16px;background:var(--dream-paper);box-shadow:var(--dream-shadow-sm)}
.mobile-archive-picker[hidden]{display:none!important}
.mobile-archive-picker-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--dream-border);padding-bottom:10px}
.mobile-archive-picker-head button{width:32px;height:32px;border:0;border-radius:50%;background:#f2e8df;font-size:20px}
.mobile-archive-picker-list{display:grid;gap:6px}
.mobile-archive-picker-list a{padding:12px;border-radius:9px;color:var(--dream-ink);background:#f7f1eb;font-size:var(--mobile-size-sm)!important;text-decoration:none}
.mobile-archive-picker-list a.is-active{color:#fff;background:var(--dream-accent-ink)}

  .collection-hero{display:block;min-height:0;border:0;box-shadow:none;background:transparent}
.collection-hero-art{display:none}
.collection-hero-copy{min-height:0;padding:14px 0 4px;background:transparent;color:var(--dream-ink)}
.collection-hero-copy::after{display:none}
.collection-hero h1{font-size:var(--mobile-size-lg);line-height:1.2}
.collection-description{margin:5px 0 0!important;color:var(--dream-muted)!important;font-size:var(--mobile-size-sm)!important}
.collection-stats{gap:6px!important;margin-top:10px!important}
.collection-stats span{padding:5px 8px!important;color:var(--dream-ink)!important;border-color:var(--dream-border)!important;background:transparent!important;font-size:var(--mobile-size-xs)!important}
.collection-filters{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px 0!important}
.collection-filter-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important;overflow:visible!important}
.collection-filter{min-height:36px!important;padding:0 6px!important;font-size:var(--mobile-size-xs)!important}
.collection-search{font-size:var(--mobile-size-xs)!important}
.collection-search input{min-height:38px!important;font-size:var(--mobile-size-sm)!important}
.collection-doll-subfilters{top:42px!important;left:0!important;min-width:150px!important;padding:8px!important;box-shadow:var(--dream-shadow-sm)!important}
.collection-doll-subfilters .collection-filter{min-height:34px!important}
.collection-card h3{font-family:system-ui,sans-serif !important;font-size:var(--mobile-size-sm)!important}
.collection-card-rule{width:24px!important;margin-top:7px!important}

  .profile-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible!important}
.profile-tabs button{width:100%!important;min-width:0!important;padding:0 3px!important;font-size:var(--mobile-size-sm)!important}
.profile-view[data-profile-view="reactions"],.profile-view[data-profile-view="collection"]{padding:18px 0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.profile-view[data-profile-view="cards"]{display:none!important}
.profile-kind-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0!important}
.profile-subtabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0!important}
.profile-subtabs button{width:100%;min-height:38px;font-size:var(--mobile-size-sm)!important}
.profile-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.profile-home-actions a,.profile-home-actions button{display:grid;gap:3px;min-height:72px;padding:12px;border:1px solid var(--dream-border);border-radius:10px;color:var(--dream-ink);background:var(--dream-paper);text-align:left;text-decoration:none}
.profile-home-actions span{color:var(--dream-accent-ink);font-size:var(--mobile-size-xs)!important;font-weight:900}
.profile-home-actions strong{font-size:var(--mobile-size-sm)!important}
.profile-home-actions b{color:var(--dream-muted);font-size:var(--mobile-size-xs)!important}}


/* Mobile harmony pass: quieter typography and bottom navigation. */
@media (max-width:760px){
  .focus-notice-card{font-size:12px!important}}


/* Final mobile type and component rhythm. */
@media (max-width:760px){

  .mobile-material-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    height:auto!important;
    min-height:0!important;
  }


  .mobile-material-tabs a:nth-child(3){
    grid-column:1/-1!important;
  }


  .focus-notice-card{
    width:min(calc(100vw - 28px),420px)!important;
    padding:20px 18px 16px!important;
    border-radius:var(--mobile-radius-sheet)!important;
    font-size:var(--mobile-size-body)!important;
  }

  .focus-notice-kicker{font-size:var(--mobile-size-label)!important}

  .focus-notice-title{font-size:var(--mobile-size-title)!important;line-height:1.3!important}

  .focus-notice-description,.focus-notice-copy small{font-size:var(--mobile-size-body)!important}

  .focus-notice-copy strong,.focus-notice-confirm{font-size:var(--mobile-size-strong)!important}

  .focus-notice-number,.focus-notice-arrow{font-size:18px!important}


  .page,.feed-page,.archive-shell,.collection-shell,.profile-shell,.auth-shell{
    padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 28px)!important;
  }


  .mobile-archive-picker{
    position:static!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    width:100%!important;
    margin:8px 0 0!important;
    height:fit-content!important;
    max-height:none!important;
    align-content:start!important;
    box-sizing:border-box!important;
  }


  .profile-topbar{
    align-items:center!important;
    gap:10px!important;
  }


  .profile-top-actions{
    display:flex!important;
    flex:0 0 auto!important;
    gap:6px!important;
  }


  .profile-header-edit > summary,
  .profile-logout{
    display:inline-flex!important;
    min-height:32px!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    border:1px solid var(--dream-border)!important;
    border-radius:999px!important;
    background:rgba(255,253,250,.76)!important;
    color:var(--dream-ink)!important;
    font-size:11px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }


  .profile-logout{
    cursor:pointer!important;
  }


  .profile-logout:disabled{
    opacity:.62!important;
  }


  .profile-back{
    display:none!important;
  }}


}

.focus-notice {
  align-items:center !important;
  justify-items:center !important;
  place-items:center !important;
}
@media(max-width:760px) {
/* Existing page adaptations retained during incremental migration. */
@media (max-width:760px){
  .material-tabs-desktop{display:none}

  .page-shell{display:none}

  .focus-notice{z-index:120}
.focus-notice-card{width:min(calc(100vw - 28px),440px);max-height:calc(100dvh - 36px);overflow:auto}
.focus-notice-list{max-height:42dvh;overflow:auto}

  .page,.feed-page,.archive-shell,.collection-shell,.profile-shell,.auth-shell{padding-bottom:12px}
.back-link,.back-home,.archive-back,.collection-home-link,.profile-back,.auth-back{display:none}

  .page{padding-top:14px}

.page .hero{margin-top:0}
.page .hero-main h1{font-size:27px}


  .hero-banner{min-height:270px}
.hero-title h1{font-size:44px}
.content-layout{padding-bottom:0}
.archive-sidebar{margin-top:0}
.archive-nav{padding-bottom:8px}
.archive-content{padding-bottom:18px}
.collection-hero{min-height:200px}
.collection-panel,.handwritten-panel{scroll-margin-top:15px}
.collection-grid,.handwritten-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.collection-top{bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px)}
.collection-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 30px)}

  .profile-shell{padding-bottom:0}
.profile-topbar{padding:0 2px}
.profile-top-actions{display:none}
.profile-tabs{overflow:auto;justify-content:flex-start}
.profile-tabs button{flex:0 0 auto}
.profile-side-column{display:none}
.profile-layout{padding-top:12px}
.profile-identity-card{margin-top:10px}
.auth-shell{min-height:auto;padding-top:30px}
.auth-panel{margin-bottom:0}

  .profile-install-card p{margin:12px 0;color:var(--dream-muted);font-size:12px;line-height:1.65}
.profile-install-hint{display:block}}


@media (max-width:800px) and (hover:hover) and (pointer:fine){
  .archive-nav{display:flex}

  .mobile-archive-picker-toggle,
  .mobile-archive-picker{display:none}}


/* Shared mobile masthead: align data/material/atlas pages with the collection guide. */
@media (max-width:760px){

  .collection-nav-bar{
    position:relative;
    top:auto;
    z-index:1;
    display:flex;
    min-height:78px;
    height:auto;
    align-items:center;
    padding:18px 18px 15px;
    border-bottom:1px solid rgba(216,206,196,.72);
    background:var(--dream-bg);
    box-shadow:none;
    backdrop-filter:none;
  }


  .collection-top-links,
  .collection-home-link{
    display:none;
  }


  .page,.feed-page,.archive-shell,.collection-shell{
    padding-top:0;
  }


  }


/* Unified mobile page mastheads: same image panel, same title rhythm, different labels only. */
@media (max-width:760px){
  .collection-shell,
  .feed-page,
  .archive-shell,
  .page{
    width:min(100% - 16px, 1480px);
  }


  .collection-hero,
  .feed-page .hero-banner,
  .page .hero-main,
  .archive-sidebar-head{
    position:relative;
    display:flex;
    min-height:190px;
    height:190px;
    overflow:hidden;
    flex-direction:column;
    justify-content:flex-end;
    margin:10px 0 0;
    padding:24px 18px 20px;
    border:0;
    border-radius:0;
    color:var(--dream-paper);
    background:
      linear-gradient(180deg,rgba(25,18,16,.10),rgba(25,18,16,.88)),
      var(--hero-home-image,var(--latest-data-banner,var(--archive-sidebar-image,none))) center/cover no-repeat,
      #2b211e;
    box-shadow:none;
  }


  .collection-hero-art,
  .feed-page .hero-art{
    position:absolute;
    inset:0;
    display:block;
    min-height:0;
    background:var(--latest-data-banner,none) center/cover no-repeat;
    opacity:.88;
  }


  .collection-hero-art img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }


  .collection-hero::before,
  .feed-page .hero-banner::before,
  .page .hero-main::before,
  .archive-sidebar-head::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background:linear-gradient(180deg,rgba(25,18,16,.12),rgba(25,18,16,.90));
    pointer-events:none;
  }


  .collection-hero-copy,
  .feed-page .hero-title,
  .page .hero-main > *,
  .archive-sidebar-head > *{
    position:relative;
    z-index:1;
  }


  .collection-hero-copy{
    display:flex;
    min-height:auto;
    flex-direction:column;
    justify-content:flex-end;
    padding:0;
    background:transparent;
    color:inherit;
  }


  .feed-page .hero-title{
    inset:auto;
    max-width:100%;
  }


  .collection-kicker,
  .feed-page .hero-title p,
  .page .eyebrow,
  .archive-sidebar-head p{
    margin:0 0 8px;
    color:#ed6960;
    font-size:11px;
    font-weight:900;
    letter-spacing:.18em;
    line-height:1.2;
  }


  .collection-hero h1,
  .feed-page .hero-title h1,
  .page .hero-main h1,
  .archive-sidebar-head h1{
    max-width:100%;
    margin:0;
    color:var(--dream-paper);
    font-family:system-ui,sans-serif;
    font-size:28px;
    font-weight:800;
    line-height:1.12;
    letter-spacing:0;
    text-shadow:none;
  }


  .collection-description,
  .archive-sidebar-head span{
    margin:7px 0 0;
    color:rgba(255,253,252,.78);
    font-size:12px;
    line-height:1.45;
    letter-spacing:0;
  }


  .collection-stats,
  .feed-page .hero-label,
  .feed-page .hero-strip,
  .feed-page .hero-banner::after,
  .collection-hero-copy::after,
  .page .hero-main::after,
  .archive-sidebar-head::after{
    display:none;
  }


  .feed-page .top-shell,
  .archive-sidebar{
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }


  


  .mobile-archive-picker-toggle{
    grid-template-columns:auto 1fr auto;
    justify-content:stretch;
  }


  .mobile-archive-picker-toggle strong{
    margin-left:8px;
  }


  .archive-layout{
    margin-top:0;
  }


  .archive-content,
  .feed-page .content-layout{
    padding-top:18px;
  }}


/* Second-pass mobile visual system: one type scale, one archive language, no routine horizontal scrolling. */
@media (max-width:760px){
  body,body *{font-family:system-ui,sans-serif}

  .mobile-material-tabs a:nth-child(3){grid-column:1/-1}

  .feed-page,.feed-page .top-shell,.feed-page .content-layout,.archive-body,.collection-body,.profile-page,.auth-page{background:transparent;color:var(--dream-ink)}

  .feed-page .hero-banner{min-height:220px;border-radius:14px}
.feed-page .hero-title h1{font-size:var(--mobile-size-xl)}

  .archive-nav{display:none}
.mobile-archive-picker-toggle{display:grid;grid-template-columns:auto 1fr auto;align-items:center;width:100%;min-height:44px;margin:10px 0 0;padding:0 13px;border:1px solid var(--dream-border);border-radius:12px;color:var(--dream-ink);background:rgba(255,255,255,.75);text-align:left}
.mobile-archive-picker-toggle span{color:var(--dream-muted);font-size:var(--mobile-size-xs)}
.mobile-archive-picker-toggle strong{margin-left:10px;font-size:var(--mobile-size-sm)}
.mobile-archive-picker-toggle i{font-style:normal;color:var(--dream-accent-ink)}
.mobile-archive-picker{position:fixed;z-index:110;right:12px;bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 10px);left:12px;display:grid;gap:12px;max-height:70dvh;overflow:auto;padding:15px;border:1px solid var(--dream-border);border-radius:16px;background:var(--dream-paper);box-shadow:var(--dream-shadow-sm)}
.mobile-archive-picker[hidden]{display:none}
.mobile-archive-picker-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--dream-border);padding-bottom:10px}
.mobile-archive-picker-head button{width:32px;height:32px;border:0;border-radius:50%;background:#f2e8df;font-size:20px}
.mobile-archive-picker-list{display:grid;gap:6px}
.mobile-archive-picker-list a{padding:12px;border-radius:9px;color:var(--dream-ink);background:#f7f1eb;font-size:var(--mobile-size-sm);text-decoration:none}
.mobile-archive-picker-list a.is-active{color:#fff;background:var(--dream-accent-ink)}

  .collection-hero{display:block;min-height:0;border:0;box-shadow:none;background:transparent}
.collection-hero-art{display:none}
.collection-hero-copy{min-height:0;padding:14px 0 4px;background:transparent;color:var(--dream-ink)}
.collection-hero-copy::after{display:none}
.collection-hero h1{font-size:var(--mobile-size-lg);line-height:1.2}
.collection-description{margin:5px 0 0;color:var(--dream-muted);font-size:var(--mobile-size-sm)}
.collection-stats{gap:6px;margin-top:10px}
.collection-stats span{padding:5px 8px;color:var(--dream-ink);border-color:var(--dream-border);background:transparent;font-size:var(--mobile-size-xs)}
.collection-filters{display:grid;grid-template-columns:1fr;gap:8px;padding:10px 0}
.collection-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible}
.collection-filter{min-height:36px;padding:0 6px;font-size:var(--mobile-size-xs)}
.collection-search{font-size:var(--mobile-size-xs)}
.collection-search input{min-height:38px;font-size:var(--mobile-size-sm)}
.collection-doll-subfilters{top:42px;left:0;min-width:150px;padding:8px;box-shadow:var(--dream-shadow-sm)}
.collection-doll-subfilters .collection-filter{min-height:34px}
.collection-card h3{font-family:system-ui,sans-serif;font-size:var(--mobile-size-sm)}
.collection-card-rule{width:24px;margin-top:7px}

  .profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.profile-tabs button{width:100%;min-width:0;padding:0 3px;font-size:var(--mobile-size-sm)}
.profile-view[data-profile-view="reactions"],.profile-view[data-profile-view="collection"]{padding:18px 0;border:0;box-shadow:none;background:transparent}
.profile-view[data-profile-view="cards"]{display:none}
.profile-kind-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
.profile-subtabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.profile-subtabs button{width:100%;min-height:38px;font-size:var(--mobile-size-sm)}
.profile-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.profile-home-actions a,.profile-home-actions button{display:grid;gap:3px;min-height:72px;padding:12px;border:1px solid var(--dream-border);border-radius:10px;color:var(--dream-ink);background:var(--dream-paper);text-align:left;text-decoration:none}
.profile-home-actions span{color:var(--dream-accent-ink);font-size:var(--mobile-size-xs);font-weight:900}
.profile-home-actions strong{font-size:var(--mobile-size-sm)}
.profile-home-actions b{color:var(--dream-muted);font-size:var(--mobile-size-xs)}}


/* Mobile harmony pass: quieter typography and bottom navigation. */
@media (max-width:760px){
  .focus-notice-card{font-size:12px}}


/* Final mobile type and component rhythm. */
@media (max-width:760px){

  .mobile-material-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
    height:auto;
    min-height:0;
  }


  .mobile-material-tabs a:nth-child(3){
    grid-column:1/-1;
  }


  .focus-notice-card{
    width:min(calc(100vw - 28px),420px);
    padding:20px 18px 16px;
    border-radius:var(--mobile-radius-sheet);
    font-size:var(--mobile-size-body);
  }

  .focus-notice-kicker{font-size:var(--mobile-size-label)}

  .focus-notice-title{font-size:var(--mobile-size-title);line-height:1.3}

  .focus-notice-description,.focus-notice-copy small{font-size:var(--mobile-size-body)}

  .focus-notice-copy strong,.focus-notice-confirm{font-size:var(--mobile-size-strong)}

  .focus-notice-number,.focus-notice-arrow{font-size:18px}


  .page,.feed-page,.archive-shell,.collection-shell,.profile-shell,.auth-shell{
    padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 28px);
  }


  .mobile-archive-picker{
    position:static;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    width:100%;
    margin:8px 0 0;
    height:fit-content;
    max-height:none;
    align-content:start;
    box-sizing:border-box;
  }


  .profile-topbar{
    align-items:center;
    gap:10px;
  }


  .profile-top-actions{
    display:flex;
    flex:0 0 auto;
    gap:6px;
  }


  .profile-header-edit > summary,
  .profile-logout{
    display:inline-flex;
    min-height:32px;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border:1px solid var(--dream-border);
    border-radius:999px;
    background:rgba(255,253,250,.76);
    color:var(--dream-ink);
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
  }


  .profile-logout{
    cursor:pointer;
  }


  .profile-logout:disabled{
    opacity:.62;
  }


  .profile-back{
    display:none;
  }}


}
}
