:root {
  --bg: #FFF9F2;
  --card: #FFFFFF;
  --ink: #33241C;
  --ink-2: #6B5749;
  --muted: #9A8474;
  --line: #F1E1D1;
  --brand: #E4572E;
  --brand-dark: #C94722;
  --brand-soft: #FDEBE2;
  --brand-grad: linear-gradient(135deg, #F26A3D, #DE4A21);
  --brand-shadow: rgba(222, 74, 33, .24);
  --gold: #F2A93B;
  --good: #2F8F5B;
  --good-soft: #E7F5EC;
  --warn: #A9741B;
  --warn-soft: #FFF4D6;
  --risk: #C0392B;
  --risk-soft: #FDECEA;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(145, 84, 40, .08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 84% -8%, #FFE4CF 0%, rgba(255, 228, 207, 0) 62%),
    radial-gradient(700px 380px at -10% 8%, #FFF0DC 0%, rgba(255, 240, 220, 0) 58%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.hidden { display: none !important; }

/* ================= 认证页 ================= */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px calc(28px + var(--safe-bottom));
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 8px 18px var(--brand-shadow);
}
.auth-brand h1 { font-size: 20px; margin: 0; letter-spacing: .3px; }
.auth-brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.auth-tabs { display: flex; gap: 6px; background: #FBF1E8; padding: 4px; border-radius: 12px; margin: 16px 0 18px; }
.auth-tabs button {
  flex: 1; border: none; background: none; padding: 9px 4px; border-radius: 9px;
  cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 600;
}
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(145, 84, 40, .1); }

.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #FFFDFB;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, .12);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-box {
  border: 1.5px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #FFF3E7;
  display: flex; align-items: center; justify-content: center;
  min-width: 132px; height: 44px; cursor: pointer; padding: 0;
}
.captcha-box svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 11px; padding: 11px 18px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 18px var(--brand-shadow); }
.btn.primary:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: #FBF1E8; color: var(--ink-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.form-msg {
  font-size: 13px; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px;
  background: var(--risk-soft); color: var(--risk); border: 1px solid #F6D3CE;
}
.form-msg.ok { background: var(--good-soft); color: var(--good); border-color: #CFE9DA; }
.form-msg.warn { background: var(--warn-soft); color: var(--warn); border-color: #F2E1B0; }

.auth-foot { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }

/* 游客入口 */
.guest-entry {
  display: block; width: 100%; margin-top: 14px; padding: 12px;
  border: 1px dashed var(--brand); border-radius: 12px; background: transparent;
  color: var(--brand-dark); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .18s ease;
}
.guest-entry:hover { background: var(--brand-soft); }

/* 游客只读提示 */
.guest-note {
  margin-bottom: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn); font-size: 13px;
  border: 1px solid #F2E1B0;
}
.guest-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.login-hint {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* ================= 应用外壳 ================= */
.app-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 249, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-head-inner {
  max-width: 900px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mini .logo {
  width: 36px; height: 36px; border-radius: 11px; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: 0 6px 14px var(--brand-shadow); flex: 0 0 auto;
}
.brand-mini strong { font-size: 16px; display: block; line-height: 1.2; }
.brand-mini span { font-size: 11.5px; color: var(--muted); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 600;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

.tabs {
  max-width: 900px; margin: 0 auto; padding: 0 16px 10px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.tabs button.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px var(--brand-shadow); }

.main { max-width: 900px; margin: 0 auto; padding: 18px 16px calc(80px + var(--safe-bottom)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.section-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: auto; }

/* 帖子卡片 */
.post-head { display: flex; gap: 10px; align-items: flex-start; }
.post-title { min-width: 0; flex: 1; }
.post-title h3 { margin: 0; font-size: 15.5px; line-height: 1.35; }
.post-title .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; background: #FBF1E8; color: var(--ink-2);
}
.tag.brand { background: var(--brand-soft); color: var(--brand-dark); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.risk { background: var(--risk-soft); color: var(--risk); }
.price { color: var(--brand); font-weight: 800; font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13.5px; }
.post-body { margin: 11px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.post-img {
  display: block; width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 12px; margin-top: 11px; border: 1px solid var(--line); background: #FBF1E8;
}
.post-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--muted);
}
.post-foot .origin { display: inline-flex; align-items: center; gap: 6px; }
.post-foot .dot { opacity: .5; }
.post-actions { margin-left: auto; display: flex; gap: 6px; }
.link-btn { border: none; background: none; color: var(--brand); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 7px; }
.link-btn:hover { background: var(--brand-soft); }
.link-btn.danger { color: var(--risk); }

.comments { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment-item { font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #F6EADC; }
.comment-item:last-child { border-bottom: none; }
.comment-item .who { font-weight: 700; color: var(--ink); margin-right: 6px; }
.comment-item .when { color: var(--muted); font-size: 11px; margin-left: 6px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.comment-form input {
  flex: 1; min-width: 160px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; outline: none;
}
.comment-form input:focus { border-color: var(--brand); }
.comment-captcha { display: flex; gap: 6px; align-items: center; width: 100%; }
.comment-captcha .captcha-box { min-width: 108px; height: 38px; }
.comment-captcha .captcha-box svg { width: 108px; height: 38px; }

/* 发布表单 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.star-pick { display: flex; gap: 4px; }
.star-pick button {
  border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer;
  color: #E7D5C6; padding: 0 2px; transition: transform .1s ease, color .1s ease;
}
.star-pick button.on { color: var(--gold); }
.star-pick button:active { transform: scale(1.18); }

.upload-zone {
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px;
  text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; background: #FFFDFB;
}
.upload-zone.has-file { border-style: solid; border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.upload-preview { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 10px; display: block; }

.quota-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
}
.quota-bar .q { display: flex; align-items: center; gap: 6px; }
.quota-bar .q b { color: var(--brand); }
.quota-bar .sep { width: 1px; height: 16px; background: var(--line); }

/* 排行 */
.rank-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 24px; height: 24px; border-radius: 8px; background: #FBF1E8; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto;
}
.rank-row:nth-child(1) .rank-no { background: #FDEBC8; color: #A9741B; }
.rank-row:nth-child(2) .rank-no { background: #EFEFEF; color: #6B6B6B; }
.rank-row:nth-child(3) .rank-no { background: #F8E2D0; color: #A05B2D; }
.rank-main { min-width: 0; flex: 1; }
.rank-main strong { font-size: 14px; display: block; }
.rank-main span { font-size: 12px; color: var(--muted); }
.rank-score { text-align: right; font-weight: 800; color: var(--brand); font-size: 15px; }

/* 我的 */
.profile-hero { display: flex; align-items: center; gap: 14px; }
.profile-hero .big-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; box-shadow: 0 8px 20px var(--brand-shadow);
}
.profile-hero h2 { margin: 0; font-size: 19px; }
.profile-hero p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 7px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; }

.empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 28px 10px; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-bottom)); transform: translate(-50%, 14px);
  background: rgba(51, 36, 28, .94); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; z-index: 120; opacity: 0;
  transition: opacity .2s ease, transform .2s ease; max-width: 86vw; text-align: center;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: rgba(169, 116, 27, .96); }
.captcha-loading { font-size: 11.5px; color: var(--muted); }

/* 模态框 */
.modal-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-mask { position: absolute; inset: 0; background: rgba(43, 26, 16, .5); backdrop-filter: blur(2px); }
.modal {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 22px; max-height: 88vh; overflow: auto;
}
.modal h3 { margin: 0 0 6px; font-size: 17px; }
.modal p.modal-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.key-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .5px; word-break: break-all;
  background: #FFF7EF; border: 1.5px dashed var(--brand); border-radius: 12px;
  padding: 12px; color: var(--brand-dark); user-select: all; line-height: 1.7;
}
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* ================= 学校选择 / 聚合 / 注销 ================= */

.btn.danger { background: var(--risk-soft); color: var(--risk); }
.btn.danger:active { transform: scale(.98); }

.banner-root { max-width: 760px; margin: 12px auto 0; padding: 0 16px; }
.deletion-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--risk-soft); border: 1px solid #F3C9C3; color: var(--risk);
  border-radius: 14px; padding: 10px 14px; font-size: 13px;
}

.modal.wide { max-width: 620px; }
.school-search {
  width: 100%; border: 1.5px solid var(--line); background: #FFFDFB;
  border-radius: 11px; padding: 10px 12px; outline: none; margin-bottom: 10px;
}
.school-search:focus { border-color: var(--brand); background: #fff; }
.school-table { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.school-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  border: none; border-bottom: 1px solid #F6EADC; background: #fff; padding: 10px 12px;
  text-align: left; cursor: pointer;
}
.school-row:last-child { border-bottom: none; }
.school-row.current { background: var(--brand-soft); }
.school-row .school-name { font-weight: 700; font-size: 14px; }
.school-row .school-meta { font-size: 12px; color: var(--muted); text-align: right; }

.school-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 1.5px solid var(--line); background: #FFFDFB; border-radius: 11px;
  padding: 11px 12px; cursor: pointer; text-align: left;
}
.school-pick:focus { outline: none; border-color: var(--brand); }
.school-pick-hint { font-size: 12px; color: var(--brand); white-space: nowrap; }

.school-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  text-align: left;
}
.school-card-main { display: flex; flex-direction: column; min-width: 0; }
.school-card-main strong { font-size: 15px; }
.school-card-main span { font-size: 12px; color: var(--muted); }
.school-card-go { color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; }

