/* Mobile-first overrides (always applied). Primary layout width lives in styles.css `.app-container`. */
  .app-container {
    width: 100%;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .top-bar {
    max-width: none;
    padding: 16px 16px 0;
  }

  .top-bar__logout {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 12px;
  }

  .page-wrap {
    padding: 16px 16px calc(104px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }

  .card {
    border-radius: 20px;
    padding: 16px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    min-height: 72px;
    padding: 10px max(8px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
    gap: 4px;
    transform: none;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 28px rgba(83, 42, 97, 0.12);
  }

  .bottom-nav .nav-item {
    min-height: 52px;
    font-size: 12px;
    letter-spacing: -0.02em;
    padding: 8px 4px;
    flex: 1;
    text-align: center;
    line-height: 1.15;
  }

  .hero {
    min-height: auto;
    padding: 24px 16px 16px;
  }

  .version-badge {
    right: 10px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    top: auto;
    font-size: 11px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-cell {
    min-height: 52px;
    font-size: 13px;
  }

  .calendar-head .secondary-button {
    min-width: 48px;
  }

  .calendar-radio {
    font-size: 13px;
    min-height: 48px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .text-input {
    min-width: 0;
    min-height: 48px;
  }

  .submit-button {
    min-height: 48px;
  }

  .ai-head {
    align-items: flex-start;
  }

  .ai-input {
    min-height: 112px;
  }

  .ai-thread {
    max-height: 48vh;
  }

  .ai-message {
    max-width: 92%;
    padding: 16px;
  }

  .ai-loading {
    max-width: 92%;
    padding: 16px;
  }

  .ai-trace {
    width: 100%;
    padding: 16px;
  }

  .ai-trace__tools {
    grid-template-columns: 1fr;
  }

  .ai-trace__steps li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ai-structured__field strong {
    display: block;
    min-width: 0;
    margin: 0 0 2px;
  }

  .home-quote {
    width: calc(100% - 24px);
    margin: 16px auto 8px;
    padding: 16px;
  }

  .home-quote__text {
    font-size: 14px;
  }

  .feed-list {
    width: 100%;
    gap: 16px;
    margin-bottom: 0;
  }

  .feed-card {
    border-radius: 18px;
  }

  .feed-upload {
    min-height: 120px;
  }

  .feed-card__head {
    padding: 16px;
  }

  .feed-card__body {
    padding: 16px;
  }

  .login-card {
    margin: 12px;
    max-width: none;
  }
