.scan-mock [hidden] { display: none !important; }
.scan-mock button, .scan-mock input, .scan-mock select { font: inherit; letter-spacing: 0; }
.scan-mock button { cursor: pointer; }
.scan-mock button:disabled { opacity: .45; cursor: default; }
.scan-mock button:focus-visible, .scan-mock input:focus-visible, .scan-mock select:focus-visible { outline: 2px solid var(--brand-burgundy); outline-offset: 3px; }
.scan-mock svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.75; }
.sm-topbar { display: flex; align-items: center; gap: 22px; min-height: 64px; padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--border); }
.sm-topbar img { width: 125px; height: 32px; object-fit: contain; }
.sm-section { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 650; color: var(--brand-burgundy); }
.sm-prototype { margin-left: auto; font-size: 12px; color: var(--muted); }
.sm-main { max-width: 1250px; margin: auto; padding: 32px 28px 60px; }
.sm-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.sm-eyebrow { font-size: 11px; color: var(--muted); font-weight: 650; }
.scan-mock h1 { font-size: 24px; margin: 6px 0; }
.scan-mock h2 { font-size: 16px; margin: 0; }
.sm-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.scan-mock label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.scan-mock input, .scan-mock select { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px; min-width: 0; width: 100%; min-height: 40px; font-size: 13px; }
.sm-profile { width: 240px; }
.sm-btn, .sm-icon, .sm-text { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 550; padding: 9px 12px; min-height: 40px; }
.sm-icon { width: 40px; padding: 8px; flex: 0 0 40px; }
.sm-text { border: 0; background: transparent; color: var(--muted); }
.sm-primary { color: white; background: var(--brand-burgundy); border-color: var(--brand-burgundy); }
.sm-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0; }
.sm-action { display: grid; grid-template-columns: 1fr auto; gap: 14px; text-align: left; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.sm-action > svg:first-child { width: 25px; height: 25px; color: var(--brand-burgundy); grid-column: 1 / -1; }
.sm-action strong { font-size: 17px; }
.sm-action span { color: var(--muted); font-size: 13px; grid-column: 1 / -1; grid-row: 3; }
.sm-action:hover { border-color: var(--brand-burgundy); background: var(--surface-subtle); }
.sm-resume { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.sm-resume > div { flex: 1; display: grid; gap: 5px; font-size: 13px; }
.sm-resume span { color: var(--muted); }
.sm-context { border-block: 1px solid var(--border); padding: 14px 0 20px; margin-bottom: 24px; }
.sm-location-toggle { display: none; }
[data-theme="dark"] .sm-topbar img { background: #ffffff; padding: 4px 6px; border-radius: 3px; }
.sm-context-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sm-context-top .sm-text { margin-left: auto; }
.sm-badge { padding: 5px 9px; background: var(--brand-burgundy-soft); color: var(--brand-burgundy); border-radius: 4px; font-size: 12px; font-weight: 650; }
.sm-save { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.sm-save svg { width: 14px; height: 14px; }
.sm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sm-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.sm-scanner { min-width: 0; }
.sm-modebar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.sm-modebar button { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.sm-modebar button[aria-pressed=true] { border-color: var(--brand-burgundy); color: var(--brand-burgundy); font-weight: 650; }
.sm-camera { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #202224; }
.sm-camera > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: filter .15s; }
.sm-camera.is-running > img { filter: brightness(.86); }
.sm-camera-label { position: absolute; top: 12px; left: 12px; padding: 5px 8px; color: white; background: #202224d9; border-radius: 4px; font-size: 11px; }
.sm-guide { position: absolute; inset: 28% 12%; border: 1px solid #ffffffb3; border-radius: 4px; pointer-events: none; }
.sm-camera-status { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 10px; border-radius: 4px; background: #202224eb; color: white; font-size: 12px; }
.sm-code { position: absolute; top: 33%; width: 29%; height: 30%; border: 2px solid #f9b35c; border-radius: 4px; background: #f9b35c14; color: white; }
.sm-code-left { left: 23%; }.sm-code-right { left: 53%; }
.sm-code span { position: absolute; left: 0; bottom: -28px; font-size: 10px; background: #202224e6; padding: 4px; white-space: nowrap; }
.sm-code.is-detected { border-color: #50d393; background: #50d39315; }
.sm-camera-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.sm-camera-toolbar > .sm-btn { margin-right: auto; }
.sm-scenario { display: flex; gap: 10px; align-items: end; padding: 10px 0; }
.sm-scenario label { flex: 1; }
.sm-detections { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; font-size: 12px; }
.sm-detections strong { grid-column: 1 / -1; color: var(--warning); }
.sm-last { display: flex; gap: 12px; align-items: center; border-block: 1px solid var(--border); padding: 15px 0; margin-top: 12px; }
.sm-last > svg { color: var(--brand-burgundy); }
.sm-last div { display: grid; gap: 4px; font-size: 13px; }
.sm-last span { font-size: 12px; color: var(--muted); }
#manualPanel { display: flex; gap: 10px; align-items: end; padding: 30px 0; } #manualPanel label { flex: 1; }
.sm-list { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.sm-list > header { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--border); }
.sm-list header span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.sm-lines { max-height: 460px; overflow: auto; }
.sm-empty { text-align: center; color: var(--muted); padding: 38px 18px; font-size: 13px; }
.sm-line { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.sm-line-head { display: flex; gap: 10px; justify-content: space-between; align-items: start; }
.sm-line-head strong { font-size: 13px; } .sm-line-head small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.sm-line-head .sm-icon { width: 32px; min-height: 32px; flex-basis: 32px; border: 0; color: var(--muted); }
.sm-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sm-quantity { display: flex; align-items: center; }
.sm-quantity input { width: 64px; text-align: center; border-radius: 0; height: 40px; }
.sm-quantity button { border-radius: 4px; }
.sm-line-controls > span { color: var(--muted); font-size: 11px; }
.sm-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sm-line.has-error { background: var(--surface-danger); border-left: 3px solid var(--danger); }
.sm-error { color: var(--danger); font-size: 12px; padding: 10px 18px; margin: 0; }
.sm-line .sm-error { padding: 10px 0 0; }
.sm-list > footer { padding: 16px 18px; border-top: 1px solid var(--border); }.sm-list > footer button { width: 100%; }
.sm-totals { display: grid; gap: 7px; padding: 14px 18px; font-size: 12px; }.sm-totals > div { display: flex; justify-content: space-between; }
.sm-mobile-footer, .sm-mobile-close { display: none; }
.sm-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 24px; }
.sm-dialog::backdrop { background: #10131866; }
.sm-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sm-dialog header span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.sm-dialog .sm-fields { grid-template-columns: 1fr 1fr; }
.sm-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sm-dialog label { margin: 12px 0; }.sm-dialog .sm-check { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sm-check input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--brand-burgundy); }
.sm-muted { font-size: 12px; color: var(--muted); }
.sm-review-summary { display: grid; gap: 8px; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.sm-review-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.sm-review-row span { color: var(--muted); }
.sm-success { max-width: 650px; margin: 30px auto; }.sm-success > svg { width: 36px; height: 36px; color: var(--success); margin-bottom: 16px; }.sm-success > p { color: var(--muted); font-size: 13px; }.sm-success > button { margin-top: 24px; }
.sm-toast { position: fixed; z-index: 20; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 28px); padding: 12px 18px; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 4px 20px #0002; background: var(--surface); color: var(--text); font-size: 13px; }
@media(max-width: 720px) {
  .sm-topbar { padding: 10px 14px; gap: 12px; }.sm-topbar img { width: 108px; }.sm-prototype { font-size: 10px; }.sm-section { display: none; }
  .sm-main { padding: 22px 14px 95px; }.scan-mock h1 { font-size: 21px; }.sm-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 18px; }.sm-profile { width: 100%; }
  .sm-action-grid { grid-template-columns: 1fr; gap: 10px; }.sm-action { padding: 18px; grid-template-columns: 30px 1fr auto; gap: 8px 14px; }.sm-action > svg:first-child { grid-column: 1; grid-row: 1 / 3; align-self: center; }.sm-action strong { grid-column: 2; }.sm-action span { grid-column: 2; grid-row: 2; }.sm-action > svg:last-child { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .sm-fields { grid-template-columns: 1fr 1fr; gap: 12px; }.sm-save { font-size: 10px; }.sm-save svg { display: none; }.sm-context-top { gap: 7px; }.sm-context-top .sm-text { padding-inline: 4px; }
  .sm-in-operation .sm-profile { display: none; }
  .sm-location-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: transparent; color: var(--text); border: 0; padding: 8px 0; text-align: left; }
  .sm-location-toggle span { display: grid; gap: 5px; }.sm-location-toggle strong { font-size: 12px; }.sm-location-toggle small { font-size: 11px; color: var(--muted); line-height: 1.5; }
  .sm-context:not(.is-expanded) > .sm-fields { display: none; }
  .sm-context.is-expanded > .sm-fields { margin-top: 12px; }
  .sm-context { margin-bottom: 12px; padding-bottom: 12px; }
  .sm-workspace { display: block; }.sm-camera { aspect-ratio: 16 / 10; }.sm-guide { inset: 29% 8%; }.sm-code-left { left: 16%; }.sm-code-right { left: 54%; }.sm-code { width: 30%; }
  .sm-modebar button { flex: 1; justify-content: center; padding: 12px 8px; font-size: 12px; }
  .sm-list { display: none; }.sm-list.is-open { display: flex; flex-direction: column; position: fixed; z-index: 10; inset: 68px 0 0; border-radius: 8px 8px 0 0; box-shadow: 0 -15px 80px #0005; }.sm-list.is-open .sm-lines { flex: 1; max-height: none; }.sm-list > footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }.sm-mobile-close { display: inline-flex; }
  .sm-mobile-footer { display: flex; gap: 8px; position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }.sm-mobile-footer button { flex: 1; }
  .scan-mock button { min-height: 44px; }.sm-line-head .sm-icon { min-height: 44px; width: 44px; flex-basis: 44px; }.sm-quantity input { height: 44px; }
  .sm-dialog { padding: 18px; }.sm-toast { bottom: 88px; }.sm-detections { grid-template-columns: 1fr; }.sm-dialog footer .sm-btn { flex: 1; }.sm-resume { flex-wrap: wrap; }.sm-profile select { max-width: 100%; }
}
@media(max-width: 350px) { .sm-fields { grid-template-columns: 1fr; }.sm-save { max-width: 95px; }.sm-context-top .sm-text { font-size: 11px; }.sm-camera-status { font-size: 10px; }.sm-topbar { gap: 8px; } }
