:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #697586;
  --line: #dce3ea;
  --orange: #ff9f1a;
  --orange-dark: #d87f00;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.cancel-operation {
  display: none;
}

@media (max-width: 900px) {
  body:has(.app-shell.scan-view:not(.scan-result-view)) {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .main,
  .app-shell.scan-view:not(.scan-result-view) .work-grid,
  .app-shell.scan-view:not(.scan-result-view) .scanner-panel,
  .app-shell.scan-view:not(.scan-result-view) .camera-box,
  .app-shell.scan-view:not(.scan-result-view) .camera-box.hidden {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-mobile-header {
    display: grid !important;
    grid-template-columns: 24px 1fr 24px !important;
    align-items: center !important;
    justify-items: center !important;
    background: #000000 !important;
    border-bottom: 1px solid #333333 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-icon-button {
    justify-self: start !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button {
    position: static !important;
    transform: none !important;
    justify-self: center !important;
    min-width: 66px !important;
    min-height: 34px !important;
    padding: 6px 16px !important;
    border: 1px solid #262626 !important;
    border-radius: 8px !important;
    background: #171717 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button::before {
    content: none !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button span {
    color: #777777 !important;
    font-size: 14px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-header-actions {
    justify-self: end !important;
    visibility: hidden !important;
    width: 24px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.82) 100%),
      radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.78) 100%) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::after {
    background:
      radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.72)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-mode-toggle {
    background: rgba(0, 0, 0, 0.72) !important;
    border: 1px solid #262626 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .corner {
    border-color: #ffb800 !important;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.48)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-left {
    border-top-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-right {
    border-top-color: #ffb800 !important;
    border-right-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-left {
    border-bottom-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-right {
    border-right-color: #ffb800 !important;
    border-bottom-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-quick-actions {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-cancel {
    border-color: #333333 !important;
    background: #171717 !important;
    color: #ffffff !important;
  }
}

@media (max-width: 900px) {
  body:has(.app-shell.scan-view:not(.scan-result-view)) {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .main,
  .app-shell.scan-view:not(.scan-result-view) .work-grid,
  .app-shell.scan-view:not(.scan-result-view) .scanner-panel {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-mobile-header {
    display: grid !important;
    grid-template-columns: 24px 1fr 24px !important;
    align-items: center !important;
    justify-items: center !important;
    background: #000000 !important;
    border-bottom: 1px solid #333333 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-icon-button {
    justify-self: start !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button {
    position: static !important;
    transform: none !important;
    justify-self: center !important;
    min-width: 66px !important;
    min-height: 34px !important;
    padding: 6px 16px !important;
    border: 1px solid #262626 !important;
    border-radius: 8px !important;
    background: #171717 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button::before {
    content: none !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button span {
    color: #777777 !important;
    font-size: 14px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-header-actions {
    justify-self: end !important;
    visibility: hidden !important;
    width: 24px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box,
  .app-shell.scan-view:not(.scan-result-view) .camera-box.hidden {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.82) 100%),
      radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.78) 100%) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::after {
    background:
      radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.72)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-mode-toggle {
    background: rgba(0, 0, 0, 0.72) !important;
    border: 1px solid #262626 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .corner {
    border-color: #ffb800 !important;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.48)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-left {
    border-top-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-right {
    border-top-color: #ffb800 !important;
    border-right-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-left {
    border-bottom-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-right {
    border-right-color: #ffb800 !important;
    border-bottom-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-quick-actions {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-cancel {
    border-color: #333333 !important;
    background: #171717 !important;
    color: #ffffff !important;
  }
}

/* LogiTrack responsive redesign */
:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --ink: #131b2e;
  --muted: #464554;
  --line: #c7c4d7;
  --line-soft: #e7e5f2;
  --primary: #4648d4;
  --primary-2: #6063ee;
  --primary-soft: #e9eaff;
  --slate-icon: #68739a;
  --red: #ba1a1a;
  --shadow: 0 14px 34px rgba(70, 72, 212, 0.09), 0 2px 6px rgba(19, 27, 46, 0.04);
}

body {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 72, 212, 0.05), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(70, 72, 212, 0.05), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  grid-template-columns: 320px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  gap: 30px;
  padding: 34px 20px 20px;
  border-right: 1px solid var(--line);
  background: rgba(250, 248, 255, 0.96);
  color: var(--ink);
}

.brand {
  padding: 0 10px 18px;
}

.brand-mark {
  display: none;
}

.brand strong {
  color: #2532d6;
  font-size: 18px;
  font-weight: 800;
}

.brand small {
  margin-top: 10px;
  color: #5d5b68;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-tabs {
  gap: 12px;
}

.market-tab {
  min-height: 50px;
  gap: 20px;
  padding: 0 22px;
  border-radius: 8px;
  background: transparent;
  color: #252232;
  font-size: 20px;
  font-weight: 600;
}

.market-tab span,
.market-tab .nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  font-weight: 800;
}

.market-tab.active {
  background: linear-gradient(135deg, var(--primary-2), #5659e9);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(70, 72, 212, 0.24);
}

.logout-button {
  margin-top: auto;
  min-height: 48px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.main {
  min-width: 0;
  padding: 0 30px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 104px;
  margin: 0 -30px 16px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 255, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-menu-button {
  display: none;
}

.topbar-title {
  width: 240px;
}

.topbar p {
  display: none;
}

.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
}

.desktop-search {
  position: relative;
  display: block;
  width: min(560px, 40vw);
}

.desktop-search span {
  position: absolute;
  left: 20px;
  top: 50%;
  color: #292736;
  font-size: 28px;
  transform: translateY(-50%);
}

.desktop-search input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 52px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: #ebeefe;
  color: #272536;
  font-size: 21px;
}

.top-actions {
  margin-left: auto;
}

.primary,
.secondary,
.icon-button {
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--primary), #3f42d4);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(70, 72, 212, 0.2);
}

.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.mobile-greeting {
  display: none;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 16px 0 50px;
}

.stats-grid article,
.queue-panel,
.scanner-panel,
.performance-card,
.quick-logs,
.channel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 184px;
  padding: 32px 30px;
}

.stats-grid .duplicates-stat {
  display: none;
}

.stats-grid span {
  color: #252232;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-grid strong {
  margin-top: 8px;
  color: #020617;
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: var(--primary-2);
  color: #ffffff;
  font-size: 34px;
  font-style: normal;
}

.packed-stat .stat-icon {
  background: var(--slate-icon);
  color: #111827;
}

.sku-stat .stat-icon {
  background: #858cff;
  color: #192469;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 30px;
  margin-bottom: 50px;
}

.performance-card {
  min-height: 570px;
  padding: 50px;
}

.performance-card header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

.performance-card h2,
.quick-logs h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.performance-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary);
}

.chart-legend i.muted {
  border: 1px solid #686579;
  background: transparent;
}

.chart-area {
  position: relative;
  height: 350px;
}

.chart-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.chart-lines span {
  border-top: 1px solid var(--line-soft);
}

.chart-days {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 18px;
}

.chart-days b {
  display: grid;
  justify-items: center;
  gap: 32px;
  padding-bottom: 8px;
  color: #252232;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.chart-days i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--primary);
}

.chart-days .active {
  color: var(--primary);
}

.chart-days .active i {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 7px rgba(70, 72, 212, 0.22);
}

.quick-logs {
  min-height: 570px;
  padding: 32px 30px;
}

.quick-logs h2 {
  margin-bottom: 24px;
  font-weight: 500;
}

.quick-logs div {
  display: grid;
  gap: 20px;
}

.quick-logs article {
  min-height: 76px;
  padding-left: 22px;
  border-left: 4px solid #777786;
}

.quick-logs .primary-log {
  border-left-color: var(--primary);
}

.quick-logs .danger-log {
  border-left-color: var(--red);
}

.quick-logs strong,
.quick-logs span {
  display: block;
}

.quick-logs strong {
  margin: 8px 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.quick-logs .danger-log strong {
  color: var(--red);
}

.quick-logs span {
  color: #343243;
  font-size: 15px;
  line-height: 1.35;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 32px;
}

.channel-card {
  position: relative;
  min-height: 150px;
  padding: 26px 30px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.channel-card:hover {
  border-color: rgba(70, 72, 212, 0.45);
  transform: translateY(-2px);
}

.channel-card b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(70, 72, 212, 0.25);
}

.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card strong {
  color: var(--ink);
  font-size: 20px;
}

.channel-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.work-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.app-shell:not(.scan-view):not(.labels-view) .scanner-panel {
  display: none;
}

.queue-panel,
.scanner-panel {
  border-radius: 12px;
}

.panel-heading {
  padding: 24px;
}

.sku-list {
  padding: 0 24px 24px;
}

.bottom-nav,
.floating-scan {
  display: none;
}

@media (min-width: 641px) {
  .app-shell.scan-view .dashboard-overview,
  .app-shell.scan-view .channel-grid {
    display: none;
  }

  .app-shell.labels-view .dashboard-overview {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  body {
    min-height: 100dvh;
    background:
      radial-gradient(circle at 100% 0%, rgba(70, 72, 212, 0.06), transparent 44%),
      radial-gradient(circle at 0% 100%, rgba(70, 72, 212, 0.06), transparent 44%),
      var(--bg);
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 28px 112px;
  }

  .topbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    min-height: 72px;
    margin: 0 -28px 28px;
    padding: 0 28px;
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: block;
    padding: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 23px;
  }

  .topbar-title {
    position: absolute;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }

  .topbar p,
  .desktop-search,
  .top-actions,
  .quick-logs,
  .scanner-panel {
    display: none;
  }

  .topbar h1 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
  }

  .topbar::after {
    content: "!";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-greeting {
    display: block;
    margin-bottom: 24px;
  }

  .mobile-greeting h2 {
    margin: 0 0 4px;
    color: #050816;
    font-size: 22px;
    font-weight: 800;
  }

  .mobile-greeting p {
    margin: 0;
    color: #312f40;
    font-size: 15px;
    line-height: 1.45;
  }

  .mobile-greeting strong {
    display: inline-block;
    padding: 0 5px;
    border-radius: 5px;
    background: rgba(96, 99, 238, 0.18);
    color: var(--primary);
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 0 36px;
  }

  .stat-card {
    min-height: 108px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .stats-grid span {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .stats-grid strong {
    font-size: 34px;
    font-weight: 800;
  }

  .stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 27px;
  }

  .dashboard-overview {
    display: block;
    margin-bottom: 36px;
  }

  .performance-card {
    min-height: 304px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .performance-card header {
    display: block;
    margin-bottom: 18px;
  }

  .performance-card h2 {
    font-size: 15px;
    font-weight: 800;
  }

  .performance-card p {
    display: none;
  }

  .chart-legend {
    gap: 16px;
    margin-top: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
  }

  .chart-legend i {
    width: 10px;
    height: 10px;
  }

  .chart-area {
    height: 206px;
  }

  .chart-lines {
    display: none;
  }

  .chart-days {
    gap: 8px;
  }

  .chart-days b {
    gap: 170px;
    padding-bottom: 0;
    font-size: 9px;
  }

  .chart-days i {
    display: none;
  }

  .channel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 0;
  }

  .channel-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .channel-card b {
    width: 50px;
    height: 50px;
    margin-bottom: 42px;
    border-radius: 999px;
  }

  .channel-card::after {
    content: attr(data-bg-icon);
    position: absolute;
    right: -8px;
    bottom: -24px;
    color: rgba(70, 72, 212, 0.09);
    font-size: 118px;
    font-weight: 900;
    line-height: 1;
  }

  .channel-card:nth-child(1)::after {
    content: "▰";
  }

  .channel-card:nth-child(2)::after {
    content: "◇";
  }

  .channel-card:nth-child(3)::after {
    content: "▢";
  }

  .channel-card strong {
    font-size: 16px;
  }

  .channel-card small {
    font-size: 15px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    min-height: 74px;
    padding: 10px 14px 12px;
    border-top: 1px solid var(--line);
    background: rgba(250, 248, 255, 0.92);
    backdrop-filter: blur(16px);
  }

  .bottom-nav .market-tab {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #101426;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .bottom-nav .market-tab span {
    width: auto;
    height: auto;
    font-size: 20px;
  }

  .bottom-nav .market-tab.active {
    color: var(--primary);
  }

  .floating-scan {
    position: fixed;
    right: 22px;
    bottom: 76px;
    z-index: 41;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(70, 72, 212, 0.38);
    font-size: 36px;
    line-height: 1;
  }

  .app-shell.labels-view .dashboard-overview,
  .app-shell.labels-view .channel-grid {
    display: none;
  }

  .app-shell.labels-view .queue-panel,
  .app-shell.labels-view .scanner-panel {
    display: block;
  }

  .app-shell:not(.scan-view):not(.labels-view) .queue-panel {
    display: block;
  }

  .app-shell:not(.scan-view) .work-grid {
    display: block;
    width: 100%;
    height: auto;
  }

  .app-shell:not(.scan-view) .queue-panel {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .app-shell:not(.scan-view) .panel-heading {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
  }

  .app-shell:not(.scan-view) .panel-heading > div {
    min-width: 0;
  }

  .app-shell:not(.scan-view) .panel-heading h2 {
    font-size: 18px;
    line-height: 1.15;
  }

  .app-shell:not(.scan-view) .panel-heading p {
    font-size: 13px;
    line-height: 1.25;
  }

  .app-shell:not(.scan-view) #sortMode {
    width: 112px;
    min-width: 112px;
  }

  .app-shell:not(.scan-view) .sku-list {
    padding: 0 20px 20px;
  }

  .app-shell:not(.scan-view) .sku-list:empty {
    display: none;
  }

  .app-shell.scan-view .topbar,
  .app-shell.scan-view .mobile-greeting,
  .app-shell.scan-view .stats-grid,
  .app-shell.scan-view .dashboard-overview,
  .app-shell.scan-view .channel-grid,
  .app-shell.scan-view .bottom-nav,
  .app-shell.scan-view .floating-scan {
    display: none;
  }

  .app-shell.scan-view .work-grid {
    display: block;
    height: 100dvh;
  }

  .app-shell.scan-view .scanner-panel {
    display: flex;
  }

  .topbar h1::before {
    content: "LogiTrack";
  }
}

@media (max-width: 900px) {
  body:has(.app-shell.scan-view) {
    background: #000000;
    overflow: hidden;
  }

  .app-shell.scan-view .main {
    min-height: 100dvh;
    padding: 0;
    background: #000000;
  }

  .app-shell.scan-view .work-grid {
    display: block;
    width: 100%;
    height: 100dvh;
  }

  .app-shell.scan-view .scanner-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #000000;
    box-shadow: none;
    overflow: hidden;
  }

  .app-shell.scan-view .scan-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 60px;
    min-height: 60px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(23, 23, 23, 0.96);
    color: #ffffff;
  }

  .app-shell.scan-view .scan-icon-button {
    display: grid;
    gap: 4px;
    width: 28px;
    padding: 4px;
  }

  .app-shell.scan-view .scan-icon-button span {
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
  }

  .app-shell.scan-view .scan-market-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
  }

  .app-shell.scan-view .scan-market-button::before {
    content: "Shopee";
    font-size: 13px;
  }

  .app-shell.scan-view .scan-market-button {
    font-size: 0;
  }

  .app-shell.scan-view .scan-market-button span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
  }

  .app-shell.scan-view .scan-header-actions {
    margin-left: auto;
  }

  .app-shell.scan-view .scan-help-button {
    display: none;
  }

  .app-shell.scan-view .scan-bell-button {
    display: none;
  }

  .app-shell.scan-view .status-card,
  .app-shell.scan-view .scan-input,
  .app-shell.scan-view .current-order,
  .app-shell.scan-view .scan-actions {
    display: none;
  }

  .app-shell.scan-view .camera-box,
  .app-shell.scan-view .camera-box.hidden {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #000000;
    overflow: hidden;
  }

  .app-shell.scan-view .camera-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.86) 100%),
      radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.36) 56%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
  }

  .app-shell.scan-view .camera-box::after {
    display: none;
  }

  .app-shell.scan-view .camera-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15) brightness(0.72) blur(1px);
  }

  .app-shell.scan-view .camera-mode-toggle {
    position: absolute;
    z-index: 4;
    top: 30px;
    left: 50%;
    display: flex;
    width: min(205px, 58vw);
    min-width: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
  }

  .app-shell.scan-view .camera-mode-toggle button {
    flex: 1;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.44);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }

  .app-shell.scan-view .camera-mode-toggle button.active {
    background: rgba(255, 255, 255, 0.55);
    color: #111111;
  }

  .app-shell.scan-view .viewfinder-frame {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 47%;
    display: block;
    width: min(84vw, 318px) !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    border: 3px solid #facc15;
    border-radius: 18px;
    box-shadow:
      0 0 0 999px rgba(0, 0, 0, 0.38),
      0 0 18px rgba(250, 204, 21, 0.28);
    transform: translate(-50%, -50%);
    overflow: hidden;
  }

  .app-shell.scan-view .viewfinder-frame .corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: #facc15;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.5));
  }

  .app-shell.scan-view .viewfinder-frame .top-left {
    top: -3px;
    left: -3px;
    border-top: 5px solid #facc15;
    border-left: 5px solid #facc15;
    border-top-left-radius: 16px;
  }

  .app-shell.scan-view .viewfinder-frame .top-right {
    top: -3px;
    right: -3px;
    border-top: 5px solid #facc15;
    border-right: 5px solid #facc15;
    border-top-right-radius: 16px;
  }

  .app-shell.scan-view .viewfinder-frame .bottom-left {
    bottom: -3px;
    left: -3px;
    border-bottom: 5px solid #facc15;
    border-left: 5px solid #facc15;
    border-bottom-left-radius: 16px;
  }

  .app-shell.scan-view .viewfinder-frame .bottom-right {
    right: -3px;
    bottom: -3px;
    border-right: 5px solid #facc15;
    border-bottom: 5px solid #facc15;
    border-bottom-right-radius: 16px;
  }

  .app-shell.scan-view .scan-line {
    z-index: 4;
    left: 0;
    right: auto;
    top: 0;
    width: 100%;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    animation: scan 3s linear infinite;
    transform: none;
  }

  .app-shell.scan-view .viewfinder-frame p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -74px;
    margin: 0;
    color: rgba(255, 255, 255, 0.18);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    text-shadow: none;
  }

  .app-shell.scan-view .viewfinder-frame p::before {
    content: "Detecção automática";
  }

  .app-shell.scan-view .viewfinder-frame p {
    font-size: 0;
  }

  .app-shell.scan-view .viewfinder-frame p::before {
    font-size: 17px;
  }

  .app-shell.scan-view .camera-quick-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: block;
    min-height: 116px;
    padding: 22px 30px 32px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86) 22%, #000000 100%);
  }

  .app-shell.scan-view .camera-quick-actions .primary {
    display: none;
  }

  .app-shell.scan-view .camera-cancel {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  background: #111827;
  color: white;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--orange);
  color: #111827;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sync-panel small {
  color: #aab4c2;
}

