@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #192c25;
  background: #f3f5ef;
  font-synthesis: none;
  --ink: #192c25;
  --muted: #718076;
  --line: #dfe5dc;
  --green: #d4ed9e;
  --dark: #192c25;
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #839f45;
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.wordmark {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1.4px;
  font-weight: 600;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
}
small,
.muted {
  color: var(--muted);
}
.loading {
  padding: 15vh 10vw;
}
.wordmark {
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 24px;
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 2.5px;
  display: block;
  margin-top: 7px;
  font-weight: 500;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--dark);
  color: #fff;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.sidebar .wordmark {
  margin-bottom: 55px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  background: none;
  color: #aabbaf;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 14px;
}
.nav button.active {
  background: #d4ed9e;
  color: #192c25;
  font-weight: 700;
}
.nav svg,
.icon svg {
  width: 20px;
  height: 20px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid #3d4d42;
  font-size: 12px;
  color: #aabbaf;
  line-height: 1.8;
}
.sidebar-foot b {
  color: #e1ebdf;
}
.main {
  padding: 28px 42px 50px;
  max-width: 1600px;
  width: 100%;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: #e3e8da;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.location {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 10px 34px 10px 13px;
  max-width: 210px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 12px 0 28px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}
.btn {
  background: var(--dark);
  color: white;
  border: 1px solid var(--dark);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn.light {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.lime {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.btn.danger {
  background: #a93632;
  border-color: #a93632;
}
.btn.tiny {
  padding: 8px 11px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.hero {
  background: #e3e9da;
  display: grid;
  grid-template-columns: 1fr 260px;
  border-radius: 20px;
  padding: 30px 34px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.hero h2 {
  font-size: 28px;
  font-weight: 500;
  max-width: 430px;
  line-height: 1.35;
}
.hero p {
  font-size: 13px;
  color: #657460;
  margin: 12px 0 20px;
  max-width: 430px;
  line-height: 1.7;
}
.orbit {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  width: 200px;
  height: 100px;
  border: 1px solid #b4c3a3;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.orbit:after {
  transform: rotate(30deg);
  width: 180px;
  height: 140px;
}
.orbit svg {
  width: 220px;
  position: relative;
  z-index: 1;
  transform: rotate(-15deg);
  filter: drop-shadow(0 18px 9px #273d2722);
  animation: float 7s ease-in-out infinite;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  background: #fff;
}
.stat small {
  font-size: 12px;
}
.stat strong {
  font-size: 30px;
  display: block;
  font-family: Manrope;
  margin: 9px 0 5px;
  font-weight: 600;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-top {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-top h2 {
  font-size: 17px;
}
.search {
  display: flex;
  gap: 7px;
  max-width: 380px;
}
.search input {
  padding: 10px 13px;
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  width: 220px;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  background: #fafbf8;
  padding: 14px 24px;
}
td {
  font-size: 13px;
  padding: 18px 24px;
  border-top: 1px solid #edf0e8;
}
td .title {
  font-weight: 600;
  margin-bottom: 5px;
}
td small {
  font-size: 11px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}
.thumb {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: #edf0e8;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #7b8e71;
}
.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: #edf4df;
  color: #5a7737;
  font-size: 10px;
  font-weight: 600;
}
.badge.warn {
  background: #fff0d3;
  color: #8a681d;
}
.badge.error {
  background: #ffe7e3;
  color: #a2493b;
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.notice {
  padding: 13px 18px;
  background: #fff0d5;
  color: #775f28;
  border: 1px solid #eddfbe;
  border-radius: 10px;
  font-size: 12px;
  margin: 15px 0;
  line-height: 1.6;
}
.notice.info {
  background: #e9efdf;
  color: #4e6441;
  border-color: #d2ddc1;
}
.mobile-brand {
  display: none;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-story {
  background: var(--dark);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story h1 {
  font-size: clamp(45px, 5vw, 74px);
  line-height: 1.1;
  max-width: 520px;
  letter-spacing: -3px;
}
.login-story h1 span {
  color: var(--green);
}
.login-story p {
  max-width: 370px;
  color: #afc0b2;
  line-height: 1.8;
  font-size: 14px;
  margin-top: 22px;
}
.login-form {
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form > div {
  max-width: 350px;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.login-form p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}
input,
textarea,
select {
  color: var(--ink);
  padding: 12px;
  border: 1px solid #d8dfd2;
  background: #fff;
  border-radius: 8px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
}
.login-form .btn {
  width: 100%;
  margin: 8px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
.variants {
  background: #f4f6f0;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.variant {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 12px;
}
.variant:last-child {
  border: 0;
  margin: 0;
}
.variant-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 10px;
}
.variant-fields label {
  font-size: 10px;
}
.variant-fields input {
  padding: 9px;
  min-width: 0;
}
.form-error {
  color: #a1342a;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
  white-space: pre-wrap;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-head button {
  background: #f1f4ec;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 21px;
  color: var(--ink);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 680px;
  width: calc(100% - 28px);
  padding: 28px;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #10201688;
  backdrop-filter: blur(4px);
}
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.detail-top {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 25px;
}
.detail-img {
  height: 120px;
  width: 130px;
  object-fit: contain;
  border-radius: 12px;
  background: #f2f4ef;
}
.detail-top h3 {
  font-size: 20px;
  margin: 8px 0;
}
.detail-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: #f4f6ef;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.detail-prices small {
  display: block;
  margin-bottom: 7px;
}
.detail-prices b {
  font-size: 17px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setting-card {
  padding: 25px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
}
.setting-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 20px;
}
.setting-card h3 {
  font-size: 18px;
}
.checklist label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 12px;
  background: #233c2c;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 40px #0002;
  z-index: 10;
  max-width: 90%;
  display: none;
}
.demo-ribbon {
  padding: 9px 16px;
  background: #d4ed9e;
  font-size: 12px;
  text-align: center;
}
.statusline {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.slide-in {
  animation: enter 0.35s ease-out;
}
.settings-list {
  padding: 0;
  margin: 20px 0;
  list-style: none;
}
.settings-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.mono {
  font-family: monospace;
  word-break: break-all;
  white-space: normal;
  font-size: 11px;
}
details {
  margin: 16px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
}
button svg {
  width: 16px;
  height: 16px;
}
@keyframes float {
  50% {
    transform: translateY(-9px) rotate(-10deg);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1400px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 30px 18px;
  }
  .main {
    padding: 25px;
  }
  .hero {
    grid-template-columns: 1fr 180px;
    padding: 25px;
  }
  .orbit svg {
    width: 180px;
  }
  td,
  th {
    padding: 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .search input {
    width: 170px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: auto;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    z-index: 5;
    background: #192c25;
  }
  .sidebar .wordmark,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
  }
  .nav button {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
    padding: 8px 4px;
    border-radius: 9px;
  }
  .nav svg {
    width: 18px;
    height: 18px;
  }
  .main {
    padding: 18px 16px 100px;
  }
  .topbar {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }
  .mobile-brand {
    display: block;
    font-size: 20px;
  }
  .crumb,
  .top-actions .user-name {
    display: none;
  }
  .top-actions {
    gap: 7px;
  }
  .location {
    max-width: 138px;
    padding: 9px;
    font-size: 11px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 23px;
  }
  .heading p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 220px;
  }
  .heading .btn {
    padding: 10px 12px;
    font-size: 11px;
    margin-top: 22px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero {
    padding: 24px;
    grid-template-columns: 1fr 90px;
    border-radius: 15px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .hero p {
    font-size: 11px;
    margin: 10px 0 15px;
    max-width: 230px;
  }
  .orbit {
    min-height: 130px;
  }
  .orbit svg {
    width: 150px;
    left: 12px;
  }
  .orbit:before {
    width: 120px;
    height: 70px;
  }
  .orbit:after {
    width: 100px;
    height: 130px;
  }
  .hero .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .stats {
    gap: 8px;
    margin: 16px 0 23px;
  }
  .stat {
    padding: 13px 10px;
    border-radius: 11px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat p {
    font-size: 9px;
    line-height: 1.6;
  }
  .panel-top {
    padding: 17px;
    flex-wrap: wrap;
  }
  .panel-top h2 {
    font-size: 16px;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .search input {
    width: 100%;
    flex: 1;
  }
  .table-scroll {
    overflow: visible;
  }
  .stock-table thead {
    display: none;
  }
  .stock-table,
  .stock-table tbody {
    display: block;
  }
  .stock-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 6px;
    padding: 18px;
    border-top: 1px solid var(--line);
  }
  .stock-table td {
    display: block;
    border: 0;
    padding: 0;
    white-space: normal;
  }
  .stock-table td:first-child {
    grid-column: 1;
  }
  .stock-table td:nth-child(2) {
    text-align: right;
  }
  .stock-table td:nth-child(3) {
    font-size: 12px;
    color: var(--muted);
    align-self: center;
  }
  .stock-table td:nth-child(4) {
    text-align: right;
  }
  .stock-table td:nth-child(5) {
    grid-column: 1/-1;
  }
  .stock-table .actions {
    justify-content: flex-end;
  }
  .stock-table .thumb {
    width: 36px;
    height: 40px;
  }
  .pager {
    padding: 14px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 27px;
    min-height: 240px;
    gap: 35px;
  }
  .login-story h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .login-story p,
  .login-story footer {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .form-grid {
    gap: 0 12px;
  }
  dialog {
    padding: 22px;
    max-height: 92dvh;
  }
  .detail-top {
    gap: 14px;
  }
  .detail-img {
    width: 100px;
    height: 110px;
  }
  .detail-top h3 {
    font-size: 17px;
  }
  .variant-fields {
    grid-template-columns: 1fr 1fr;
  }
  #toast {
    bottom: 95px;
  }
  .panel.log .table-scroll {
    overflow: auto;
  }
  .statusline {
    font-size: 10px;
  }
}

/* Stockroom v2: compact entry and common pricing. */
[hidden] { display: none !important; }
.form-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.form-section h3 { margin: 0 0 14px; }
.inline-check { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.inline-check input { width: 18px; height: 18px; flex: 0 0 auto; }
.variant-pricing { border: 0; margin: 12px 0; padding: 0; min-width: 0; }
.compact-variant .variant-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sku-preview { overflow-wrap: anywhere; }
.pricing-editor input[readonly] { background: #e7eddd; }
.price-preview { min-height: 34px; }
.partner-choices { max-height: 220px; overflow-y: auto; }
#modal { max-height: 92dvh; overflow-y: auto; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media(max-width: 600px) {
  .compact-variant .variant-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-variant .variant-fields label:last-child { grid-column: 1 / -1; }
  .pricing-editor .form-grid { grid-template-columns: 1fr; }
  .compact-variant { padding: 14px 0; }
  #modal { max-width: calc(100vw - 20px); }
}
