/* B22 改版层：暖白底 + 小愈领带蓝，去描边、少碎提示、主次分明。
   只改外观与排版，不改任何问诊/录音/识别逻辑。放在所有患者样式之后加载。 */
:root,
body[data-patient-theme] {
  --bg:#F7F3EE; --surface:#FFFFFF; --fill:#EFE9E0; --line:#ECE4DA; --field-line:#D9CFC2;
  --ink:#1E1C19; --ink2:#5E584F; --ink3:#8A8379; --call-muted:#5E584F; --muted:#5E584F;
  --brand:#3653C9; --brand-d:#2C45AD; --brand-50:#E7EBFB; --brand-100:#D6DDF7;
  --teal:#3653C9; --teal-d:#2C45AD; --ok:#2B7A57; --focus-clinical:#3653C9;
  --portrait-paper:#EDDBD7;
  --b22-me:#3653C9; --b22-skin:#EDDBD7; --b22-danger:#D2473D; --b22-danger-soft:#FBE8E5;
  --b22-shadow-card:0 1px 2px rgba(60,40,20,.05),0 8px 20px -10px rgba(60,40,20,.12);
  --b22-shadow-cta:0 12px 22px -12px rgba(54,83,201,.75);
}
html { background:var(--bg); }
body[data-patient-theme] { background:var(--bg); color:var(--ink); }

/* ====== 通用：按钮、药丸、圆形图标按钮 ====== */
body[data-patient-theme] :where(.primary-button,.dialog-primary) {
  background:var(--brand); color:#fff; border:0; border-radius:999px; min-height:54px;
  font-weight:650; font-size:1.0625rem; box-shadow:var(--b22-shadow-cta);
}
body[data-patient-theme] :where(.primary-button,.dialog-primary):active { background:var(--brand-d); }
body[data-patient-theme] :where(.secondary-button,.dialog-secondary) {
  background:var(--fill); color:var(--ink); border:0; border-radius:999px; min-height:48px; box-shadow:none;
}
body[data-patient-theme] :where(.pill,.rec-link) {
  background:var(--brand-50); color:var(--brand-d); border:0; border-radius:999px; box-shadow:none; font-weight:650;
}
body[data-patient-theme] :where(.ibtn,.icon-button,.acct>summary) {
  background:transparent; color:var(--ink2); border:0; box-shadow:none; border-radius:999px;
}

