:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card2: #F7F7FA;
  --label: #000000;
  --label2: #8A8A8E;
  --label3: #C2C2C7;
  --sep: rgba(60, 60, 67, .16);
  --blue: #007AFF;
  --red: #FF3B30;
  --green: #1FA84F;
  --sheet: #F2F2F7;
  --nav: rgba(249, 249, 249, .88);
  --field: #FFFFFF;
  --outer: #DFDFE4;
  --shadow: 0 12px 40px rgba(0, 0, 0, .14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --card2: #2C2C2E;
    --label: #FFFFFF;
    --label2: #8E8E93;
    --label3: #48484A;
    --sep: rgba(84, 84, 88, .6);
    --blue: #0A84FF;
    --red: #FF453A;
    --green: #30D158;
    --sheet: #1C1C1E;
    --nav: rgba(20, 20, 22, .86);
    --field: #1C1C1E;
    --outer: #0A0A0A;
    --shadow: 0 12px 40px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--outer);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--label);
  -webkit-font-smoothing: antialiased;
  /* 贴近原生：不出橡皮筋、不让双击放大、不让长按选中文字和放大镜 */
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body { font-size: 15px; }

/* 输入框里要能选中、能长按粘贴，其它地方一律不给选 */
input, textarea { -webkit-user-select: text; user-select: text; }

#app {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  max-width: 460px;
  overflow: hidden;
  background: var(--bg);
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(58px + env(safe-area-inset-bottom));
}

.page.active { display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 6px) 16px 8px;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
  min-height: 52px;
}

.nav h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.4px;
  flex: 1;
}

.nav h1.small-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

.nav-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 16px;
  padding: 4px 0;
  margin-bottom: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-btn.plus { font-size: 28px; font-weight: 300; line-height: 1; padding: 0 2px; }
.nav-btn.text { font-size: 16px; }
.nav-btn.back { margin-right: 2px; }

.content { padding: 12px 0 24px; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 16px 8px;
  padding: 0 10px;
  height: 36px;
  border-radius: 10px;
  background: var(--card2);
  color: var(--label2);
}

@media (prefers-color-scheme: dark) { .searchbar { background: var(--card); } }

.searchbar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 16px;
  color: var(--label);
  font-family: inherit;
  min-width: 0;
}

.searchbar input::placeholder { color: var(--label2); }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }

.muted-line {
  padding: 0 20px 8px;
  font-size: 12px;
  color: var(--label2);
}

.card {
  margin: 0 16px 16px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 16px;
  border: 0;
  border-bottom: .5px solid var(--sep);
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.row:last-child { border-bottom: 0; }
.row.static { cursor: default; }
.row.act:active { background: var(--card2); }

.row-main { flex: 1; min-width: 0; display: block; }

.row-title {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--label2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-stock {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.row-stock .unit { font-size: 12px; font-weight: 400; color: var(--label2); margin-left: 2px; }
.row-stock.low { color: var(--red); }

.dot-note {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--label3);
  margin-left: 5px;
  vertical-align: middle;
}

.val { color: var(--label2); font-size: 15px; margin-left: auto; }
.chev { color: var(--label3); font-size: 17px; margin-left: auto; }
.row.danger { color: var(--red); justify-content: space-between; }

.group-title {
  padding: 0 20px 6px;
  font-size: 12px;
  color: var(--label2);
  letter-spacing: .02em;
}

.group-title.first { padding-top: 4px; }

.empty-block { padding: 56px 32px; text-align: center; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--label2); line-height: 1.7; }

/* ---------------- 进出库第一屏：选类型 ---------------- */

.kind-pick { padding: 8px 16px 0; }

.kp-head {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 6px 2px 4px;
}

.kp-sub {
  font-size: 13px;
  color: var(--label2);
  margin: 0 2px 18px;
}

.kind-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 104px;
  margin-bottom: 14px;
  padding: 22px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform .12s ease, opacity .12s ease;
}

.kind-card:active { transform: scale(.975); opacity: .85; }

.kc-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.kc-icon svg { width: 27px; height: 27px; }

.kc-text { flex: 1; min-width: 0; }
.kc-text b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.kc-text i {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: normal;
  color: var(--label2);
  line-height: 1.4;
}

.kc-arrow { flex: 0 0 auto; font-size: 24px; color: var(--label3); line-height: 1; }

