/* ==========================================================================
   Ritzbury capture platform, design system
   Palette sampled from the supplied logo artwork, not guessed.
   Mobile first: the photography screen is the product, everything else defers.
   ========================================================================== */

/* Typography
   Avenir first. On Apple hardware this resolves to the real Avenir Next, which
   is what the team will see on iPhones and Macs. Avenir is a licensed Monotype
   face and is not installed on Windows or Android, so Nunito Sans is loaded as a
   close geometric-humanist stand-in rather than letting those devices drop to
   Segoe UI or Roboto. Swap in licensed Avenir web fonts and this fallback
   becomes dead weight that can be removed.
   Two weights only, as specified: Book/Roman 400 and Bold 700. */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');

:root {
  /* brand, from the logo */
  --rz-blue-900: #01204f;
  --rz-blue-800: #002f6f;
  --rz-blue-700: #013487;
  --rz-blue-600: #01439a;
  --rz-blue-500: #1a5cc0;
  --rz-blue-200: #c9d8ef;
  --rz-blue-100: #e8eef8;
  --rz-blue-050: #f5f8fd;

  --rz-gold:     #c9a24a;
  --rz-gold-600: #a8842f;
  --rz-gold-100: #f8f1df;

  /* neutral */
  --rz-white:    #fffcf6;
  --rz-surface:  #ffffff;
  --rz-canvas:   #f1f4f9;
  --rz-line:     #dfe5ee;
  --rz-line-soft:#edf1f7;
  --rz-ink:      #101420;
  --rz-ink-soft: #55607a;
  --rz-ink-mute: #8a94aa;

  /* state */
  --rz-success:     #1a7a4a;
  --rz-success-bg:  #e7f5ed;
  --rz-warning:     #a8700d;
  --rz-warning-bg:  #fdf4e3;
  --rz-error:       #b02419;
  --rz-error-bg:    #fdedeb;

  --rz-radius:    14px;
  --rz-radius-sm: 9px;
  --rz-shadow:    0 1px 2px rgba(1, 32, 79, .05), 0 6px 20px -8px rgba(1, 32, 79, .14);
  --rz-shadow-lg: 0 18px 50px -12px rgba(1, 32, 79, .3);

  --rz-tap: 46px;
  --rz-font: 'Avenir Next', 'Avenir Next LT Pro', 'Avenir', 'Nunito Sans',
             -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --rz-gut: 20px;
  --rz-bottombar: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--rz-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--rz-ink);
  background: var(--rz-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
  padding-bottom: var(--rz-bottombar);
}

a { color: var(--rz-blue-600); text-underline-offset: 2px; }

h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.22; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: 1.62rem; }
h2 { font-size: 1.14rem; letter-spacing: -.012em; }
h3 { font-size: .98rem; letter-spacing: -.008em; }

.muted  { color: var(--rz-ink-soft); }
.tiny   { font-size: .765rem; line-height: 1.45; }
.small  { font-size: .86rem; }
.strong { font-weight: 700; }
.mono   { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85em; letter-spacing: -.01em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right  { text-align: right; }
.stack > * + * { margin-top: 14px; }

::selection { background: var(--rz-blue-200); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--rz-blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Shell
   ========================================================================== */

.rz-header {
  background:
    radial-gradient(120% 180% at 12% -30%, rgba(255,255,255,.16) 0%, transparent 55%),
    linear-gradient(118deg, var(--rz-blue-900) 0%, var(--rz-blue-700) 46%, var(--rz-blue-600) 100%);
  color: var(--rz-white);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(1,32,79,.14);
}
.rz-header::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rz-gold) 42%, var(--rz-gold) 58%, transparent);
  opacity: .55;
}

.rz-header__bar {
  max-width: 1340px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 11px var(--rz-gut);
}

.rz-brand { display: flex; align-items: center; gap: 11px; color: var(--rz-white); text-decoration: none; }
.rz-brand img {
  width: 36px; height: 36px; border-radius: 9px; display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.rz-brand__name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; display: block; }
.rz-brand__sub {
  font-size: .64rem; opacity: .68; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 400; display: block; margin-top: 1px;
}

.rz-nav { display: flex; gap: 3px; margin-left: auto; }
.rz-nav a {
  color: rgba(255, 252, 246, .8); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: .89rem; font-weight: 400; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: background .14s ease, color .14s ease;
}
.rz-nav a:hover { background: rgba(255, 255, 255, .11); color: var(--rz-white); }
.rz-nav a[aria-current] { background: rgba(255, 255, 255, .17); color: var(--rz-white); font-weight: 700; }

