/* One · 回复进行中：照搬旧版 /app（aurora-pages.css 第 7、17 节）的进度块与动效。
   进度块原地更新（run-block.js），所以动画每次变化只播一次：
   进入 / 收起、状态文字上下滚动、新步骤滑入、完成的步骤画勾、查看过程 / 收起过程高度过渡、Logo 流光。 */
.ar-run { --ar-ink:#0E1B2A; --ar-sec:#4A5B6B; --ar-body:#253545; --ar-meta:#5E6F7E; --ar-hover:#EAF0F2; --ar-fill:#F2F6F7; --ar-fill-2:#F5F8F9;
  --ar-aurora-ink:#2A9BB8; --ar-amber:#B4570A; --ar-amber-ink:#7A4206; --ar-line:#D3DCE0; --ar-violet:#433F8A;
  box-sizing:border-box; display:flex; flex-direction:column; gap:8px; width:100%; margin:0 0 14px; padding:0; }
.ar-run.is-shown { animation: none !important; }
.ar-run-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:28px; }
.ar-run-icon { flex:none; width:16px; height:22px; background:url("/auroviagent-mark-tight.png") center / contain no-repeat; animation: ar-breath 2.4s var(--ease-move, cubic-bezier(.4,0,.2,1)) infinite; }
.ar-run-icon[data-icon="spin"] { width:16px; height:16px; box-sizing:border-box; border:2px solid #D3DCE0; border-top-color:var(--ar-meta); border-radius:50%; background:none; animation: ar-spin var(--spin, .8s) linear infinite; }
.ar-run-title { color:var(--ar-ink); font-size:15px; font-weight:600; line-height:1.5; }
.ar-run-elapsed { color:var(--ar-sec); font-size:14px; font-variant-numeric:tabular-nums; }
.ar-run-toggle { display:inline-flex; align-items:center; gap:4px; height:28px; min-height:28px; padding:0 8px; border:0; border-radius:6px; background:transparent; color:var(--ar-body); font-size:14px; box-shadow:none; cursor:pointer; }
.ar-run-toggle:hover { background:var(--ar-hover); color:var(--ar-ink); }
.ar-run-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition: transform var(--t-fast, .15s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.ar-run-toggle[aria-expanded="true"] svg { transform:rotate(90deg); }
  :is(.ar-run-activity,.ar-run-note,.ar-run-safety) { margin:0 0 0 26px; color:var(--ar-sec); font-size:13px; line-height:1.6; }
.ar-run-activity[data-tone="slow"] { color:var(--ar-amber-ink); }
.ar-run-activity[data-tone="slow"]::before { content:""; display:inline-block; width:12px; height:12px; margin:0 6px -1px 0; box-sizing:border-box; border:1.6px solid currentColor; border-radius:50%; }
.ar-run-safety { display:flex; align-items:flex-start; gap:6px; }
.ar-run-safety::before { content:""; flex:none; width:14px; height:14px; margin-top:3px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 14px no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ar-run-safety[data-tone="warn"] { color:var(--ar-amber-ink); }
.ar-run-safety[data-tone="warn"]::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
.ar-run-steps { display:flex; flex-direction:column; gap:8px; margin:0 0 0 26px; padding:12px 16px; border-radius:10px; background:var(--ar-fill-2); list-style:none; }
.ar-run-steps li { position:relative; padding-left:26px; color:var(--ar-body); font-size:14px; line-height:1.6; }
.ar-run-steps li::before { content:""; position:absolute; left:0; top:4px; width:16px; height:16px; box-sizing:border-box; }
.ar-run-steps li[data-state="done"]::before { left:3px; top:5px; width:6px; height:10px; border-right:2px solid #125E48; border-bottom:2px solid #125E48; transform:rotate(45deg); }
.ar-run-steps li[data-state="current"] { color:var(--ar-ink); font-weight:500; }
/* 极光自己说的话（我先…接下来我会…）：正文字重，不加粗 */
.ar-run-steps li[data-say="true"] { color:var(--ar-body); font-weight:400; }
.ar-run-steps li[data-state="current"]::before { border:2px solid #BDE7F0; border-top-color:var(--ar-aurora-ink); border-radius:50%; animation: ar-spin var(--spin, .8s) linear infinite; }
.ar-run-steps li[data-state="diag"] { padding-left:0; color:var(--ar-meta); font-size:12px; }
.ar-run-steps li[data-state="diag"]::before { display:none; }
.ar-run-design { display:flex; flex-wrap:wrap; align-items:center; gap:6px 4px; margin:0 0 0 26px; padding:0; list-style:none; font-size:13px; }
.ar-run-design li { display:inline-flex; align-items:center; gap:5px; color:var(--ar-meta); }
.ar-run-design li + li::before { content:"—"; margin-right:4px; color:#9AAAB6; }
.ar-run-design li[data-state="done"] { color:var(--ar-body); }
.ar-run-design li[data-state="current"] { height:24px; padding:0 8px; border-radius:6px; background:#fff; box-shadow:inset 0 0 0 1px var(--ar-line); color:var(--ar-violet); font-weight:600; }
.ar-run-design li[data-state="current"]::before { content:none; }
.ar-run-design li[data-state="wait"] { color:var(--ar-amber-ink); font-weight:600; }
/* 设计进度：状态变化有颜色过渡；当前段一道流光（减少动态效果时关掉） */
.ar-run-design[hidden], .ar-run-note[hidden] { display:none; }
.ar-run-design li { transition: color var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), background-color var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), box-shadow var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.ar-run-design li[data-state="current"] { position:relative; overflow:hidden; }
.ar-run-design li[data-state="current"]::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg,rgba(83,191,213,0) 30%,rgba(83,191,213,.22) 50%,rgba(83,191,213,0) 70%); background-size:240% 100%; animation: ar-design-sweep 2.4s var(--ease-move, cubic-bezier(.4,0,.2,1)) infinite; }
.ar-run-design.is-enter:not([hidden]) { animation: ar-step-in var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
@keyframes ar-design-sweep { from { background-position:120% 0; } to { background-position:-120% 0; } }
.ar-run-note { color:var(--ar-meta); font-size:12px; font-variant-numeric:tabular-nums; }
@keyframes ar-breath { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.55; transform:scale(.92); } }
@keyframes ar-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {   :is(.ar-run-icon,.ar-run-steps li)::before, .ar-run-icon { animation: none; } }
.ar-run { animation: ar-run-in var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
@keyframes ar-run-in { from { opacity:0; transform:translateY(6px); } }
.ar-run.is-leaving { overflow:hidden; pointer-events:none; animation: ar-run-out var(--t-mid, .24s) var(--ease-in, cubic-bezier(.4,0,1,1)) forwards; }
@keyframes ar-run-out { from { opacity:1; max-height:var(--ar-run-h, 400px); } to { opacity:0; max-height:0; margin-top:0; margin-bottom:0; } }
/* the mark: 流光 */
.ar-run-icon[data-icon="mark"] { position:relative; animation: none; }
.ar-run-icon > i { display:none; }
.ar-run-icon[data-icon="mark"] > i { display:block; position:absolute; inset:0; -webkit-mask:url("/auroviagent-mark-tight.png") center / contain no-repeat; mask:url("/auroviagent-mark-tight.png") center / contain no-repeat;
  background:linear-gradient(165deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.85) 50%,rgba(255,255,255,0) 62%); background-size:100% 320%; background-position:0 100%; animation: ar-sweep 2.8s var(--ease-move, cubic-bezier(.4,0,.2,1)) infinite; }
@keyframes ar-sweep { 0% { background-position:0 100%; } 55%,100% { background-position:0 0; } }
/* the status words: old ones leave upwards, new ones come from below; 用时 and the toggle stay put on the right */
.ar-run-title { display:inline-grid; overflow:hidden; }
.ar-run-word { grid-area:1 / 1; animation: ar-word-in var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
.ar-run-word[data-first] { animation: none; }
.ar-run-word[data-leave] { animation: ar-word-out var(--t-fast, .15s) var(--ease-in, cubic-bezier(.4,0,1,1)) both; }
@keyframes ar-word-in { from { opacity:0; transform:translateY(8px); } }
@keyframes ar-word-out { to { opacity:0; transform:translateY(-8px); } }
.ar-run-elapsed { margin-left:auto; }
.ar-run-toggle[hidden] { display:none; }
.ar-run-toggle svg { transition: transform var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.ar-run-activity[hidden], .ar-run-safety[hidden] { display:none; }
/* 查看过程 / 收起过程: the panel's height animates; its content fades in a beat later */
.ar-run-fold { display:grid; grid-template-rows:1fr; transition: grid-template-rows var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), margin-top var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.ar-run-fold[hidden] { display:none; }
.ar-run-fold[data-open="false"] { grid-template-rows:0fr; margin-top:-8px; transition-duration: var(--t-fast, .15s); transition-timing-function: var(--ease-in, cubic-bezier(.4,0,1,1)); }
.ar-run-fold > div { min-height:0; overflow:hidden; opacity:1; transition: opacity var(--t-fast, .15s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) .06s; }
.ar-run-fold[data-open="false"] > div { opacity:0; transition-duration: var(--t-fast, .15s); transition-delay:0s; }
/* steps: a new one slides in; a finished one draws its check */
.ar-run-steps li { transition: color var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.ar-run-steps li.is-new, .one-tl.is-live .one-tl-list > li.is-enter { overflow:hidden; animation: ar-step-in var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
@keyframes ar-step-in { from { opacity:0; transform:translateY(4px); max-height:0; } to { opacity:1; transform:none; max-height:8em; } }
.ar-run-steps li[data-state="done"]::before { left:0; top:4px; width:16px; height:16px; border:0; transform:none; background:#125E48;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  animation: ar-check var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
@keyframes ar-check { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }
/* 时间线改用 SVG 标记，接回原完成勾的绘制，不重建既有步骤。 */
.one-tl.is-live .one-tl-list > li.is-ok > svg.is-ok.is-enter { animation: ar-check var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
@media (prefers-reduced-motion: reduce) {
    :is(.ar-run,.ar-run-word,.ar-run-steps li,.ar-run-steps li::before,.ar-run-icon,.ar-run-icon > i,.ar-run-design,.ar-run-design li::after,.one-tl.is-live .one-tl-list > li,.one-tl.is-live .one-tl-list > li.is-ok > svg.is-ok) { animation: none !important; }
    :is(.ar-run-fold,.ar-run-fold > div,.ar-run-steps li,.ar-run-toggle svg) { transition: none !important; }
}

/* ---------------------------------------------------------------- 回答呈现层（R）
   一条写完的普通回答：结论在上；系统判断的必显提示紧跟，不能收起；依据默认收起；来源在「本轮用了什么」图标里。
   放在这里而不是 one.css：按《交接-One界面与回答呈现层-分工边界》，R 的样式不往 one.css 里加。 */
.one-answer .one-lead { font-size: 15.5px; }
.one-answer .one-lead + .one-data-note, .one-answer .one-data-note + .one-md, .one-answer .one-lead + .one-keep { margin-top: 10px; }
/* 必显提示（040 UI · 10-26《极光提示统一》）：不上彩色底、不用彩色字。极光小标 + 一句话，没读全的每份一根读取刻度；
   颜色只在刻度和「后台在补」的小点上。要你动手的是一个下划线链接，知道就行的浅灰一行。 */
.one-data-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; margin: 0; }
.one-data-note.is-quiet { display: block; }
.one-answer .one-rc + .one-data-note { margin-top: 12px; }
.one-dn-mark { width: 14px; height: 20px; margin: 1px 0 0 1px; background: url("/auroviagent-mark-tight.png") center / contain no-repeat; }
.one-dn-body { min-width: 0; }
.one-dn-say { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--body, #253545); }
.one-dn-say + .one-dn-say { margin-top: 2px; }
.one-dn-say b { font-weight: 600; color: var(--ink, #0E1B2A); }
.one-dn-more { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--teal, #0F6E85); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.one-dn-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.one-dn-rows { max-width: 560px; margin: 6px 0 2px; padding: 0; list-style: none; }
.one-dn-row { display: grid; grid-template-columns: minmax(4.5em, max-content) 64px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 3px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #5E6F7E); }
.one-dn-row > b { font-weight: 500; color: var(--body, #253545); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.one-dn-meter { position: relative; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--ch-line) 0 3px, transparent 3px 5px); }
.one-dn-meter > i { position: absolute; inset: 0 auto 0 0; min-width: 3px; border-radius: 2px; background: var(--ch-s6); }
.one-dn-row:has(.is-run) .one-dn-meter > i { background: var(--ch-s1); }
.one-dn-why { min-width: 0; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.one-dn-reason { overflow: hidden; text-overflow: ellipsis; }
.one-dn-tag { flex: none; color: var(--sec, #4A5B6B); }
.one-dn-tag.is-run { display: inline-flex; align-items: center; gap: 5px; color: var(--teal, #0F6E85); }
/* 不做闪烁动画：进行中整段对话会定时重画，动画每次从头开始，看起来就是一跳一跳的（10-26 Owner 反馈的频闪）。 */
.one-dn-tag.is-run::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.one-dn-n { font-family: var(--mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--sec, #4A5B6B); text-align: right; white-space: nowrap; }
.one-dn-act { margin: 6px 0 0; }
.one-dn-act button { padding: 0; border: 0; background: none; color: var(--ink, #0E1B2A); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--cyan, #53BFD5); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.one-dn-act button:hover { text-decoration-color: var(--teal, #0F6E85); }
.one-dn-quiet { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--faint, #7A8B98); }
.one-data-note.is-quiet .one-dn-quiet { margin: 0; }
@media (max-width: 480px) {
  .one-dn-row { grid-template-columns: minmax(4em, max-content) 44px minmax(0, 1fr) auto; column-gap: 8px; }
  .one-dn-row .one-dn-reason { display: none; }
}
.one-answer .one-keep { margin-top: 8px; }
.one-details { margin-top: 8px; }
.one-details-toggle { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 0; border: 0; background: transparent; color: var(--body, #253545); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 6px; }
.one-details-toggle:hover { color: var(--ink, #0E1B2A); }
.one-details-toggle span { font-weight: 400; font-size: 12.5px; color: var(--muted, #5E6F7E); font-family: var(--mono, ui-monospace, monospace); }
.one-details-toggle svg { color: var(--muted, #5E6F7E); transition: transform var(--t-fast, .15s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.one-details.is-open .one-details-toggle svg { transform: rotate(180deg); }
.one-details.is-open > .one-md { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--line-3, #EDF2F4); }
.one-usage-panel .one-sources { margin: 0 0 10px; padding: 0; list-style: none; }
.one-usage-panel .one-sources li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; }
.one-usage-panel .one-sources em { font-style: normal; color: var(--sec, #4A5B6B); font-size: 12.5px; }
/* 第二步：后台补全。没读完的那几条提示在补全时带一个轻的进行中标记；补全结果挂在提示后面，左边一道细线和正文区分。 */
.one-supplement { margin-top: 10px; padding: 2px 0 2px 12px; border-left: 2px solid #CFE3DA; }
.one-supplement.is-stopped { border-left-color: #F0D9BF; }
.one-supplement-head { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--sec, #4A5B6B); font-size: 13px; }
.one-supplement-head svg { color: #2F7D5B; }
.one-supplement.is-stopped .one-supplement-head svg { color: #B4570A; }
.one-supplement .one-lead { font-size: 15px; }
.one-answer .one-supplement + .one-details, .one-answer .one-supplement + .one-md { margin-top: 10px; }
/* 第二步「一行确认」：一次执行好几项时，先一行说清做什么、各几条，名单收在「展开名单」里。 */
.one-confirm-line { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--ink, #0E1B2A); border-bottom: 1px solid var(--line-3, #EDF2F4); }
.one-confirm-list > summary { padding: 8px 14px; cursor: pointer; font-size: 13px; color: var(--sec, #4A5B6B); border-bottom: 1px solid var(--line-3, #EDF2F4); }
@media (prefers-reduced-motion: reduce) { .one-details-toggle svg { transition: none; } .one-dn-mark { background-size: contain; } }

/* 「接着读完」（UI 11-04）：和「去授权」同一种下划线按钮，后面一句浅灰说明。 */
.one-dn-resume { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.one-dn-resume small { font-size: 12.5px; color: var(--faint, #7A8B98); }
@media (max-width: 560px) {
  .one-dn-row .one-dn-why { white-space: normal; }
  .one-dn-row .one-dn-tag { flex: 1 1 auto; line-height: 1.45; }
}
