@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/customer/fonts/InstrumentSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/customer/fonts/InstrumentSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #090909;
  --panel: #141413;
  --cream: #f3f0e8;
  --muted: #b6b3aa;
  --gold: #c4a56c;
  --line: #37352f;
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--black);
  color: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--gold);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 52px;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: var(--cream);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
button.danger {
  color: #ffb7a7;
  border-color: #6c342a;
  background: transparent;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  color: var(--cream);
  background: var(--black);
  border: 1px solid #6b675e;
  border-radius: 3px;
}
input[type='checkbox'] {
  display: inline-block;
  width: 22px;
  min-height: 22px;
  vertical-align: middle;
  accent-color: var(--gold);
  margin-right: 10px;
}
input[type='file'] {
  font-size: 14px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0;
}
label input,
label textarea,
label select {
  margin-top: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--line);
}
header .wrap {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 16px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 15px;
}
.brand {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: -1px;
}
.brand span {
  color: var(--gold);
}
.wrap {
  width: min(960px, calc(100% - 40px));
  margin: auto;
}
main {
  padding-top: 40px;
  padding-bottom: 80px;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(38px, 7vw, 64px);
  margin: 16px 0 24px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 20px;
}
p {
  color: var(--muted);
}
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
.card,
fieldset {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  margin: 24px 0;
  border-radius: 4px;
  min-width: 0;
}
legend {
  padding: 0 10px;
  color: var(--gold);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.muted,
small {
  color: var(--muted);
}
.status {
  padding: 12px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.status.error {
  color: #ffb7a7;
}
.status.success {
  color: #d6e8a7;
}
.pill {
  display: inline-block;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 3px 10px;
  font-size: 13px;
  border-radius: 30px;
  margin: 5px 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.total {
  font-size: 23px;
  font-weight: 700;
  color: var(--cream);
}
.count {
  font-size: 52px;
  display: block;
  color: var(--gold);
  line-height: 1.2;
}
.metric {
  text-decoration: none;
  color: var(--cream);
}
.empty {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.photo {
  max-width: 180px;
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.timeline {
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
}
.staff {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.staff h1 {
  font-size: 36px;
}
.staff button {
  min-height: 56px;
}
.narrow {
  max-width: 480px;
  margin: 40px auto;
}
.payment-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  flex-shrink: 0;
}
.check span {
  color: var(--cream);
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .card,
  fieldset {
    padding: 18px;
    margin: 18px 0;
  }
  main {
    padding-top: 22px;
  }
  .actions > * {
    flex: 1 1 auto;
  }
  header .wrap {
    gap: 10px;
  }
  nav {
    gap: 14px;
  }
  .row {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 40px;
  }
}

.item-code {
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}
.storage-warning {
  color: #ff6b6b;
  font-weight: bold;
}
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.photo-grid figure {
  margin: 0;
  max-width: 160px;
}
.photo-button {
  padding: 4px;
  background: transparent;
}
.photo-dialog {
  width: min(92vw, 900px);
  background: #171717;
  color: white;
  border: 1px solid #d1b276;
}
.photo-dialog::backdrop {
  background: rgb(0 0 0 / 85%);
}
.qc-large {
  display: block;
  max-height: 70vh;
  max-width: 100%;
  margin: auto;
  touch-action: pan-y;
}

.language-picker {
  position: relative;
  margin-left: auto;
}
.language-toggle,
.language-menu button {
  min-height: 44px;
  min-width: 44px;
}
.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  background: #161616;
  border: 1px solid #b99b61;
  padding: 0.4rem;
  min-width: 160px;
}
.language-menu button {
  display: block;
  width: 100%;
  text-align: left;
}
.language-menu[hidden] {
  display: none;
}
header .wrap {
  flex-wrap: wrap;
}
.file-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Keep metric labels and numbers legible in every interactive state. */
.staff button.metric,
.staff button.metric:hover,
.staff button.metric:focus,
.staff button.metric:active {
  background: var(--panel);
  color: var(--cream);
}
.staff button.metric:hover,
.staff button.metric:focus-visible,
.staff button.metric:active {
  border-color: var(--gold);
}
.staff button.metric-empty {
  background: var(--black);
  color: var(--muted);
  border-style: dashed;
}
.metric-empty .count {
  color: var(--muted);
}
.order-alerts {
  display: grid;
  gap: 12px;
}
.order-alerts:empty {
  display: none;
}
.attention {
  width: 100%;
  text-align: left;
}
[id^='item-'] {
  scroll-margin-top: 20px;
}
.warehouse-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.warehouse-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.warehouse-info {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.warehouse-info .storage-warning {
  color: #ff6b6b;
}
.qc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.qc-grid .photo-button {
  padding: 0;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
}
.qc-grid .photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.photo-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
}
.photo-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.photo-close {
  justify-self: end;
}
.photo-dialog .qc-large {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.photo-controls button {
  min-width: 44px;
  padding-inline: 12px;
}

.payment-warning {
  border: 2px solid var(--gold, #b98a2e);
  padding: 12px;
  font-weight: 700;
}
.payment-qr,
.payment-qr-gallery {
  width: min(100%, 340px);
}
.payment-qr-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
