.home-shortcuts{display:none}

@media(max-width:767px){
  body:is(.mobile-home,.mobile-discover){
    --home-bg:var(--m3-bg);
    --home-nav:var(--m3-card);
    --home-accent:var(--m3-primary);
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    height:100vh;
    height:100dvh;
    overflow:hidden;
    background:var(--home-bg);
  }
  .home-chrome{
    z-index:5;
    padding-top:env(safe-area-inset-top);
    background:var(--home-bg);
  }
  .home-chrome .top{background:inherit}
  .home-chrome .top-inner{
    width:auto;
    margin-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));
    min-height:64px;
  }
  .home-chrome .brand{
    color:var(--home-accent);
    font-size:29px;
    font-weight:500;
    letter-spacing:-.025em;
  }
  .home-chrome .brand span,.home-chrome .history-clock{display:none}
  .home-chrome .history-star{display:block!important}
  .home-chrome .top-actions{gap:4px;margin-right:2px}
  .home-chrome .top-actions a{
    width:44px;
    height:44px;
    color:#f2e7e0;
  }
  .home-chrome .top-actions svg{width:24px;height:24px}
  .home-shortcuts{
    position:sticky;
    top:0;
    z-index:4;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    margin-inline:calc(-1 * var(--home-left-gutter)) calc(-1 * var(--home-right-gutter));
    padding-inline:calc(var(--home-left-gutter) + max(5px,env(safe-area-inset-left))) calc(var(--home-right-gutter) + max(5px,env(safe-area-inset-right)));
    padding-block:8px 10px;
    background:var(--home-bg);
  }
  .home-shortcuts a{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:var(--home-accent);
    font-size:15px;
    font-weight:570;
    white-space:nowrap;
  }
  .home-shortcuts svg,.home-bottom-nav svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .mobile-home main.home{
    --home-left-gutter:max(var(--gutter),env(safe-area-inset-left));
    --home-right-gutter:max(var(--gutter),env(safe-area-inset-right));
    width:100%;
    margin:0;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    padding:0 var(--home-right-gutter) 18px var(--home-left-gutter);
  }
  .mobile-home main.home:focus-visible{outline-offset:-2px}
  :is(.mobile-home,.mobile-discover) .home-bottom-nav{
    position:relative;
    inset:auto;
    padding:5px max(0px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left));
    background:var(--home-nav);
    border-top:1px solid #2c231e;
  }
  .home-bottom-nav a{
    min-height:56px;
    gap:3px;
    color:#dac8bd;
    font-size:13px;
    font-weight:530;
  }
  .home-bottom-nav svg{
    box-sizing:content-box;
    padding:6px 16px;
  }
  .home-bottom-nav .selected{color:#ffc4a2}
  .home-bottom-nav .selected svg{color:#ffe0cd;background:#603e25}
}

.home-highlights,.home-resume-empty{display:none}

@media(max-width:767px){
  .home-highlights,.home-resume-empty{display:block}
  .home-highlights .section-head{margin-top:5px}
  .home-highlight-track{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:92%;
    gap:10px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:2px 2px 6px;
    scrollbar-width:thin;
    scrollbar-color:#634631 transparent;
  }
  .home-highlight{
    position:relative;
    display:block;
    min-width:0;
    aspect-ratio:16/9;
    isolation:isolate;
    overflow:hidden;
    background:#2b231e;
    border-radius:10px;
    scroll-snap-align:start;
  }
  .home-highlight img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .home-highlight-copy{
    position:absolute;
    inset:auto 0 0;
    display:grid;
    gap:4px;
    padding:26px 12px 12px;
    background:linear-gradient(transparent,#160e0ce8);
  }
  .home-highlight-copy h3{font-size:15px;line-height:1.25}
  .home-highlight-copy span{font-size:11px;color:#f4d7c7}
  .home-highlight:focus-visible{outline-offset:-3px}
  .mobile-home .continue{margin-top:16px}
  .home-section-note{
    min-height:44px;
    padding:10px 12px;
    color:var(--muted);
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--panel);
    font-size:13px;
  }
  .home-resume-link{display:flex;align-items:center;justify-content:space-between}
}
.home-vip,.home-error{display:none}
@media(max-width:767px){
  .home-highlight{aspect-ratio:auto;display:grid;background:var(--m3-card)}
  .home-highlight img{position:static;aspect-ratio:16/9;height:auto}
  .home-highlight-copy{position:static;background:none;padding:9px 12px;min-width:0}
  .home-highlight-copy span{color:var(--m3-primary)}
  .home-highlight-copy h3{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-home .section-head h2{font-size:16px;font-weight:500}
  .home .resume{padding:12px;background:var(--m3-card);border:0;border-radius:16px;grid-template-columns:56px minmax(0,1fr) 32px;gap:12px}
  .home .resume img{height:74px}
  .home .resume strong{font-size:14px}
  .home .resume-play{border:0}
  .home-vip{display:grid;margin-top:16px;background:var(--m3-card);color:var(--m3-text)}
  .home-vip .m3-button{justify-self:start}
  .home-error{display:grid;min-height:calc(68svh - 80px)}
  .home-failed-content{display:none}
  body.mobile-discover{grid-template-rows:minmax(0,1fr) auto;padding-top:env(safe-area-inset-top)}
}

@media(max-width:767px){
  .home:has([data-page-loading]:not([hidden])) :is(.home-sections,.home-error){display:none}
  .home .m3-skeleton:first-of-type{aspect-ratio:16/9}
}
@media(max-width:767px){
  .home-highlight-art{display:block;min-width:0}
  .home-highlight-copy h3 a{display:block;overflow:hidden;text-overflow:ellipsis}
  .home-continue .home-resume-link .mobile-only{min-height:24px;align-items:center}
}