.rz-user { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
.rz-user__name { line-height: 1.25; }
.rz-user__name b { font-size: .85rem; font-weight: 700; display: block; }
.rz-user__name span { font-size: .68rem; opacity: .68; }
.rz-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 255, 255, .16); color: var(--rz-white);
  display: grid; place-items: center; font-size: .76rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.16);
}
.rz-signout {
  background: rgba(255,255,255,.13); color: #fff; border: 0;
  border-radius: 8px; min-height: 36px; padding: 0 13px;
  font: inherit; font-size: .82rem; font-weight: 400; cursor: pointer;
}
.rz-signout:hover { background: rgba(255,255,255,.22); }

.rz-main { max-width: 1340px; margin: 0 auto; padding: 24px var(--rz-gut) 80px; }

.rz-page-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.rz-page-head__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.rz-eyebrow {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--rz-gold-600); font-weight: 700; margin-bottom: 5px;
}

/* mobile bottom bar, hidden on desktop */
.rz-tabbar { display: none; }

/* ==========================================================================
   Cards, grids
   ========================================================================== */

.card {
  background: var(--rz-surface);
  border: 1px solid var(--rz-line);
  border-radius: var(--rz-radius);
  box-shadow: var(--rz-shadow);
}
.card__head {
  padding: 15px 18px; border-bottom: 1px solid var(--rz-line-soft);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card__head h2, .card__head h3 { margin: 0; }
.card__body { padding: 18px; }
.card__foot {
  padding: 14px 18px; border-top: 1px solid var(--rz-line-soft);
  background: var(--rz-blue-050); border-radius: 0 0 var(--rz-radius) var(--rz-radius);
}

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--rz-tap); padding: 0 19px;
  border-radius: var(--rz-radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .91rem; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .06s ease;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.btn--primary { background: var(--rz-blue-700); color: var(--rz-white); box-shadow: 0 1px 2px rgba(1,32,79,.2); }
.btn--primary:hover:not(:disabled) { background: var(--rz-blue-600); }

.btn--ghost { background: var(--rz-surface); color: var(--rz-blue-700); border-color: var(--rz-line); }
.btn--ghost:hover:not(:disabled) { border-color: var(--rz-blue-500); background: var(--rz-blue-050); }

.btn--success { background: var(--rz-success); color: #fff; }
.btn--danger  { background: var(--rz-error); color: #fff; }
.btn--gold    { background: var(--rz-gold); color: #2a1f06; }
.btn--quiet   { background: transparent; color: var(--rz-ink-soft); border-color: transparent; padding: 0 11px; }
.btn--quiet:hover { background: var(--rz-blue-050); color: var(--rz-blue-700); }

.btn--sm { min-height: 36px; padding: 0 13px; font-size: .83rem; border-radius: 7px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { display: block; margin-bottom: 15px; }
.field > label, .label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--rz-ink-soft); margin-bottom: 6px; letter-spacing: .005em;
}

.input, select.input, textarea.input {
  width: 100%; min-height: var(--rz-tap);
  padding: 11px 13px;
  border: 1px solid var(--rz-line); border-radius: var(--rz-radius-sm);
  background: var(--rz-surface); color: var(--rz-ink);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input:focus {
  outline: none; border-color: var(--rz-blue-500);
  box-shadow: 0 0 0 3px rgba(26, 92, 192, .14);
}
textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rz-ink-soft) 50%), linear-gradient(135deg, var(--rz-ink-soft) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.check { display: flex; align-items: center; gap: 9px; font-size: .9rem; min-height: 34px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--rz-blue-700); flex-shrink: 0; }

.filters { display: flex; gap: 11px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 142px; }
.filters .field--grow { flex: 1 1 230px; }

/* ==========================================================================
   Status pills
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; line-height: 1.6;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.pill--not_started    { background: #eaedf3; color: #5a6379; }
.pill--in_progress    { background: var(--rz-blue-100); color: var(--rz-blue-700); }
.pill--needs_retake   { background: var(--rz-error-bg); color: var(--rz-error); }
.pill--pending_review { background: var(--rz-warning-bg); color: var(--rz-warning); }
.pill--approved,
.pill--completed      { background: var(--rz-success-bg); color: var(--rz-success); }
.pill--pending        { background: var(--rz-warning-bg); color: var(--rz-warning); }
.pill--rejected       { background: var(--rz-error-bg); color: var(--rz-error); }
.pill--superseded     { background: #eaedf3; color: #96a0b5; }
.pill--gold           { background: var(--rz-gold-100); color: var(--rz-gold-600); }

.badge-count {
  background: rgba(255,255,255,.26); color: #fff;
  border-radius: 999px; padding: 1px 7px; font-size: .7rem; font-weight: 700;
}

/* ==========================================================================
   Progress and stats
   ========================================================================== */

.progress { height: 9px; background: var(--rz-line-soft); border-radius: 999px; overflow: hidden; }
.progress__bar {
  height: 100%; border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(90deg, var(--rz-blue-700), var(--rz-blue-500));
}
.progress__bar--done { background: linear-gradient(90deg, var(--rz-success), #2a9a62); }

.stat { padding: 16px 18px; position: relative; overflow: hidden; }
.stat__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; color: var(--rz-ink-mute); font-weight: 700; }
.stat__value { font-size: 1.95rem; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; line-height: 1.1; }
.stat__value--blue  { color: var(--rz-blue-700); }
.stat__value--green { color: var(--rz-success); }
.stat__value--amber { color: var(--rz-warning); }
.stat__value--red   { color: var(--rz-error); }
a.stat { text-decoration: none; color: inherit; transition: border-color .14s ease; }
a.stat:hover { border-color: var(--rz-blue-500); }

.hero-progress { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-progress__count { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; }
.hero-progress__pct { margin-left: auto; font-size: 1.7rem; font-weight: 700; color: var(--rz-blue-700); letter-spacing: -.03em; }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; padding: 10px 14px;
  font-size: .69rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--rz-ink-mute); font-weight: 700;
  border-bottom: 1px solid var(--rz-line); white-space: nowrap;
  background: var(--rz-blue-050);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rz-line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--rz-blue-050); }

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
  padding: 13px 16px; border-radius: var(--rz-radius-sm);
  border: 1px solid; border-left-width: 3px; margin-bottom: 18px; font-size: .91rem;
}
.alert--success { background: var(--rz-success-bg); border-color: #b9e0c9; border-left-color: var(--rz-success); color: #115c36; }
.alert--warning { background: var(--rz-warning-bg); border-color: #efd9ad; border-left-color: var(--rz-warning); color: #7d520a; }
.alert--error   { background: var(--rz-error-bg);   border-color: #f2c3be; border-left-color: var(--rz-error);   color: #8a1c13; }
.alert--info    { background: var(--rz-blue-100);   border-color: var(--rz-blue-200); border-left-color: var(--rz-blue-600); color: var(--rz-blue-800); }

.empty-state { padding: 52px 24px; text-align: center; }
.empty-state h2 { color: var(--rz-ink); }
.empty-state p { color: var(--rz-ink-soft); margin: 6px 0 0; }

/* ==========================================================================
   Product cards
   ========================================================================== */

.product-card {
  background: var(--rz-surface); border: 1px solid var(--rz-line);
  border-radius: var(--rz-radius); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.product-card:hover { border-color: var(--rz-blue-500); box-shadow: var(--rz-shadow); transform: translateY(-2px); }

.product-card__thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--rz-blue-050), #e9eef7);
  display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--rz-line-soft); position: relative;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card__empty { color: var(--rz-ink-mute); font-size: .74rem; text-align: center; padding: 12px; letter-spacing: .02em; }

.product-card__body { padding: 12px 14px 13px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card__sku { font-size: .69rem; letter-spacing: .07em; color: var(--rz-ink-mute); font-weight: 700; }
.product-card__name { font-size: .9rem; font-weight: 700; line-height: 1.32; letter-spacing: -.008em; }
.product-card__meta { font-size: .76rem; color: var(--rz-ink-soft); margin-top: auto; padding-top: 2px; }
.product-card__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.locknote {
  font-size: .71rem; color: var(--rz-warning); font-weight: 400;
  background: var(--rz-warning-bg); padding: 3px 8px; border-radius: 5px;
}

/* ==========================================================================
   Capture
   ========================================================================== */

.capture { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.slot-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }

.slot {
  position: relative; border: 2px dashed var(--rz-line);
  border-radius: var(--rz-radius); background: var(--rz-surface);
  aspect-ratio: 3 / 4; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; padding: 12px;
  text-align: center; min-height: 156px;
  transition: border-color .14s ease, background .14s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.slot:hover { border-color: var(--rz-blue-500); background: var(--rz-blue-050); }
.slot:active { transform: scale(.985); }
.slot--required { border-color: #cdd6e4; }
.slot--filled { border-style: solid; border-color: var(--rz-success); padding: 0; }
.slot--warn   { border-style: solid; border-color: var(--rz-warning); padding: 0; }
.slot--optional { border-style: dashed; }

.slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot__label { font-size: .84rem; font-weight: 700; letter-spacing: -.005em; }
.slot__hint  { font-size: .7rem; color: var(--rz-ink-mute); line-height: 1.35; letter-spacing: .03em; text-transform: uppercase; font-weight: 700; }
.slot__plus  {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rz-blue-100); color: var(--rz-blue-700);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 400;
}

.slot__badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(1, 32, 79, .84); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.slot__tick {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--rz-success); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.slot__tick--warn { background: var(--rz-warning); }
.slot__actions {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; gap: 5px; padding: 7px;
  background: linear-gradient(to top, rgba(1,32,79,.9), transparent);
}
.slot__actions button {
  flex: 1; min-height: 32px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.94); color: var(--rz-ink);
  font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer;
}
.slot__actions button:hover { background: #fff; }

.slot-progress {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--rz-surface);
  border: 1px solid var(--rz-line); border-radius: var(--rz-radius);
  box-shadow: var(--rz-shadow);
}
.slot-progress .progress { flex: 1; }

.ref-list { display: grid; }
.ref-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rz-line-soft); font-size: .87rem; }
.ref-row:last-child { border-bottom: 0; }
.ref-row dt { color: var(--rz-ink-soft); }
.ref-row dd { margin: 0; font-weight: 700; text-align: right; }

/* ==========================================================================
   Camera sheet
   ========================================================================== */

.sheet {
  position: fixed; inset: 0; z-index: 90;
  background: #05070c; display: none; flex-direction: column;
}
.sheet[data-open="true"] { display: flex; }

.sheet__bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(11px + env(safe-area-inset-top)) 16px 11px; color: #fff;
  background: rgba(1, 32, 79, .94); flex-shrink: 0;
}
.sheet__title { font-weight: 700; font-size: .98rem; }
.sheet__close {
  margin-left: auto; background: rgba(255,255,255,.15); color: #fff;
  border: 0; border-radius: 8px; min-height: 38px; padding: 0 16px;
  font: inherit; font-weight: 700; cursor: pointer;
}

