:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1110;
  color: #f3f0e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 260px),
    #0f1110;
}

button,
a {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 0 4px 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-button {
  min-height: 39px;
  cursor: pointer;
}

.export-format-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid #393a36;
  border-radius: 8px;
  padding: 0 9px;
  color: #d9d2c5;
  background: #171917;
}

.export-format-label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.export-format-label select {
  min-height: 30px;
  border: 0;
  color: inherit;
  background: transparent;
}

.eyebrow {
  margin: 0 0 4px;
  color: #b9b1a4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 650;
}

.status-pill {
  min-width: 142px;
  border: 1px solid #393a36;
  border-radius: 999px;
  padding: 9px 13px;
  color: #d9d2c5;
  text-align: center;
  background: #171917;
}

.status-pill[data-tone="working"] {
  color: #f6d98d;
  border-color: #6f5a24;
}

.status-pill[data-tone="ready"] {
  color: #bdebc4;
  border-color: #426f49;
}

.status-pill[data-tone="failed"] {
  color: #ffb6a8;
  border-color: #8f4d43;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.viewer-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.viewer-panel {
  position: relative;
  min-width: 0;
  height: min(68vh, 720px);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #2d2f2b;
  border-radius: 8px;
  background: #090a09;
}

.viewer-panel.portrait-view {
  width: min(100%, 840px);
  height: min(82vh, 900px);
  min-height: 640px;
  justify-self: center;
}

.viewer-panel.dragging {
  border-color: #b79b62;
  box-shadow: inset 0 0 0 1px #b79b62;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.upload-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid #6d675e;
  border-radius: 50%;
  color: #eadbb9;
  font-size: 32px;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.empty-state p {
  max-width: 420px;
  color: #b9b1a4;
}

.primary-button,
.tool-button,
.export-button,
.seg {
  border: 1px solid #3a3c38;
  border-radius: 7px;
  color: #eee8dc;
  background: #191b19;
  cursor: pointer;
}

.primary-button {
  margin-top: 12px;
  padding: 12px 18px;
  border-color: #8a7447;
  background: #6c5730;
}

.primary-button.compact {
  margin-top: 0;
  min-height: 39px;
  padding: 9px 14px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.compare-stage {
  position: absolute;
  inset: 0;
  min-width: 0;
  user-select: none;
  touch-action: pan-y;
}

.compare-stage.loupe-active {
  cursor: crosshair;
}

.compare-stage.retouch-active {
  cursor: none;
}

.compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090a09;
}

.raw-layer {
  filter: none;
}

.processed-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
}

.processed-clip .compare-image {
  width: 100%;
}

.stage-label {
  position: absolute;
  top: 14px;
  z-index: 4;
  max-width: calc(50% - 28px);
  border: 1px solid rgba(244, 230, 194, 0.46);
  border-radius: 999px;
  padding: 6px 10px;
  color: #f6ead0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(13, 14, 13, 0.72);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-label-left {
  left: 14px;
}

.stage-label-right {
  right: clamp(14px, 3vw, 28px);
}

.stage-notice {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  max-width: min(84%, 620px);
  transform: translateX(-50%);
  border: 1px solid rgba(244, 230, 194, 0.32);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f6ead0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  background: rgba(13, 14, 13, 0.82);
  backdrop-filter: blur(10px);
}

.batch-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 46px;
  height: 78px;
  border: 1px solid rgba(244, 230, 194, 0.35);
  color: #f8efd9;
  font-size: 42px;
  line-height: 1;
  background: rgba(14, 15, 14, 0.58);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
}

.batch-nav:hover,
.batch-nav:focus-visible {
  border-color: #b985d0;
  background: rgba(93, 28, 112, 0.78);
}

.batch-nav:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.batch-nav-prev {
  left: 14px;
  border-radius: 999px 8px 8px 999px;
}

.batch-nav-next {
  right: 14px;
  border-radius: 8px 999px 999px 8px;
}

.batch-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  border: 1px solid rgba(244, 230, 194, 0.38);
  border-radius: 999px;
  padding: 7px 11px;
  color: #f8efd9;
  font-size: 12px;
  font-weight: 800;
  background: rgba(13, 14, 13, 0.72);
  backdrop-filter: blur(10px);
}

.split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(244, 230, 194, 0.78);
  transform: translateX(-0.5px);
}

.split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 230, 194, 0.95);
  border-radius: 50%;
  background: rgba(13, 14, 13, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  touch-action: none;
}

.split-handle::before,
.split-handle::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 8px;
  height: 14px;
  border-top: 2px solid #eee3c8;
  border-bottom: 2px solid #eee3c8;
}

.split-handle::before {
  left: 10px;
  border-left: 2px solid #eee3c8;
  transform: rotate(-45deg);
}

.split-handle::after {
  right: 10px;
  border-right: 2px solid #eee3c8;
  transform: rotate(45deg);
}

.loupe {
  position: absolute;
  z-index: 6;
  width: clamp(320px, 28vw, 430px);
  height: clamp(320px, 28vw, 430px);
  border: 1px solid #ead9b7;
  border-radius: 50%;
  background-color: #090a09;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.zoom-review {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #050505;
  color: #fff;
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 10, 0.92);
}

.zoom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-actions .mini-button {
  color: #241532;
  background: #f7f2fb;
  border-color: rgba(111, 35, 127, 0.24);
}

#zoomLabel {
  min-width: 58px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #f2e6f8;
}

.zoom-canvas {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.zoom-canvas:active {
  cursor: grabbing;
}

.zoom-canvas img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.retouch-selector {
  position: absolute;
  z-index: 7;
  width: 48px;
  height: 48px;
  border: 2px solid #f3d082;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.82),
    0 0 20px rgba(243, 208, 130, 0.24);
}

.retouch-badge {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(243, 208, 130, 0.7);
  border-radius: 999px;
  padding: 7px 11px;
  color: #f8ebc5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(18, 16, 12, 0.72);
  backdrop-filter: blur(8px);
}

.warning-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.warning-overlay {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 55, 42, 0.28), transparent 9%),
    radial-gradient(circle at 78% 18%, rgba(55, 95, 255, 0.22), transparent 10%);
}

