/* SalesMarket — mobile prototype */
:root {
  --orange: #ef7f1a;
  --orange-text: #b35309;
  --orange-deep: #8a3f06;
  --orange-bg: #fdf2e8;
  --orange-bg-hover: #fbe0c8;
  --orange-line: #f6d9bd;
  --ink: #1a1a1a;
  --ink-2: #333333;
  --ink-heading: #101828;
  --muted: #6b6b6b;
  --weak: #999999;
  --line: #f0f0f0;
  --border: #eeeeee;
  --page: #f5f5f5;
  --white: #ffffff;
  --green-bg: #e6f4ea;
  --green: #1a5e2a;
  --blue-bg: #e8f0fe;
  --blue: #1f4fb0;
  --red: #b42318;
  --tabbar-h: 106px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2);
  background: #e7e7e7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }

@view-transition { navigation: auto; }

/* ---------- Device shell ---------- */
.device {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--page);
  margin: 0 auto;
}
.screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.has-tabbar { padding-bottom: calc(var(--tabbar-h) + 8px); }
.screen.white { background: var(--white); }

.statusbar { display: none; }
.safe-top { height: env(safe-area-inset-top, 0px); background: var(--white); }

@media (min-width: 600px) {
  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: radial-gradient(1200px 600px at 50% 0%, #f3f3f3, #dedede);
  }
  .device {
    width: 390px;
    height: 844px;
    border-radius: 48px;
    box-shadow: 0 0 0 10px #111, 0 0 0 11px #2a2a2a, 0 40px 80px rgba(0,0,0,.25);
  }
  .statusbar {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px 0 34px;
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.2px;
  }
  .statusbar.overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 30; background: transparent; color: #fff; }
  .safe-top { display: none; }
}

