:root {
  --bg: #eef1f3;
  --surface: #ffffff;
  --surface2: #f6f8f9;
  --ink: #17202a;
  --muted: #6b7681;
  --line: #dfe5e9;
  --primary: #d95d21;
  --primary-dark: #b74813;
  --teal: #0f7b78;
  --teal-soft: #e0f2f1;
  --danger: #c7352f;
  --warning: #b7791f;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(23, 32, 42, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }

.app {
  min-height: 100%;
  background: var(--surface2);
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(23, 32, 42, 0.08);
  position: relative;
  padding-bottom: 76px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand strong { display: block; font-size: 16px; line-height: 1.2; }
.brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; position: relative; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--surface2);
  border: 1px solid var(--line);
}
.icon-btn:active { background: #e8ecee; }
.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main { padding: 14px 14px 20px; }
.page { display: none; }
.page.active { display: block; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #17202a, #24313d);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
}
.eyebrow { font-size: 12px; color: #c9d3da; }
.hero-row h2 { font-size: 21px; margin-top: 4px; }
.hero-logo img { width: 52px; height: 52px; border-radius: 13px; opacity: 0.95; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: left;
}
.stat strong { display: block; font-size: 22px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 78px;
}
.quick .icon { width: 22px; height: 22px; color: var(--primary); }
.quick span { font-size: 13px; }
.quick:active { background: #f0f2f3; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.section-head h3 { font-size: 16px; }
.text-btn { color: var(--primary); font-size: 13px; }

.activity-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
}
.activity-strip::-webkit-scrollbar { display: none; }
.activity-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  position: relative;
  overflow: hidden;
}
.activity-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(13, 123, 120, 0.12);
}
.activity-card .tag {
  display: inline-block;
  font-size: 11px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 4px;
  padding: 3px 6px;
  margin-bottom: 7px;
}
.activity-card h4 { font-size: 15px; margin-bottom: 4px; }
.activity-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.activity-card .dates { font-size: 11px; color: var(--muted); margin-top: 6px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.list-card h4 { font-size: 14px; }
.list-card .meta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.list-card .price { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-top: 6px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-between .actions { display: flex; gap: 6px; flex: none; }

.ai-quick {
  margin-top: 14px;
}
.ai-quick button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: var(--shadow);
  text-align: left;
}
.ai-quick .icon { color: var(--teal); }
.ai-quick span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: #e7ebee;
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
}
.seg {
  padding: 9px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 2px 6px rgba(23, 32, 42, 0.08); }