.sheet__stage { position: relative; flex: 1; overflow: hidden; background: #05070c; min-height: 0; }
.sheet__stage video, .sheet__stage img { width: 100%; height: 100%; object-fit: contain; display: block; }

.guide { position: absolute; inset: 0; pointer-events: none; }
.guide__box {
  position: absolute; inset: 11% 13%;
  border: 2px solid rgba(255, 252, 246, .7);
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(1, 14, 36, .42);
}
.guide__corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--rz-gold); }
.guide__corner--tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.guide__corner--tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.guide__corner--bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.guide__corner--br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.guide__text {
  position: absolute; left: -10%; right: -10%; bottom: -50px;
  text-align: center; color: rgba(255, 252, 246, .92); font-size: .81rem;
  padding: 0 14px; text-shadow: 0 1px 4px rgba(0,0,0,.7); line-height: 1.4;
}

.pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-top: 22px;
}
.pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--rz-tap); padding: 0 20px;
  background: var(--rz-surface); color: var(--rz-blue-700);
  border: 1px solid var(--rz-line); border-radius: var(--rz-radius-sm);
  font-weight: 700; font-size: .91rem; text-decoration: none;
}
.pager__btn:hover { border-color: var(--rz-blue-500); background: var(--rz-blue-050); }
.pager__btn--off { opacity: .4; pointer-events: none; }
.pager__count { font-size: .86rem; color: var(--rz-ink-soft); }

