/* 穿界样式
   版式参考内容社区：双列或三列瀑布流、图片位主导、信息密度低。
   图位仍是纯色块，等有真实穿搭图直接换 background-image 即可。 */

:root {
  --paper: #f7f6f3;
  --card: #ffffff;
  --ink: #171614;
  --text: #3b3833;
  --muted: #7d7870;
  --line: #e6e2da;
  --line-2: #d6d0c6;
  --accent: #8f3f2f;
  --ok: #3d6b4a;
  --mid: #99712a;
  --bad: #96473c;
  --soft: var(--soft);
  --soft-2: var(--soft-2);
  --danger-soft: var(--danger-soft);
  --warn-soft: var(--warn-soft);
  --r: 10px;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
}

/* 深色主题：只改令牌，组件继续复用变量。
   系统主题由 theme-boot.js 写到 html[data-theme]，用户选择优先。 */
:root[data-theme="dark"] {
  --paper: #121211;
  --card: #1b1a18;
  --ink: #f3efe7;
  --text: #d8d2c7;
  --muted: #a8a198;
  --line: #2e2c28;
  --line-2: #423e37;
  --accent: #d38a70;
  --ok: #86b795;
  --mid: #d0aa61;
  --bad: #e09a8d;
  --soft: #24221f;
  --soft-2: #2a2723;
  --danger-soft: #322221;
  --warn-soft: #2d271c;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --paper: #121211;
    --card: #1b1a18;
    --ink: #f3efe7;
    --text: #d8d2c7;
    --muted: #a8a198;
    --line: #2e2c28;
    --line-2: #423e37;
    --accent: #d38a70;
    --ok: #86b795;
    --mid: #d0aa61;
    --bad: #e09a8d;
    --soft: #24221f;
    --soft-2: #2a2723;
    --danger-soft: #322221;
    --warn-soft: #2d271c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }

/* ---------- 顶栏 ---------- */

.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 243, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--ink);
}

.brand span {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: 2px;
}

.nav { display: flex; gap: 20px; font-size: 14px; }
.nav a { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { color: var(--ink); border-bottom-color: var(--ink); }

body[data-view="start"] .nav { display: none; }

/* ---------- 容器 ---------- */

#app {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 18px 110px;
  min-height: 70vh;
}

.gap { height: 10px; }
.dim, .muted { color: var(--muted); }
.empty { font-size: 14px; color: var(--muted); padding: 46px 0; line-height: 1.8; }
.empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.closet-tools { display: flex; gap: 8px; margin-top: 12px; }
.closet-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.75;
  color: #8e8577;
  background: var(--soft);
  border-radius: 7px;
  padding: 9px 11px;
}

/* ---------- 建档 ---------- */

.start { max-width: 560px; margin: 26px auto 40px; }

.kicker {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.start-head h1 {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: .5px;
  line-height: 1.45;
}

.lead { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-top: 9px; }

.dots { display: flex; gap: 6px; margin-top: 18px; }
.dot { width: 22px; height: 3px; background: var(--line-2); border-radius: 2px; transition: background .2s; }
.dot.on { background: var(--ink); }
.dot.done { background: #b3ada2; }

.field { margin-top: 26px; }

.flabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 11px;
}

.req, .opt-mark {
  font-size: 10.5px;
  font-weight: 400;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--muted);
}

.req { border-color: #dcc3b7; color: var(--accent); }

.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}