.dish-card { padding: 16px 18px; margin-bottom: 12px; }
.dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dish-head h3 { margin: 0; font-size: 16px; }
.dish-price { color: var(--brand); font-weight: 800; font-size: 16px; white-space: nowrap; }
.dish-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.review-fold { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.review-fold summary {
  cursor: pointer; font-size: 13px; color: var(--brand); font-weight: 600;
  list-style: none; padding: 4px 0;
}
.review-fold summary::-webkit-details-marker { display: none; }
.review-fold summary::before { content: "▸ "; }
.review-fold[open] summary::before { content: "▾ "; }
.review-item { padding: 8px 0; border-bottom: 1px dashed #F6EADC; }
.review-item:last-child { border-bottom: none; }
.review-line { font-size: 13.5px; color: var(--ink-2); }
.review-line .who { font-weight: 700; color: var(--ink); }
.review-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.review-item .post-img { margin-top: 8px; }

.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.danger-card { border-color: #F3C9C3; }

.device-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #F6EADC;
}
.device-row:last-child { border-bottom: none; padding-bottom: 0; }
.device-row strong { font-size: 14px; }
.device-tag {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 9px;
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 16px 18px; border-radius: 20px; }
  .user-chip .name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-foot { gap: 6px; }
  .post-actions { width: 100%; margin-left: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { box-shadow: 0 10px 24px var(--brand-shadow); }
  .tabs button:hover { border-color: var(--brand); color: var(--brand); }
  .tabs button.active:hover { color: #fff; }
  .card { transition: box-shadow .2s ease; }
  .card:hover { box-shadow: 0 14px 34px rgba(145, 84, 40, .12); }
}

/* ===== 菜品共建 ===== */
.board-toolbar { margin-bottom: 12px; }
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.board-head .section-title { margin-bottom: 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.crumb-link { border: none; background: none; padding: 0; color: var(--brand); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.crumb-link:hover { text-decoration: underline; }
.crumb-sep { color: #E3D3C2; }
.crumb-current { color: var(--ink); font-weight: 600; }
.quota-bar > span { display: inline-flex; align-items: center; gap: 4px; }
.quota-bar > span b { color: var(--brand); }

.dish-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; background: var(--card); }
.dish-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dish-item-main { min-width: 0; }
.dish-item-main strong { font-size: 15px; }
.dish-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.dish-item-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dish-thumb { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-top: 10px; background: var(--brand-soft); }
.dish-comments { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #F6EADC; }
.comments-list .comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comment-item .comment-head b { font-size: 13px; }
.comment-item p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink); }

/* ===== 校园周边美食 ===== */
.nearby-card { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nearby-img { display: block; width: 100%; max-height: 240px; object-fit: cover; background: var(--brand-soft); }
.nearby-body { padding: 12px 14px; }
.nearby-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nearby-head strong { font-size: 15px; }
.nearby-loc { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--brand-dark); }
.nearby-text { margin: 8px 0; font-size: 13px; line-height: 1.6; color: var(--ink); }

/* ===== 榜单切换 ===== */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.rank-value { text-align: right; font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