/* Laravel's stock paginator ships Tailwind sized icons. Without Tailwind those
   SVGs render at their natural size, which filled the whole screen on a phone. */
.pager svg, nav[aria-label="Pagination"] svg { width: 18px; height: 18px; }

/* crop tool, sits over the preview */
.crop { position: absolute; inset: 0; touch-action: none; }
.crop[hidden] { display: none; }

.crop__box {
  position: absolute;
  border: 2px solid var(--rz-white);
  box-shadow: 0 0 0 100vmax rgba(1, 14, 36, .55);
  cursor: move;
}
.crop__thirds {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.33%, rgba(255,255,255,.3) 33.33%, rgba(255,255,255,.3) 33.5%, transparent 33.5%,
                    transparent 66.66%, rgba(255,255,255,.3) 66.66%, rgba(255,255,255,.3) 66.83%, transparent 66.83%),
    linear-gradient(to bottom, transparent 33.33%, rgba(255,255,255,.3) 33.33%, rgba(255,255,255,.3) 33.5%, transparent 33.5%,
                    transparent 66.66%, rgba(255,255,255,.3) 66.66%, rgba(255,255,255,.3) 66.83%, transparent 66.83%);
}
.crop__handle {
  position: absolute; width: 30px; height: 30px;
  background: var(--rz-gold); border: 2px solid #fff; border-radius: 50%;
  touch-action: none;
}
.crop__handle--tl { top: -15px; left: -15px; cursor: nwse-resize; }
.crop__handle--tr { top: -15px; right: -15px; cursor: nesw-resize; }
.crop__handle--bl { bottom: -15px; left: -15px; cursor: nesw-resize; }
.crop__handle--br { bottom: -15px; right: -15px; cursor: nwse-resize; }