.market-tabs {
  display: grid;
  gap: 10px;
}

.market-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  color: #dbe2ea;
  background: transparent;
  text-align: left;
}

.market-tab span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.market-tab.active {
  background: #263244;
  color: #fff;
}

.sync-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.logout-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #dbe7f6;
  font-weight: 800;
  cursor: pointer;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button,
.connect-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--orange);
  color: #111827;
  font-size: 20px;
  text-decoration: none;
}

.secondary-sync {
  background: #263244;
  color: #ffffff;
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.topbar p,
.topbar h1 {
  margin: 0;
}

.topbar p {
  color: var(--muted);
  font-weight: 700;
}

.topbar h1 {
  margin-top: 4px;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: 0;
}

.top-actions,
.scan-actions {
  display: flex;
  gap: 10px;
}

.primary,
.secondary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--orange);
  color: #141414;
}

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

.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.stats-grid article,
.queue-panel,
.scanner-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span,
.panel-heading p,
.sku-head span,
.scan-input span,
.order-row small,
dt {
  color: var(--muted);
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
}

.work-grid.scan-mode {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.work-grid.scan-mode .scanner-panel {
  order: -1;
}

.queue-panel,
.scanner-panel {
  padding: 18px;
}

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

.panel-heading h2,
.panel-heading p {
  margin: 0;
}

.compact-heading {
  margin-bottom: 10px;
}

select,
input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: var(--ink);
}

