:root {
  --green: #153d32;
  --green2: #255b49;
  --ink: #202c27;
  --muted: #68746b;
  --cream: #f7f7f1;
  --line: #dce0d7;
  --gold: #9a7b40;
  --danger: #973f3a;
  --frame: 4/5;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b9c4b9;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--ink);
}
textarea {
  min-height: 92px;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--green);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
small,
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1.7px;
  margin-bottom: 16px;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
svg {
  vertical-align: middle;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b89650;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
  background: #fff;
  padding: 15px;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: 4px;
  color: var(--green);
}
.brand svg {
  width: 29px;
  height: 34px;
}
.header-right,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-right .sample {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  background: #f2eee3;
  padding: 7px 9px;
  border-radius: 4px;
  color: #796231;
}
.avatar {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 12px;
  font-weight: 600;
}
.container {
  max-width: 1240px;
  margin: auto;
  padding: 40px 36px 145px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 15px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 28px;
  margin-bottom: 28px;
}
.intro p {
  max-width: 470px;
  color: var(--muted);
  margin-bottom: 0;
}
.collection-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.search {
  position: relative;
  flex: 1;
  max-width: 440px;
}
.search input {
  padding-left: 43px;
  background: #fff;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
}
.product-card {
  min-width: 0;
}
.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--frame);
  background: #eae8e1;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-link {
  display: block;
  text-decoration: none;
  position: relative;
}
.media-link:focus-visible {
  outline-offset: 5px;
}
.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffffd9;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}
.product-ref {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 16px 0 7px;
}
.product-card h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  margin: 0 0 5px;
}
.product-card a {
  text-decoration: none;
}
.description {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  min-height: 39px;
}
.price {
  font-size: 17px;
  font-weight: 600;
  margin: 13px 0 6px;
}
.price span {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.stock {
  font-size: 12px;
  color: #43664d;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stock:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6a9470;
}
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--green);
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.btn:hover {
  background: var(--green2);
}
.btn.secondary {
  background: transparent;
  color: var(--green);
  border-color: #bdc9be;
}
.btn.secondary:hover {
  background: #e9eee5;
}
.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
}
.btn.full {
  width: 100%;
}
.link-button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 4px;
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
}
.card-action .btn {
  min-height: 44px;
  padding: 10px 13px;
}
.filename {
  font-size: 12px;
  color: #80877f;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.customer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  background: #fffffff5;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(12px);
}
.customer-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 68px;
  width: 215px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  position: relative;
}
.customer-nav a.active {
  color: var(--green);
  font-weight: 600;
}
.customer-nav a.active:before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--green);
}
.selection-bar {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  right: 30px;
  left: auto;
  z-index: 19;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 13px 16px 13px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 8px 35px #153d3230;
}
.selection-bar .btn {
  background: #fff;
  color: var(--green);
  border: 0;
}
.selection-bar small {
  display: block;
  color: #b9d0c1;
  font-size: 12px;
}
.selection-bar strong {
  font-size: 16px;
}
.empty {
  text-align: center;
  border: 1px dashed var(--line);
  padding: 55px 20px;
  border-radius: 10px;
  background: #fff;
}
.empty h2 {
  font-size: 28px;
}
.panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 16px 0;
}
.panel p:last-child {
  margin: 0;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #dbd5bd;
  border-radius: 7px;
  background: #f4f0e4;
  color: #6d603b;
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0;
}
.error {
  background: #fbefeb;
  border-color: #e7c4bd;
  color: #8e3531;
}
.balance {
  padding: 30px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  margin-bottom: 30px;
}
.balance small {
  color: #c5d6c8;
}
.balance .amount {
  font-family: Georgia, serif;
  font-size: 40px;
  display: block;
  margin-top: 12px;
}
.history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.history-row {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
}
.history-row h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.history-row p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.history-row .amount {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
}
.history-row .amount small {
  display: block;
  font-weight: 400;
  font-size: 12px;
}
.status {
  display: inline-block;
  background: #edf2e8;
  color: #486440;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 7px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.detail-media {
  aspect-ratio: 4/5;
  background: #eae8e1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-media img,
.detail-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail h1 {
  font-size: 40px;
}
.detail .price {
  font-size: 28px;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  margin: 25px 0;
}
.specs div {
  padding: 15px;
  background: var(--cream);
  font-size: 14px;
}
.specs small {
  display: block;
  font-size: 12px;
}
.quantity {
  display: inline-flex;
  border: 1px solid #b6c4b6;
  border-radius: 6px;
  overflow: hidden;
  height: 48px;
}
.quantity button {
  width: 48px;
  border: 0;
  background: #f5f7ef;
  font-size: 22px;
  color: var(--green);
}
.quantity input {
  width: 60px;
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 4px;
}
.piece {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  margin: 12px 0;
}
.piece img {
  width: 74px;
  height: 82px;
  object-fit: contain;
  background: #eae8e1;
}
.piece .btn {
  margin-left: auto;
}
.piece h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.piece p {
  margin: 0;
  font-size: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.wide {
  grid-column: 1/-1;
}
.field p {
  margin: 6px 0 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.admin-tabs a {
  font-size: 13px;
}
.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
}
.admin-card h3 {
  margin: 0 0 5px;
}
.admin-card small {
  display: block;
}
.admin-card .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-card .btn {
  font-size: 12px;
  min-height: 44px;
  padding: 10px 12px;
}
.login-wrap {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1200px;
  margin: auto;
  align-items: center;
  padding: 45px;
  gap: 100px;
}
.login-art {
  background: var(--green);
  color: #fff;
  padding: 65px 45px;
  border-radius: 12px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 58px;
  margin-top: 35px;
  max-width: 340px;
}
.login-art p {
  color: #c8d4c9;
  max-width: 310px;
}
.login-art .eyebrow {
  color: #b7c9b1;
}
.login-form {
  max-width: 380px;
}
.login-form h2 {
  font-size: 36px;
}
.login-form .field {
  margin-bottom: 20px;
}
.sample-roles {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.sample-roles button {
  min-height: 44px;
  border: 1px solid #d7dccf;
  background: white;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
}
.login-footer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 30px;
}
.loading {
  padding: 70px 30px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -150%);
  max-width: calc(100% - 30px);
  width: max-content;
  padding: 14px 20px;
  background: #203e31;
  color: #fff;
  border-radius: 9px;
  z-index: 100;
  transition: transform 0.2s;
  box-shadow: 0 8px 28px #0002;
  font-size: 14px;
}
#toast.show {
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  padding: 26px;
  width: min(670px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #122d2570;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 27px;
}
.close {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
}
.dialog-body img.full-media {
  width: 100%;
  height: auto;
}
.tray-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.tray-line h3 {
  margin-bottom: 5px;
}
.totals {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 18px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  margin-bottom: 22px;
  min-height: 44px;
  font-size: 14px;
}
.crop-stage {
  position: relative;
  touch-action: none;
  background: #eae8e1;
  margin: 15px 0;
}
.crop-stage img {
  width: 100%;
  display: block;
  pointer-events: none;
}
.crop-stage video { width: 100%; display: block; pointer-events: none; }
.thumbnail-tools { align-items: end; margin-top: 12px; }
.thumbnail-tools label { flex: 1; }
.thumbnail-stage { width: 100%; overflow: hidden; cursor: crosshair; }
.thumbnail-review { display: flex; align-items: center; gap: 18px; margin: 16px 0; }
.thumbnail-review canvas { width: 100px; height: 100px; flex: 0 0 100px; border-radius: 6px; }
.thumbnail-review p { margin: 0; font-size: 13px; }
.thumbnail-coordinates { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.invoice-thumbnail { width: 64px; height: 64px; object-fit: contain; background: #f2f1ed; border-radius: 6px; flex: 0 0 64px; }
.invoice-description { flex: 1; min-width: 0; }
.invoice-line { gap: 14px; }
.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #164733;
  background: #194e3520;
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.crop-box span {
  background: var(--green);
  padding: 3px 5px;
}
.crop-help {
  font-size: 13px;
}
.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.selected-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 8px;
}
.selected-media span {
  overflow-wrap: anywhere;
}
.selected-media button {
  padding: 8px;
  min-height: 44px;
}
.empty-dot {
  color: #9aab95;
}
.footer-note {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.invoice-line {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.invoice-line h3 {
  margin: 0 0 5px;
}
.invoice-line p {
  margin: 0;
}
@media (max-width: 600px) {
  .invoice-line:has(.invoice-thumbnail) { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px 14px; }
  .invoice-line .invoice-thumbnail { grid-row: 1 / 3; }
  .invoice-line:has(.invoice-thumbnail) > strong { grid-column: 2; }
  .thumbnail-tools { flex-wrap: wrap; }
  .thumbnail-tools label { min-width: 150px; }
}
.setup-note {
  font-size: 13px;
}
.no-scroll {
  overflow: hidden;
}
@media (min-width: 1000px) {
  .customer-nav {
    position: static;
    border: 0;
    gap: 4px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .customer-nav a {
    width: auto;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .customer-nav a.active:before {
    top: auto;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
  }
  .customer-nav svg {
    width: 17px;
  }
  .header:has(.customer-nav) {
    gap: 25px;
  }
  .selection-bar {
    bottom: 25px;
  }
  .container {
    padding-bottom: 130px;
  }
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header {
    padding: 17px 28px;
  }
  .login-wrap {
    gap: 40px;
    padding: 35px;
  }
  .login-art {
    padding: 35px;
    min-height: 500px;
  }
  .login-art h1 {
    font-size: 48px;
  }
  .split {
    gap: 28px;
  }
}
@media (max-width: 767px) {
  .header {
    padding: 15px 20px;
  }
  .brand {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .brand svg {
    width: 24px;
  }
  .header-right .sample {
    font-size: 9px;
    padding: 6px;
  }
  .avatar {
    width: 42px;
    height: 42px;
  }
  .container {
    padding: 25px 18px 195px;
  }
  .intro {
    display: block;
    padding: 4px 0 22px;
    margin-bottom: 20px;
  }
  .intro h1 {
    font-size: 39px;
    max-width: 320px;
    letter-spacing: -1.4px;
  }
  .intro p {
    font-size: 14px;
    max-width: 320px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .intro .row {
    margin-top: 18px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar .chip {
    padding: 9px 15px;
    font-size: 13px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .product-card h3 {
    font-size: 20px;
  }
  .description {
    font-size: 13px;
    min-height: 36px;
  }
  .product-ref {
    font-size: 10px;
    margin-top: 12px;
    letter-spacing: 1px;
  }
  .price {
    font-size: 16px;
  }
  .price span {
    font-size: 12px;
    display: block;
    margin-top: 4px;
  }
  .media-badge {
    font-size: 9px;
    top: 8px;
    left: 8px;
    padding: 5px 6px;
  }
  .card-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .card-action .btn {
    width: 100%;
    min-height: 44px;
  }
  .filename {
    font-size: 11px;
  }
  .stock {
    font-size: 11px;
  }
  .customer-nav a {
    width: 33.333%;
    font-size: 11px;
    min-height: 70px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .customer-nav svg {
    width: 21px;
    height: 21px;
  }
  .selection-bar {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    padding: 12px 13px;
    gap: 10px;
    justify-content: space-between;
  }
  .selection-bar .btn {
    font-size: 13px;
    padding: 12px 14px;
  }
  .selection-bar strong {
    font-size: 14px;
  }
  .selection-bar small {
    font-size: 11px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .detail-media {
    aspect-ratio: 4/4.2;
  }
  .detail h1 {
    font-size: 35px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  .panel {
    padding: 18px;
  }
  .balance {
    padding: 25px;
  }
  .balance .amount {
    font-size: 36px;
  }
  .history-row {
    padding: 17px 14px;
    gap: 10px;
  }
  .history-row .amount {
    font-size: 14px;
    white-space: normal;
    text-align: right;
    min-width: 105px;
  }
  .history-row h3 {
    font-size: 14px;
  }
  .history-row p {
    font-size: 12px;
  }
  .history-row .amount small {
    font-size: 11px;
  }
  .login-wrap {
    display: block;
    padding: 30px 24px;
  }
  .login-art {
    display: none;
  }
  .login-form {
    max-width: 430px;
    margin: 20px auto;
  }
  .login-form h2 {
    font-size: 35px;
  }
  .login-form:before {
    content: "CURATED FOR YOUR CRAFT";
    display: block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  .admin-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-card .actions {
    width: 100%;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tabs .chip {
    padding: 9px 12px;
    font-size: 12px;
  }
  .piece {
    gap: 10px;
    padding: 12px;
  }
  .piece img {
    width: 55px;
    height: 68px;
  }
  .piece .btn {
    padding: 10px;
    font-size: 12px;
  }
  .piece h3 {
    font-size: 13px;
  }
  .piece p {
    font-size: 12px;
  }
  .intro .btn {
    font-size: 13px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  dialog {
    padding: 20px;
  }
  .status {
    font-size: 10px;
  }
  .collection-nav .chip {
    font-size: 12px;
  }
  .selection-active {
    padding-bottom: 220px;
  }
  .back {
    margin-bottom: 12px;
  }
}
@media (max-width: 374px) {
  .header {
    padding: 14px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-right {
    gap: 6px;
  }
  .brand {
    font-size: 21px;
  }
  .grid {
    gap: 24px 12px;
  }
  .product-card h3 {
    font-size: 19px;
  }
  .header-right .sample {
    font-size: 8px;
  }
  .intro h1 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .header,
  .customer-nav,
  .selection-bar,
  .back,
  .btn {
    display: none;
  }
  .container {
    padding: 0;
  }
  .panel {
    border: 0;
  }
}

#toast {
  opacity: 0;
  visibility: hidden;
}
#toast.show {
  opacity: 1;
  visibility: visible;
}
.price span {
  margin-left: 5px;
}
.keyboard-open .customer-nav,
.keyboard-open .selection-bar {
  display: none;
}
@media (max-width: 767px) {
  .price span {
    margin-left: 0;
  }
  .intro > span.muted {
    display: none;
  }
}
/* Bounded inventory rows remain readable on phones and large admin screens. */
.inventory-table { border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff; }
.inventory-labels,.inventory-row { display:grid;grid-template-columns:minmax(270px,2fr) minmax(80px,.5fr) minmax(120px,.8fr) minmax(220px,1fr);gap:20px;align-items:center;padding:16px 20px; }
.inventory-labels { font-size:12px;text-transform:uppercase;letter-spacing:.08em;background:#f1f4ef;color:#536051; }
.inventory-row + .inventory-row {border-top:1px solid var(--line);}
.inventory-identity {display:flex;align-items:center;gap:14px;min-width:0;}
.inventory-identity img,.inventory-placeholder {width:64px;height:64px;object-fit:cover;border-radius:8px;background:#eef1eb;flex:none;}
.inventory-placeholder {display:grid;place-items:center;}
.inventory-row small,.catalog-result small {display:block;color:var(--muted);margin-top:4px;}
.inventory-row .actions {margin-top:8px;gap:6px;flex-wrap:wrap;}
.inventory-row .btn {padding:8px 11px;font-size:12px;min-height:36px;}
.page-controls {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;color:var(--muted);}
.catalog-choice {padding:14px;border:1px solid var(--line);border-radius:10px;margin:8px 0;}
.catalog-choice summary {cursor:pointer;padding:6px 0;font-weight:600;}
.catalog-choice .row,.catalog-choice .form-grid {margin-top:14px;}
.catalog-result {display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);}
#page-progress {position:fixed;top:0;left:0;right:0;height:2px;z-index:100;pointer-events:none;background:linear-gradient(90deg,#153d3210,#255b49,#153d3210);}
button:disabled {cursor:wait;opacity:.55;}
@media(max-width:1000px){.inventory-labels {display:none;}.inventory-row {grid-template-columns:1fr 1fr;gap:14px;}.inventory-identity {grid-column:1/-1;}.inventory-row>div:last-child {grid-column:1/-1;}.page-controls {flex-wrap:wrap;}}

[hidden] {display:none!important;}
.workspace .intro {margin:24px 0;align-items:center;}
.workspace .intro h1 {font-size:34px;margin-bottom:8px;}
.workspace .intro p {max-width:700px;margin:0;}
.workspace .toolbar {gap:12px;}

.workspace .admin-tabs {flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;}
.workspace .admin-tabs .chip {flex:none;}
@media(max-width:600px){
  .workspace .intro {display:block;margin:18px 0;}
  .workspace .intro h1 {font-size:28px;}
  .workspace .intro>.row {margin-top:14px;}
  .workspace #records-filter {display:grid;grid-template-columns:1fr 1fr auto;gap:8px;}
  .workspace #records-filter input {grid-column:1/3;grid-row:1;min-width:0;}
  .workspace #records-filter button {grid-column:3;grid-row:1;}
  .workspace #records-filter select[name=status] {grid-column:1;grid-row:2;min-width:0;}
  .workspace #records-filter select[name=type] {grid-column:2/4;grid-row:2;min-width:0;}
}
