/* 映间 v2：紧凑工具栏、首页足迹与个人工牌；业务节点保持原样。 */
html[data-editorial='true'] {
 --ed-accent:#08738f; --ed-tint:#e6f2f3; --ed-serif:'Noto Serif SC','Source Han Serif SC','Songti SC','SimSun',serif;
 --ed-radius:20px; --ed-gap:20px; --ed-shadow:0 8px 32px rgb(35 43 38 / .06); --ed-fast:180ms;
}
html[data-editorial='true'][data-theme='dark'] { --ed-accent:#85d4e3; --ed-tint:#20383c; --ed-shadow:0 8px 32px rgb(0 0 0 / .22); }
html[data-editorial='true'] body { background:var(--m-canvas); background-image:radial-gradient(var(--m-line) .6px,transparent .6px); background-size:6px 6px; color:var(--m-ink); font-family:var(--font-sans); overflow:hidden; }
.ed-shell { height:100dvh; width:100%; min-width:0; max-width:1600px; padding:18px 32px 0; margin:auto; display:grid; grid-template-rows:68px 66px minmax(0,1fr) 30px; }
.ed-shell *,#ed-command *,#ed-id-card * { box-sizing:border-box; }
.ed-shell button,.ed-shell summary,#ed-command button,#ed-id-card button { cursor:pointer; }
.ed-shell :focus-visible,#ed-command :focus-visible,#ed-id-card :focus-visible { outline:2px solid var(--ed-accent); outline-offset:3px; }
.ed-top { display:flex; min-width:0; align-items:center; gap:18px; position:relative; }
.ed-brand { flex:none; padding:0 10px; min-height:44px; font:600 24px var(--ed-serif); letter-spacing:3px; }
.ed-nav { display:flex; align-items:center; padding:4px 8px; background:var(--m-surface); border:1px solid var(--m-line); border-radius:99px; box-shadow:var(--ed-shadow); }
.ed-nav-items { display:flex; gap:2px; width:auto !important; flex-direction:row; }
html[data-editorial] .ed-nav .vtab,.ed-more summary { display:flex; align-items:center; justify-content:center; min-width:50px; height:44px; padding:0 12px; border:0 !important; border-radius:99px; font:13px var(--font-sans); color:var(--m-muted); background:none; box-shadow:none !important; white-space:nowrap; }
html[data-editorial] .ed-nav .vtab.nav-active { background:var(--ed-tint); color:var(--ed-accent); }
.ed-nav .vtab::before { display:none; }
.ed-more summary { list-style:none; cursor:pointer; }
.ed-more summary::-webkit-details-marker { display:none; }
.ed-more summary::after { content:'⌄'; margin-left:5px; }
.ed-more-body { position:absolute; top:64px; left:140px; width:192px; background:var(--m-surface); border:1px solid var(--m-line); padding:8px; border-radius:16px; box-shadow:var(--ed-shadow); z-index:80; }
html[data-editorial] .ed-more-body .vtab { width:100%; justify-content:flex-start; border-radius:8px; }
.ed-more-body .vtab:hover { background:var(--m-chip); }
.ed-actions { display:flex; align-items:center; gap:6px; margin-left:auto; }
.ed-search { position:absolute; left:50%; transform:translateX(-50%); border-radius:99px; height:44px; padding:0 20px; background:var(--m-ink); color:var(--m-surface); font-size:12px; box-shadow:var(--ed-shadow); }
.ed-search::before { content:'⌕'; font-size:20px; vertical-align:-2px; margin-right:8px; }
.ed-search::after { content:'⌘ K'; margin-left:20px; opacity:.65; font:10px var(--font-mono); }
.ed-theme,.ed-settings,.ed-identity { flex:none; height:44px; min-width:44px; padding:0 13px; border-radius:99px; background:var(--m-surface); border:1px solid var(--m-line); font-size:12px; }
.ed-theme { font-size:22px; padding:0; }
.ed-section-title { display:flex; align-items:center; }
.ed-section-copy { display:flex; align-items:baseline; gap:20px; }
.ed-section-title h1 { font:20px var(--ed-serif); margin:0; order:-1; }
.ed-eyebrow { font:10px/1.5 var(--font-mono); color:var(--m-muted); letter-spacing:1.3px; }
.ed-workspace { display:grid; min-width:0; grid-template-columns:280px 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; }
.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; }
html[data-editorial] .ed-sidebar .search { border-radius:99px; background:var(--m-surface) !important; color:var(--m-ink); 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:14px; overflow:auto; min-height:0; }
html[data-editorial] #tabContent .contact { padding:16px 12px; border-radius:12px; margin-bottom:4px; border:1px solid transparent; background:transparent !important; color:var(--m-ink) !important; }
html[data-editorial] #tabContent .contact:hover { background:var(--m-chip) !important; }
html[data-editorial] #tabContent .contact[class*='bg-indigo-200'] { background:var(--ed-tint) !important; box-shadow:inset 3px 0 var(--ed-accent) !important; }
html[data-editorial] #tabContent .text-indigo-600 { color:var(--ed-accent) !important; }
html[data-editorial] .ed-shell .avatar { background:var(--ed-tint); color:var(--ed-accent); box-shadow:none !important; }
.ed-shell #tabContent .contact .font-medium { font:500 14px var(--font-sans); }
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(--ed-shadow); backdrop-filter:none; position:relative; overflow:hidden; }
.ed-main #head { padding:14px 24px; min-height:74px; 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:600 16px var(--font-sans); }
.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 #messages { min-height:0; padding:24px 32px; flex:1; overflow-x:hidden; }
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); 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); 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; box-shadow: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; box-shadow:none !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:40px; flex:1; min-height:0; overflow:auto; background:var(--m-surface); }
.ed-welcome-copy h2 { font:clamp(26px,2.7vw,38px)/1.5 var(--ed-serif); margin:16px 0 10px; letter-spacing:-.02em; }
.ed-welcome-copy p { font-size:13px; line-height:1.8; color:var(--m-muted); margin:0; }
.ed-welcome-actions { display:flex; gap:8px; margin-top:22px; }
.ed-welcome-actions button { min-height:44px; padding:0 18px; border-radius:99px; font-size:12px; background:var(--m-chip); }
.ed-welcome-actions .ed-primary { background:var(--m-ink); color:var(--m-surface); }
.ed-footprint { display:flex; align-items:center; gap:32px; width:100%; padding:28px; margin-top:32px; border:1px solid var(--m-line); border-radius:18px; background:var(--m-canvas); box-shadow:var(--ed-shadow); }
.ed-footprint > div:first-child { flex:1; min-width:0; }
.ed-footprint h2 { font:18px/1.5 var(--ed-serif); margin:12px 0; }
.ed-footprint em { display:inline-block; font:normal 48px/1 var(--ed-serif); color:var(--ed-accent); margin-right:8px; font-variant-numeric:tabular-nums; }
.ed-footprint p { font-size:10px; line-height:1.7; color:var(--m-muted); margin:8px 0 0; }
.ed-timeline { width:45%; max-width:330px; flex:none; }
.ed-timeline > .ed-eyebrow { display:flex; justify-content:space-between; }
.ed-heatmap { display:grid; grid-template-rows:repeat(7,8px); grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; gap:4px; margin:12px 0; }
.ed-heatmap i { display:block; background:var(--m-line); border-radius:2px; }
.ed-heatmap i.visited { background:var(--ed-accent); }
.ed-shell[data-view='home'] .ed-welcome,.ed-shell[data-view='welcome'] .ed-welcome { display:block; }
.ed-shell[data-view='home'] .ed-main > :is(#head,#messages,footer,#shareView),.ed-shell[data-view='welcome'] .ed-main > :is(#head,#messages,footer),.ed-shell #cx3-stats { display:none !important; }
.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 .mv-card,.ed-shell .cx-share-card { background:var(--m-surface); border:1px solid var(--m-line); border-radius:16px; box-shadow:none; }
.ed-shell .cx-share-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.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,html[data-editorial] .ed-shell [data-act='composeMoment'] { background:var(--m-ink) !important; color:var(--m-surface) !important; box-shadow:none !important; 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); }
html[data-editorial] .ed-shell .cx-moment-cover { border-radius:16px; box-shadow:none; }
#ed-command,#ed-id-card { border:1px solid var(--m-line); background:var(--m-surface); color:var(--m-ink); box-shadow:0 24px 64px rgb(0 0 0 / .18); font-family:var(--font-sans); }
#ed-command { padding:0; width:min(620px,calc(100vw - 32px)); max-height:75dvh; margin:16dvh auto auto; border-radius:20px; }
#ed-command::backdrop,#ed-id-card::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; font-size:14px; color:inherit; }
.ed-command-input button { border:1px solid var(--m-line); border-radius:8px; 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%; min-height:44px; 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); }
#ed-id-card { width:320px; max-width:calc(100vw - 32px); max-height:90dvh; padding:0; border:0; background:transparent; box-shadow:none; overflow:auto; }
.ed-lanyard { height:72px; width:44px; margin:auto; background:repeating-linear-gradient(90deg,var(--ed-accent) 0 6px,var(--ed-tint) 6px 8px); clip-path:polygon(0 0,100% 0,75% 100%,25% 100%); }
.ed-badge { position:relative; padding:28px 24px 20px; border:1px solid var(--m-line); border-radius:20px; background:var(--m-surface); box-shadow:var(--ed-shadow); text-align:center; }
.ed-badge::before { content:''; display:block; width:46px; height:6px; background:var(--m-line); border-radius:9px; margin:-16px auto 20px; }
.ed-id-close { position:absolute; top:10px; right:10px; width:44px; height:44px; border-radius:50%; font-size:24px; }
.ed-badge > .ed-eyebrow { font-size:9px; }
.ed-badge-face,.ed-badge-back { min-height:260px; padding-top:26px; }
.ed-id-avatar .avatar { width:84px; height:84px; border-radius:22px; margin:0 auto 18px; background:var(--ed-tint); color:var(--ed-accent); font-size:32px; overflow:hidden; }
.ed-badge h2 { font:26px/1.5 var(--ed-serif); overflow-wrap:anywhere; margin:0 0 8px; }
.ed-id-handle { color:var(--m-muted); font-size:12px; overflow-wrap:anywhere; }
.ed-id-status { font-size:12px; color:var(--ed-accent); margin-top:24px; }
.ed-id-flip { min-height:44px; width:100%; margin-top:20px; border-top:1px dashed var(--m-line); font-size:12px; }
.ed-badge-back dl { text-align:left; font-size:12px; }
.ed-badge-back dt { color:var(--m-muted); margin-top:12px; font-size:10px; }
.ed-badge-back dd { margin:4px 0 0; overflow-wrap:anywhere; }
.ed-badge-back p { font-size:10px; line-height:1.7; color:var(--m-muted); text-align:left; }
@media(min-width:821px) { html[data-editorial] .ed-main .m-back { display:none; } }
@media(max-width:1250px) { .ed-search { position:static; transform:none; font-size:0; width:44px; padding:0; } .ed-search::before { margin:0; } .ed-search::after { display:none; } .ed-top { gap:10px; } .ed-workspace { grid-template-columns:250px minmax(0,1fr); } .ed-footprint { gap:20px; padding:20px; } }
@media(max-width:820px) {
 .ed-shell { padding:12px 20px 0; grid-template-rows:118px 50px minmax(0,1fr) 26px; }
 .ed-top { flex-wrap:wrap; align-content:start; justify-content:space-between; gap:10px; }
 .ed-nav { order:3; width:100%; justify-content:center; padding:3px 8px; }
 .ed-nav-items { flex:1; justify-content:space-around; }
 .ed-more-body { top:112px; left:auto; right:0; }
 .ed-actions { gap:4px; } .ed-identity,.ed-settings { padding:0 10px; }
 .ed-section-title h1 { font-size:18px; } .ed-section-copy { gap:12px; } .ed-section-copy .ed-eyebrow { font-size:8px; }
 .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='home'] .ed-sidebar,.ed-shell[data-view='moments'] .ed-sidebar,.ed-shell[data-view='share'] .ed-sidebar { display:none; }
 html[data-editorial] .ed-shell[data-view='home'] .ed-main,html[data-editorial] .ed-shell[data-view='moments'] .ed-main,html[data-editorial] .ed-shell[data-view='share'] .ed-main { display:flex; }
 .ed-shell .ed-main .m-back { display:inline-flex; }
 .ed-welcome { padding:28px; } .ed-footprint { gap:18px; flex-wrap:wrap; } .ed-timeline { width:100%; max-width:none; }
}
@media(max-width:480px) {
 .ed-shell { padding:8px 12px 0; grid-template-rows:118px 44px minmax(0,1fr) 24px; }
 .ed-brand { font-size:20px; padding:0 4px; } .ed-actions { gap:3px; } .ed-identity,.ed-settings { font-size:11px; padding:0 8px; }
 html[data-editorial] .ed-nav .vtab,.ed-more summary { font-size:12px; padding:0 8px; min-width:44px; }
 .ed-welcome { padding:24px 18px; } .ed-welcome-copy h2 { font-size:26px; } .ed-welcome-copy p { font-size:12px; }
 .ed-footprint { padding:18px; margin-top:24px; } .ed-footprint h2 { font-size:17px; } .ed-footprint em { font-size:42px; }
 .ed-heatmap { grid-template-rows:repeat(7,6px); gap:3px; } .ed-footprint .ed-eyebrow { font-size:8px; }
 .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 > .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-top,.ed-workspace,.ed-footprint { animation:ed-enter .32s ease-out both; } .ed-workspace { animation-delay:.06s; } .ed-footprint { animation-delay:.12s; } .ed-badge-face,.ed-badge-back { animation:ed-enter .18s ease-out; } .ed-shell button { transition:background var(--ed-fast),color var(--ed-fast); } @keyframes ed-enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } } }
@media(prefers-reduced-motion:reduce) { .ed-shell *,#ed-id-card * { animation:none !important; transition:none !important; } }
