/* app.css — 智能客服 Agent：客户会话页 + 管理后台 */
:root {
  --primary: #2F6BFF;
  --primary-dark: #1F54D6;
  --primary-soft: #EAF1FF;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --line: #E5E8EF;
  --text: #1D2129;
  --text-2: #4E5969;
  --muted: #86909C;
  --green: #16A34A;
  --green-soft: #E8F7EE;
  --orange: #F59E0B;
  --orange-soft: #FEF3E2;
  --red: #F53F3F;
  --red-soft: #FDECEC;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(29, 33, 41, 0.06);
  font-size: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }

/* ============ 客户会话页（公众号落地页） ============ */
.chat-shell {
  max-width: 640px; height: 100vh; height: 100dvh; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg);
}
@media (min-width: 700px) {
  .chat-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.chat-header {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  z-index: 20;
}
.chat-header .bot-avatar {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #2F6BFF, #6FA1FF);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.3);
}
.chat-header .bot-meta { flex: 1; min-width: 0; }
.chat-header .bot-name { font-weight: 600; font-size: 16px; }
.chat-header .bot-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.chat-header .bot-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-header .bot-status.human .dot { background: var(--orange); }
.chat-header .head-actions { display: flex; gap: 8px; }
.chip-btn {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid transparent;
}
.chip-btn.ghost { background: #fff; color: var(--text-2); border-color: var(--line); }
.chip-btn:active { opacity: .8; }

.chat-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 14px 8px; }
.chat-body::-webkit-scrollbar { width: 0; }

.time-anchor { text-align: center; margin: 4px 0 12px; font-size: 12px; color: var(--muted); }

.msg { display: flex; gap: 8px; margin-bottom: 14px; animation: msg-in .25s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .m-avatar {
  width: 34px; height: 34px; border-radius: 8px; flex: none; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff;
}
.msg.bot .m-avatar { background: linear-gradient(135deg, #2F6BFF, #6FA1FF); }
.msg.agent .m-avatar { background: linear-gradient(135deg, #F59E0B, #FBBF6A); }
.msg.user { flex-direction: row-reverse; }
.msg.user .m-avatar { background: #C9CDD4; border-radius: 50%; color: #fff; font-size: 13px; }
.m-col { max-width: 78%; min-width: 0; }
.msg.user .m-col { display: flex; flex-direction: column; align-items: flex-end; }
.bubble {
  padding: 10px 13px; border-radius: 4px 14px 14px 14px; font-size: 15px;
  background: var(--card); box-shadow: var(--shadow); word-break: break-word; white-space: pre-wrap;
}
.msg.user .bubble {
  background: var(--primary); color: #fff; border-radius: 14px 4px 14px 14px;
}
.bubble.typing { color: var(--muted); font-size: 13px; }
.typing-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; margin-right: 8px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.m-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #F2F3F5; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px;
}
.tag.intent { color: #fff; }
.tag.src-llm { background: var(--primary-soft); color: var(--primary-dark); }
.tag.src-faq { background: var(--green-soft); color: #117A38; }
.tag.src-handoff { background: var(--orange-soft); color: #B45309; }
.tag.src-agent { background: var(--orange-soft); color: #B45309; }
.tag.src-rule { background: #F2F3F5; color: var(--text-2); }
.tag.degraded { background: var(--red-soft); color: var(--red); }

.faq-quote {
  margin-top: 6px; border-left: 3px solid var(--primary); background: var(--primary-soft);
  padding: 7px 10px; border-radius: 6px; font-size: 12.5px; color: var(--text-2);
}
.faq-quote b { color: var(--primary-dark); font-weight: 600; }

.notice {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--orange-soft); color: #8A4B08; border: 1px solid #F5DEB4;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 4px 0 14px;
}
.notice .n-ico { flex: none; }
.notice.info { background: var(--primary-soft); color: var(--primary-dark); border-color: #CBDBFF; }

.quick-area { padding: 2px 0 6px; }
.quick-title { font-size: 12px; color: var(--muted); margin: 2px 0 8px; text-align: center; }
.quick-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-q {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  background: var(--card); color: var(--primary-dark); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.quick-q:active { background: var(--primary-soft); }

/* 满意度评价卡 */
.rating-card {
  background: var(--card); border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow);
  margin: 10px 0 16px; text-align: center; animation: msg-in .3s ease;
}
.rating-card h4 { margin: 0 0 4px; font-size: 15px; }
.rating-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.stars button { font-size: 30px; color: #D5D9E0; transition: transform .15s ease, color .15s ease; line-height: 1; }
.stars button.on { color: #FFB800; transform: scale(1.08); }
.stars button:disabled { cursor: default; }
.rating-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  resize: none; height: 66px; background: #FAFBFC; color: var(--text);
}
.rating-card .rate-actions { margin-top: 12px; display: flex; gap: 10px; justify-content: center; }
.rate-done { padding: 14px 0 2px; text-align: center; color: var(--green); font-size: 14px; }

/* 输入区 */
.chat-input-wrap { flex: none; background: var(--bg); padding: 8px 12px 6px; }
.chat-input {
  display: flex; align-items: flex-end; gap: 9px; background: var(--card);
  border-radius: 14px; padding: 8px 8px 8px 14px; box-shadow: var(--shadow);
}
.chat-input textarea {
  flex: 1; border: none; outline: none; resize: none; background: transparent;
  max-height: 96px; min-height: 24px; line-height: 24px; padding: 2px 0; font-size: 15px; color: var(--text);
}
.send-btn {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.send-btn:disabled { background: #A8C3FF; cursor: not-allowed; }
.handoff-btn {
  flex: none; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px;
  background: var(--orange-soft); color: #B45309; border: 1px solid #F5DEB4;
}
.input-note { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 8px; }
.chat-footer { flex: none; text-align: center; padding: 4px 0 8px; font-size: 11.5px; color: var(--muted); }
.chat-footer a { color: var(--muted); border-bottom: 1px dashed var(--muted); }

/* 加载失败横幅 */
.err-banner {
  margin: 10px 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: var(--red-soft); color: var(--red); border: 1px solid #F8C9C9;
}
.retry-link { color: var(--primary-dark); font-weight: 600; }

/* ============ 管理后台 ============ */
.admin-shell { display: flex; min-height: 100vh; }
@media (min-width: 861px) {
  .admin-shell { height: 100vh; overflow: hidden; }
  .admin-main { height: 100vh; overflow-y: auto; }
}
.admin-side {
  width: 216px; flex: none; background: #101A30; color: #C0C7D1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; }
.admin-side .brand .logo {
  width: 34px; height: 34px; border-radius: 9px; font-size: 18px;
  background: linear-gradient(135deg, #2F6BFF, #6FA1FF); display: flex; align-items: center; justify-content: center; color: #fff;
}
.admin-side .brand b { color: #fff; font-size: 15.5px; display: block; }
.admin-side .brand span { font-size: 11px; color: #7A8499; }
.admin-nav { padding: 8px 10px; flex: 1; overflow-y: auto; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px; color: #AEB6C4; font-size: 14px; margin-bottom: 2px; text-align: left;
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav button.active { background: var(--primary); color: #fff; }
.admin-side .side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; }
.admin-main { flex: 1; min-width: 0; padding: 22px 26px 40px; max-width: 1180px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { font-size: 20px; margin: 0; }
.admin-top .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.admin-top .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.avatar-circle {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card h3 { margin: 0 0 14px; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; }
.card h3 .light { font-size: 12px; color: var(--muted); font-weight: 400; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat .s-label { font-size: 12.5px; color: var(--muted); }
.stat .s-value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; }
.stat .s-value small { font-size: 13px; font-weight: 400; color: var(--muted); }
.stat .s-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat.tone-blue .s-value { color: var(--primary); }
.stat.tone-green .s-value { color: var(--green); }
.stat.tone-orange .s-value { color: var(--orange); }
.stat.tone-red .s-value { color: var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 86px 1fr 46px; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .b-label { color: var(--text-2); text-align: right; }
.bar-track { background: #EFF1F6; border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--primary); min-width: 2px; }
.bar-row .b-num { color: var(--muted); font-variant-numeric: tabular-nums; }

.trend-svg { width: 100%; height: auto; display: block; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 10px; border-bottom: 1px solid #F0F2F6; vertical-align: middle; }
table.tbl tr:hover td { background: #FAFBFD; }
table.tbl .mono { font-variant-numeric: tabular-nums; color: var(--text-2); }
.pill {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: #F2F3F5; color: var(--text-2);
}
.pill.st-bot { background: var(--primary-soft); color: var(--primary-dark); }
.pill.st-human { background: var(--orange-soft); color: #B45309; }
.pill.st-closed { background: #F2F3F5; color: var(--muted); }
.pill.st-pending { background: var(--red-soft); color: var(--red); }
.pill.st-processing { background: var(--orange-soft); color: #B45309; }
.pill.st-resolved { background: var(--green-soft); color: #117A38; }
.link-btn { color: var(--primary); font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.filters select, .filters input[type="text"], .filters input[type="date"] {
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; color: var(--text); font-size: 13px;
}
.filters input[type="text"] { width: 180px; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 14px; font-size: 13px; color: var(--text-2);
}
.mini-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.mini-btn.primary:hover { background: var(--primary-dark); }
.mini-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.mini-btn:disabled { opacity: .55; cursor: not-allowed; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 弹层 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, 0.45); z-index: 90;
  display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: min(720px, 96vw);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.3); animation: msg-in .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; background: #fff; }
.modal-head b { font-size: 15.5px; }
.modal-close { font-size: 20px; color: var(--muted); padding: 4px 8px; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; flex: 1 1 auto; }

/* 回放用的迷你气泡 */
.replay { display: flex; flex-direction: column; gap: 10px; }
.replay .r-item { display: flex; gap: 9px; }
.replay .r-item .r-role {
  flex: none; width: 56px; font-size: 11.5px; color: var(--muted); text-align: right; padding-top: 6px;
}
.replay .r-item .r-bubble {
  background: #F6F8FB; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; max-width: 620px; word-break: break-word; white-space: pre-wrap;
}
.replay .r-item.r-user .r-bubble { background: var(--primary-soft); }
.replay .r-item.r-agent .r-bubble { background: var(--orange-soft); }
.replay .r-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* 登录区 */
.login-panel { max-width: 420px; margin: 6vh auto; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.login-tabs button {
  flex: 1; padding: 9px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 13.5px;
}
.login-tabs button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #FAFBFC; color: var(--text);
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #B8CEFF; border-color: var(--primary); background: #fff; }
.field .inline-btn { margin-top: 6px; }
.form-err { color: var(--red); font-size: 12.5px; margin-top: 10px; min-height: 18px; }

/* 知识库 */
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; background: #fff; }
.faq-item .q-line { display: flex; gap: 10px; align-items: flex-start; }
.faq-item .q-text { flex: 1; font-weight: 600; font-size: 14px; }
.faq-item .a-text { font-size: 13px; color: var(--text-2); margin: 7px 0 0 0; white-space: pre-wrap; }
.faq-item .f-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.faq-item.disabled-item { opacity: .55; }
.kw-chip { font-size: 11.5px; background: #F2F3F5; color: var(--muted); padding: 2px 8px; border-radius: 999px; margin-right: 4px; }

/* 接入指南 */
.guide-step { display: flex; gap: 12px; margin-bottom: 14px; }
.guide-step .g-no {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; margin-top: 2px;
}
.guide-step p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.guide-step p b { color: var(--text); }
.code-line {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: #0F1830; color: #9FE8B8; padding: 10px 13px; border-radius: 9px; word-break: break-all;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.code-line .copy { color: #8FA3D9; font-size: 12px; flex: none; border: 1px solid #33415F; padding: 3px 9px; border-radius: 6px; }
.warn-box {
  background: var(--red-soft); border: 1px solid #F8C9C9; color: #A82121; border-radius: 10px;
  padding: 11px 13px; font-size: 12.5px; margin: 10px 0;
}
.tip-box { background: var(--primary-soft); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: var(--primary-dark); margin: 10px 0; }

/* 星级只读展示 */
.star-line { color: #FFB800; font-size: 13px; letter-spacing: 2px; }
.star-line .off { color: #D5D9E0; }

.empty { text-align: center; color: var(--muted); padding: 34px 0; font-size: 13px; }
.loading { text-align: center; color: var(--muted); padding: 30px 0; font-size: 13px; }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-nav { display: flex; overflow-x: auto; padding: 4px 8px 8px; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .admin-side .side-foot { display: flex; gap: 16px; padding: 6px 14px 10px; border-top: none; flex-wrap: wrap; }
  .admin-side .side-foot br { display: none; }
  .admin-main { padding: 16px 14px 30px; }
}

/* ============ 客服工作台（agent.html） ============ */
.desk-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
.desk-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.desk-head .brand { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.desk-head .brand span { font-weight: 400; font-size: 12px; color: var(--muted); }
.desk-head .desk-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.desk-body { flex: 1; display: flex; min-height: 0; }
.desk-list { width: 300px; flex: none; border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.desk-filters { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.desk-filters button { padding: 5px 10px; border-radius: 999px; font-size: 12px; background: #F2F3F5; color: var(--text-2); white-space: nowrap; }
.desk-filters button.on { background: var(--primary); color: #fff; }
#conv-list { flex: 1; overflow-y: auto; padding: 8px; }
.conv-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 6px; border: 1px solid transparent; position: relative; }
.conv-item:hover { background: #F6F8FB; }
.conv-item.sel { background: var(--primary-soft); border-color: #C9DBFF; }
.conv-item .ci-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 34px; }
.conv-item .ci-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.conv-item .ci-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.badge-new { position: absolute; top: 9px; right: 10px; background: var(--red); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 1px 7px; }
.desk-panel { flex: 1; display: flex; min-width: 0; background: var(--bg); min-height: 0; }
.desk-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 13.5px; line-height: 2; }
.desk-empty small { color: #B4BAC4; }
.dp-head { flex: none; padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.dp-replay { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 18px; }
.dp-compose { flex: none; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px; }
.dp-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.dp-quick button { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); text-align: left; }
.dp-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; min-height: 64px; max-height: 160px; font-size: 14px; color: var(--text); background: #FAFBFC; }
.dp-compose textarea:focus { outline: 2px solid #B8CEFF; border-color: var(--primary); background: #fff; }
.dp-actions { display: flex; gap: 10px; margin-top: 10px; justify-content: flex-end; align-items: center; }
.dp-hint { font-size: 12px; color: var(--muted); margin-right: auto; }
@media (max-width: 720px) {
  .desk-body { flex-direction: column; }
  .desk-list { width: 100%; height: 38vh; border-right: none; border-bottom: 1px solid var(--line); }
}

/* 结单二次确认态 */
#dp-resolve.danger-armed { background: #FFF1F0; color: #F53F3F; border-color: #FFCCC7; }