.control-rail {
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  border: 1px solid #2d2f2b;
  border-radius: 8px;
  background: #141614;
}

.control-group {
  padding: 18px;
  border-bottom: 1px solid #2a2c29;
}

.control-group:last-child {
  border-bottom: 0;
}

.naming-panel {
  display: grid;
  gap: 9px;
}

.naming-name {
  border: 1px solid #30322f;
  border-radius: 7px;
  padding: 10px;
  color: #f0d18f;
  background: #191b19;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.naming-panel label {
  display: grid;
  gap: 6px;
  color: #aaa397;
  font-size: 12px;
}

.naming-panel input {
  min-height: 36px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 8px 10px;
  color: #eee8dc;
  background: #191b19;
}

.priority-group {
  padding-top: 16px;
}

.export-strip {
  border: 1px solid #2d2f2b;
  border-radius: 8px;
  padding: 14px 16px 12px;
  background: #141614;
}

.handoff-strip,
.bulk-strip,
.proof-strip {
  border: 1px solid #2d2f2b;
  border-radius: 8px;
  padding: 14px 16px 12px;
  background: #141614;
}

.oven-console {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.oven-face {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) 96px minmax(180px, 1fr) minmax(160px, 0.7fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #2a2116;
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 18%, rgba(0,0,0,0.32) 100%),
    linear-gradient(90deg, #161716, #3a3123 18%, #0a0b0a 42%, #6e5a2c 58%, #1a1712 76%, #090a09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -8px 22px rgba(0,0,0,0.45);
}

.oven-slot,
.oven-display {
  min-height: 48px;
  border: 1px solid rgba(229, 194, 117, 0.34);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(6, 7, 6, 0.78);
  box-shadow: inset 0 1px 12px rgba(0,0,0,0.7);
}

.oven-slot span,
.oven-display span {
  display: block;
  color: #b7ae9f;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oven-slot strong,
.oven-display strong {
  display: block;
  margin-top: 5px;
  color: #f6df9e;
  font-size: 15px;
  line-height: 1.1;
}

.oven-dial {
  position: relative;
  justify-self: center;
  width: 72px;
  aspect-ratio: 1;
  border: 2px solid #c4a35d;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e8d7b1 0 7px, #342b20 8px 10px, transparent 11px),
    conic-gradient(from -120deg, #24180e, #d2b56b, #f8e6aa, #7d622c, #18130d);
  box-shadow: 0 0 0 5px rgba(0,0,0,0.32), inset 0 0 20px rgba(0,0,0,0.55);
}

.oven-dial::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(25, 18, 10, 0.65);
  border-radius: 50%;
}

.oven-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  height: 28px;
  border-radius: 999px;
  background: #1c1711;
  transform: translateX(-50%) rotate(-118deg);
  transform-origin: 50% 100%;
  transition: transform 260ms ease;
}

.oven-button {
  min-height: 42px;
  border: 1px solid #8a7447;
  border-radius: 7px;
  color: #fff4cf;
  background: linear-gradient(180deg, #7a6127, #3d2f16);
  cursor: pointer;
}

.oven-button[disabled] {
  color: #8f887c;
  border-color: #3d352a;
  background: #171717;
  cursor: not-allowed;
}

.batch-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.batch-card {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid #3a3c38;
  border-radius: 8px;
  padding: 9px 10px;
  color: #eee8dc;
  text-align: left;
  background: #191b19;
  cursor: pointer;
}

.batch-card.active {
  border-color: #b89c62;
  background: #2f271a;
}

.batch-card span,
.batch-card small {
  color: #aaa397;
  font-size: 12px;
}

.batch-card strong {
  color: #f0d18f;
  font-size: 20px;
  line-height: 1;
}

.batch-card i {
  overflow: hidden;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #30322f;
}

.batch-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a7447, #f0d18f);
}

.private-gallery-receipt {
  grid-column: 1 / -1;
  border: 1px solid rgba(104, 31, 118, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(104, 31, 118, 0.08);
}

.private-gallery-receipt dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}

.private-gallery-receipt div {
  min-width: 0;
}

.private-gallery-receipt dt {
  color: #7c6386;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.private-gallery-receipt dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #50115f;
  font-weight: 800;
}

.private-gallery-receipt a {
  color: inherit;
}

.account-dashboard-body {
  display: grid;
  gap: 12px;
}

.account-summary {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #31332f;
  border-radius: 8px;
  background: #131512;
}

.account-summary strong {
  color: #fff3cd;
}

.account-summary span,
.account-summary small {
  overflow-wrap: anywhere;
  color: #b9b1a4;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.account-stat-grid article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #31332f;
  border-radius: 7px;
  background: #151713;
}

.account-stat-grid strong {
  color: #f3d48b;
  font-size: 18px;
}

.account-stat-grid span {
  color: #aaa397;
  font-size: 11px;
}

.account-dashboard-section {
  display: grid;
  gap: 7px;
}

.account-dashboard-section b {
  color: #fff;
}

.account-dashboard-section p {
  margin: 0;
  color: #cfc6b7;
  font-size: 12px;
  line-height: 1.45;
}

.account-dashboard-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  background: #151713;
}

.dashboard-link.full {
  width: 100%;
}

.label {
  margin-bottom: 12px;
  color: #b9b1a4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rail-heading .label {
  margin-bottom: 0;
}

.reference-strip {
  border: 1px solid #2d2f2b;
  border-radius: 8px;
  padding: 14px 16px 12px;
  background: #141614;
}

