/* 开发信页。类名前缀 or-。颜色只用 app.css 顶部的变量，半透明色用 color-mix 从变量里调。 */
.or-tabs{scrollbar-width:none;flex:none}
.or-tabs::-webkit-scrollbar{display:none}
.or-body{display:flex;flex-direction:column;gap:14px;min-width:0}

/* 常驻说明 */
.or-notice{display:flex;align-items:center;gap:10px;font-size:12.5px;line-height:1.6;color:var(--slate);padding:7px 14px;border-radius:14px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--line)}
.or-notice .ic{width:15px;height:15px;color:var(--purple-ink)}
.or-notice b{font-weight:500;color:var(--ink)}
.or-notice .pill{flex:none}

/* 左列表右详情 */
.or-split{display:grid;grid-template-columns:minmax(264px,324px) minmax(0,1fr);gap:14px;align-items:start}
.or-side{position:sticky;top:0;max-height:calc(100vh - 150px);overflow:auto;scrollbar-width:thin}
.or-list{gap:7px}
.or-it{min-height:58px;transition:transform .3s var(--ease),box-shadow .22s var(--ease),background-color .18s,opacity .3s}
.or-it:active{transform:scale(.985)}
.or-it.or-gone{opacity:0;transform:translateX(18px) scale(.98)}
.or-it .pill{flex:none}
.or-arrow{color:var(--faint);display:grid;place-items:center;flex:none}
.or-grp{display:flex;align-items:center;gap:8px;margin-top:4px}
.or-grp em{font:500 10.5px var(--mono);font-style:normal;color:var(--faint);padding:0 6px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line)}
.or-grp::after{content:"";flex:1;height:1px;background:var(--line)}
.or-grp-none{font-size:12.5px;color:var(--faint);padding:2px 2px 4px}
.or-time{font-size:11px;color:var(--faint);white-space:nowrap;flex:none}
.or-cls{margin-top:4px;min-width:0;display:flex}
.or-cls .pill{max-width:100%;overflow:hidden}
.or-mailit{align-items:flex-start;padding-top:10px;padding-bottom:10px}

/* 审核区和回信详情 */
.or-pane{display:flex;flex-direction:column;gap:16px;padding:20px 22px;min-width:0}
.or-head{display:flex;align-items:center;gap:14px;min-width:0}
.or-big{font-size:17px}
.or-co{font-weight:400;color:var(--slate);margin-left:8px;font-size:.92em}
.or-go{display:inline-flex;align-items:center;gap:4px;flex:none;min-height:36px}
.or-go .ic,.or-seq-note .ic,.or-next .lnk .ic{width:14px;height:14px;transition:transform .22s var(--ease)}
.or-go:hover .ic,.or-seq-note .lnk:hover .ic,.or-next .lnk:hover .ic{transform:translateX(3px)}
.or-steprow{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.or-mini{gap:6px}
.or-mini i{width:22px;height:22px;font-size:11px;transition:box-shadow .25s,transform .3s var(--spring)}
.or-mini i.on{transform:scale(1.12)}
.or-mini i.done{color:var(--purple-ink);background:var(--grad-soft),var(--white)}
.or-mini span{margin-left:6px;font:400 12.5px var(--ui);color:var(--slate)}
.or-stepname{display:flex;gap:8px;align-items:baseline;font-size:12.5px;color:var(--slate);min-width:0;flex-wrap:wrap}
.or-stepname b{font:500 13px var(--display);color:var(--purple-ink)}

/* 这封信引用的近况 */
.or-cites{position:relative;display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px 19px;border-radius:18px;background:var(--grad-soft);box-shadow:inset 0 0 0 1px var(--line-2);overflow:hidden}
.or-cites::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--grad)}
.or-cites-h{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;color:var(--purple-ink)}
.or-cites-h h4{font-size:14.5px;color:var(--indigo)}
.or-cites-h .sub{white-space:normal;margin-left:4px}
.or-cite-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.or-cite{display:flex;flex-direction:column;gap:7px;min-width:0;padding:10px 12px 12px;border-radius:14px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);transition:transform .22s var(--ease),box-shadow .22s var(--ease)}
.or-cite:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--line-2),var(--sh)}
.or-cite p{font-size:13.5px;line-height:1.6;max-width:none}
.or-cite time{font-size:11.5px;color:var(--slate)}
.or-cite .srcchip{flex:0 1 auto;min-width:0}
.or-cite.none{flex-direction:row;align-items:center;gap:10px;color:var(--slate);background:var(--glass)}
.or-cite.none:hover{transform:none;box-shadow:inset 0 0 0 1px var(--line)}
.or-cite.none .ic{color:var(--faint)}

