:root {
  color-scheme: light;
  --font: "Plus Jakarta Sans", "SF Pro Text", system-ui, sans-serif;

  /* Yorkshire Bricks palette */
  --yb-red: #e30613;
  --yb-red-dark: #b8050f;
  --yb-yellow: #ffd400;
  --yb-yellow-dark: #e6bf00;
  --yb-blue: #0055bf;
  --yb-blue-soft: rgba(0, 85, 191, 0.1);
  --yb-green: #237841;
  --yb-green-soft: rgba(35, 120, 65, 0.12);
  --yb-black: #1a1a1a;

  --bg: #f7f8fa;
  --bg-deep: #fffdf5;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-elevated: #ffffff;
  --text: var(--yb-black);
  --text-soft: #5c5c5c;
  --line: rgba(26, 26, 26, 0.08);
  --line-strong: rgba(26, 26, 26, 0.14);
  --border: var(--line-strong);
  --surface-muted: rgba(26, 26, 26, 0.04);

  --brand: var(--yb-red);
  --brand-soft: rgba(227, 6, 19, 0.1);
  --brand-yellow-soft: rgba(255, 212, 0, 0.2);
  --accent: var(--yb-yellow-dark);
  --accent-soft: rgba(255, 212, 0, 0.22);
  --new: var(--yb-blue);
  --new-soft: var(--yb-blue-soft);
  --used: var(--yb-green);
  --used-soft: var(--yb-green-soft);
  --warn: #c2410c;
  --warn-soft: rgba(255, 212, 0, 0.28);
  --own: var(--yb-green);
  --own-soft: var(--yb-green-soft);
  --danger: var(--yb-red);

  --shadow: 0 24px 60px rgba(26, 26, 26, 0.1);
  --shadow-soft: 0 12px 32px rgba(26, 26, 26, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121212;
    --bg-deep: #1a1a1a;
    --surface: rgba(26, 26, 26, 0.88);
    --surface-solid: #1a1a1a;
    --surface-elevated: #222222;
    --text: #f5f5f5;
    --text-soft: #a3a3a3;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --border: var(--line-strong);
    --surface-muted: rgba(255, 255, 255, 0.06);
    --brand-soft: rgba(227, 6, 19, 0.18);
    --brand-yellow-soft: rgba(255, 212, 0, 0.14);
    --new-soft: rgba(0, 85, 191, 0.2);
    --used-soft: rgba(35, 120, 65, 0.2);
    --warn-soft: rgba(255, 212, 0, 0.12);
    --own-soft: rgba(35, 120, 65, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss02" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 212, 0, 0.28), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(0, 85, 191, 0.12), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(35, 120, 65, 0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(227, 6, 19, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.app {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: max(2.4rem, calc(env(safe-area-inset-top) + 1.6rem)) 1rem
    max(2rem, env(safe-area-inset-bottom));
}

.top-bar {
  position: fixed;
  top: max(0.7rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.42rem;
}

.top-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

.top-actions .find-nav-btn {
  grid-column: 1 / -1;
}

.top-actions::-webkit-scrollbar {
  display: none;
}

.nav-label-short {
  display: none;
}

.inventory-search-btn,
.find-nav-btn,
.alerts-btn,
.feedback-btn,
.orders-btn,
.logout-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: var(--surface-solid);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.find-nav-btn {
  color: var(--yb-blue);
  border-color: rgba(0, 85, 191, 0.28);
  background: rgba(0, 85, 191, 0.06);
}

.top-badge-btn {
  position: relative;
}

.top-badge-btn.has-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -0.35rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--yb-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.logout-btn {
  position: static;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.inventory-search-btn:active,
.find-nav-btn:active,
.alerts-btn:active,
.feedback-btn:active,
.orders-btn:active,
.logout-btn:active {
  transform: scale(0.98);
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  overflow: visible;
}

.alerts-btn:active,
.feedback-btn:active,
.orders-btn:active,
.inventory-search-btn:active,
.find-nav-btn:active {
  color: var(--yb-green);
  border-color: rgba(35, 120, 65, 0.35);
}

.logout-btn:active {
  color: var(--yb-red);
  border-color: rgba(227, 6, 19, 0.25);
}

.login-shell {
  width: min(100%, 420px);
  margin: 0 auto;
  min-height: calc(100vh - max(2rem, env(safe-area-inset-top)));
  display: grid;
  align-items: center;
  padding: 1rem 0 max(2rem, env(safe-area-inset-bottom));
}

.login-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.login-logo {
  width: min(100%, 148px);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(26, 26, 26, 0.12));
}

.login-card h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.login-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.login-error {
  margin: 0;
  color: var(--yb-red);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 1.1rem;
}

.hero-logo {
  width: min(100%, 168px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(26, 26, 26, 0.12));
}

.subtitle {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.search-bar,
.results-panel,
.status {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.search-bar {
  padding: 0.85rem 1rem;
}

.home-find-hint {
  margin: 0.55rem 0.15rem 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: center;
}

.home-find-hint a {
  color: var(--yb-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.find-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.find-type-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: var(--surface-solid);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.find-type-btn.is-active {
  color: var(--yb-blue);
  border-color: rgba(0, 85, 191, 0.35);
  background: var(--yb-blue-soft);
}

.find-catalog-results {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.find-catalog-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}

.find-catalog-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.find-catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.find-catalog-thumb-fallback {
  font-weight: 800;
  color: var(--text-soft);
}

.find-catalog-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  align-content: center;
}

.find-catalog-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
}

.find-catalog-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.find-catalog-cta {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yb-blue);
}

.search-fields {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.search-bar .field-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.search-bar input {
  padding: 0.7rem 0.85rem;
  font-size: 0.94rem;
}

.search-bar .btn-primary {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0.7rem 0.95rem;
  font-size: 0.94rem;
  white-space: nowrap;
}

.field {
  display: grid;
}

.field-grow {
  min-width: 0;
}

.field-type {
  width: 7.5rem;
}

.field-hint {
  margin: -0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  background: var(--surface-elevated);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: rgba(227, 6, 19, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.35);
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.update-price-button {
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-secondary {
  border: 2px solid var(--yb-black);
  padding: 0.95rem 1.1rem;
  background: var(--surface-elevated);
  color: var(--yb-black);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-secondary:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-secondary:active:not(:disabled) {
  opacity: 0.85;
}

.btn-primary {
  border: 2px solid var(--yb-black);
  padding: 0.95rem 1.1rem;
  background: var(--yb-yellow);
  color: var(--yb-black);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-primary:active:not(:disabled) {
  opacity: 0.85;
}

.btn-primary[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.status {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  line-height: 1.5;
  font-size: 0.94rem;
}

.status.error {
  border-color: rgba(227, 6, 19, 0.3);
  background: var(--brand-soft);
  color: var(--yb-red);
}

.status.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 7rem;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-soft);
  font-weight: 600;
}

.results-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
}

.result-hero {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.35rem 0.15rem 0.15rem;
}

.result-main {
  position: relative;
  min-width: 0;
  padding-right: 0.15rem;
}

.inventory-stock-badge {
  margin: 0 0 0.35rem;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-soft);
}

.inventory-stock-badge strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.inventory-stock-badge.has-stock {
  color: var(--yb-green);
}

.inventory-stock-badge.has-stock strong {
  color: var(--yb-green);
}

.inventory-stock-badge.is-empty strong {
  color: var(--text-soft);
}

.result-image {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 2px solid var(--line-strong);
}

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

.result-kicker {
  margin: 0;
  color: var(--yb-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-copy h2 {
  margin: 0.25rem 0 0;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.result-id {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.notice {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.notice-text,
.notice {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.notice-warn {
  background: var(--warn-soft);
  border-color: rgba(255, 212, 0, 0.45);
}

.notice-own {
  background: var(--own-soft);
  border-color: rgba(35, 120, 65, 0.28);
}

.inventory-panel {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 120, 65, 0.28);
  background: var(--own-soft);
}

.inventory-headline {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.inventory-headline strong {
  color: var(--yb-green);
  font-size: 1.02rem;
  font-weight: 800;
}

.inventory-listings {
  display: grid;
  gap: 0.5rem;
}

.listing-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}

.listing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.listing-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.listing-condition {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
}

.listing-qty {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-soft);
}

.listing-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.listing-prices strong {
  font-weight: 800;
  color: var(--text);
}

.listing-arrow {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.listing-middle {
  font-weight: 800;
  color: var(--yb-green);
}

.listing-badge {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.listing-badge-at,
.listing-badge-below {
  background: rgba(35, 120, 65, 0.14);
  color: var(--yb-green);
}

.listing-badge-above {
  background: rgba(154, 52, 18, 0.1);
  color: #9a3412;
}

.listing-badge-neutral {
  background: rgba(26, 26, 26, 0.06);
  color: var(--text-soft);
}

.listing-margin {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.listing-note {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--yb-green);
}

.listing-update-btn {
  width: 100%;
  border: 2px solid var(--yb-green);
  border-radius: var(--radius-md);
  padding: 0.58rem 0.7rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.listing-update-btn:active {
  transform: scale(0.99);
  background: var(--yb-green-soft);
}

.pricing-sheet {
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.pricing-section {
  padding: 1rem;
}

.pricing-header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pricing-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn-sell {
  margin-left: auto;
  padding: 0.42rem 0.85rem;
  border: 2px solid rgba(227, 6, 19, 0.35);
  border-radius: 999px;
  background: var(--yb-red);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-sell:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-sell:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-sell[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.sell-form {
  display: grid;
  gap: 1rem;
}

.sell-hero {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.sell-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.sell-market-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--line);
}

.sell-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 calc(33.333% - 0.35rem);
  min-width: 5.5rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.sell-price-pill-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.sell-price-pill strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.sell-price-pill-low {
  background: var(--used-soft);
  color: var(--yb-green);
  border-color: rgba(35, 120, 65, 0.22);
}

.sell-price-pill-mid {
  background: var(--warn-soft);
  color: #9a6700;
  border-color: rgba(230, 191, 0, 0.45);
}

.sell-price-pill-high {
  background: var(--brand-soft);
  color: var(--yb-red);
  border-color: rgba(227, 6, 19, 0.2);
}

.sell-hero-image {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sell-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.sell-hero-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.sell-hero-copy h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.sell-hero-id {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.sell-field {
  display: grid;
  gap: 0.35rem;
}

.sell-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.sell-field input,
.sell-field select,
.sell-field textarea {
  padding: 0.85rem 0.95rem;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
}

.sell-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.sell-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sell-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.sell-success {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(35, 120, 65, 0.25);
  background: var(--used-soft);
  color: var(--yb-green);
  font-weight: 700;
  line-height: 1.5;
}

.sell-error {
  margin: 0;
  color: var(--yb-red);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.sell-inventory-notice {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.sell-inventory-notice-info {
  background: var(--used-soft);
  color: var(--yb-green);
  border-color: rgba(35, 120, 65, 0.22);
}

.sell-inventory-notice-warn {
  background: var(--warn-soft);
  color: #9a6700;
  border-color: rgba(230, 191, 0, 0.45);
}

.pricing-copy {
  display: grid;
  gap: 0.35rem;
}

.market-stats {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
}

.pill-new {
  background: var(--new-soft);
  color: var(--yb-blue);
  border-color: rgba(0, 85, 191, 0.2);
}

.pill-used {
  background: var(--used-soft);
  color: var(--yb-green);
  border-color: rgba(35, 120, 65, 0.22);
}

.pricing-blurb {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pricing-split {
  height: 2px;
  background: linear-gradient(90deg, var(--yb-yellow), var(--yb-red), var(--yb-blue), var(--yb-green));
  opacity: 0.35;
}

.price-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.price-point {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.price-point span {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-point strong {
  font-size: clamp(1rem, 4.5vw, 1.32rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.price-point-focus strong {
  color: var(--yb-red);
  font-size: clamp(1.12rem, 5vw, 1.5rem);
  letter-spacing: -0.045em;
}

.footnote {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.modal {
  width: min(92vw, 420px);
  border: 2px solid var(--yb-black);
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
}

.modal-body {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem;
}

.modal-body h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.modal-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem;
  border: 2px solid rgba(227, 6, 19, 0.35);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.modal-warning input {
  width: auto;
  margin-top: 0.15rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.find-item-modal {
  gap: 0.75rem;
}

.find-item-field {
  display: grid;
}

.find-item-field input {
  padding: 0.85rem 0.95rem;
  font-size: 0.94rem;
}

.find-item-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.find-item-results {
  display: grid;
  gap: 0.55rem;
  max-height: min(50vh, 320px);
  overflow-y: auto;
}

.inventory-results {
  display: grid;
  gap: 0.65rem;
}

.inventory-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .inventory-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.inventory-stat {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  font: inherit;
  color: inherit;
}

.inventory-stat.has-thumb {
  padding-right: 3.1rem;
}

.inventory-stat-thumb {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.inventory-stat-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

button.inventory-stat {
  cursor: pointer;
}

button.inventory-stat.is-active {
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: inset 0 0 0 1px rgba(227, 6, 19, 0.12);
}

.inventory-stat strong {
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--text);
}

.inventory-stat span {
  font-size: 0.78rem;
  font-weight: 700;
}

.inventory-stat small {
  font-size: 0.68rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.inventory-stat.is-static {
  cursor: default;
}

.inventory-result-card {
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.inventory-result-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  align-items: start;
}

.inventory-result-thumb {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inventory-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inventory-result-thumb-fallback {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-soft);
}

.inventory-result-body {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.inventory-result-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.inventory-result-meta {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--text-soft);
}

.inventory-result-listings {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.08rem;
}

.inventory-listing-block {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.inventory-listing-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.inventory-listing-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inventory-listing-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.inventory-listing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 0.35rem;
  flex-shrink: 0;
}

.inventory-listing-color {
  margin-right: auto;
}

.inventory-listing-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
}

.part-color-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: rgba(0, 85, 191, 0.1);
  color: var(--yb-blue);
  border: 1px solid rgba(0, 85, 191, 0.18);
}

.inventory-listing-block + .inventory-listing-block {
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.inventory-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  border: 2px solid var(--yb-black);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.inventory-qty-btn {
  background: var(--yb-yellow);
  color: var(--yb-black);
  gap: 0.28rem;
  padding: 0.32rem 0.72rem;
}

.inventory-qty-btn-count {
  font-weight: 900;
  letter-spacing: 0.03em;
}

.inventory-qty-btn-label {
  font-weight: 700;
  opacity: 0.82;
}

.inventory-qty-btn-adjust {
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1;
}

.inventory-qty-btn:active {
  background: var(--yb-yellow-dark);
  transform: scale(0.98);
}

.inventory-check-btn {
  background: var(--yb-green);
  color: #fff;
  box-shadow: 0 1px 4px rgba(35, 120, 65, 0.22);
}

.inventory-check-btn:active {
  background: #1b5e34;
  transform: scale(0.98);
}

.inventory-bl-btn {
  background: var(--yb-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 85, 191, 0.22);
}

.inventory-bl-btn:active {
  background: #004494;
  transform: scale(0.98);
}

.inventory-delete-btn {
  background: var(--yb-red);
  color: #fff;
  box-shadow: 0 1px 4px rgba(227, 6, 19, 0.22);
}

.inventory-delete-btn:active {
  background: var(--yb-red-dark);
  transform: scale(0.98);
}

.btn-danger {
  border: 2px solid var(--yb-black);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  background: var(--yb-red);
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn-danger:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-danger:active:not(:disabled) {
  opacity: 0.85;
}

.btn-danger[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.delete-listing-warning {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--yb-red);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.inventory-listing-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--text-soft);
}

.inventory-listing-copy strong {
  color: var(--text);
  font-weight: 800;
}

.inventory-listing-qty {
  color: var(--text-soft);
  font-weight: 600;
}

.inventory-condition {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.inventory-condition-new {
  background: rgba(35, 120, 65, 0.14);
  color: var(--yb-green);
}

.inventory-condition-used {
  background: rgba(0, 85, 191, 0.12);
  color: var(--yb-blue);
}

.inventory-completeness-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  background: rgba(186, 160, 230, 0.38);
  color: #5a3d8a;
  border: 1px solid rgba(140, 100, 200, 0.32);
}

.stock-qty-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--yb-yellow);
  color: var(--yb-black);
  border: 2px solid var(--yb-black);
  box-shadow: 0 1px 3px rgba(230, 191, 0, 0.35);
}

.qty-adjust-warning {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--warn-soft);
  color: #9a6700;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.qty-adjust-meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.qty-adjust-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.qty-adjust-btn {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qty-adjust-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qty-adjust-current-wrap {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
}

.qty-adjust-current-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.qty-adjust-current-wrap strong {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.qty-adjust-summary {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.45;
}

.inventory-result-prices {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.inventory-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.find-item-result {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.find-item-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.find-item-result-top strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--yb-red);
}

.find-item-result-type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.find-item-result span:last-child {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.find-item-result:active {
  transform: scale(0.99);
  background: var(--surface);
}

.orders-modal {
  display: grid;
  gap: 0.55rem;
}

.orders-modal h2 {
  margin-bottom: -0.15rem;
}

.orders-modal-copy {
  margin-top: 0;
  font-size: 0.76rem;
}

.orders-summary {
  padding: 0.48rem 0.62rem;
  border-radius: var(--radius-md);
  background: rgba(255, 212, 0, 0.18);
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.orders-status {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.orders-list {
  display: grid;
  gap: 0.42rem;
  max-height: min(68vh, 34rem);
  overflow: auto;
}

.order-card {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.45rem 0.52rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}

.order-card-inner {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.orders-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.orders-summary-count {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-soft);
  text-align: left;
}

.orders-click-drop-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  border: 2px solid #5b21b6;
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  background: #7c3aed;
  color: #fff;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
}

.orders-click-drop-open-btn:hover {
  background: #6d28d9;
}

.orders-click-drop-open-btn:active {
  transform: scale(0.98);
}

.order-card.is-new {
  border-color: rgba(227, 6, 19, 0.35);
  background: rgba(227, 6, 19, 0.04);
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.order-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
}

.order-card-id {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text);
}

.order-card-date {
  font-size: 0.64rem;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.order-badge-new {
  background: rgba(227, 6, 19, 0.12);
  color: var(--yb-red);
}

.order-badge-status {
  background: rgba(0, 85, 191, 0.1);
  color: #0055bf;
}

.order-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.42rem;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--text-soft);
}

.order-card-buyer {
  display: grid;
  gap: 0.1rem;
}

.order-card-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
}

.order-card-name-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  min-width: 0;
}

.order-card-label {
  color: var(--text);
  font-weight: 700;
}

.order-card-value {
  color: var(--text);
  font-weight: 500;
}

.order-card-address {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--text-soft);
}

.order-card-meta strong {
  color: var(--text);
  font-weight: 700;
}

.order-card-username {
  color: var(--text-soft);
  font-weight: 600;
}

.order-card-meta > span:not(:first-child)::before {
  content: "·";
  margin-right: 0.42rem;
  color: var(--line-strong);
  font-weight: 700;
}

.order-card-total {
  font-weight: 700;
  color: var(--text);
}

.order-card-status {
  color: var(--text-soft);
}

.order-card-body {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.order-card-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.order-card-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: center;
}

.order-click-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1d4f91;
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  background: #fff;
  color: #1d4f91;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.order-click-drop-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.order-click-drop-btn:active:not(:disabled) {
  background: #eef4fb;
  transform: scale(0.98);
}

.orders-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.orders-load-more-btn {
  border: 2px solid var(--yb-black);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.orders-load-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.orders-load-more-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.order-badge-click-drop {
  background: #eef4fb;
  color: #1d4f91;
}

.order-card-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
}

.order-weight-chip,
.order-price-chip,
.order-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.order-tracking-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  max-width: none;
}

.order-weight-chip {
  background: var(--brand-yellow-soft);
  color: #7a6200;
}

.order-price-chip {
  background: var(--yb-green-soft);
  color: var(--yb-green);
}

.order-status-chip {
  background: rgba(26, 92, 52, 0.12);
  color: #1a5c34;
}

.order-tracking-chip {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  text-decoration: none;
}

.order-tracking-chip:hover {
  background: rgba(124, 58, 237, 0.18);
}

.order-tracking-chip-action {
  border: none;
  cursor: pointer;
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  padding: 0.18rem 0.58rem;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.order-tracking-chip-action:disabled {
  opacity: 0.72;
  cursor: default;
}

.order-tracking-chip-action:active:not(:disabled) {
  transform: scale(0.98);
}

.click-drop-sent-list {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(29, 79, 145, 0.05);
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.click-drop-sent-list-failed {
  color: var(--yb-red);
}

.click-drop-sent-note {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-soft);
}

@media (max-width: 520px) {
  .order-card-body {
    flex-direction: column;
    align-items: stretch;
  }

  .order-card-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: stretch;
  }

  .order-click-drop-btn,
  .order-status-btn {
    flex: 1 1 auto;
  }
}

.order-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yb-black);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  background: var(--yb-red);
  color: #fff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(227, 6, 19, 0.22);
}

.order-status-btn:active {
  background: var(--yb-red-dark);
  transform: scale(0.98);
}

.order-status-field {
  display: grid;
  gap: 0.35rem;
}

.order-status-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.order-status-field select {
  padding: 0.85rem 0.95rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}

.order-item-thumb {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.12rem;
}

.order-item-fallback {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-soft);
}

.order-item-qty {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  min-width: 0.95rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.78);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.order-item-more {
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.45rem;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-soft);
  background: var(--surface);
}

.order-items-empty {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.feedback-modal {
  display: grid;
  gap: 0.55rem;
}

.feedback-modal h2 {
  margin-bottom: -0.15rem;
}

.feedback-modal-copy {
  margin-top: 0;
  font-size: 0.76rem;
}

.feedback-summary {
  padding: 0.48rem 0.62rem;
  border-radius: var(--radius-md);
  background: rgba(255, 212, 0, 0.18);
  border: 1px solid rgba(255, 212, 0, 0.45);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-status {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.feedback-list {
  display: grid;
  gap: 0.7rem;
  max-height: min(68vh, 34rem);
  overflow: auto;
  padding-right: 0.1rem;
}

.feedback-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.82rem 0.88rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
}

.feedback-card.is-new {
  border-color: rgba(227, 6, 19, 0.35);
  background: rgba(227, 6, 19, 0.035);
}

.feedback-card.is-negative {
  border-color: rgba(227, 6, 19, 0.28);
}

.feedback-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.feedback-card-from {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.feedback-card-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.feedback-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.feedback-card-order {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  background: rgba(0, 85, 191, 0.08);
  color: #0055bf;
  font-size: 0.64rem;
  font-weight: 800;
}

.feedback-rating-badge,
.feedback-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.feedback-rating-badge-positive {
  background: rgba(35, 120, 65, 0.14);
  color: var(--yb-green);
}

.feedback-rating-badge-neutral {
  background: rgba(24, 24, 24, 0.08);
  color: var(--text-soft);
}

.feedback-rating-badge-negative {
  background: rgba(227, 6, 19, 0.12);
  color: var(--yb-red);
}

.feedback-new-badge {
  background: rgba(227, 6, 19, 0.12);
  color: var(--yb-red);
}

.feedback-card-comment {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
}

.feedback-card-reply {
  margin: 0;
  padding: 0.55rem 0.62rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.feedback-card-reply strong {
  color: var(--text);
  font-weight: 700;
}

.subpage {
  min-height: 100vh;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right))
    0.85rem max(0.85rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.back-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: var(--surface-solid);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.subpage-title h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.subpage-copy {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.subpage-logout {
  position: static;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.subpage-main {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  display: grid;
  gap: 0.85rem;
}

.panel-summary,
.panel-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.panel-status-loading:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  min-height: 8rem;
  text-align: center;
  font-weight: 600;
}

.panel-spinner {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--line-strong);
  border-top-color: var(--yb-red);
  border-radius: 50%;
  animation: panel-spin 0.75s linear infinite;
}

@keyframes panel-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-boot-error {
  color: var(--yb-red);
  font-weight: 600;
}

.panel-summary {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(35, 120, 65, 0.08);
  color: var(--yb-green);
  font-weight: 600;
}

.alerts-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.alerts-stat {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.alerts-stat.is-active {
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: inset 0 0 0 1px rgba(227, 6, 19, 0.12);
}

.alerts-stat strong {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
}

.alerts-stat span {
  font-size: 0.78rem;
  font-weight: 700;
}

.alerts-stat small {
  font-size: 0.68rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.alerts-stat-col {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.alerts-inventory-meta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.alerts-scan {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.alerts-refresh {
  width: 100%;
  border: 1px solid rgba(35, 120, 65, 0.35);
  border-radius: var(--radius-md);
  padding: 0.38rem 0.5rem;
  background: var(--yb-green-soft);
  color: var(--yb-green);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
}

.alerts-refresh:active:not(:disabled) {
  transform: scale(0.98);
  background: rgba(35, 120, 65, 0.18);
}

.alerts-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}

.alerts-list,
.orders-list,
.feedback-list {
  display: grid;
  gap: 0.65rem;
}

.alert-card {
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.alert-card-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.alert-card-thumb {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.alert-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.18rem;
}

.alert-card-thumb-fallback {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-soft);
}

.alert-card-body {
  display: grid;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
}

.alert-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
}

.alert-review-btn {
  border: 1px solid rgba(35, 120, 65, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  background: var(--yb-green-soft);
  color: var(--yb-green);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.alert-review-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.alert-review-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.alert-card-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
  min-width: 0;
}

.alert-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.alert-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.alert-badge-stale {
  background: rgba(24, 24, 24, 0.08);
  color: var(--text-soft);
}

.alert-badge-overpriced {
  background: rgba(227, 6, 19, 0.12);
  color: var(--yb-red);
}

.alert-badge-underpriced {
  background: rgba(35, 120, 65, 0.14);
  color: var(--yb-green);
}

.alert-card-meta,
.alert-card-prices {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.alert-card-prices {
  font-weight: 600;
  color: var(--text);
}

.alert-check-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yb-black);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  background: var(--yb-green);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(35, 120, 65, 0.22);
}

.alert-check-btn:active {
  background: #1b5e34;
  transform: scale(0.98);
}

button.alert-check-btn {
  cursor: pointer;
  font-family: inherit;
}

.alert-price-modal {
  width: min(92vw, 440px);
}

.alert-price-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.alert-price-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.alert-price-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alert-price-thumb-fallback {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-soft);
}

.alert-price-hero-text {
  min-width: 0;
}

.alert-price-hero-text h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.alert-price-hero-text .modal-copy {
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.alert-price-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.alert-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.alert-price-grid div {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.55rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-align: center;
}

.alert-price-grid span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.alert-price-grid strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.alert-price-current {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.alert-price-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.alert-price-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.alert-price-field input {
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  font-weight: 700;
}

.alert-price-modal-body {
  display: grid;
  gap: 0.85rem;
}

.alert-price-error {
  margin: 0.55rem 0 0;
  color: var(--yb-red);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    flex: 1;
    gap: 0.45rem;
  }

  .top-nav-link {
    width: auto;
  }
}

@media (max-width: 639px) {
  .app {
    padding-top: max(6.75rem, calc(env(safe-area-inset-top) + 5.6rem));
  }

  .nav-label-long {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .inventory-search-btn,
  .alerts-btn,
  .feedback-btn,
  .orders-btn,
  .logout-btn {
    padding: 0.42rem 0.45rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .hero-logo {
    width: min(100%, 148px);
  }

  .result-hero {
    grid-template-columns: 72px 1fr;
  }

  .result-image {
    width: 72px;
    height: 72px;
  }
}
