:root {
  --pink: #ff3d6e;
  --orange: #ff8a3d;
  --bg: #fff6f8;
  --card: #ffffff;
  --text: #2a2228;
  --muted: #8a7d85;
  --line: #f1e3e8;
  --soft: #fff0f4;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17131a; --card: #221c25; --text: #f3ecf1; --muted: #a596a0; --line: #352b36; --soft: #2c2230; }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

main { max-width: 640px; margin: 0 auto; padding: 12px 14px 40px; }
header { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 4px 12px; }
header h1 { margin: 0; font-size: 22px; background: linear-gradient(90deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#quota { color: var(--muted); font-size: 13px; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(255, 61, 110, .06), 0 4px 16px rgba(0, 0, 0, .03); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.btns { display: flex; gap: 6px; flex-shrink: 0; }

.primary { background: linear-gradient(90deg, var(--pink), var(--orange)); color: #fff; font-weight: 600; border-radius: 12px; padding: 12px 18px; width: 100%; }
.ghost { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; text-decoration: none; }
.small { font-size: 13px; margin-top: 10px; }
.x { width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; line-height: 24px; padding: 0; }
.err { color: #e5484d; }

/* 登录 */
#login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 340px; text-align: center; }
.logo { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(255, 61, 110, .3); }
.login-box h1 { margin: 16px 0 24px; }
.login-box input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--card); text-align: center; font-size: 18px; letter-spacing: 2px; }

/* 安装提示 */
.tip { display: flex; align-items: center; gap: 10px; background: var(--soft); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.tip span { flex: 1; }

/* 档案 */
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '展开 ›'; float: right; color: var(--muted); font-weight: 400; font-size: 14px; }
details[open] summary::after { content: '收起 ⌄'; }
#profile-state { color: var(--muted); font-weight: 400; margin-left: 6px; }
#profile-form { margin-top: 12px; display: grid; gap: 10px; }
#profile-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
#profile-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#profile-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
#profile-form input, #profile-form textarea, #profile-form select {width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 16px; }

/* 输入区 */
#input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); resize: vertical; min-height: 120px; font-size: 16px; }
#input:focus, #profile-form input:focus, #profile-form textarea:focus { outline: 2px solid rgba(255, 61, 110, .35); border-color: transparent; }
.row { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.spacer { flex: 1; }
#preview { position: relative; }
#preview img { height: 48px; border-radius: 8px; display: block; }
#preview .x { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; line-height: 20px; font-size: 13px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; border-radius: 14px; font-size: 22px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; box-shadow: 0 4px 12px rgba(255, 61, 110, .25); transition: transform .1s; }
.actions button span { font-size: 16px; font-weight: 600; }
.actions button:active { transform: scale(.97); }
.actions button:disabled { opacity: .5; }

/* 结果 */
#result-title { font-size: 15px; }
.note { font-size: 13px; color: #b7791f; background: #fff8e6; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .note { background: #3a2f17; color: #f2c46d; } }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.md h2, .md h3, .md h4 { margin: 18px 0 6px; line-height: 1.4; }
.md h2 { font-size: 19px; }
.md h3 { font-size: 17px; color: var(--pink); }
.md h4 { font-size: 16px; }
.md > :first-child { margin-top: 4px; }
.md p, .md li, .md blockquote { border-radius: 6px; transition: background .3s; cursor: copy; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li.sub { margin-left: 16px; }
.md blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--pink); background: var(--soft); }
.md hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.md code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.md .flash { background: rgba(255, 61, 110, .18); }
.flash { background: rgba(255, 61, 110, .18) !important; }
.copy-line { cursor: copy; border-radius: 6px; transition: background .3s; }

/* 热榜分类看板 */
.board-meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { background: var(--soft); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 14px; }
.chip b { color: var(--pink); font-weight: 600; margin-left: 2px; }
.chip.muted { opacity: .55; }
.cat { margin-top: 18px; scroll-margin-top: 12px; }
.cat h3 { font-size: 17px; margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.cat h3 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.cat.sensitive { opacity: .6; }
.item { border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; overflow: hidden; background: var(--card); }
.item.open { border-color: rgba(255, 61, 110, .45); box-shadow: 0 2px 10px rgba(255, 61, 110, .08); }
.item-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; text-align: left; }
.rank { flex-shrink: 0; min-width: 22px; height: 22px; border-radius: 6px; background: var(--soft); color: var(--pink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rank.top { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; }
.word { flex: 1; font-size: 15px; line-height: 1.4; }
.hot { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.chev { flex-shrink: 0; color: var(--muted); transition: transform .2s; font-size: 18px; }
.item.open .chev { transform: rotate(90deg); color: var(--pink); }
.item-body { padding: 2px 14px 14px; border-top: 1px dashed var(--line); font-size: 15px; }
.item-body h4 { margin: 14px 0 6px; font-size: 15px; }
.item-body .bg { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.item-body .label { margin: 8px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.item-body blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--pink); background: var(--soft); border-radius: 0 8px 8px 0; }
.item-body ul { margin: 4px 0; padding-left: 20px; }
.item-body li { margin: 4px 0; }
.item-body .match { margin: 6px 0 0; font-size: 14px; }
.item-body .warn { color: #b7791f; margin: 12px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: linear-gradient(90deg, rgba(255, 61, 110, .12), rgba(255, 138, 61, .12)); color: var(--text); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.kw { background: var(--soft); color: var(--pink); padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.kw::before { content: '#'; opacity: .6; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.loading {display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 历史 */
#history { list-style: none; margin: 0; padding: 0; }
#history li { display: flex; align-items: center; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
#history li:first-child { border-top: 0; }
.h-main { flex: 1; min-width: 0; cursor: pointer; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--pink); margin-right: 6px; }
.h-time { font-size: 12px; color: var(--muted); }
.h-text { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.icon { width: 36px; height: 36px; font-size: 18px; color: var(--pink); border-radius: 50%; }
.icon:active { background: var(--soft); }
.empty { color: var(--muted); font-size: 14px; text-align: center; margin: 8px 0; }

/* 微信遮罩 */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); color: #fff; z-index: 10; }
.overlay-box { padding: 30px 28px; text-align: center; }
.overlay .arrow { text-align: right; font-size: 48px; line-height: 1; }
.overlay h2 { margin: 20px 0 10px; }

#toast { position: fixed; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(30, 20, 26, .9); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: 86vw; text-align: center; }

/* 抖音流行穿搭图片墙 */
.link { color: var(--pink); font-size: 13px; padding: 0 0 0 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--soft); padding: 4px; border-radius: 12px; margin: 6px 0 10px; }
.seg button { padding: 9px 6px; border-radius: 9px; font-size: 15px; color: var(--muted); }
.seg button b { font-weight: 600; margin-left: 2px; }
.seg button.on { background: var(--card); color: var(--pink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.bar { width: 100%; height: 6px; margin: 6px 0 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--soft); }
.bar::-webkit-progress-bar { background: var(--soft); border-radius: 99px; }
.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--pink), var(--orange)); border-radius: 99px; }
.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.o-progress { padding: 8px 0; }
.o-progress .hint { text-align: left; }
.trend { margin-top: 22px; scroll-margin-top: 12px; }
.trend h3 { font-size: 17px; margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px; }
.trend h3 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.trend-desc { font-size: 13px; color: var(--muted); margin: 0 0 6px; line-height: 1.5; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.look { margin: 0; background: var(--bg); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.look img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.look figcaption { padding: 8px 9px 10px; display: grid; gap: 3px; font-size: 13px; line-height: 1.45; }
.look figcaption b { font-size: 14px; color: var(--pink); }
.look figcaption em { font-style: normal; color: var(--muted); font-size: 12px; }
.look figcaption small { color: var(--muted); font-size: 11px; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(10, 6, 9, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
.lightbox img { max-width: 100%; max-height: 62vh; border-radius: 12px; object-fit: contain; }
.lb-info { width: 100%; max-width: 520px; color: #fff; font-size: 14px; display: grid; gap: 4px; }
.lb-info b { font-size: 17px; }
.lb-info p { margin: 0; line-height: 1.5; }
.lb-info p:empty { display: none; }
.lb-info #lb-trend { color: rgba(255, 255, 255, .65); font-size: 12px; }

.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 34px; height: 34px; font-size: 22px; line-height: 34px; }
body.no-scroll { overflow: hidden; }
.filter-note { font-size: 13px; color: #2f7a4f; background: #eaf7ef; border-radius: 8px; padding: 6px 10px; margin: 4px 0 10px; }
@media (prefers-color-scheme: dark) { .filter-note { background: #183626; color: #8fd6aa; } }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lb-actions .ghost { background: rgba(255, 255, 255, .14); color: #fff; }
#lb-hide { color: #ffb4c2; }

/* 星座生肖 · AI 人物画像 */
.astro .seg { margin-top: 2px; }
.a-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.a-tpl { display: grid; gap: 2px; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.a-tpl b { font-size: 15px; }
.a-tpl small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.a-tpl-icon { font-size: 22px; line-height: 1.2; }
.a-tpl.on { border-color: var(--pink); background: var(--soft); box-shadow: 0 4px 14px rgba(255, 61, 110, .15); }
.a-tpl.on b { color: var(--pink); }
.a-tip { color: var(--muted); font-size: 14px; text-align: center; background: var(--bg); border-radius: 12px; padding: 14px; margin: 4px 0 10px; }
.a-flow { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.a-flow b { color: var(--text); }
.a-group { margin: 12px 0; }
.a-gtitle { font-size: 14px; font-weight: 600; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.a-gtitle small { font-weight: 400; color: var(--muted); font-size: 12px; }
.a-gtitle em { font-style: normal; font-weight: 400; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.a-gtitle em.req { background: rgba(255, 61, 110, .12); color: var(--pink); }
.a-gtitle em.fixed { background: #eef3ff; color: #4a64c8; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.a-chip { padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); font-size: 14px; transition: all .12s; }
.a-chip.on { background: linear-gradient(135deg, var(--pink), var(--orange)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(255, 61, 110, .25); }
.a-chip.on.soft { background: var(--soft); color: var(--pink); box-shadow: none; border-color: rgba(255, 61, 110, .35); font-weight: 400; }
.a-chip.locked { cursor: default; }
.a-age { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.a-age input { width: 84px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; text-align: center; }
.a-age input:focus { outline: 2px solid rgba(255, 61, 110, .35); border-color: transparent; }
.a-grid { display: grid; gap: 6px; }
.a-signs { grid-template-columns: repeat(4, 1fr); }
.a-zodiacs { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 420px) { .a-signs { grid-template-columns: repeat(3, 1fr); } }
.a-cell { display: grid; justify-items: center; gap: 0; padding: 8px 2px 7px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); transition: all .12s; }
.a-cell .sym { font-size: 20px; line-height: 1.3; }
.a-cell b { font-size: 13px; font-weight: 600; }
.a-cell small { font-size: 10px; color: var(--muted); }
.a-cell.on { background: linear-gradient(135deg, var(--pink), var(--orange)); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(255, 61, 110, .3); transform: translateY(-1px); }
.a-cell.on small { color: rgba(255, 255, 255, .85); }
.a-more { margin: 10px 0; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.a-more summary { font-size: 14px; color: var(--pink); font-weight: 500; }
.a-more summary::after { content: ''; }
.a-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 61, 110, .08), rgba(255, 138, 61, .08)); }
.a-summary small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.a-summary b { font-size: 16px; }
.a-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.a-mode { display: grid; gap: 2px; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); }
.a-mode b { font-size: 14px; }
.a-mode small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.a-mode.on { border-color: var(--pink); background: var(--soft); }
.a-mode.on b { color: var(--pink); }
@media (max-width: 420px) { .a-mode small { display: none; } .a-mode { text-align: center; } }
#a-start:disabled { opacity: .45; }
.a-need { font-size: 13px; color: var(--muted); text-align: center; margin: 6px 0 0; min-height: 1em; }
#a-result { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; scroll-margin-top: 10px; }
.a-loading { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--bg); }
.a-loading b { display: block; font-size: 15px; }
.a-loading small { color: var(--muted); font-size: 13px; }
.a-error { text-align: center; padding: 10px; }
.a-portrait { text-align: center; padding: 16px 12px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; box-shadow: 0 6px 18px rgba(255, 61, 110, .25); }
.a-portrait small { font-size: 12px; letter-spacing: 2px; opacity: .9; }
.a-portrait h3 { margin: 2px 0 4px; font-size: 21px; }
.a-portrait p { margin: 0; font-size: 12px; opacity: .9; }
.a-headline { margin: 12px 0 8px; padding: 10px 14px; border-left: 3px solid var(--pink); background: var(--soft); border-radius: 0 10px 10px 0; font-size: 16px; font-weight: 600; }
.a-kws { margin-bottom: 4px; }
.a-toolbar { display: flex; justify-content: flex-end; gap: 4px; margin: 6px 0 2px; }
.a-sec { border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; background: var(--card); overflow: hidden; }
.a-sec summary { display: flex; align-items: center; gap: 8px; padding: 11px 12px; font-size: 15px; font-weight: 600; }
.a-sec summary::after { content: '›'; float: none; margin-left: 2px; color: var(--muted); transition: transform .2s; font-weight: 400; font-size: 18px; }
.a-sec[open] summary::after { content: '›'; transform: rotate(90deg); }
.a-copy-sec { margin-left: auto; font-weight: 400; }
.a-sec .a-hl { margin: 0 12px 6px; padding: 9px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 61, 110, .1), rgba(255, 138, 61, .1)); font-weight: 600; font-size: 14px; line-height: 1.55; }
.a-sec .a-hl::before { content: '★ '; color: var(--pink); }
.a-sec ul { margin: 0; padding: 0 12px 12px; list-style: none; }
.a-sec li { padding: 8px 0 8px 12px; border-top: 1px dashed var(--line); font-size: 14.5px; line-height: 1.65; position: relative; }
.a-sec li:first-child { border-top: 0; }
.a-sec li::before { content: ''; position: absolute; left: 0; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); opacity: .6; }
.a-sec li b { display: block; font-size: 13px; color: var(--pink); margin-bottom: 1px; }
.a-limits { font-size: 13px; color: #b7791f; background: #fff8e6; border-radius: 10px; padding: 8px 12px; margin: 10px 0 6px; }
@media (prefers-color-scheme: dark) { .a-limits { background: #3a2f17; color: #f2c46d; } .a-gtitle em.fixed { background: #23294a; color: #9fb0ff; } }
.a-disclaimer { font-size: 12px; color: var(--muted); margin: 6px 0 10px; text-align: center; }
.a-actions, .a-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 8px 0; }
.a-switch span { font-size: 13px; color: var(--muted); }
.a-ask { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.a-ask h4 { margin: 0 0 8px; font-size: 15px; }
.a-q { margin: 10px 0 4px auto; max-width: 85%; width: fit-content; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; font-size: 14px; }
.a-a { max-width: 92%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--card); font-size: 14px; }
.a-a p, .a-a ul { margin: 4px 0; }
.a-a ul { padding-left: 18px; }
.a-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.a-sugg .chip { font-size: 13px; background: var(--card); }
.a-ask-row { display: flex; gap: 8px; }
.a-ask-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 16px; }
.a-ask-row input:focus { outline: 2px solid rgba(255, 61, 110, .35); border-color: transparent; }
.a-ask-row .primary { width: auto; padding: 10px 16px; }
.a-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 4px; }
#a-history { list-style: none; margin: 0; padding: 0; }
#a-history li { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 12px; }
#a-history li:hover { background: var(--bg); }
#a-history li.cur { background: var(--soft); }
#a-history .h-main b { display: block; font-size: 14px; }
#a-history .h-main small { font-size: 12px; color: var(--muted); }
.t-astro { background: #f1ecff; color: #7a4fd6; }
@media (prefers-color-scheme: dark) { .t-astro { background: #2c2445; color: #c4a8ff; } }
