/* One official site. Navy and teal. Light page, strong type, one path. */
:root {
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #e4e1da;
  --navy: #0e1b4d;
  --navy-deep: #091433;
  --teal: #0c6b68;
  --teal-bright: #0e7c78;
  --soft: #e7f3f2;
  --measure: 1100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Let the viewport expose wide content instead of clipping it. */
  overflow-x: auto;
  scrollbar-width: auto;
  scrollbar-color: var(--teal) var(--line);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  /* Wide content stays reachable through the viewport scrollbar. */
  overflow-x: visible;
  scrollbar-width: auto;
  scrollbar-color: var(--teal) var(--line);
}

h1, h2, h3, .mim {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 0 0 0.7rem;
}

h3 { font-size: 1.25rem; margin: 0; }

p { margin: 0 0 0.85rem; }

a { color: var(--teal); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.45rem 0.75rem;
  z-index: 6;
}
.skip:focus { top: 0.5rem; color: #fff; }

.wrap {
  width: min(100%, var(--measure));
  max-width: 1100px;
  min-width: 0;
  margin-inline: auto;
  padding-inline: max(clamp(1.15rem, 2.4vw, 2.5rem), env(safe-area-inset-left, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  text-decoration: none;
  color: var(--navy);
}

.mim {
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--navy);
}

.chiedozie {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--teal); }

.example {
  margin: 0;
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

main { flex: 1 0 auto; min-width: 0; max-width: 100%; }

.hero {
  background: var(--paper);
  color: var(--navy);
  text-align: center;
  padding: 2.4rem 0 2.2rem;
}

.hero h1 {
  max-width: none;
  margin-inline: auto;
}

.lede {
  max-width: 42rem;
  margin: 0 auto 0.2rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}

.hero .kicker { color: var(--teal); }

.hero-button {
  display: inline-block;
  margin-top: 1.1rem;
  text-decoration: none;
}

.section { padding: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 4.5rem;
}

.features .section {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.45rem 1.4rem;
}

.note {
  color: var(--muted);
  max-width: 46rem;
}

.ask,
.login-card,
.stock-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(14, 27, 77, 0.06);
}

.login-card,
.stock-form {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  padding: 1.35rem 1.3rem 1.45rem;
}

.hero .login-card {
  width: min(28rem, 100%);
  margin: 0.8rem auto 0;
  text-align: left;
}
.hero-login { margin-top: 1.4rem; }
.hero-login h2 { margin-bottom: 0.2rem; }
.hero-login .note { margin-top: 0; }

.login-card label,
.stock-form label {
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--navy);
}

.login-card input,
.stock-form input,
.stock-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d2cb;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
}

.stock-form textarea { resize: vertical; min-height: 5.5rem; }

.login-card input:focus,
.stock-form input:focus,
.stock-form textarea:focus {
  outline: 2px solid var(--teal-bright);
  border-color: var(--teal-bright);
}

.button {
  margin-top: 0.95rem;
  justify-self: start;
  background: var(--teal-bright);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { background: var(--teal); color: #fff; }

.button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost:hover { background: var(--paper); color: var(--navy); }

.error {
  margin: 0 0 0.35rem;
  color: #8c2f2f;
  font-weight: 700;
}

.contract {
  max-width: 46rem;
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: var(--paper-2);
  border-left: 3px solid var(--teal);
  border-radius: 0 14px 14px 0;
  color: var(--navy);
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.2rem 0 0.4rem;
}

.snap {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.2rem;
}

.snap dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.snap dd { margin: 0.45rem 0 0; }

.figure {
  display: block;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.lines {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.lines:empty { display: none; }

.line {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1.1rem;
}

.left-count {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--navy);
}

.price-line { margin: 0.2rem 0 0; color: var(--muted); }

.sold-form { margin: 0.8rem 0 0; }

.sold-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--navy);
}

.sold-label input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--teal);
}

main .section { margin-top: 2.6rem; }

.stock-form { max-width: 36rem; margin-top: 1.2rem; }
.stock-form h2 { margin-bottom: 0.15rem; }

.site-footer {
  background: var(--navy);
  margin-top: 4rem;
  padding: 2.4rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.86);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.4rem 1.15rem;
}
.site-footer h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.4rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #d7f4f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-copy {
  margin: 1.35rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .wrap { width: min(var(--measure), 100%); }
  .hero { padding: 3.2rem 0 2rem; text-align: left; }
  .hero h1, .lede { margin-left: 0; }
  .features, .snapshot { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; flex-wrap: wrap; padding: 0.85rem 0; }
  .site-nav { margin-left: 0; width: 100%; }
  .button, .hero-button { width: 100%; text-align: center; }
  .login-card .button, .stock-form .button { width: 100%; }
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0 0 0.4rem;
  list-style: none;
}

.photos figure { margin: 0; }

.photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: var(--line);
}

.photos figcaption {
  margin-top: 0.55rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.photo-note { margin: 0.8rem 0 2rem; }

.receipt-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin: 0.8rem 0 1rem; }
.receipt-mail { display: grid; gap: 0.35rem; margin: 0; min-width: min(100%, 16rem); }
.receipt-mail .note { margin: 0; }

.receipt {
  max-width: 36rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.25rem 1.2rem;
}