/* 信件 */
.or-mail{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border-radius:18px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);min-width:0}
.or-subj{display:flex;align-items:baseline;gap:6px 10px;flex-wrap:wrap;padding-bottom:11px;border-bottom:1px solid var(--line)}
.or-subj .pill{align-self:center}
.or-subj-t{font:500 15px/1.45 var(--display);min-width:0;overflow-wrap:anywhere}
.or-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:64ch}
.or-zh{display:flex;flex-direction:column;gap:4px;padding-top:11px;border-top:1px solid var(--line);transition:opacity .4s}
.or-zh p{font-size:12.5px;line-height:1.75;color:var(--slate);max-width:none}
.or-zh.wait{opacity:0}
.or-ta{min-height:230px;font-size:14.5px}
.or-wrap{white-space:normal}

/* 操作区 */
.or-acts{position:sticky;bottom:-16px;z-index:3;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 -8px -6px;padding:8px 8px 8px 20px;border-radius:30px;background:color-mix(in srgb,var(--white) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px var(--line-2),var(--sh-h)}
.or-acts.flat{position:static;margin:0;padding:0;border-radius:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.or-body a.btn{text-decoration:none}
.or-acts-n{white-space:normal}
.or-acts .btn.g{padding:0 10px}
.or-acts .btn.g::before{left:10px;right:10px}
.or-done{display:inline-flex;align-items:center;gap:8px;font:500 14px var(--display);color:var(--ok)}
.or-done.plain{color:var(--slate)}
.or-okmark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--purple-ink);background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line-2),var(--sh)}
.or-empty p{max-width:34em}
.or-back{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;min-height:44px;padding:0 16px 0 10px;border-radius:999px;font:500 13.5px var(--display);color:var(--purple-ink);text-decoration:none;background:var(--glass);box-shadow:inset 0 0 0 1px var(--line);transition:transform .22s var(--ease),box-shadow .2s}
.or-back:active{transform:scale(.97);box-shadow:inset 0 0 0 1px var(--line-2)}

/* 回信详情里的几块 */
.or-block{display:flex;flex-direction:column;gap:8px;min-width:0}
.or-clsrow{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.or-why{font-size:13.5px;min-width:0}
.or-sug{padding:14px 16px;border-radius:18px;background:var(--grad-soft);box-shadow:inset 0 0 0 1px var(--line-2)}
.or-sug .ai{min-height:0}
.or-sug .ai p{font-size:14.5px;max-width:64ch}
.or-sug .or-zh{border-top-color:var(--line-2)}
.or-flag{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:16px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--line);color:var(--slate);font-size:13px}
.or-flag .ic{margin-top:3px;color:var(--faint)}
.or-flag b{display:block;font:500 14px var(--display);color:var(--ink)}
.or-next{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;border-radius:16px;background:var(--glass);box-shadow:inset 0 0 0 1px var(--line);font-size:13.5px}
.or-next .lnk{display:inline-flex;align-items:center;gap:4px;min-height:32px}
.or-ico{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--purple-ink);background:var(--grad-soft);box-shadow:inset 0 0 0 1px var(--line-2)}
.or-ico .ic{width:16px;height:16px}

/* 发送进度 */
.or-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.or-seq{overflow:hidden;transition:box-shadow .25s var(--ease)}
.or-seq:hover,.or-seq.open{box-shadow:0 0 0 1px var(--line-2),var(--sh-h)}
.or-seq-h{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:14px 18px 4px;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.or-seq-h:focus-visible{outline:2px solid var(--purple-ink);outline-offset:-4px;border-radius:var(--r-card)}
.or-seq-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.or-chev{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--slate);background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);transition:transform .36s var(--ease),box-shadow .2s,color .2s}
.or-seq-h:hover .or-chev{color:var(--purple-ink);box-shadow:inset 0 0 0 1px var(--purple)}
.or-seq-h:active .or-chev{transform:scale(.92)}
.or-seq.open .or-chev{transform:rotate(180deg);color:var(--purple-ink)}
.or-seq-b{padding:0 18px 14px;display:flex;flex-direction:column;gap:4px}
.or-seq-note{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;font-size:13px;color:var(--slate)}
.or-seq-note .lnk{display:inline-flex;align-items:center;gap:4px;min-height:28px}
.or-seq-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .44s var(--ease)}
.or-seq.open .or-seq-more{grid-template-rows:1fr}
.or-seq-more>div{overflow:hidden;min-height:0}
.or-more-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 18px;padding-top:12px;border-top:1px solid var(--line)}
.or-letters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 18px 18px}
.or-letter{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px 14px 14px;border-radius:16px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line)}
.or-letter.off{background:transparent;opacity:.6}
.or-letter-h{display:flex;align-items:center;gap:10px;min-width:0}
.or-letter .or-subj-t{font-size:14px}
.or-letter .or-pre{font-size:14px}
.or-letter .or-zh{padding-top:8px}
.or-num{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;flex:none;font:500 11.5px var(--display);color:var(--purple-ink);background:var(--white);box-shadow:inset 0 0 0 1px var(--line-2)}