.reference-copy {
  margin: 6px 0 0;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.4;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 10px;
}

.reference-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #30322f;
  border-radius: 8px;
  background: #191b19;
}

.reference-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 118px;
  object-fit: cover;
  background: #080908;
}

.reference-grid article div {
  display: grid;
  gap: 3px;
  padding: 8px 9px 9px;
}

.reference-grid b,
.reference-grid strong,
.reference-grid span {
  display: block;
}

.reference-grid b {
  color: #f0d18f;
  font-size: 18px;
  line-height: 1;
}

.reference-grid strong {
  overflow: hidden;
  color: #eee8dc;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-grid span {
  color: #aaa397;
  font-size: 11px;
  line-height: 1.25;
}

.mini-button {
  min-height: 28px;
  border: 1px solid #3a3c38;
  border-radius: 6px;
  padding: 4px 9px;
  color: #d9d2c5;
  background: #191b19;
  cursor: pointer;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.seg,
.tool-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 10px;
  text-decoration: none;
}

.seg.active,
.tool-button.active {
  border-color: #b89c62;
  background: #3b3223;
}

.tool-button,
.export-button {
  width: 100%;
  margin-bottom: 8px;
}

.tool-button.action {
  border-color: #8a7447;
  background: #3b3223;
}

.tool-button.action[disabled] {
  color: #77746c;
  border-color: #3a3c38;
  background: #191b19;
  cursor: not-allowed;
}

.retouch-controls {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid #30322f;
  border-radius: 7px;
  background: #181a18;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaa397;
  font-size: 12px;
}

.range-row strong {
  color: #eee8dc;
}

.retouch-controls input[type="range"] {
  width: 100%;
  accent-color: #b89c62;
}

.retouch-history {
  display: grid;
  gap: 4px;
  border-top: 1px solid #30322f;
  padding-top: 8px;
}

.retouch-history strong {
  font-size: 12px;
}

.retouch-history p,
.improvement-list {
  margin: 0;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.45;
}

.review-panel {
  display: grid;
  gap: 10px;
}

.review-status {
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 10px;
  background: #151715;
}

.review-status strong,
.review-status span {
  display: block;
}

.review-status span {
  margin-top: 4px;
  color: #b9b1a4;
  font-size: 12px;
}

.review-status.approved {
  border-color: #55a861;
  background: rgba(40, 86, 48, 0.16);
}

.review-status.reprocess_requested {
  border-color: #d4a853;
  background: rgba(117, 82, 25, 0.18);
}

.review-status.manual_review_requested {
  border-color: #a875d4;
  background: rgba(104, 31, 118, 0.18);
}

.review-warning {
  margin: 0;
  border: 1px solid #8a7447;
  border-radius: 7px;
  padding: 9px;
  color: #f5dca2;
  font-size: 12px;
  background: rgba(108, 87, 48, 0.18);
}

.review-warning.neutral {
  border-color: #4a6873;
  color: #b8d9e2;
  background: rgba(35, 67, 78, 0.18);
}

.review-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 10px;
  color: #f3f0e9;
  background: #111311;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.manual-review-card {
  display: grid;
  gap: 8px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 10px;
  background: #151715;
}

.manual-review-card.selected {
  border-color: #a875d4;
  background: rgba(104, 31, 118, 0.18);
}

.manual-review-card strong {
  color: #f3f0e9;
}

.manual-review-card span {
  color: #b9b1a4;
  font-size: 12px;
  line-height: 1.4;
}

.improvement-list {
  display: grid;
  gap: 6px;
  padding-left: 17px;
}

.score-action {
  margin-top: 8px;
}

.exports.horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
}

.exports.horizontal .export-button {
  width: 100%;
  margin-bottom: 0;
}

.export-button[disabled] {
  color: #77746c;
  cursor: not-allowed;
}

.handoff-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bulk-controls {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(250px, 1fr) repeat(2, minmax(150px, 0.45fr));
  gap: 10px;
  align-items: end;
}

.bulk-controls label {
  display: grid;
  gap: 7px;
  color: #aaa397;
  font-size: 12px;
}

.bulk-controls .gallery-release {
  grid-column: 1 / -1;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 10px 12px;
  background: #191b19;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #eee8dc;
  font-size: 12px;
  line-height: 1.38;
}

.checkbox-line input {
  margin-top: 2px;
}

.bulk-controls select,
.bulk-controls input[type="email"] {
  min-height: 38px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 8px 10px;
  color: #eee8dc;
  background: #191b19;
}

.export-choice {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.export-choice label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 8px 9px;
  color: #eee8dc;
  background: #191b19;
}

.oven-copy {
  margin: 0;
  color: #aaa397;
  font-size: 13px;
  line-height: 1.45;
}

.benchmark-results {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border-top: 1px solid #30322f;
  padding-top: 10px;
}

.benchmark-results strong {
  color: #eee8dc;
  font-size: 13px;
}

.benchmark-results p {
  margin: 0;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.45;
}

.benchmark-results article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #30322f;
  border-radius: 7px;
  padding: 8px 10px;
  color: #eee8dc;
  background: #191b19;
}

.benchmark-results img {
  width: 74px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.benchmark-results article strong {
  display: block;
  margin-bottom: 3px;
}

.benchmark-results article span {
  display: block;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.35;
}

.benchmark-results article a {
  display: inline-block;
  margin-top: 4px;
  color: #f0d18f;
  font-size: 12px;
  text-decoration: none;
}

.benchmark-results article b {
  color: #f0d18f;
}

.proof-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) minmax(140px, 0.35fr);
  gap: 10px;
  align-items: end;
}

.account-gate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.account-gate.is-hidden {
  display: none;
}

.account-gate label {
  display: grid;
  gap: 5px;
  color: #b9b1a4;
  font-size: 12px;
}