@media (max-width: 800px) {
  .photos, .split { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  .no-print { display: none !important; }
}

.menu { position: relative; }
.menu summary {
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.site-header, .bar, .site-nav { overflow: visible; }
.menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 6;
  min-width: 15rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(14, 27, 77, 0.08);
}
.menu-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.45rem;
  height: 0.45rem;
}
.menu[open] .menu-panel,
.menu:hover > .menu-panel,
.menu:focus-within > .menu-panel,
details.menu:hover > .menu-panel,
details.menu:focus-within > .menu-panel {
  display: grid;
  gap: 0.15rem;
}
details.menu:hover::details-content,
details.menu:focus-within::details-content {
  display: block;
  content-visibility: visible;
}
.menu-panel a {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.menu-panel a:hover { background: var(--paper); color: var(--teal); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.plan-lead { border-color: var(--teal); }
.price-unset {
  margin: 0.2rem 0 0.6rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.7rem;
  color: var(--navy);
}
.plan ul { margin: 0.4rem 0 1rem; padding-left: 1.1rem; color: var(--ink); }
.plan li { margin: 0.25rem 0; }
.plan .button { margin-top: auto; }

.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 36rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th { color: var(--navy); }

.faq { display: grid; gap: 0.6rem; max-width: 46rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq p { margin: 0.6rem 0 0; }

@media (max-width: 800px) {
  .plans { grid-template-columns: 1fr; }
  .menu-panel { position: static; box-shadow: none; min-width: 0; margin-top: 0.35rem; }
}

.sample-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.sample-path .section {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.15rem;
}

.sample-path .left-count {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 2.4rem;
  color: var(--navy);
  margin: 0.3rem 0;
}

.path-login,
#login .login-card {
  width: min(28rem, 100%);
  margin-top: 0.6rem;
}

.next-step { margin: 0.65rem 0 1.25rem; }
.hero .sale-gap { margin-top: 1rem; }
.shop-book .hero .book-jumps { margin-bottom: 0.35rem; }
.shop-book .hero .sale-gap,
.shop-book .hero .shelf-hero-row.sale-gap {
  margin-top: 0.85rem;
  padding-top: 0;
}

.sales-spans {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.sales-spans a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}
.sales-spans a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.sales-wrap, .compare-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep sideways affordances visible on both desktop and touch browsers. Auto
   only paints a track when the contents actually overflow. */
.book-jumps,
.sales-spans,
.sales-wrap,
.compare-wrap {
  scrollbar-width: auto;
  scrollbar-color: var(--teal) var(--line);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.book-jumps::-webkit-scrollbar,
.sales-spans::-webkit-scrollbar,
.sales-wrap::-webkit-scrollbar,
.compare-wrap::-webkit-scrollbar {
  height: 0.7rem;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.book-jumps::-webkit-scrollbar-track,
.sales-spans::-webkit-scrollbar-track,
.sales-wrap::-webkit-scrollbar-track,
.compare-wrap::-webkit-scrollbar-track {
  background: var(--line);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.book-jumps::-webkit-scrollbar-thumb,
.sales-spans::-webkit-scrollbar-thumb,
.sales-wrap::-webkit-scrollbar-thumb,
.compare-wrap::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 999px;
}
.sales-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 36rem;
}
.sales-table th, .sales-table td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sales-table thead th { color: var(--navy); }
.sales-mail { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0.4rem; }


@media (max-width: 800px) {
  .sample-path { grid-template-columns: 1fr; }
}

/* Public pages: one photo per file, in the page, not as a repeated background. */
body.public { background-color: var(--paper); }

.public .hero { background: transparent; }

.quote {
  max-width: 40rem;
  margin: 1.4rem auto 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--teal);
  color: var(--navy);
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.35rem;
  line-height: 1.35;
}
.quote p { margin: 0; }

.settings { position: relative; margin-left: 0.4rem; }
.settings-toggle {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  width: min(16.5rem, calc(100vw - 2rem));
  text-align: left;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem 0.85rem;
  box-shadow: 0 16px 36px rgba(14, 27, 77, 0.16);
}
.settings-panel[hidden] { display: none !important; }
.settings-panel .note { margin: 0 0 0.35rem; font-size: 0.92rem; }
.set-label {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}
.set-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.set-btn {
  margin: 0;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.set-btn[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: 2.4rem;
}
.split figure { margin: 0; }
.split img,
.photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.split figcaption, .photos figcaption { margin-top: 0.4rem; color: var(--muted); }
.mark {
  display: inline-block;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.55rem;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 62% 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 62% no-repeat,
    var(--soft);
}
.mark-round { border-radius: 50%; }
.mark-note { border-radius: 3px 12px 12px 12px; background: var(--soft); }

.public .site-header { z-index: 6; }

.public .photos img,
.public .features .section,
.public .plan,
.public .play-card,
.public .wordmark .mim,
.public .button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, letter-spacing 0.2s ease, background 0.2s ease;
}

.public .photos figure:hover img { transform: scale(1.04) rotate(-0.4deg); }
.public .features .section:hover,
.public .plan:hover,
.public .play-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(14, 27, 77, 0.14);
}
.public .wordmark:hover .mim { letter-spacing: 0.22em; }
.public .button:hover { transform: translateY(-2px); }

.hero-photo {
  width: min(720px, 100%);
  margin: 1.6rem auto 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.play-dock { margin-bottom: 1rem; }
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.play-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1.2rem;
}
.play-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.play-row .button { margin-top: 0.35rem; }
.tally {
  min-height: 1.6rem;
  margin: 0.2rem 0 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

html[data-theme="warm"] {
  --paper: #fff4e4;
  --paper-2: #fffaf2;
  --ink: #3f2a1d;
  --muted: #7a5b45;
  --line: #f0d7b8;
  --navy: #8a3412;
  --navy-deep: #4a1d0c;
  --teal: #c2410c;
  --teal-bright: #ea580c;
  --soft: #ffedd5;
}
html[data-theme="night"] {
  --paper: #121826;
  --paper-2: #1c2638;
  --ink: #f3f0e8;
  --muted: #c5cedd;
  --line: #314056;
  --navy: #e7eefc;
  --navy-deep: #070b14;
  --teal: #8ef6f0;
  --teal-bright: #1aa8a2;
  --soft: #163c3b;
}
html[data-theme="night"] .site-header { background: rgba(18, 24, 38, 0.94); }
html[data-theme="night"] .menu-panel,
html[data-theme="night"] .plan,
html[data-theme="night"] .faq details,
html[data-theme="night"] .compare,
html[data-theme="night"] .login-card input,
html[data-theme="night"] .stock-form input,
html[data-theme="night"] .stock-form textarea { background: var(--paper-2); color: var(--ink); }
html[data-theme="night"] .site-nav a,
html[data-theme="night"] .menu summary,
html[data-theme="night"] .menu-panel a { color: var(--navy); }

@media (max-width: 800px) {
  .play-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .public .photos img,
  .public .features .section,
  .public .plan,
  .public .play-card,
  .public .button { transition: none; }
}
html[data-text="small"] { font-size: 15px; }
html[data-text="large"] { font-size: 20px; }
html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-contrast="high"] {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --navy: #000000;
  --navy-deep: #000000;
  --teal: #0022aa;
  --teal-bright: #001166;
  --soft: #fff4a8;
}
html[data-contrast="high"] body,
html[data-contrast="high"] .site-header,
html[data-contrast="high"] .settings-panel,
html[data-contrast="high"] .menu-panel,
html[data-contrast="high"] .login-card,
html[data-contrast="high"] .plan,
html[data-contrast="high"] input,
html[data-contrast="high"] textarea {
  background: #fff;
  color: #000;
  border-color: #000;
}
html[data-contrast="high"] a { text-decoration: underline; }
html[data-contrast="high"] .button {
  background: #000;
  color: #fff;
  border: 2px solid #000;
}
html[data-contrast="high"] .site-footer { background: #000; color: #fff; }
html[data-contrast="high"] .site-footer a { color: #fff; }


.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  html { overflow-x: auto; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    gap: 0.15rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .menu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .menu { width: 100%; }
  .menu-panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.2rem;
    box-shadow: none;
  }
  .menu:hover > .menu-panel,
  details.menu:hover > .menu-panel { display: none; }
  details.menu:hover::details-content { display: none; content-visibility: hidden; }
  .menu[open] > .menu-panel,
  .menu[open]:hover > .menu-panel,
  .menu:focus-within > .menu-panel,
  details.menu[open]::details-content,
  details.menu:focus-within::details-content { display: grid; }
  details.menu[open]::details-content,
  details.menu:focus-within::details-content { display: block; content-visibility: visible; }
  .plans { grid-template-columns: 1fr; }
  .photos, .split { grid-template-columns: 1fr; }
  .photos img, .split img, img { max-width: 100%; height: auto; }
  .compare-wrap { max-width: 100%; overflow-x: auto; }
  .price-unset, .lede, h1, h2, p, td, th { overflow-wrap: anywhere; }
  .settings-panel {
    position: fixed;
    top: 4.4rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: min(70vh, 28rem);
    overflow: auto;
  }
  .set-btn, .settings-toggle, .button, .hero-button, .nav-toggle {
    min-height: 44px;
  }
  .sold-label { min-height: 44px; display: flex; align-items: center; gap: 0.5rem; }
  .next-step { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; }
  pre.receipt { white-space: pre-wrap; max-width: 100%; }
}

.book-jumps {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5rem 0.8rem;
  margin: 1rem 0 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.book-jumps a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  background: var(--paper-2);
}
.book-jumps a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.low-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--teal);
  background: var(--soft);
}
.catalogue { margin-top: 2rem; }
.catalogue-search { margin-top: 0.2rem; }
#catalogue-table tr.is-out { display: none; }
#catalogue-table td:empty::after { content: ""; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice-row .set-btn { min-height: 44px; }
.label-preview {
  margin-top: 1rem;
  max-width: 22rem;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  padding: 0.9rem;
}
.label-preview strong { display: block; }
.label-shelf { text-align: left; }
.label-strip { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; }
.label-square { text-align: center; min-height: 8rem; }
.mark-sample {
  margin-top: 0.55rem;
  height: 2.2rem;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 5px, #111 5px 6px, transparent 6px 9px);
}
.mark-sample.is-qr {
  width: 4.2rem;
  height: 4.2rem;
  margin-inline: auto;
  background:
    linear-gradient(#111, #111) 0 0 / 30% 30% no-repeat,
    linear-gradient(#111, #111) 100% 0 / 30% 30% no-repeat,
    linear-gradient(#111, #111) 0 100% / 30% 30% no-repeat,
    repeating-linear-gradient(90deg, #111 0 4px, transparent 4px 8px),
    repeating-linear-gradient(#111 0 4px, transparent 4px 8px);
}
.not-live { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }

.sd-logo-link { display: block; width: min(100%, 22rem); margin: 0 0 0.9rem; text-decoration: none; }
.sd-logo { width: min(100%, 22rem); height: auto; display: block; }
.company-card { margin-top: 1.25rem; }
.company-lines { margin: 0.8rem 0 0; }
.company-lines div { display: grid; gap: 0.15rem; margin: 0.7rem 0; }
.company-lines dt { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.company-lines dd { margin: 0; }
@media (max-width: 800px) {
  .sd-logo-link { display: block; width: min(100%, 22rem); margin: 0 0 0.9rem; text-decoration: none; }
.sd-logo { width: 100%; }
  .company-lines dd { overflow-wrap: anywhere; }
}

.sale-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.sale-actions form { flex: 1 1 8rem; }
.sale-actions .button { width: 100%; min-height: 44px; }
@media (max-width: 800px) {
  .sale-actions { flex-direction: column; }
}

.line-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.line-manage > .stock-form { flex: 1 1 18rem; }
.remove-form {
  margin: 0.75rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.line-manage .remove-form { margin: 0 0 1.45rem; }
.remove-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.remove-actions .button { margin-top: 0; }
.remove-ask { margin: 0 0 0.35rem; color: #8c2f2f; font-weight: 700; }

.sd-name {
  margin: 0.2rem 0 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a3d91;
}
.book-photo { margin: 0 0 1rem; }
.book-photo img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.book-photo figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.sale-desk .stock-form input[type="search"] {
  font-size: 1.15rem;
  min-height: 52px;
}
.sale-list .line {
  padding: 0.9rem 0.2rem 1rem;
  border-bottom: 1px solid var(--line);
}
.sale-list h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.sale-actions .button { min-height: 52px; font-size: 1.05rem; }
@media (min-width: 801px) {
  .book-menu > .menu-panel { left: 50%; transform: translateX(-50%); text-align: left; }
}


@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  details.menu:hover > .menu-panel,
  details.menu:focus-within > .menu-panel {
    display: grid;
    gap: 0.15rem;
  }
  details.menu:hover::details-content,
  details.menu:focus-within::details-content {
    display: block;
    content-visibility: visible;
  }
}

.price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.9rem;
}
.price-pair > div { display: grid; gap: 0.35rem; align-content: end; }
@media (max-width: 640px) {
  .price-pair { grid-template-columns: 1fr; }
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 8;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(14, 27, 77, 0.14);
  cursor: pointer;
}
.back-top[hidden] { display: none !important; }
@media (max-width: 800px) {
  .back-top { right: 0.75rem; bottom: 0.75rem; }
}


/* Phone, laptop, and desktop share one centered column. Nothing widens the screen. */
h3, li, label, .sd-name, .figure {
  overflow-wrap: anywhere;
}

.book-jumps,
.sales-spans {
  max-width: 100%;
  min-width: 0;
}

.lines,
.line,
.line-manage,
.sale-desk {
  max-width: 100%;
  min-width: 0;
}
.stock-form,
.login-card {
  min-width: 0;
  max-width: min(36rem, 100%);
}

@media (max-width: 800px) {
  .bar {
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.45rem;
  }
  .bar .button,
  .bar .nav-toggle,
  .settings-toggle {
    margin-top: 0;
  }
  .bar .button,
  .bar > form {
    width: auto;
    max-width: 100%;
  }
  .book-jumps,
  .sales-spans {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
  }
  .book-jumps a,
  .sales-spans a {
    flex: 0 0 auto;
    max-width: none;
  }
  .hero .sale-gap,
  .shop-book .hero .sale-gap,
  .shop-book .hero .shelf-hero-row.sale-gap {
    margin-top: 0.85rem;
    width: 100%;
    max-width: 100%;
  }
  .stock-form,
  .login-card,
  .hero .login-card {
    width: 100%;
    max-width: 100%;
  }
  .stock-form input,
  .stock-form textarea,
  .login-card input,
  .stock-form .button,
  .login-card .button,
  input[type="search"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .line-manage {
    flex-direction: column;
    align-items: stretch;
  }
  .line-manage > .stock-form,
  .line-manage .remove-form,
  .sale-actions,
  .sale-actions form,
  .sale-actions .button {
    width: 100%;
    max-width: 100%;
  }
  .line-manage .remove-form { margin: 0; }
}

@media (min-width: 801px) and (max-width: 1040px) {
  .bar {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
  }
  .site-nav {
    min-width: 0;
    max-width: 100%;
    gap: 0.35rem 0.85rem;
  }
}

/* —— Book extras: dashboard, tables, letter, staff, bottom nav, brand —— */
body.shop-book { padding-bottom: 4.5rem; }
.dash-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
  margin: 0.35rem 0 1.5rem;
}
a.dash-card, .dash-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--shop-accent-line, var(--line));
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  min-width: 0;
}
.dash-label { margin: 0; font-size: 0.85rem; color: var(--muted, #5b6573); }
.dash-figure { margin: 0.2rem 0; font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.table-wrap, .sales-wrap { overflow-x: auto; scrollbar-width: auto; }
.shelf-table, .owes-table, .staff-table { min-width: 28rem; }
.loc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0;
}
.letter-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.1rem;
  margin: 0.8rem 0;
}
.letter-head { border-bottom: 2px solid var(--shop-accent, var(--teal)); padding-bottom: 0.6rem; margin-bottom: 0.8rem; }
.letter-brand { font-weight: 700; color: var(--navy); margin: 0 0 0.25rem; }
.letter-body {
  width: 100%;
  min-height: 10rem;
  border: 0;
  resize: vertical;
  font: inherit;
  background: transparent;
}
.letter-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shop-logo-img { max-width: min(100%, 14rem); height: auto; display: block; }
.emp-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  background: var(--shop-accent-soft, #e8f4f2);
  border: 1px solid var(--shop-accent-line, var(--line));
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.emp-bar-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.owes-pay input[type="text"] { max-width: 9rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Phone bottom nav — fixed; desktop keeps top book-jumps */
.bottom-nav {
  display: none;
}
@media (max-width: 800px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--shop-accent-line, var(--line));
    box-shadow: 0 -4px 16px rgba(11, 18, 32, 0.08);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    justify-content: space-around;
    align-items: stretch;
  }
  .bottom-nav > a,
  .bottom-nav .bn-more > summary {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.35rem 0.2rem;
    border-radius: 0.5rem;
    min-width: 0;
    background: transparent;
    border: 0;
    list-style: none;
    cursor: pointer;
  }
  .bottom-nav .bn-more { flex: 1 1 0; position: relative; }
  .bottom-nav .bn-more > summary::-webkit-details-marker { display: none; }
  .bn-ico { font-size: 1.05rem; line-height: 1; }
  .bn-label { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bn-more-panel {
    position: absolute;
    right: 0; bottom: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    padding: 0.4rem;
    min-width: 11rem;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .bn-more-panel a {
    text-decoration: none;
    color: var(--navy);
    padding: 0.55rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
  }
  .bn-more-panel a:hover,
  .bn-more-panel a[aria-current="page"] { background: var(--shop-accent-soft, #e8f4f2); }
  /* Top tab row still usable; allow wrap, not sideways slider as main nav */
  .shop-book .book-jumps {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
@media (min-width: 801px) {
  body.shop-book { padding-bottom: 0; }
  .bottom-nav { display: none !important; }
}
@media print {
  .bottom-nav, .emp-bar, .letter-actions, .no-print { display: none !important; }
  .letter-sheet { border: 0; }
}

/* Sunny Den signed-in industrial fallback is applied via --shop-accent from theme.js (motor-parts steel). */

/* Staff status chips + Staff today list */
.staff-chip-list {
  list-style: none;
  margin: 0.55rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.staff-chip-list li { margin: 0; }
.staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.2;
  max-width: 100%;
}
.staff-chip-sym { font-size: 0.7rem; line-height: 1; }
.staff-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 8rem; }
.staff-chip-state { font-weight: 500; opacity: 0.9; }
.staff-chip-active {
  color: #0d652d;
  background: #e6f4ea;
  border-color: #ceead6;
}
.staff-chip-break {
  color: #8a5a00;
  background: #fef7e0;
  border-color: #fce8b2;
}
.staff-chip-inactive {
  color: #5f6368;
  background: #f1f3f4;
  border-color: #dadce0;
}
.staff-chip-signedout {
  color: #b3261e;
  background: #fce8e6;
  border-color: #f5c6c2;
}
.dash-staff .dash-figure { font-size: 1.05rem; }
.staff-today-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.staff-today-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-2, #f7f8fa);
  min-width: 0;
}
.staff-today-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.staff-today-name {
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}
.staff-today-breaks {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.staff-break-form { margin: 0; }
.staff-break-btn {
  margin: 0 !important;
  min-height: 44px;
  min-width: 6.5rem;
  padding: 0.35rem 0.85rem;
}


/* Offline-first indicator on book / demo */
.offline-banner {
  display: block;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #b45309;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 600;
}
.offline-banner.is-offline {
  border-color: #b45309;
  background: #fff7ed;
}
.offline-banner.is-sync {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #115e59;
}
.offline-banner[hidden] { display: none !important; }

/* Who-owes payment method + reference */
.owes-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.owes-pay select {
  max-width: 10rem;
  min-height: 2.4rem;
}
.owes-pay input[name="payRef"],
.owes-pay input[name="collected"] {
  max-width: 11rem;
}
.receipt-sms {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}


/* —— Sunny Den: compact top, shelf hero, catalog, responsive —— */
body.shop-book {
  overflow-x: clip;
  max-width: 100%;
}
.shop-book .site-header .example {
  display: none;
}
.shop-book .site-header .bar {
  min-height: 3.35rem;
}
.shop-book .hero {
  padding: 0.85rem 0 0.7rem;
  text-align: left;
}
.shop-book .hero .wrap {
  min-width: 0;
}
.shop-book .sd-logo-link {
  width: min(100%, 16rem);
  margin: 0 0 0.45rem;
}
.shop-book .sd-name {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}
.shop-book .hero .kicker {
  margin: 0 0 0.2rem;
}
.shop-book .hero h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.shop-book .hero .lede {
  font-size: 0.98rem;
  margin: 0 0 0.35rem;
  max-width: 40rem;
  margin-inline: 0;
}
.shop-book .hero .book-jumps {
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
  margin-bottom: 0.25rem;
  position: sticky;
  top: 3.35rem;
  z-index: 3;
  background: var(--paper, #fff);
  padding: 0.3rem 0 0.45rem;
  flex-wrap: wrap;
  overflow-x: visible;
}
.shop-book .hero .book-jumps a {
  padding: 0.4rem 0.8rem;
  min-height: 44px;
}
.shop-book .hero .next-step {
  margin: 0.45rem 0 0.35rem;
}
.shop-book main > .wrap {
  padding-top: 0.35rem;
}
.shop-book main .section {
  margin-top: 1.75rem;
}
.shop-book .section h2 {
  margin-bottom: 0.55rem;
}
.shop-book .button,
.shop-book .emp-bar-actions .button,
.shop-book .sale-actions .button {
  margin-top: 0.15rem;
  min-height: 44px;
}
.shop-book .snapshot {
  gap: 0.85rem;
  margin: 0.85rem 0 1.35rem;
}
.shop-book .book-photo {
  margin: 0 0 0.85rem;
}
.shop-book .book-photo img {
  max-height: 11rem;
}
.shop-book .emp-bar {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.9rem;
}
.shop-book .sales-spans { margin: 1rem 0 1.2rem; gap: 0.55rem; }
.shop-book .dash-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  margin: 0.25rem 0 1.1rem;
}
.shelf-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
  max-width: 100%;
}
.shelf-make-sale .next-step {
  margin: 0 0 0.65rem;
}
.shelf-latest-recv {
  margin: 0.35rem 0 0;
}
.low-stock-alert {
  background: #fff8f0;
  border: 1px solid #e8c49a;
  border-left: 4px solid #c47a1a;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
}
.low-alert-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.low-stock-alert .note { margin: 0 0 0.5rem; }
.low-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 11rem;
  overflow: auto;
}
.low-alert-list li {
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.95rem;
}
.low-alert-qty { font-weight: 700; color: #9a4d0a; }
.low-alert-count { margin: 0.15rem 0 0.35rem; font-size: 1.55rem; line-height: 1.1; }

/* Home strip: compact Stock running low (no tall empty stretch beside Make a sale) */
a.dash-card.dash-low,
.dash-card.dash-low {
  background: #fff8f0;
  border: 1px solid #e8c49a;
  border-left: 4px solid #c47a1a;
}
a.dash-card.dash-low:hover {
  border-color: #c47a1a;
  box-shadow: 0 12px 28px rgba(196, 122, 26, 0.12);
}
a.dash-card.dash-low .dash-figure {
  color: #9a4d0a;
}

.catalog-table td.catalog-qty { font-weight: 700; }
.catalog-table { min-width: 32rem; }
.shelf-manage {
  display: grid;
  gap: 0.5rem;
  min-width: 10rem;
}
.shelf-edit summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.shelf-edit[open] {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper-2, #f7f8fa);
}
@media (max-width: 800px) {
  .shelf-hero-row {
    grid-template-columns: 1fr;
  }
  .shop-book .hero .book-jumps {
    top: 3.2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.55rem;
  }
  .shop-book .dash-strip {
    grid-template-columns: 1fr;
  }
  .shop-book .stock-form,
  .shop-book .login-card {
    width: 100%;
    max-width: 100%;
  }
  .shop-book .stock-form input,
  .shop-book .stock-form textarea,
  .shop-book .stock-form select,
  .shop-book .stock-form .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .staff-today-name { max-width: 7.5rem; }
  .shop-book .book-photo img { max-height: 8.5rem; }
}
/* Products catalog: card stack on narrow phones; table scroll otherwise */
@media (max-width: 640px) {
  .catalog-table {
    min-width: 0;
    width: 100%;
  }
  .catalog-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .catalog-table,
  .catalog-table tbody,
  .catalog-table tr,
  .catalog-table td {
    display: block;
    width: 100%;
  }
  .catalog-table tr {
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: #fff;
  }
  .catalog-table td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    padding: 0.3rem 0;
    border: 0;
    text-align: left;
  }
  .catalog-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }
  .shop-book .sales-table:not(.catalog-table) {
    min-width: 28rem;
  }
}


/* —— Sunny Den home polish —— */
body.shop-book {
  background: linear-gradient(165deg, #f3f6fb 0%, #eef2f7 42%, #f7f8fa 100%);
}
.shop-book .site-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(14, 27, 77, 0.06);
}
.shop-book .hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-bottom: 1px solid rgba(14, 27, 77, 0.08);
  box-shadow: 0 10px 28px rgba(14, 27, 77, 0.04);
}
.shop-book .dash-card,
a.dash-card {
  box-shadow: 0 10px 26px rgba(14, 27, 77, 0.06);
  border-color: rgba(14, 27, 77, 0.1);
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
a.dash-card:hover {
  box-shadow: 0 14px 32px rgba(14, 27, 77, 0.1);
  border-color: var(--shop-accent, var(--teal));
}
.shop-book .sale-desk,
.shop-book .low-stock-alert {
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
}
.shop-book .sale-desk {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
}
.home-sale-row {
  margin: 0.35rem 0 1.1rem;
  align-items: stretch;
}
.home-sale-row .sale-desk {
  margin-top: 0;
}
.home-sale-row .low-stock-alert {
  align-self: start;
  max-height: none;
  width: 100%;
}
.home-sale-row .low-stock-alert .low-alert-list {
  max-height: 8.5rem;
}
.shop-book .emp-bar {
  box-shadow: 0 6px 18px rgba(14, 27, 77, 0.05);
}
.shop-book .ask.stock-form,
.shop-book .hero .sale-gap.stock-form {
  box-shadow: 0 12px 30px rgba(14, 27, 77, 0.07);
}
@media (max-width: 800px) {
  .home-sale-row {
    grid-template-columns: 1fr;
  }
}

/* Sale payment on Sold (cash/debit/credit — never card PAN) */
.sale-sold-form {
  display: grid;
  gap: 0.4rem;
  min-width: min(100%, 14rem);
  flex: 1 1 12rem;
}
.sale-pay-method {
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
}
.sale-pay-hint {
  margin: 0;
  font-size: 0.78rem;
}
.sales-staff-filter {
  margin-top: 0.35rem;
}
.sales-table-enriched {
  min-width: 48rem;
}
@media print {
  .sales-spans, .sales-mail, .bottom-nav, .site-header .bar form { display: none !important; }
  .sales-table-enriched { min-width: 0; }
}

/* Staff today timeline */
a.staff-today-name {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}
.staff-today-name-static {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.staff-today-row-self {
  border-color: rgba(14, 27, 77, 0.28);
  background: #fff;
}
.staff-timeline {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  margin: 0.35rem 0 1.1rem;
}
.staff-timeline-sub {
  margin: 0.85rem 0 0.45rem;
  font-size: 1rem;
}
.staff-timeline-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.staff-timeline-log li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.85rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper-2, #f7f8fa);
  margin: 0;
}
.staff-timeline-kind { font-weight: 700; color: var(--navy); }
.staff-timeline-when { color: var(--muted); font-size: 0.92rem; }
.staff-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.staff-timeline-actions .button {
  min-height: 44px;
  margin: 0;
}


/* add-stock-card layout */
.shop-book .add-stock-wrap {
  max-width: 52rem;
  width: 100%;
}
.shop-book .stock-form.add-stock-card {
  max-width: 52rem;
  width: 100%;
  gap: 0.45rem;
  margin-top: 0.35rem;
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  padding: 1.2rem 1.25rem 1.35rem;
}
.shop-book .add-stock-card > h2 {
  margin: 0 0 0.15rem;
  color: var(--navy);
}
.shop-book .add-stock-hint {
  margin: 0 0 0.55rem;
}
.shop-book .add-stock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem 1.35rem;
  align-items: start;
}
.shop-book .add-stock-col {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}
.shop-book .add-stock-col > label:first-child {
  margin-top: 0;
}
.shop-book .add-stock-col .price-pair {
  margin: 0;
}
.shop-book .add-stock-loc {
  margin: 0.9rem 0 0.15rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border: 1px solid rgba(14, 27, 77, 0.08);
  border-radius: 0.65rem;
  background: var(--paper-2, #f7f6f2);
  min-width: 0;
}
.shop-book .add-stock-loc legend {
  padding: 0 0.3rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.shop-book .add-stock-loc .loc-fields {
  margin: 0.35rem 0 0;
}
.shop-book .add-stock-card .add-stock-submit {
  margin-top: 1.05rem;
  justify-self: start;
  min-width: 11rem;
  padding: 0.9rem 1.5rem;
  box-shadow: 0 10px 22px rgba(14, 120, 110, 0.22);
}
.shop-book .add-stock-card .add-stock-submit:hover {
  box-shadow: 0 12px 26px rgba(14, 120, 110, 0.28);
}
@media (max-width: 800px) {
  .shop-book .add-stock-grid {
    grid-template-columns: 1fr;
  }
  .shop-book .add-stock-card .add-stock-submit {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}

/* Add stock pack quantity */
.shop-book .add-stock-qty {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.shop-book .pack-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0.15rem 0 0;
  min-height: 44px;
  cursor: pointer;
}
.shop-book .pack-toggle input {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin: 0;
  accent-color: var(--navy, #0e1b4d);
}
.shop-book .pack-fields {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-2, #f7f8fa);
}
.shop-book .pack-mode {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.35rem;
}
.shop-book .pack-mode legend {
  padding: 0;
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.shop-book .pack-mode-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.shop-book .pack-mode-opt input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}
.shop-book .pack-math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.shop-book .pack-total {
  margin: 0.15rem 0 0;
  font-weight: 600;
}
@media (max-width: 520px) {
  .shop-book .pack-math-grid {
    grid-template-columns: 1fr;
  }
}


/* Edit employees — card layout matching shelf/home */
.emp-edit-list {
  display: grid;
  gap: 0.85rem;
  margin: 0.85rem 0 1.25rem;
}
.emp-edit-card {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  padding: 0;
  overflow: hidden;
}
.emp-edit-card.is-open {
  border-color: var(--shop-accent, var(--teal));
  box-shadow: 0 12px 28px rgba(14, 27, 77, 0.1);
}
.emp-edit-head {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem 0.95rem;
}
.emp-edit-head:hover { background: var(--paper-2, #f7f8fa); }
.emp-edit-head h3 { margin: 0 0 0.25rem; }
.emp-edit-head .note { margin: 0; }
.emp-edit-body {
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid var(--line);
}
.emp-edit-form, .emp-add-card {
  margin-top: 0.85rem;
  max-width: 100%;
}
.emp-page-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0.55rem;
}
.emp-hist { margin: 0.85rem 0 1rem; }
.emp-hist-month {
  background: var(--paper-2, #f7f8fa);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  margin: 0.45rem 0;
}
.emp-hist-month summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.emp-hist-month-body { margin-top: 0.55rem; }
.emp-hist-day {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.emp-hist-day-label { margin: 0 0 0.35rem; }

/* Timeline Break / Sign out at top */
.staff-timeline-actions {
  margin: 0.55rem 0 0.85rem;
}
.staff-break-btn-go {
  background: #c47a1a !important;
  border-color: #c47a1a !important;
  color: #fff !important;
}
.staff-break-btn-on {
  background: #e6a817 !important;
  border-color: #c47a1a !important;
  color: #1c2430 !important;
}


/* Sunny Den receipts — clickable cards + letterhead */
.receipt-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 1.25rem;
}
.receipt-card {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  overflow: hidden;
}
.receipt-card[open] {
  border-color: var(--shop-accent, var(--teal));
}
.receipt-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 0.45rem 0.75rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  min-height: 52px;
  font-weight: 600;
  color: var(--navy);
}
.receipt-summary::-webkit-details-marker { display: none; }
.receipt-sum-date { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.receipt-sum-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-sum-total { font-family: Georgia, "Iowan Old Style", Palatino, serif; color: var(--navy); }
.receipt-card-body {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 1.1rem;
}
.receipt-letterhead {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--shop-accent, var(--teal));
}
.receipt-letterhead .sd-logo-link { margin-bottom: 0.35rem; }
.receipt-lines {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.receipt-lines div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
}
.receipt-lines dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.receipt-lines dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .receipt-summary {
    grid-template-columns: 1fr auto;
  }
  .receipt-sum-date { grid-column: 1 / -1; }
  .receipt-lines div { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media print {
  .receipt-list details:not([open]) { display: none !important; }
  .receipt-summary { display: none !important; }
  .receipt-card, .receipt-card-body { border: 0; box-shadow: none; }
}


/* Who owes — premium dual tables */
.owes-page .owes-block,
.owes-block {
  margin-top: 1.25rem;
}
.owes-table-wrap {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(14, 27, 77, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
}
.owes-premium {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
}
.owes-premium thead th {
  background: #f3f5f9;
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(14, 27, 77, 0.1);
}
.owes-premium td {
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(14, 27, 77, 0.06);
  font-size: 0.95rem;
}
.owes-premium .owes-row-alt td {
  background: #fafbfd;
}
.owes-premium .owes-name { text-align: left; min-width: 8rem; }
.owes-premium .owes-amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.owes-premium .owes-status { text-align: left; white-space: nowrap; }
.owes-premium .owes-for { text-align: left; color: var(--muted); max-width: 12rem; }
.owes-premium .owes-payments { text-align: left; font-size: 0.88rem; color: var(--muted); max-width: 14rem; }
.owes-premium .owes-actions { min-width: 11rem; }
.owes-amt-sub { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.owes-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.owes-chip-open { background: #fef7e0; color: #8a5a00; border: 1px solid #fce8b2; }
.owes-chip-paid { background: #e6f4ea; color: #0d652d; border: 1px solid #ceead6; }
.owes-total-row td {
  background: #f3f5f9;
  border-bottom: 0;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.owes-total-label { text-align: left; color: var(--muted); font-size: 0.88rem; }
.owes-empty { text-align: center; color: var(--muted); padding: 1.1rem !important; }
.owes-pay { display: grid; gap: 0.35rem; margin: 0; }
@media (max-width: 800px) {
  .owes-table-wrap { overflow-x: auto; }
  .owes-premium { min-width: 40rem; }
}

/* Staff late flag + live board */
.staff-late-flag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b1a1a;
  background: #fce8e6;
  border: 1px solid #f5c6c2;
  vertical-align: middle;
}
.staff-chip-late {
  box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.25);
}
.staff-live-board {
  margin: 0.75rem 0 1.1rem;
  padding: 0.85rem 1rem 1rem;
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
}
.staff-board-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.staff-board-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-2, #f7f8fa);
}
.staff-board-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-board-when { font-size: 0.82rem; color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .staff-board-row { grid-template-columns: 1fr auto; }
  .staff-board-when { grid-column: 1 / -1; text-align: left; }
}


/* ===== Polished staff menu (Break / Break over / Sign out) ===== */
.staff-menu-panel {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.95rem;
  box-shadow: 0 12px 28px rgba(14, 27, 77, 0.07);
  padding: 1.1rem 1.15rem 1.2rem;
  margin: 0.85rem 0 1.25rem;
  border-left: 4px solid #5f6368;
}
.staff-menu-active { border-left-color: #0d652d; }
.staff-menu-break { border-left-color: #c47a1a; }
.staff-menu-signedout { border-left-color: #b3261e; }
.staff-menu-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.staff-menu-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.staff-menu-head-main h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}
.staff-menu-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.staff-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.55rem !important;
  padding: 0.75rem;
  background: var(--paper-2, #f7f8fa);
  border: 1px solid rgba(14, 27, 77, 0.08);
  border-radius: 0.75rem;
}
.staff-action-form { margin: 0; }
.staff-menu-actions .button,
.staff-break-btn,
.staff-signout-btn {
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.65rem;
}
.staff-break-btn-go {
  background: #c47a1a !important;
  border-color: #a86410 !important;
  color: #fff !important;
}
.staff-break-btn-on {
  background: #f5c518 !important;
  border-color: #c47a1a !important;
  color: #1c2430 !important;
}
.staff-signout-btn {
  background: #fff !important;
  border: 2px solid #b3261e !important;
  color: #b3261e !important;
}
.staff-signout-btn:hover {
  background: #fce8e6 !important;
}
.staff-action-legend {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.staff-legend-break { color: #c47a1a; font-weight: 700; }
.staff-legend-over { color: #0d652d; font-weight: 700; }
.staff-legend-out { color: #b3261e; font-weight: 700; }
.staff-late-banner {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: #fce8e6;
  border: 1px solid #f5c6c2;
  color: #8b1a1a;
  font-weight: 600;
}
.staff-menu-locked {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: #f1f3f4;
  color: var(--muted);
  font-weight: 500;
}
.staff-timeline-sub {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.staff-timeline-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.staff-log-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper-2, #f7f8fa);
  margin: 0;
  border-left: 3px solid #5f6368;
}
.staff-log-signIn { border-left-color: #0d652d; }
.staff-log-break { border-left-color: #c47a1a; }
.staff-log-return { border-left-color: #0d652d; }
.staff-log-signOut { border-left-color: #b3261e; }
.staff-menu-close { margin: 0.85rem 0 0; }
.staff-today-row-self {
  border-color: var(--shop-accent, var(--teal));
  box-shadow: 0 0 0 1px rgba(14, 27, 77, 0.06);
}
.staff-today-row-active { border-left: 3px solid #0d652d; }
.staff-today-row-break { border-left: 3px solid #c47a1a; }
.staff-today-row-signedout { border-left: 3px solid #b3261e; }
.staff-today-row-inactive { border-left: 3px solid #dadce0; }
.staff-chip-active { color: #0d652d; background: #e6f4ea; border-color: #ceead6; }
.staff-chip-break { color: #8a5a00; background: #fef7e0; border-color: #fce8b2; }
.staff-chip-signedout { color: #b3261e; background: #fce8e6; border-color: #f5c6c2; }
.staff-chip-inactive { color: #5f6368; background: #f1f3f4; border-color: #dadce0; }
@media (max-width: 520px) {
  .staff-menu-actions { grid-template-columns: 1fr; }
}


/* Growth dashboard */
.growth-dash { display: grid; gap: 0.35rem; }
.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0.35rem;
}
.growth-grid-2 { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.growth-card {
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  padding: 0.85rem 1rem;
  min-width: 0;
}
.growth-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.growth-figure {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.growth-sub { margin: 0.35rem 0 0; font-size: 0.85rem; }
.growth-table-wrap {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(14, 27, 77, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
}
.growth-table { margin: 0; width: 100%; }
.growth-table th, .growth-table td { padding: 0.65rem 0.85rem; }
.growth-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.growth-low-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.growth-low-list li {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff8f0;
}


/* Premium Staff today cards */
.staff-today-cards {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}
.staff-card {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(14, 27, 77, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(14, 27, 77, 0.05);
  border-left: 4px solid #dadce0;
  min-width: 0;
}
.staff-card-active { border-left-color: #0d652d; }
.staff-card-break { border-left-color: #c47a1a; }
.staff-card-signedout { border-left-color: #b3261e; }
.staff-card-inactive { border-left-color: #dadce0; opacity: 0.92; }
.staff-card-self {
  box-shadow: 0 10px 26px rgba(14, 27, 77, 0.1);
  border-color: rgba(14, 27, 77, 0.16);
}
.staff-card-openable .staff-card-name { text-decoration: none; }
.staff-card-openable:hover {
  border-color: var(--shop-accent, var(--teal));
}
.staff-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
}
.staff-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.staff-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}
.staff-card-when {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.staff-page-board h2 { margin-bottom: 0.25rem; }
.dash-staff .staff-today-cards {
  grid-template-columns: 1fr;
}

.shelf-hero-row .low-stock-alert {
  height: auto;
  align-self: start;
  max-height: 16rem;
  overflow: auto;
}


/* Credit customer capture (inline under Credit) */
.credit-capture {
  margin: 0.35rem 0 0;
  border: 1px solid rgba(14, 27, 77, 0.12);
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.55rem 0.7rem 0.75rem;
}
.credit-capture-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.credit-capture-summary::-webkit-details-marker { display: none; }
.credit-capture[open] .credit-capture-summary {
  margin-bottom: 0.55rem;
}
.credit-capture-fields {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
.credit-capture-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--navy);
}
.credit-capture-fields label {
  font-size: 0.9rem;
  margin: 0.15rem 0 0;
}
.credit-capture-fields .req { color: #9a4d0a; font-weight: 600; font-size: 0.8rem; }
.credit-capture-fields .opt { color: #64748b; font-size: 0.8rem; }
.credit-capture-fields input {
  width: 100%;
  box-sizing: border-box;
}
.owes-contact {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #475569;
  font-weight: 400;
  line-height: 1.35;
}


/* Shop-book footer matches header accent; keep links clear of fixed bottom-nav */
body.shop-book .site-footer {
  border-top: 3px solid var(--shop-accent, var(--teal));
}
.company-brand-block {
  margin: 0 0 1rem;
}
.company-brand-block .sd-logo-link { margin-bottom: 0.35rem; }
.company-brand-block .sd-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--shop-accent, #0a3d91);
}
.letter-brand {
  font-weight: 800;
  color: var(--shop-accent, var(--navy));
}
.letter-brand-block .sd-logo-link { margin-bottom: 0.45rem; }
.catalog-loc-summary { margin: 0.35rem 0 0.75rem; }
@media (max-width: 800px) {
  body.shop-book .site-footer {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
}


/* Responsive: catalog scrolls on phone; footer clear of bottom-nav */
.catalog-table { min-width: 28rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 800px) {
  body.shop-book { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body.shop-book .site-footer {
    margin-bottom: 0;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
  .shop-book .sd-logo-link { width: min(100%, 14rem); }
  .shop-book .sd-name { font-size: 0.88rem; overflow-wrap: anywhere; }
  .company-brand-block .sd-name { font-size: 0.9rem; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  body.shop-book .site-footer { padding-bottom: 1.75rem; }
  .shop-book .sd-logo-link { width: min(100%, 15rem); }
}
@media (min-width: 1101px) {
  body.shop-book .site-footer { padding-bottom: 1.5rem; }
}