/* 节奏线：点的位置用 left 百分比，发送进度里等距，节奏分段里按天数等比例 */
.or-line{position:relative;height:88px;margin:0 20px}
.or-rail{position:absolute;left:0;right:0;top:43px;height:1px;background:var(--line-2)}
.or-fill{position:absolute;left:0;top:42px;height:3px;border-radius:3px;background:var(--grad);width:0;transition:width .5s var(--ease)}
.or-st{position:absolute;top:29px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;font:400 11px var(--mono);color:var(--faint);white-space:nowrap}
.or-lb em{font-style:normal;margin:0 1.5px}
.or-line.prop .or-lb{font-family:var(--ui);font-size:11.5px}
.or-dot{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font:500 12px var(--display);color:var(--slate);background:var(--white);box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .25s,color .25s,background .25s,transform .32s var(--spring)}
.or-st.sent .or-dot{color:var(--purple-ink);background:var(--grad-soft),var(--white);box-shadow:inset 0 0 0 1.5px var(--purple),0 0 0 4px color-mix(in srgb,var(--purple) 16%,transparent)}
.or-st.sent{color:var(--slate)}
.or-st.next .or-dot{color:var(--purple-ink);box-shadow:inset 0 0 0 1.5px var(--purple)}
.or-st.next .or-dot::after{content:"";position:absolute;left:50%;top:14.5px;width:29px;height:29px;margin:-14.5px 0 0 -14.5px;border-radius:50%;box-shadow:0 0 0 1.5px var(--purple);opacity:0;animation:or-ring 2s var(--ease) infinite}
.or-st.next{color:var(--purple-ink)}
.or-st.got .or-dot{color:var(--ok);background:color-mix(in srgb,var(--ok) 14%,var(--white));box-shadow:inset 0 0 0 1.5px var(--ok),0 0 0 4px color-mix(in srgb,var(--ok) 16%,transparent);transform:scale(1.14)}
.or-st.off{opacity:.36;transition:opacity .4s}
.or-st.off .or-lb{text-decoration:line-through}
.or-line.prop .or-st.sent .or-dot{transform:scale(1.08)}
.or-mark{position:absolute;top:0;z-index:2;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none;animation:or-drop .46s var(--spring) both}
.or-mark b{display:inline-flex;align-items:center;gap:5px;height:23px;padding:0 9px;border-radius:999px;font:500 11.5px var(--display);white-space:nowrap;color:var(--ok);background:color-mix(in srgb,var(--ok) 10%,var(--white));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ok) 36%,transparent)}
.or-mark b .ic{width:12px;height:12px}
.or-mark u{width:1px;height:15px;background:var(--ok);opacity:.5;text-decoration:none}
.or-mark i{width:10px;height:10px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 20%,transparent),0 0 0 2px var(--white)}
.or-mark.at-dot u{height:4px}
@keyframes or-ring{0%{transform:scale(.9);opacity:.7}70%,100%{transform:scale(1.6);opacity:0}}
@keyframes or-drop{from{opacity:0;transform:translateX(-50%) translateY(8px) scale(.7)}to{opacity:1;transform:translateX(-50%)}}

