/* Context redesign · Mac 端样式
   悬浮在壁纸上的窗口；侧栏透出模糊壁纸（vibrancy），内容区用米白纸面，检查器靠细线分隔。 */

body.d { height: 100vh; overflow: hidden; background: #cfd6dc; }
.wall { position: fixed; inset: 0; background: url("../img/wall.jpg") center / cover fixed; }

.win {
  --gx: 0px;
  position: fixed; inset: 0; margin: auto;
  width: min(1440px, calc(100vw - 56px));
  height: min(920px, calc(100vh - 48px));
  border-radius: 24px;
  background: var(--canvas);
  overflow: hidden;
  display: grid;
  --sw: 272px; --iw: 352px;
  grid-template-columns: var(--sw) minmax(0, 1fr) var(--iw);
  transition: grid-template-columns 0.4s var(--ease);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 70px -30px rgba(0, 0, 0, 0.45);
}
.win.no-insp { grid-template-columns: var(--sw) minmax(0, 1fr) 0px; }
@media (max-width: 900px), (max-height: 640px) { .win { width: 100vw; height: 100vh; border-radius: 0; } }

/* ---------- 侧栏 ---------- */
.side { padding: 8px; min-height: 0; position: relative; z-index: 5; }
.side-in {
  height: 100%; border-radius: 18px; padding: 0 10px 10px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none;
  background: linear-gradient(rgba(246, 246, 243, 0.84), rgba(246, 246, 243, 0.84)), url("../img/wall-blur.jpg") center / cover fixed;
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.side-in::-webkit-scrollbar { display: none; }
.s-top { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 8px; }
.traffic { display: flex; gap: 8px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12) inset; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.s-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; color: var(--ink-2); }
.s-ico:hover, .s-me:hover, .sn:hover, .st:hover, .sp:hover { background: rgba(19, 19, 19, 0.045); }
.s-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-align: left; margin-top: 2px; }
.s-me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.s-me b { display: block; font-size: 14px; font-weight: 650; }
.s-me small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 1px; }
.s-nav { display: grid; gap: 1px; margin-top: 8px; }
.sn { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: left; }
.sn .ph { font-size: 18px; color: var(--mute); }
.sn span { flex: 1; }
.sn.on { background: rgba(19, 19, 19, 0.06); color: var(--ink); }
.sn.on .ph, .sn.cur .ph { color: var(--ink); }
.sn-b { font: 600 11px/18px var(--mono); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(19, 19, 19, 0.08); color: var(--ink-2); text-align: center; }
.s-sec { margin-top: 20px; }
.s-h { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 10px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
.s-h .mono { font-weight: 400; font-size: 10.5px; color: var(--mute-2); }
.s-h button { color: var(--mute); font-size: 13px; }
.s-tree { margin-top: 2px; }
.st { display: flex; align-items: center; gap: 5px; width: 100%; height: 28px; padding: 0 8px 0 calc(4px + var(--lv) * 15px); border-radius: 8px; text-align: left; font-size: 13px; color: var(--ink-2); }
.st-c { width: 14px; font-size: 10px; color: var(--mute-2); display: grid; place-items: center; transition: transform 0.18s; flex: none; }
.st.open .st-c { transform: rotate(90deg); }
.st-i { font-size: 15.5px; color: var(--mute); display: grid; place-items: center; flex: none; width: 18px; }
.st.dir .st-i { color: #8e8e93; }
.st.file .st-i { color: var(--mute); }
.st-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-k { font-size: 10.5px; color: var(--mute-2); }
.st-b { font: 600 10.5px/17px var(--mono); height: 17px; padding: 0 6px; border-radius: 9px; background: rgba(19, 19, 19, 0.07); color: var(--ink-2); }
.st.on { background: rgba(19, 19, 19, 0.06); color: var(--ink); }
.sp { display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: left; }
.sp span:first-of-type { flex: 1; }
.sp .mono { font-size: 10.5px; color: var(--mute-2); }
.sp .dot { width: 8px; height: 8px; border-radius: 50%; }
.sp.on { background: rgba(19, 19, 19, 0.06); color: var(--ink); }
.s-foot { position: sticky; bottom: -10px; margin: auto -10px -10px; padding: 12px 10px 12px; display: grid; gap: 8px; z-index: 2;
  background: linear-gradient(rgba(246, 246, 243, 0.9), rgba(246, 246, 243, 0.9)), url("../img/wall-blur.jpg") center / cover fixed;
  border-top: 0.5px solid var(--line); }
.gw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.6); border: 0.5px solid rgba(255, 255, 255, 0.9); }
.gw b { display: block; font-size: 12.5px; font-weight: 600; }
.gw small { display: block; font-size: 10.5px; color: var(--mute); margin-top: 1px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(48, 184, 91, 0.18); flex: none; }
.sync { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 11.5px; color: var(--mute); }
.sync .ph { font-size: 14px; }