.account-gate input[type="text"],
.account-gate input[type="email"] {
  min-height: 38px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 8px 10px;
  color: #eee8dc;
  background: #191b19;
}

.newsletter-choice {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center;
  align-self: center;
}

.newsletter-choice input {
  margin: 0;
}

.file-pick {
  display: grid;
  gap: 7px;
  color: #aaa397;
  font-size: 12px;
}

.file-pick input {
  min-height: 38px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 8px 10px;
  color: #eee8dc;
  background: #191b19;
}

.proof-results {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid #30322f;
  padding-top: 10px;
}

.proof-intro,
.proof-match-note,
.proof-notes-grid article,
.proof-verdict,
.proof-score-grid article {
  border: 1px solid #30322f;
  border-radius: 7px;
  padding: 10px;
  background: #191b19;
}

.proof-intro strong,
.proof-match-note b,
.proof-notes-grid span,
.proof-verdict strong {
  display: block;
  margin-bottom: 5px;
  color: #f0d18f;
}

.proof-intro p,
.proof-match-note,
.proof-notes-grid li,
.proof-verdict p {
  margin: 0;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.45;
}

.proof-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.proof-score-grid span {
  display: block;
  color: #aaa397;
  font-size: 12px;
}

.proof-score-grid b {
  color: #f0d18f;
  font-size: 24px;
}

.proof-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proof-notes-grid ul {
  margin: 0;
  padding-left: 18px;
}

.handoff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #3a3c38;
  border-radius: 7px;
  padding: 9px 10px;
  color: #eee8dc;
  text-decoration: none;
  background: #191b19;
}

.handoff-button.primary {
  border-color: #8a7447;
  background: #3b3223;
}

.handoff-button[disabled] {
  color: #77746c;
  cursor: not-allowed;
}

.handoff-status {
  margin: 0;
  color: #b8d6ba;
  font-size: 12px;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #292b28;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #b89c62;
  transition: width 220ms ease;
}

.stage-text,
.muted {
  margin: 10px 0 0;
  color: #aaa397;
  font-size: 14px;
}

.edge-lab-panel {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(108, 45, 130, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 252, 0.9));
  color: #29233a;
}

.edge-lab-panel strong {
  font-size: 14px;
}

.edge-lab-panel span {
  color: #6c6478;
  font-size: 13px;
  line-height: 1.35;
}

.edge-lab-panel[data-tone="working"] {
  border-color: rgba(108, 45, 130, 0.44);
  box-shadow: 0 10px 24px rgba(108, 45, 130, 0.12);
}

.edge-lab-panel[data-tone="ready"] {
  border-color: rgba(42, 143, 103, 0.4);
  background: linear-gradient(180deg, rgba(247, 255, 250, 0.96), rgba(240, 250, 245, 0.9));
}

.edge-lab-panel[data-tone="failed"] {
  border-color: rgba(190, 72, 56, 0.4);
  background: linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(252, 239, 235, 0.9));
}

.qc-list {
  display: grid;
  gap: 8px;
  max-height: 274px;
  overflow-y: auto;
}

.job-list {
  display: grid;
  gap: 8px;
  max-height: 352px;
  overflow-y: auto;
  padding-right: 2px;
}

.queue-workflow {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  border: 1px solid #d9cde1;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 25, 56, 0.07);
}

.queue-workflow strong {
  color: #4f2863;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-workflow span {
  color: #5e5a68;
  font-size: 13px;
  line-height: 1.35;
}

.queue-workflow-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.queue-workflow-actions .handoff-button {
  width: 100%;
  min-height: 36px;
}

.job-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #30322f;
  border-radius: 7px;
  padding: 10px;
  color: #eee8dc;
  text-align: left;
  background: #181a18;
  cursor: pointer;
}

.job-row.active {
  border-color: #b89c62;
  background: #272218;
}

.job-row.batch-selected {
  border-color: #8b6ea5;
  background: #2a2032;
}

.job-row.batch-photo {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.job-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #9d84b8;
}

.job-row small {
  color: #aaa397;
}

.batch-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.batch-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.batch-selection-summary {
  font-size: 13px;
  color: #b6b2a6;
}

.batch-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.batch-toolbar .mini-button {
  padding: 5px 8px;
  min-height: 30px;
  font-size: 11px;
}

.batch-sort-label {
  display: grid;
  gap: 4px;
  color: #8f8a7d;
  font-size: 12px;
}

.batch-sort-label select {
  border: 1px solid #323530;
  border-radius: 6px;
  padding: 8px;
  color: #ece8dc;
  background: #121412;
}


.compact-note {
  margin: 4px 0 0;
  font-size: 12px;
}

.import-help {
  width: min(100%, 520px);
  margin-top: 10px;
  text-align: left;
}

.import-help summary {
  cursor: pointer;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.import-help[open] summary {
  margin-bottom: 6px;
}

.qc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 11px;
  border: 1px solid #30322f;
  border-radius: 7px;
  background: #181a18;
}

.qc-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.qc-item p {
  margin: 0;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.35;
}

.upload-preflight-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #aaa397;
  font-size: 12px;
  line-height: 1.45;
}

.upload-preflight-list li + li {
  margin-top: 4px;
}

.qc-item span {
  color: #c6b27f;
  font-size: 12px;
  text-transform: uppercase;
}

.qc-item.pass span {
  color: #99d6a2;
}

.qc-item.review span {
  color: #f0c779;
}

.error {
  color: #ffb6a8;
  line-height: 1.45;
}

.report-panel {
  display: grid;
  gap: 10px;
}

.compact-report {
  max-height: 342px;
  overflow-y: auto;
  padding-right: 2px;
}

.score-block,
.metric-block {
  border: 1px solid #30322f;
  border-radius: 7px;
  padding: 11px;
  background: #181a18;
}

.warning-block {
  border-color: #8a7447;
  background: rgba(138, 116, 71, 0.16);
}