/* ====== 登录首页 ====== */
body:has(.account-card) { background:var(--bg); }
body:has(.account-card) .home-header { position:relative; z-index:3; padding:14px 20px 0; background:none; border:0; }
body:has(.account-card) .header-note,
body:has(.account-card) .assistant-row,
body:has(.account-card) .home-explainer-desktop { display:none; }
body:has(.account-card) .home-main { position:relative; display:flex; flex-direction:column; padding:0 20px 24px; gap:0; }
body:has(.account-card) { position:relative; }
body:has(.account-card)::before {
  content:""; position:absolute; left:0; right:0; top:0; height:min(430px,112vw); z-index:0; pointer-events:none;
  background:var(--b22-skin) url(/assets/b22/xiaoyu-hero.jpg) 50% 0/100% auto no-repeat;
  -webkit-mask-image:linear-gradient(#000 60%,transparent); mask-image:linear-gradient(#000 60%,transparent);
}
body:has(.account-card) .home-main > .welcome { order:1; }
body:has(.account-card) .home-main > .account-card { order:2; }
body:has(.account-card) .home-main > .steps { order:3; }
body:has(.account-card) #signed-in-pane { text-align:left; }
body:has(.account-card) #signed-in-pane h2 { margin:0 0 4px; padding:0; text-align:left; }
body:has(.account-card) .welcome { position:relative; z-index:1; margin-top:min(250px,62vw); padding:0; background:none; border:0; box-shadow:none; text-align:left; }
body:has(.account-card) .welcome h1 { font-size:1.75rem; line-height:1.28; font-weight:700; letter-spacing:.01em; text-align:left; margin:0; }
body:has(.account-card) .welcome-lead { color:var(--ink); }
body:has(.account-card) .welcome-description { margin:8px 0 0; font-size:.9375rem; color:var(--ink2); text-align:left; }
body:has(.account-card) .account-card {
  position:relative; z-index:1; margin-top:14px; padding:0; background:none; border:0; box-shadow:none; border-radius:0;
}
body:has(.account-card) .account-card > #auth-pane > h2,
body:has(.account-card) .card-description { display:none; }
body:has(.account-card) .auth-tabs { display:flex; background:var(--fill); border-radius:14px; padding:4px; border:0; gap:0; margin:0 0 6px; }
body:has(.account-card) .auth-tabs [role=tab] { flex:1; min-height:38px; border:0; border-radius:11px; background:transparent; color:var(--ink2); font-size:.9375rem; box-shadow:none; }
body:has(.account-card) .auth-tabs [aria-selected=true] { background:#fff; color:var(--ink); font-weight:650; box-shadow:0 1px 3px rgba(60,40,20,.12); }
body:has(.account-card) #account-form label { font-size:.8125rem; color:var(--ink2); margin:10px 0 4px; font-weight:500; }
body:has(.account-card) #account-form :where(input) {
  min-height:52px; border-radius:16px; border:0; background:#fff; box-shadow:inset 0 0 0 1px var(--line); padding:0 16px; font-size:1rem;
}
body:has(.account-card) #account-form :where(input):focus { box-shadow:inset 0 0 0 2px var(--brand); outline:0; }
body:has(.account-card) .form-hint { font-size:.8125rem; color:var(--ink3); margin:8px 2px 0; }
body:has(.account-card) #submit-account { width:100%; margin-top:14px; }
body:has(.account-card) .steps { position:relative; z-index:1; margin-top:22px; padding:0; background:none; border:0; box-shadow:none; }
body:has(.account-card) .steps h2 { font-size:.8125rem; color:var(--ink3); font-weight:600; margin:0 0 8px; }
body:has(.account-card) .steps ol { display:flex; gap:8px; margin:0; padding:0; list-style:none; counter-reset:b22step; }
body:has(.account-card) .steps li { flex:1; display:block; min-width:0; background:#fff; border-radius:16px; padding:10px 11px 11px; font-size:.78rem; line-height:1.45; color:var(--ink2); box-shadow:var(--b22-shadow-card); counter-increment:b22step; }
body:has(.account-card) .steps li::before { content:counter(b22step); display:grid; place-items:center; width:22px; height:22px; margin-bottom:6px; border-radius:50%; background:var(--brand-50); color:var(--brand-d); font-size:.75rem; font-weight:700; position:static; }
body:has(.account-card) .steps li>span { display:block; padding:0; margin:0; }
body:has(.account-card) .steps li strong { display:block; color:var(--ink); font-size:.875rem; margin-bottom:2px; }
body:has(.account-card) #signed-in-pane h2 { display:block; font-size:1.0625rem; margin:0 0 4px; font-weight:650; }
body:has(.account-card) #signed-in-pane .card-description { display:block; margin:0 0 12px; color:var(--ink2); font-size:.875rem; }
body:has(.account-card) #signed-in-pane .primary-button { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; }
body:has(.account-card) .signed-links { display:flex; gap:10px; margin:12px 0 8px; }
body:has(.account-card) .signed-links a { flex:1; text-align:center; padding:11px 0; border-radius:14px; background:#fff; color:var(--ink); box-shadow:var(--b22-shadow-card); font-size:.9375rem; text-decoration:none; }
body:has(.account-card) #switch-account { width:100%; background:transparent; color:var(--ink3); min-height:44px; }
body:has(.account-card) .home-footer { color:var(--ink3); font-size:.75rem; }

/* ====== 数字人选择页 ====== */
body:has(.doctors) { background:var(--bg); }
body:has(.doctors) .htop { background:none; border:0; box-shadow:none; }
body:has(.doctors) main > h1 { font-weight:700; letter-spacing:.01em; }
body:has(.doctors) .h2sub { color:var(--ink2); }
body:has(.doctors) .doctors { gap:12px; }
body:has(.doctors) .dc {
  background:#fff; border:0; border-radius:26px; padding:12px 14px 12px 12px; box-shadow:var(--b22-shadow-card);
  align-items:center; gap:14px;
}
body:has(.doctors) .dc .ph { border-radius:22px; overflow:hidden; background:var(--b22-skin); flex:none; box-shadow:none; }
body:has(.doctors) .dc .nm b { font-size:1.1875rem; font-weight:700; color:var(--ink); }
body:has(.doctors) .dc .tag { background:var(--brand-50); color:var(--brand-d); border-radius:99px; border:0; font-weight:600; }
body:has(.doctors) .dc .ds { color:var(--ink2); }
body:has(.doctors) .dc .ar { background:var(--brand-50); color:var(--brand); border-radius:50%; width:40px; height:40px; display:grid; place-items:center; }
body:has(.doctors) .resume { background:var(--brand-50); border:0; border-radius:22px; box-shadow:none; }
body:has(.doctors) .how { color:var(--ink3); font-size:.8125rem; }
body:has(.doctors)>footer { color:var(--ink3); }

/* ====== 问诊聊天页 ====== */
body.patient-chat { background:var(--bg); }
body.patient-chat .app-head { background:transparent; border:0; box-shadow:none; }
body.patient-chat .app-head .bar { padding:8px 16px 10px; gap:10px; align-items:center; }
body.patient-chat #portrait-stage { width:46px; height:46px; flex:none; }
body.patient-chat #avatar { inset:0; width:46px; height:46px; border-radius:50%; background-color:var(--b22-skin); box-shadow:0 0 0 2px #fff,0 2px 8px rgba(60,40,20,.16); overflow:hidden; }
body.patient-chat .who { flex:1; min-width:0; height:auto; gap:2px; }
body.patient-chat .character-identity strong { font-size:1.0625rem; font-weight:700; color:var(--ink); }
body.patient-chat .character-identity .tag { background:none; color:var(--ink2); padding:0; border:0; font-size:.75rem; }
body.patient-chat .state-line { font-size:.75rem; color:var(--ink2); }
body.patient-chat #call-link { min-height:42px; padding:0 14px 0 11px; font-size:.9375rem; }
body.patient-chat #menu-button { width:42px; height:42px; }

body.patient-chat #welcome-note {
  align-self:center; background:rgba(30,28,25,.045); border:0; border-radius:99px; padding:3px 4px 3px 12px; min-height:0; width:auto; gap:2px;
  font-size:.75rem; color:var(--ink3); box-shadow:none; margin:2px auto 0;
}
body.patient-chat #welcome-note .notice-label { display:none; }
body.patient-chat #welcome-note button { width:28px; height:28px; min-height:0; color:var(--ink3); background:none; }

body.patient-chat .chat { gap:14px; padding-top:6px; }
body.patient-chat .msg .bub {
  background:#fff; border:0; border-radius:22px 22px 22px 6px; padding:13px 16px; box-shadow:var(--b22-shadow-card); color:var(--ink);
}
body.patient-chat .msg[data-role=user] .bub {
  background:var(--b22-me); color:#fff; border-radius:22px 22px 6px 22px; box-shadow:0 8px 18px -10px rgba(54,83,201,.55);
}
body.patient-chat .message-heading, body.patient-chat .message-speaker { font-size:.75rem; color:var(--ink3); }
body.patient-chat .question-label { background:var(--brand-50); color:var(--brand-d); border-radius:99px; padding:1px 8px; font-weight:650; }
body.patient-chat .question-text { font-size:1.1875rem; font-weight:650; line-height:1.5; color:var(--ink); }
body.patient-chat .question-hint { border-top:0; margin-top:6px; padding-top:0; font-size:.8125rem; color:var(--ink2); }
body.patient-chat .mava { border-radius:50%; box-shadow:0 0 0 2px #fff; background:var(--b22-skin); }
body.patient-chat .quick-replies button, body.patient-chat #answer-actions button {
  min-height:40px; padding:0 16px; border:0; border-radius:99px; background:#fff; color:var(--ink); font-size:.9375rem;
  box-shadow:inset 0 0 0 1px var(--line);
}
body.patient-chat .quick-replies button:active { background:var(--brand-50); }
body.patient-chat .session-note { color:var(--ink3); font-size:.75rem; }
body.patient-chat .stepcard { background:#fff; border:0; border-radius:24px; box-shadow:var(--b22-shadow-card); }

/* 底部：工具小药丸 + 大按钮 */
body.patient-chat .composer { background:linear-gradient(rgba(247,243,238,0),var(--bg) 22px); border:0; box-shadow:none; padding-top:6px; }
body.patient-chat .composer .steps { gap:8px; padding:0 16px; background:none; border:0; }
body.patient-chat .composer .steps .sep, body.patient-chat #step-talk { display:none; }
body.patient-chat .composer .steps button.st {
  min-height:36px; padding:0 14px 0 11px; border:0; border-radius:99px; background:rgba(30,28,25,.055); color:var(--ink2); font-size:.84rem; gap:6px; box-shadow:none;
}
body.patient-chat .composer .steps button.st:disabled { opacity:.55; }
body.patient-chat #tip { background:none; border:0; box-shadow:none; padding:0 16px; min-height:0; margin:0; text-align:center; font-size:.75rem; color:var(--ink3); }
body.patient-chat #tip .notice-label { display:none; }
body.patient-chat #tip button { color:var(--ink3); background:none; }
body.patient-chat .composer-row { background:none; border:0; box-shadow:none; padding:4px 14px 2px; gap:10px; }
body.patient-chat #view-button { width:54px; height:54px; min-height:54px; border-radius:50%; background:#fff; color:var(--ink); border:0; box-shadow:inset 0 0 0 1px var(--line); }
body.patient-chat #view-button span { font-size:.6875rem; }
body.patient-chat #primary-action.hold {
  min-height:54px; height:54px; border-radius:99px; background:var(--brand); color:#fff; font-size:1.0625rem; font-weight:650; border:0;
  box-shadow:var(--b22-shadow-cta),inset 0 1px 0 rgba(255,255,255,.18);
}
body.patient-chat #primary-action.hold:disabled { background:#A9B4E8; box-shadow:none; color:#fff; }
body.patient-chat #primary-action.hold:active:not(:disabled) { background:var(--brand-d); }
body.patient-chat .send { background:var(--brand); color:#fff; border:0; }
body.patient-chat #draft { background:#fff; border:0; box-shadow:inset 0 0 0 1px var(--line); border-radius:22px; }
body.patient-chat .composer-status { color:var(--ink3); font-size:.75rem; background:none; }

/* ====== 语音录入浮层：蓝色，不再用青绿 ====== */
#voice-overlay { background:rgba(22,30,86,.96); }
#voice-waveform { background:var(--brand); }
#voice-finish .voice-icon { color:var(--brand); }
#voice-finish { color:#1B2A78; border-radius:99px; }
#voice-overlay[data-target=text] #voice-to-text { color:var(--brand-d); }
#voice-overlay[data-state=preview] { background:rgba(22,30,86,.28); }
#voice-preview { background:#fff; color:var(--ink); border-radius:28px 28px 0 0; }
#voice-preview label { color:var(--brand-d); }
#voice-preview-text { border:2px solid var(--brand); border-radius:18px; background:#fff; color:var(--ink); }
#voice-preview-text:focus-visible { outline:3px solid rgba(54,83,201,.22); }
.voice-preview-actions button { border:0; background:var(--fill); color:var(--ink); border-radius:99px; }
#voice-preview-send { background:var(--brand); color:#fff; border:0; }
/* 聊天页修正与欢迎卡 */
body.patient-chat .quick-replies, body.patient-chat #answer-actions { gap:8px; }
body.patient-chat .quick-replies button, body.patient-chat #answer-actions button { padding:0 13px; font-size:.9rem; }
body.patient-chat .question-text { font-size:1.125rem; font-weight:600; }
body.patient-chat .question-hint, body.patient-chat .question-panel .bub > p + p { border-top:0 !important; }
body.patient-chat #tip { position:relative; }
body.patient-chat #tip button { position:absolute; right:10px; top:50%; translate:0 -50%; width:30px; height:30px; min-height:0; padding:0; }
body.patient-chat #tip p { margin:0 28px; }

.b22-welcome { display:none; }
body.patient-chat[data-started=false] .chat:not(:has(.history-list > *)) .b22-welcome {
  display:flex; flex-direction:column; justify-content:space-between; gap:10px; position:relative; flex:none; min-height:148px; overflow:hidden;
  padding:18px 140px 16px 18px; border-radius:26px; background:var(--b22-skin) var(--b22-card-img,none) calc(100% + 6px) 0/136px auto no-repeat;
  -webkit-mask-image:none; box-shadow:var(--b22-shadow-card);
}
body.patient-chat[data-avatar="xiaoyu-v5"] { --b22-card-img:url(/assets/b22/xiaoyu-hero.jpg); }
body.patient-chat[data-avatar="yang-liqiang-v9"] { --b22-card-img:url(/assets/b22/yang-warm.jpg); }
body.patient-chat[data-avatar="he-liangliang"] { --b22-card-img:url(/assets/b22/he-warm.jpg); }
.b22-welcome b { display:block; font-size:1.1875rem; line-height:1.3; color:var(--ink); }
.b22-welcome p { margin:4px 0 0; font-size:.8125rem; line-height:1.5; color:#6B574E; }
.b22-video-button {
  align-self:flex-start; display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 15px 0 12px; border:0; border-radius:99px;
  background:rgba(255,255,255,.88); color:var(--brand-d); font-size:.9375rem; font-weight:650; box-shadow:0 4px 12px -6px rgba(60,40,20,.3);
}
.b22-video-button .icon { width:20px; height:20px; fill:none; stroke:currentColor; }
.b22-video-button.is-off { opacity:.5; }
/* 紧凑：保证第一屏不用滚动 */
body.patient-chat .chat { scrollbar-width:none; gap:12px; }
body.patient-chat .chat::-webkit-scrollbar { display:none; }
body.patient-chat[data-started=false] .chat:not(:has(.history-list > *)) .b22-welcome { min-height:118px; padding:14px 128px 12px 16px; background-size:122px auto; gap:6px; }
.b22-welcome b { font-size:1.125rem; }
.b22-welcome p { font-size:.78rem; margin-top:2px; }
.b22-video-button { min-height:36px; font-size:.875rem; }
body.patient-chat .question-text { font-size:1.0625rem; line-height:1.5; }
body.patient-chat .msg .bub { padding:12px 15px; }
body.patient-chat .app-head .bar { padding:6px 16px 6px; }
body.patient-chat .session-note { margin:0; line-height:1.4; }
/* ====== 数字人视频交流页 ====== */
body.video-call { background:var(--b22-skin); --video-sheet:rgba(255,255,255,.84); }
body.video-call .ctop { background:var(--b22-skin); border:0; box-shadow:none; }
body.video-call .ctop .back { color:var(--ink); background:rgba(255,255,255,.7); border-radius:50%; width:42px; min-width:42px; min-height:42px; }
body.video-call .call-header-title { color:var(--ink); }
body.video-call .call-header-title #caller-name { font-size:1.0625rem; font-weight:700; }
body.video-call .call-header-kind { color:var(--ink2); font-size:.75rem; }
body.video-call .ctop .acct > summary { background:rgba(255,255,255,.7); width:42px; height:42px; min-height:42px; border-radius:50%; color:var(--ink); }
body.video-call .stage { background:var(--b22-skin); }
body.video-call .call-portrait, body.video-call .call-portrait .portrait { background:#EBD9D5; border-radius:0; }
body.video-call .video-presence { top:10px; left:12px; right:12px; justify-content:space-between; }
body.video-call .video-presence .companion-phase,
body.video-call .video-presence .video-interrupt-tip {
  background:rgba(255,255,255,.7); color:var(--ink); border:0; border-radius:99px; padding:6px 13px; font-size:.8125rem; font-weight:650;
  -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 6px 16px -10px rgba(60,40,20,.35);
}
body.video-call .video-presence .video-interrupt-tip { font-weight:500; color:var(--ink2); }

body.video-call .call-conversation {
  margin:0 8px 0; padding:16px 18px 6px; border:0; border-radius:30px 30px 0 0;
  background:rgba(255,255,255,.84); -webkit-backdrop-filter:blur(22px) saturate(1.5); backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);
}
body.video-call .call-message .message-speaker { color:var(--brand-d); font-size:.8125rem; font-weight:650; }
body.video-call .call-message .question-label { background:var(--brand-50); color:var(--brand-d); border-radius:99px; padding:1px 9px; font-weight:650; }
body.video-call #assistant-caption { font-size:1.25rem; font-weight:700; line-height:1.45; color:var(--ink); }
body.video-call #patient-caption { color:var(--ink2); }
body.video-call .quick-replies button, body.video-call #answer-actions button {
  min-height:40px; padding:0 14px; border:0; border-radius:99px; background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1px var(--line);
}
body.video-call #connect, body.video-call #transcript-open {
  min-height:38px; border:0; border-radius:99px; background:rgba(30,28,25,.055); color:var(--ink2); padding:0 14px 0 11px; font-size:.84rem;
}
body.video-call .video-utilities { gap:8px; border-top:0; }
body.video-call .video-utilities :where(button,summary) { border:0; border-radius:99px; background:rgba(30,28,25,.055); color:var(--ink2); }

body.video-call .cbar {
  margin:0 8px 8px; width:auto; padding:6px 14px max(12px,env(safe-area-inset-bottom)); gap:10px; border-radius:0 0 30px 30px;
  background:rgba(255,255,255,.84); -webkit-backdrop-filter:blur(22px) saturate(1.5); backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);
}
body.video-call #record-toggle {
  min-height:58px; border:0; border-radius:99px; background:var(--brand); color:#fff; font-size:1.0625rem; font-weight:650;
  box-shadow:var(--b22-shadow-cta),inset 0 1px 0 rgba(255,255,255,.18);
}
body.video-call #record-toggle:disabled { background:#A9B4E8; box-shadow:none; color:#fff; }
body.video-call .cmain .sub { color:var(--ink3); font-size:.75rem; }
body.video-call #type-panel > summary .ci, body.video-call #hangup .ci { border-radius:50%; width:54px; height:54px; display:grid; place-items:center; }
body.video-call #type-panel > summary .ci { background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1px var(--line); }
body.video-call #hangup .ci { background:var(--b22-danger); color:#fff; box-shadow:0 10px 18px -10px rgba(210,71,61,.8); }
body.video-call #type-panel .lb, body.video-call .call-control-label { color:var(--ink2); font-size:.75rem; }
body.video-call #text-send { background:var(--brand); color:#fff; border:0; border-radius:99px; }