.kind-card.tone-red { box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.kind-card.tone-red .kc-icon { background: rgba(255, 59, 48, .12); color: var(--red); }
.kind-card.tone-orange .kc-icon { background: rgba(255, 149, 0, .16); color: #C26800; }
.kind-card.tone-blue .kc-icon { background: rgba(0, 122, 255, .12); color: var(--blue); }
.kind-card.tone-green .kc-icon { background: rgba(31, 168, 79, .14); color: var(--green); }

@media (prefers-color-scheme: dark) {
  .kind-card.tone-orange .kc-icon { color: #FF9F0A; }
  .kind-card.tone-blue .kc-icon { color: #0A84FF; }
  .kind-card.tone-green .kc-icon { color: #30D158; }
}

.kp-tip {
  margin: 4px 2px 0;
  font-size: 12px;
  color: var(--label2);
  line-height: 1.6;
}

/* 进来后顶部提醒当前类型，扫错类型一眼能看出来 */
.cur-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px;
  font-size: 12px;
  color: var(--label2);
}

.cur-kind .pill {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 7px;
  margin-left: 0;
}

.btn {
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
  color: #FFF;
}

.btn.primary { background: var(--blue); }
.btn.danger { background: var(--red); }
.btn.ghost { background: var(--card2); color: var(--blue); }
.btn.full { display: block; width: calc(100% - 32px); margin: 0 16px 12px; }
.btn.small { font-size: 14px; padding: 9px 16px; }
.btn:disabled { opacity: .45; }

/* tabbar */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
}

.tab {
  flex: 1;
  border: 0;
  background: none;
  padding: 6px 0 4px;
  color: var(--label2);
  font-family: inherit;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--blue); }

/* detail screen */
.screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 32px;
}

.screen.open { transform: translateX(0); }

.hero { padding: 18px 20px 22px; }
.hero-num { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.hero-num span { font-size: 16px; font-weight: 400; color: var(--label2); margin-left: 4px; letter-spacing: 0; }
.hero-num.low { color: var(--red); }
.hero-sub { margin-top: 8px; font-size: 13px; color: var(--label2); }

.note-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; }
.note-label { font-size: 12px; color: var(--label2); }
.note-text { font-size: 14px; line-height: 1.5; width: 100%; }
.note-text.empty { color: var(--label3); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.action-row { display: flex; gap: 10px; margin: 0 16px 20px; }
.action-row .btn { flex: 1; }

/* logs */
.today-card { display: flex; }
.today-cell { flex: 1; padding: 14px 16px; }
.today-cell + .today-cell { border-left: .5px solid var(--sep); }
.today-k { font-size: 12px; color: var(--label2); }
.today-v { font-size: 22px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.today-v.in { color: var(--blue); }
.today-v.out { color: var(--red); }

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
}

.day-head i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--label2); }

.log-time {
  width: 46px;
  flex: none;
  font-size: 13px;
  color: var(--label2);
  font-variant-numeric: tabular-nums;
}

.log-num { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.log-num.in { color: var(--blue); }
.log-num.out { color: var(--red); }

.log-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}

.ret-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.ret-btn:active { opacity: .5; }

.about {
  padding: 24px 24px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--label2);
  line-height: 1.9;
}

/* sheets */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--sheet);
  border-radius: 14px 14px 0 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  box-shadow: var(--shadow);
  max-height: 88%;
  overflow-y: auto;
}

.sheet.open { transform: translateY(0); }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.sheet-title { font-size: 16px; font-weight: 600; }

.sheet-btn {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--blue);
  padding: 4px 0;
  cursor: pointer;
}

.sheet-btn.strong { font-weight: 600; }

.sheet-body { padding: 4px 16px 8px; }

.qty-name { text-align: center; font-size: 15px; color: var(--label2); }
.qty-stock { text-align: center; font-size: 12px; color: var(--label2); margin-top: 3px; }

.qty-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 6px;
}

.qty-big-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 6px 0;
  width: 100%;
  cursor: text;
}

/* 空着时显示浅灰提示，代替预填数字 */
.qty-ph {
  font-size: 20px;
  font-weight: 500;
  color: var(--label3);
  line-height: 52px;
}

.qty-big {
  width: 2px;
  min-width: 2px;
  text-align: left;
  font-size: 52px;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  border: 0;
  background: none;
  color: var(--label);
  outline: 0;
  padding: 0;
}

.qty-unit {
  font-size: 15px;
  color: var(--label2);
  white-space: nowrap;
}

/* 数量只手动输入，没有快捷按钮 */
.qty-input-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--label2);
}

.qty-warn {
  margin: 6px 0 4px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 59, 48, .1);
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

/* form */
.form .field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: .5px solid var(--sep);
}

.form .field:last-child { border-bottom: 0; }
.form .field.col { flex-direction: column; align-items: stretch; gap: 6px; }

.form .field > span {
  width: 84px;
  flex: none;
  font-size: 15px;
  color: var(--label);
}

.form .field.col > span { width: auto; }

.form input, .form textarea, .note-area {
  flex: 1;
  border: 0;
  background: none;
  outline: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--label);
  min-width: 0;
  padding: 0;
}

.form textarea, .note-area {
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: none;
  width: 100%;
}

.note-area { min-height: 130px; }

.form input::placeholder, .form textarea::placeholder, .note-area::placeholder { color: var(--label3); }

/* scan */
.reader-wrap {
  position: relative;
  margin: 0 16px 12px;
  height: 44vh;
  max-height: 330px;
  min-height: 190px;
  border-radius: 14px;
  overflow: hidden;
  background: #101012;
}