/* 节奏分段 */
.or-cad{gap:12px}
.or-msg{display:flex;align-items:center}
.or-tb{display:flex;flex-direction:column}
.or-tr{display:grid;grid-template-columns:24px 58px minmax(0,1fr);gap:12px;align-items:start;padding:9px 8px;border-top:1px solid var(--line);border-radius:12px;transition:background-color .3s,opacity .4s}
.or-tr:hover{background:var(--glass-2)}
.or-tr.lit{background:var(--grad-soft)}
.or-tr.off{opacity:.38}
.or-day{font-size:12px;line-height:1.8;color:var(--faint);white-space:nowrap;font-variant-numeric:tabular-nums}
.or-tr-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.or-tr-t b{font:500 13.5px/1.6 var(--display)}
.or-tr-t span{font-size:12.5px;line-height:1.6;color:var(--slate)}
.or-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.or-three>div{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 14px;border-radius:16px;background:var(--grad-soft);box-shadow:inset 0 0 0 1px var(--line-2);font:500 14px/1.4 var(--display);color:var(--indigo)}
.or-three .badge-n{flex:none}
.or-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.or-rule{display:flex;gap:12px;align-items:flex-start;min-width:0;padding:12px 14px;border-radius:16px;background:var(--glass-2);box-shadow:inset 0 0 0 1px var(--line);transition:transform .22s var(--ease),box-shadow .22s var(--ease)}
.or-rule:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--line-2),var(--sh)}
.or-rule b{display:block;font:500 13.5px/1.5 var(--display)}
.or-rule span:not(.or-ico){font-size:12.5px;line-height:1.6;color:var(--slate)}

@media (prefers-reduced-motion:reduce){
  .or-mark,.or-st.next .or-dot::after{animation:none}
  .or-seq-more,.or-fill{transition:none}
}
@media (max-width:1100px){
  .or-letters{grid-template-columns:minmax(0,1fr)}
  .or-rules{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .or-tabs{align-self:stretch}
  .or-tabs button{height:38px;flex:1 0 auto}
  .or-notice{align-items:flex-start}
  .or-notice .ic{margin-top:3px;flex:none}
  .or-split{grid-template-columns:minmax(0,1fr)}
  .or-side{position:static;max-height:none;overflow:visible}
  .or-it{min-height:62px}
  .or-pane{padding:16px;gap:14px}
  .or-head{flex-wrap:wrap}
  .or-head .or-go{flex-basis:100%;min-height:44px;margin:-8px 0 -8px 66px}
  .or-head .or-seq-tags{width:100%;justify-content:flex-start}
  .or-big{white-space:normal}
  .or-mini{flex-wrap:wrap}
  .or-mini span{flex-basis:100%;margin:2px 0 0}
  .or-mail{padding:14px}
  .or-acts{bottom:-26px;margin:0 -8px -8px;padding:8px}
  .or-acts.flat{flex-direction:column;align-items:flex-start;gap:6px}
  .or-acts.flat .or-acts-n{display:block}
  .or-acts.flat .btn{width:100%}
  .or-next .lnk{flex-basis:100%;padding-left:44px;margin-top:-8px}
  .or-line.prop .or-dot{width:24px;height:24px;font-size:11px}
  .or-line.prop .or-st{top:30px}
  .or-acts .btn{height:48px}
  .or-acts .btn.p{flex:1}
  .or-acts .btn.g{padding:0 14px}
  .or-acts-n,.or-acts .sp{display:none}
  .or-acts .or-done{min-height:32px}
  .or-sum{gap:8px}
  .or-sum .kpi{padding:10px 12px}
  .or-sum .kpi b{font-size:24px}
  .or-sum .kpi span{font-size:11.5px;line-height:1.45}
  .or-seq-h{flex-wrap:wrap;padding:14px 14px 4px;min-height:60px}
  .or-seq-tags{order:5;width:100%;justify-content:flex-start}
  .or-seq-h .nm{white-space:normal}
  .or-seq-h .or-co{display:block;margin-left:0}
  .or-seq-b{padding:10px 14px 14px}
  .or-more-h{margin:0 14px}
  .or-letters{padding:10px 14px 16px}
  .or-line{height:84px;margin:0 16px}
  .or-dot{width:26px;height:26px;font-size:11.5px}
  .or-rail{top:41.5px}
  .or-fill{top:40.5px}
  .or-st.next .or-dot::after{width:26px;height:26px;top:13px;margin:-13px 0 0 -13px}
  .or-st{font-size:10.5px}
  .or-line.prop .or-st:not(:nth-child(3)) .or-lb em{display:none}
  .or-three,.or-rules{grid-template-columns:minmax(0,1fr)}
  .or-next .lnk{min-height:44px}
  .or-seq-note .lnk{min-height:44px}
  .or-cite-grid{grid-template-columns:minmax(0,1fr)}
}
