@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Share+Tech+Mono&display=swap");

:root {
  --yellow: #fecc53;
  --yellow-2: #fecc53;
  --blue: #2a75bb;
  --blue-2: #72b8ff;
  --red: #e3350d;
  --charcoal: #f4f7fb;
  --ink: #e8edf6;
  --muted: #a8b2c4;
  --line: #303b4e;
  --panel: #141923;
  --panel-2: #0f141e;
  --field: #0a1018;
  --soft: #070b12;
  --success: #62d883;
  --on-accent: #12151c;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(42, 117, 187, 0.28), rgba(7, 11, 18, 0) 380px),
    radial-gradient(circle at 18% 0%, rgba(254, 204, 83, 0.12), transparent 320px),
    var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px clamp(14px, 3vw, 36px);
  background: rgba(13, 18, 27, 0.94);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1368px, 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--yellow);
  font-weight: 800;
}

.asset-code,
.label-code,
.print-code,
.label-row .pill,
.id-panel strong,
.compact-manual input[data-manual-label] {
  font-family: "Share Tech Mono", "Bricolage Grotesque", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0;
}

.asset-code,
.label-code,
.print-code {
  color: var(--yellow);
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: auto;
  height: 32px;
  max-width: 126px;
  object-fit: contain;
  flex: 0 0 auto;
}

.global-search {
  display: grid;
  grid-template-columns: minmax(190px, 340px) auto;
  align-items: center;
  gap: 6px;
  flex: 1 1 360px;
  max-width: 460px;
}

.global-search input {
  min-height: 40px;
  padding: 8px 10px;
  background: rgba(10, 16, 24, 0.78);
}

.global-search button {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--on-accent);
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.global-search input:focus,
.global-search button:focus-visible {
  border-color: var(--blue-2);
  outline: 3px solid rgba(114, 184, 255, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
}

.main-nav form {
  margin: 0;
}

.main-nav a,
.main-nav button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav button:hover,
.main-nav button:focus-visible {
  background: var(--yellow);
  color: var(--on-accent);
  outline: none;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 36px) 64px;
}

.page-heading,
.section-heading,
.label-toolbar,
.dupe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-heading {
  padding: 12px 0 4px;
}

.page-heading {
  margin-bottom: 20px;
}

.page-heading h1,
.section-heading h2,
.dupe-header h2,
.empty-state h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
}

.section-heading {
  margin: 28px 0 14px;
}

.section-heading a {
  color: var(--blue-2);
  font-weight: 800;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 42px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.button:hover,
.file-button:hover,
.button:focus-visible,
.file-button:focus-within {
  border-color: var(--blue);
  outline: none;
}

.button.primary {
  color: var(--on-accent);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button.success {
  color: var(--on-accent);
  background: var(--success);
  border-color: #3da95c;
}

.button.danger {
  color: #fff;
  background: var(--red);
  border-color: #b92708;
}

.button.ghost {
  background: transparent;
}

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

.file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.button-row,
.filter-actions,
.label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  padding: 12px 14px;
  background: var(--panel);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(31, 31, 35, 0.08);
  font-weight: 700;
}

.flash-success {
  border-left-color: var(--success);
}

.flash-error {
  border-left-color: var(--red);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(254, 204, 83, 0.16), transparent 340px),
    linear-gradient(180deg, rgba(42, 117, 187, 0.22), rgba(7, 11, 18, 0) 420px),
    var(--soft);
}

.login-page .page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  display: grid;
  gap: 22px;
  width: min(420px, 100%);
}

.login-brand {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--yellow);
}

.login-mark {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.login-wordmark {
  width: auto;
  height: 48px;
  max-width: min(160px, 42vw);
  object-fit: contain;
  flex: 0 1 auto;
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.price-stat-grid {
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel-2);
  border: 1px solid var(--line);
  border-top: 4px solid rgba(114, 184, 255, 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 48px;
  height: 48px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  align-self: end;
  color: var(--charcoal);
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
}

.stat-card.blue {
  border-top-color: rgba(114, 184, 255, 0.62);
  color: var(--blue-2);
}

.stat-card.red {
  border-top-color: rgba(227, 53, 13, 0.62);
  color: #ff7a5c;
}

.stat-card.yellow {
  border-top-color: rgba(254, 204, 83, 0.7);
  color: var(--yellow);
}

.stat-card.holo {
  color: #f5d675;
  background:
    linear-gradient(115deg, rgba(254, 204, 83, 0.18), rgba(114, 184, 255, 0.12) 45%, rgba(255, 122, 203, 0.11) 72%, rgba(98, 216, 131, 0.1)),
    var(--panel-2);
  border-top-color: rgba(254, 204, 83, 0.76);
}

.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.scanner-workflow {
  display: grid;
  gap: 18px;
}

.scanner-panel {
  display: grid;
  gap: 14px;
}

.capture-panel,
.id-panel,
.filter-bar,
.quick-notes,
.price-panel,
.analysis-panel,
.empty-state,
.dupe-group,
.duplicate-strip,
.label-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.capture-panel,
.id-panel,
.quick-notes,
.price-panel,
.analysis-panel,
.empty-state,
.dupe-group,
.duplicate-strip,
.label-list {
  padding: 18px;
}

.quick-notes {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border-top: 6px solid var(--yellow);
}

.capture-panel .quick-notes {
  margin: 14px 0 0;
  padding: 14px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.analysis-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border-top: 6px solid var(--blue);
}

.price-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border-top: 6px solid var(--yellow);
}

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

.analysis-grid div,
.analysis-attacks div,
.analysis-json {
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analysis-grid span,
.analysis-attacks span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-grid strong,
.analysis-attacks strong {
  display: block;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.analysis-attacks {
  display: grid;
  gap: 10px;
}

.analysis-attacks p {
  margin: 6px 0 0;
  color: var(--muted);
}

.analysis-json summary {
  cursor: pointer;
  color: var(--charcoal);
  font-weight: 800;
}

.analysis-json pre {
  max-height: 360px;
  margin: 10px 0 0;
  overflow: auto;
  color: var(--ink);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.price-table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.price-table th,
.price-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: var(--muted);
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-table tr.is-owned td {
  background: rgba(254, 204, 83, 0.06);
}

.price-owned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-list {
  display: grid;
  gap: 8px;
}

.candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.candidate-row span {
  color: var(--muted);
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
}

.camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(254, 204, 83, 0.1), rgba(42, 117, 187, 0.12)),
    var(--field);
  border: 3px solid #05070b;
  border-radius: var(--radius);
}

.smart-frame {
  min-height: 520px;
}

.camera-video,
.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.detection-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.camera-empty {
  display: grid;
  place-items: center;
  width: min(70%, 360px);
  aspect-ratio: 63 / 88;
  color: var(--blue-2);
  background: linear-gradient(145deg, #182132, #0c111a);
  border: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--blue), 0 18px 40px rgba(0, 0, 0, 0.34);
}

.camera-empty span {
  padding: 8px 10px;
  color: var(--on-accent);
  background: var(--yellow);
  border: 2px solid var(--blue);
  border-radius: 6px;
  font-size: 24px;
  font-weight: 800;
}

.capture-panel > .button-row {
  margin-top: 14px;
}

.workflow-status {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-status strong {
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1.2;
}

.workflow-status p {
  margin: 0;
  color: var(--muted);
}

.extract-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.extract-box textarea {
  min-height: 98px;
}

.id-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  border-top: 6px solid var(--yellow);
}

.workflow-side {
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card.is-active {
  border-color: var(--yellow);
}

.step-card.is-done {
  border-color: var(--success);
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--on-accent);
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 800;
}

.step-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--charcoal);
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.asset-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--success);
  border-radius: var(--radius);
}

.asset-result strong {
  color: var(--charcoal);
  font-size: 24px;
}