/* 对话记录弹窗 */
.video-transcript-dialog { background:var(--bg); border-radius:28px 28px 0 0; }
/* 头像换暖色背景版本（图片由页面脚本设置，这里只替换显示内容） */
body[data-avatar="xiaoyu-v5"] :is(img.mava,img.portrait-thumbnail),
a.dc[data-avatar="xiaoyu-v5"] .ph img { content:url(/assets/b22/xiaoyu-face.jpg); }
body[data-avatar="yang-liqiang-v9"] :is(img.mava,img.portrait-thumbnail),
a.dc[data-avatar="yang-liqiang-v9"] .ph img { content:url(/assets/b22/yang-face.jpg); }
body[data-avatar="he-liangliang"] :is(img.mava,img.portrait-thumbnail),
a.dc[data-avatar="he-liangliang"] .ph img { content:url(/assets/b22/he-face.jpg); }

/* 视频页：人物铺满全宽 */
body.video-call main, body.video-call .stage { padding-inline:0; max-width:none; }
body.video-call .stage { width:100%; }
/* 视频页：把“听问题 / 对话记录 / 标记部位”收进同一行，让人物多露出一点 */
body.video-call .call-conversation { display:flex; flex-wrap:wrap; align-content:flex-start; gap:8px; }
body.video-call .call-conversation > * { flex:0 0 100%; min-width:0; margin:0; }
body.video-call .call-conversation > .caption-actions { flex:0 0 auto; padding:0; }
body.video-call .call-conversation > .video-utilities { flex:1 1 0; padding:0; min-height:0; justify-content:flex-start; }
body.video-call .call-conversation > .recovery:empty { display:none; }
body.video-call .call-conversation > .recovery { flex:0 0 100%; }
body.video-call #connect, body.video-call #transcript-open, body.video-call .video-utilities #pain-panel :where(button,summary) { min-height:38px; padding:0 12px 0 10px; font-size:.8125rem; white-space:nowrap; }
body.video-call .caption-actions { gap:8px; }
body.video-call .call-conversation > .video-utilities { flex:0 1 auto; }
body.video-call .video-utilities > #transcript-open, body.video-call .video-utilities > #pain-panel { flex:0 0 auto; }
/* ====== 弹窗、表单、记录页统一 ====== */
body[data-patient-theme] .dialog { background:var(--bg); color:var(--ink); border:0; }
body[data-patient-theme] :where(.dialog,main,.record-filters,.edit-form) :where(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  background:#fff; border:0; border-radius:16px; box-shadow:inset 0 0 0 1px var(--line); color:var(--ink);
}
body[data-patient-theme] :where(.dialog,main) :where(input:not([type=checkbox]):not([type=radio]),textarea,select):focus {
  box-shadow:inset 0 0 0 2px var(--brand); outline:0;
}
body[data-patient-theme] .summary-notice { background:var(--brand-50); color:var(--ink); border:0; border-radius:18px; }
body[data-patient-theme] .menu-sheet .mi { border-radius:16px; }
body[data-patient-theme] .menu-sheet .mi-ic { background:var(--brand-50); color:var(--brand-d); border-radius:12px; }
body[data-patient-theme] .menu-sheet .mi.warn { color:var(--b22-danger); }
body[data-patient-theme] .dialog-heading h2 { font-weight:700; }
body[data-patient-theme] .search-submit { border-radius:99px; background:var(--brand); color:#fff; border:0; }
body[data-patient-theme] .visit, body[data-patient-theme] .visit-card, body[data-patient-theme] .record-card {
  background:#fff; border:0; border-radius:22px; box-shadow:var(--b22-shadow-card);
}
body[data-patient-theme] .visit-actions > a { border-radius:99px; }
body[data-patient-theme] .htop { background:none; border:0; }