/* Context redesign · 第四版共用组件（x- 前缀）
   原则：列表和细线优先，卡片只给内容本身；一个强调色；字幕大、界面安静。 */
:root {
  --acc: #5b5bd6;
  --paper: #fbfaf6;
  --hair: rgba(19, 19, 19, 0.09);
}

/* ---------- 列表 ---------- */
.x-grp { margin-top: 26px; }
.x-gh { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.x-gh h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.x-more { font-size: 13px; color: var(--acc); font-weight: 500; }
.x-list > * + * { box-shadow: 0 -0.5px 0 var(--hair); }
.x-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; text-align: left; }
button.x-row:active { background: rgba(19, 19, 19, 0.04); }
.x-ri { width: 22px; flex: none; display: grid; place-items: center; font-size: 19px; color: var(--ink-2); }
.x-ri.mono { font-size: 11px; color: var(--mute); width: 34px; }
.x-rb { flex: 1; min-width: 0; display: grid; gap: 2px; }
.x-rb b { font-size: 15px; font-weight: 500; line-height: 1.35; }
.x-rb small { font-size: 13px; color: var(--mute); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-rr { flex: none; font-size: 13px; color: var(--mute); }
.x-chev { flex: none; font-size: 13px; color: var(--mute-2); }
.x-dim { color: var(--mute); font-weight: 400; }
.x-note { margin: 10px 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--mute); }
.x-note .ph { margin-right: 4px; vertical-align: -1px; }
.x-empty { display: flex; align-items: center; gap: 8px; padding: 18px 14px; margin: 0; font-size: 14px; color: var(--mute); }
.x-pa { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--canvas-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.x-pa.dim { color: var(--mute); background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.x-q { color: var(--acc); }
.x-tag { font-size: 11.5px; color: var(--mute); padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap; }
.x-tag.cand { color: var(--acc); box-shadow: inset 0 0 0 1px rgba(91, 91, 214, 0.3); }
.x-eyebrow { font-size: 13px; color: var(--mute); }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.x-chips span, .x-chips button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; box-shadow: inset 0 0 0 1px var(--hair); }
.x-chips button { color: var(--mute); }

/* 按钮 */
.x-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.x-btn { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.x-btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }
.x-btn .ph { font-size: 16px; }

/* 应用图标：白底细边，官方单色图形 */
.logo.logo-b, .logo.logo-t { background: #fff; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14); color: var(--ink); }
.logo.logo-b svg { width: 58%; height: 58%; }
.logo.logo-b .ph { font-size: 1.15em; }
.logo.logo-t { font-weight: 600; color: var(--mute); font-size: 0.9em; }

/* ---------- 可以聊聊、记下了 ---------- */
.x-sgs { display: grid; }
.x-sg { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 2px; text-align: left; font-size: 16px; color: var(--ink); }
.x-sg + .x-sg { box-shadow: 0 -0.5px 0 var(--hair); }
.x-sg small { font-size: 12.5px; color: var(--mute); flex: none; }
.x-sg:active span { color: var(--mute); }

.x-gots { display: grid; }
.x-got { display: flex; gap: 12px; align-items: center; padding: 12px 14px; transition: opacity 0.25s; }
.x-got + .x-got { box-shadow: 0 -0.5px 0 var(--hair); }
.x-gb { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: left; }
.x-gb b { font-size: 15px; font-weight: 500; line-height: 1.4; }
.x-gq { font-size: 13px; color: var(--mute); line-height: 1.45; }
.x-gto { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.x-gto .logo { width: 16px; height: 16px; border-radius: 4px; font-size: 10px; }
.x-gto em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; }
.x-ga { flex: none; display: flex; gap: 8px; }
.x-ga button { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; font-size: 15px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.x-ga button.ok { background: var(--ink); color: #fff; box-shadow: none; }
.x-got.ok { opacity: 0.5; }
.x-gok { flex: none; width: 32px; display: grid; place-items: center; font-size: 17px; color: var(--mute); }

/* ---------- 今天 ---------- */
.x-tl { display: flex; gap: 14px; align-items: baseline; padding: 9px 14px; }
.x-tl time { flex: none; width: 40px; font-size: 12px; color: var(--mute); }
.x-tlb { display: grid; gap: 1px; min-width: 0; }
.x-tlb b { font-size: 15px; font-weight: 500; }
.x-tlb small { font-size: 12.5px; color: var(--mute); }

/* ---------- 文字聊天 ---------- */
.x-msg { margin: 14px 0; font-size: 15.5px; line-height: 1.6; }
.x-msg p { margin: 0; }
.x-msg.me { display: flex; justify-content: flex-end; }
.x-msg.me p { max-width: 80%; padding: 9px 14px; border-radius: 18px; background: var(--canvas-2); }
.x-msg.ai ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; }
.x-cite { display: inline-block; margin-left: 6px; font-size: 11.5px; color: var(--mute); padding: 0 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair); line-height: 18px; vertical-align: 1px; }
.x-used { margin-top: 10px; font-size: 12.5px; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.x-compose { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 16px; border-radius: 23px; background: #fff; box-shadow: inset 0 0 0 0.5px var(--line-2); }
.x-compose input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; min-width: 0; }
.x-compose button { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; font-size: 17px; color: var(--ink-2); }
.x-compose button.dark { background: var(--ink); color: #fff; }

/* ---------- 语音聊天：大字幕，没有发光的球 ---------- */
.x-talk { display: flex; flex-direction: column; background: var(--canvas); }
.x-talk-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; flex: none; }
.x-tb { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.x-tb .ph { font-size: 16px; }
.x-tt { display: grid; justify-items: center; font-size: 14px; font-weight: 600; text-align: center; }
.x-tt small { font-size: 11px; color: var(--mute); font-weight: 400; margin-top: 1px; }
.x-cap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 20px 4px 28px; overflow: hidden; }
.x-old { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute-2); }
.x-old.me { color: var(--mute); }
.x-now { margin: 0; font: 600 25px/1.42 var(--display); letter-spacing: -0.01em; color: var(--ink); min-height: 1.4em; }
.x-now.ai { color: var(--ink-2); font-weight: 500; }
.x-look { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--mute); }
.x-talk-ft { flex: none; display: grid; justify-items: center; gap: 14px; padding-bottom: 8px; }
.x-who { font-size: 13px; color: var(--mute); }
.x-talk-bt { display: flex; align-items: center; gap: 30px; }
.x-tbig { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; font-size: 21px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; }
.x-mic { width: 84px; height: 84px; border-radius: 42px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.x-lv { display: flex; align-items: center; gap: 4px; height: 30px; }
.x-lv i { width: 4px; height: 8px; border-radius: 2px; background: #fff; opacity: 0.85; }
.x-mic.on .x-lv i { animation: x-lv 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.17s); }
@keyframes x-lv { 0%, 100% { height: 8px; } 50% { height: 26px; } }
.x-hint { font-size: 12px; color: var(--mute-2); }
.x-endb { flex: 1; overflow-y: auto; scrollbar-width: none; padding-top: 6px; }
.x-endb .x-gots { background: #fff; border-radius: 16px; }
.x-again { margin: 18px auto 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
body.still .x-mic.on .x-lv i { animation: none; }
body.still .x-mic.on .x-lv i:nth-child(2), body.still .x-mic.on .x-lv i:nth-child(4) { height: 20px; }
body.still .x-mic.on .x-lv i:nth-child(3) { height: 28px; }

/* ---------- 我 ---------- */
.x-now-b { padding: 2px 0 0; }
.x-care { margin: 8px 0 4px; font: 600 21px/1.45 var(--display); letter-spacing: -0.01em; }
.x-now-b small { font-size: 13px; color: var(--mute); }
.x-sec + .x-sec { box-shadow: 0 -0.5px 0 var(--hair); }
.x-gap { display: flex; gap: 6px; align-items: flex-start; width: 100%; padding: 0 14px 12px 48px; margin-top: -4px; text-align: left; font-size: 12.5px; line-height: 1.45; color: var(--acc); }
.x-gap .ph { font-size: 14px; margin-top: 1px; flex: none; }
.x-kvs { display: grid; }
.x-kv { display: flex; gap: 14px; padding: 10px 0; font-size: 14.5px; }
.x-kv + .x-kv { box-shadow: 0 -0.5px 0 var(--hair); }
.x-kv span { flex: none; width: 76px; color: var(--mute); }
.x-kv b { font-weight: 500; line-height: 1.45; }
.x-rv { padding: 13px 14px; display: grid; gap: 5px; }
.x-rv + .x-rv { box-shadow: 0 -0.5px 0 var(--hair); }
.x-rv-h { display: flex; gap: 8px; font-size: 12px; color: var(--mute); }
.x-rv .q { margin: 0; font-size: 13.5px; color: var(--mute); }
.x-rv .a { margin: 0; font-size: 15px; line-height: 1.5; }
.x-rv .nx { margin: 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 5px; align-items: center; }
.x-chgs { display: grid; }
.x-chg { display: flex; gap: 12px; padding: 13px 14px; }
.x-chg + .x-chg { box-shadow: 0 -0.5px 0 var(--hair); }
.x-chg-a { flex: none; width: 34px; font-size: 12.5px; color: var(--mute); padding-top: 2px; }
.x-chg-a:empty { display: none; }
.x-chg p { margin: 0; line-height: 1.5; }
.x-chg .then { font-size: 13.5px; color: var(--mute); }
.x-chg .now { font-size: 15px; margin-top: 3px; }
.x-chg small { display: flex; gap: 4px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--mute-2); }

/* 方法 */
.x-mt { padding: 13px 14px; display: grid; gap: 6px; }
.x-mt + .x-mt { box-shadow: 0 -0.5px 0 var(--hair); }
.x-mt-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.x-mt-h b { font-size: 15px; font-weight: 500; }
.x-mt > small { font-size: 13px; color: var(--mute); line-height: 1.45; }
.x-inst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--mute); }
.x-ag { height: 28px; padding: 0 9px 0 4px; border-radius: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); }
.x-ag .logo { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.x-ag.on { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.x-spark { display: flex; align-items: flex-end; gap: 4px; height: 60px; padding: 0 2px; }
.x-spark i { flex: 1; border-radius: 2px; background: var(--ink-2); opacity: 0.75; }

/* ---------- 时间 ---------- */
.x-zoom { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(19, 19, 19, 0.05); }
.x-zoom button { flex: 1; height: 30px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.x-zoom button.on { background: #fff; color: var(--ink); box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.08); }
.x-day { display: grid; }
.x-dl { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; }
.x-dl + .x-dl { box-shadow: 0 -0.5px 0 var(--hair); }
.x-dl time { flex: none; width: 40px; font-size: 12px; color: var(--mute); padding-top: 2px; }
.x-di { flex: none; width: 20px; font-size: 17px; color: var(--ink-2); }
.x-db { display: grid; gap: 1px; min-width: 0; }
.x-db b { font-size: 15px; font-weight: 500; }
.x-db small { font-size: 12.5px; color: var(--mute); }
.x-dl.chat { cursor: pointer; }
.x-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.x-wc { min-height: 160px; padding: 8px 6px; border-radius: 12px; display: grid; align-content: start; gap: 6px; box-shadow: inset 0 0 0 1px var(--hair); }
.x-wc.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.x-wc.future { opacity: 0.45; }
.x-wh { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; color: var(--mute); }
.x-wh b { font-size: 16px; color: var(--ink); font-weight: 600; }
.x-wc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.x-wc p { margin: 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-2); }
.x-wc p.ch { display: flex; gap: 3px; align-items: center; color: var(--acc); }
.x-wc p.n { color: var(--mute); }
.x-mw, .x-mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.x-mw span { text-align: center; font-size: 11.5px; color: var(--mute); padding-bottom: 6px; }
.x-md { position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; align-content: center; justify-items: center; gap: 1px; overflow: hidden; }
.x-md b { font-size: 15px; font-weight: 500; position: relative; }
.x-md small { font-size: 10px; color: var(--mute); }
.x-md i { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 2px; background: var(--acc); }
.x-md img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-md.ph b { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.x-md.ph::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.12); }
.x-md.ph b, .x-md.ph i { z-index: 1; }
.x-md.today:not(.ph) { background: var(--ink); }
.x-md.today:not(.ph) b, .x-md.today small { color: #fff; }
.x-md.today.ph { box-shadow: 0 0 0 2px var(--ink); }
.x-md.sel:not(.today) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.x-md.future b { color: var(--mute-2); }
.x-md.pad { pointer-events: none; }
.x-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.x-ym b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.x-yg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.x-yg i { aspect-ratio: 1; border-radius: 2px; background: rgba(19, 19, 19, 0.06); }
.x-yg i.pad { background: none; }
.x-yg i.l1 { background: rgba(19, 19, 19, 0.2); }
.x-yg i.l2 { background: rgba(19, 19, 19, 0.42); }
.x-yg i.l3 { background: rgba(19, 19, 19, 0.72); }
.x-yg i.lf { background: rgba(19, 19, 19, 0.03); }
.x-yg i.today { box-shadow: 0 0 0 1.5px var(--acc); }
.x-chs { display: grid; }
.x-ch { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.x-ch + .x-ch { box-shadow: 0 -0.5px 0 var(--hair); }
.x-chn { flex: none; font-size: 12px; color: var(--mute); padding-top: 3px; }
.x-ch b { font-size: 16px; font-weight: 600; }
.x-ch small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.x-ch p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.x-ch > div { flex: 1; }
.x-chr { flex: none; font-size: 11.5px; color: var(--mute); padding-top: 4px; }
.x-ch.cur b::after { content: "现在"; margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--acc); }

/* ---------- 专题：小红书式卡片墙，结构完全一样，只有封面不同 ---------- */
.x-wall { column-gap: 10px; }
.x-card { break-inside: avoid; margin: 0 0 16px; display: grid; gap: 6px; cursor: pointer; }
.x-cv { border-radius: 12px; overflow: hidden; }
.x-cv.img { aspect-ratio: 3 / 4; }
.x-cv.img img { width: 100%; height: 100%; object-fit: cover; }
.x-cv.txt { background: var(--paper); box-shadow: inset 0 0 0 0.5px var(--line-2); padding: 14px 13px 16px; min-height: 120px; }
.x-cv.txt p { margin: 0; font: 600 15px/1.55 var(--display); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.x-card h4 { margin: 2px 2px 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x-card small { margin: 0 2px; display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--mute); }
.x-ins { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 1.5; padding: 8px 0; }
.x-ins + .x-ins { box-shadow: 0 -0.5px 0 var(--hair); }
.x-ins .ph { color: var(--mute); margin-top: 3px; flex: none; }

/* ---------- 项目与任务 ---------- */
.x-ph { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.x-ph h1 { margin: 0; font: 700 30px/1.15 var(--display); letter-spacing: -0.02em; }
.x-ph p { margin: 6px 0 0; color: var(--mute); font-size: 14.5px; }
.x-phr { display: grid; justify-items: end; gap: 4px; font-size: 13px; color: var(--ink-2); text-align: right; }
.x-phr small { font-size: 11.5px; color: var(--mute); }
.x-tabs { display: flex; gap: 20px; box-shadow: inset 0 -0.5px 0 var(--hair); }
.x-tabs button { height: 40px; font-size: 14.5px; color: var(--mute); font-weight: 500; position: relative; }
.x-tabs button.on { color: var(--ink); }
.x-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--ink); }
.x-tgrp { margin-top: 18px; }
.x-tgrp h5 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.x-task { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 4px; text-align: left; }
.x-task + .x-task { box-shadow: 0 -0.5px 0 var(--hair); }
.x-task.on { background: rgba(19, 19, 19, 0.045); border-radius: 10px; }
.x-ts { flex: none; font-size: 19px; color: var(--mute); }
.x-task.doing .x-ts { color: var(--acc); }
.x-tn { flex: 1; min-width: 0; font-size: 15px; }
.x-tn .mono { font-size: 12px; color: var(--mute); margin-right: 8px; }
.x-task small { flex: none; font-size: 12.5px; color: var(--mute); max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-src { flex: none; font-size: 14px; color: var(--mute-2); }
.x-td-h .mono { font-size: 12px; color: var(--mute); }
.x-td-h h2 { margin: 4px 0 6px; font: 650 21px/1.3 var(--display); letter-spacing: -0.01em; }
.x-td-h small { font-size: 13px; color: var(--mute); line-height: 1.6; }
.x-ho { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 0.5px var(--line-2); }
.x-ho-h { display: flex; align-items: center; gap: 8px; }
.x-ho-h .logo { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.x-ho-h b { font-size: 14.5px; }
.x-ho-h small { font-size: 12px; color: var(--mute); }
.x-ho dl { margin: 12px 0 0; display: grid; grid-template-columns: 40px 1fr; gap: 8px 10px; font-size: 14px; line-height: 1.5; }
.x-ho dt { color: var(--mute); }
.x-ho dd { margin: 0; }
.x-row .logo { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; flex: none; }

html[lang="en"] .x-ch.cur b::after { content: "Now"; }
/* 英文模式：MBTI 名称本身就是英文，去掉重复的小字；轴两端的词更长，留宽一点 */
html[lang="en"] .ps-nm span { display: none; }
html[lang="en"] [data-talk-forget] { white-space: nowrap; flex: none; }
html[lang="en"] .ps-ax { grid-template-columns: 94px minmax(0, 1fr) 94px; gap: 8px; }