.score-block strong {
  display: block;
  margin-bottom: 4px;
  color: #f0d18f;
  font-size: 28px;
}

.score-block span {
  color: #d9d2c5;
  font-size: 13px;
  line-height: 1.35;
}

.metric-block strong {
  display: block;
  margin-bottom: 8px;
  color: #eee8dc;
  font-size: 13px;
}

.metric-block p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 4px 0;
  color: #aaa397;
  font-size: 12px;
}

.metric-block b {
  color: #eee8dc;
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    height: 58vh;
    min-height: 360px;
  }

  .viewer-panel.portrait-view {
    width: min(100%, calc(100vw - 24px), 720px);
    height: min(78vh, 860px);
    min-height: 560px;
  }

  .stage-label {
    max-width: min(42vw, calc(50% - 28px));
  }

  .stage-label-right {
    right: 14px;
  }

  .control-rail {
    max-height: 88vh;
    overflow-y: auto;
  }

  .handoff-links {
    grid-template-columns: 1fr;
  }

  .oven-face {
    grid-template-columns: 1fr;
  }

  .oven-dial {
    order: -1;
  }

  .bulk-controls,
  .account-gate,
  .export-choice,
  .proof-controls,
  .proof-score-grid {
    grid-template-columns: 1fr;
  }
}

/* ServoFolia brand refresh */
:root {
  color-scheme: light;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sf-plum: #5a1f6b;
  --sf-plum-dark: #42144f;
  --sf-lavender: #a784c7;
  --sf-charcoal: #2f3340;
  --sf-lilac: #dcccf0;
  --sf-offwhite: #fafafc;
  --sf-line: #e2dcea;
  --sf-muted: #667085;
  --sf-panel: rgba(255, 255, 255, 0.92);
}

body.app-page {
  background:
    linear-gradient(180deg, rgba(220, 204, 240, 0.72), rgba(250, 250, 252, 0.96) 260px),
    var(--sf-offwhite);
  color: var(--sf-charcoal);
}

.app-page .app-shell {
  padding: 16px;
}

.app-page .topbar {
  min-height: 74px;
  padding: 8px 8px 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(90, 31, 107, 0.12);
  border-radius: 8px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 51, 64, 0.11);
}

.app-page .eyebrow,
.site-kicker {
  color: var(--sf-plum);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.app-page h1 {
  color: #202535;
  font-weight: 800;
}

.brand-line {
  margin: 3px 0 0;
  color: var(--sf-muted);
  font-size: 13px;
}

.nav-link {
  min-height: 39px;
  border: 1px solid var(--sf-line);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--sf-plum);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
}

.app-page .status-pill {
  border-color: var(--sf-line);
  color: var(--sf-charcoal);
  background: #fff;
  box-shadow: 0 10px 22px rgba(47, 51, 64, 0.07);
}

.app-page .status-pill[data-tone="working"] {
  color: #7c4d00;
  border-color: #ead19c;
  background: #fff8e8;
}

.app-page .status-pill[data-tone="ready"] {
  color: #1a7543;
  border-color: #b7e7ca;
  background: #f3fff7;
}

.app-page .status-pill[data-tone="failed"] {
  color: #a13b2c;
  border-color: #f0b8ad;
  background: #fff4f2;
}

.app-page .primary-button {
  border-color: var(--sf-plum);
  color: #fff;
  background: linear-gradient(180deg, #712483, var(--sf-plum));
  box-shadow: 0 12px 24px rgba(90, 31, 107, 0.22);
}

.app-page .primary-button:disabled {
  border-color: #d8d2df;
  color: #8b8492;
  background: #f7f4fa;
  box-shadow: none;
}

.app-page .viewer-panel {
  border-color: #d8d2df;
  background: #0d1018;
  box-shadow: 0 16px 46px rgba(47, 51, 64, 0.12);
}

.app-page .viewer-panel.dragging {
  border-color: var(--sf-lavender);
  box-shadow: inset 0 0 0 1px var(--sf-lavender), 0 16px 46px rgba(47, 51, 64, 0.12);
}

.app-page .empty-state {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,252,0.78)),
    #fff;
}

.app-page .upload-mark {
  border-color: var(--sf-lilac);
  color: var(--sf-plum);
  background: #fff;
}

.app-page .empty-state h2 {
  color: #202535;
}

.app-page .empty-state p,
.app-page .stage-text,
.app-page .muted,
.app-page .job-row small,
.app-page .qc-item p,
.app-page .metric-block p {
  color: var(--sf-muted);
}

.app-page .control-rail,
.app-page .export-strip,
.app-page .handoff-strip,
.app-page .bulk-strip,
.app-page .proof-strip {
  border-color: var(--sf-line);
  background: var(--sf-panel);
  box-shadow: 0 12px 34px rgba(47, 51, 64, 0.08);
}

.app-page .control-group {
  border-bottom-color: var(--sf-line);
}

.app-page .label {
  color: #6d4d7b;
  font-weight: 800;
}

.app-page .tool-button,
.app-page .export-button,
.app-page .seg,
.app-page .handoff-button,
.app-page .mini-button,
.app-page .export-format-label,
.app-page .batch-sort-label {
  border-color: #d7d0df;
  color: var(--sf-charcoal);
  background: #fff;
}

.app-page .export-format-label select {
  color: var(--sf-charcoal);
}

.app-page .seg.active,
.app-page .tool-button.active,
.app-page .job-row.active {
  border-color: var(--sf-plum);
  color: #fff;
  background: var(--sf-plum);
}

.app-page .job-row.batch-selected {
  border-color: var(--sf-plum);
  background: #f4ecf8;
}

.app-page .batch-selection-summary {
  color: var(--sf-muted);
}

.app-page .batch-sort-label {
  color: var(--sf-muted);
}

.app-page .batch-sort-label select,
.app-page .batch-toolbar .mini-button {
  border-color: #d7d0df;
  color: var(--sf-charcoal);
  background: #fff;
}

.app-page .account-summary,
.app-page .account-stat-grid article,
.app-page .dashboard-link {
  border-color: #d8d2df;
  color: var(--sf-charcoal);
  background: #fff;
}

.app-page .account-summary strong,
.app-page .account-dashboard-section b {
  color: var(--sf-charcoal);
}

.app-page .account-summary span,
.app-page .account-summary small,
.app-page .account-dashboard-section p,
.app-page .account-stat-grid span {
  color: var(--sf-muted);
}

.app-page .account-stat-grid strong {
  color: var(--sf-plum);
}

.app-page .reference-strip {
  border-color: var(--sf-line);
  background: #fff;
}

.app-page .reference-grid article {
  border-color: #d8d2df;
  background: #fff;
}

.app-page .reference-grid b,
.app-page .reference-grid strong {
  color: var(--sf-plum);
}

.app-page .reference-copy,
.app-page .reference-grid span {
  color: var(--sf-muted);
}

.app-page .tool-button.action,
.app-page .handoff-button.primary {
  border-color: var(--sf-plum);
  color: #fff;
  background: var(--sf-plum);
}

.app-page .tool-button.action[disabled],
.app-page .export-button[disabled],
.app-page .handoff-button[disabled] {
  color: #9ca3af;
  border-color: #e3deea;
  background: #f7f4fa;
}

.app-page .bulk-controls select,
.app-page .bulk-controls input[type="email"],
.app-page .bulk-controls .gallery-release,
.app-page .export-choice label,
.app-page .batch-card,
.app-page .benchmark-results article,
.app-page .file-pick input,
.app-page .account-gate input[type="text"],
.app-page .account-gate input[type="email"],
.app-page .proof-verdict,
.app-page .proof-score-grid article {
  border-color: #d8d2df;
  color: var(--sf-charcoal);
  background: #fff;
}

.app-page .account-gate label,
.app-page .file-pick {
  color: var(--sf-muted);
}

.app-page .benchmark-results article span {
  color: var(--sf-muted);
}

.app-page .batch-card.active {
  border-color: var(--sf-plum);
  background: #f4ecf8;
}

.app-page .batch-card strong {
  color: var(--sf-plum);
}

.app-page .batch-card span,
.app-page .batch-card small {
  color: var(--sf-muted);
}

.app-page .batch-card i {
  background: #eee7f4;
}

.app-page .batch-card i b {
  background: linear-gradient(90deg, var(--sf-plum), var(--sf-lavender));
}

.app-page .benchmark-results article a,
.app-page .benchmark-results article b {
  color: var(--sf-plum);
}

.app-page .oven-copy,
.app-page .benchmark-results p,
.app-page .proof-intro p,
.app-page .proof-match-note,
.app-page .proof-notes-grid li,
.app-page .proof-verdict p,
.app-page .proof-score-grid span {
  color: var(--sf-muted);
}

.app-page .benchmark-results,
.app-page .proof-results {
  border-top-color: var(--sf-line);
}

.app-page .benchmark-results strong,
.app-page .proof-intro strong,
.app-page .proof-match-note b,
.app-page .proof-notes-grid span,
.app-page .proof-verdict strong,
.app-page .proof-score-grid b {
  color: var(--sf-plum);
}

.app-page .proof-intro,
.app-page .proof-match-note,
.app-page .proof-notes-grid article {
  border-color: #d8d2df;
  color: var(--sf-charcoal);
  background: #fff;
}

.app-page .export-choice input {
  accent-color: var(--sf-plum);
}

.app-page .retouch-controls,
.app-page .job-row,
.app-page .qc-item,
.app-page .score-block,
.app-page .metric-block,
.app-page .naming-name,
.app-page .naming-panel input,
.app-page .review-status,
.app-page .review-panel textarea {
  border-color: #e3deea;
  background: #fff;
}

.app-page .warning-block {
  border-color: #e9c875;
  background: #fff8e3;
}

.app-page .range-row,
.app-page .score-block span,
.app-page .naming-panel label,
.app-page .review-status span,
.app-page .review-panel label {
  color: var(--sf-muted);
}

.app-page .range-row strong,
.app-page .metric-block strong,
.app-page .metric-block b,
.app-page .qc-item strong,
.app-page .job-row,
.app-page .review-status strong,
.app-page .review-panel textarea {
  color: var(--sf-charcoal);
}

.app-page .review-status.approved {
  border-color: #72c783;
  background: #f0fbf2;
}

.app-page .review-status.reprocess_requested,
.app-page .review-warning {
  border-color: #e9c875;
  color: #6d4d17;
  background: #fff8e3;
}

.app-page .review-status.manual_review_requested,
.app-page .manual-review-card.selected {
  border-color: var(--sf-plum);
  background: #f4ecf8;
}

.app-page .manual-review-card {
  border-color: #e3deea;
  background: #fff;
}

.app-page .manual-review-card strong {
  color: var(--sf-charcoal);
}

.app-page .manual-review-card span {
  color: var(--sf-muted);
}

.app-page .review-warning.neutral {
  border-color: #b7d5dd;
  color: #28596a;
  background: #eef8fb;
}

.app-page .retouch-controls input[type="range"] {
  accent-color: var(--sf-plum);
}

.app-page .score-block strong {
  color: var(--sf-plum);
}

.app-page .naming-name {
  color: var(--sf-plum);
}

.app-page .progress-track {
  background: #ebe5f1;
}

.app-page .progress-fill {
  background: linear-gradient(90deg, var(--sf-plum), var(--sf-lavender));
}

.app-page .split-line {
  background: rgba(250, 250, 252, 0.86);
}

.app-page .split-handle {
  border-color: rgba(250, 250, 252, 0.95);
  background: rgba(47, 51, 64, 0.84);
}

