/* 映间新版：独立编辑式构成。样式仅由真实挂载状态启用，旧版不参与。 */
html[data-editorial='true'] {
  --ed-accent:#087fa5; --ed-tint:#e6f3f6; --ed-serif:'Instrument Serif','Noto Serif SC','Source Han Serif SC','Songti SC','SimSun',serif;
  --ed-radius:18px; --ed-gap:24px;
}
html[data-editorial='true'][data-theme='dark'] { --ed-accent:#76d1eb; --ed-tint:#193138; }
html[data-editorial='true'] body { background:var(--m-canvas); color:var(--m-ink); font-family:var(--font-sans); overflow:hidden; }
.ed-shell { height:100dvh; max-width:1600px; padding:0 40px; margin:auto; display:grid; grid-template-rows:88px 128px 112px minmax(0,1fr) 36px; }
.ed-shell *,#ed-command * { box-sizing:border-box; }
.ed-shell button,#ed-command button { cursor:pointer; }
.ed-shell button:focus-visible,.ed-shell summary:focus-visible,#ed-command :focus-visible { outline:2px solid var(--ed-accent); outline-offset:3px; }
.ed-top { display:flex; align-items:center; gap:32px; border-bottom:1px solid var(--m-line); margin-bottom:18px; }
.ed-brand { display:flex; align-items:center; gap:14px; min-width:260px; font:600 24px var(--ed-serif); letter-spacing:2px; }
.ed-mark { font:56px/.8 var(--ed-serif); letter-spacing:-5px; padding-right:8px; color:var(--ed-accent); }
.ed-brand small { display:block; margin-top:6px; font:10px var(--font-mono); color:var(--m-muted); letter-spacing:1px; }
.ed-actions { display:flex; align-items:center; gap:10px; margin-left:auto; width:min(590px,60%); }
.ed-search { flex:1; border:1px solid var(--m-line); border-radius:99px; padding:0 18px; height:44px; text-align:left; color:var(--m-muted); font-size:13px; background:var(--m-chip); }
.ed-search::before { content:'⌕'; font-size:21px; vertical-align:-2px; margin-right:10px; }
.ed-search::after { content:'Ctrl K'; float:right; font:10px var(--font-mono); border:1px solid var(--m-line); padding:4px 6px; border-radius:5px; margin-top:2px; }
.ed-theme,.ed-settings { flex:none; height:44px; min-width:44px; border-radius:99px; border:1px solid var(--m-line); background:var(--m-surface); }
.ed-theme { font-size:22px; }
.ed-settings { padding:0 18px; font-size:12px; }
.ed-footprint { display:grid; grid-template-columns:280px minmax(0,1fr); align-items:center; gap:32px; border:1px solid var(--m-line); background:var(--m-surface); border-radius:var(--ed-radius); padding:18px 24px; box-shadow:var(--sh-xs); }
.ed-eyebrow { font:10px/1.4 var(--font-mono); color:var(--m-muted); letter-spacing:1.6px; }
.ed-footprint h2 { font:21px/1.4 var(--ed-serif); margin:8px 0 4px; }
.ed-footprint em { font-style:normal; color:var(--ed-accent); font-size:32px; margin-right:4px; }
.ed-footprint p,.ed-timeline p { font-size:10px; color:var(--m-muted); margin:0; line-height:1.7; }
.ed-timeline .ed-eyebrow { display:flex; justify-content:space-between; letter-spacing:0; }
.ed-heatmap { display:grid; grid-template-rows:repeat(7,7px); grid-auto-flow:column; gap:3px; margin:8px 0; }
.ed-heatmap i { display:block; background:var(--m-chip); border-radius:2px; }
.ed-heatmap i.visited { background:var(--ed-accent); outline:1px solid var(--ed-accent); outline-offset:1px; }
.ed-section-title { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.ed-section-title h1 { font:26px/1.4 var(--ed-serif); letter-spacing:.01em; margin:8px 0 0; }
.ed-nav { display:flex; align-items:center; position:relative; align-self:flex-end; margin-bottom:24px; }
.ed-nav-items { display:flex; gap:24px; width:auto !important; flex-direction:row; }
.ed-nav .vtab,.ed-more summary { display:flex; align-items:center; justify-content:center; min-width:48px; height:44px; padding:0 0 6px; border-radius:0; font:19px var(--ed-serif); color:var(--m-muted); background:none; white-space:nowrap; border-bottom:2px solid transparent; }
.ed-nav .vtab.nav-active { border-bottom-color:var(--ed-accent); color:var(--m-ink); background:none; box-shadow:none; }
.ed-nav .vtab::before { display:none; }
.ed-more { margin-left:24px; }
.ed-more summary { list-style:none; cursor:pointer; font:12px var(--font-sans); }
.ed-more summary::-webkit-details-marker { display:none; }
.ed-more summary::after { content:'⌄'; margin-left:6px; }
.ed-more-body { position:absolute; right:0; top:48px; width:184px; background:var(--m-surface); border:1px solid var(--m-line); padding:8px; border-radius:14px; box-shadow:var(--sh-md); z-index:80; }
.ed-more-body .vtab { width:100%; justify-content:flex-start; font:13px var(--font-sans); padding:0 12px; border-radius:8px; border:0; }
.ed-more-body .vtab:hover { background:var(--m-chip); }
.ed-workspace { display:grid; grid-template-columns:300px minmax(0,1fr); gap:var(--ed-gap); min-height:0; }
html[data-editorial] .ed-sidebar { display:flex; width:auto; height:100%; min-width:0; padding:0; background:none; border:0; box-shadow:none; border-radius:0; overflow:hidden; backdrop-filter:none; transform:none; }
html[data-editorial] .ed-profile { order:2; padding:12px 4px 0; margin-top:12px; border-top:1px solid var(--m-line); gap:8px; }
.ed-profile .copy { flex:1; }
.ed-profile .avatar { width:32px; height:32px; border-radius:50%; font-size:13px; background:var(--ed-tint); color:var(--ed-accent); }
.ed-profile .font-semibold { font-size:12px; font-weight:500; }
.ed-profile .text-xs { font-size:10px; }
.ed-profile > button { min-width:32px; min-height:44px; }
.ed-sidebar-row { display:flex; flex-direction:column; min-height:0; flex:1; }
.ed-list-panel { min-height:0; display:flex; flex:1; flex-direction:column; }
.ed-filter { border-radius:99px; background:var(--m-surface); border:1px solid var(--m-line); height:44px; padding:0 16px; box-shadow:none; flex-shrink:0; }
.ed-filter input { min-width:0; font-size:12px; }
html[data-editorial] #tabContent { margin-top:18px; overflow:auto; min-height:0; }
.ed-shell #tabContent .contact { padding:16px 14px; border-radius:12px; margin-bottom:8px; border:1px solid var(--m-line); background:var(--m-surface); }
.ed-shell #tabContent .contact:hover { border-color:var(--ed-accent); }
html[data-editorial] #tabContent .contact[class*='bg-indigo-200'] { background:var(--ed-tint) !important; color:var(--m-ink); box-shadow:inset 3px 0 var(--ed-accent) !important; border-color:color-mix(in srgb,var(--ed-accent) 25%,transparent); }
.ed-shell .avatar { background:var(--ed-tint); color:var(--ed-accent); box-shadow:none; }
.ed-shell #tabContent .contact .font-medium { font-family:var(--ed-serif); font-size:16px; }
html[data-editorial] .ed-main { width:auto; min-width:0; min-height:0; display:flex; flex-direction:column; height:100%; border-radius:var(--ed-radius); background:var(--m-surface); border:1px solid var(--m-line); box-shadow:var(--sh-xs); backdrop-filter:none; position:relative; overflow:hidden; }
.ed-main #head { padding:16px 24px; min-height:76px; border-bottom:1px solid var(--m-line); color:var(--m-ink); flex-shrink:0; }
.ed-main #head .avatar { width:38px; height:38px; border-radius:12px; flex-shrink:0; }
.ed-main #head > .flex { min-width:0; width:100%; }
.ed-main #head .font-semibold { font:19px var(--ed-serif); }
.ed-main #head button { min-width:44px; min-height:44px; }
.ed-main #head .m-back { align-items:center; justify-content:center; border-radius:10px; background:var(--m-chip); font-size:25px; flex-shrink:0; }
.ed-main > footer table { box-shadow:none !important; }
.ed-main [data-act='send'] { box-shadow:none !important; }
html[data-editorial] .ed-nav .vtab { outline:none; }
html[data-editorial] .ed-nav .vtab:focus-visible { outline:2px solid var(--ed-accent); }
.ed-shell[data-view='welcome'] #cx3-stats,.ed-shell[data-view='share'] #cx3-stats,.ed-shell[data-view='moments'] #cx3-stats { display:none; }
.ed-main #messages { min-height:0; padding:24px 32px; flex:1; }
html[data-editorial] .ed-main .bubble,html[data-editorial] .ed-main .msg-text { color:var(--m-ink); }
html[data-editorial] .ed-main .bubble .mb-1 { color:var(--m-muted) !important; }
.ed-main .message-in { opacity:1; animation:none; }
.ed-main .bubble { max-width:min(560px,100%); background:var(--m-canvas); color:var(--m-ink); box-shadow:none !important; border-radius:4px 16px 16px; border:1px solid var(--m-line); line-height:1.75; }
.ed-main .bubble.mine { background:var(--ed-tint); color:var(--m-ink); border-radius:16px 4px 16px 16px; }
.ed-main > footer { padding:12px 20px 16px; border-top:1px solid var(--m-line); }
.ed-main > footer table { border-collapse:collapse; border-spacing:0 !important; background:var(--m-canvas) !important; border:1px solid var(--m-line) !important; padding:6px !important; border-radius:18px !important; backdrop-filter:none !important; }
.ed-main > footer td { padding:4px !important; }
.ed-main > footer textarea { color:var(--m-ink); }
.ed-main [data-act='send'] { background:var(--ed-accent) !important; color:var(--m-surface) !important; border-radius:50% !important; }
.ed-main #plusMenu,.ed-main #stickerPanel { background:var(--m-surface) !important; color:var(--m-ink); border-color:var(--m-line) !important; }
.ed-main #plusMenu button { color:var(--m-ink) !important; }
.ed-welcome { display:none; padding:36px 56px; position:relative; flex:1; overflow:auto; background:radial-gradient(ellipse at 95% 100%,var(--ed-tint),transparent 65%); }
.ed-letter { font:120px/.8 var(--ed-serif); color:var(--ed-accent); height:68px; margin-top:16px; }
.ed-welcome h2 { font:38px/1.5 var(--ed-serif); letter-spacing:-1px; }
.ed-welcome p { font-size:13px; line-height:1.9; color:var(--m-muted); margin:18px 0 24px; }
.ed-welcome-actions { display:flex; gap:16px; align-items:center; font-size:12px; }
.ed-welcome-actions button { min-height:44px; padding:0 18px; border-radius:99px; }
.ed-primary { background:var(--m-ink); color:var(--m-surface); }
.ed-welcome-note { display:block; margin-top:28px; color:var(--m-muted); font-size:10px; letter-spacing:2px; }
.ed-shell[data-view='welcome'] .ed-welcome { display:block; }
.ed-shell[data-view='welcome'] .ed-main > :is(#head,#messages,footer) { display:none; }
.ed-page-foot { display:flex; align-items:center; justify-content:space-between; color:var(--m-muted); font:9px var(--font-mono); letter-spacing:1px; }
html[data-editorial] .ed-legacy-host { display:none !important; }
html[data-editorial] :is(#cxSbCollapse,#sbToggle,.cx-rail-pop) { display:none; }
.ed-shell[data-view='moments'] .ed-main #head,.ed-shell[data-view='share'] .ed-main #head { font:24px var(--ed-serif); }
.ed-shell .mv-card { background:var(--m-surface); border:1px solid var(--m-line); border-radius:14px; box-shadow:none; }
.ed-shell .cx-share-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ed-shell .cx-share-card { background:var(--m-surface); border:1px solid var(--m-line); border-radius:14px; box-shadow:none; }
.ed-shell .cx-share-card-title { font:23px/1.4 var(--ed-serif); }
.ed-shell .cx-share-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.ed-shell .cx-share-tab { white-space:nowrap; flex:0 0 auto; padding:9px 12px; min-height:44px; border-radius:99px; }
.ed-shell .cx-share-count { white-space:nowrap; font-size:10px; }
.ed-shell .cx-share-tab.on,.ed-shell .cx-share-publish,.ed-shell [data-act='composeMoment'] { background:var(--m-ink); color:var(--m-surface); box-shadow:none; border-color:transparent; border-radius:99px; }
.ed-shell .cx-share-kind { background:var(--ed-tint); color:var(--ed-accent); }
.ed-shell .cx-date::before,.ed-shell .cx-date::after { background:var(--m-line); }
#ed-command { padding:0; width:min(620px,calc(100vw - 32px)); max-height:75dvh; margin:16dvh auto auto; border:1px solid var(--m-line); border-radius:20px; background:var(--m-surface); color:var(--m-ink); box-shadow:var(--sh-lg); }
#ed-command::backdrop { background:rgb(15 20 18 / .35); backdrop-filter:blur(5px); }
.ed-command-input { display:flex; padding:18px; gap:14px; align-items:center; border-bottom:1px solid var(--m-line); }
.ed-command-input input { background:none; width:100%; min-width:0; outline:none; font-size:14px; color:inherit; }
.ed-command-input button { border:1px solid var(--m-line); border-radius:6px; padding:5px; min-height:44px; min-width:44px; font:11px var(--font-mono); }
.ed-command-results { padding:8px; max-height:42dvh; overflow:auto; }
.ed-command-results button { display:block; width:100%; padding:16px; text-align:left; border-radius:10px; font-size:14px; }
.ed-command-results button[aria-selected='true'] { background:var(--ed-tint); color:var(--ed-accent); }
.ed-command-results p { padding:24px; font-size:13px; }
#ed-command footer { display:flex; justify-content:space-between; padding:14px 18px; font-size:10px; color:var(--m-muted); border-top:1px solid var(--m-line); }
html[data-editorial='true'] .ed-sidebar .search { background:var(--m-surface) !important; color:var(--m-ink); }
html[data-editorial='true'] #tabContent .contact { background:var(--m-surface) !important; color:var(--m-ink) !important; }
html[data-editorial='true'] #tabContent .contact[class*='bg-indigo-200'] { background:var(--ed-tint) !important; }
html[data-editorial='true'] #tabContent .contact .text-indigo-600 { color:var(--ed-accent) !important; }
html[data-editorial='true'] .ed-shell .avatar { box-shadow:none !important; }
html[data-editorial='true'] .ed-nav .vtab { border:0 !important; border-bottom:2px solid transparent !important; box-shadow:none !important; }
html[data-editorial='true'] .ed-nav .vtab.nav-active { border-bottom-color:var(--ed-accent) !important; }
html[data-editorial='true'] .ed-shell [data-act='composeMoment'] { background:var(--m-ink) !important; color:var(--m-surface) !important; box-shadow:none !important; }
html[data-editorial='true'] .ed-shell .cx-moment-cover { border-radius:14px; box-shadow:none; }
.ed-main #messages { overflow-x:hidden; }
@media(min-width:821px) { html[data-editorial] .ed-main .m-back { display:none; } }
@media(max-width:1100px) { .ed-shell { padding:0 24px; grid-template-rows:80px 120px 108px minmax(0,1fr) 32px; } .ed-brand { min-width:190px; } .ed-brand small { font-size:9px; } .ed-footprint { grid-template-columns:220px 1fr; gap:20px; padding:16px 20px; } .ed-workspace { grid-template-columns:260px minmax(0,1fr); gap:20px; } .ed-section-title h1 { font-size:23px; } .ed-nav-items { gap:16px; } .ed-more { margin-left:16px; } .ed-nav .vtab { font-size:17px; } .ed-welcome { padding:32px; } .ed-welcome h2 { font-size:32px; } }
@media(max-width:820px) {
 .ed-shell { grid-template-rows:76px 116px 122px minmax(0,1fr) 30px; }
 .ed-brand { min-width:0; font-size:22px; } .ed-brand small { display:none; } .ed-mark { font-size:44px; }
 .ed-actions { width:60%; gap:6px; } .ed-settings { padding:0 12px; } .ed-search { padding:0 12px; font-size:11px; } .ed-search::after { display:none; }
 .ed-section-title { flex-direction:column; align-items:flex-start; justify-content:center; gap:10px; } .ed-section-title h1 { display:none; }
 .ed-nav { align-self:stretch; margin:0; } .ed-nav-items { gap:26px; } .ed-nav .vtab { font-size:20px; } .ed-more { margin-left:auto; }
 .ed-footprint h2 { font-size:19px; } .ed-workspace { display:block; }
 html[data-editorial] .ed-sidebar { display:flex; height:100%; } html[data-editorial] .ed-main { display:none; }
 html[data-editorial] body.m-in-chat .ed-sidebar { display:none; } html[data-editorial] body.m-in-chat .ed-main { display:flex; }
 .ed-shell[data-view='moments'] .ed-sidebar,.ed-shell[data-view='share'] .ed-sidebar { display:none; }
 html[data-editorial] .ed-shell[data-view='moments'] .ed-main,html[data-editorial] .ed-shell[data-view='share'] .ed-main { display:flex; }
 body.m-in-chat .ed-shell { grid-template-rows:76px minmax(0,1fr) 26px; } body.m-in-chat .ed-footprint,body.m-in-chat .ed-section-title { display:none; }
 .ed-shell .ed-main .m-back { display:inline-flex; }
}
@media(max-width:480px) {
 .ed-shell { padding:0 16px; grid-template-rows:72px 132px 112px minmax(0,1fr) 26px; } .ed-top { gap:12px; margin-bottom:12px; }
 .ed-brand { font-size:18px; gap:8px; } .ed-mark { font-size:38px; } .ed-actions { width:auto; flex:1; }
 .ed-search { font-size:0; } .ed-search::before { margin:0; font-size:23px; } .ed-search::after { display:block; font-size:9px; }
 .ed-settings { font-size:11px; padding:0 10px; } .ed-theme { font-size:20px; }
 .ed-footprint { grid-template-columns:1fr; gap:10px; padding:12px 16px; border-radius:14px; }
 .ed-footprint h2 { display:inline-block; font-size:18px; margin:3px 0; } .ed-footprint em { font-size:26px; } .ed-footprint .ed-eyebrow { font-size:8px; display:block; } .ed-footprint p { font-size:9px; }
 .ed-timeline > .ed-eyebrow,.ed-timeline p { display:none; } .ed-heatmap { grid-template-rows:repeat(7,3px); gap:2px; margin:0; }
 .ed-nav-items { flex:1; gap:0; justify-content:space-between; } .ed-nav .vtab { font-size:18px; min-width:48px; } .ed-more { margin-left:16px; }
 .ed-page-foot { font-size:7px; letter-spacing:.4px; } .ed-page-foot span:last-child { display:none; }
 .ed-main #head { padding:10px; min-height:68px; } .ed-main #head .font-semibold { font-size:16px; } .ed-main #head > .flex { gap:6px; }
 .ed-main #head .font-semibold { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 .ed-main #head > .flex > div:nth-of-type(2) { min-width:0; flex:1; }
 .ed-main #head #headSub { white-space:nowrap; }
 .ed-main #head [data-act='searchRecords'],.ed-main #head > .flex > .avatar { display:none; }
 .ed-main #messages { padding:20px 12px; } .ed-main > footer { padding:8px; }
 .ed-main > footer td { padding:1px !important; min-width:40px !important; width:40px !important; max-width:none !important; }
 .ed-main > footer button { width:40px !important; height:44px !important; } .ed-main > footer td:nth-child(2) { width:auto !important; }
 .ed-main > footer textarea { padding:10px 4px !important; font-size:13px !important; }
 .ed-shell .cx-share-grid { grid-template-columns:1fr; } .ed-shell .cx-share-tools { flex-wrap:wrap; } .ed-shell .cx-share-search { min-width:0; flex-basis:100%; }
 #ed-command footer span { display:none; }
}
@media(prefers-reduced-motion:no-preference) { .ed-footprint,.ed-workspace { animation:ed-enter .35s cubic-bezier(.23,1,.32,1) both; } .ed-workspace { animation-delay:.06s; } @keyframes ed-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } } }
