/* Main-page grouped nav + per-item results. Spec tokens. */

.app.has-item-nav {
  --nav-bg: #0F1B2D;
  --nav-card: #16263D;
  --nav-accent: #14B8A6;
  --nav-teal: #5EEAD4;
  --nav-orange: #F7931A;
  --nav-meta: #94A3B8;
  --nav-body: #F1F5F9;
  --nav-border: rgba(148, 163, 184, 0.18);
  --nav-side: 300px;
  --side: 300px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.my-list-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  border: 2px solid #F7931A;
  border-radius: 10px;
  background: #F7931A;
  color: #000000;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.my-list-btn:hover {
  background: #ffb14a;
  border-color: #ffb14a;
  color: #000000;
}

.my-list-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #0F1B2D;
  color: #F1F5F9;
  font-size: 12px;
  font-weight: 700;
}

.plan-chip {
  margin: 0;
  padding: 8px 14px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #16263D;
  color: #94A3B8;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.progress-strip {
  background: #16263D;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
  color: #F1F5F9;
}

.progress-strip p {
  margin: 0 0 10px;
}

.progress-strip .nav-meta {
  color: #94A3B8;
  font-size: 15px;
  margin: 8px 0 0;
}

.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: #14B8A6;
  border-radius: 999px;
}

.partner-intro {
  background: #16263D;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
  color: #F1F5F9;
  font-size: 18px;
  line-height: 1.5;
}

.partner-intro p {
  margin: 0 0 12px;
}

.intro-remind {
  color: #94A3B8;
  font-size: 15px;
}

.intro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#talk .send,
button.send.nav-send {
  background: transparent;
  color: #5EEAD4;
  border: 2px solid #14B8A6;
  min-height: 48px;
  min-width: 48px;
}

#talk .send:hover {
  background: transparent;
  color: #5EEAD4;
  border-color: #5EEAD4;
}

.item-nav,
.item-sheet-body {
  color: #F1F5F9;
  font-size: 17px;
}

.nav-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #F1F5F9;
}

.nav-meta {
  margin: 0 0 12px;
  color: #94A3B8;
  font-size: 15px;
}

.nav-search {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0F1B2D;
  padding: 0 0 8px;
}

.nav-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #16263D;
  color: #F1F5F9;
  font: inherit;
  font-size: 16px;
}

.nav-search input:focus,
.nav-item:focus,
.nav-group-btn:focus,
.my-list-btn:focus,
.nav-text-btn:focus,
.btn-upload:focus,
.item-sheet-close:focus {
  outline: 3px solid #5EEAD4;
  outline-offset: 2px;
}

.nav-tools {
  margin: 0 0 10px;
  font-size: 15px;
}

.nav-text-btn {
  background: none;
  border: 0;
  color: #5EEAD4;
  min-height: 48px;
  padding: 0 8px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.nav-applies {
  margin: 0 0 14px;
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-applies-title {
  margin: 0 0 8px;
  color: #5EEAD4;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-applies-mark {
  margin-left: auto;
  color: #5EEAD4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item.is-applies {
  background: #16263D;
}

.nav-next {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 4px solid #14B8A6;
  background: #16263D;
  color: #5EEAD4;
  text-decoration: none;
  border-radius: 0 10px 10px 0;
}

.nav-next-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #14B8A6;
  color: #0F1B2D;
  font-size: 13px;
  font-weight: 700;
}

.nav-none {
  color: #94A3B8;
}

.nav-none a {
  color: #5EEAD4;
}

.nav-suggested,
.nav-applies {
  margin: 0 0 12px;
  padding: 8px 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: #16263D;
}

.nav-suggested-title,
.nav-applies-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #5EEAD4;
}

.nav-suggested-empty {
  margin: 0;
  color: #94A3B8;
  font-size: 15px;
}

.nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #F1F5F9;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}

.nav-group-label {
  flex: 1;
}

.nav-count {
  color: #94A3B8;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nav-count.done {
  color: #14B8A6;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #F1F5F9;
  text-decoration: none;
}

.nav-item[aria-current="page"] {
  background: #16263D;
  color: #5EEAD4;
}

.nav-item-label {
  flex: 1;
  font-size: 17px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nav-next span:last-child {
  overflow-wrap: anywhere;
}

.nav-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94A3B8;
  box-sizing: border-box;
}

.nav-ico.check {
  border-color: #14B8A6;
  background: #14B8A6;
  position: relative;
}