#reader { width: 100%; height: 100%; }
#reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
#reader img { display: none; }

.reader-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.reader-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #101012;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  line-height: 1.6;
}

.reader-fallback p { margin: 0; }

.scan-tip {
  padding: 4px 20px;
  font-size: 12px;
  color: var(--label2);
  text-align: center;
  line-height: 1.6;
}

/* toast */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 12px);
  max-width: 88%;
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(28, 28, 30, .94);
  color: #FFF;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: rgba(180, 40, 32, .96); }
.toast.ok { background: rgba(20, 120, 60, .96); }

/* ---------- 新增：类型标签 ---------- */
.pill {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: 1px;
  letter-spacing: .02em;
}

.pill.out_full { background: rgba(255, 59, 48, .12); color: var(--red); }
.pill.out_split { background: rgba(255, 149, 0, .16); color: #B45F00; }
.pill.in_purchase { background: rgba(0, 122, 255, .12); color: var(--blue); }
.pill.in_stock { background: rgba(31, 168, 79, .14); color: var(--green); }
.pill.in_return { background: rgba(90, 200, 250, .2); color: #0B7C9E; }

@media (prefers-color-scheme: dark) {
  .pill.out_split { color: #FF9F0A; }
  .pill.in_stock { color: #30D158; }
  .pill.in_return { color: #64D2FF; }
}

/* ---------- 新增：筛选胶囊 ---------- */
.chips {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chips.wrap {
  flex-wrap: wrap;
  overflow-x: visible;
  row-gap: 8px;
}

/* 五个类型筛选：三列网格，三上两下，不藏在横向滚动里 */
.chips.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow-x: visible;
}

.chips.grid3 button {
  padding: 8px 4px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chips button {
  flex: none;
  border: 0;
  background: var(--card2);
  color: var(--label);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) { .chips button { background: var(--card); } }

.chips button.on {
  background: var(--blue);
  color: #FFF;
  font-weight: 600;
}

.range-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 16px 12px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 12px;
  font-size: 13px;
  color: var(--label2);
}

.range-custom input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: var(--card2);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--label);
}

@media (prefers-color-scheme: dark) { .range-custom input { background: var(--card2); } }

/* ---------- 新增：统计卡 ---------- */
.stats { padding: 14px 16px 12px; }

.stats-top { display: flex; }

.stats-cell { flex: 1; min-width: 0; }
.stats-cell + .stats-cell { border-left: .5px solid var(--sep); padding-left: 14px; }

.stats-k { font-size: 12px; color: var(--label2); }

.stats-v {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

.stats-v span { font-size: 12px; font-weight: 400; color: var(--label2); margin-left: 3px; letter-spacing: 0; }
.stats-v.in { color: var(--blue); }
.stats-v.out { color: var(--red); }

.stats-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: .5px solid var(--sep);
  font-size: 12px;
  color: var(--label2);
  line-height: 1.8;
}

.stats-note { margin-top: 4px; font-size: 11px; color: var(--label3); }

.ret-line { color: #0B7C9E; }
.stats-hint { margin-top: 6px; font-size: 11px; color: #B45F00; }

/* 记录页：已选商品提示条 */
.picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 16px 12px;
  padding: 9px 12px;
  background: rgba(0, 122, 255, .1);
  border-radius: 10px;
  font-size: 13px;
  color: var(--blue);
}

.picked b { font-weight: 600; }

.picked button {
  flex: none;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 13px;
  padding: 2px 0 2px 8px;
  cursor: pointer;
}

.log-sug {
  position: relative;
  z-index: 3;
  margin-bottom: 12px;
}

.sug-empty {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--label2);
}

/* ---------- 新增：扫码页手动输入 ---------- */
.manual-card { padding: 0; }

.mline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: .5px solid var(--sep);
}

.mline:last-child { border-bottom: 0; }

.mlabel {
  width: 30px;
  flex: none;
  font-size: 13px;
  color: var(--label2);
}

.mline input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--label);
  padding: 9px 0;
}

.mline input::placeholder { color: var(--label3); }
.mline input::-webkit-search-cancel-button { -webkit-appearance: none; }

.mini {
  flex: none;
  border: 0;
  background: var(--blue);
  color: #FFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.mini:active { opacity: .7; }

.sug-card { margin-top: -8px; }

.sug {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 0;
  border-bottom: .5px solid var(--sep);
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.sug:last-child { border-bottom: 0; }
.sug:active { background: var(--card2); }

.sug-name {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sug-stock {
  flex: none;
  font-size: 13px;
  color: var(--label2);
  font-variant-numeric: tabular-nums;
}

.sug.new { color: var(--blue); }
.sug.new .sug-name { font-weight: 600; }

.detail-hint {
  padding: 4px 24px 36px;
  text-align: center;
  font-size: 12px;
  color: var(--label3);
  line-height: 1.7;
}
