.mobile-nav {
  display: none;
}
.mobile-menu {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f2f5ea;
  color: #203428;
  text-decoration: none;
}
.pairing-options {
  display: grid;
  gap: 12px;
}
.pairing-code {
  font:
    700 34px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  padding: 20px 12px;
  text-align: center;
  background: #eef4de;
  border-radius: 16px;
  margin-bottom: 12px;
  user-select: all;
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .button,
  input,
  select {
    min-height: 44px;
  }
  .shell .sidebar {
    padding: 12px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .shell .sidebar .brand {
    margin-bottom: 0;
  }
  .shell .main-nav {
    display: none;
  }
  .shell .content {
    padding-bottom: calc(145px + env(safe-area-inset-bottom));
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fffef8;
    border-top: 1px solid #e3e7dc;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px #17261b0a;
  }
  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #53604e;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 11px;
  }
  .mobile-nav span {
    font-size: 23px;
    line-height: 1.1;
  }
  .mobile-nav [aria-current="page"] {
    color: #213820;
    background: #e4f5ae;
  }
  .nova-launcher,
  body:has(.inbox) .nova-launcher {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .nova-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  #toast {
    bottom: calc(148px + env(safe-area-inset-bottom));
  }
  dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 30px);
    overscroll-behavior: contain;
  }
  .inbox {
    height: calc(100dvh - 230px);
    min-height: 390px;
  }
  .setup-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.nova-attachments,
.nova-media-tools,
.nova-media-status {
  grid-column: 1/-1;
}
.nova-attachments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nova-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #edf4df;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nova-file button {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 5px;
  cursor: pointer;
}
.nova-media-tools {
  display: flex;
  gap: 8px;
}
.nova-media-tools button {
  border: 1px solid #dbe5d1;
  border-radius: 12px;
  background: #f5f8ef;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.nova-media-tools .recording {
  background: #fff0e8;
  color: #9b301d;
  border-color: #eea38b;
}
.nova-media-status {
  font-size: 12px;
  color: #526645;
  margin: 0;
}
.nova-media-status:empty,
.nova-attachments:empty {
  display: none;
}
body.nova-chat-open .nova-drawer {
  z-index: 60;
}
@media (max-width: 760px) {
  .nova-launcher {
    display: none;
  }
  .mobile-nav .mobile-nova {
    position: relative;
    overflow: visible;
    color: #263d20;
    gap: 0;
  }
  .mobile-nova .mobile-nova-orb {
    width: 60px;
    height: 60px;
    margin-top: -24px;
    border: 4px solid #fffef8;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #f2ffd0, #c8e79a);
    box-shadow:
      0 0 24px #bce88788,
      0 4px 10px #223b2122;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nova nova-mascot {
    width: 50px;
    height: 55px;
    pointer-events: none;
  }
  .mobile-nova b {
    font-size: 11px;
    line-height: 20px;
  }
  body.nova-chat-open {
    overflow: hidden;
  }
  body.nova-chat-open .nova-drawer {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nova-drawer > header {
    padding: 10px 16px;
  }
  .nova-drawer .nova-avatar {
    width: 45px;
    height: 48px;
  }
  .nova-messages {
    padding: 14px;
  }
  .nova-suggestions {
    max-height: 48px;
    flex-shrink: 0;
  }
  .nova-composer {
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .nova-composer textarea {
    font-size: 16px;
  }
}