.sku-list {
  display: grid;
  gap: 12px;
}

.sku-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 116px;
}

.sku-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  position: relative;
}

.sku-head img,
.order-detail img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #edf1f5;
}

.sku-head strong,
.sku-head span {
  display: block;
}

.variant-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.variant-badges em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.variant-badges em b {
  color: var(--ink);
  font-size: 13px;
}

.subtle-sku {
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: #a9b3c1;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.sku-head > b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4df;
  color: var(--orange-dark);
}

.order-list {
  display: grid;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  background: white;
  color: inherit;
  text-align: left;
  border-top: 1px solid var(--line);
}

.order-row:hover {
  background: #f5f9ff;
}

.order-row.done {
  color: var(--green);
}

.label-card {
  cursor: pointer;
}

.label-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 159, 26, 0.18);
}

.card-order-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
  background: #f9fafb;
}

.card-order-check {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.card-order-check span,
.card-order-check small {
  display: block;
}

.card-order-check strong {
  font-size: 13px;
}

.card-order-check small {
  color: var(--muted);
  font-size: 11px;
}

.card-order-check b {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid var(--line);
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.card-order-check.selected {
  border-color: var(--orange);
}

.card-order-check.checked {
  border-color: #bbebcb;
  background: #f0fdf4;
}

.card-order-check.checked b {
  border-color: var(--green);
  background: var(--green);
}

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

.scan-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.scan-history-item strong,
.scan-history-item span {
  display: block;
}

.scan-history-item span,
.scan-history-item small,
.empty-history {
  color: var(--muted);
}

.scan-history-item.found,
.scan-history-item.packed {
  border-color: #bbebcb;
}

.scan-history-item.duplicate {
  border-color: #fed7aa;
}

.scan-history-item.not_found {
  border-color: #fecaca;
}

.scanner-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scan-mobile-header {
  display: none;
}

.status-card {
  padding: 16px;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid var(--line);
}

.status-card span,
.status-card strong,
.scan-input span {
  display: block;
}

.status-card.success {
  background: #eaf8ef;
  border-color: #bbebcb;
  color: #146c2e;
}

.status-card.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--amber);
}