.seg button {
  padding: 8px 26px;
  background: none;
  border: none;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.seg button.on { background: var(--ink); color: #fff; }
.seg.small button { padding: 5px 14px; font-size: 12.5px; }

.inputs { display: flex; gap: 12px; flex-wrap: wrap; }

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 12px;
}

.input-line input {
  width: 76px;
  padding: 11px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: right;
}

.input-line input:focus { outline: none; }
.input-line:focus-within { border-color: var(--ink); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.opt {
  text-align: left;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.opt:hover { border-color: var(--ink); }
.opt.on { border-color: var(--ink); background: var(--soft-2); }
.opt b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.opt small { font-size: 12px; color: var(--muted); line-height: 1.5; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 7px 16px;
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: all .15s;
}

.tag:hover { border-color: var(--ink); }
.tag.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.budget-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.budget-custom input {
  width: 110px;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.budget-custom input:focus { outline: none; border-color: var(--ink); }
.budget-custom span { color: #9c968c; }

.hint { font-size: 12px; color: #9c968c; margin-top: 10px; line-height: 1.7; }

.err {
  margin-top: 18px;
  font-size: 13px;
  color: var(--bad);
  background: var(--danger-soft);
  border: 1px solid #ecd6d0;
  border-radius: 6px;
  padding: 10px 13px;
}

.field-err {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--bad);
  background: var(--danger-soft);
  border: 1px solid #ecd6d0;
  border-radius: 6px;
  padding: 8px 11px;
}

.field-err::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.privacy {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--soft-2);
  border-radius: 8px;
  padding: 12px 14px;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.primary {
  padding: 12px 30px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .15s;
}

.primary:hover { background: #000; }

.ghost {
  padding: 11px 20px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
}

.ghost:hover { border-color: var(--ink); }

.text-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover { color: var(--ink); }

.cancel { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.cancel a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 主界面 ---------- */

.me {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.me a { color: var(--accent); white-space: nowrap; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.tabs { display: flex; gap: 20px; }

.tab {
  background: none;
  border: none;
  padding: 6px 0 8px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.chips {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 0 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.chip:hover { color: var(--ink); }
.chip.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.feed-note { font-size: 12px; color: var(--muted); margin: 10px 0 14px; }

/* ---------- 瀑布流 ---------- */

.masonry {
  column-count: 3;
  column-gap: 14px;
}

.cell {
  position: relative;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 14px;
}

.cell-hit { display: block; }

/* 图位容器：加入按钮在这里绝对定位，才不会被文字区挤走 */
.media { position: relative; display: block; }

.cell-body { display: block; padding: 9px 2px 0; }
.cell-body:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

.ph {
  position: relative;
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ph-no { font-size: 10.5px; letter-spacing: 1.2px; opacity: .5; }

.ph-mid {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  opacity: .5;
  text-align: center;
  align-self: center;
  margin: auto 0;
}

.ph-mid.big { font-size: 42px; letter-spacing: 0; opacity: .42; }

.ph-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  opacity: .68;
  gap: 8px;
}

.ph-score {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
}

.cell-body h3 {
  font-size: 14.5px;
  line-height: 1.45;
  letter-spacing: .2px;
  margin-bottom: 5px;
}

.cell-body h3.sm { font-size: 14px; }

.cell-reason {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cell-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.cell-meta b { color: var(--ink); font-size: 14px; font-weight: 600; }

/* 套装 / 单件 的类别标记，和适配度标签分开，避免混淆 */
.cell-meta .kind {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0 4px;
  line-height: 1.6;
}

.mk {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid currentColor;
  font-size: 11px;
}

.mk.high { color: var(--ok); }
.mk.good { color: #4d6a43; }
.mk.fair { color: var(--mid); }
.mk.low { color: var(--bad); }

/* 加入按钮 */

.pick {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 11px;
  font-size: 11.5px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s, color .15s, transform .12s;
}

.pick:hover { background: #fff; transform: translateY(-1px); }
.pick[aria-pressed="true"] { background: var(--ink); color: #fff; }

.pick.round {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.cell.picked .ph { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- 底部搭配单条 ---------- */

.pickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #171614;
  color: #fff;
  font-size: 13px;
  transition: transform .24s ease;
}

.pickbar.hide { transform: translateY(120%); }
.pickbar.show { transform: none; }

.pb-count { flex: 1; }
.pb-count b { font-size: 15px; }

.pb-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
  cursor: pointer;
}

.pb-clear:hover { color: #fff; }

.pb-btn {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 详情 ---------- */

.back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  margin-bottom: 12px;
}

.back:hover { color: var(--ink); }

/* 返回链接和详情正文对齐到同一列，否则宽屏下会飘到最左边 */
#app > .back {
  display: block;
  max-width: 660px;
  margin: 0 auto 12px;
}

.detail { max-width: 660px; margin: 0 auto; }

.detail-ph {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail h1 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: .5px;
  margin-top: 18px;
}

.detail-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .4px; margin-top: 6px; }
.detail-meta b { color: var(--ink); }

.lead-sm { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 12px; }

.score {
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 20px;
}

.score-main {
  text-align: center;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.score-main b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -1px; }
.score-main b i { font-style: normal; font-size: 14px; margin-left: 1px; }
.score-main b.high { color: var(--ok); }
.score-main b.good { color: #4d6a43; }
.score-main b.fair { color: var(--mid); }
.score-main b.low { color: var(--bad); }
.score-main span { font-size: 12px; color: var(--muted); }

.score-rows { flex: 1; min-width: 0; }
.srow { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.srow:last-child { margin-bottom: 0; }

.sname { font-size: 12.5px; color: var(--muted); width: 74px; flex: none; }

.strack { flex: 1; height: 3px; background: #ede9e1; border-radius: 2px; overflow: hidden; }
.strack i { display: block; height: 100%; }
.strack i.ok { background: var(--ok); }
.strack i.mid { background: #b8913f; }
.strack i.bad { background: #b57a70; }

.snum { font-size: 11.5px; color: var(--muted); width: 20px; text-align: right; flex: none; }
.weight-note { font-size: 11.5px; color: #a29c92; margin-top: 8px; }

.sec {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .5px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.why { border-top: 1px solid var(--line); }
.wrow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.whead { display: flex; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 3px; }
.whead span:first-child { font-weight: 600; }
.wrow p { font-size: 13.5px; line-height: 1.8; }

.callout {
  font-size: 13px;
  line-height: 1.8;
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid var(--line);
}

.callout.warn { background: var(--danger-soft); border-color: #ecd9d3; color: #7b4a3e; }
.callout.ok { background: #eff4ef; border-color: #dbe6da; color: #3c5e43; }
.callout.plain { background: var(--card); color: var(--text); }

.desc { font-size: 14.5px; line-height: 1.85; padding: 18px 0 2px; }

.notice {
  font-size: 13px;
  line-height: 1.7;
  color: #6b5636;
  background: var(--warn-soft);
  border: 1px solid #e9dfcc;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
}

.notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.size-hint {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--soft-2);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.items { border-top: 1px solid var(--line); }

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.thumb {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: rgba(0, 0, 0, .42);
}

.item-main { flex: 1; min-width: 0; }
.item-top { display: flex; align-items: baseline; gap: 9px; }
.item-top b { font-size: 14px; }
.item-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.item-note { font-size: 11.5px; color: #8e8577; margin-top: 4px; line-height: 1.6; }

.mini {
  flex: none;
  align-self: center;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: all .15s;
}

.mini:hover { border-color: var(--ink); }
.mini.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.buy {
  flex: none;
  align-self: center;
  padding: 7px 13px;
  font-size: 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: all .15s;
}

.buy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.sum { font-size: 12.5px; color: var(--muted); text-align: right; padding-top: 12px; }
.sum b { color: var(--ink); font-size: 16px; }

.src-note {
  font-size: 11.5px;
  color: #a29c92;
  line-height: 1.7;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- 单件详情 ---------- */

.kind-line {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-top: 14px;
}

.piece-buy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.piece-price { margin-right: auto; }
.piece-price span { display: block; font-size: 11.5px; color: var(--muted); }
.piece-price b { font-size: 24px; font-weight: 600; }

.buy.solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 10px 18px;
  font-size: 13px;
}

.buy.solid:hover { background: #000; color: #fff; }

.relate { display: flex; flex-direction: column; gap: 8px; }

.relate-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  transition: border-color .15s;
}

.relate-item:hover { border-color: var(--ink); }

.relate-tone { width: 34px; height: 34px; border-radius: 4px; flex: none; }
.relate-text b { display: block; font-size: 13.5px; font-weight: 600; }
.relate-text small { font-size: 11.5px; color: var(--muted); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 12px);
  background: rgba(23, 22, 20, .92);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  max-width: 82vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 18px 42px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.foot-brand { font-family: var(--serif); font-size: 13.5px; letter-spacing: 1.5px; color: var(--ink); }
.foot-dim { font-size: 11.5px; color: #a8a29a; margin-top: 6px; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 620px) {
  #app { padding: 12px 12px 110px; }
  .site-in { padding: 0 14px; height: 50px; }
  .masonry { column-gap: 10px; }
  .cell { margin-bottom: 10px; }
  .ph { padding: 9px; border-radius: 8px; }
  .ph-mid { font-size: 20px; letter-spacing: 4px; }
  .cell-body h3 { font-size: 13.5px; }
  .cell-reason { font-size: 11.5px; }
  .pick { font-size: 11px; padding: 4px 9px; }
  .pick.round { width: 26px; height: 26px; }
  .start { margin-top: 14px; }
  .start-head h1 { font-size: 21px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opt { padding: 11px 12px; }
  .detail h1 { font-size: 21px; }
  .score { flex-direction: column; align-items: stretch; gap: 12px; }
  .score-main {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
  }
  .score-main b { font-size: 26px; }
  .sname { width: 68px; }
  .item { flex-wrap: wrap; }
  .item-main { flex: 1 1 60%; }
  .mini { order: 3; }
  .buy { order: 4; }
  .step-actions { gap: 12px; }
  .pickbar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- 云同步开关 ---------- */

.sync-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 13px 14px;
  margin: 18px 0 14px;
  cursor: pointer;
}

.sync-toggle:hover { border-color: var(--ink); }

.sync-switch {
  flex: none;
  width: 34px;
  height: 20px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #ece8e1;
  position: relative;
  margin-top: 2px;
  transition: background .15s ease;
}

.sync-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-2);
  transition: transform .15s ease;
}

.sync-toggle.on .sync-switch { background: var(--ink); border-color: var(--ink); }
.sync-toggle.on .sync-switch i { transform: translateX(14px); border-color: var(--ink); }

.sync-text { display: block; }
.sync-text b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.sync-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

/* ---------- 推荐反馈 ---------- */

.fb {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 15px;
  margin: 18px 0 6px;
  background: var(--card);
}

.fb-q { font-size: 14px; color: var(--ink); }
.fb-btns { display: flex; gap: 8px; margin-top: 10px; }

.fb-btns button {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.fb-btns button:hover { border-color: var(--ink); color: var(--ink); }
.fb-btns button:active { background: var(--ink); color: var(--paper); }

.fb-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.fb.done p { font-size: 13px; color: var(--muted); }
.fb.done b { color: var(--ink); font-weight: 600; }

/* ---------- 数据看板 ---------- */

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-head h1 { font-family: var(--serif); font-size: 27px; letter-spacing: 0.5px; margin: 4px 0 6px; }
.dash-head .lead-sm { max-width: 520px; }

.dash-tools { display: flex; align-items: center; gap: 12px; flex: none; }

.range { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.range button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.range button.on { background: var(--ink); color: var(--paper); }

.ghost-link {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.ghost-link:hover { color: var(--ink); border-color: var(--ink); }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }
.ghost-btn:active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- CPS 对账 ---------- */

.rcols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rcol span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.rcol b {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rcol em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 2px;
}

.rcmp { padding: 12px 0 2px; }

.rcmp-row {
  display: grid;
  grid-template-columns: 32px 1fr 72px;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 3px 0;
}

.rcmp-row i {
  display: block;
  height: 7px;
  background: var(--soft);
  border-radius: 1px;
  overflow: hidden;
}

.rcmp-row i b {
  display: block;
  height: 100%;
  background: #b9b2a6;
}

.rcmp-row.real i b { background: var(--ok); }

.rcmp-row em {
  font-style: normal;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .rcols { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .rcol b { font-size: 19px; }
  .rcmp-row { grid-template-columns: 28px 1fr 64px; }
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px 12px;
}

.kpi-label { display: block; font-size: 12px; color: var(--muted); }
.kpi-value {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
  color: var(--ink);
  margin: 2px 0 1px;
  font-variant-numeric: tabular-nums;
}
.kpi-hint { font-size: 11px; color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px 18px;
  margin-bottom: 16px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-head h2 { font-family: var(--serif); font-size: 15.5px; letter-spacing: 0.3px; color: var(--ink); }
.panel-sub { font-size: 11.5px; color: var(--muted); }
.panel-empty { font-size: 13px; color: var(--muted); line-height: 1.8; padding: 8px 0 4px; }
.panel-empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.panel-foot { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* 漏斗 */

.fstep { margin-bottom: 13px; }
.fstep:last-child { margin-bottom: 2px; }
.fstep-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 5px; }
.fstep-num { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ftrack { height: 7px; background: var(--soft); border-radius: 1px; overflow: hidden; }
.ftrack i { display: block; height: 100%; background: #3a352e; }
.fstep-foot { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 柱状图 */

.tchart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 186px;
  padding: 8px 0 2px;
}

.tcol {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.tnum { font-size: 10px; color: var(--muted); line-height: 1; min-height: 10px; font-variant-numeric: tabular-nums; }
.tbar { display: block; width: 100%; max-width: 38px; background: #3a352e; }
.tdate { font-size: 10px; color: var(--muted); line-height: 1; white-space: nowrap; }

/* 双列 */

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* 榜单 */

.rank { list-style: none; margin: 0; padding: 0; }
.rrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.rrow:last-child { border-bottom: 0; padding-bottom: 2px; }
.rno { width: 16px; flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rtitle { flex: 1; color: var(--ink); line-height: 1.4; }
.rtitle small { display: block; font-size: 10.5px; color: var(--muted); }
.rvalue { flex: none; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }

/* 反馈 */

.fb-score { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.fb-score b { font-family: var(--serif); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fb-score span { font-size: 12px; color: var(--muted); }

.fbsplit { height: 8px; background: #eadfd8; border-radius: 1px; overflow: hidden; }
.fbsplit i { display: block; height: 100%; background: var(--ok); }
.fblegend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }

.fbnotes { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.fbnote { font-size: 12px; color: var(--text); padding: 3px 0; display: flex; gap: 8px; }
.fbnote span { flex: none; font-size: 11px; }
.fbnote .ok { color: var(--ok); }
.fbnote .bad { color: var(--bad); }

/* 分布 */

.dgroup { margin-bottom: 10px; }
.dgroup:last-of-type { margin-bottom: 0; }
.drow {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
}
.drow i { display: block; height: 6px; background: var(--soft); border-radius: 1px; overflow: hidden; }
.drow i b { display: block; height: 100%; background: #8f9298; }
.drow em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 适配度 */

.qline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qline b { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.qline span { font-size: 12px; color: var(--muted); }
.qsub { flex: 1 1 100%; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 事件流 */

.evlist { border-top: 1px solid var(--line); }
.evrow {
  display: grid;
  grid-template-columns: 40px 76px 1fr 72px;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.evrow:last-child { border-bottom: 0; }
.evtime { color: var(--muted); font-variant-numeric: tabular-nums; }
.evlabel { color: var(--ink); }
.evtitle { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evamount { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

.dash-note { font-size: 11.5px; color: var(--muted); line-height: 1.8; margin: 4px 0 10px; }

.panel code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 3px;
}

@media (max-width: 820px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-tools { width: 100%; justify-content: space-between; }
}

@media (max-width: 620px) {
  .kpi-value { font-size: 23px; }
  .tchart { height: 150px; gap: 3px; }
  .tdate { font-size: 9px; }
  /* 14 根柱子的日期标签在手机上一定挤，隔一个显示一次，柱子本身不减少 */
  .tcol { min-width: 0; }
  .tcol:nth-child(even) .tdate { visibility: hidden; }
  .evrow { grid-template-columns: 36px 68px 1fr; }
  .evamount { display: none; }
  .panel { padding: 14px; }
  .rtitle { font-size: 12.5px; }
}

/* ---------------- 原始记录（#/records） ---------------- */

.rec-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.rec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.rec-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.rec-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2, var(--ink));
  vertical-align: top;
}

.rec-table tbody tr:hover td { background: rgba(0, 0, 0, 0.018); }
.rec-table th.r, .rec-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.rec-table code { font-size: 11.5px; color: var(--ink-2, var(--ink)); }

.rec-files td:first-child code { color: var(--ink); }

.rec-nil { color: var(--muted); }

.rec-uid { letter-spacing: 0.2px; }

.rec-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -2px 0 10px;
  line-height: 1.7;
}

.rec-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.rec-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2, var(--ink));
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}

.rec-tab i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rec-tab:hover { border-color: var(--ink); color: var(--ink); }

.rec-tab.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.rec-tab.on i { color: rgba(255, 255, 255, 0.7); }

.rec-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.rec-pager .ghost-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .rec-table { font-size: 12px; }
  .rec-table th, .rec-table td { padding: 8px; }
  .rec-pager { justify-content: space-between; }
}

/* ---------------- 搭配建议（详情页） ---------------- */

.advice { margin: 30px 0 6px; }

.adv-intro {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  padding: 2px 0 12px;
}

.adv-intro b { display: block; font-size: 13px; margin-bottom: 4px; }

.adv-cta {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.adv-grid { display: grid; gap: 10px; }

.adv-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 14px 15px 13px;
}

.adv-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.adv-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--ink);
}

.adv-verdict {
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.adv-verdict.ok { color: var(--ok); border-color: #cfe0d2; background: #f0f4f0; }
.adv-verdict.warn { color: var(--mid); border-color: #e6dcc4; background: #f8f4ea; }
.adv-verdict.bad { color: var(--bad); border-color: #ecd9d3; background: var(--danger-soft); }

.adv-score {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.adv-head {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text);
}

.adv-list {
  margin: 9px 0 0;
  padding-left: 15px;
}

.adv-list li {
  font-size: 13.5px;
  line-height: 1.82;
  color: var(--text);
  margin-bottom: 5px;
}

.adv-list li:last-child { margin-bottom: 0; }
.adv-list li::marker { color: var(--line-2); }

.adv-caution {
  margin-top: 10px;
  font-size: 12.8px;
  line-height: 1.72;
  color: #7b4a3e;
  background: var(--danger-soft);
  border: 1px solid #ecd9d3;
  border-radius: 8px;
  padding: 8px 10px;
}

.adv-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .4px;
  margin: 22px 0 10px;
}

.adv-steps {
  list-style: none;
  counter-reset: advstep;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.adv-steps li {
  position: relative;
  counter-increment: advstep;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 13.2px;
  line-height: 1.75;
  color: var(--text);
}

.adv-steps li b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.adv-steps li::before {
  content: counter(advstep);
  position: absolute;
  left: 0;
  top: 13px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.adv-note {
  margin-top: 12px;
  font-size: 11.8px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 560px) {
  .adv-card { padding: 13px 13px 12px; }
  .adv-head { font-size: 13.5px; }
  .adv-list li { font-size: 13px; }
}

/* ---------------- 运营后台（/admin） ---------------- */

/* 详情页底部有固定的搭配单条，给正文留出空间，别挡住最后一张卡 */
body[data-view="detail"] .detail { padding-bottom: 84px; }

.admin-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 22px 72px;
}

.adm-head { margin-bottom: 18px; }
.adm-head h1 { font-size: 22px; letter-spacing: -.2px; }
.adm-head p { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 6px; }

.nav-admin .adm-exit { color: var(--accent); }
.nav-admin .adm-exit:hover { border-bottom-color: var(--accent); }

.gate {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 18px;
}

.gate h2 { font-size: 15px; }
.gate p { font-size: 12.8px; line-height: 1.75; color: var(--muted); margin-top: 6px; }
.gate code { font-size: 12px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.gate form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gate .input { max-width: 240px; }
.gate-hint { color: var(--bad); }

.import-box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.import-head b { font-size: 14px; }
.import-head span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.import-text {
  width: 100%;
  min-height: 110px;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}

.import-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.import-hint { font-size: 11.5px; color: var(--muted); }

.adm-error {
  border: 1px solid #ecd9d3;
  background: var(--danger-soft);
  color: #7b4a3e;
  border-radius: var(--r);
  padding: 16px 18px;
}

.adm-error b { font-size: 13.5px; }
.adm-error p { font-size: 12.5px; line-height: 1.75; margin-top: 4px; }

@media (max-width: 640px) {
  .admin-main { padding: 18px 14px 60px; }
  .adm-head h1 { font-size: 19px; }
  .nav-admin { gap: 12px; }
}

/* ============================================================
   通用按钮（后台、广场共用）
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; border-color: #000; }
.ghost-on { background: #eef3ee; border-color: #cfe0d2; color: var(--ok); }

/* ============================================================
   穿搭广场
   ============================================================ */

body[data-view="square"] #app { max-width: 1240px; }
body[data-view="look"] #app { max-width: 1120px; }
body[data-view="post"] #app { max-width: 1040px; }

.square { padding-top: 4px; }

.sq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
}

.sq-head h1 { font-size: 26px; letter-spacing: -.6px; }
.sq-head p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
  max-width: 560px;
}

.sq-post { flex: none; }

.sq-filters {
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0 12px;
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.sq-row { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.sq-label { flex: none; width: 32px; font-size: 12px; color: var(--muted); }
.sq-scroll { flex: 1 1 0; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sq-scroll::-webkit-scrollbar { display: none; }

.sq-chip {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .16s, background .16s, border-color .16s;
}

.sq-chip:hover { color: var(--ink); }
.sq-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.sq-count { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

.sq-masonry { column-count: 4; column-gap: 14px; }

.sq-empty {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
  padding: 40px 0;
  break-inside: avoid;
}

.look-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}

.look-card:hover { border-color: var(--line-2); transform: translateY(-1px); }

.lk-media { position: relative; display: block; background: var(--panel-2, #eee9e2); }
.lk-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.look-card:hover .lk-media img { transform: scale(1.015); }

.lk-body-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 18, 16, .62);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .2px;
  backdrop-filter: blur(4px);
}

.lk-info { padding: 10px 12px 11px; }

.lk-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.lk-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.lk-tag {
  font-size: 10.5px;
  line-height: 1.5;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
}

.lk-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}

.lk-author { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.lk-author i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 9.5px;
  color: #4a4038;
  flex: none;
}

.lk-like, .lk-save {
  margin-left: auto;
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}
.lk-save { margin-left: 10px; }
.lk-like span { margin-right: 2px; }
.lk-like.on { color: var(--accent); }
.lk-save.on { color: var(--ok); }

/* ---------- 穿搭详情 ---------- */

.look-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 30px;
  align-items: start;
  margin-top: 8px;
}

.look-hero { position: sticky; top: 78px; }

.look-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: var(--panel-2, #eee9e2);
}

.look-info { padding-top: 2px; }

.look-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.la-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #4a4038;
}

.la-name { color: var(--ink); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.la-name em {
  font-style: normal;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid #e3c9c1;
  border-radius: 3px;
  padding: 0 4px;
  line-height: 1.5;
}
.la-time { margin-left: auto; }

.look-info h1 { font-size: 23px; letter-spacing: -.4px; margin: 12px 0 0; line-height: 1.45; }
.look-desc { font-size: 14px; line-height: 1.95; color: var(--text); margin-top: 10px; }

.look-bodycard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 12px 13px;
  margin: 16px 0 4px;
}

.look-bodycard > div { min-width: 0; }
.look-bodycard span { display: block; font-size: 10.5px; color: var(--muted); }
.look-bodycard b { display: block; font-size: 14px; margin-top: 2px; font-weight: 600; }
.look-bodycard p {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
}

.look-info h2, .look-relate h2 {
  font-size: 14px;
  margin: 24px 0 9px;
  letter-spacing: .2px;
}

.look-why { margin: 0; padding-left: 17px; }
.look-why li { font-size: 13.5px; line-height: 1.85; margin-bottom: 6px; color: var(--text); }
.look-why li::marker { color: var(--accent); }

.look-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.look-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.li-cat {
  flex: none;
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}
.li-name { flex: 1; min-width: 0; }
.li-find { flex: none; font-size: 11.5px; color: var(--accent); border-bottom: 1px solid currentColor; }

.look-buynote { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.look-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

.look-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.look-relate { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 4px; }
.relate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.relate-look {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.relate-look img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.relate-look span { display: block; padding: 8px 10px 10px; font-size: 12px; line-height: 1.5; }
.relate-look small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 发布页 ---------- */

.post-page { padding-top: 4px; }
.post-head h1 { font-size: 24px; letter-spacing: -.5px; }
.post-head p { font-size: 12.8px; line-height: 1.85; color: var(--muted); margin-top: 7px; max-width: 680px; }

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}

.post-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s;
}
.post-upload:hover { border-color: var(--ink); }
.post-upload img { width: 100%; height: auto; display: block; }
.pu-empty { text-align: center; padding: 30px; }
.pu-empty b { display: block; font-size: 14px; }
.pu-empty small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.post-hint { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 8px; }

.field { display: block; margin-bottom: 14px; }
.field .input, .field textarea.input { width: 100%; }
.post-right .input { width: 100%; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pick-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.pick-chip:hover { border-color: var(--ink); }
.pick-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.pf-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; }
.pf-item .ghost-btn { height: 38px; }

.gen-btn { margin-top: 8px; }
.gen-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.post-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.post-error { font-size: 12px; color: var(--bad); }

/* ---------- 衣橱：收藏的穿搭 ---------- */

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.shelf-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.shelf-item img { width: 100%; height: 148px; object-fit: cover; display: block; }
.shelf-item span { display: block; padding: 8px 10px 10px; font-size: 12.5px; line-height: 1.45; }
.shelf-item small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 1080px) {
  .sq-masonry { column-count: 3; }
}

@media (max-width: 820px) {
  .sq-masonry { column-count: 2; column-gap: 10px; }
  .look-page { grid-template-columns: 1fr; gap: 18px; }
  /* 手机端不再吸顶：图片会盖住下面的描述和「为什么这样穿」 */
  .look-hero { position: static; top: auto; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-upload { min-height: 240px; }
  .relate-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .relate-look img { aspect-ratio: 1 / 1; }
  .sq-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sq-head h1 { font-size: 22px; }
}

@media (max-width: 520px) {
  .nav { gap: 13px; font-size: 13px; }
  .brand { font-size: 17px; letter-spacing: 1.5px; }
  .brand span { display: none; }
  .sq-masonry { column-count: 2; column-gap: 8px; }
  .look-card { margin-bottom: 8px; border-radius: 10px; }
  .lk-info { padding: 8px 9px 9px; }
  .lk-title { font-size: 12.5px; }
  .look-info h1 { font-size: 19px; }
  .look-bodycard { padding: 10px; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
}

.pick-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- v5 · 页脚链接、分享、隐私说明 ---------- */

.foot-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
}

.foot-links a { color: var(--muted); border-bottom: 1px solid transparent; }
.foot-links a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.foot-links span[aria-hidden] { color: #c9c3b8; }

.detail-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.share-btn { color: var(--muted); }
.share-btn:hover { color: var(--ink); }

.privacy-page { max-width: 760px; }
.privacy-page .sec { margin-top: 30px; }
.privacy-page p { font-size: 13.5px; line-height: 1.95; color: #4a453e; margin-top: 10px; }
.privacy-page code {
  font-size: 12px;
  background: #efece5;
  border-radius: 4px;
  padding: 1px 5px;
  word-break: break-all;
}

.privacy-list { margin: 12px 0 0; padding-left: 18px; }
.privacy-list li { font-size: 13.5px; line-height: 1.9; color: #4a453e; margin-bottom: 8px; }
.privacy-list b { color: var(--ink); }

.privacy-em {
  border-left: 2px solid var(--accent);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
}

.privacy-actions .primary {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.privacy-actions .ghost {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}

.privacy-state { font-size: 12px; color: var(--muted); }
.privacy-note { font-size: 11.5px !important; color: #8e8577 !important; line-height: 1.8 !important; }

/* ---------- v5 · 看板：关键指标 / 建议阅读 / 建档漏斗 ---------- */

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.metric {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 13px 14px;
}

.metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-family: var(--serif); font-size: 22px; letter-spacing: -.5px; }
.metric-value.none { color: #b7b0a4; }
.metric-value.ok { color: var(--ok); }
.metric-value.warn { color: var(--mid); }
.metric-value.low { color: var(--accent); }
.metric-track { height: 4px; background: #e8e4dc; border-radius: 99px; margin-top: 9px; overflow: hidden; }
.metric-track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.metric-note { font-size: 11px; color: #918a7f; margin-top: 7px; line-height: 1.6; }
.metric-line { font-size: 10.5px; color: #a8a29a; margin-top: 2px; }

.reading-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reading-cell { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; background: var(--card); }
.reading-cell span { font-size: 11.5px; color: var(--muted); display: block; }
.reading-cell b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.reading-cell em { font-style: normal; font-size: 11px; color: #918a7f; margin-left: 4px; }

.wizard-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.wizard-row .wlabel { flex: none; width: 92px; font-size: 12px; color: var(--muted); }
.wizard-row .wtrack { flex: 1; height: 8px; background: #e8e4dc; border-radius: 99px; overflow: hidden; }
.wizard-row .wtrack i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.wizard-row .wnum { flex: none; width: 108px; text-align: right; font-size: 11.5px; color: #6f685e; }

/* 渠道表：来源 / UV / 建档 / 详情 / 收藏 */
.ch-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.8fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
}
.ch-row:last-of-type { border-bottom: none; }
.ch-row b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-row span { text-align: right; color: var(--muted); }
.ch-head {
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line-2);
  color: #918a7f;
  font-size: 10.5px;
}
.ch-head span { color: #918a7f; }

@media (max-width: 720px) {
  .ch-row { grid-template-columns: 1.3fr repeat(4, 0.8fr); gap: 5px; font-size: 11px; }
}

@media (max-width: 720px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-cols { grid-template-columns: repeat(2, 1fr); }
  .wizard-row .wnum { width: 92px; }
}

/* ---------- v5.3 · 投放欢迎页 ---------- */

.welcome { max-width: 860px; margin: 0 auto; padding: 6px 0 42px; }
.welcome .kicker { color: var(--accent); font-size: 11px; letter-spacing: 1.6px; }
.welcome h1 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: 1px;
  margin-top: 14px;
}
.welcome-lead { font-size: 14px; line-height: 1.95; color: var(--muted); margin-top: 16px; max-width: 650px; }
.welcome-lead b { color: var(--ink); }

.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.welcome-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  transition: all .15s;
}
.welcome-btn:hover { border-color: var(--ink); }
.welcome-btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }

.welcome-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}
.welcome-points li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  padding: 14px 15px;
}
.welcome-points b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 5px; }
.welcome-points span { font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.welcome-sec { margin-top: 36px; }
.welcome-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.welcome-look {
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
}
.welcome-look img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.welcome-look span { display: block; padding: 10px 12px 12px; }
.welcome-look b { display: block; font-size: 12.5px; line-height: 1.5; }
.welcome-look small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.welcome-look:hover { border-color: var(--line-2); }

.welcome-note { font-size: 11px; line-height: 1.8; color: #8e8577; margin-top: 22px; }
.welcome-note a { border-bottom: 1px solid var(--line-2); }

@media (max-width: 620px) {
  .welcome h1 { font-size: 34px; }
  .welcome-points { grid-template-columns: 1fr; }
  .welcome-looks { gap: 8px; }
  .welcome-look span { padding: 8px 9px 10px; }
  .welcome-look b { font-size: 11.5px; }
}


/* ---------- v5.9 · 底部导航 / 个人主页 / 主题 ---------- */

.bottom-nav { display: none; }

.me-page { max-width: 900px; }
.me-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(143, 63, 47, .12), transparent 42%),
    var(--card);
  margin-bottom: 14px;
}
.me-avatar {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
}
.me-hero-main { flex: 1; min-width: 0; }
.me-kicker { font-size: 10.5px; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 3px; }
.me-hero h1 { font-family: var(--serif); font-size: 30px; line-height: 1.25; }
.me-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.me-edit { flex: none; }
.me-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.me-stat {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
}
.me-stat b { display: block; font-size: 22px; line-height: 1.2; font-family: var(--serif); }
.me-stat span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.me-count { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.theme-box {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.theme-box .flabel { margin-bottom: 9px; }
.theme-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-seg button {
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
}
.theme-seg button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.entry-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent);
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site .nav { display: none; }
  #app { padding-bottom: 132px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    justify-content: space-around;
    align-items: stretch;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--card);
    background: color-mix(in srgb, var(--card) 94%, transparent);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    font-size: 10.5px;
    color: var(--muted);
    border-radius: 8px;
  }
  .bottom-nav a.on { color: var(--accent); background: var(--soft-2); }
  .bn-ico { font-size: 17px; line-height: 1; }
  body[data-view="start"] .bottom-nav,
  body[data-view="welcome"] .bottom-nav { display: none; }
  body[data-view="start"], body[data-view="welcome"] { padding-bottom: 0; }
  .pickbar { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(126px + env(safe-area-inset-bottom)); }
  .me-hero { padding: 16px; gap: 12px; }
  .me-avatar { width: 54px; height: 54px; font-size: 23px; }
  .me-hero h1 { font-size: 25px; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .me-edit { align-self: flex-start; }
}

@media (max-width: 420px) {
  .me-hero { flex-wrap: wrap; }
  .me-edit { margin-left: 66px; }
}

/* 深色下，沿用 --ink 当按钮底色的组件要换成更稳的对比 */
:root[data-theme="dark"] .site { background: rgba(18, 18, 17, .94); }
:root[data-theme="dark"] .seg button.on,
:root[data-theme="dark"] .tag.on,
:root[data-theme="dark"] .primary,
:root[data-theme="dark"] .mini.on,
:root[data-theme="dark"] .pick[aria-pressed="true"],
:root[data-theme="dark"] .buy.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
:root[data-theme="dark"] .primary:hover,
:root[data-theme="dark"] .buy.solid:hover { background: #b96f58; color: #fff; }
:root[data-theme="dark"] .theme-seg button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .toast { background: rgba(243, 239, 231, .94); color: #171614; }

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .site { background: rgba(18, 18, 17, .94); }
  :root[data-theme="system"] .seg button.on,
  :root[data-theme="system"] .tag.on,
  :root[data-theme="system"] .primary,
  :root[data-theme="system"] .mini.on,
  :root[data-theme="system"] .pick[aria-pressed="true"],
  :root[data-theme="system"] .buy.solid {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  :root[data-theme="system"] .theme-seg button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
  :root[data-theme="system"] .toast { background: rgba(243, 239, 231, .94); color: #171614; }
}