/* ---------- Mini-app top nav ---------- */
.topnav {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.topnav.flat { border-radius: 0; }
.round-btn {
  width: 40px; height: 40px;
  border-radius: 54px;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: background .15s;
}
.round-btn:active { background: #e9e9e9; }
.topnav-title { flex: 1 1 auto; min-width: 0; text-align: center; }
.topnav-title b { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.28px; }
.topnav-title small { display: block; font-size: 13px; color: var(--weak); letter-spacing: -0.26px; margin-top: 1px; }

/* ---------- Search ---------- */
.search-block { background: var(--white); padding: 16px; }
.search-row { background: var(--white); display: flex; gap: 12px; align-items: stretch; padding: 12px; }
.searchfield {
  flex: 1 1 auto;
  min-width: 0;
  height: 38.5px;
  border: 1px solid #ececec;
  border-radius: 999px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  background: var(--white);
}
.searchfield input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: none; background: transparent;
  font: 400 15px "Inter", sans-serif; color: var(--ink);
}
.searchfield input::placeholder { color: var(--muted); }
.icon-btn-sq {
  width: 36px; flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.icon-btn-sq:hover { border-color: var(--orange); color: var(--orange); }
.icon-btn-sq.has-badge { position: relative; }
.icon-btn-sq .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.icon-btn-sq.has-badge.on .badge { display: flex; }

/* ---------- Generic section card ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.section { background: var(--white); border-radius: 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-title { font-size: 18px; font-weight: 600; line-height: 24px; color: var(--ink-heading); }
.pill-all {
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.45);
  font-size: 14px; line-height: 22px;
  padding: 4px 16px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.pill-all:hover { background: var(--orange-bg); color: var(--orange-text); }

/* horizontal scrollers */
.hscroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Home: categories strip ---------- */
.cats { padding: 12px 0; }
.cats .hscroll { gap: 4px; padding: 0 14px; scroll-padding: 0 14px; }
.cat {
  width: 88px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.cat-tile {
  position: relative;
  width: 70px; height: 70px;
  border-radius: 20px;
  background: rgba(0,0,0,.04);
  overflow: hidden;
  transition: transform .15s;
}
.cat:active .cat-tile { transform: scale(.96); }
.cat-tile img { position: absolute; max-width: none; }
.cat span { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.24px; line-height: 1.2; }

/* ---------- Home: hot offers ---------- */
.hot { padding: 20px 0; display: flex; flex-direction: column; gap: 24px; }
.hot .sec-head { padding: 0 16px; }
.hot .hscroll { gap: 24px; padding: 0 16px; scroll-padding: 0 16px; }
.hot-card { width: 240px; display: flex; flex-direction: column; gap: 8px; }
.hot-card .ph {
  height: 140px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.1);
  overflow: hidden;
  background: #e9e9e9;
}
.hot-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hot-card:active .ph img { transform: scale(1.03); }
.hot-card .meta { display: flex; flex-direction: column; gap: 8px; }
.id-xs { font-size: 11px; line-height: 16.5px; color: var(--weak); }
.title-15 {
  font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-weak { font-size: 12px; line-height: 18px; color: var(--weak); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-size: 14px; font-weight: 600; line-height: 21px; color: var(--orange); white-space: nowrap; }

/* ---------- Capsule tabs ---------- */
.capsules { display: flex; gap: 12px; padding: 4px 0; }
.capsule {
  padding: 12px 20px 12px 16px;
  border-radius: 24px;
  background: #f5f5f5;
  color: var(--ink-2);
  font-size: 16px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.capsule.on { background: var(--orange-bg-hover); color: var(--orange); }

/* ---------- Lot row (list item) ---------- */
.lot-row {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.lot-row .top { display: flex; align-items: center; gap: 8px; }
.lot-row .sm-id { font-size: 12px; line-height: 18px; color: var(--muted); }
.dot { font-size: 12px; font-weight: 200; color: var(--weak); }
.timechip {
  display: inline-flex; align-items: center; gap: 3.5px;
  height: 21px; padding: 0 7px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange-text);
  font-size: 12px; font-weight: 600; line-height: 18px;
  white-space: nowrap;
}
.lot-row .body { display: flex; gap: 8px; align-items: flex-start; }
.lot-row .thumb {
  width: 140px; height: 93.33px; flex: 0 0 auto;
  border-radius: 6px; overflow: hidden; background: #e9e9e9;
}
.lot-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lot-row .info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lot-row .t14 {
  font-size: 14px; font-weight: 600; line-height: 22px; color: rgba(0,0,0,.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lot-row .id12 { font-size: 12px; line-height: 18px; color: var(--muted); }
.lot-row:active { background: #fafafa; }

.auctions { padding: 20px 14px; display: flex; flex-direction: column; gap: 16px; border-radius: 12px; }
.auctions .capsules { margin: 0 -14px; padding: 4px 14px; overflow-x: auto; scrollbar-width: none; }
.auctions .capsules::-webkit-scrollbar { display: none; }
.auctions .lot-row { padding: 4px 0 16px; }
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 16px 20px;
  font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.16px;
  margin-top: 12px;
  transition: background .15s;
}
.btn-outline:active { background: #f7f7f7; }

/* ---------- Showcase ---------- */
.showcase { padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.showcase .hscroll { gap: 10px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
.show-card { width: 220px; height: 261px; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
.show-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Info list ---------- */
.info-sec { padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.info-sec h2 { padding: 0 14px; font-size: 20px; font-weight: 700; line-height: 21px; color: var(--ink); }
.list-card { margin: 0 14px; background: var(--white); border-radius: 14px; overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 10.5px; height: 52px; padding-left: 14px; }
.list-item .txt {
  flex: 1 1 auto; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 22.5px; color: var(--ink);
}
.list-item:first-child .txt { border-top: 0; }
.list-item:active { background: #fafafa; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px calc(25px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
  z-index: 20;
  pointer-events: none;
}
.tabbar nav {
  pointer-events: auto;
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 48px;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 15px rgba(0,0,0,.02);
}
.tab {
  flex: 1 1 0;
  height: 57px;
  border-radius: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--ink-2);
  transition: background .2s;
}
.tab.on { background: rgba(147,147,147,.15); color: var(--orange); }

/* ---------- Category list page ---------- */
.nav-chips { background: var(--white); display: flex; gap: 12px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
.nav-chips::-webkit-scrollbar { display: none; }
.list-page .lot-row { padding: 16px; }
.list-page .lots { display: flex; flex-direction: column; margin-top: 8px; }

/* ---------- Categories grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; padding: 12px; }
.cat-card {
  position: relative;
  height: 102px;
  border-radius: 20px;
  background: rgba(0,0,0,.04);
  border: 1px solid #fff;
  overflow: hidden;
  transition: transform .15s;
}
.cat-card:active { transform: scale(.98); }
.cat-card span {
  position: absolute; left: 19px; top: 13px; z-index: 1;
  font-size: 15px; line-height: 20px; color: #000;
}
.cat-card img { position: absolute; max-width: none; }

/* ---------- Filter sheet ---------- */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 60px;
  z-index: 41;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: translateY(0); }
.grabber { width: 31.5px; height: 5px; border-radius: 999px; background: #d9d9d9; margin: 7px auto 0; flex: 0 0 auto; }
.sheet-head { position: relative; height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; flex: 0 0 auto; }
.sheet-head h2 { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; font-weight: 700; line-height: 25.5px; color: var(--ink); }
.close-sm { width: 31.5px; height: 31.5px; border-radius: 999px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.link-btn { font-size: 14px; font-weight: 600; line-height: 21px; color: var(--orange-text); display: inline-flex; align-items: center; gap: 1.75px; }
.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 0 14px 21px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.f-head { display: flex; align-items: center; justify-content: space-between; padding-top: 10.5px; }
.f-head h3 { font-size: 17px; font-weight: 700; line-height: 25.5px; color: var(--ink); }
.f-sep { height: 1px; background: var(--line); margin-top: 14px; }
.checks { padding-top: 3.5px; }
.check { display: flex; align-items: center; gap: 10.5px; height: 42px; width: 100%; text-align: left; font-size: 15px; line-height: 22.5px; color: var(--ink); }
.check .box {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid #cfcfcf;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.check .box svg { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.check.on .box { background: var(--orange); border-color: var(--orange); }
.check.on .box svg { opacity: 1; transform: scale(1); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 7px 6px; padding-top: 10.5px; }
.chip {
  height: 31.5px; padding: 0 14px;
  border: 1px solid #e6e6e6; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 21px; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding-top: 10.5px; }
.date-field {
  height: 42px; border: 1px solid #e6e6e6; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px; position: relative;
}
.date-field span { font-size: 15px; color: var(--muted); }
.date-field input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.date-field.filled span { color: var(--ink); }
.sheet-foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10.5px 14px calc(35px + env(safe-area-inset-bottom, 0px)); }
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 24px;
  transition: filter .15s, transform .1s;
}
.btn-primary:active { filter: brightness(.95); transform: scale(.99); }

/* ---------- Lot page ---------- */
.gallery { position: relative; height: 320px; background: #e9e9e9; }
.gallery .hscroll { height: 100%; }
.gallery .slide { width: 100%; height: 100%; scroll-snap-stop: always; }
.gallery .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px; font-size: 11px; font-weight: 500; color: #a3a3a3; }
.gallery-top { position: absolute; left: 14px; right: 14px; top: 54px; display: flex; justify-content: space-between; z-index: 2; }
@media (max-width: 599px) { .gallery-top { top: calc(10px + env(safe-area-inset-top, 0px)); } }
.float-btn {
  width: 35px; height: 35px; border-radius: 999px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.counter {
  position: absolute; right: 14px; bottom: 24px; z-index: 2;
  padding: 3.5px 8.75px; border-radius: 999px;
  background: rgba(26,26,26,.7); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 18px;
}
.lot-head {
  position: relative; margin-top: -14px;
  background: var(--white);
  border-radius: 14px 14px 0 0;
  padding: 17.5px 14px 14px;
}
.lot-head .row { display: flex; align-items: center; justify-content: space-between; }
.lot-head .sm { font-size: 13px; line-height: 19.5px; color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 5.25px;
  height: 21px; padding: 0 8.75px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap;
}
.status.green { background: var(--green-bg); color: var(--green); }
.status.green i { width: 5.25px; height: 5.25px; border-radius: 999px; background: var(--green); }
.lot-head h1 { font-size: 22px; font-weight: 700; line-height: 28px; color: var(--ink); }
.lot-price { padding-top: 14px; }
.lot-price small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.lot-price b { display: block; padding-top: 1.75px; font-size: 24px; font-weight: 700; line-height: 30px; color: var(--ink); }
.timer { margin-top: 14px; background: var(--orange-bg); border-radius: 14px; padding: 12.25px; }
.timer .cap { display: flex; align-items: center; gap: 5.25px; font-size: 13px; font-weight: 600; line-height: 19.5px; color: var(--orange-text); }
.timer .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8.75px; }
.timer .cell { display: flex; flex-direction: column; align-items: center; }
.timer .cell + .cell { border-left: 1px solid var(--orange-line); }
.timer .cell b { font-size: 20px; font-weight: 700; line-height: 21px; color: var(--ink); font-variant-numeric: tabular-nums; }
.timer .cell span { padding-top: 1.75px; font-size: 11px; line-height: 16.5px; color: var(--orange-deep); }

.lot-cards { padding: 8.75px 14px 0; display: flex; flex-direction: column; gap: 8.75px; }
.card { background: var(--white); border-radius: 14px; padding: 14px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10.5px; min-height: 52px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; }
.kv:first-child { border-top: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 500; text-align: right; }
.kv .v.strong { font-weight: 600; display: inline-flex; align-items: center; gap: 3.5px; }
.more-link { display: block; padding: 12.25px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 21px; color: var(--orange-text); text-align: left; }
.more-extra { display: none; }
.expanded .more-extra { display: flex; }

.conds { background: var(--orange-bg); }
.conds .head { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); }
.cond { padding: 10.5px 0; }
.cond + .cond { border-top: 1px solid var(--orange-line); }
.cond small { display: flex; align-items: center; gap: 3.5px; font-size: 12px; line-height: 18px; color: var(--orange-deep); }
.cond b { display: block; padding-top: 1.75px; font-size: 14px; font-weight: 600; line-height: 21px; color: var(--ink); }
.conds .list { padding-top: 7px; }

.acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; gap: 8px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); }
.acc-head svg { transition: transform .2s; flex: 0 0 auto; }
.acc.closed .acc-head svg { transform: rotate(180deg); }
.acc-body { padding-top: 8.75px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.acc.closed .acc-body { display: none; }
.acc-body p { font-size: 14px; line-height: 21px; color: var(--ink); max-height: 84px; overflow: hidden; }
.acc-body.open p { max-height: none; }
.acc-body .link-btn { padding: 0; }

.card-title { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); }
.docs { padding-top: 5.25px; }
.doc { display: flex; align-items: center; gap: 10.5px; height: 52px; border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; }
.doc .ico { width: 35px; height: 35px; border-radius: 10px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.doc .name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; line-height: 21px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.spec-item { display: flex; gap: 10.5px; padding-top: 10.5px; }
.num-circle { width: 24.5px; height: 24.5px; border-radius: 999px; border: 1.5px solid var(--orange); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--orange-text); flex: 0 0 auto; }
.spec-item p { font-size: 15px; font-weight: 600; line-height: 21px; color: var(--ink); }
.collapsibles { padding-top: 10.5px; }
.collapsible { border-top: 1px solid var(--line); }
.collapsible > button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 42px; font-size: 14px; font-weight: 500; line-height: 21px; color: var(--ink); }
.collapsible > button svg { transition: transform .2s; }
.collapsible.open > button svg { transform: rotate(180deg); }
.collapsible .cbody { display: none; padding: 0 0 12px; font-size: 14px; line-height: 21px; color: var(--muted); }
.collapsible.open .cbody { display: block; }
.spec-table { margin-top: 3.5px; background: #f7f7f7; border-radius: 10.5px; padding: 3.5px 12.25px; }
.spec-table div { display: flex; align-items: center; justify-content: space-between; height: 38.5px; font-size: 14px; line-height: 21px; }
.spec-table div + div { border-top: 1px solid #ececec; }
.spec-table span { color: var(--muted); }
.spec-table b { font-weight: 600; color: var(--ink); }

.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--white);
  border-top: 1px solid #ededed;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10.5px 14px calc(34px + env(safe-area-inset-bottom, 0px));
}
.bottom-bar small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.bottom-bar b { display: block; font-size: 18px; font-weight: 700; line-height: 27px; color: var(--ink); }
.bottom-bar .btn-primary { width: auto; padding: 0 21px; }
.screen.has-bottombar { padding-bottom: 110px; }

/* ---------- Cabinet ---------- */
.cab-top { background: var(--white); border-radius: 0 0 24px 24px; padding: 10.5px 14px 14px; }
.cab-top .row { display: flex; align-items: center; justify-content: space-between; }
.cab-top h1 { font-size: 24px; font-weight: 700; line-height: 30px; color: var(--ink); }
.role { position: relative; }
.role > button {
  height: 34px; border: 1px solid #e0e0e0; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3.5px;
  padding: 0 8.75px 0 12.25px;
  font-size: 13px; font-weight: 500; line-height: 19.5px; color: var(--ink);
}
.role-menu {
  position: absolute; right: 0; top: 40px; z-index: 10;
  min-width: 190px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 6px; display: none;
}
.role.open .role-menu { display: block; }
.role-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); text-align: left; }
.role-menu button:hover { background: #f5f5f5; }
.role-menu button.on { color: var(--orange-text); font-weight: 600; }
.segment { margin-top: 14px; height: 38.5px; padding: 3.5px; border-radius: 999px; background: #f2f2f2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; }
.segment button { position: relative; z-index: 1; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 21px; color: var(--muted); transition: color .2s; }
.segment button.on { font-weight: 600; color: var(--ink); }
.segment .thumb { position: absolute; top: 3.5px; bottom: 3.5px; left: 3.5px; width: calc(50% - 3.5px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.segment.right .thumb { transform: translateX(100%); }

.counters { padding: 22.75px 0 0; }
.counters .hscroll { gap: 10.5px; padding: 0 14px; scroll-padding: 0 14px; }
.counter-tile {
  width: 132px; height: 84px; padding: 10.5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.counter-tile span { font-size: 12px; line-height: 15px; color: var(--muted); height: 30px; overflow: hidden; }
.counter-tile b { font-size: 22px; font-weight: 700; line-height: 26px; color: var(--ink); }
.counter-tile.on { background: var(--orange-bg); border-color: var(--orange); }
.counter-tile.on span { color: var(--orange-deep); }
.counter-tile.on b { color: var(--orange-text); }

.ant-search { display: flex; gap: 12px; padding: 12px 14px 0; }
.ant-input { flex: 1 1 auto; min-width: 0; display: flex; height: 40px; }
.ant-input input {
  flex: 1 1 auto; min-width: 0; height: 40px;
  border: 1px solid rgba(0,0,0,.15); border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  font: 400 16px "Inter", sans-serif; color: var(--ink);
  background: #fff; outline: none;
  transition: border-color .15s;
}
.ant-input input::placeholder { color: rgba(0,0,0,.25); }
.ant-input input:focus { border-color: var(--orange); }
.ant-input button, .ant-btn {
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.15); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.ant-input button { border-radius: 0 8px 8px 0; }
.ant-btn { border-radius: 8px; }
.ant-input button:hover, .ant-btn:hover { border-color: var(--orange); color: var(--orange); }

.auc-list { padding: 10.5px 14px 0; display: flex; flex-direction: column; gap: 8.75px; }
.auc-card { background: #fff; border-radius: 14px; padding: 12.25px 14px; display: flex; flex-direction: column; gap: 8.75px; transition: transform .1s; }
.auc-card:active { transform: scale(.99); }
.auc-card .top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 18px; color: var(--muted); }
.auc-card .top span { display: inline-flex; align-items: center; gap: 3.5px; }
.auc-card h3 { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.auc-card hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.auc-card .st { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10.5px; }
.auc-card .st > div { display: flex; flex-direction: column; gap: 5.25px; align-items: flex-start; }
.auc-card .st small { font-size: 12px; line-height: 18px; color: var(--muted); }
.spill { display: inline-flex; align-items: center; height: 26px; padding: 0 8.75px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.spill.orange { background: var(--orange-bg); color: var(--orange-deep); }
.spill.green { background: var(--green-bg); color: var(--green); }
.spill.blue { background: var(--blue-bg); color: var(--blue); }
.spill.none { padding: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.empty { background: #fff; border-radius: 14px; padding: 36px 24px; display: none; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty.show { display: flex; }
.empty .ic { width: 48px; height: 48px; border-radius: 999px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.empty b { font-size: 15px; font-weight: 600; color: var(--ink); }

.pd { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 8.75px; }
.pd .card { padding: 14px 14px 3.5px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-head h2 { font-size: 17px; font-weight: 700; line-height: 25.5px; color: var(--ink); }
.card-head button { font-size: 14px; font-weight: 600; line-height: 21px; color: var(--orange); }
.field { padding: 10.5px 0; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; }
.field small { display: block; font-size: 12px; line-height: 18px; color: var(--muted); }
.field b { display: block; padding-top: 1.75px; font-size: 15px; font-weight: 400; line-height: 23px; color: var(--ink); }
.pdf-row { display: flex; align-items: center; gap: 10.5px; padding: 10.5px 0; border-top: 1px solid var(--line); }
.pdf-row:first-child { border-top: 0; }
.pdf-badge { width: 31.5px; height: 31.5px; border-radius: 10px; background: #fdecec; color: #d92d20; font-size: 10px; font-weight: 700; letter-spacing: .25px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pdf-row .t { flex: 1 1 auto; min-width: 0; }
.pdf-row .t span { display: block; font-size: 14px; line-height: 19px; color: var(--ink); }
.pdf-row .t small { display: block; padding-top: 1.75px; font-size: 12px; line-height: 18px; color: var(--muted); }
.ichips { display: flex; flex-wrap: wrap; gap: 7px 6px; padding-top: 10.5px; }
.ichip {
  height: 31.5px; display: inline-flex; align-items: center; gap: 5.25px;
  border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 21px;
  transition: background .15s, border-color .15s, color .15s;
}
.ichip.on { background: var(--orange-bg); border: 1px solid var(--orange); color: var(--orange); padding: 0 8.75px 0 12.25px; }
.ichip.off { background: #fff; border: 1px solid #e0e0e0; color: var(--ink); padding: 0 12.25px 0 8.75px; }
.add-cap { padding-top: 14px; font-size: 12px; line-height: 18px; color: var(--muted); }
.ok-banner { margin-top: 10.5px; background: var(--green-bg); border-radius: 10.5px; padding: 10.5px; display: flex; gap: 8.75px; align-items: flex-start; font-size: 14px; line-height: 19px; color: var(--green); }
.row-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; line-height: 22.5px; color: var(--ink); border-top: 1px solid var(--line); }
.row-link.first { border-top: 0; margin-top: 3.5px; }
.row-link.danger { color: var(--red); }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 128px; z-index: 60;
  transform: translate(-50%, 12px);
  background: rgba(26,26,26,.92); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }
