/* 中医辨证 · 浮动助手（紧凑小窗，适配 HIS 浮窗 iframe 与独立小窗） */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Microsoft YaHei",system-ui,sans-serif;background:#f5f6f8;color:#222;font-size:13px;width:100%;height:100vh;display:flex;flex-direction:column}
header{display:flex;align-items:center;justify-content:space-between;background:#1e3a5f;color:#fff;padding:8px 12px}
header .logo{font-size:14px}
.hdr-actions{display:flex;align-items:center;gap:8px}
.hdr-actions a{color:#cfe0f5;text-decoration:none;font-size:12px}
.hdr-actions a:hover{color:#fff}
#f_close{background:none;border:none;color:#fff;font-size:14px;cursor:pointer;padding:0 2px}
.tabbar{display:flex;background:#e8ecf1;border-bottom:1px solid #d5dbe3}
.tabbar button{flex:1;padding:8px 0;border:none;background:none;font-size:13px;cursor:pointer;color:#444}
.tabbar button.on{background:#fff;color:#1e3a5f;font-weight:700;box-shadow:inset 0 -2px 0 #1e3a5f}
main{flex:1;overflow-y:auto;padding:10px}
main section{display:none}
main section.on{display:block}
textarea,input{width:100%;border:1px solid #c9d2dc;border-radius:6px;padding:7px 9px;font-size:13px;font-family:inherit;background:#fff}
textarea{resize:vertical}
.row{display:flex;gap:8px;margin:8px 0}
button{background:#1e3a5f;color:#fff;border:none;border-radius:6px;padding:7px 14px;font-size:13px;cursor:pointer}
button.ghost{background:#eef1f5;color:#333}
button:hover{opacity:.9}
.out{margin-top:4px}
.out .item{background:#fff;border:1px solid #e2e7ee;border-radius:6px;padding:7px 9px;margin-bottom:6px}
.out .item b{display:block;font-size:13px;margin-bottom:2px}
.out .item span{font-size:12px;color:#555;white-space:pre-wrap;word-break:break-all}
.out .warn-sev-禁用{border-left:4px solid #c0392b}
.out .warn-sev-慎用{border-left:4px solid #e67e22}
.out .warn-sev-提醒{border-left:4px solid #2980b9}
.out .ok{background:#eaf7ee;border:1px solid #b8e0c4;border-radius:6px;padding:7px 9px;color:#1e7a3c}
footer{background:#e8ecf1;color:#7a8699;font-size:11px;text-align:center;padding:5px}