.manual-qr {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

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

.mobile-scan {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.scan-camera {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(68vh, 680px);
  overflow: hidden;
  background: #05070b;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.scan-camera .camera-video,
.scan-camera .camera-preview {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 680px);
  object-fit: contain;
}

.scan-camera .camera-empty {
  width: min(58%, 300px);
}

.scan-status {
  display: none;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--charcoal);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

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

.scan-actions .button {
  min-height: 48px;
  padding: 10px 8px;
}

.scan-actions [data-complete-manual] {
  grid-column: 1 / -1;
}

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

.scan-preview-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  overflow: hidden;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.scan-preview-card img {
  width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: cover;
}

.scan-preview-card span {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 6px;
  color: var(--on-accent);
  background: var(--yellow);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.compact-manual {
  color: var(--muted);
  font-size: 14px;
}

.compact-manual summary {
  cursor: pointer;
  font-weight: 800;
}

.compact-manual input {
  margin-top: 8px;
}

.id-panel strong {
  display: block;
  color: var(--charcoal);
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.qr-code {
  width: min(180px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: var(--charcoal);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.form-check {
  align-self: end;
  min-height: 42px;
}

.detail-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-title-line h1 {
  margin: 0;
}

.detail-code {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.card-editor {
  display: grid;
  gap: 18px;
}

.form-grid,
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.form-grid {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
}

label span,
.extract-box label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--field);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(114, 184, 255, 0.22);
}

.wide-field,
.search-field {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-bar {
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
}

.filter-check {
  align-self: end;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.card-tile {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.card-tile:hover,
.card-tile:focus-visible {
  border-color: rgba(254, 204, 83, 0.62);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.card-tile:focus-visible {
  outline: 3px solid rgba(254, 204, 83, 0.32);
  outline-offset: 3px;
}

.tile-image {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  color: var(--muted);
  background: var(--field);
  border-bottom: 4px solid var(--yellow);
  font-weight: 800;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.tile-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tile-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.label-code {
  font-weight: 800;
  width: fit-content;
}

.tile-body h3 {
  flex: 1 1 120px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tile-body p {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tile-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 7px;
  color: var(--yellow);
  background: rgba(254, 204, 83, 0.14);
  border: 1px solid rgba(254, 204, 83, 0.38);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tile-meta span {
  border-radius: 6px;
}

.tile-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(254, 204, 83, 0.2);
}

.tile-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tile-value strong {
  color: var(--yellow);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.pill.asset-code,
.label-row .pill.asset-code {
  color: var(--yellow);
  background: rgba(254, 204, 83, 0.14);
  border-color: rgba(254, 204, 83, 0.42);
}

.pill.danger {
  color: #fff;
  background: var(--red);
  border-color: #b92708;
}

.holo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  color: #05070b;
  background:
    linear-gradient(115deg, #fecc53 0%, #fff3bf 22%, #72b8ff 45%, #ff7acb 68%, #62d883 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(254, 204, 83, 0.38), 0 0 18px rgba(114, 184, 255, 0.24);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.link-pill:hover {
  border-color: var(--blue);
}

.duplicate-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-top: 6px solid var(--red);
}

.dupe-stack {
  display: grid;
  gap: 18px;
}

.dupe-header {
  margin-bottom: 14px;
}

.dupe-header p,
.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
}

.label-list {
  display: grid;
  gap: 16px;
}

.print-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.print-label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 3px 8px;
  padding: 10px;
  background: var(--panel-2);
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
}

.print-label input {
  grid-row: span 3;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.print-qr {
  grid-row: span 3;
  width: 68px;
  height: 68px;
  padding: 3px;
  background: #fff;
  border-radius: 4px;
}

.print-code {
  color: var(--charcoal);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.print-name,
.print-meta {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.print-name {
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  text-align: center;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .stat-grid,
  .capture-layout,
  .workflow-grid,
  .form-grid,
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .id-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-header {
    padding: 10px 12px;
  }

  .scan-page .app-header {
    display: none;
  }

  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .global-search {
    grid-template-columns: minmax(0, 1fr) auto;
    flex-basis: auto;
    max-width: none;
    width: 100%;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding: 18px 12px 48px;
  }

  .scan-page .page-shell {
    padding: 8px 8px 28px;
  }

  .scan-page .mobile-scan {
    gap: 8px;
  }

  .scan-page .scan-camera {
    min-height: min(74vh, 680px);
  }

  .scan-page .scan-camera .camera-video,
  .scan-page .scan-camera .camera-preview {
    min-height: min(74vh, 680px);
  }

  .page-heading,
  .section-heading,
  .duplicate-strip,
  .label-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading h1,
  .section-heading h2,
  .dupe-header h2,
  .empty-state h2 {
    font-size: 28px;
  }

  .stat-grid,
  .capture-layout,
  .workflow-grid,
  .form-grid,
  .analysis-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .wide-field,
  .search-field {
    grid-column: auto;
  }

  .camera-frame {
    min-height: 300px;
  }

  .smart-frame {
    min-height: 420px;
  }

  .id-panel strong {
    font-size: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tile-body h3 {
    font-size: 16px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .button,
  .button-row .button,
  .button-row .file-button {
    flex: 1 1 auto;
  }
}

@media print {
  .app-header,
  .page-heading,
  .label-toolbar,
  .flash-stack {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .label-list {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .print-sheet {
    grid-template-columns: repeat(3, 1fr);
  }

  .print-label {
    color: #111;
    background: #fff;
    border-color: #111;
  }

  .print-code,
  .print-name,
  .print-meta {
    color: #111;
  }

  .print-qr {
    background: #fff;
  }
}