.sheet__side[aria-pressed="true"] { background: var(--rz-gold); color: #2a1f06; }

.sheet__foot {
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  background: rgba(1, 32, 79, .95); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.sheet__side { flex: 0 1 auto; }
@media (max-width: 460px) {
  .sheet__foot { gap: 9px; }
  .sheet__side { min-width: 0; padding: 0 13px; font-size: .88rem; }
}

.shutter {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--rz-white); border: 4px solid rgba(255,255,255,.35);
  cursor: pointer; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(201,162,74,.5);
}
.shutter:active { transform: scale(.93); }
.shutter:disabled { opacity: .4; cursor: not-allowed; }

.sheet__side {
  background: rgba(255,255,255,.14); color: #fff; border: 0;
  border-radius: 9px; min-height: 46px; padding: 0 16px;
  font: inherit; font-weight: 700; cursor: pointer; min-width: 96px;
}
.sheet__side:hover { background: rgba(255,255,255,.22); }

.sheet__status {
  padding: 12px 16px; font-size: .88rem; color: #fff;
  background: rgba(1, 32, 79, .96); text-align: center; flex-shrink: 0;
  max-height: 34vh; overflow-y: auto;
}
.sheet__status[data-tone="error"]   { background: #7d1a14; }
.sheet__status[data-tone="warning"] { background: #7a530b; }
.sheet__status[data-tone="success"] { background: #145635; }

.quality-list { list-style: none; margin: 9px 0 0; padding: 0; text-align: left; display: grid; gap: 6px; }
.quality-list li { font-size: .85rem; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.quality-list li::before { content: "•"; opacity: .7; flex-shrink: 0; }

.qnote { padding: 9px 12px; border-radius: 7px; font-size: .83rem; margin-top: 7px; line-height: 1.45; }
.qnote--fail { background: var(--rz-error-bg); color: #8a1c13; }
.qnote--warn { background: var(--rz-warning-bg); color: #7d520a; }
.qnote--pass { background: var(--rz-success-bg); color: #115c36; }

/* ==========================================================================
   Review
   ========================================================================== */

.review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.review-shot { border: 1px solid var(--rz-line); border-radius: var(--rz-radius); overflow: hidden; background: var(--rz-surface); box-shadow: var(--rz-shadow); }
.review-shot__img { aspect-ratio: 1; background: linear-gradient(160deg, var(--rz-blue-050), #e9eef7); display: grid; place-items: center; }
.review-shot__img img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.review-shot__body { padding: 13px 15px 15px; }

.lightbox {
  position: fixed; inset: 0; z-index: 95; background: rgba(4, 6, 11, .95);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lightbox__close {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 18px;
  background: rgba(255,255,255,.17); color: #fff; border: 0;
  border-radius: 9px; min-height: 44px; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer;
}

/* ==========================================================================
   Upload queue, connectivity
   ========================================================================== */

.queue {
  position: fixed; right: 18px; bottom: calc(18px + var(--rz-bottombar));
  z-index: 60; display: grid; gap: 9px; max-width: 330px;
}
.queue__item {
  background: var(--rz-surface); border: 1px solid var(--rz-line);
  border-left: 3px solid var(--rz-blue-600);
  border-radius: var(--rz-radius-sm); padding: 11px 14px;
  box-shadow: var(--rz-shadow-lg); font-size: .85rem;
  animation: queue-in .2s ease;
}
@keyframes queue-in { from { opacity: 0; transform: translateY(8px); } }
.queue__item[data-state="error"] { border-left-color: var(--rz-error); }
.queue__item[data-state="done"]  { border-left-color: var(--rz-success); }
.queue__bar { height: 3px; background: var(--rz-line-soft); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.queue__bar span { display: block; height: 100%; background: var(--rz-blue-600); width: 0; transition: width .2s ease; }

.offline-banner {
  position: fixed; left: 0; right: 0; bottom: var(--rz-bottombar); z-index: 70;
  background: var(--rz-warning); color: #fff;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  text-align: center; font-size: .87rem; font-weight: 700; display: none;
}
.offline-banner[data-show="true"] { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .capture { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --rz-gut: 15px; --rz-bottombar: 64px; }

  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.05rem; }

  .rz-header__bar { padding: 9px var(--rz-gut); gap: 12px; }
  .rz-brand img { width: 32px; height: 32px; }
  .rz-brand__name { font-size: .94rem; }
  .rz-brand__sub { display: none; }
  .rz-nav { display: none; }
  .rz-user { margin-left: auto; padding-left: 0; border-left: 0; gap: 8px; }
  .rz-user__name { display: none; }

  .rz-main { padding: 18px var(--rz-gut) 28px; }
  .rz-page-head { gap: 12px; margin-bottom: 18px; }
  .rz-page-head__actions { width: 100%; }
  .rz-page-head__actions .btn { flex: 1 1 auto; }

  .grid, .grid--2, .grid--3 { grid-template-columns: 1fr; gap: 13px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }

  /* 97 SKUs is a scanning job, not a gallery: compact rows beat big tiles. */
  .grid--auto { grid-template-columns: 1fr; gap: 9px; }

  .product-card { flex-direction: row; align-items: stretch; }
  .product-card:hover { transform: none; }
  .product-card__thumb {
    aspect-ratio: auto; width: 84px; flex-shrink: 0;
    border-bottom: 0; border-right: 1px solid var(--rz-line-soft);
  }
  .product-card__empty { font-size: .62rem; padding: 6px; line-height: 1.3; }
  .product-card__body { padding: 11px 13px; gap: 4px; min-height: 84px; }
  .product-card__meta { margin-top: 0; }

  .card__body, .card__head, .card__foot { padding: 14px 15px; }
  .stat { padding: 13px 15px; }
  .stat__value { font-size: 1.5rem; }
  .stat__label { font-size: .64rem; letter-spacing: .08em; }

  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .slot { min-height: 0; }

  .slot-progress { flex-wrap: wrap; gap: 11px; position: sticky; top: 60px; z-index: 30; }
  .slot-progress .progress { order: 3; flex-basis: 100%; }
  .slot-progress form { margin-left: auto; }

  .filters { gap: 9px; }
  .filters .field { min-width: 0; flex: 1 1 calc(50% - 5px); }
  .filters .field--grow { flex-basis: 100%; }
  .filters .btn { flex: 1 1 auto; }

  .review-grid { grid-template-columns: 1fr; }
  .queue { left: 12px; right: 12px; max-width: none; }

  .table th, .table td { padding: 10px 11px; }

  /* thumb reachable primary navigation */
  .rz-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--rz-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .rz-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px; min-height: 60px;
    text-decoration: none; color: var(--rz-ink-mute);
    font-size: .68rem; font-weight: 700; letter-spacing: .01em;
    position: relative;
  }
  .rz-tabbar a svg { width: 21px; height: 21px; stroke-width: 1.9; }
  .rz-tabbar a[aria-current] { color: var(--rz-blue-700); }
  .rz-tabbar a[aria-current]::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%;
    height: 2.5px; background: var(--rz-blue-700); border-radius: 0 0 3px 3px;
  }
  .rz-tabbar__dot {
    position: absolute; top: 7px; right: calc(50% - 20px);
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--rz-error); color: #fff;
    border-radius: 999px; font-size: .62rem; font-weight: 700;
    display: grid; place-items: center;
  }
}

@media (max-width: 400px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 15px; font-size: .88rem; }
  .hero-progress__count, .hero-progress__pct { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .rz-header, .rz-tabbar, .rz-page-head__actions, .btn, .queue { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .card { box-shadow: none; }
}
