* {
  box-sizing: border-box;
}
:root {
  --ink: #151b2b;
  --muted: #777b88;
  --line: #e9eaf0;
  --canvas: #fbfbfd;
  --lilac: #f0efff;
  --purple: #635bdb;
  --green: #237a56;
  --radius: 16px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.6 Inter,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #aba5f5;
  outline-offset: 3px;
}
h1,
h2,
h3,
.brand {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1.3px;
  margin: 12px 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 7px;
}
h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
p {
  margin: 0 0 12px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.6px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand em {
  font-style: normal;
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 8px;
  flex: 1;
  align-items: center;
}
.nav a {
  padding: 9px 13px;
  border-radius: 8px;
  color: #717583;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a.active {
  background: #f2f3f7;
  color: var(--ink);
}
.nav a:hover {
  background: #f5f5fa;
}
.topright {
  display: flex;
  gap: 18px;
  align-items: center;
}
.store-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #f5f5f8;
  border: 1px solid #eeeef2;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #3aaa7d;
  border-radius: 50%;
}
.avatar {
  background: #ede9e1;
  border: 1px solid #dedbd3;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 3px;
}
.demo-strip {
  padding: 7px 4%;
  background: #f2f0fb;
  color: #726291;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid #eae6f3;
  gap: 14px;
}
.demo-strip a {
  text-decoration: underline;
}
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 35px 64px;
  min-height: calc(100vh - 180px);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #88849a;
}
.heading-sub {
  color: var(--muted);
  max-width: 650px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 550;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
  min-height: 41px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f5f5f8;
}
.btn.primary {
  background: #161b29;
  color: white;
  border-color: #161b29;
  box-shadow: 0 3px 6px #151b2910;
}
.btn.primary:hover {
  background: #30364a;
  transform: translateY(-1px);
}
.btn.purple {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: #777b88;
}
.btn.small {
  padding: 6px 11px;
  min-height: 32px;
  font-size: 11px;
}
.btn.wide {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px #161b2903;
}
.panel-pad {
  padding: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  padding: 21px 23px;
  position: relative;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label .icon {
  color: #9899a7;
  width: 17px;
}
.stat-num {
  font:
    650 29px/1.3 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -1px;
  margin: 10px 0 5px;
}
.stat small {
  font-size: 10px;
}
.stat.highlight {
  background: #f1f0ff;
  border-color: #e8e5fd;
}
.stat.highlight .stat-num {
  color: #6255b9;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  background: transparent;
  color: #858794;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
}
.tab.active {
  background: #f0effa;
  color: #685bb4;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 8px;
  max-width: 240px;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.search .icon {
  width: 15px;
  color: #979aa5;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 550;
  color: #9496a1;
  background: #fdfdfe;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 24px;
  border-bottom: 1px solid #f0f0f4;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fdfdff;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}
.thumb {
  width: 45px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1efed;
  display: grid;
  place-items: center;
  color: #a29b92;
  border: 1px solid #efedf0;
}
.product-title {
  font-size: 12px;
  font-weight: 550;
}
.product-code {
  font-size: 10px;
  color: #9093a0;
  font-variant-numeric: tabular-nums;
}
.badge {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f2f2f6;
  color: #757888;
}
.badge.ready {
  background: #eaf6ee;
  color: #387d55;
}
.badge.queued,
.badge.analyzing,
.badge.syncing {
  background: #eeedfc;
  color: #7563ca;
}
.badge.failed {
  background: #fff0ef;
  color: #b8625a;
}
.badge.needs_image,
.badge.needs_variants {
  background: #fff6e7;
  color: #aa792e;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 17px 24px;
  font-size: 11px;
  color: #999baa;
  border-top: 1px solid var(--line);
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.empty .icon-box {
  margin: 0 auto 17px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  margin: 7px auto 20px;
}
.icon-box {
  display: grid;
  place-items: center;
  background: var(--lilac);
  color: #766cb1;
  border-radius: 12px;
  width: 42px;
  height: 42px;
}
.icon-box.large {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}
.icon-box.large .icon {
  width: 26px;
  height: 26px;
}
.info-bar {
  padding: 16px 20px;
  border-radius: 10px;
  background: #f3f2fb;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #78758c;
  margin-top: 20px;
}
.info-bar .icon {
  color: #8b80c0;
  flex: none;
}
.info-bar strong {
  color: #5e5977;
  font-weight: 550;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 4%;
  font-size: 10px;
  color: #a0a1ad;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
}
.upload-page {
  max-width: 790px;
  margin: 0 auto;
}
.center-head {
  text-align: center;
  padding: 10px 0 28px;
}
.center-head h1 {
  font-size: 29px;
}
.center-head .heading-sub {
  margin: 0 auto;
}
.mode-switch {
  display: flex;
  justify-content: center;
  gap: 5px;
  background: #f0f0f5;
  padding: 4px;
  border-radius: 10px;
  max-width: 430px;
  margin: 0 auto 27px;
}
.mode-switch a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 9px;
  border-radius: 7px;
  color: #7d7f8f;
  white-space: nowrap;
}
.mode-switch a.active {
  background: #fff;
  color: #202435;
  box-shadow: 0 2px 3px #11111108;
}
.dropzone {
  padding: 43px 35px;
  text-align: center;
  transition: background 0.2s;
}
.dropzone.dragging {
  background: #f0effc;
  border-color: #b5ade3;
}
.dropzone .icon-box {
  margin: 0 auto 22px;
}
.dropzone h2 {
  font-size: 18px;
  margin-bottom: 9px;
}
.dropzone p {
  font-size: 12px;
  color: var(--muted);
}
.dropzone .info-bar {
  text-align: left;
  margin: 28px auto 0;
  max-width: 590px;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-label {
  cursor: pointer;
}
.field {
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  font-weight: 550;
  display: block;
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e2e3eb;
  border-radius: 8px;
  padding: 11px 13px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.7;
}
.field small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload-bottom {
  border-top: 1px solid var(--line);
  padding: 25px 30px;
}
.staged {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.staged img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.step {
  padding: 22px;
}
.step .icon-box {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  margin-bottom: 12px;
}
.step .icon {
  width: 16px;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.step h3 {
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.image-stage {
  aspect-ratio: 1;
  background: #f4f1ea;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-stage .icon {
  width: 70px;
  height: 70px;
  color: #c5bbaa;
}
.image-caption {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.gallery img {
  width: 100%;
  border-radius: 7px;
}
.detail-fields .field {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.field-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 7px;
}
.field-heading label {
  margin: 0;
}
.proposal {
  padding: 12px;
  background: #f4f1ff;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 8px;
}
.proposal p {
  margin: 0 0 10px;
}
.variant {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
}
.variant label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.variant input {
  accent-color: #6d62ce;
}
.section {
  margin-bottom: 25px;
}
.section-label {
  font-size: 10px;
  color: #8a8b99;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 15px;
}
.session-card {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.session-card .icon-box {
  width: 40px;
  height: 40px;
}
.session-title {
  display: flex;
  gap: 15px;
  align-items: center;
}
.session-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 0;
}
.session-title h3 {
  font-size: 13px;
  margin: 0;
}
.chain-layout {
  max-width: 570px;
  margin: 0 auto;
}
.camera-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.camera-tile {
  aspect-ratio: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 1px dashed #cdc9e1;
  border-radius: 12px;
  background: #faf9ff;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.camera-tile img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-tile .icon {
  width: 29px;
  height: 29px;
  color: #8c7eca;
}
.chain-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 12px;
}
.chain-bar {
  height: 4px;
  background: #eeedf5;
  border-radius: 4px;
  margin: 16px 0;
}
.chain-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: #8274d2;
}
.note {
  font-size: 11px;
  color: var(--muted);
}
.error-box {
  padding: 13px 17px;
  background: #fff1ef;
  border: 1px solid #f5dedb;
  border-radius: 9px;
  color: #ab635b;
  margin: 15px 0;
  font-size: 12px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f4;
  font-size: 12px;
  gap: 15px;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: #655dc4;
}
.check-row small {
  display: block;
  font-size: 10px;
}
.admin-note {
  border-left: 3px solid #c2b4e0;
  padding: 9px 14px;
  color: #8c809d;
  font-size: 11px;
  margin: 0 0 20px;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.json-view {
  background: #191e2b;
  color: #cad0de;
  padding: 20px;
  border-radius: 10px;
  overflow: auto;
  max-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  font:
    11px/1.7 ui-monospace,
    monospace;
}
.receipt {
  margin: 12px 0;
}
.receipt summary {
  cursor: pointer;
  font-size: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 30% 20%, #efedfa, transparent 65%), #fbfbfd;
}
.login-card {
  width: 100%;
  max-width: 410px;
  padding: 38px;
}
.login .brand {
  margin-bottom: 32px;
}
.login h1 {
  font-size: 27px;
  margin-bottom: 12px;
}
.login .heading-sub {
  font-size: 12px;
  margin-bottom: 25px;
}
.login .demo-login {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
.loading {
  height: 100vh;
  display: grid;
  place-items: center;
  color: #9290a2;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #1c2232;
  color: #fff;
  border: 1px solid #ffffff20;
  border-radius: 11px;
  padding: 13px 23px;
  z-index: 200;
  max-width: 90vw;
  transition: all 0.2s;
  font-size: 12px;
  box-shadow: 0 8px 35px #11111125;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #933f3c;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  width: min(490px, calc(100vw - 32px));
  color: var(--ink);
  box-shadow: 0 30px 100px #10102030;
}
dialog::backdrop {
  background: #17162955;
  backdrop-filter: blur(4px);
}
dialog h2 {
  margin-bottom: 6px;
}
dialog > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hidden {
  display: none !important;
}
.mobile-menu {
  display: none;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}
.flow-step {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}
.flow-step .number {
  width: 29px;
  height: 29px;
  border: 1px solid #e8e5f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8b839e;
  font-size: 11px;
}
.flow-step.complete .number {
  background: #eaf5ee;
  color: #4f8c61;
  border-color: #eaf5ee;
}
.workflow-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  border: 1px solid #e5e3ef;
  border-radius: 12px;
  padding: 19px 23px;
  background: linear-gradient(110deg, #f2f0fa, #fbfbfd);
}
.workflow-banner p {
  font-size: 11px;
  color: #8a8399;
  margin: 3px 0 0;
}
.workflow-banner strong {
  font-size: 12px;
  font-weight: 550;
}
.progress-ring {
  width: 56px;
  height: 56px;
  border: 3px solid #ece9f8;
  border-top-color: #8b7ccd;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.right {
  text-align: right;
}
.spaced {
  margin-top: 20px;
}
.link {
  color: #7666b6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
}
input[type="checkbox"] {
  accent-color: #6e62bd;
}
.cost {
  font-variant-numeric: tabular-nums;
}
.no-wrap {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .topbar {
    gap: 16px;
    padding: 0 25px;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 8px 9px;
    font-size: 11px;
  }
  .store-pill {
    display: none;
  }
  .container {
    padding: 30px 25px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 19px;
  }
  .topright {
    gap: 9px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px;
    z-index: 50;
    overflow: auto;
  }
  .nav a {
    font-size: 10px;
    padding: 12px 10px;
  }
  .nav a:nth-child(n + 5) {
    display: none;
  }
  .profile {
    gap: 7px;
  }
  .demo-strip {
    font-size: 9px;
    padding: 7px 18px;
  }
  .demo-strip span:last-child {
    display: none;
  }
  .container {
    padding: 24px 17px 90px;
    min-height: 80vh;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
  }
  .page-head > .actions {
    width: 100%;
  }
  .page-head > .actions .btn {
    flex: 1;
  }
  h1 {
    font-size: 27px;
  }
  .heading-sub {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px;
  }
  .stat-num {
    font-size: 25px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .toolbar {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tabs {
    gap: 2px;
  }
  .tab {
    padding: 7px 8px;
    font-size: 10px;
  }
  .search {
    max-width: none;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 13px 15px;
  }
  th.hide-mobile,
  td.hide-mobile {
    display: none;
  }
  .table-footer {
    font-size: 9px;
    padding: 13px;
  }
  .split,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .panel-pad {
    padding: 21px;
  }
  .center-head {
    padding-top: 3px;
  }
  .center-head h1 {
    font-size: 26px;
  }
  .dropzone {
    padding: 29px 20px;
  }
  .dropzone h2 {
    font-size: 16px;
  }
  .upload-bottom {
    padding: 23px 20px;
  }
  .steps {
    gap: 10px;
  }
  .step {
    padding: 14px;
  }
  .step h3 {
    font-size: 10px;
  }
  .step p {
    font-size: 10px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer {
    display: none;
  }
  .session-card {
    padding: 16px;
  }
  .session-card .actions .btn {
    font-size: 10px;
  }
  .session-title {
    gap: 10px;
  }
  .session-title .icon-box {
    display: none;
  }
  .session-title h3 {
    font-size: 12px;
  }
  .session-title p {
    font-size: 9px;
  }
  .workflow-banner {
    padding: 16px;
  }
  .workflow-banner > .icon {
    display: none;
  }
  .mode-switch a {
    font-size: 10px;
  }
  .image-stage {
    max-height: 420px;
  }
  .login-card {
    padding: 29px;
  }
  .camera-tile {
    aspect-ratio: 1;
  }
  .chain-layout > .panel {
    border-radius: 15px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .topright .btn {
    font-size: 10px;
    min-height: 31px;
  }
  .admin-grid .panel {
    min-width: 0;
  }
  .hide-mobile {
    display: none;
  }
  #toast {
    bottom: 80px;
  }
  .btn {
    min-height: 44px;
  }
  .check-row {
    min-height: 48px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .search input {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.paste-panel {
  margin-bottom: 24px;
  border-top: 4px solid #c8b9ee;
}
.paste-heading {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.paste-panel textarea {
  min-height: 200px;
  resize: vertical;
}
.extracted-card {
  padding: 20px;
  border: 1px solid #e8e5ee;
  border-radius: 16px;
  margin-top: 12px;
}
.extracted-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
  color: #71687d;
  font-size: 13px;
}
.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.language-picker {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.language-picker select {
  width: auto;
  padding: 6px;
}
#scan-video {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 16px;
  background: #17131e;
}
@media (max-width: 600px) {
  .capture-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .paste-heading {
    display: block;
  }
  .paste-heading h2 {
    margin-top: 12px;
  }
  .paste-panel {
    padding: 20px;
  }
  .language-picker {
    font-size: 0;
  }
  .language-picker select {
    font-size: 12px;
  }
}