.nav-ico.check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #0F1B2D;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nav-ico.pending {
  border-color: #94A3B8;
  background: transparent;
}

.nav-ico.lock {
  position: relative;
}

.nav-ico.lock::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 6px;
  background: #94A3B8;
  border-radius: 1px;
}

.nav-ico.lock::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 5px;
  border: 2px solid #94A3B8;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-sizing: border-box;
}

.nav-ico.spin {
  border-color: #14B8A6;
  border-top-color: transparent;
  animation: navSpin 0.8s linear infinite;
}

.nav-ico.warn {
  border-color: #FBBF24;
  background: #FBBF24;
}

.nav-plan-lock {
  width: 10px;
  height: 12px;
  border: 2px solid #94A3B8;
  border-radius: 2px;
  flex: 0 0 10px;
}

@keyframes navSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-ico.spin { animation: none; }
  .item-sheet { transition: none; }
}

.questions-card,
.item-panel {
  background: #16263D;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
  color: #F1F5F9;
}

.item-drop {
  margin: 12px 0;
  padding: 20px;
  border: 2px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  text-align: center;
}

.item-drop.is-over {
  border-color: #14B8A6;
}

.item-panel .privacy-note,
.item-lock-note {
  color: #94A3B8;
  font-size: 15px;
}

.item-sheet {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 80;
  background: #0F1B2D;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 250ms ease;
}

.item-sheet[hidden] {
  display: none !important;
}

.item-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.item-sheet-close {
  min-width: 48px;
  min-height: 48px;
  border: 2px solid #14B8A6;
  border-radius: 10px;
  background: transparent;
  color: #5EEAD4;
  font-weight: 700;
}

.item-sheet-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 24px;
}

.item-sheet-body .nav-head {
  display: none;
}

body.nav-sheet-open {
  overflow: hidden;
}

body.nav-sheet-open .app,
body.nav-sheet-open .page-foot {
  visibility: hidden;
}

.nav-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 16px;
  border-radius: 12px;
  background: #16263D;
  color: #F1F5F9;
  border: 1px solid #14B8A6;
}

.item-result-page .item-result-card {
  background: #16263D;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
  color: #F1F5F9;
}

.item-result-page .item-result-card h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.item-built > .back-to-my-page {
  margin: 12px 0 16px;
}

.back-to-my-page {
  display: inline;
  min-height: 0;
  padding: 0;
  background: none;
  color: #5EEAD4;
  font-weight: 600;
  text-decoration: underline;
}

.back-to-my-page:hover {
  color: #99f6e4;
  background: none;
}

.item-page-remind {
  color: #94A3B8;
  font-size: 15px;
  margin: 0 0 12px;
}

.item-built {
  margin: 16px 0 0;
}

.item-built-h,
.item-built h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.item-opener,
.item-stage-line,
.item-close {
  font-size: 16px;
  line-height: 1.45;
}

.item-value-line,
.item-built p {
  line-height: 1.45;
}

.item-built-list {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
}

.item-figures {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}

.item-figures dt {
  color: #94A3B8;
}

.item-figures dd {
  margin: 0;
}

.item-calc,
.item-action {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 10px;
}

.item-assume,
.item-pending,
.item-stale,
.item-see-list {
  color: #94A3B8;
}

.item-comms {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.item-comms-opt {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
}

.item-action-btn,
.item-inline-btn {
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #14B8A6;
  color: #0F1B2D;
  font-weight: 700;
}

.item-inline-btn {
  min-height: 40px;
  margin-left: 8px;
}

#navSearchLive {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14B8A6;
  color: #0F1B2D;
  border: 0;
  font-weight: 700;
  z-index: 12;
}

.nav-journey {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #14B8A6;
  color: #5EEAD4;
  text-decoration: none;
  font-weight: 700;
}

.nav-journey:hover {
  color: #99f6e4;
}

.phone-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #0b1524;
  border-top: 1px solid #24344d;
  z-index: 20;
}

.phone-bar a,
.phone-bar button {
  flex: 1;
  min-height: 48px;
  background: transparent;
  border: 0;
  color: #F1F5F9;
  font: 700 14px/1 Montserrat, Helvetica, Arial, sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-bar a[aria-current="page"] {
  color: #5EEAD4;
}

.phone-bar #barList {
  background: #F7931A;
  color: #000000;
  margin: 8px 6px;
  border-radius: 10px;
  padding: 0 6px;
  line-height: 1.15;
  text-align: center;
}