.status-card.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--red);
}

.scan-input {
  display: grid;
  gap: 7px;
}

.camera-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #020617;
  border: 1px solid #111827;
}

.camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-mode-toggle {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 190px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.camera-mode-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  font-weight: 900;
  cursor: pointer;
}

.camera-mode-toggle button.active {
  background: #ffffff;
  color: #111827;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.8);
}

.viewfinder-frame {
  display: none;
}

.camera-quick-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.camera-quick-actions .primary {
  width: min(280px, 100%);
}

.camera-auto-text {
  display: none;
}

.camera-cancel {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.hidden {
  display: none;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef2f6;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.auth-brand {
  color: var(--ink);
}

.auth-brand small {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.auth-notice {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
}

.auth-form.hidden,
.auth-notice.hidden {
  display: none;
}

.current-order {
  min-height: 220px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.current-order > p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.order-detail {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
}

.scan-product-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.scan-product-image > img,
.scan-product-card > img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f6fa;
}

.scan-product-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.scan-product-channel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scan-product-info h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.scan-product-grid {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 12px;
}

.scan-product-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scan-product-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.scan-product-sku {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #a9b3c1;
  font-size: 11px;
  font-weight: 800;
}

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

.label-detail-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.label-detail-head img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #edf1f5;
}

.label-detail-head h2,
.label-detail-head p {
  margin: 0;
}

.label-detail-head p {
  color: var(--muted);
}

.label-order-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
}

.label-order {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.label-order span,
.label-order small {
  display: block;
}

.label-order small {
  color: var(--muted);
}

.label-order b {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid var(--line);
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.label-order.checked {
  border-color: #bbebcb;
  background: #f0fdf4;
}

.label-order.checked b {
  border-color: var(--green);
  background: var(--green);
}

.order-detail h2 {
  margin: 8px 0 14px;
  font-size: 20px;
  line-height: 1.25;
}

dl {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 10px;
  margin: 0;
}

dt {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.message {
  margin: 14px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--amber);
}

@media (max-width: 950px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .market-tabs {
    display: flex;
  }

  .sync-panel {
    margin-left: auto;
    margin-top: 0;
    min-width: 190px;
  }

  .stats-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid.scan-mode {
    grid-template-columns: 1fr;
  }

  .work-grid.scan-mode .scanner-panel {
    order: -1;
  }

  .work-grid.scan-mode .scanner-panel {
    padding: 12px;
    border-radius: 8px;
    background: #0b0f17;
  }

  .work-grid.scan-mode .status-card,
  .work-grid.scan-mode .current-order,
  .work-grid.scan-mode .scan-input {
    background: #111827;
    color: #f8fafc;
    border-color: #263244;
  }

  .work-grid.scan-mode .status-card.warning,
  .work-grid.scan-mode .status-card.error {
    background: rgba(127, 29, 29, 0.32);
    border-color: rgba(127, 29, 29, 0.68);
    color: #fca5a5;
    text-align: center;
  }

  .work-grid.scan-mode .scan-input span {
    color: #cbd5e1;
  }

  .work-grid.scan-mode .scan-input input {
    background: #ffffff;
    color: var(--ink);
  }

  .work-grid.scan-mode .current-order > p {
    color: #94a3b8;
  }

  .work-grid.scan-mode .scan-product-card > img {
    max-height: 300px;
    background: #f8fafc;
  }

  .work-grid.scan-mode .scan-product-info h2,
  .work-grid.scan-mode .scan-product-grid strong {
    color: #f8fafc;
  }

  .work-grid.scan-mode .scan-product-channel,
  .work-grid.scan-mode .scan-product-grid small,
  .work-grid.scan-mode .scan-product-sku {
    color: #9ca3af;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px;
  }

  body:has(.app-shell.scan-view) {
    background: #181309;
    overflow: hidden;
  }

  .app-shell.scan-view .sidebar {
    display: none;
  }

  .app-shell.scan-view .queue-panel,
  .app-shell.scan-view .stats-grid,
  .app-shell.scan-view .topbar,
  .app-shell.scan-view .scan-input,
  .app-shell.scan-view .status-card.neutral,
  .app-shell.scan-view #printButton,
  .app-shell.scan-view #zplButton {
    display: none;
  }

  .app-shell.scan-view .main {
    min-height: 100dvh;
    padding: 0;
    background: #181309;
    overflow: hidden;
  }

  .app-shell.scan-view .work-grid {
    display: block;
    height: 100dvh;
  }

  .app-shell.scan-view .scanner-panel {
    min-height: 100dvh;
    height: 100dvh;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #181309;
    box-shadow: none;
  }

  .app-shell.scan-view .scan-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 22px;
    background: #181309;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .scan-icon-button,
  .scan-help-button,
  .scan-bell-button,
  .scan-market-button {
    border: 0;
    background: transparent;
    color: inherit;
  }

  .scan-icon-button {
    display: grid;
    gap: 5px;
    width: 34px;
    padding: 6px;
  }

  .scan-icon-button span {
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.82);
  }

  .scan-market-button {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
  }

  .scan-market-button span {
    font-size: 15px;
  }

  .scan-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .scan-help-button,
  .scan-bell-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 900;
  }

  .scan-bell-button {
    border: 0;
    font-size: 19px;
  }

  .scan-bell-button b {
    position: absolute;
    top: -3px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--orange);
    color: #181309;
    font-size: 8px;
  }

  .app-shell.scan-view .camera-box,
  .app-shell.scan-view .camera-box.hidden {
    display: block;
    flex: 1;
    min-height: 0;
    height: calc(100dvh - 72px);
    aspect-ratio: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #070707;
  }

  .app-shell.scan-view:not(.has-scan-result) .current-order,
  .app-shell.scan-view:not(.has-scan-result) .scan-actions {
    display: none;
  }

  .app-shell.scan-view .camera-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(24, 19, 9, 0.62), transparent 18%, transparent 76%, rgba(24, 19, 9, 0.7));
    pointer-events: none;
  }

  .app-shell.scan-view .camera-box video {
    position: absolute;
    inset: 0;
    filter: brightness(0.92);
  }

  .app-shell.scan-view .camera-mode-toggle {
    top: 40px;
    width: min(250px, 64vw);
    min-width: 0;
    padding: 4px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
  }

  .app-shell.scan-view .camera-mode-toggle button {
    min-height: 38px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .app-shell.scan-view .camera-mode-toggle button.active {
    background: #ffffff;
    color: #111111;
  }

  @keyframes scan {
    0%,
    100% {
      top: 0;
      opacity: 0.2;
    }

    50% {
      top: 100%;
      opacity: 1;
    }
  }

  .app-shell.scan-view .viewfinder-frame {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 51%;
    display: block;
    width: min(82vw, 320px);
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    transform: translate(-50%, -50%);
  }

  .app-shell.scan-view .viewfinder-frame .corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--orange);
    filter: drop-shadow(0 0 10px rgba(255, 159, 26, 0.58));
  }

  .app-shell.scan-view .viewfinder-frame .top-left {
    top: -2px;
    left: -2px;
    border-top: 4px solid var(--orange);
    border-left: 4px solid var(--orange);
    border-top-left-radius: 10px;
  }

  .app-shell.scan-view .viewfinder-frame .top-right {
    top: -2px;
    right: -2px;
    border-top: 4px solid var(--orange);
    border-right: 4px solid var(--orange);
    border-top-right-radius: 10px;
  }

  .app-shell.scan-view .viewfinder-frame .bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom: 4px solid var(--orange);
    border-left: 4px solid var(--orange);
    border-bottom-left-radius: 10px;
  }

  .app-shell.scan-view .viewfinder-frame .bottom-right {
    right: -2px;
    bottom: -2px;
    border-right: 4px solid var(--orange);
    border-bottom: 4px solid var(--orange);
    border-bottom-right-radius: 10px;
  }

  .app-shell.scan-view .viewfinder-frame p {
    position: absolute;
    inset-inline: 0;
    bottom: -50px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  }

  .app-shell.scan-view .scan-line {
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    right: auto;
    height: 2px;
    animation: scan 3s ease-in-out infinite;
    transform: none;
  }

  .app-shell.scan-view .camera-quick-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    min-height: 112px;
    padding: 14px 32px 22px;
    background: #181309;
    gap: 10px;
  }

  .app-shell.scan-view .camera-quick-actions .primary {
    display: none;
  }

  .app-shell.scan-view .camera-auto-text {
    display: none;
    color: rgba(255, 255, 255, 0.28);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
  }

  .app-shell.scan-view .camera-cancel {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 15px;
  }

  .app-shell.scan-view .current-order {
    min-height: 0;
    padding: 10px;
  }

  .app-shell.scan-view .current-order > p {
    display: none;
  }.app-shell.scan-view .scan-product-card {
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
  }

  .app-shell.scan-view .scan-product-card > img {
    width: 92px;
    height: 92px;
    max-height: none;
    object-fit: contain;
  }.app-shell.scan-view .scan-product-info {
    gap: 5px;
  }.app-shell.scan-view .scan-product-channel {
    font-size: 11px;
  }.app-shell.scan-view .scan-product-info h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.15;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }.app-shell.scan-view .scan-product-grid {
    grid-template-columns: 1fr 64px;
    gap: 8px;
  }.app-shell.scan-view .scan-product-grid small {
    font-size: 10px;
  }

  .app-shell.scan-view .scan-product-grid strong {
    margin-top: 1px;
    font-size: 17px;
    line-height: 1.1;
  }.app-shell.scan-view .scan-product-sku {
    font-size: 10px;
  }.app-shell.scan-view .message {
    margin: 8px 0 0;
    padding: 8px;
    font-size: 12px;
  }

  .app-shell.scan-view .scan-actions {
    gap: 8px;
  }

  .app-shell.scan-view .primary,
  .app-shell.scan-view .secondary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell.scan-view #resetButton {
    order: -1;
    background: var(--orange);
    border-color: var(--orange);
    color: #111827;
  }.app-shell.scan-view #completeButton {
    background: transparent;
    border-color: transparent;
    color: #cbd5e1;
  }.topbar,
  .panel-heading,
  .top-actions,
  .scan-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-row {
    grid-template-columns: 1fr auto;
  }

  .order-row small {
    grid-column: 1 / -1;
  }

  dl {
    grid-template-columns: 1fr;
  }
}

