:root {
  --bg: #f4f7fb;
  --bg2: #ffffff;
  --bg3: #e8eef6;
  --line: #d5dee8;
  --gold: #1a73e8;
  --gold2: #1557b0;
  --text: #142033;
  --muted: #5b6b80;
  --ok: #1f7a4d;
  --warn: #c9a227;
  --bad: #c62828;
  --star: #f5c400;
  --phone-w: 430px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #d9e3f0; color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }

.app-shell {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(900px 380px at 50% -8%, #cfe3ff 0%, transparent 58%),
    #e7eef8;
}
.phone {
  width: 100%;
  max-width: var(--phone-w);
  min-height: 100vh;
  background: var(--bg);
  border-left: 1px solid #c5d2e3;
  border-right: 1px solid #c5d2e3;
  position: relative;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.brand img { height: 36px; width: auto; max-width: 210px; object-fit: contain; background: transparent; border-radius: 0; }
.pill {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: #fff;
}
.pill.gold { color: var(--gold2); border-color: #b9cce4; background: #eef4fb; }

.screen { flex: 1; padding: 14px 16px 88px; }
.h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #1557b0; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 12px; outline: none; color: var(--text);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1d4f91; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; border-radius: 12px; padding: 13px 14px;
  background: var(--gold); color: #fff; font-weight: 700; cursor: pointer;
}
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid #b9cce4; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f0c4c0; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row .btn { width: auto; }

.card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(18,48,90,.05);
}
.unit {
  display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; cursor: pointer;
  align-items: start;
}
.unit .photo {
  width: 96px; height: 74px; border-radius: 10px; background: #e8eef6;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gold); letter-spacing: .06em; text-align: center;
  overflow: hidden;
}
.unit .photo img { width: 100%; height: 100%; object-fit: cover; }
.unit h3 { font-size: 15px; font-weight: 700; }
.unit .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.price { color: var(--gold2); font-weight: 700; margin-top: 6px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 10px; padding: 3px 7px; border-radius: 999px; background: var(--bg3); color: var(--muted); border: 1px solid var(--line); }
.chip.hot { color: #8a4f14; border-color: #ead38a; background: #fff8e1; }
.chip.bad { color: #8a1f18; border-color: #f0c4c0; background: #fff2f0; }
.star {
  width: 34px; height: 34px; border: 0; background: transparent;
  color: #c5d0de; font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.star.on { color: var(--star); text-shadow: 0 0 8px rgba(245,196,0,.45); }

.searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.searchbar input { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px; }
.filters button {
  white-space: nowrap; background: #fff; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 7px 10px; font-size: 12px; cursor: pointer;
}
.filters button.on { color: #fff; background: var(--gold); border-color: var(--gold); font-weight: 700; }

.tabbar {
  position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding: 8px 4px 14px;
}
.tabbar.five { grid-template-columns: repeat(5, 1fr); }
.tabbar button {
  background: none; border: 0; color: var(--muted); font-size: 11px; padding: 6px 0; cursor: pointer;
}
.tabbar button.on { color: var(--gold); font-weight: 700; }
.tabbar button[data-go="watch"] b { color: #d0d7e2; }
.tabbar button[data-go="watch"].on b,
.tabbar button[data-go="watch"] b.lit { color: var(--star); }
.tabbar b { display: block; font-size: 16px; margin-bottom: 2px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #163a6b; }

.banner {
  background: #eef4fb; border: 1px solid #b9cce4; color: var(--gold2);
  padding: 10px 12px; border-radius: 12px; font-size: 12px; margin-bottom: 12px;
}
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.linkish { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 13px; }
.member { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-price { font-size: 28px; font-weight: 800; color: var(--gold2); }
.photo-lg {
  height: 180px; border-radius: 14px; background: linear-gradient(160deg,#d7e4f4,#fff);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  letter-spacing: .14em; font-size: 13px; margin-bottom: 12px; text-align: center; padding: 12px;
}
.gallery { display: grid; gap: 8px; margin: 10px 0 14px; }
.hero-wrap { position: relative; margin: 10px 0 8px; }
.hero-img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; background: #e8eef6; display: block; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(20,32,51,.72); color: #fff; font-size: 22px; cursor: pointer;
}
.hero-nav:disabled { opacity: .25; }
.hero-nav.prev { left: 8px; }
.hero-nav.next { right: 8px; }
.hero-count {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(20,32,51,.72); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 999px;
}
.thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.thumb { border: 2px solid transparent; padding: 0; background: none; border-radius: 8px; cursor: pointer; flex: 0 0 auto; }
.thumb.on { border-color: #1a73e8; }
.thumb img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.hidden { display: none !important; }
.tiny { font-size: 11px; color: var(--muted); }
.error { color: #c62828; font-size: 13px; margin: 8px 0; }
.footer-legal { text-align:center; color:#5b6b80; font-size:11px; padding:16px 12px 28px; }
.map { height: 420px; border-radius: 14px; border: 1px solid var(--line); margin: 8px 0 12px; }
.map-link { background: none; border: 0; color: #1d4f91; cursor: pointer; font-weight: 700; text-align: left; padding: 4px 0; }
.boot { padding: 32px 16px; color: #1d4f91; text-align: center; }
.watchers { color: #163a6b; font-size: 12px; font-weight: 700; margin-top: 6px; }