/* ---------- 工具栏与内容区 ---------- */
.main { position: relative; min-width: 0; overflow: hidden; }
.tb { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 16px; pointer-events: none; }
.tb > * { pointer-events: auto; }
.tb-l, .tb-r { display: flex; align-items: center; gap: 10px; }
.tb .gcap { height: 36px; padding: 0 2px; }
.tb .gcap button { width: 34px; height: 34px; font-size: 15px; border-radius: 17px; }
.tb .gcap button:disabled { opacity: 0.3; cursor: default; }
.tb-t { display: flex; flex-direction: column; line-height: 1.2; margin-left: 4px; white-space: nowrap; min-width: 0; }
.tb-t b { font: 650 15px var(--display); letter-spacing: -0.01em; }
.tb-t small { font-size: 10.5px; color: var(--mute); margin-top: 1px; }
.tb-search { display: flex; align-items: center; gap: 8px; height: 36px; width: clamp(150px, 20vw, 250px); padding: 0 8px 0 13px; border-radius: 18px; font-size: 13px; color: var(--mute); text-align: left; }
.tb-search span { flex: 1; }
.tb-search .ph { font-size: 15px; color: var(--ink-2); }
kbd { font: 500 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(19, 19, 19, 0.06); color: var(--mute); }
.pill.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 18px; }
.pill.sm .ph { font-size: 15px; }
.pill.sm.round { width: 36px; padding: 0; }
.gbtn.sm { width: 36px; height: 36px; border-radius: 18px; font-size: 17px; }
.gbtn.sm.on { color: var(--ink); }
.flip { transform: scaleX(-1); }
.m-edge { position: absolute; z-index: 15; top: 0; left: 0; right: 0; height: 84px; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: linear-gradient(180deg, rgba(244, 244, 241, 0.95), rgba(244, 244, 241, 0.86) 60%, rgba(244, 244, 241, 0));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }
.win.scrolled .m-edge { opacity: 1; }
.m-scroll { position: absolute; inset: 0; overflow-y: auto; padding-top: 62px; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.18) transparent; }
.m-in { max-width: 900px; margin: 0 auto; padding: 14px 40px 90px; }

.d-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 6px; }
.d-h1 { margin: 6px 0 0; font: 700 34px/1.12 var(--display); letter-spacing: -0.02em; }
.d-h1.big { font-size: 46px; line-height: 1.08; letter-spacing: -0.03em; margin-top: 10px; }
.d-h1.big .emboss { font-size: 48px; margin-left: 4px; }
.d-week { width: 372px; padding: 0; gap: 6px; flex: none; }
.d-week .day { height: 70px; padding: 8px 0 7px; }
.d-week .day .n { font-size: 17px; }
.d-seg { width: 220px; }
.d-seg button { height: 30px; font-size: 13px; }

.dsec { margin-top: 34px; min-width: 0; }
.dsec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dsec-hd h2 { margin: 0; font: 650 18px/1.2 var(--display); letter-spacing: -0.02em; }
.dsec-r { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--mute); }
.dsec-r .ph { font-size: 13px; color: var(--mute); }
.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 28px; align-items: start; }
.d-cols.even { grid-template-columns: 1fr 1fr; }
.d-col-r > .dsec:first-child { margin-top: 34px; }

/* 回响：一大两小 */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.bento .echo { width: auto; }
.bento-big .echo { height: 100%; padding: 20px 20px 18px; }
.bento-big .echo-text h3 { font-size: 24px; line-height: 1.3; }
.bento-big .echo-text p { font-size: 14px; -webkit-line-clamp: 4; }
.bento-big .echo-main { margin-top: 16px; }
.bento-big .polaroid img { width: 132px; height: 164px; }
.bento-big .echo-foot { margin-top: auto; padding-top: 16px; }
.bento-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.bento-side .echo { padding: 14px 14px 12px; }
.bento-side .echo-main { margin-top: 8px; gap: 12px; }
.bento-side .echo-text h3 { font-size: 15.5px; }
.bento-side .echo-text p { -webkit-line-clamp: 2; font-size: 12.5px; }
.bento-side .polaroid img { width: 62px; height: 72px; }
.bento-side .echo-foot { margin-top: 8px; }

.v-today .tl { padding: 0; }
.v-today .tl-i { grid-template-columns: 44px 14px 1fr; }
.d-tiles { grid-template-columns: 1fr; gap: 8px; }
.d-tiles .tile { display: grid; grid-template-columns: 1fr 120px; grid-template-rows: auto auto; align-items: end; column-gap: 10px; padding: 12px 14px; }
.d-tiles .tile-k { grid-column: 1; grid-row: 1; }
.d-tiles .tile-v { grid-column: 1; grid-row: 2; margin-top: 4px; }
.d-tiles .tile svg, .d-tiles .pips { grid-column: 2; grid-row: 1 / 3; width: 120px; }