/* Final LogiTrack desktop/mobile integration overrides */
body {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 72, 212, 0.05), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(70, 72, 212, 0.05), transparent 34%),
    #faf8ff;
  color: #131b2e;
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  grid-template-columns: 320px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  gap: 30px;
  padding: 34px 20px 20px;
  border-right: 1px solid #c7c4d7;
  background: rgba(250, 248, 255, 0.96);
  color: #131b2e;
}

.brand {
  padding: 0 10px 18px;
}

.brand strong {
  color: #2532d6;
  font-size: 18px;
  font-weight: 800;
}

.brand small {
  margin-top: 10px;
  color: #5d5b68;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-tabs {
  gap: 12px;
}

.market-tab {
  min-height: 50px;
  gap: 20px;
  padding: 0 22px;
  border-radius: 8px;
  background: transparent;
  color: #252232;
  font-size: 20px;
  font-weight: 600;
}

.market-tab span,
.market-tab .nav-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  color: inherit;
  font-size: 24px;
}

.market-tab.active {
  background: linear-gradient(135deg, #6063ee, #5659e9);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(70, 72, 212, 0.24);
}

.logout-button {
  margin-top: auto;
  min-height: 48px;
  border-color: #c7c4d7;
  color: #464554;
}

.main {
  min-width: 0;
  padding: 0 30px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 104px;
  margin: 0 -30px 16px;
  padding: 0 30px;
  border-bottom: 1px solid #c7c4d7;
  background: rgba(250, 248, 255, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-menu-button,
.mobile-greeting,
.bottom-nav,
.floating-scan {
  display: none;
}

.topbar-title {
  width: 240px;
}

.topbar p {
  display: none;
}

.topbar h1 {
  margin: 0;
  color: #131b2e;
  font-size: 21px;
  font-weight: 500;
}

.desktop-search {
  position: relative;
  display: block;
  width: min(560px, 40vw);
}

.desktop-search span {
  position: absolute;
  left: 20px;
  top: 50%;
  color: #292736;
  font-size: 28px;
  transform: translateY(-50%);
}

.desktop-search input {
  width: 100%;
  height: 50px;
  padding: 0 20px 0 52px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: #ebeefe;
  color: #272536;
  font-size: 21px;
}

.top-actions {
  margin-left: auto;
}

.primary {
  background: linear-gradient(135deg, #4648d4, #3f42d4);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(70, 72, 212, 0.2);
}

.secondary {
  border-color: #c7c4d7;
  background: #ffffff;
  color: #131b2e;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 16px 0 50px;
}

.stats-grid article,
.queue-panel,
.scanner-panel,
.performance-card,
.quick-logs,
.channel-card {
  border: 1px solid #c7c4d7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 34px rgba(70, 72, 212, 0.09), 0 2px 6px rgba(19, 27, 46, 0.04);
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 184px;
  padding: 32px 30px;
}

.stats-grid .duplicates-stat {
  display: none;
}

.stats-grid span {
  color: #252232;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-grid strong {
  margin-top: 8px;
  color: #020617;
  font-size: 48px;
  line-height: 1;
  font-weight: 500;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #6063ee;
  color: #ffffff;
  font-size: 34px;
  font-style: normal;
}

.packed-stat .stat-icon {
  background: #68739a;
  color: #111827;
}

.sku-stat .stat-icon {
  background: #858cff;
  color: #192469;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 30px;
  margin-bottom: 50px;
}

.performance-card {
  min-height: 570px;
  padding: 50px;
}

.performance-card header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

.performance-card h2,
.quick-logs h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.performance-card p {
  margin: 4px 0 0;
  color: #464554;
  font-size: 15px;
}

.chart-legend {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #4648d4;
}

.chart-legend i.muted {
  border: 1px solid #686579;
  background: transparent;
}

.chart-area {
  position: relative;
  height: 350px;
}

.chart-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.chart-lines span {
  border-top: 1px solid #e7e5f2;
}

.chart-days {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 18px;
}

.chart-days b {
  display: grid;
  justify-items: center;
  gap: 32px;
  padding-bottom: 8px;
  color: #252232;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.chart-days i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #4648d4;
}

.chart-days .active {
  color: #4648d4;
}

.chart-days .active i {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 7px rgba(70, 72, 212, 0.22);
}

.quick-logs {
  min-height: 570px;
  padding: 32px 30px;
}

.quick-logs h2 {
  margin-bottom: 24px;
  font-weight: 500;
}

.quick-logs div {
  display: grid;
  gap: 20px;
}

.quick-logs article {
  min-height: 76px;
  padding-left: 22px;
  border-left: 4px solid #777786;
}

.quick-logs .primary-log {
  border-left-color: #4648d4;
}

.quick-logs .danger-log {
  border-left-color: #ba1a1a;
}

.quick-logs strong,
.quick-logs span {
  display: block;
}

.quick-logs strong {
  margin: 8px 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.quick-logs .danger-log strong {
  color: #ba1a1a;
}

.quick-logs span {
  color: #343243;
  font-size: 15px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 32px;
}

.channel-card {
  position: relative;
  min-height: 150px;
  padding: 26px 30px;
  overflow: hidden;
  text-align: left;
}

.channel-card b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #4648d4;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(70, 72, 212, 0.25);
}

.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card strong {
  color: #131b2e;
  font-size: 20px;
}

.channel-card small {
  margin-top: 4px;
  color: #464554;
  font-size: 16px;
}

.work-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 30px;
}

.panel-heading {
  padding: 24px;
}

.sku-list {
  padding: 0 24px 24px;
}

@media (min-width: 641px) {
  .app-shell.scan-view .dashboard-overview,
  .app-shell.scan-view .channel-grid,
  .app-shell.labels-view .dashboard-overview {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 28px 112px;
  }

  .topbar {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    min-height: 72px;
    margin: 0 -28px 28px;
    padding: 0 28px;
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: block;
    padding: 6px;
    background: transparent;
    color: #131b2e;
    font-size: 23px;
  }

  .topbar-title {
    position: absolute;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }

  .topbar p,
  .desktop-search,
  .top-actions,
  .quick-logs,
  .queue-panel,
  .scanner-panel {
    display: none;
  }

  .topbar h1 {
    color: #4648d4;
    font-size: 0;
    font-weight: 800;
  }

  .topbar h1::before {
    content: "LogiTrack";
    font-size: 14px;
  }

  .topbar::after {
    content: "!";
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 28px;
    height: 28px;
    color: #131b2e;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-greeting {
    display: block;
    margin-bottom: 24px;
  }

  .mobile-greeting h2 {
    margin: 0 0 4px;
    color: #050816;
    font-size: 22px;
    font-weight: 800;
  }

  .mobile-greeting p {
    margin: 0;
    color: #312f40;
    font-size: 15px;
    line-height: 1.45;
  }

  .mobile-greeting strong {
    display: inline-block;
    padding: 0 5px;
    border-radius: 5px;
    background: rgba(96, 99, 238, 0.18);
    color: #4648d4;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 0 36px;
  }

  .stat-card {
    min-height: 108px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .stats-grid span {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .stats-grid strong {
    font-size: 34px;
    font-weight: 800;
  }

  .stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 27px;
  }

  .dashboard-overview {
    display: block;
    margin-bottom: 36px;
  }

  .performance-card {
    min-height: 304px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .performance-card header {
    display: block;
    margin-bottom: 18px;
  }

  .performance-card h2 {
    font-size: 15px;
    font-weight: 800;
  }

  .performance-card p,
  .chart-lines,
  .chart-days i {
    display: none;
  }

  .chart-legend {
    gap: 16px;
    margin-top: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
  }

  .chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
  }

  .chart-area {
    height: 206px;
  }

  .chart-days {
    gap: 8px;
  }

  .chart-days b {
    gap: 170px;
    padding-bottom: 0;
    font-size: 9px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 0;
  }

  .channel-card {
    min-height: 168px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
  }

  .channel-card b {
    width: 50px;
    height: 50px;
    margin-bottom: 42px;
    border-radius: 999px;
  }

  .channel-card::after {
    position: absolute;
    right: -8px;
    bottom: -24px;
    color: rgba(70, 72, 212, 0.09);
    font-size: 118px;
    font-weight: 900;
    line-height: 1;
  }

  .channel-card:nth-child(1)::after {
    content: "▰";
  }

  .channel-card:nth-child(2)::after {
    content: "◇";
  }

  .channel-card:nth-child(3)::after {
    content: "▢";
  }

  .channel-card strong {
    font-size: 16px;
  }

  .channel-card small {
    font-size: 15px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: space-around;
    min-height: 74px;
    padding: 10px 14px 12px;
    border-top: 1px solid #c7c4d7;
    background: rgba(250, 248, 255, 0.92);
    backdrop-filter: blur(16px);
  }

  .bottom-nav .market-tab {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #101426;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .bottom-nav .market-tab span {
    width: auto;
    height: auto;
    font-size: 20px;
  }

  .bottom-nav .market-tab.active {
    color: #4648d4;
  }

  .floating-scan {
    position: fixed;
    right: 22px;
    bottom: 76px;
    z-index: 41;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #4648d4;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(70, 72, 212, 0.38);
    font-size: 36px;
    line-height: 1;
  }

  .app-shell.labels-view .dashboard-overview,
  .app-shell.labels-view .channel-grid {
    display: none;
  }

  .app-shell.labels-view .queue-panel,
  .app-shell.labels-view .scanner-panel {
    display: block;
  }
}

.cancel-operation {
  display: none;
}

@media (max-width: 900px) {
  body:has(.app-shell.scan-view:not(.scan-result-view)) {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .main,
  .app-shell.scan-view:not(.scan-result-view) .work-grid,
  .app-shell.scan-view:not(.scan-result-view) .scanner-panel,
  .app-shell.scan-view:not(.scan-result-view) .camera-box,
  .app-shell.scan-view:not(.scan-result-view) .camera-box.hidden {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-mobile-header {
    display: grid !important;
    grid-template-columns: 24px 1fr 24px !important;
    align-items: center !important;
    justify-items: center !important;
    background: #000000 !important;
    border-bottom: 1px solid #333333 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-icon-button {
    justify-self: start !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button {
    position: static !important;
    transform: none !important;
    justify-self: center !important;
    min-width: 66px !important;
    min-height: 34px !important;
    padding: 6px 16px !important;
    border: 1px solid #262626 !important;
    border-radius: 8px !important;
    background: #171717 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button::before {
    content: none !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-market-button span {
    color: #777777 !important;
    font-size: 14px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .scan-header-actions {
    justify-self: end !important;
    visibility: hidden !important;
    width: 24px !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.82) 100%),
      radial-gradient(circle at center, transparent 34%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.78) 100%) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-box::after {
    background:
      radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.72)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-mode-toggle {
    background: rgba(0, 0, 0, 0.72) !important;
    border: 1px solid #262626 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .corner {
    border-color: #ffb800 !important;
    filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.48)) !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-left {
    border-top-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .top-right {
    border-top-color: #ffb800 !important;
    border-right-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-left {
    border-bottom-color: #ffb800 !important;
    border-left-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .viewfinder-frame .bottom-right {
    border-right-color: #ffb800 !important;
    border-bottom-color: #ffb800 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-quick-actions {
    background: #000000 !important;
  }

  .app-shell.scan-view:not(.scan-result-view) .camera-cancel {
    border-color: #333333 !important;
    background: #171717 !important;
    color: #ffffff !important;
  }
}