.app-page .stage-label {
  border-color: rgba(250, 250, 252, 0.58);
  color: #fff;
  background: rgba(90, 31, 107, 0.8);
}

.app-page .retouch-selector {
  border-color: #f5f0ff;
  box-shadow:
    0 0 0 2px var(--sf-plum),
    0 10px 24px rgba(90, 31, 107, 0.28);
}

.app-page .retouch-badge {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
  background: rgba(90, 31, 107, 0.82);
}

.app-page .retouch-history {
  border-top-color: #e3deea;
}

.app-page .retouch-history p,
.app-page .improvement-list {
  color: var(--sf-muted);
}

.app-page .loupe {
  border-color: var(--sf-plum);
}

.app-page .handoff-status {
  color: #6d4d7b;
}

.app-page .primary-button {
  border-color: var(--sf-plum);
  color: #fff;
  background: linear-gradient(180deg, #712483, var(--sf-plum));
}

/* ServoFolia product page */
body.site-page {
  margin: 0;
  min-width: 320px;
  background: var(--sf-offwhite);
  color: var(--sf-charcoal);
}

.site-page a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(226, 220, 234, 0.82);
  background: rgba(250, 250, 252, 0.9);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #202535;
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
}

.site-brand span {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.site-brand small {
  color: #6f5f88;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #40465a;
  font-size: 14px;
}

.site-nav nav a {
  text-decoration: none;
}

.site-hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 110px) clamp(20px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(250, 250, 252, 0.98) 0%, rgba(250, 250, 252, 0.88) 41%, rgba(250, 250, 252, 0.36) 72%, rgba(250, 250, 252, 0.62) 100%),
    url("/assets/servofolia-web-preview.png") center / cover no-repeat;
}

.site-hero-content {
  max-width: 650px;
}

.site-logo-lockup {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 10px;
  mix-blend-mode: multiply;
}

.company-mark {
  display: inline-flex;
  margin: 0 0 18px !important;
  color: var(--sf-plum) !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-hero h1,
.site-band h2,
.pricing-band h2,
.site-cta h2 {
  margin: 0;
  color: #202535;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.site-hero h1 {
  max-width: 680px;
}

.site-hero p,
.site-band p,
.site-grid p,
.pricing-band p,
.site-cta p {
  color: #4f576b;
  line-height: 1.55;
}

.site-hero p {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 18px;
}

.site-domain {
  display: inline-flex;
  margin-top: 16px !important;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--sf-plum) !important;
  font-size: 14px !important;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-primary,
.site-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
}

.site-primary {
  color: #fff;
  background: linear-gradient(180deg, #752487, var(--sf-plum));
  box-shadow: 0 16px 34px rgba(90, 31, 107, 0.22);
}

.site-secondary {
  border: 1px solid var(--sf-lavender);
  color: var(--sf-plum);
  background: rgba(255, 255, 255, 0.74);
}

.site-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 7vw, 90px) clamp(20px, 7vw, 96px);
}

.site-band h2,
.pricing-band h2,
.site-cta h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.site-band img {
  width: 100%;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(47, 51, 64, 0.14);
}

.sample-proof {
  background: linear-gradient(180deg, #fff, #fbf8ff);
}

.sample-proof figure {
  margin: 0;
}

.sample-proof figcaption {
  margin-top: 8px;
  color: var(--sf-plum);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(20px, 7vw, 96px) clamp(46px, 7vw, 90px);
}

.site-grid article,
.pricing-grid article {
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(47, 51, 64, 0.08);
}

.site-grid strong,
.pricing-grid strong,
.pricing-grid span {
  display: block;
  color: #202535;
}

.site-grid strong {
  margin-bottom: 9px;
  font-size: 18px;
}

.pricing-band {
  padding: clamp(46px, 7vw, 90px) clamp(20px, 7vw, 96px);
  background: #f5eff9;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pricing-grid span {
  margin-bottom: 10px;
  color: var(--sf-plum);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.pricing-grid strong {
  margin-bottom: 10px;
  font-size: 34px;
}

.pricing-grid .featured-price {
  border-color: var(--sf-lavender);
  background: linear-gradient(180deg, #fff, #fbf8ff);
}

.pricing-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4f576b;
  line-height: 1.4;
}

.pricing-list li::marker {
  color: var(--sf-plum);
}

.quantity-pick {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #6d4d7b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quantity-pick input {
  min-height: 40px;
  border: 1px solid var(--sf-line);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--sf-charcoal);
  background: #fff;
}

.plan-options {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.site-cart-button {
  min-height: 40px;
  border: 1px solid var(--sf-lavender);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--sf-plum);
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.site-cart-button:hover {
  border-color: var(--sf-plum);
  background: #f8f0fc;
}

.checkout-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding: clamp(46px, 7vw, 90px) clamp(20px, 7vw, 96px);
  background: #fff;
}

.checkout-band h2 {
  margin: 0;
  color: #202535;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.checkout-band p {
  color: #4f576b;
  line-height: 1.55;
}

.checkout-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 18px;
  background: #fbf8ff;
  box-shadow: 0 16px 40px rgba(47, 51, 64, 0.1);
}

.checkout-card > strong {
  color: var(--sf-plum);
  font-size: 18px;
}

.checkout-company {
  margin-top: -8px;
  color: #6f5f88;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-items {
  display: grid;
  gap: 9px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--sf-line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.cart-row strong,
.cart-row span,
.cart-row small {
  display: block;
}

.cart-row span {
  margin-top: 3px;
  color: var(--sf-muted);
  font-size: 12px;
}

.cart-row small {
  margin-top: 6px;
  color: #697087;
  font-size: 12px;
  line-height: 1.35;
}

.cart-row b,
.cart-total {
  color: var(--sf-plum);
  font-weight: 900;
}

.cart-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  color: var(--sf-plum);
  background: #fff;
  cursor: pointer;
}