/* ---------- 人生 ---------- */
.lifebar { margin-top: 22px; }
.lb-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lb-card { position: relative; border-radius: 20px; padding: 14px 14px 12px; min-height: 120px; display: flex; flex-direction: column; overflow: hidden; }
.lb-card.tone-sage { background: var(--sage-soft); } .lb-card.tone-cream { background: var(--cream); } .lb-card.tone-sky { background: var(--sky-soft); }
.lb-card.cur { background: #fff; border: 1px solid var(--ink); }
.lb-no { font-size: 26px; font-weight: 700; opacity: 0.3; line-height: 1; }
.lb-card b { margin-top: 10px; font: 650 15.5px/1.3 var(--display); letter-spacing: -0.01em; }
.lb-card small { font-size: 10.5px; opacity: 0.65; margin-top: 3px; }
.lb-rec { margin-top: auto; padding-top: 10px; font-size: 11.5px; opacity: 0.7; }
.lb-here { position: absolute; right: 12px; top: 12px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 600; line-height: 22px; background: var(--ink); color: #fff; }
.lb-scale { position: relative; height: 6px; margin-top: 14px; border-radius: 3px; background: #e9e9e5; }
.lb-scale i { position: absolute; top: 0; bottom: 0; border-radius: 3px; border-right: 2px solid var(--canvas); }
.lb-scale i.tone-sage { background: #c3cfbf; } .lb-scale i.tone-cream { background: #e6d8bd; } .lb-scale i.tone-sky { background: #bccbe4; } .lb-scale i.tone-violet { background: var(--ink); }
.lb-ticks { position: relative; height: 16px; margin-top: 5px; font-size: 10.5px; color: var(--mute); }
.lb-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lb-ticks span:first-child { transform: none; }
.lb-ticks .now { transform: translateX(-100%); color: var(--ink); font-weight: 600; }
.d-heat { margin-top: 18px; container-type: inline-size; }
.d-heat .heat { --hc: min(13px, calc((100cqw - 41px - 41 * 3px) / 42)); padding: 18px 20px 16px; }
.d-heat .heat-g { row-gap: 3px; }
.d-heat .heat-g i { border-radius: 3.5px; }
.d-heat .heat-hd b { font-size: 20px; }
.v-life .yr { padding: 34px 0 14px; }
.d-tis { gap: 16px; }
.d-tis .ti { grid-template-columns: 64px minmax(0, 620px); }
.d-tis .ti-date b { font-size: 34px; }
.d-tis .ti-card h3 { font-size: 18px; }
.d-tis .ti-trip .trip-ph { height: 210px; }
.d-tis .ti-photo > img { height: 230px; }
.d-tis .ti-people img { width: 120px; height: 130px; }
.d-chaps { display: grid; gap: 12px; margin-top: 22px; }

/* ---------- 资料 ---------- */
.t-banner { position: relative; height: 230px; border-radius: 24px; overflow: hidden; color: #fff; margin-top: 6px; }
.t-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 16, 0.72) 0%, rgba(14, 14, 16, 0.25) 60%, rgba(14, 14, 16, 0.1)), linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 50%); }
.t-bt { position: absolute; z-index: 2; left: 26px; bottom: 24px; max-width: 440px; }
.t-bt h1 { margin: 8px 0 0; font: 700 38px/1.08 var(--display); letter-spacing: -0.025em; }
.t-bt p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; opacity: 0.86; }
.t-stats { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: flex; gap: 20px; font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }
.t-stats b { display: block; font-size: 24px; font-weight: 600; color: #fff; }
.t-tabs { display: flex; align-items: center; gap: 4px; margin: 20px 0 14px; }
.t-tabs > button { height: 32px; padding: 0 13px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.t-tabs > button .mono { margin-left: 5px; font-size: 11px; color: var(--mute); font-weight: 400; }
.t-tabs > button.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 0.5px var(--line-2); }
.t-tools { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(19, 19, 19, 0.05); }
.t-tools button { width: 30px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; color: var(--mute); }
.t-tools button:first-child { background: #fff; color: var(--ink); }
.masonry { columns: 3; column-gap: 14px; }
.atom { break-inside: avoid; margin-bottom: 14px; background: #fff; border-radius: 18px; border: 0.5px solid var(--line); overflow: hidden; display: block; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.atom:hover { border-color: rgba(19, 19, 19, 0.2); }
.a-pad { padding: 12px 14px 12px; }
.atom b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.atom small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); margin-top: 3px; }
.atom p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.atom q { display: block; margin-top: 9px; padding-left: 9px; border-left: 2px solid var(--line-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); quotes: none; }
.a-foot { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11.5px; color: var(--mute); }
.a-foot span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; }
.a-k { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.a-k .logo { width: 20px; height: 20px; border-radius: 6px; }
.a-voice .ent-row { margin-top: 10px; }
.a-link .site { margin-bottom: 6px; }
.a-link .why { font-size: 13px; }
.ab-cover { position: relative; height: 150px; }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; }
.a-photo img { width: 100%; height: 200px; object-fit: cover; }
.a-draft .paper { position: relative; margin: 12px 12px 0; padding: 16px 16px 10px; border-radius: 10px; background: var(--surface-2); border: 0.5px solid var(--line); }
.a-draft .paper i { display: block; height: 5px; border-radius: 3px; background: #e4e4e0; margin-bottom: 8px; }
.a-draft .paper i:first-child { height: 8px; width: 55% !important; background: #cfcfca; margin-bottom: 12px; }
.a-draft .paper br { display: block; content: ""; margin-bottom: 8px; }
.d-badge { position: absolute; top: 10px; right: 10px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 10.5px; line-height: 20px; background: #e6f5ea; color: #1f7a3c; }
.a-chat .a-k { color: var(--ink-2); }
.bub { max-width: 88%; margin-top: 7px; padding: 8px 11px; border-radius: 15px; font-size: 13px; line-height: 1.5; width: fit-content; }
.bub.me { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bub.ai { background: var(--surface-2); border: 0.5px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink-2); }
.a-chat small { margin-top: 9px; }
.a-pdf .pdf-pg { position: relative; height: 150px; margin: 12px 12px 0; padding: 16px; border-radius: 6px; background: #fff; border: 0.5px solid var(--line-2); }
.pdf-h { display: block; width: 48%; height: 9px; border-radius: 3px; background: var(--ink-2); margin-bottom: 12px; }
.a-pdf .pdf-pg i { display: block; height: 4.5px; border-radius: 2px; background: #e6e6e2; margin-bottom: 7px; }
.a-pdf .pdf-pg i:nth-child(4) { width: 70%; }
.pdf-hl { position: absolute; left: 16px; top: 54px; width: 62%; height: 9px; background: rgba(255, 214, 77, 0.55); border-radius: 2px; }
.a-quote { background: var(--cream); border-color: transparent; padding: 16px; }
.q-mark { font-size: 20px; color: #c8b8a2; }
.a-quote p { margin-top: 6px; font: 600 16.5px/1.45 var(--display); color: #3d2a1e; letter-spacing: -0.01em; }
.a-quote small { color: #8a6a52; margin-top: 10px; }
.t-toc .toc-r + .toc-r { border-top: 0.5px solid var(--line); }

.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13px; }
.kv span { color: var(--mute); flex: none; }
.kv b { font-weight: 500; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv b.mono { font-size: 11.5px; }

/* ---------- 我的上下文 ---------- */
.ctx-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 8px; }
.ctx-pp { perspective: 1000px; }
.passport.tall { height: 420px; border-radius: 28px; }
.ppt-top { position: absolute; z-index: 2; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.ppt-globe { position: absolute; z-index: 1; left: 50%; top: 41%; transform: translate(-50%, -50%); }
.ppt-bot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; text-align: center; }
.ppt-bot h3 { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: 0.08em; }
.ppt-bot p { margin: 8px 0 0; font-size: 10.5px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.68); }
.ppt-bot .pp-meta { justify-content: center; margin-top: 16px; }
.ctx-chips { padding: 0; margin-top: 22px; }
.ctx-r .current { margin-top: 18px; }
.cur-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cur-h b { font-size: 13px; font-weight: 600; color: var(--mute); }
.cur-h button { font-size: 11.5px; color: var(--ink-2); display: inline-flex; gap: 3px; align-items: center; }
.d-net { margin: 0; }
.d-net .np { width: 120px; margin-left: -60px; height: 48px; border-radius: 24px; }
.pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pg-h { padding: 12px 14px 8px; font-size: 12px; font-weight: 600; color: var(--mute); }
.card.list.prefs > .pg-h + * { border-top: 0; }
.v-context .chips.big { padding: 0; }

/* ---------- AI 与授权 ---------- */
.ag-hero { padding-top: 10px; }
.d-claim { padding: 0; font-size: 42px; line-height: 1.12; letter-spacing: -0.025em; }
.ag-hero .claim-sub { margin: 16px 0 0; max-width: 560px; font-size: 15px; }
.matrix { margin-top: 28px; overflow: hidden; }
.mx-r { display: grid; grid-template-columns: 180px repeat(8, minmax(0, 1fr)) 60px; align-items: center; min-height: 60px; padding: 0 16px; }
.mx-r + .mx-r { border-top: 0.5px solid var(--line); }
.mx-r > span { display: flex; justify-content: center; }
.mx-h { min-height: 40px; font-size: 11.5px; font-weight: 600; color: var(--mute); background: var(--surface-2); }
.mx-h span { text-align: center; white-space: nowrap; }
.mx-a { justify-content: flex-start !important; align-items: center; gap: 10px; min-width: 0; }
.mx-a .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.mx-a .logo-kimi b { font-size: 16px; }
.mx-a .logo-doubao b { font-size: 15px; font-weight: 700; }
.mx-a b { display: block; font-size: 14px; font-weight: 600; }
.mx-a small { display: block; font-size: 10.5px; color: var(--mute); margin-top: 1px; white-space: nowrap; }
.mx-l { justify-content: flex-end !important; font-size: 11px; color: var(--mute); }
.mx-r.off { opacity: 0.5; }
.mx-foot { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 12px; color: var(--mute); background: var(--surface-2); border-top: 0.5px solid var(--line); }
.sw.sm { width: 36px; height: 21px; border-radius: 11px; }
.sw.sm i { width: 17px; height: 17px; top: 2px; left: 2px; border-radius: 9px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 0.5px 1px rgba(0, 0, 0, 0.16); }
.sw.sm.on i { transform: translateX(15px); }
.sw:disabled { cursor: default; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.way { padding: 16px; }
.way-i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--surface-2); border: 0.5px solid var(--line); }
.way b { display: block; margin-top: 12px; font-size: 15px; font-weight: 650; }
.way p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); min-height: 38px; }
.way code { display: block; margin-top: 10px; padding: 7px 9px; border-radius: 9px; background: var(--surface-2); border: 0.5px solid var(--line); font-size: 11px; color: var(--ink-2); }
.way-a { display: flex; gap: 6px; margin-top: 12px; }
.way-a .logo { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.way-a .logo-kimi b { font-size: 13px; }
.way-a .logo-doubao b { font-size: 12px; font-weight: 700; }

/* ---------- 检查器 ---------- */
.insp { min-width: 0; overflow-y: auto; overflow-x: hidden; border-left: 0.5px solid var(--line-2); background: #f9f9f7; scrollbar-width: none; }
.insp::-webkit-scrollbar { display: none; }
.no-insp .insp { border-left-color: transparent; }
.i-hd { position: sticky; top: 0; z-index: 3; height: 62px; display: flex; align-items: center; gap: 8px; padding: 0 20px; min-width: var(--iw);
  background: rgba(249, 249, 247, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.i-hd h3 { margin: 0; font: 650 15px var(--display); }
.i-n { font-size: 11px; height: 18px; line-height: 18px; padding: 0 7px; border-radius: 9px; background: rgba(19, 19, 19, 0.06); color: var(--ink-2); }
.i-r { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--mute); }
.i-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 2px 16px 40px; width: var(--iw); }
.i-sub { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--mute); padding: 0 4px; }
.i-body .chips { padding: 0; }
.d-rcard { padding: 14px; border-radius: 20px; }
.d-rcard .rc-text { font-size: 16.5px; margin-top: 10px; }
.d-rcard .rc-src { padding: 9px 11px; gap: 7px; }
.d-rcard .rc-src li { font-size: 12.5px; }
.d-rcard .rc-act { margin-top: 12px; }
.d-rcard .rc-act .dark { flex: 1; }
.i-body .rcard.done { margin: 0; }
.i-body .insights { padding: 0; }
.i-body .ins p { font-size: 15.5px; }
.i-ai { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.i-ai .logo { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.i-ai .logo-kimi b { font-size: 14px; }
.i-ai b { flex: 1; font-size: 14px; font-weight: 600; }
.i-ai small { font-size: 11px; color: var(--mute); }
.empty-note.pad { padding: 4px 14px; }
.i-body .body30 { padding: 14px; }
.i-body .b-hd b { font-size: 21px; }
.i-body .cal { padding: 12px 10px 10px; }
.i-body .cal-g { gap: 4px; }
.i-body .mstats { padding: 0; gap: 8px; }
.i-body .mstats div { padding: 10px; }
.i-body .mstats b { font-size: 17px; }
.i-body .dayd { margin-top: 0; }
.proposal { padding: 14px; }
.pr-h { display: flex; gap: 10px; align-items: center; }
.pr-h .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.pr-h b { display: block; font-size: 14px; font-weight: 600; }
.pr-h small { display: block; font-size: 10.5px; color: var(--mute); margin-top: 1px; }
.diff { margin-top: 12px; border-radius: 12px; border: 0.5px solid var(--line-2); overflow: hidden; font-size: 11.5px; }
.df-f { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--surface-2); border-bottom: 0.5px solid var(--line); color: var(--ink-2); }
.df-l { padding: 6px 10px; line-height: 1.5; color: var(--ink-2); }
.df-l i { display: inline-block; width: 22px; font-style: normal; color: var(--mute-2); }
.df-l.add { background: #e6f5ea; color: #1f7a3c; }
.pr-src { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.pr-src span { display: block; font-size: 11px; font-weight: 700; color: var(--mute); margin-bottom: 2px; }
.pr-src small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--mute); }
.proposal .rc-act { display: flex; gap: 8px; margin-top: 14px; }
.proposal .rc-act .dark { flex: 1; }
.i-body .after { margin: 0; }

/* ---------- 弹窗与提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none; }
.modal.open { pointer-events: auto; }
.modal-scrim { position: absolute; inset: 0; background: rgba(20, 20, 24, 0.2); opacity: 0; transition: opacity 0.25s; }
.modal.open .modal-scrim { opacity: 1; }
.modal-box { position: relative; transform: translateY(10px) scale(0.97); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.2s; }
.modal.open .modal-box { transform: none; opacity: 1; }
.mb--feed { width: 500px; }
.d-feed { margin: 0; padding: 16px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.35); }
.mb--pal { width: 620px; border-radius: 22px; background: rgba(250, 250, 248, 0.86); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 0.5px solid rgba(255, 255, 255, 0.8); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(0, 0, 0, 0.1); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-bottom: 0.5px solid var(--line); font-size: 18px; }
.pal-in > .ph { font-size: 20px; color: var(--mute); }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; font: 17px var(--font); color: var(--ink); }
.pal-list { padding: 6px; }
.pal-r { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; text-align: left; }
.pal-r > .ph { font-size: 18px; color: var(--ink-2); }
.pal-r b { font-size: 14px; font-weight: 500; }
.pal-r small { margin-left: auto; font-size: 12px; color: var(--mute); }
.pal-r.on { background: rgba(19, 19, 19, 0.05); }
.pal-r.on > .ph { color: var(--ink); }
.toast { position: fixed; z-index: 300; top: 30px; left: 50%; transform: translate(-50%, -16px); height: 42px; padding: 0 18px 0 14px; border-radius: 21px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity 0.25s, transform 0.35s var(--ease); pointer-events: none; white-space: nowrap; }
.toast .ph { color: var(--green); font-size: 17px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 1440 以下：收窄两侧，搜索框只留图标 */
@media (max-width: 1440px) {
  .win { --sw: 248px; --iw: 324px; }
  .m-in { padding-left: 32px; padding-right: 32px; }
  .d-week { width: 330px; }
}
@media (max-width: 1340px) {
  .tb-search { width: 36px; padding: 0; justify-content: center; }
  .tb-search span, .tb-search kbd { display: none; }
  .d-cols { grid-template-columns: minmax(0, 1fr) 240px; }
  .masonry { columns: 2; }
}

/* ---------- 我的上下文 · 看自己的方式 ---------- */
.ctx-tabs { margin: 0 0 6px; }
.ctx-tabs > button { flex: none; white-space: nowrap; }
.ctx-file { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--mute); }
.ctx-file .ph { font-size: 13px; }
.dl-hd { padding-top: 14px; }
.d-sub { max-width: 330px; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.dsec.flush { margin-top: 0; }
.dp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 26px; }
.d-mo .past-mo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.dt-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.d-ody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.d-ody .ody { width: auto; }
.dc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 8px; }
.dc-r .d-h1 { font-size: 40px; }
.dc-r .d-sub { max-width: none; margin: 10px 0 20px; }
.v-context .co-mvv { display: grid; grid-template-columns: 1fr 1.4fr 1fr; padding: 0; }
.v-context .mv { padding: 16px 18px; }
.v-context .mv + .mv { border-top: 0; border-left: 0.5px solid var(--line); }
.v-context .org-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dl-grid .ln-wl { margin-top: 12px; }
.dl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dl-cards .ln-card { width: auto; }
.v-context .ln-rpg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hd hd" "st st" "sk q" "bd q"; column-gap: 28px; padding: 20px; }
.v-context .rpg-hd { grid-area: hd; }
.v-context .rpg-stats { grid-area: st; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.v-context .ln-rpg > .rpg-sec:nth-child(3) { grid-area: sk; }
.v-context .ln-rpg > .rpg-sec:nth-child(4) { grid-area: q; }
.v-context .ln-rpg > .rpg-sec:nth-child(5) { grid-area: bd; }
.i-open { justify-self: start; }
.i-lens li { align-items: flex-start; }
.i-lens li span b { display: block; font-size: 12.5px; color: var(--ink); }
.i-lens li span small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); }
.i-note { display: flex; gap: 6px; margin: 0; padding: 0 4px; font-size: 12.5px; line-height: 1.55; color: var(--mute); }
.i-note .ph { flex: none; margin-top: 2px; }
.i-body .foot-note { margin: 0 4px; }
@media (max-width: 1440px) {
  .ctx-file { display: none; }
  .ctx-tabs > button { padding: 0 11px; }
  .dp-top, .dc-top { gap: 16px; }
  .d-ody .dials { gap: 0; }
}
@media (max-width: 1340px) {
  .d-cols.ov-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