.phone-bar #barList:hover {
  background: #ffb14a;
  color: #000000;
}

@media (min-width: 1024px) {
  .app.has-item-nav .top {
    min-height: 72px;
    background: #0F1B2D;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .app.has-item-nav .shell {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) minmax(260px, 360px) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #0F1B2D;
  }

  .app.has-item-nav .shell > .partner-dock {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin: 12px 16px 16px 0;
  }

  .app.has-item-nav .sidebar {
    display: block !important;
    position: sticky;
    top: 0;
    height: calc(100vh - 72px);
    overflow: auto;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    background: #0F1B2D;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    padding: 16px 12px 24px;
  }

  .app.has-item-nav .main {
    max-width: none;
    min-width: 0;
  }

  .app.has-item-nav .my-list-btn {
    display: none !important;
  }

  .item-sheet {
    display: none !important;
  }

  .app.has-item-nav .desk-legacy {
    display: none;
  }
}

@media (max-width: 1023px) {
  .app.has-item-nav .top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    background: #0F1B2D;
  }

  .app.has-item-nav .my-list-btn {
    display: inline-flex !important;
    grid-column: 1;
    grid-row: 2;
  }

  .app.has-item-nav .my-list-btn[hidden] {
    display: none !important;
  }

  .app.has-item-nav .top .logo-link {
    justify-self: center;
  }

  .app.has-item-nav .top .brand-slogan {
    text-align: center;
    flex: none;
  }

  .app.has-item-nav .top .brand {
    display: none;
  }

  .app.has-item-nav #planChip {
    display: none;
  }

  .app.has-item-nav .nav-toggle {
    display: inline-flex !important;
    grid-column: 3;
    grid-row: 2;
    margin-left: 0;
  }

  .app.has-item-nav .top .nav {
    display: none;
  }

  .app.has-item-nav .top.open .nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .app.has-item-nav .shell {
    display: block !important;
  }

  .app.has-item-nav .sidebar {
    display: none !important;
  }

  .partner-float:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .phone-bar {
    display: flex;
  }

  .app.has-item-nav {
    padding-bottom: 80px;
  }

  .page-foot {
    padding-bottom: 96px;
  }

  .talk-composer {
    bottom: 64px;
  }

  .partner-float {
    bottom: 80px;
  }
}

.q-step {
  margin: 10px 0 0;
}
.q-step-label,
.q-step-eta {
  margin: 0 0 6px;
  color: var(--nav-teal);
  font-size: 14px;
  font-weight: 600;
}
.q-step-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.2);
  overflow: hidden;
  margin: 0 0 6px;
}
.q-step-fill {
  height: 100%;
  width: 0;
  background: #14B8A6;
  border-radius: 999px;
}
.item-group-media {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.item-group-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.item-group-icon svg,
.item-sample svg {
  display: block;
}
.item-sample {
  line-height: 0;
}
.how-to-add {
  margin: 0 0 12px;
}
.how-to-add video {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  background: #0F1B2D;
}
.venue-tutorial {
  margin: 0 0 14px;
}
.venue-video {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #0F1B2D;
}
.venue-video-desk {
  aspect-ratio: 16 / 9;
  max-width: 640px;
}
.venue-video-phone {
  aspect-ratio: 9 / 16;
  max-width: 280px;
}
.venue-steps {
  margin: 0 0 14px;
}
.venue-steps-title {
  margin: 0 0 8px;
  font-size: 16px;
}
.venue-steps-list {
  margin: 0;
  padding-left: 1.2em;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.45;
}
.venue-steps-list li {
  margin: 0 0 8px;
}
.venue-logic {
  margin: 0 0 14px;
}
.venue-logic-note {
  margin: 8px 0 0;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.45;
}
.btn-coming-soon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.item-missing {
  padding: 24px 0;
}
.partner-actions {
  margin: 0 0 10px;
}

.catalog-card {
  order: -1;
}

.catalog-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.catalog-lead {
  margin: 0 0 12px;
  color: #94A3B8;
  font-size: 16px;
}

#thingsSearch {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #16263D;
  color: #F1F5F9;
  font: inherit;
  font-size: 16px;
}

#suggestedBox h3 {
  margin: 16px 0 6px;
  font-size: 16px;
  color: #5EEAD4;
}