.cart-total {
  border-top: 1px solid var(--sf-line);
  padding-top: 12px;
  font-size: 28px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-button {
  width: 100%;
  cursor: pointer;
}

.checkout-note,
.checkout-secure,
.checkout-merchant,
.checkout-status {
  margin: 0;
  color: var(--sf-muted);
  font-size: 13px;
}

.checkout-secure,
.checkout-merchant {
  border-top: 1px solid var(--sf-line);
  padding-top: 10px;
}

.checkout-merchant {
  margin-top: -4px;
  border-top: 0;
  padding-top: 0;
  font-size: 12px;
}

.checkout-status {
  color: var(--sf-plum);
  min-height: 19px;
}

.checkout-confirmation {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(37, 140, 78, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: #f3fff8;
  color: #163c26;
}

.checkout-confirmation[hidden] {
  display: none;
}

.checkout-confirmation strong {
  color: #0f6635;
  font-size: 18px;
}

.checkout-confirmation span {
  color: #2d513d;
  font-size: 13px;
}

.checkout-confirmation dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.checkout-confirmation dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(37, 140, 78, 0.18);
  padding-top: 7px;
}

.checkout-confirmation dt {
  color: #52715e;
}

.checkout-confirmation dd {
  margin: 0;
  font-weight: 800;
}

.receipt-next {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(37, 140, 78, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.receipt-next b {
  color: #17462a;
  font-size: 13px;
}

.receipt-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 7vw, 96px);
  color: #fff;
  background: linear-gradient(90deg, var(--sf-plum-dark), var(--sf-plum));
}

.site-cta h2 {
  max-width: 820px;
  color: #fff;
}

.site-cta .site-primary {
  color: var(--sf-plum);
  background: #fff;
}

.site-page .site-primary {
  color: #fff;
}

.site-page .site-secondary {
  color: var(--sf-plum);
}

.site-page .site-cta .site-primary {
  color: var(--sf-plum);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 7vw, 96px);
  border-top: 1px solid var(--sf-line);
  color: #697087;
  background: #fff;
  font-size: 13px;
}

.site-footer strong {
  color: var(--sf-plum);
}

.checkout-review {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(32, 37, 53, 0.42);
  backdrop-filter: blur(10px);
}

.time-nudge {
  position: fixed;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(18px, 5vh, 46px);
  z-index: 45;
  display: grid;
  gap: 6px;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--sf-plum-dark), var(--sf-plum));
  box-shadow: 0 18px 46px rgba(66, 20, 79, 0.28);
  animation: time-nudge-in 0.36s ease;
}

.time-nudge[hidden] {
  display: none;
}

.time-nudge strong,
.time-nudge span {
  display: block;
}

.time-nudge strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.time-nudge span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes time-nudge-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-review[hidden] {
  display: none;
}

.checkout-modal {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(47, 51, 64, 0.24);
}

.checkout-modal img {
  width: min(220px, 68vw);
  height: auto;
  mix-blend-mode: multiply;
}

.checkout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  color: var(--sf-plum);
  background: #fff;
  cursor: pointer;
}

.checkout-modal h2 {
  margin: 0;
  color: #202535;
  font-size: 28px;
  line-height: 1;
}

.checkout-review-items {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--sf-line);
  border-bottom: 1px solid var(--sf-line);
  padding: 10px 0;
}

.checkout-review-items article,
.checkout-review-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkout-review-items article strong,
.checkout-review-items article span {
  display: block;
}

.checkout-review-items article span,
.checkout-modal-note {
  color: var(--sf-muted);
  font-size: 13px;
  line-height: 1.4;
}

.checkout-review-items article b,
.checkout-review-total strong {
  color: var(--sf-plum);
}

.checkout-review-total {
  border-top: 1px solid var(--sf-line);
  padding-top: 10px;
  font-weight: 900;
}

.checkout-modal .site-primary {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.checkout-modal .site-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .brand-lockup img {
    width: 46px;
    height: 46px;
  }

  .nav-link {
    display: none;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    flex-wrap: wrap;
  }

  .site-hero {
    min-height: 78vh;
    background:
      linear-gradient(180deg, rgba(250, 250, 252, 0.97), rgba(250, 250, 252, 0.72)),
      url("/assets/servofolia-web-preview.png") center / cover no-repeat;
  }

  .site-band,
  .site-grid,
  .pricing-grid,
  .checkout-band,
  .site-cta {
    grid-template-columns: 1fr;
  }

  .site-grid {
    display: grid;
  }

  .site-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

  .checkout-actions {
    grid-template-columns: 1fr;
  }
}

/* Launch guardrail: the inspection viewer must never overflow or crop labels in narrow app panels. */
.app-page .viewer-panel {
  max-width: 100%;
}

.app-page .stage-label {
  max-width: calc(50% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-page .stage-label-right {
  right: clamp(14px, 3vw, 28px);
}

@media (max-width: 980px) {
  .app-page .viewer-panel.portrait-view {
    width: min(100%, calc(100vw - 24px), 720px);
    height: min(78vh, 860px);
    min-height: 560px;
  }

  .app-page .stage-label {
    max-width: min(42vw, calc(50% - 28px));
  }

  .app-page .stage-label-right {
    right: 14px;
  }
}

@media (max-width: 720px) {
  body.app-page {
    overflow-x: hidden;
  }

  .app-page .app-shell {
    padding-inline: 8px;
  }

  .app-page .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-page .status-pill {
    min-width: 0;
  }

  .app-page .viewer-panel.portrait-view {
    width: 100%;
    justify-self: stretch;
  }

  .app-page .reference-strip {
    padding-inline: 10px;
  }

  .app-page .reference-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .app-page .reference-grid img {
    max-height: 86px;
  }
}