.sub-page { display: none; }
.sub-page.active { display: block; animation: fade 0.16s ease; }

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  margin-bottom: 10px;
}
.search-row .icon { color: var(--muted); }
.search-row input { flex: 1; border: 0; outline: 0; background: transparent; height: 42px; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 12px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 7px 11px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  min-height: 32px;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.small { padding: 5px 9px; font-size: 11px; min-height: 28px; }
.chip-label { align-self: center; font-size: 11px; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #e7ecef; }
.product-card .thumb { cursor: pointer; }
.product-card.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.product-card.selected .btn-add { background: var(--primary); color: #fff; }
.product-card .body { padding: 10px; display: flex; flex-direction: column; gap: 5px; min-height: 108px; }
.product-card h4 { font-size: 13px; line-height: 1.3; }
.product-card .gen { font-size: 11px; color: var(--teal); }
.product-card .price { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.product-card .foot { margin-top: auto; display: flex; gap: 6px; }
.product-card .foot button {
  flex: 1;
  border-radius: 6px;
  padding: 7px 0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-add { background: #fdeee5; color: var(--primary-dark); }
.btn-fav { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.product-card .foot .icon { width: 14px; height: 14px; }
.fav-on { color: var(--danger) !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  min-height: 42px;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:active { background: var(--primary-dark); }
.btn.secondary { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn.block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 40px rgba(23, 32, 42, 0.18);
  padding: 16px;
  z-index: 40;
  animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h3 { font-size: 16px; }

.form-card, .form-stack {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.form-card label, .form-stack label { font-size: 12px; color: var(--muted); }
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface2);
  padding: 10px 12px;
  outline: none;
  min-height: 42px;
  min-width: 0;
}
.input:focus { border-color: var(--primary); background: #fff; }
textarea.input { resize: vertical; }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.money-input input { font-size: 20px; font-weight: 700; }
.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface2);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stepper-btn:active { background: #e8ecee; }

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 10px;
}
.result-card .total { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.result-card .total small { font-size: 13px; font-weight: 500; color: var(--muted); }
.breakdown { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.breakdown .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.breakdown .row b { text-align: right; }
.policies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill {
  font-size: 11px;
  border-radius: 4px;
  padding: 4px 7px;
  background: var(--teal-soft);
  color: var(--teal);
}
.pill.warn { background: #fdf0dc; color: var(--warning); }
.pill.danger { background: #fbe3e1; color: var(--danger); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.plan-range {
  background: var(--teal-soft);
  border: 1px solid #bfe3e1;
  color: var(--teal);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.plan-card .plan-head {
  display: flex;
  gap: 10px;
  padding: 10px;
}
.plan-card .plan-head > img { width: 84px; height: 64px; border-radius: 6px; object-fit: cover; background: #e7ecef; }
.plan-thumbs { display: flex; gap: 6px; flex: none; }
.plan-thumbs img { width: 68px; height: 52px; border-radius: 6px; object-fit: cover; background: #e7ecef; }
.plan-card .plan-title { font-size: 14px; font-weight: 700; }
.plan-card .plan-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.plan-card .plan-price { font-size: 19px; font-weight: 800; color: var(--primary-dark); margin-top: 5px; }
.plan-card .plan-body { padding: 0 10px 10px; }
.plan-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plan-item {
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
}
.plan-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 10px; }
.plan-actions .btn { padding: 8px 4px; font-size: 12px; min-height: 36px; }

.filter-row { display: flex; gap: 8px; margin-bottom: 10px; }
.filter-row .input { flex: 1; min-width: 0; }
.select-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.select-row img { width: 52px; height: 42px; border-radius: 5px; object-fit: cover; }
.select-row .info { flex: 1; min-width: 0; }
.select-row h4 { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-row .meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.checkbox {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.checkbox.on { background: var(--primary); border-color: var(--primary); }
.checkbox .icon { width: 14px; height: 14px; stroke-width: 3; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 520px; }
table.cmp th, table.cmp td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp th:first-child, table.cmp td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; min-width: 96px; }
table.cmp th { background: var(--surface2); font-size: 12px; }
table.cmp tr.diff { background: #fdf3e9; }
table.cmp tr.diff td:first-child { background: #fdf3e9; }
table.cmp .miss { color: #aab3ba; }
table.cmp tr.group-row td { background: #eef3f5; font-weight: 700; color: #33424e; }
.calc-item { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.calc-price-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--muted); }

.store-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.store-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.store-icon.orange { background: #fdeee5; color: var(--primary-dark); }
.store-body { flex: 1; min-width: 0; }
.store-body h4 { font-size: 14px; }
.store-body p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.store-foot { display: flex; gap: 6px; margin-top: 8px; }
.store-foot .btn { padding: 7px 10px; font-size: 12px; min-height: 34px; }
.distance { font-size: 11px; color: var(--teal); font-weight: 600; }

.policy-card h4 { margin-bottom: 4px; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
.policy-grid span {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.profile-card img { width: 48px; height: 48px; border-radius: 10px; }
.profile-card div { flex: 1; min-width: 0; }
.profile-card strong { display: block; font-size: 16px; }
.profile-card span { font-size: 12px; color: var(--muted); }

.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.mine-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  min-height: 66px;
}
.mine-btn .icon { color: var(--primary); width: 20px; height: 20px; }

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}
.tab .icon { width: 22px; height: 22px; }
.tab.active { color: var(--primary); }

.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(183, 72, 19, 0.34);
  font-size: 13px;
}
.cart-fab .icon { width: 20px; height: 20px; }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-total { font-weight: 700; }
.compare-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 66px;
  width: 100%;
  max-width: 480px;
  z-index: 44;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(242, 244, 245, 0.92) 30%);
}

.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.drawer {
  left: auto;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface2);
  padding: 16px;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(23, 32, 42, 0.18);
  animation: slideLeft 0.2s ease;
}
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.modal { display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 20, 25, 0.48); }
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface2);
  border-radius: 16px 16px 0 0;
  padding: 16px;
  animation: slideUp 0.2s ease;
}
.compare-result-card { height: 88vh; display: flex; flex-direction: column; }
.compare-result-body { flex: 1; overflow-y: auto; }

.ai-card { height: 88vh; display: flex; flex-direction: column; }
.ai-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.msg { max-width: 88%; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.msg.bot h4 { font-size: 13px; margin: 6px 0 3px; }
.msg.bot h4:first-child { margin-top: 0; }
.msg.bot ul { margin: 4px 0 0 16px; }
.msg.bot .src { font-size: 11px; color: var(--muted); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.ai-prompts { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; }
.ai-prompts button {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 8px 11px;
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-input { display: flex; gap: 8px; }
.ai-input .input { flex: 1; }
.ai-input .btn { flex: none; }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.quote-card .q-head {
  background: linear-gradient(135deg, #17202a, #24313d);
  color: #fff;
  padding: 16px;
}
.quote-card .q-head strong { font-size: 17px; }
.quote-card .q-head p { font-size: 12px; color: #c9d3da; margin-top: 4px; }
.quote-card .q-total { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.quote-card .q-total b { font-size: 30px; color: var(--primary-dark); }
.quote-card .q-items { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.quote-card .q-item { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.quote-card .q-item span { color: var(--muted); }
.quote-card .q-foot { background: var(--surface2); padding: 12px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.login-view {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #17202a, #24313d);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 12px; }
.login-card h1 { font-size: 20px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.login-card .input { margin-bottom: 10px; text-align: left; }
.login-link {
  display: block;
  margin: 10px auto 0;
  color: var(--teal);
  font-size: 13px;
  text-align: center;
}
.login-message {
  margin: 10px 0;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.5;
}
.login-apply { margin-top: 8px; }
.login-apply .input { text-align: left; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: rgba(23, 32, 42, 0.94);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 20px;
  z-index: 100;
  max-width: 84%;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 520px) {
  .app { min-height: 100vh; }
  .modal { align-items: center; }
  .modal-card { border-radius: 16px; }
  .sheet { border-radius: 14px; margin-bottom: 76px; }
}
