/* 数字人「找流程 / 发起流程」卡片样式（OA 门户中屏 + 云台 PC） */
.apl-msg, .apl-group {
  --apl-primary: #1677ff;
  --apl-primary-soft: #e6f4ff;
  --apl-primary-line: #bae0ff;
  --apl-red: #ff4d4f;
  --apl-orange: #fa8c16;
  --apl-green: #52c41a;
  --apl-text: #262626;
  --apl-sub: #8c8c8c;
  --apl-line: #ececec;
}
.apl-group { --apl-primary: #e60012; --apl-primary-soft: #fff1f0; --apl-primary-line: #ffccc7; }

.chat-msg.apl-msg { max-width: 100%; }
.chat-msg.apl-msg .chat-msg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 44px); }
.chat-msg.apl-msg .apl-bubble { align-self: flex-start; }
.apl-group { gap: 8px; }
.gya-msg-group.apl-group .yt-ai-block.apl-ai-block { max-width: 100%; width: 100%; gap: 8px; }
.apl-ai-block .yt-msg.ai.apl-bubble { align-self: flex-start; max-width: 82%; }
.apl-bubble.hidden { display: none !important; }
.apl-bubble strong { color: var(--apl-text); font-weight: 600; }
.apl-typing::after { content: "…"; }

.apl-card {
  width: 100%; max-width: 640px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--apl-line); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  color: var(--apl-text); font-size: 13px; line-height: 1.6; text-align: left;
  overflow: hidden;
}
.chat-msg.apl-msg .apl-card { max-width: 100%; }
.apl-card *, .apl-card *::before, .apl-card *::after { box-sizing: border-box; }
.apl-card button { font-family: inherit; }
.apl-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--apl-line); background: linear-gradient(180deg, #fafcff, #fff); }
.apl-card-head b { font-size: 14px; font-weight: 600; }
.apl-card-sub { margin-left: auto; font-size: 12px; color: var(--apl-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.apl-card-ico { width: 22px; height: 22px; border-radius: 6px; background: var(--apl-primary-soft); color: var(--apl-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 700; }
.apl-card-ico.ok { background: #f6ffed; color: var(--apl-green); }
.apl-card-ico.warn { background: #fff7e6; color: var(--apl-orange); }
.apl-card-note { padding: 8px 14px 10px; font-size: 12px; color: var(--apl-sub); border-top: 1px dashed var(--apl-line); }
.apl-sub-title { padding: 10px 14px 4px; font-size: 13px; font-weight: 600; }
.apl-sub-title em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--apl-sub); margin-left: 6px; }

/* 按钮 / 标签 / 快捷 chip */
.apl-btn { height: 30px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--apl-line); background: #fff; color: var(--apl-text); font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.apl-btn:hover:not(:disabled) { border-color: var(--apl-primary); color: var(--apl-primary); }
.apl-btn.primary { background: var(--apl-primary); border-color: var(--apl-primary); color: #fff; }
.apl-btn.primary:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
.apl-btn.ghost { background: #fff; }
.apl-btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.apl-btn.danger { border-color: var(--apl-red); color: var(--apl-red); }
.apl-btn:disabled { opacity: .45; cursor: not-allowed; }
.apl-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 11px; font-weight: 500; line-height: 1; flex: none; }
.apl-tag.best { background: linear-gradient(90deg, #ff7a45, #ff4d4f); color: #fff; }
.apl-tag.related { background: #f0f5ff; color: #2f54eb; }
.apl-tag.lock { background: #f5f5f5; color: #8c8c8c; }
.apl-tag.state { background: var(--apl-primary-soft); color: var(--apl-primary); }
.apl-tag.gray { background: #f5f5f5; color: #8c8c8c; }
.apl-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.apl-chip { padding: 5px 12px; border-radius: 16px; border: 1px solid var(--apl-primary-line); background: #fff; color: var(--apl-primary); font-size: 13px; cursor: pointer; transition: all .15s; font-family: inherit; line-height: 1.4; }
.apl-chip:hover { background: var(--apl-primary-soft); }
.apl-chip.is-primary { background: var(--apl-primary); border-color: var(--apl-primary); color: #fff; }
.apl-link { border: none; background: none; color: var(--apl-primary); cursor: pointer; font-size: 12px; padding: 0; }

/* 思考过程 */
.apl-think { border-radius: 10px; background: #fafafa; box-shadow: none; max-width: 420px; }
.apl-think-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: none; background: none; cursor: pointer; font-size: 13px; color: #595959; text-align: left; }
.apl-think-title { font-weight: 500; }
.apl-think-time { margin-left: auto; font-size: 12px; color: #bfbfbf; }
.apl-think-caret { color: #bfbfbf; transition: transform .2s; transform: rotate(90deg); }
.apl-think.is-collapsed .apl-think-caret { transform: rotate(0); }
.apl-think-ok { width: 16px; height: 16px; border-radius: 50%; background: var(--apl-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.apl-think-ok svg { width: 10px; height: 10px; }
.apl-think-steps { list-style: none; margin: 0; padding: 0 12px 10px 20px; }
.apl-think.is-collapsed .apl-think-steps { display: none; }
.apl-think-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8c8c8c; padding: 2px 0; }
.apl-think-steps li.done { color: #595959; }
.apl-think-steps li.done .apl-dot { background: var(--apl-green); }
.apl-think-steps li.running .apl-dot { background: var(--apl-primary); animation: aplPulse 1s infinite; }
.apl-dot { width: 6px; height: 6px; border-radius: 50%; background: #d9d9d9; flex: none; }
.apl-spin { width: 14px; height: 14px; border: 2px solid var(--apl-primary-line); border-top-color: var(--apl-primary); border-radius: 50%; animation: aplSpin .8s linear infinite; flex: none; }
@keyframes aplSpin { to { transform: rotate(360deg); } }
@keyframes aplPulse { 50% { opacity: .3; } }

/* 推荐卡片 */
.apl-rec-list { padding: 6px 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.apl-rec-item { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--apl-line); border-radius: 10px; background: #fff; transition: all .15s; }
.apl-rec-item:hover { border-color: var(--apl-primary-line); box-shadow: 0 2px 8px rgba(22, 119, 255, .08); }
.apl-rec-item.is-best { border-color: var(--apl-primary-line); background: linear-gradient(180deg, var(--apl-primary-soft), #fff 70%); }
.apl-rec-item.is-locked { background: #fafafa; }
.apl-rec-item.is-locked .apl-rec-title b, .apl-rec-item.is-locked .apl-rec-desc { color: #8c8c8c; }
.apl-rec-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.apl-rec-icon.sm { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
.apl-rec-main { flex: 1; min-width: 0; }
.apl-rec-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.apl-rec-title b { font-size: 14px; }
.apl-rec-pct { margin-left: auto; font-size: 12px; color: var(--apl-primary); font-weight: 500; }
.apl-rec-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--apl-sub); margin-top: 2px; }
.apl-rec-meta i { font-style: normal; color: #d9d9d9; }
.apl-rec-desc { margin-top: 4px; color: #595959; font-size: 12.5px; }
.apl-rec-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 6px; }
.apl-rec-nodes em { font-style: normal; font-size: 12px; color: var(--apl-sub); margin-right: 6px; }
.apl-node { padding: 1px 8px; border-radius: 4px; background: #f5f5f5; font-size: 12px; color: #595959; }
.apl-node.is-cond { background: #fffbe6; color: #ad6800; border: 1px dashed #ffe58f; }
.apl-arrow { font-style: normal; color: #bfbfbf; margin: 0 1px; }
.apl-rec-hit { margin-top: 5px; font-size: 12px; color: var(--apl-sub); }
.apl-rec-hit span { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #f6ffed; color: #389e0d; }
.apl-rec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.apl-rec-form { font-size: 12px; color: var(--apl-sub); }

/* 分类 / 无匹配 / 无权限 */
.apl-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.apl-cat-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--apl-line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; transition: all .15s; }
.apl-cat-item:hover { border-color: var(--apl-primary); background: var(--apl-primary-soft); }
.apl-cat-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.apl-cat-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.apl-cat-txt b { font-size: 13px; color: var(--apl-text); }
.apl-cat-txt em { font-style: normal; font-size: 11.5px; color: var(--apl-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apl-cat-num { font-size: 12px; color: #bfbfbf; }
.apl-nomatch-body { padding: 10px 14px 0; }
.apl-nomatch-body p { margin: 0 0 4px; }
.apl-nomatch-body ul { margin: 0; padding-left: 18px; color: #595959; }
.apl-cat-mini { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.apl-nomatch-foot, .apl-perm-foot { display: flex; gap: 8px; padding: 10px 14px 12px; }
.apl-admin { margin: 0 14px 12px; padding: 8px 10px; border-radius: 8px; background: #fafafa; }
.apl-admin-row { display: flex; flex-direction: column; font-size: 12px; color: #595959; }
.apl-perm-body { padding: 10px 14px 0; }
.apl-perm-body p { margin: 0 0 8px; color: #595959; }
.apl-kv { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; }
.apl-kv span { width: 76px; flex: none; color: var(--apl-sub); }
.apl-kv b { font-weight: 500; flex: 1; min-width: 0; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2px; }

/* 表单卡片 */
.apl-form-head .apl-tag.state { margin-left: 2px; }
.apl-applicant { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 14px; background: #fafafa; font-size: 12px; color: var(--apl-sub); border-bottom: 1px solid var(--apl-line); }
.apl-applicant b { color: var(--apl-text); font-weight: 500; margin-left: 2px; }
.apl-legend { display: flex; gap: 12px; padding: 6px 14px 0; font-size: 11.5px; color: var(--apl-sub); }
.apl-legend .lg::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -0.5px; }
.apl-legend .rec::before { background: var(--apl-green); }
.apl-legend .miss::before { background: var(--apl-red); }
.apl-legend .warn::before { background: var(--apl-orange); }
.apl-banner { margin: 8px 14px 0; padding: 6px 10px; border-radius: 6px; background: #fffbe6; border: 1px solid #ffe58f; color: #ad6800; font-size: 12px; }
.apl-form-body { display: grid; grid-template-columns: 1fr; gap: 2px 14px; padding: 8px 14px 4px; }
.apl-group .apl-form-body { grid-template-columns: 1fr 1fr; }
.apl-f-group { grid-column: 1 / -1; margin-top: 6px; padding: 4px 0 2px; font-size: 12px; font-weight: 600; color: var(--apl-primary); border-bottom: 1px dashed var(--apl-line); }
.apl-f { padding: 6px 8px 4px; border-radius: 8px; border: 1px solid transparent; transition: background .3s, border-color .3s; min-width: 0; }
.apl-f.span2 { grid-column: 1 / -1; }
.apl-f.hidden { display: none; }
.apl-f-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: #595959; margin-bottom: 4px; }
.apl-f-label .req { color: var(--apl-red); font-style: normal; margin-right: 2px; }
.apl-f-tags { display: inline-flex; gap: 4px; margin-left: auto; }
.apl-ftag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 17px; font-style: normal; }
.apl-ftag.rec { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.apl-ftag.miss { background: #fff1f0; color: var(--apl-red); border: 1px solid #ffccc7; }
.apl-ftag.auto { background: #f0f5ff; color: #2f54eb; border: 1px solid #adc6ff; }
.apl-ftag.warn { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }
.apl-f input[type=text], .apl-f input[type=date], .apl-f input[type=time], .apl-f select, .apl-f textarea {
  width: 100%; height: 32px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-size: 13px; color: var(--apl-text); outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.apl-f textarea { height: auto; min-height: 56px; padding: 6px 10px; resize: vertical; line-height: 1.5; }
.apl-f input:focus, .apl-f select:focus, .apl-f textarea:focus { border-color: var(--apl-primary); box-shadow: 0 0 0 2px var(--apl-primary-soft); }
.apl-f input:disabled, .apl-f select:disabled, .apl-f textarea:disabled { background: #fafafa; color: #595959; cursor: not-allowed; }
.apl-affix { display: flex; align-items: center; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; padding: 0 8px; height: 32px; }
.apl-affix:focus-within { border-color: var(--apl-primary); box-shadow: 0 0 0 2px var(--apl-primary-soft); }
.apl-affix input { border: none !important; box-shadow: none !important; height: 28px !important; padding: 0 4px !important; flex: 1; min-width: 0; }
.apl-affix i { font-style: normal; color: var(--apl-sub); font-size: 12px; }
.apl-pair { display: flex; gap: 8px; }
.apl-pair > * { flex: 1; min-width: 0; }
.apl-computed { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #f5f7fa; font-weight: 600; color: var(--apl-text); }
.apl-computed.is-empty { color: #bfbfbf; font-weight: 400; }
.apl-f-hint { font-size: 11.5px; color: #a6a6a6; margin-top: 3px; }
.apl-f-hint.hidden { display: none; }
.apl-msg-line { font-size: 12px; margin-top: 3px; }
.apl-msg-line.warn { color: #d46b08; }
.apl-msg-line.error { color: var(--apl-red); }
.apl-msg-line.ok { color: #389e0d; }
.apl-msg-line.info { color: #1677ff; }
.apl-f.is-recognized { background: #f6ffed; border-color: #d9f7be; }
.apl-f.is-missing { background: #fff2f0; border-color: #ffccc7; }
.apl-f.is-missing input, .apl-f.is-missing select, .apl-f.is-missing textarea, .apl-f.is-missing .apl-affix { border-color: #ffa39e; }
.apl-f.is-warn { background: #fffaf0; border-color: #ffe7ba; }
.apl-f.is-warn input, .apl-f.is-warn .apl-affix { border-color: #ffbb66; }
.apl-f.is-error { background: #fff2f0; border-color: #ffccc7; }
.apl-f.is-error input, .apl-f.is-error .apl-affix { border-color: var(--apl-red); }
.apl-f.is-flash { animation: aplFlash 1.4s ease-out; }
@keyframes aplFlash { 0% { box-shadow: 0 0 0 3px rgba(22, 119, 255, .45); background: #e6f4ff; } 100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0); } }
.apl-card.is-pulse { animation: aplCardPulse 1.2s ease-out; }
@keyframes aplCardPulse { 0% { box-shadow: 0 0 0 4px rgba(22, 119, 255, .35); } 100% { box-shadow: 0 0 0 0 transparent; } }
.apl-files { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.apl-file { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: #fafafa; border: 1px solid var(--apl-line); font-size: 12px; }
.apl-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apl-file em { font-style: normal; color: var(--apl-sub); }
.apl-file button { border: none; background: none; cursor: pointer; color: #bfbfbf; font-size: 16px; line-height: 1; }
.apl-file button:hover { color: var(--apl-red); }
.apl-file-empty { font-size: 12px; color: #bfbfbf; padding: 4px 2px; }
.apl-form-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--apl-line); background: #fafafa; flex-wrap: wrap; }
.apl-progress { flex: 1; min-width: 160px; }
.apl-progress-bar { height: 4px; border-radius: 2px; background: #e8e8e8; overflow: hidden; }
.apl-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #69b1ff, var(--apl-primary)); transition: width .3s; }
.apl-progress-txt { display: block; margin-top: 4px; font-size: 12px; color: var(--apl-sub); }
.apl-progress-txt .ok { color: #389e0d; }
.apl-progress-txt .err { color: var(--apl-red); }
.apl-progress-txt b { color: var(--apl-red); }
.apl-form-actions { display: flex; gap: 8px; }
.apl-form-actions.hidden { display: none; }
.apl-form.is-readonly { opacity: .86; }
.apl-form.is-readonly .apl-f.is-missing { background: none; border-color: transparent; }

/* 变更提示 */
.apl-delta { border-radius: 10px; background: #f6ffed; border-color: #d9f7be; box-shadow: none; max-width: 520px; }
.apl-delta-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.apl-delta-head b { font-size: 13px; }
.apl-delta-head .apl-link { margin-left: auto; }
.apl-delta-rows { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 12px 8px 38px; font-size: 12.5px; }
.apl-delta-rows em { font-style: normal; color: var(--apl-sub); margin-right: 6px; }

/* 确认卡片 */
.apl-sum { padding: 4px 14px 8px; }
.apl-sum-group { margin-top: 8px; padding-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--apl-primary); border-bottom: 1px dashed var(--apl-line); }
.apl-sum-row { display: flex; gap: 12px; padding: 4px 0; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.apl-sum-row span { width: 100px; flex: none; color: var(--apl-sub); }
.apl-sum-row b { flex: 1; min-width: 0; font-weight: 500; word-break: break-all; }
.apl-sum-row.is-warn b { color: #d46b08; }
.apl-warnbox { margin: 4px 14px 6px; padding: 8px 12px; border-radius: 8px; background: #fffbe6; border: 1px solid #ffe58f; font-size: 12.5px; color: #8c6d00; }
.apl-warnbox ul { margin: 4px 0 0; padding-left: 18px; }
.apl-timeline { list-style: none; margin: 0; padding: 4px 14px 10px 22px; position: relative; }
.apl-timeline li { position: relative; padding: 0 0 10px 18px; display: block; }
.apl-timeline li::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -2px; width: 1px; background: #e0e0e0; }
.apl-timeline li:last-child::before { display: none; }
.apl-tl-dot { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #d9d9d9; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9d9d9; }
.apl-timeline li.done .apl-tl-dot { background: var(--apl-green); box-shadow: 0 0 0 1px var(--apl-green); }
.apl-timeline li.doing .apl-tl-dot { background: var(--apl-primary); box-shadow: 0 0 0 3px var(--apl-primary-line); }
.apl-timeline li > div b { font-size: 13px; font-weight: 500; margin-right: 8px; }
.apl-timeline li > div em { font-style: normal; font-size: 12px; color: var(--apl-sub); }
.apl-confirm-foot { padding: 10px 14px 12px; border-top: 1px solid var(--apl-line); background: #fafafa; }
.apl-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.apl-confirm-status { font-size: 12px; color: var(--apl-sub); margin-top: 6px; }
.apl-confirm-status:empty { display: none; }
.apl-confirm.status-submitted .apl-confirm-actions button,
.apl-confirm.status-draft .apl-confirm-actions button,
.apl-confirm.status-outdated .apl-confirm-actions button { opacity: .4; pointer-events: none; }
.apl-confirm.status-submitted .apl-confirm-status { color: #389e0d; }
.apl-confirm.status-outdated { opacity: .75; }

/* 成功 / 草稿 */
.apl-success-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.apl-success-head b { display: block; font-size: 15px; }
.apl-success-head em { font-style: normal; font-size: 12px; color: var(--apl-sub); }
.apl-success-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--apl-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.apl-success-ico svg { width: 18px; height: 18px; }
.apl-success-ico.draft { background: var(--apl-orange); }
.apl-success.is-withdrawn .apl-success-ico { background: #bfbfbf; }
.apl-success { border-color: #d9f7be; }
.apl-draft { border-color: #ffe7ba; }
.apl-kvs { padding: 6px 14px 4px; }
.apl-success-actions { display: flex; gap: 8px; padding: 8px 14px 12px; flex-wrap: wrap; }
.apl-dl { padding: 4px 12px 10px; }
.apl-dl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; }
.apl-dl-row b { display: block; font-size: 13px; font-weight: 500; }
.apl-dl-row em { font-style: normal; font-size: 12px; color: var(--apl-sub); }
.apl-dl-acts { display: flex; gap: 6px; }
.apl-empty { padding: 28px 10px; text-align: center; color: var(--apl-sub); }

/* 弹层 */
.apl-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; --apl-primary: #1677ff; --apl-primary-soft: #e6f4ff; --apl-primary-line: #bae0ff; --apl-red: #ff4d4f; --apl-orange: #fa8c16; --apl-green: #52c41a; --apl-text: #262626; --apl-sub: #8c8c8c; --apl-line: #ececec; font-size: 13px; color: var(--apl-text); }
.apl-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.apl-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 20px 22px; width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 16px 48px rgba(0, 0, 0, .18); }
.apl-modal-md .apl-modal-box { width: 760px; }
.apl-modal-box h3 { margin: 0 0 10px; font-size: 16px; }
.apl-modal-box h3 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--apl-sub); margin-left: 8px; }
.apl-modal-close { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border: none; background: none; font-size: 22px; color: #8c8c8c; cursor: pointer; }
.apl-modal-sub { color: #595959; margin-bottom: 10px; }
.apl-modal-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.apl-modal .apl-sub-title, .apl-modal .apl-sum, .apl-modal .apl-timeline { padding-left: 0; padding-right: 0; }
.apl-modal .apl-timeline { padding-left: 8px; }
.apl-toast { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 3100; padding: 8px 16px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; }
.apl-toast.hidden { display: none; }
.hidden.apl-quick { display: none; }

/* 云台 PC 欢迎页：办事找流程入口 */
.apl-yt-entry { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px auto 0; max-width: 760px; justify-content: center; }
.apl-yt-entry button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid #ffe0e0; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; transition: all .15s; }
.apl-yt-entry button:hover { border-color: #e60012; box-shadow: 0 2px 10px rgba(230, 0, 18, .12); }
.apl-yt-entry .ico { width: 34px; height: 34px; border-radius: 9px; background: #fff1f0; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.apl-yt-entry b { display: block; font-size: 14px; color: #262626; font-weight: 600; }
.apl-yt-entry em { display: block; font-style: normal; font-size: 12px; color: #8c8c8c; }

@media (max-width: 560px) {
  .apl-group .apl-form-body, .apl-cat-grid, .apl-modal-cols { grid-template-columns: 1fr; }
}

/* ================= 预填来源：身份带入 / 历史带入 / 待确认 ================= */
.apl-ftag.idn { background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; }
.apl-ftag.his { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.apl-ftag.sug { background: #fffbe6; color: #ad6800; border: 1px dashed #faad14; font-weight: 600; }
.apl-legend .lg.idn::before { background: #1677ff; }
.apl-legend .lg.his::before { background: #722ed1; }
.apl-legend .lg.sug::before { background: #faad14; }
.apl-f.is-idn { background: #f0f7ff; border-color: #d6e8ff; }
.apl-f.is-his { background: #faf5ff; border-color: #ecdcfb; }
.apl-f.is-suggest { background: #fffdf0; border: 1px dashed #faad14; }
.apl-f-sug:empty { display: none; }
.apl-f-sug { margin-top: 6px; }
.apl-sug-head { font-size: 12px; color: #ad6800; margin-bottom: 4px; }
.apl-sug-chips, .apl-pend-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.apl-sugchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 14px; border: 1px solid #faad14; background: #fff; color: #874d00; font-size: 12.5px; line-height: 20px; cursor: pointer; text-align: left; font-family: inherit; }
.apl-sugchip i { font-style: normal; font-size: 11px; color: #bfa36a; }
.apl-sugchip:hover { background: #fff7e0; }
.apl-sugchip.ghost { border-color: #d9d9d9; color: #8c8c8c; }
.apl-sugchip.ghost:hover { background: #f5f5f5; }

/* 确认单：按来源分组 + 待确认区 */
.apl-src-group { display: flex; align-items: baseline; gap: 6px; margin: 10px 14px 0; padding-bottom: 4px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--apl-line); }
.apl-src-group .dot { width: 8px; height: 8px; border-radius: 2px; background: #8c8c8c; align-self: center; }
.apl-src-group em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--apl-sub); text-align: right; }
.apl-src-group.is-idn { color: #0958d9; } .apl-src-group.is-idn .dot { background: #1677ff; }
.apl-src-group.is-his { color: #722ed1; } .apl-src-group.is-his .dot { background: #722ed1; }
.apl-src-group.is-user { color: #262626; } .apl-src-group.is-user .dot { background: #52c41a; }
.apl-sum-src { padding-top: 2px; }
.apl-sum-row.is-empty b { color: #bfbfbf; font-weight: 400; }
.apl-sum-ref { display: block; font-style: normal; font-size: 11px; color: #b37feb; font-weight: 400; }
.apl-pendbox { margin: 10px 14px 0; padding: 10px 12px; border: 1px dashed #faad14; border-radius: 8px; background: #fffbe6; }
.apl-pend-title { font-size: 13px; font-weight: 600; color: #ad6800; }
.apl-pend-title em { font-style: normal; font-weight: 400; font-size: 12px; margin-left: 6px; color: #d48806; }
.apl-pend-row { margin-top: 8px; }
.apl-pend-label { font-size: 12.5px; color: #595959; margin-bottom: 4px; }
.apl-pend-label .req { color: var(--apl-red); font-style: normal; margin-right: 2px; }
.apl-pend-note { margin-top: 8px; font-size: 11.5px; color: #8c8c8c; }
.apl-confirm:has(.apl-pendbox) .apl-confirm-status { color: #d46b08; }

/* 发起 / 草稿后的链接 */
.apl-linkbox { margin: 6px 14px 2px; padding: 8px 10px; border: 1px solid var(--apl-primary-line); border-radius: 8px; background: var(--apl-primary-soft); }
.apl-linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apl-link { color: var(--apl-primary); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.apl-link-url { margin-top: 4px; font-size: 11px; color: #8c8c8c; word-break: break-all; font-family: ui-monospace, Menlo, monospace; }

/* 流程详情页（沿用 OA 审批详情页版式） */
.apl-pp { position: fixed; inset: 0; z-index: 2900; background: #f0f2f5; overflow: auto; color: #262626; font-size: 13px; --apl-primary: #1677ff; --apl-primary-soft: #e6f4ff; --apl-primary-line: #bae0ff; --apl-red: #ff4d4f; --apl-green: #52c41a; --apl-sub: #8c8c8c; --apl-line: #ececec; --apl-text: #262626; --apl-orange: #fa8c16; }
.apl-pp *, .apl-pp *::before { box-sizing: border-box; }
.apl-pp-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 24px; color: #fff; background: linear-gradient(100deg, #1e6fd9 0%, #4aa3f0 55%, #8fcbff 100%); }
.apl-pp-logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.apl-pp-logo b { font-size: 18px; letter-spacing: 1px; }
.apl-pp-logo span { font-size: 14px; opacity: .92; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .55); }
.apl-pp-r { font-size: 15px; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apl-pp-body { max-width: 1040px; margin: 0 auto; padding: 14px 16px 40px; }
.apl-pp-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.apl-pp-btn { height: 30px; padding: 0 14px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; font-size: 13px; cursor: pointer; font-family: inherit; color: #262626; }
.apl-pp-btn:hover { border-color: var(--apl-primary); color: var(--apl-primary); }
.apl-pp-card { background: #fff; border: 1px solid #e0e6ee; border-radius: 4px; padding-bottom: 16px; }
.apl-pp-sec { margin: 0 0 0; padding: 8px 14px; font-weight: 600; font-size: 14px; color: #fff; background: #3b82d8; }
.apl-pp-card .apl-pp-sec:not(:first-child) { margin-top: 14px; }
.apl-pp-title { margin: 18px 0 8px; text-align: center; color: #d9363e; font-size: 22px; font-weight: 700; }
.apl-pp-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 16px 10px; font-size: 13px; color: #595959; }
.apl-pp-stage { font-style: normal; display: inline-block; padding: 1px 10px; border-radius: 3px; background: #1677ff; color: #fff; font-size: 12px; }
.apl-pp-stage.gray { background: #8c8c8c; }
.apl-pp-grid { display: grid; grid-template-columns: 150px 1fr 150px 1fr; margin: 0 14px; border-top: 1px solid #dfe5ee; border-left: 1px solid #dfe5ee; }
.apl-pp-grid > div { padding: 8px 10px; border-right: 1px solid #dfe5ee; border-bottom: 1px solid #dfe5ee; word-break: break-all; line-height: 1.55; }
.apl-pp-k { background: #f3f7fc; color: #595959; text-align: right; }
.apl-pp-v .apl-ftag { margin-left: 6px; }
.apl-pp-tablewrap { margin: 0 14px; overflow-x: auto; }
.apl-pp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.apl-pp-table th, .apl-pp-table td { border: 1px solid #dfe5ee; padding: 7px 10px; text-align: left; white-space: nowrap; }
.apl-pp-table th { background: #f3f7fc; font-weight: 600; }
.apl-pp-tag { display: inline-block; padding: 0 8px; border-radius: 3px; background: #f5f5f5; color: #8c8c8c; font-size: 12px; }
.apl-pp-tag.doing { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }
.apl-pp-empty { padding: 60px 20px; text-align: center; color: #8c8c8c; }
.apl-modal-top { z-index: 3000; }
.apl-modal .mono, .apl-pp .mono { font-family: ui-monospace, Menlo, monospace; }

/* ================= 云台手机端（host=m）================= */
.apl-host-m { align-self: stretch; width: 100%; display: flex; flex-direction: column; gap: 8px; --apl-primary: #e60012; --apl-primary-soft: #fff1f0; --apl-primary-line: #ffccc7; }
.apl-host-m .yxk-ai-block.apl-ai-block { max-width: 100%; width: 100%; gap: 8px; }
.apl-host-m .yxk-bubble.ai.apl-bubble { align-self: flex-start; max-width: 92%; }
.apl-host-m .apl-card { max-width: 100%; font-size: 12.5px; }
.apl-host-m .apl-form-body, .apl-host-m .apl-cat-grid { grid-template-columns: 1fr; }
.apl-host-m .apl-quick { gap: 6px; }
.apl-host-m .apl-sum-row span { width: 84px; }
.apl-host-m .apl-card-sub { max-width: 46%; }
.apl-host-m .apl-form-actions, .apl-host-m .apl-confirm-actions, .apl-host-m .apl-success-actions { flex-wrap: wrap; }
.apl-host-m .apl-applicant { gap: 2px 12px; }
.apl-host-m .apl-pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
  .apl-pp-banner { height: 52px; padding: 0 12px; }
  .apl-pp-logo b { font-size: 15px; } .apl-pp-logo span { font-size: 12px; }
  .apl-pp-r { font-size: 12px; max-width: 46%; }
  .apl-pp-body { padding: 10px 8px 30px; }
  .apl-pp-grid { grid-template-columns: 96px 1fr; margin: 0 8px; }
  .apl-pp-tablewrap { margin: 0 8px; }
  .apl-pp-title { font-size: 18px; }
  .apl-modal-box { padding: 16px 14px; max-height: calc(100vh - 32px); }
}

/* 独立详情页 / 草稿操作 */
.apl-pp.is-page { position: static; inset: auto; min-height: 100vh; z-index: auto; }
.apl-pp-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.apl-pp-btn.primary:hover { filter: brightness(1.08); color: #fff; }
.apl-pp-btn.danger { color: #ff4d4f; border-color: #ffa39e; }
.apl-pp-btn.danger:hover { background: #fff1f0; color: #ff4d4f; border-color: #ff4d4f; }
.apl-pp-note { margin: 0 14px; padding: 12px; background: #fafafa; border: 1px dashed #d9d9d9; border-radius: 4px; color: #8c8c8c; }
.apl-pp-stage.draft { background: #fa8c16; }
.apl-pp-v.is-pending { color: #ad6800; background: #fffdf0; }
.apl-pp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.apl-pp-empty .ico { font-size: 40px; }
.apl-pp-empty b { color: #262626; font-size: 15px; }
.apl-pp-empty p { margin: 0 0 8px; max-width: 420px; line-height: 1.6; }
.apl-a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.apl-h3-sub { margin: 14px 0 8px !important; font-size: 14px !important; }
.apl-h3-sub em { font-style: normal; font-weight: 400; font-size: 12px; color: #8c8c8c; margin-left: 6px; }
.apl-pp .apl-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; text-decoration: none; display: inline-flex; align-items: center; height: 32px; }

.apl-legend .lg { white-space: nowrap; }

/* 对话起草：只读汇总表单卡 */
.apl-form.is-summary .apl-form-summary { padding: 4px 14px 8px; }
.apl-form.is-summary .apl-sum-row { align-items: flex-start; }
.apl-form.is-summary .apl-sum-row .req { color: var(--apl-red); font-style: normal; margin-right: 2px; }
.apl-form.is-summary .apl-sum-row.src-sug { background: #fffbe6; }
.apl-form.is-summary .apl-sum-row.src-miss { background: #fff7f6; }
.apl-form.is-summary .apl-sum-row.is-flash { animation: aplFlash .9s ease; }
.apl-banner-tip { background: #e6f4ff; color: #0958d9; border-bottom: 1px solid #bae0ff; }
.apl-form-detail { border-top: 1px dashed var(--apl-line); }
.apl-form-detail.hidden { display: none; }
.apl-f-ro { display: flex; gap: 10px; padding: 6px 14px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.apl-f-ro span { width: 110px; flex: none; color: var(--apl-sub); }
.apl-f-ro b { flex: 1; font-weight: 500; word-break: break-all; }
.apl-ftag.empty { background: #f5f5f5; color: #8c8c8c; border: 1px solid #e8e8e8; }
@keyframes aplFlash { 0% { background: #fff7e6; } 100% { background: transparent; } }

/* 第三屏内嵌流程表单 / 详情（OA 侧栏、云台扩展屏） */
.apl-tp-body { padding: 0 !important; overflow-x: auto !important; overflow-y: auto !important; height: 100%; background: #f0f2f5; -webkit-overflow-scrolling: touch; }
.apl-pp.in-panel { position: static; inset: auto; z-index: auto; min-height: 0; min-width: 500px; width: 100%; box-sizing: border-box; background: #f0f2f5; }
.apl-pp.in-panel .apl-pp-banner { height: 48px; padding: 0 14px; position: sticky; top: 0; left: 0; z-index: 2; min-width: 500px; }
.apl-pp.in-panel .apl-pp-logo b { font-size: 15px; }
.apl-pp.in-panel .apl-pp-logo span { font-size: 12px; }
.apl-pp.in-panel .apl-pp-r { font-size: 13px; max-width: 48%; }
.apl-pp.in-panel .apl-pp-body { max-width: none; min-width: 500px; width: 100%; padding: 10px 10px 24px; box-sizing: border-box; }
.apl-pp.in-panel .apl-pp-grid { grid-template-columns: 110px 1fr; margin: 0 8px; }
.apl-pp.in-panel .apl-pp-title { font-size: 18px; margin: 12px 0 6px; }
.apl-pp.in-panel .apl-pp-tablewrap { margin: 0 8px; }
.apl-pp.in-panel .apl-pp-tools { gap: 6px; }
.apl-pp.in-panel .apl-pp-btn { height: 28px; padding: 0 10px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; }
.third-panel.tp-open[data-mode="process"] { display: flex; flex-direction: column; }
.third-panel.tp-open[data-mode="process"] .tp-body.apl-tp-body { flex: 1; min-height: 0; }

.third-panel.tp-open[data-mode="process"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.yt-third-panel.tp-open[data-mode="process"] .tp-header {
  flex-shrink: 0;
}
.yt-body.yxk-collapsed.with-third .yt-main {
  min-width: 0;
}



/* 第三屏顶栏：在浏览器打开 */
.tp-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tp-browser-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #595959;
  font-size: 12px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.tp-browser-open:hover {
  border-color: #91caff;
  color: #1677ff;
  background: #f0f7ff;
}
.tp-browser-open svg { flex-shrink: 0; }


/* —— 精简推荐卡：名称 + 短描述 + 选择 —— */
.apl-rec-compact .apl-card-head.apl-rec-head { padding: 8px 10px; }
.apl-rec-compact .apl-rec-list { padding: 4px 8px 8px; gap: 6px; }
.apl-rec-compact .apl-rec-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
}
.apl-rec-compact .apl-rec-icon,
.apl-rec-compact .apl-rec-meta,
.apl-rec-compact .apl-rec-nodes,
.apl-rec-compact .apl-rec-hit,
.apl-rec-compact .apl-rec-form,
.apl-rec-compact .apl-rec-foot,
.apl-rec-compact .apl-rec-pct,
.apl-rec-compact .apl-card-note { display: none !important; }
.apl-rec-compact .apl-rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.apl-rec-compact .apl-rec-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.apl-rec-compact .apl-rec-title b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.apl-rec-compact .apl-rec-desc {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0; font-size: 12px; color: #8c8c8c; line-height: 1.35;
}
.apl-rec-compact .apl-btn.sm { height: 28px; padding: 0 12px; font-size: 12px; flex: none; border-radius: 6px; }

/* —— 对话内精简表单卡（完整字段在第三屏） —— */
.apl-form.is-compact .apl-applicant,
.apl-form.is-compact .apl-legend,
.apl-form.is-compact .apl-banner-tip,
.apl-form.is-compact .apl-form-summary,
.apl-form.is-compact .apl-form-detail { display: none !important; }
.apl-form-brief { padding: 10px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.apl-form.is-compact .apl-form-brief .apl-progress { flex: none; width: 100%; }
.apl-form-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.apl-hint-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  height: 24px; padding: 0 10px; border-radius: 12px;
  font-size: 12px; background: #f5f5f5; color: #595959;
  border: 1px solid #f0f0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apl-hint-chip.miss { background: #fff2f0; color: #cf1322; border-color: #ffccc7; }
.apl-hint-chip.sug { background: #fffbe6; color: #d48806; border-color: #ffe58f; }
.apl-hint-chip.ok { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.apl-hint-chip.more { background: #fafafa; color: #8c8c8c; }
.apl-form.is-compact .apl-form-foot { border-top: none; padding-top: 6px; background: transparent; }
.apl-form.is-compact .apl-form-actions { margin-left: auto; }


/* —— 第三屏可编辑表单 —— */
.apl-pp-fields { margin: 0 8px 12px; display: flex; flex-direction: column; gap: 10px; }
.apl-pp-field { padding: 10px 12px; border: 1px solid #e8eef5; border-radius: 8px; background: #fff; }
.apl-pp-field.is-miss { border-color: #ffccc7; background: #fffafa; }
.apl-pp-field.is-pending { border-color: #ffe58f; background: #fffdf5; }
.apl-pp-flab { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #595959; margin-bottom: 6px; }
.apl-pp-flab .req { color: #ff4d4f; font-style: normal; margin-right: 2px; }
.apl-pp-fctrl input,
.apl-pp-fctrl select,
.apl-pp-fctrl textarea {
  width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px;
  border: 1px solid #d9d9d9; border-radius: 6px; font: inherit; font-size: 13px; color: #262626; background: #fff;
}
.apl-pp-fctrl textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; }
.apl-pp-fctrl input:focus,
.apl-pp-fctrl select:focus,
.apl-pp-fctrl textarea:focus { outline: none; border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.12); }
.apl-pp-fctrl .apl-pair { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 8px; }
.apl-pp-fctrl .apl-affix { display: flex; align-items: center; border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; background: #fff; }
.apl-pp-fctrl .apl-affix input { border: none !important; box-shadow: none !important; height: 30px !important; }
.apl-pp-fctrl .apl-affix .pre,
.apl-pp-fctrl .apl-affix .suf { padding: 0 8px; color: #8c8c8c; font-size: 12px; background: #fafafa; }
.apl-pp-fctrl .apl-computed { min-height: 32px; line-height: 32px; padding: 0 10px; border-radius: 6px; background: #f5f5f5; color: #595959; font-size: 13px; }
.apl-pp-fctrl .is-invalid { border-color: #ff4d4f !important; }
.apl-pp-fhint { margin-top: 4px; font-size: 11px; color: #8c8c8c; line-height: 1.4; }
.apl-pp-fctrl .apl-sug-head { margin-top: 6px; font-size: 11px; color: #ad6800; }
.apl-pp-fctrl .apl-sug-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.apl-pp-edit-tip { margin-left: 8px; font-size: 12px; color: #1677ff; align-self: center; }
.apl-pp.in-panel .apl-pp-fields { margin: 0 4px 10px; }




/* —— 提交办理区（对齐 OA 审批详情） —— */
.apl-pp-submit-h { background: #e6f1fc !important; color: #1b3f73 !important; }
.apl-submit-panel { margin: 0 0 8px; border: 1px solid #e3e9f1; border-top: none; }
.apl-sub-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; }
.apl-sub-col { border-right: 1px solid #e3e9f1; min-height: 130px; }
.apl-sub-col:last-child { border-right: none; }
.apl-sub-h { text-align: center; padding: 9px; font-size: 13px; font-weight: 600; color: #1b3f73; background: #e6f1fc; border-bottom: 1px solid #d3e3f6; }
.apl-sub-b { padding: 14px 12px; font-size: 13px; }
.apl-radio { display: flex; align-items: center; gap: 6px; margin: 0 10px 10px 0; cursor: pointer; color: #262626; font-size: 13px; }
.apl-phrases { display: flex; flex-wrap: wrap; }
.apl-opinion { width: 100%; margin: 4px 0 0; box-sizing: border-box; min-height: 64px; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font: inherit; font-size: 13px; resize: vertical; }
.apl-add-mine { text-align: right; margin-top: 8px; font-size: 12px; }
.apl-add-mine a { color: #1677ff; text-decoration: none; }
.apl-person { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #5b9bdc; border-radius: 4px; background: #f4f9ff; }
.apl-person-av { width: 30px; height: 30px; border-radius: 50%; background: #1677c8; color: #fff; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.apl-person b { display: block; font-size: 13px; font-weight: 500; }
.apl-person em { display: block; font-style: normal; font-size: 12px; color: #8c8c8c; }
.apl-sub-foot { border-top: 1px solid #e3e9f1; padding: 14px; display: flex; justify-content: center; gap: 12px; }
.apl-submit-btn { min-width: 120px !important; height: 34px !important; border-radius: 3px !important; background: #1677c8 !important; border-color: #1677c8 !important; color: #fff !important; font-size: 14px !important; }
.apl-pp.in-panel .apl-sub-grid { grid-template-columns: 1fr; }
.apl-pp.in-panel .apl-sub-col { border-right: none; border-bottom: 1px solid #e3e9f1; min-height: 0; }
.apl-pp.in-panel .apl-sub-col:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .apl-sub-grid { grid-template-columns: 1fr; }
  .apl-sub-col { border-right: none; border-bottom: 1px solid #e3e9f1; }
  .apl-sub-col:last-child { border-bottom: none; }
}


/* 提交成功：短链行（无大卡片） */
.apl-submit-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 2px 0 4px; font-size: 13px; color: #595959;
}
.apl-submit-links .apl-sep { color: #d9d9d9; }
.apl-submit-links .apl-link { color: #1677ff; text-decoration: none; font-weight: 500; }
.apl-submit-links .apl-link:hover { text-decoration: underline; }
.apl-submit-links .apl-linkbtn {
  border: none; background: none; padding: 0; margin: 0;
  color: #1677ff; font: inherit; font-size: 13px; cursor: pointer;
}
.apl-submit-links .apl-linkbtn:hover { text-decoration: underline; }
.apl-submit-links-lab { color: #8c8c8c; margin-right: 4px; }
.apl-submit-links.is-withdrawn .apl-link { color: #8c8c8c; }

/* real file picker */
.apl-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; z-index: -1; }

/* 「找流程」结果：展示真实 OA 起草 URL */
.apl-rec-item.is-linkonly { flex-direction: column; align-items: stretch; gap: 6px; }
.apl-rec-draftlink {
  margin-top: 6px; font-size: 12px; line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px;
}
.apl-rec-url-lab { color: #595959; flex: none; }
.apl-rec-draftlink .apl-link.apl-rec-url {
  color: #1677ff; text-decoration: underline; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.apl-rec-draftlink .apl-link.apl-rec-url:hover { color: #0958d9; }

/* 找流程结果：查看更多 */
.apl-rec-item.is-more-hidden { display: none !important; }
.apl-rec-more-wrap { padding: 2px 8px 10px; display: flex; justify-content: center; }
.apl-rec-more {
  appearance: none; border: 1px dashed var(--apl-primary-line, #91caff);
  background: var(--apl-primary-soft, #e6f4ff); color: var(--apl-primary, #1677ff);
  border-radius: 16px; height: 30px; padding: 0 14px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.apl-rec-more:hover { background: #bae0ff; border-color: var(--apl-primary, #1677ff); }
