/* Wide-screen layouts share the mobile Memory Space components and tokens. */
.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ds-text-primary);
  background: var(--ds-bg-depth);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.bottom-nav { right: auto; }
.app-shell { min-width: 0; }
.detail-grid dd { min-width: 0; overflow-wrap: anywhere; }
.auth-form input { min-width: 0; }

@media (min-width: 960px) {
  body { --desktop-header-height: 88px; --desktop-nav-width: 224px; }
  .app-header {
    position: sticky;
    top: 0;
    height: var(--desktop-header-height);
    max-width: none;
    padding: 24px 40px;
    border: 0;
    border-bottom: 1px solid var(--ds-border-subtle);
    background: var(--ds-surface);
    backdrop-filter: blur(26px);
    z-index: 40;
  }
  .header-actions { gap: 24px; }
  .feedback-link { font-size: 13px; }
  .app-shell {
    max-width: 1120px;
    padding: 40px 48px 64px;
    border: 0;
    min-height: calc(100svh - var(--desktop-header-height));
  }
  .has-profile .app-shell {
    width: calc(100% - var(--desktop-nav-width));
    max-width: none;
    margin-left: var(--desktop-nav-width);
  }
  .bottom-nav,
  body:has(.capture-home.active) .bottom-nav {
    top: var(--desktop-header-height);
    left: 0;
    bottom: 0;
    width: var(--desktop-nav-width);
    max-width: none;
    min-height: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 38px 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .bottom-nav::before {
    content: "我的记忆空间";
    margin: 0 12px 22px;
    color: var(--ds-text-muted);
    font-size: 11px;
    letter-spacing: .12em;
  }
  .bottom-nav button,
  .bottom-nav .capture-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: none;
    gap: 16px;
    height: 58px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--ds-radius-md);
    font-size: 0;
    font-weight: 400;
    transform: none;
    transition: background var(--ds-duration-ui), border-color var(--ds-duration-ui);
  }
  .bottom-nav button::after { content: attr(data-label); font-size: 14px; }
  .bottom-nav button > span,
  .bottom-nav .capture-nav > span {
    width: 24px;
    height: 24px;
    margin: 0;
    border: 0;
    background: none;
    color: inherit;
    box-shadow: none;
  }
  .bottom-nav button:hover { background: var(--ds-surface-glass); }
  .bottom-nav button.active {
    color: var(--ds-accent-memory-soft);
    background: var(--ds-surface-glass);
    border-color: var(--ds-border-strong);
  }
  .bottom-nav button.active:not(.capture-nav) > span { filter: none; }
  #product > .app-view { max-width: 840px; margin-inline: auto; }
  #product > .capture-home { max-width: 640px; }
  .capture-home-copy { padding-top: 12px; }
  .capture-home-copy h1 { font-size: 40px; }
  .capture-home-copy p { font-size: 16px; }
  #record-button.voice-orb { width: min(100%, 400px); margin-top: 0; }
  .memory-capture-controls { gap: 20px; }
  .memory-capture-controls button { max-width: 210px; }
  .capture-text-form.is-open { max-width: 580px; margin-inline: auto; }
  .capture-text-form textarea { min-height: 120px; }
  .capture-actions { grid-template-columns: 1fr auto auto; }
  .capture-actions > button:last-child { grid-column: auto; }
  .view-heading { margin-top: 0; }
  .view-heading h1 { font-size: 36px; }
  .view-heading p { font-size: 14px; }
  .search-orbit { padding: 20px 24px; gap: 16px; }
  .search-orbit textarea { font-size: 20px; }
  .memory-results { min-height: 180px; }
  .quick-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-inline: 0; }
  .quick-questions button { line-height: 1.8; }
  .timeline-header { grid-template-columns: 160px 1fr; min-height: 160px; }
  .timeline-date #timeline-day { font-size: 68px; }
  .timeline-recall { max-width: 420px; justify-self: end; }
  .timeline-recall p { font-size: 25px; }
  .timeline-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .memory-trail { max-width: 700px; margin-inline: auto; padding-top: 32px; }
  .memory-trail .memory-moment { margin-left: 84px; margin-right: 100px; }
  .memory-trail .memory-moment:nth-of-type(3n+2) { margin-left: 180px; margin-right: 50px; }
  .memory-trail .memory-moment:nth-of-type(3n) { margin-left: 72px; margin-right: 140px; }
  .memory-trail .moment-body h3 { font-size: 24px; }
  .memory-trail .moment-original { font-size: 14px; }
  .memory-trail .moment-time, .memory-trail .timeline-context { font-size: 12px; }
  .insight-constellation { margin-inline: auto; }
  .insight-section { padding-block: 30px; }
  .profile-space.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  .profile-hero, #identity-section, .profile-context { grid-column: 1 / -1; }
  .profile-hero { padding-top: 20px; padding-bottom: 38px; }
  .identity-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .identity-orbit .identity-card { padding: 24px 16px; }
  .identity-orbit .identity-card:nth-child(even) { margin-top: 0; }
  .profile-context { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .settings-card { min-width: 0; padding-top: 16px; }
  .settings-card p, .settings-card li { font-size: 13px; line-height: 1.8; }
  .memory-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: center;
    max-width: none;
    min-height: 620px;
    margin: 0;
    padding: 0;
  }
  .entry-copy { grid-column: 1; margin: 0 0 200px; }
  .entry-copy h1 { font-size: 48px; }
  .entry-space { top: 260px; right: 424px; }
  .auth-panel {
    grid-column: 2;
    padding: 32px 26px;
    margin: 0;
    border: 1px solid var(--ds-border-subtle);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-glass);
  }
  .onboarding { max-width: 620px; margin-inline: auto; }
  .onboarding h1 { font-size: 46px; }
  .capture-notice { top: 104px; }
}
