html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
body {
  background-color: #f6f7f9;
}

.qty-input {
  width: 5rem;
  flex-shrink: 0;
}

.discount-input {
  max-width: 10rem;
}

@media (min-width: 992px) {
  .summary-card {
    position: sticky;
    top: 1rem;
  }
}

.option-cell {
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

@media (min-width: 768px) {
  .option-cell:nth-child(odd) {
    border-right: 1px solid var(--bs-border-color-translucent);
  }
}

.item-total {
  width: 5.5rem;
  flex-shrink: 0;
}

.quote-sheet {
  max-width: 40rem;
}

/* ---------- Prototype: layout ---------- */
.page {
  padding-bottom: 5rem !important;
}

header .nav-link.active {
  font-weight: 600;
  color: var(--bs-primary);
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
  z-index: 1030;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: .85rem;
  padding: .35rem 0;
}

.bottom-nav a.active {
  color: var(--bs-primary);
  font-weight: 600;
}

.bottom-nav .badge {
  font-size: .6rem;
}

.card-title-sm {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--bs-border-color-translucent);
  color: inherit;
  text-decoration: none;
}

a.list-row:hover {
  background: #f8f9fa;
}

.stat {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

dl.fields {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
}

dl.fields dt {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

dl.fields dd {
  margin: 0;
}

/* ---------- Prototype: data source badges ---------- */
.src {
  display: none;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  padding: .22rem .45rem;
  border-radius: 999px;
  color: #fff;
  vertical-align: middle;
  margin-left: .3rem;
  cursor: help;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

body.show-sources .src {
  display: inline-block;
}

.src-manual { background: #6c757d; }
.src-calc { background: #0f766e; }
.src-ai { background: #7c3aed; }
.src-meta { background: #1d4ed8; }
.src-shopify { background: #4d7c0f; }
.src-qb { background: #b45309; }
.src-photo { background: #be185d; }
.src-supplier { background: #475569; }
.src-import { background: #0e7490; }

.crack {
  display: none;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: .5rem .75rem;
  font-size: .85rem;
  border-radius: .25rem;
  margin: .5rem 0;
}

body.show-sources .crack {
  display: block;
}

/* ---------- Prototype: inbox + chat ---------- */
.proto-done {
  opacity: .55;
}

.proto-done .proto-actions {
  display: none !important;
}

.proto-result:empty {
  display: none;
}

.unsure {
  border-bottom: 2px dotted #f59e0b;
}

.bubble {
  max-width: 85%;
  padding: .5rem .75rem;
  border-radius: 1rem;
  margin-bottom: .4rem;
  font-size: .92rem;
}

.bubble.them {
  background: #e9ecef;
  border-bottom-left-radius: .25rem;
}

.bubble.me {
  background: #0866ff;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: .25rem;
}

.proto-toast {
  position: fixed;
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%) translateY(1rem);
  background: #212529;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: .5rem;
  font-size: .9rem;
  opacity: 0;
  transition: all .2s;
  z-index: 2000;
  max-width: 90vw;
}

.proto-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.photo-ph {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d6c4a8, #a07c55);
  border-radius: .5rem;
  display: flex;
  align-items: flex-end;
  padding: .4rem .5rem;
  color: #fff;
  font-size: .75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.flow {
  display: grid;
  gap: .75rem;
}

@media (min-width: 992px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
  }
}

.flow-step {
  background: #fff;
  border-radius: .5rem;
  padding: .75rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  position: relative;
}

.flow-step h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bs-secondary-color);
}

/* ---------- Quote builder ---------- */
.seat-row {
  display: flex;
  gap: 0.5rem;
}

.seat-row .form-select {
  min-width: 0;
}

.chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  font-size: 0.8rem;
  color: var(--bs-body-color);
  white-space: nowrap;
}

.chip-good {
  border-color: #2f7d4f;
  color: #2f7d4f;
}

.chip-warn {
  border-color: #b4641e;
  color: #b4641e;
}

.chip-quiet {
  color: var(--bs-secondary-color);
}

.alex-card {
  border-left: 3px solid #2f7d4f !important;
}

.stat-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.stat-list dt {
  font-weight: normal;
  color: var(--bs-secondary-color);
}

.stat-list dd {
  margin: 0;
  text-align: right;
}

.version-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  color: inherit;
  text-decoration: none;
}
