@import "https://fonts.googleapis.com/css2?family=Source+Han+Sans+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{--sidebar:#15233a;--sidebar-2:#1b2b45;--sidebar-text:#b8c4d6;--sidebar-active:#2f6fed;--bg:#f0f3f8;--panel:#fff;--ink:#1f2937;--muted:#6b7280;--line:#e5eaf2;--primary:#2f6fed;--primary-soft:#e8f0ff;--ok:#16a34a;--ok-soft:#e8f8ee;--warn:#d97706;--warn-soft:#fff7e8;--danger:#dc2626;--danger-soft:#feecec;--purple:#7c5cfc;--teal:#0d9488;--orange:#ea580c;--shadow:0 8px 24px #15233a0f;--radius:12px;--font:"Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;--mobile-nav-h:56px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--app-layout-width-unit:1vw;--app-layout-height-unit:1vh}*{box-sizing:border-box}html,body,#root{height:100%;max-height:100%}#root{container:app-layout/size}@supports (height:100dvh){:root{--app-layout-height-unit:1dvh}html,body,#root{height:100dvh;max-height:100dvh}}body{font-family:var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;margin:0;overflow-x:auto}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.shell{grid-template-columns:220px 1fr;min-height:100%;transition:grid-template-columns .2s;display:grid}.shell.collapsed{grid-template-columns:72px 1fr}.sidebar{background:linear-gradient(180deg, var(--sidebar) 0%, #101a2c 100%);color:#fff;height:calc(100 * var(--app-layout-height-unit));flex-direction:column;gap:18px;padding:18px 12px;display:flex;position:sticky;top:0}.brand-block{border-bottom:1px solid #ffffff14;align-items:center;gap:12px;padding:8px 10px 14px;display:flex}.brand-logo{background:#fff;border-radius:10px;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid;box-shadow:0 4px 12px #0003}.brand-logo span{background:conic-gradient(from 210deg,#3b82f6,#22c55e,#f59e0b,#a855f7,#3b82f6);border-radius:6px;width:22px;height:22px;-webkit-mask:radial-gradient(circle,#0000 35%,#000 36%);mask:radial-gradient(circle,#0000 35%,#000 36%)}.brand-name{letter-spacing:.02em;font-size:1rem;font-weight:700}.brand-tag{color:var(--sidebar-text);margin-top:2px;font-size:.72rem}.side-nav{flex-direction:column;gap:4px;display:flex}.side-link{color:var(--sidebar-text);border-radius:10px;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:11px 12px;font-size:.92rem;transition:background .15s,color .15s;display:grid;position:relative}.shell.collapsed .side-link{grid-template-columns:22px;justify-content:center}.side-link:hover{color:#fff;background:#ffffff0f}.side-link.active{background:var(--sidebar-active);color:#fff;font-weight:600;box-shadow:0 8px 18px #2f6fed59}.side-link .active-dot{background:0 0;border-radius:50%;width:6px;height:6px}.side-link.active .active-dot{background:#fff}.shell-main{min-width:0;min-height:calc(100 * var(--app-layout-height-unit));flex-direction:column;display:flex}.topbar{border-bottom:1px solid var(--line);z-index:10;background:#fff;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;display:flex;position:sticky;top:0}.topbar-left{flex:1;align-items:center;gap:14px;min-width:0;display:flex}.topbar-left>div{min-width:0}.topbar-left h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:1.15rem;font-weight:700;overflow:hidden}.topbar-left p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:520px;margin:4px 0 0;font-size:.78rem;overflow:hidden}.topbar-right{flex-shrink:0;align-items:center;gap:6px;display:flex}.icon-btn{color:#4b5563;background:0 0;border:none;border-radius:10px;place-items:center;width:36px;height:36px;display:grid;position:relative}.icon-btn:hover{background:#f3f4f6}.badge-dot{color:#fff;background:#ef4444;border-radius:999px;min-width:14px;height:14px;padding:0 3px;font-size:9px;font-weight:700;line-height:14px;position:absolute;top:4px;right:4px}.badge-dot.yellow{background:#f59e0b}.topbar-actions{align-items:center;gap:6px;display:flex}.topbar-action-wrap{position:relative}.topbar-popover{width:340px;max-width:min(340px, calc(calc(100 * var(--app-layout-width-unit)) - 24px));z-index:70;background:#fff;border:1px solid #e8eaee;border-radius:14px;position:absolute;top:calc(100% + 8px);right:0;overflow:hidden;box-shadow:0 12px 32px #0f172a1f,0 2px 6px #0f172a0f}.topbar-popover.inbox-popover.portal{z-index:1000;max-height:min(420px, calc(calc(100 * var(--app-layout-height-unit)) - 24px));flex-direction:column;display:flex;position:fixed;top:auto}.topbar-popover.inbox-popover.portal.in-sheet{width:auto;max-width:none;max-height:min(calc(70 * var(--app-layout-height-unit)), calc(calc(100 * var(--app-layout-height-unit)) - var(--mobile-nav-h) - var(--safe-bottom) - 24px))}.topbar-popover.inbox-popover.portal .topbar-popover-body{flex:1;max-height:none}.topbar-popover-head{border-bottom:1px solid #eef0f3;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;display:flex}.topbar-popover-head strong{font-size:.92rem;font-weight:700}.topbar-popover-action{color:var(--primary);background:0 0;border:none;border-radius:6px;padding:4px 6px;font-size:.78rem;font-weight:600}.topbar-popover-action:hover:not(:disabled){background:var(--primary-soft)}.topbar-popover-action:disabled{opacity:.45;cursor:default}.topbar-popover-body{max-height:360px;padding:6px;overflow:auto}.inbox-empty{text-align:center;color:var(--muted);padding:28px 12px;font-size:.85rem}.inbox-item{text-align:left;cursor:pointer;width:100%;color:inherit;background:0 0;border:none;border-radius:10px;align-items:flex-start;gap:10px;padding:10px;display:flex}.inbox-item:hover{background:#f5f6f8}.inbox-item.unread{background:#f8fafc}.inbox-item-main{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.inbox-item-main strong{color:#111827;font-size:.86rem;font-weight:650}.inbox-item-main span{color:#4b5563;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:.78rem;line-height:1.45;display:-webkit-box;overflow:hidden}.inbox-item-main em{color:#9ca3af;font-size:.72rem;font-style:normal}.inbox-unread-dot{background:#ef4444;border-radius:50%;flex-shrink:0;width:8px;height:8px;margin-top:6px}.inbox-popover.kind-suggestion .inbox-unread-dot{background:#f59e0b}.inbox-detail-overlay{z-index:1100}.inbox-detail-body{white-space:pre-wrap;color:#1f2937;margin:0;font-size:.9rem;line-height:1.65}.topbar-popover-foot{border-top:1px solid #eef0f3;padding:8px}.topbar-popover-action.block{text-align:center;width:100%}.feedback-receipt{background:#f8fafc;border:1px solid #e8eaee;border-radius:10px;margin-top:8px;padding:12px 14px}.feedback-receipt strong{color:#111827;margin-bottom:6px;font-size:.82rem;display:block}.feedback-receipt p{white-space:pre-wrap;color:#374151;margin:0;font-size:.88rem;line-height:1.55}.feedback-receipt em{color:#9ca3af;margin-top:8px;font-size:.75rem;font-style:normal;display:block}.chip-count{color:#fff;background:#ef4444;border-radius:999px;justify-content:center;align-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;font-size:.7rem;font-weight:700;display:inline-flex}.language-popover{width:160px;padding:6px}.language-option{text-align:left;color:#1f2937;cursor:pointer;background:0 0;border:none;border-radius:10px;width:100%;padding:10px 12px;font-size:.88rem;font-weight:500;display:block}.language-option:hover{background:#f5f6f8}.language-option.active{background:var(--primary-soft);color:var(--primary);font-weight:650}.language-sheet-row{flex-direction:column;gap:2px;display:flex}.profile-menu{border-left:1px solid var(--line);margin-left:8px;padding-left:12px;position:relative}.profile-menu.variant-chip,.profile-menu.variant-rail,.profile-menu.variant-rail-collapsed{border-left:none;margin-left:0;padding-left:0}.profile-trigger{cursor:pointer;color:inherit;text-align:left;background:0 0;border:none;border-radius:12px;align-items:center;gap:10px;width:100%;padding:4px 6px 4px 4px;display:flex}.profile-trigger:hover,.profile-menu.open .profile-trigger{background:#f3f4f6}.profile-trigger-rail-collapsed{border-radius:50%;justify-content:center;width:auto;padding:0}.profile-trigger-rail-collapsed:hover,.profile-menu.open .profile-trigger-rail-collapsed{background:0 0}.profile-trigger-chip.doctor-user-chip{gap:8px}.profile-trigger .rail-avatar{pointer-events:none}.profile-trigger .rail-user-meta.as-text{pointer-events:none;flex:1;min-width:0}.avatar{background:var(--primary);color:#fff;border-radius:8px;flex-shrink:0;place-items:center;width:34px;height:34px;font-weight:700;display:grid}.profile-meta{flex-direction:column;min-width:0;line-height:1.2;display:flex}.profile-meta strong{font-size:.85rem}.profile-meta span{color:var(--muted);font-size:.72rem}.profile-chevron{color:#9ca3af;flex-shrink:0;place-items:center;transition:transform .18s;display:grid}.profile-chevron.open{transform:rotate(180deg)}.profile-dropdown{z-index:60;background:#fff;border:1px solid #e8eaee;border-radius:14px;width:260px;padding:4px 0;position:absolute;top:calc(100% + 8px);right:0;overflow:hidden;box-shadow:0 12px 32px #0f172a1f,0 2px 6px #0f172a0f}.profile-dropdown.drop-up{inset:auto auto calc(100% + 8px) 0}.profile-dropdown.portal{z-index:1000;position:fixed;inset:auto}.profile-menu.variant-rail-collapsed .profile-dropdown.drop-up{left:0;right:auto}.profile-dropdown-identity{flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px 12px;display:flex}.profile-dropdown-identity strong{color:#111827;font-size:.95rem;font-weight:700;line-height:1.25}.profile-dropdown-email{color:#6b7280;word-break:break-all;font-size:.78rem;line-height:1.3}.profile-role-tag{color:var(--primary);background:#eef4ff;border-radius:6px;align-items:center;margin-top:4px;padding:2px 8px;font-size:.72rem;font-weight:600;display:inline-flex}.profile-dropdown-section{border-top:1px solid #eef0f3;padding:6px}.profile-dropdown-item{color:#1f2937;cursor:pointer;text-align:left;box-sizing:border-box;background:0 0;border:none;border-radius:10px;align-items:center;gap:10px;width:100%;padding:8px 10px;font-size:.88rem;font-weight:500;text-decoration:none;display:flex}.profile-dropdown-item:hover{background:#f5f6f8}.profile-dropdown-item.danger{color:#ef4444}.profile-dropdown-item.danger:hover{background:#fef2f2}.profile-item-icon{border-radius:8px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.profile-item-icon.tone-blue{color:var(--primary);background:#eef4ff}.profile-item-icon.tone-green{color:#10b981;background:#ecfdf5}.profile-item-icon.tone-red{color:#ef4444;background:#fef2f2}.profile-item-icon.tone-amber{color:#d97706;background:#fffbeb}.link-btn{color:var(--primary);background:0 0;border:none;padding:4px 6px;font-size:.8rem;font-weight:600}.profile-page{max-width:960px}.profile-page-layout{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:16px;display:grid}.profile-page-side{flex-direction:column;align-items:flex-start;gap:6px;padding:20px 18px;display:flex}.profile-page-avatar{background:var(--primary);color:#fff;border-radius:14px;place-items:center;width:56px;height:56px;margin-bottom:8px;font-size:1.35rem;font-weight:700;display:grid}.profile-page-side strong{color:#111827;font-size:1rem}.profile-page-side-meta,.profile-page-side-email{color:#6b7280;word-break:break-all;font-size:.78rem;line-height:1.35}.profile-page-main{padding:8px 18px 20px}.profile-page-body{padding-top:8px}.profile-form-grid{grid-template-columns:1fr 1fr;gap:0 16px;display:grid}.profile-sig-preview{margin-bottom:8px}.profile-sig-preview img{background:#fff;border:1px solid #ddd;border-radius:6px;max-width:100%;max-height:64px;padding:4px}@container app-layout (width<=800px){.profile-page-layout,.profile-form-grid{grid-template-columns:1fr}}.content{flex:1;padding:20px 22px 36px}.page-banner{background:linear-gradient(135deg,#eef2ff 0%,#e8f0ff 45%,#f5f8ff 100%);border:1px solid #dde7fb;border-radius:16px;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 24px;animation:.4s both rise;display:flex}.page-banner .banner-main{align-items:flex-start;gap:16px;min-width:0;display:flex}.banner-icon{background:var(--primary);color:#fff;border-radius:14px;flex-shrink:0;place-items:center;width:48px;height:48px;display:grid;box-shadow:0 10px 20px #2f6fed47}.page-banner h2{margin:0;font-size:1.45rem}.page-banner .date{color:var(--muted);margin:6px 0 8px;font-size:.85rem}.page-banner .desc{color:#4b5563;max-width:640px;margin:0;font-size:.9rem;line-height:1.55}.pill-row{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.pill{color:#374151;background:#fff;border:1px solid #dbe4f5;border-radius:999px;align-items:center;gap:6px;padding:5px 10px;font-size:.78rem;font-weight:600;display:inline-flex}.pill .dot{background:var(--ok);border-radius:50%;width:7px;height:7px}.banner-actions{flex-direction:column;flex-shrink:0;gap:10px;display:flex}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.panel.flush{padding:0;overflow:hidden}.page-card-head{border-bottom:1px solid var(--line);background:linear-gradient(#f7faff,#fff);justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;display:flex}.page-card-head .title-wrap{align-items:flex-start;gap:14px;display:flex}.page-card-head .icon-tile{background:var(--primary-soft);width:44px;height:44px;color:var(--primary);border-radius:12px;place-items:center;display:grid}.page-card-head h2{margin:0;font-size:1.2rem}.page-card-head p{color:var(--muted);margin:6px 0 0;font-size:.85rem}.page-card-head .actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.grid{gap:16px;display:grid}.grid.stats{grid-template-columns:repeat(4,1fr)}.grid.two{grid-template-columns:1.2fr .8fr}.grid.work{grid-template-columns:300px 1fr}.stat-card{color:#fff;min-height:140px;box-shadow:var(--shadow);border-radius:14px;padding:18px;animation:.45s both rise;position:relative;overflow:hidden}.stat-card:nth-child(2){animation-delay:50ms}.stat-card:nth-child(3){animation-delay:.1s}.stat-card:nth-child(4){animation-delay:.15s}.stat-card.purple{background:linear-gradient(145deg,#7c5cfc,#6366f1)}.stat-card.blue{background:linear-gradient(145deg,#3b82f6,#2563eb)}.stat-card.teal{background:linear-gradient(145deg,#14b8a6,#0d9488)}.stat-card.orange{background:linear-gradient(145deg,#fb923c,#ea580c)}.stat-card .label{opacity:.9;font-size:.85rem}.stat-card .value{letter-spacing:-.03em;margin:8px 0;font-size:2rem;font-weight:800}.stat-card .hint{opacity:.88;max-width:80%;font-size:.8rem;line-height:1.45}.stat-card .deco{opacity:.25;font-size:42px;position:absolute;bottom:12px;right:14px}.section-title{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.section-title h3{margin:0;font-size:1rem}.section-title .tag{background:var(--ok-soft);color:var(--ok);border-radius:999px;padding:3px 8px;font-size:.75rem;font-weight:700}.activity-list{flex-direction:column;gap:0;display:flex}.activity-item{border-bottom:1px solid var(--line);grid-template-columns:40px 1fr auto;align-items:start;gap:12px;padding:14px 0;display:grid}.activity-item:last-child{border-bottom:none}.activity-icon{background:var(--primary-soft);width:36px;height:36px;color:var(--primary);border-radius:10px;place-items:center;display:grid}.activity-item h4{margin:0 0 4px;font-size:.92rem}.activity-item p{color:var(--muted);margin:0;font-size:.8rem;line-height:1.45}.activity-item time{color:var(--muted);white-space:nowrap;font-size:.75rem}.btn{background:var(--primary);color:#fff;border:none;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:9px 14px;font-size:.88rem;font-weight:600;transition:transform .15s,background .15s,opacity .15s;display:inline-flex}.btn:hover{background:#2563eb;transform:translateY(-1px)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn.ghost{color:var(--primary);background:#fff;border:1px solid #c7d7f8}.btn.ghost:hover{background:var(--primary-soft)}.btn.warn{background:var(--warn)}.btn.danger{background:var(--danger)}.btn.sm{padding:6px 10px;font-size:.8rem}.tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:0;padding:0 8px;display:flex}.tab{color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-1px;padding:12px 16px;font-weight:600}.tab.active{color:var(--primary);border-bottom-color:var(--primary)}.chip-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.chip{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;padding:6px 12px;font-size:.82rem;font-weight:600}.chip.active{background:var(--primary-soft);color:var(--primary);border-color:#bfd0f8}.chip .count{background:#e5e7eb;border-radius:999px;margin-left:4px;padding:1px 6px;font-size:.72rem}.chip.active .count{background:#c7d7f8}.toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:10px;padding:14px 18px;display:flex}.search{border:1px solid var(--line);min-width:220px;color:var(--muted);background:#fff;border-radius:10px;flex:1;align-items:center;gap:8px;padding:8px 12px;display:flex}.search input{width:100%;color:var(--ink);background:0 0;border:none;outline:none}.table-wrap{overflow:auto}table.data{border-collapse:collapse;width:100%;font-size:.88rem}table.data th{text-align:left;color:#64748b;border-bottom:1px solid var(--line);white-space:nowrap;background:#f8fafc;padding:12px 14px;font-weight:600}table.data td{border-bottom:1px solid var(--line);vertical-align:middle;padding:12px 14px}table.data tr:hover td{background:#fafbff}.cell-title{font-weight:700}.cell-sub{color:var(--muted);margin-top:2px;font-size:.78rem}.badge{background:var(--primary-soft);color:var(--primary);border-radius:999px;align-items:center;gap:5px;padding:3px 9px;font-size:.75rem;font-weight:700;display:inline-flex}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.danger{background:var(--danger-soft);color:var(--danger)}.badge.gray{color:#6b7280;background:#f3f4f6}.badge.purple{color:var(--purple);background:#f1ecff}.badge.blue{color:#1d4ed8;background:#e8f1ff}.badge.teal{color:#0f766e;background:#e6fffa}.badge.orange{color:#c2410c;background:#fff7ed}.badge.green{color:#047857;background:#ecfdf5}.badge .dot{background:currentColor;border-radius:50%;width:6px;height:6px}.action-links{white-space:nowrap;vertical-align:middle}.action-links .row-ops,.row-ops{vertical-align:middle;align-items:center;gap:10px;min-height:28px;display:inline-flex}.action-links button,.action-links a,.row-ops button,.row-ops a{color:var(--primary);cursor:pointer;background:0 0;border:none;height:auto;padding:0;font-size:.85rem;font-weight:600;line-height:1.4;text-decoration:none}.action-links button:hover,.action-links a:hover,.row-ops button:hover,.row-ops a:hover{text-decoration:underline}.action-links .danger,.row-ops .danger{color:var(--danger)}.action-links button:disabled,.row-ops button:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}table.data td .badge{vertical-align:middle}.field{flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.field label{color:var(--muted);font-size:.82rem;font-weight:600}.field input:not([type=checkbox]):not([type=radio]),.field textarea,.field select{border:1px solid var(--line);box-sizing:border-box;background:#fff;border-radius:10px;outline:none;width:100%;min-width:0;max-width:100%;padding:10px 12px}.field textarea{resize:vertical;min-height:110px}.field input:not([type=checkbox]):not([type=radio]):focus,.field textarea:focus,.field select:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2f6fed1f}.field input[type=checkbox],.field input[type=radio]{width:16px;height:16px;accent-color:var(--primary);flex-shrink:0;margin:0;padding:0}.split-config{border-top:1px solid var(--line);grid-template-columns:200px 1fr;gap:0;min-height:420px;display:grid}.config-menu{border-right:1px solid var(--line);background:#fafbfd;padding:12px}.config-menu button{text-align:left;color:#4b5563;background:0 0;border:none;border-radius:8px;width:100%;padding:10px 12px;font-size:.88rem;font-weight:600}.config-menu button.active{background:var(--primary-soft);color:var(--primary)}.config-form{padding:20px 22px}.user-options-form{flex-direction:column;gap:22px;max-width:640px;display:flex}.option-block h4{color:#1f2937;margin:0 0 10px;font-size:.95rem;font-weight:700}.option-block textarea{box-sizing:border-box;border:1px solid var(--line);resize:vertical;color:#1f2937;background:#fff;border-radius:6px;outline:none;width:100%;min-height:140px;padding:10px 12px;line-height:1.55}.option-block textarea:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2f6fed1f}.option-hint{color:var(--muted);margin:8px 0 0;font-size:.8rem}.option-actions{flex-wrap:wrap;gap:10px;padding-top:4px;display:flex}.mineru-settings{max-width:820px}.mineru-hero{background:linear-gradient(135deg,#eef4ff 0%,#f5f8ff 55%,#eef6fb 100%);border:1px solid #dbe6fb;border-radius:10px;align-items:flex-start;gap:14px;margin:0 0 18px;padding:14px 16px;display:flex}.mineru-hero-icon{width:42px;height:42px;color:var(--primary);background:#fff;border:1px solid #c9daf8;border-radius:10px;flex:none;place-items:center;display:grid}.mineru-hero h3{color:#1f2937;margin:0 0 4px;font-size:1.02rem}.mineru-hero p{color:var(--muted);margin:0;font-size:.84rem;line-height:1.5}.mineru-advanced{margin-top:4px;margin-bottom:4px}.mineru-actions{border-top:1px solid var(--line);flex-wrap:wrap;gap:10px;margin-top:8px;padding-top:16px;display:flex}.mineru-actions .btn{align-items:center;gap:6px;display:inline-flex}.stt-settings{max-width:820px}.stt-enable-row{border:1px solid var(--line);background:#fafbfc;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;padding:14px 16px;display:flex}.stt-enable-row strong{color:#1f2937;font-size:.95rem;display:block}.stt-enable-row p{color:var(--muted);margin:4px 0 0;font-size:.82rem}.stt-switch{cursor:pointer;background:#cbd5e1;border:none;border-radius:999px;flex:none;width:48px;height:28px;padding:0;transition:background .2s;position:relative}.stt-switch.on{background:var(--primary)}.stt-switch:disabled{opacity:.6;cursor:not-allowed}.stt-switch-knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0f172a33}.stt-switch.on .stt-switch-knob{transform:translate(20px)}.stt-status-bar{color:#374151;background:#f3f4f6;border-radius:8px;flex-wrap:wrap;gap:18px 28px;margin-bottom:16px;padding:12px 14px;font-size:.88rem;display:flex}.stt-status-bar .ok{color:#059669;margin-left:4px;font-weight:600}.stt-status-bar .bad{color:#dc2626;margin-left:4px;font-weight:600}.stt-device-group{border:1px solid var(--line);background:#fff;border-radius:8px;display:inline-flex;overflow:hidden}.stt-device-btn{border:none;border-right:1px solid var(--line);color:#4b5563;letter-spacing:.02em;cursor:pointer;background:0 0;min-width:72px;padding:8px 14px;font-size:.86rem;font-weight:600}.stt-device-btn:last-child{border-right:none}.stt-device-btn.active{background:var(--primary);color:#fff}.stt-device-btn:disabled{opacity:.65;cursor:not-allowed}.stt-banner{border-radius:8px;margin:4px 0 16px;padding:10px 14px;font-size:.86rem;line-height:1.5}.stt-banner.ok{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.stt-banner.warn{color:#b45309;background:#fffbeb;border:1px solid #fde68a}.stt-banner.info{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe}.stt-status-panel{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:6px;margin-bottom:16px;padding:14px 16px;font-size:.86rem;display:flex}.stt-status-title{color:#334155;margin-bottom:2px;font-weight:700}.stt-status-panel .ok{color:#059669;margin-left:4px;font-weight:600}.stt-status-panel .bad{color:#d97706;margin-left:4px;font-weight:600}.stt-status-meta{color:#94a3b8;word-break:break-all;font-size:.78rem}.stt-model-status{border:1px solid var(--line);background:#fff;border-radius:10px;margin-bottom:16px;padding:14px 16px}.stt-model-status h4{color:#1f2937;margin:0 0 12px;font-size:.92rem}.stt-model-row{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;display:flex}.stt-model-row:first-of-type{border-top:none;padding-top:0}.stt-model-row strong{color:#111827;margin-bottom:4px;font-size:.9rem;display:block}.stt-model-row code{color:#64748b;word-break:break-all;font-size:.78rem;line-height:1.45;display:block}.stt-pill{border-radius:999px;flex:none;padding:3px 10px;font-size:.78rem;font-weight:600}.stt-pill.ok{color:#059669;background:#ecfdf5}.stt-pill.bad{color:#dc2626;background:#fef2f2}.list{flex-direction:column;gap:10px;display:flex}.list-item{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:12px;padding:12px 14px;transition:border-color .15s,box-shadow .15s}.list-item:hover,.list-item.active{border-color:#93b4f8;box-shadow:0 6px 16px #2f6fed14}.list-item h3{margin:0 0 4px;font-size:.95rem}.list-item .meta{color:var(--muted);font-size:.8rem;line-height:1.45}.record-view{white-space:pre-wrap;border:1px solid var(--line);background:#fafbfd;border-radius:12px;min-height:280px;padding:16px;font-size:.93rem;line-height:1.7}.timeline{flex-direction:column;gap:8px;max-height:320px;display:flex;overflow:auto}.timeline .step{border:1px solid var(--line);background:#fafbfd;border-radius:10px;grid-template-columns:72px 1fr auto;align-items:center;gap:10px;padding:10px 12px;font-size:.82rem;display:grid}.timeline .step .name{font-weight:600}.login-page{background:#f3f5f8;place-items:center;min-height:100%;padding:28px 16px;display:grid}.login-card{background:#fff;border:1px solid #e8edf5;border-radius:16px;width:min(420px,100%);padding:40px 36px 28px;animation:.45s both rise;box-shadow:0 12px 40px #1e3a5f14}.login-brand{text-align:center;flex-direction:column;align-items:center;gap:12px;margin-bottom:22px;display:flex}.login-brand-logo{border-radius:14px;width:56px;height:56px}.login-brand-text{flex-direction:column;gap:4px;display:flex}.login-brand-name{color:#1e3a5f;letter-spacing:.01em;font-size:1.2rem;font-weight:700;line-height:1.2}.login-brand-tag{color:#94a3b8;letter-spacing:.14em;text-transform:uppercase;font-size:.7rem;font-weight:600}.login-title{text-align:center;color:#1e3a5f;letter-spacing:.01em;margin:0;font-size:1.55rem;font-weight:700;line-height:1.3}.login-subtitle{text-align:center;color:#94a3b8;margin:8px 0 26px;font-size:.92rem;font-weight:500}.login-error{margin-bottom:14px}.login-inline-hint{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;margin:0 0 14px;padding:10px 12px;font-size:.86rem}.login-field{margin-bottom:16px}.login-field label{color:#475569;margin-bottom:2px;font-size:.88rem;font-weight:600}.login-field input{background:#fff;border-color:#dbe3ef;border-radius:8px;padding:11px 12px}.login-field input::placeholder{color:#b0b8c6}.login-row{justify-content:space-between;align-items:center;gap:12px;margin:2px 0 18px;display:flex}.login-check{color:#475569;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;font-size:.88rem;display:inline-flex}.login-check input{accent-color:#60a5fa;width:15px;height:15px}.login-link{color:#60a5fa;cursor:pointer;background:0 0;border:0;padding:0;font-family:inherit;font-size:.88rem;font-weight:500}.login-link:hover{color:#3b82f6;text-decoration:underline}.login-submit{width:100%;box-shadow:none;background:#8ec5ff;border-radius:8px;margin-top:0;padding:12px 16px;font-size:1rem;font-weight:600}.login-submit:hover:not(:disabled){background:#74b4f8;transform:none}.login-submit:disabled{opacity:.65}.login-footer{justify-content:center;align-items:center;gap:10px;margin-top:22px;padding-top:4px;display:flex}.login-footer-sep{color:#93c5fd;font-size:.85rem}.login-hint{color:#94a3b8;margin:8px 0 0;font-size:.78rem;line-height:1.4}.login-captcha{margin-bottom:14px}.login-captcha-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #dbe3ef;border-radius:8px;align-items:center;gap:12px;width:100%;padding:11px 14px;font-family:inherit;font-size:.92rem;transition:border-color .15s,box-shadow .15s,background .15s;display:flex}.login-captcha-btn:hover:not(:disabled){border-color:#93c5fd;box-shadow:0 0 0 3px #93c5fd40}.login-captcha-btn:disabled{cursor:wait;opacity:.9}.login-captcha-btn.ok{color:#166534;background:#f0fdf4;border-color:#86efac}.login-captcha-btn.error{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.login-captcha-icon-wrap{background:#eff6ff;border-radius:8px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid}.login-captcha-icon-wrap.ok{background:#dcfce7}.login-captcha-spinner{border:2px solid #bfdbfe;border-top-color:#3b82f6;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite login-spin}@keyframes login-spin{to{transform:rotate(360deg)}}.login-captcha-text{text-align:left;color:inherit;flex:1;font-weight:600}.login-captcha-arrow{color:#cbd5e1;font-size:1.35rem;font-weight:500;line-height:1}.login-card .login-submit.btn{box-shadow:none;background:#8ec5ff;margin-top:0}.login-card .login-submit.btn:hover:not(:disabled){background:#74b4f8;transform:none}.security-settings-form .option-block input[type=number]{box-sizing:border-box;border:1px solid var(--line);color:#1f2937;background:#fff;border-radius:6px;outline:none;width:100%;max-width:280px;padding:10px 12px}.security-settings-form .option-block input[type=number]:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2f6fed1f}.captcha-settings-block{padding-top:4px}.captcha-info-box{color:#1e3a5f;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;margin:0 0 14px;padding:12px 14px;font-size:.84rem;line-height:1.55}.captcha-key-field{margin-top:14px}.captcha-key-label{color:var(--muted);align-items:center;gap:10px;margin-bottom:8px;font-size:.82rem;font-weight:600;display:flex}.captcha-key-badge{border-radius:999px;align-items:center;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-flex}.captcha-key-badge.ok{color:#166534;background:#dcfce7}.captcha-key-badge.warn{color:#92400e;background:#fef3c7}.captcha-key-row{align-items:stretch;gap:10px;display:flex}.captcha-key-row input{box-sizing:border-box;border:1px solid var(--line);color:#1f2937;background:#fff;border-radius:6px;outline:none;flex:1;min-width:0;padding:10px 12px}.captcha-key-row input:focus{border-color:#93b4f8;box-shadow:0 0 0 3px #2f6fed1f}.captcha-key-row .btn{white-space:nowrap;flex-shrink:0}.login-card .brand-row{align-items:center;gap:12px;margin-bottom:18px;display:flex}.login-card h1{margin:0;font-size:1.4rem}.login-card .lead{color:var(--muted);margin:0 0 20px;font-size:.9rem;line-height:1.5}.login-card .btn{margin-top:4px}.empty{color:var(--muted);text-align:center;padding:28px 8px;font-size:.9rem}.query-loading{color:var(--muted);text-align:center;justify-content:center;align-items:center;gap:10px;padding:28px 8px;font-size:.9rem;display:flex}.query-loading.compact{padding:12px 8px}.query-loading-spinner{border:2px solid color-mix(in srgb, var(--primary) 22%, transparent);border-top-color:var(--primary);border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.7s linear infinite query-spin}@keyframes query-spin{to{transform:rotate(360deg)}}.error{color:var(--danger);background:var(--danger-soft);border-radius:10px;margin-bottom:12px;padding:10px 12px;font-size:.88rem}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes modal-in{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-overlay{z-index:80;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-backdrop{cursor:pointer;background:#0f172a5c;border:none;position:absolute;inset:0}.modal-dialog{width:min(560px,100%);max-height:min(calc(88 * var(--app-layout-height-unit)), 720px);background:#fff;border-radius:16px;flex-direction:column;animation:.22s both modal-in;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 64px #0f172a2e}.modal-dialog.sm{width:min(420px,100%)}.modal-head{border-bottom:1px solid var(--line);background:linear-gradient(#f7faff,#fff);justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 14px;display:flex}.modal-head h3{margin:0;font-size:1.05rem}.modal-head p{color:var(--muted);margin:4px 0 0;font-size:.8rem}.modal-close{color:#6b7280;background:0 0;border:none;border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.modal-close:hover{color:var(--ink);background:#f3f4f6}.modal-body{padding:18px 20px;overflow:auto}.modal-foot{border-top:1px solid var(--line);background:#fafbfd;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;padding:14px 20px 18px;display:flex}.modal-foot.split{justify-content:space-between}.modal-grid{grid-template-columns:1fr 1fr;gap:0 14px;display:grid}.modal-grid .field{margin-bottom:12px}.modal-grid .span-2{grid-column:1/-1}.modal-foot-actions{gap:10px;margin-left:auto;display:flex}.agents-page{flex-direction:column;gap:14px;display:flex}.agents-page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.agents-page-head h2{margin:0;font-size:1.35rem;line-height:1.3}.agents-page-head p{color:var(--muted);max-width:560px;margin:6px 0 0;font-size:.9rem;line-height:1.5}.agents-page-title{flex:1;min-width:0}.agents-page-actions{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;display:flex}.agents-page table.data th,.agents-page table.data td{vertical-align:middle;padding:14px 16px}.agents-page table.data td.action-links{white-space:nowrap}.agents-page .row-ops{align-items:center;gap:8px;min-height:32px;display:inline-flex}.agents-page .row-ops button{height:32px;color:var(--primary);background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;padding:0 10px;font-size:.85rem;font-weight:600;line-height:1;display:inline-flex}.agents-page .row-ops button:hover{background:var(--primary-soft);border-color:#c7d7f8}.agents-page .row-ops button.danger{color:var(--danger)}.agents-page .row-ops button.danger:hover{background:var(--danger-soft);border-color:#fecaca}.cap-tag{border-radius:6px;align-items:center;margin-right:6px;padding:2px 8px;font-size:.75rem;font-weight:650;line-height:1.4;display:inline-flex}.cap-tag.skills{color:#15803d;background:#e8f7ef}.cap-tag.mcp{color:#6d28d9;background:#f1ecff}.agents-pager{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 14px;font-size:.85rem;display:flex}.agents-pager-btns{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.agents-section{padding:18px}.agents-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.agents-section-head h3{margin:0;font-size:1.05rem;line-height:1.3}.agents-section-head p{color:var(--muted);margin:6px 0 0;font-size:.88rem;line-height:1.5}.agents-path{color:#4b5563;background:#f3f4f6;border-radius:6px;margin-left:8px;padding:1px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;display:inline-block}.agents-section-subhead{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 12px;display:flex}.agents-section-subhead h4{margin:0;font-size:.95rem}.agents-endpoint{text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;word-break:break-all;color:#4b5563;max-width:280px;font-size:.78rem;display:inline-block;overflow:hidden}.mcp-server-list{flex-direction:column;gap:10px;display:flex}.mcp-server-card{border:1px solid var(--line);background:#fff;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 16px;display:flex}.mcp-server-card:hover{border-color:color-mix(in srgb, var(--primary) 28%, var(--line));background:#fafbff}.mcp-server-main{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.mcp-server-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.mcp-server-identity{min-width:0}.mcp-server-name{word-break:break-word;font-size:.98rem;font-weight:650;line-height:1.35;display:block}.mcp-server-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:2px 0;margin-top:4px;font-size:.8rem;line-height:1.4;display:flex}.mcp-server-meta>span{white-space:nowrap}.mcp-dot{color:#c4c9d4;margin:0 6px}.mcp-server-url{color:#4b5563;white-space:nowrap;text-overflow:ellipsis;background:#f4f6f9;border-radius:8px;max-width:100%;padding:6px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem;line-height:1.4;display:block;overflow:hidden}.mcp-server-error{color:var(--danger);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.78rem;line-height:1.4;display:-webkit-box;overflow:hidden}.mcp-server-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.mcp-tools-count{color:var(--muted);flex-shrink:0;font-size:.78rem;font-weight:600}.mcp-tools-empty{color:var(--muted);font-size:.8rem}.mcp-tool-chips{flex-wrap:wrap;gap:6px;min-width:0;display:flex}.mcp-tool-chip{border:1px solid var(--line);color:#374151;white-space:nowrap;text-overflow:ellipsis;background:#fff;border-radius:6px;max-width:160px;padding:3px 9px;font-size:.75rem;font-weight:550;line-height:1.35;overflow:hidden}.mcp-tool-more{color:var(--muted);align-self:center;font-size:.75rem}.mcp-server-actions{flex-direction:column;flex-shrink:0;gap:4px;padding-top:2px;display:flex}.mcp-server-actions button{appearance:none;color:var(--primary);cursor:pointer;text-align:right;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:.82rem;font-weight:600}.mcp-server-actions button:hover{background:var(--primary-soft)}.mcp-server-actions button.danger{color:var(--danger)}.mcp-server-actions button.danger:hover{background:var(--danger-soft)}@container app-layout (width<=720px){.mcp-server-card{flex-direction:column;gap:12px}.mcp-server-actions{border-top:1px solid var(--line);flex-flow:wrap;width:100%;padding-top:10px}.mcp-server-actions button{text-align:center}}.agents-upload-card{border:1px solid var(--line);background:#fafbfd;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px;padding:16px;display:flex}.agents-upload-card strong{margin-bottom:4px;display:block}.agents-upload-card p{color:var(--muted);max-width:480px;margin:0;font-size:.85rem}.agents-upload-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.agents-upload-actions input[type=text],.agents-upload-actions>input:not([type]){border:1px solid var(--line);border-radius:8px;min-width:200px;padding:8px 10px;font-size:.88rem}.agents-overwrite{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:.82rem;display:inline-flex}.skill-card-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;display:grid}.skill-card{border:1px solid var(--line);box-sizing:border-box;background:#fff;border-radius:12px;flex-direction:column;gap:8px;min-width:0;padding:14px;display:flex;overflow:visible}.skill-card-top{flex-direction:column;align-items:stretch;gap:8px;min-width:0;display:flex}.skill-card-head{justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;display:flex}.skill-card-title{word-break:break-word;flex:1;min-width:0;font-size:.95rem;line-height:1.35;display:block}.skill-card-actions{white-space:nowrap;flex-shrink:0;align-items:center;gap:10px;display:inline-flex}.skill-card-actions button{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:.85rem;font-weight:600;line-height:1.4}.skill-card-actions button:hover{text-decoration:underline}.skill-card-actions button.danger{color:var(--danger)}.skill-card-tags{flex-wrap:wrap;justify-content:flex-start;gap:4px;max-width:100%;display:flex}.skill-card-desc{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.85rem;line-height:1.45;display:-webkit-box;overflow:hidden}.skill-card-meta{overflow-wrap:anywhere;word-break:break-word;min-width:0}.skill-card-path{color:#6b7280;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem;overflow:hidden}.agents-modal{width:min(720px,100%);max-height:min(calc(90 * var(--app-layout-height-unit)), 860px)}.agents-modal-wide{width:min(1080px,100%)}.skill-package-editor{grid-template-columns:minmax(180px,240px) 1fr;gap:12px;min-height:420px;display:grid}.skill-package-tree{border:1px solid var(--line);background:color-mix(in srgb, var(--panel,#fff) 92%, var(--line));max-height:min(calc(58 * var(--app-layout-height-unit)), 520px);border-radius:10px;padding:10px;overflow:auto}.skill-package-tree-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.skill-package-tree-head strong{font-size:.85rem}.skill-package-tree-actions{gap:8px;display:flex}.skill-package-dir{color:var(--muted);word-break:break-all;margin-bottom:8px;font-size:.72rem}.skill-package-file-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.skill-package-file-list li{border-radius:6px;align-items:center;gap:4px;display:flex}.skill-package-file-list li.active{background:color-mix(in srgb, var(--primary) 12%, transparent)}.skill-package-file-btn{text-align:left;cursor:pointer;min-width:0;color:inherit;background:0 0;border:none;flex:1;align-items:center;gap:6px;padding:6px 8px;font-size:.78rem;display:flex}.skill-package-file-btn span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.skill-package-file-btn em{color:var(--primary);flex-shrink:0;font-size:.68rem;font-style:normal}.skill-package-file-del{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1rem;line-height:1}.skill-package-file-del:hover{color:#c0392b}.skill-package-main .agents-yaml:not(.skill-md-textarea){min-height:400px}.skill-md-editor{flex-direction:column;gap:10px;display:flex}.skill-md-section{border:1px solid var(--line);border-radius:10px;overflow:hidden}.skill-md-section-toggle{cursor:pointer;text-align:left;width:100%;color:inherit;font:inherit;background:0 0;border:none;align-items:center;gap:8px;padding:9px 12px;display:flex}.skill-md-section-toggle:hover{filter:brightness(.98)}.skill-md-chevron{color:#6b7280;flex-shrink:0;place-items:center;transition:transform .15s;display:grid}.skill-md-chevron.collapsed{transform:rotate(-90deg)}.skill-md-section-title{font-size:.84rem;font-weight:600}.skill-md-section-hint{color:var(--muted);margin-left:auto;font-size:.72rem}.skill-md-frontmatter{background:#e8eef5}.skill-md-frontmatter .skill-md-section-toggle{background:#dde6f0;border-bottom:1px solid #94a3b859}.skill-md-frontmatter.is-collapsed .skill-md-section-toggle{border-bottom:none}.skill-md-body{background:#f3f7ef}.skill-md-body .skill-md-section-toggle{background:#e7efe0;border-bottom:1px solid #94a3b847}.skill-md-body.is-collapsed .skill-md-section-toggle{border-bottom:none}.skill-md-textarea{box-sizing:border-box;resize:vertical;width:100%;display:block;background:0 0!important;border:none!important;border-radius:0!important;min-height:180px!important;padding:10px 12px!important}.skill-package-main .skill-md-textarea{min-height:200px!important}.skill-md-frontmatter .skill-md-textarea{background:#f2f6fb!important}.skill-md-body .skill-md-textarea{background:#f8fbf5!important;min-height:240px!important}@container app-layout (width<=800px){.skill-package-editor{grid-template-columns:1fr}.skill-package-tree{max-height:180px}}.agents-bind-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.agents-bind-head label{margin:0}.linkish{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:.82rem}.linkish:hover{text-decoration:underline}.agents-bind-list{flex-direction:column;gap:10px;max-height:220px;display:flex;overflow:auto}.agents-skill-pick{-webkit-overflow-scrolling:touch;flex-direction:column;gap:8px;max-height:220px;padding:2px 2px 4px;display:flex;overflow:auto}.agents-skill-chip{text-align:left;white-space:normal;box-sizing:border-box;border-radius:10px;justify-content:flex-start;align-items:center;width:100%;min-height:36px;line-height:1.35;display:flex}.agents-bind-item{border:1px solid var(--line);cursor:pointer;border-radius:10px;align-items:flex-start;gap:10px;padding:10px;display:flex}.agents-bind-item input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary);flex-shrink:0;margin-top:3px}.agents-bind-meta{flex:1;min-width:0}.agents-bind-meta strong{font-size:.9rem;display:block}.agents-yaml{min-height:320px;line-height:1.45;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-size:.82rem!important}.agents-check{cursor:pointer;align-items:center;gap:8px;font-size:.9rem;display:inline-flex}.agents-modal-checks{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;display:flex}.field-hint{color:var(--muted);margin-top:6px;font-size:.78rem;line-height:1.4;display:block}.confirm-box{align-items:flex-start;gap:14px;padding:4px 0 2px;display:flex}.confirm-icon{background:var(--danger-soft);width:44px;height:44px;color:var(--danger);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.confirm-box strong{margin-bottom:6px;font-size:.95rem;display:block}.confirm-box p{color:var(--muted);margin:0;font-size:.84rem;line-height:1.5}.users-page .page-card-head{background:radial-gradient(1200px 180px at 100% -20%,#2f6fed1f,#0000 55%),linear-gradient(#f7faff,#fff)}.users-page .icon-tile{width:48px;height:48px;color:var(--primary);background:linear-gradient(145deg,#e8f0ff,#dbe7ff);border-radius:14px;font-size:0;box-shadow:inset 0 0 0 1px #2f6fed1f}.users-page .page-card-head h2{letter-spacing:.01em;font-size:1.28rem}.users-page .page-card-head p{max-width:520px;line-height:1.5}.role-pill{color:#4b5563;background:#f3f4f6;border-radius:999px;align-items:center;padding:4px 10px;font-size:.78rem;font-weight:700;display:inline-flex}.role-pill.admin{color:var(--purple);background:#f1ecff}.role-pill.doctor{background:var(--primary-soft);color:var(--primary)}.role-pill.nurse{color:#059669;background:#ecfdf5}.role-pill.qc{background:var(--warn-soft);color:var(--warn)}.status-toggle{cursor:pointer;border:none;transition:transform .15s,box-shadow .15s}.status-toggle:hover{transform:translateY(-1px);box-shadow:0 4px 10px #0f172a14}.row-actions{align-items:center;gap:8px;display:inline-flex}.row-action{border:1px solid var(--line);color:#475569;background:#fff;border-radius:10px;place-items:center;width:38px;height:38px;transition:background .15s,border-color .15s,color .15s,transform .15s,box-shadow .15s;display:grid}.row-action:hover{background:var(--primary-soft);color:var(--primary);border-color:#bfd0f8;transform:translateY(-1px);box-shadow:0 4px 12px #2f6fed1f}.row-action.warn{color:#b45309;background:#fffaf2;border-color:#f3e0c2}.row-action.warn:hover{background:var(--warn-soft);color:var(--warn);border-color:#f0c987;box-shadow:0 4px 12px #d977061f}.row-action.danger{color:#b91c1c;background:#fff7f7;border-color:#f3c7c7}.row-action.danger:hover{background:var(--danger-soft);color:var(--danger);border-color:#efb0b0;box-shadow:0 4px 12px #dc26261f}.row-action:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}.filter-bar{border-bottom:1px solid var(--line);background:linear-gradient(#fcfdff,#fff);flex-wrap:wrap;align-items:center;gap:12px 18px;padding:16px 20px 12px;display:flex}.filter-group{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.filter-group .label{color:var(--muted);margin-right:2px;font-size:.78rem;font-weight:600}.filter-select{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:10px;min-width:150px;padding:9px 12px}.users-page .toolbar{background:#fff;gap:12px;padding:12px 20px 16px}.users-page .search{border-radius:12px;padding:10px 14px;box-shadow:inset 0 0 0 1px #0000}.users-page .search:focus-within{border-color:#93b4f8;box-shadow:0 0 0 3px #2f6fed1f}.users-page table.data th{letter-spacing:.02em;padding:14px 16px;font-size:.8rem}.users-page table.data td{padding:14px 16px}.users-page .chip{border-radius:999px;padding:7px 14px;transition:background .15s,border-color .15s,color .15s}.users-page .chip .count{text-align:center;min-width:18px;margin-left:6px}@container app-layout (width<=640px){.modal-grid{grid-template-columns:1fr}.modal-grid .span-2{grid-column:auto}.row-actions{gap:6px}.row-action{width:36px;height:36px}}.doctor-shell{height:calc(100 * var(--app-layout-height-unit));max-height:calc(100 * var(--app-layout-height-unit));background:#f2f3f5;grid-template-rows:minmax(0,1fr);grid-template-columns:64px 1fr;width:100%;min-width:1100px;min-height:0;transition:grid-template-columns .2s;overflow:hidden}.doctor-shell.rail-expanded{grid-template-columns:168px 1fr;min-width:1200px}.doctor-shell.no-rail,.doctor-shell.no-rail.rail-expanded{grid-template-columns:1fr;min-width:1100px}.ws-patient-draft-note{color:var(--muted);background:#f4f7fc;border-radius:10px;margin:0 0 12px;padding:10px 12px;font-size:.8rem;line-height:1.6}.doctor-shell.is-mobile,.doctor-shell.is-mobile.rail-expanded{min-width:0}.icon-rail{z-index:50;background:#fafafa;border-right:1px solid #ebebeb;flex-direction:column;align-self:stretch;align-items:center;gap:8px;height:auto;min-height:0;max-height:100%;padding:14px 0;transition:padding .2s;display:flex;position:sticky;top:0;overflow:hidden auto}.icon-rail.expanded{align-items:stretch;padding:14px 10px}.rail-brand{color:#1f2329;background:0 0;border:none;place-items:center;width:40px;height:40px;margin-bottom:10px;padding:0;display:grid;position:relative}.icon-rail.expanded .rail-brand{grid-template-columns:28px 1fr auto;justify-items:start;gap:10px;width:auto;height:40px;padding:0 6px}.rail-brand-name{letter-spacing:.02em;white-space:nowrap;font-size:.92rem;font-weight:700}.rail-collapse-chevron{color:#8b8f97;place-items:center;transition:transform .2s;display:grid;transform:rotate(90deg)}.rail-collapse-chevron.collapsed{transform:rotate(-90deg)}.icon-rail:not(.expanded) .rail-collapse-chevron{background:#fafafa;border-radius:50%;width:14px;height:14px;font-size:0;position:absolute;bottom:-2px;right:-2px}.rail-logo{background:conic-gradient(from 210deg,#3b82f6,#22c55e,#f59e0b,#6366f1,#3b82f6);border-radius:8px;flex-shrink:0;width:28px;height:28px;-webkit-mask:radial-gradient(circle,#0000 34%,#000 35%);mask:radial-gradient(circle,#0000 34%,#000 35%)}.rail-nav{flex-direction:column;flex:1;align-items:center;gap:4px;display:flex}.icon-rail.expanded .rail-nav{align-items:stretch}.rail-link{color:#8b8f97;border-radius:12px;place-items:center;width:42px;height:42px;transition:background .15s,color .15s;display:grid}.icon-rail.expanded .rail-link{grid-template-columns:22px 1fr;place-items:center start;gap:10px;width:auto;padding:0 12px}.rail-link-label{white-space:nowrap;color:inherit;font-size:.88rem;font-weight:500}.rail-link:hover{color:#3f4450;background:#f0f0f0}.rail-link.active{color:#1f2329;background:#eceff3}.rail-footer{align-items:center;gap:10px;margin-top:auto;padding-bottom:6px;display:flex}.icon-rail.expanded .rail-footer{padding:0 6px 6px}.icon-rail.expanded .rail-footer .profile-menu{width:100%}.icon-rail.expanded .rail-footer .profile-trigger{padding:6px 8px}.rail-avatar{color:#fff;background:linear-gradient(145deg,#5b8def,#3b6fd9);border:none;border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;font-size:.9rem;font-weight:700;display:grid}.rail-avatar.active{box-shadow:0 0 0 3px #3b6fd940}.rail-user-meta{text-align:left;background:0 0;border:none;flex-direction:column;gap:2px;min-width:0;padding:0;display:flex}.rail-user-meta strong{color:#1f2329;white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.rail-user-meta span{color:#8b8f97;font-size:.72rem}.doctor-body{flex-direction:column;align-self:stretch;min-width:0;height:auto;min-height:0;max-height:100%;padding:12px 12px 12px 0;display:flex;overflow:hidden}.doctor-body.is-workstation{padding:12px 12px 12px 0}.doctor-stage{background:#fff;border:1px solid #0000000a;border-radius:16px;flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000000a,0 8px 24px #0f172a0a}.doctor-stage-head{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;gap:16px;padding:16px 22px;display:flex}.doctor-stage-head h1{text-overflow:ellipsis;white-space:nowrap;margin:0;padding-right:4px;font-size:1.05rem;font-weight:700;overflow:hidden}.doctor-stage-head>div{min-width:0}.doctor-stage-head p{color:#8b8f97;margin:4px 0 0;font-size:.78rem}.doctor-stage-meta{align-items:center;gap:10px;display:flex}.doctor-stage-body{flex:1;padding:18px 20px 28px;overflow:auto}.doctor-user-chip{color:inherit;cursor:pointer;background:#f5f6f8;border:none;border-radius:999px;align-items:center;gap:8px;padding:4px 10px 4px 4px;font-size:.82rem;font-weight:600;display:inline-flex}.doctor-user-chip:hover{background:#eceff3}.doctor-user-chip i{color:#fff;background:#5b8def;border-radius:50%;place-items:center;width:26px;height:26px;font-size:.75rem;font-style:normal;display:grid}.doctor-user-chip em{color:#8b8f97;font-size:.72rem;font-style:normal;font-weight:500}.settings-check{color:#374151;cursor:pointer;align-items:center;gap:10px;padding:10px 0;font-size:.9rem;display:flex}.settings-check input{width:16px;height:16px}.ws-layout{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:56px 268px 1fr;gap:0;min-width:0;height:auto;min-height:0;transition:grid-template-columns .2s;display:grid;overflow:hidden}.ws-layout.list-collapsed{grid-template-columns:56px 52px 1fr}.ws-layout.no-conv-list,.ws-layout.no-conv-list.list-collapsed{grid-template-columns:56px 1fr}.ws-layout.no-conv-list .ws-list,.ws-layout.no-conv-list .ws-list-backdrop{display:none!important}.ws-nav{z-index:4;background:#fafafa;border-right:1px solid #ebebeb;flex-direction:column;align-items:center;gap:8px;min-width:0;height:100%;min-height:0;padding:14px 0;display:flex;overflow:hidden auto}.ws-nav-brand{color:#1f2329;background:0 0;border:none;flex-shrink:0;place-items:center;width:40px;height:40px;margin:0 0 10px;padding:0;display:grid}.ws-nav-logo{background:conic-gradient(from 210deg,#3b82f6,#22c55e,#f59e0b,#6366f1,#3b82f6);border-radius:8px;flex-shrink:0;width:28px;height:28px;-webkit-mask:radial-gradient(circle,#0000 34%,#000 35%);mask:radial-gradient(circle,#0000 34%,#000 35%)}.ws-nav-actions{flex-direction:column;flex:1;align-items:center;gap:4px;width:100%;min-height:0;padding:0;display:flex}.ws-nav-item{color:#8b8f97;width:42px;height:42px;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:12px;flex-shrink:0;place-items:center;padding:0;text-decoration:none;transition:background .15s,color .15s;display:grid}.ws-nav-item svg{width:20px;height:20px;color:inherit}.ws-nav-item:hover:not(:disabled),.ws-nav-item:focus-visible:not(:disabled){color:#3f4450;background:#f0f0f0}.ws-nav-item.active{color:#1f2329;background:#eceff3}.ws-nav-item:disabled{opacity:.42;cursor:not-allowed}.ws-list{flex-direction:column;min-width:0;height:100%;min-height:0;padding:4px 8px 8px 12px;transition:padding .2s;display:flex;overflow:hidden}.ws-layout.list-collapsed .ws-list{padding:4px 6px 8px}.ws-list-head{justify-content:space-between;align-items:center;padding:10px 8px 12px;display:flex}.ws-layout.list-collapsed .ws-list-head{flex-direction:column;gap:8px;padding:10px 0 8px}.ws-list-title{color:#1f2329;background:0 0;border:none;align-items:center;gap:6px;padding:0;font-size:1rem;font-weight:700;display:inline-flex}.ws-list-title .ws-list-chevron{color:#8b8f97;place-items:center;transition:color .15s;display:inline-grid}.ws-list-title:hover .ws-list-chevron{color:#1f2329}.ws-list-history-icon{color:#5b6470;place-items:center;display:grid}.ws-list-title-stack{letter-spacing:.04em;flex-direction:column;align-items:center;gap:1px;font-size:.78rem;line-height:1.25;display:flex}.ws-layout.list-collapsed .ws-list-title{writing-mode:horizontal-tb;letter-spacing:normal;flex-direction:column;gap:8px;padding:6px 0}.ws-layout.list-collapsed .ws-list-body{display:none}.ws-layout.list-collapsed .ws-list-head .ws-icon-btn{width:32px;height:32px}.ws-list-body{flex-direction:column;flex:1;gap:10px;min-height:0;padding-right:4px;display:flex;overflow:auto}.ws-list-section{flex-direction:column;gap:2px;display:flex}.ws-list-section-label{color:#8b8f97;letter-spacing:.04em;padding:4px 10px 6px;font-size:.72rem;font-weight:700}.ws-conv{text-align:left;width:100%;color:inherit;background:0 0;border:none;border-radius:12px;grid-template-columns:42px 1fr;align-items:center;gap:10px;padding:10px;transition:background .15s;display:grid}.ws-conv:hover{background:#00000009}.ws-conv.active{background:#e8eaed}.ws-conv-wrap{border-radius:12px;grid-template-columns:1fr auto;align-items:stretch;display:grid;position:relative}.ws-conv-wrap:hover{background:#00000009}.ws-conv-wrap.is-active{background:#e8f0ff;box-shadow:inset 3px 0 #3b6fd9}.ws-conv-wrap.is-active:hover{background:#e8f0ff}.ws-conv-wrap .ws-conv{border-radius:12px 0 0 12px}.ws-conv-wrap .ws-conv:hover,.ws-conv-wrap .ws-conv.active{background:0 0}.ws-conv-del{color:#a0a4ab;opacity:0;cursor:pointer;background:0 0;border:none;border-radius:0 12px 12px 0;place-items:center;width:34px;transition:opacity .15s,color .15s,background .15s;display:grid}.ws-conv-wrap:hover .ws-conv-del,.ws-conv-wrap.is-active .ws-conv-del,.ws-conv-del:focus-visible{opacity:1}.ws-conv-del:hover{color:#b91c1c;background:#feecec}.ws-conv-main{min-width:0}.ws-conv-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.ws-conv-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:700;overflow:hidden}.ws-conv-row time{color:#a0a4ab;flex-shrink:0;font-size:.72rem}.ws-conv-preview{color:#8b8f97;white-space:nowrap;text-overflow:ellipsis;margin-top:3px;font-size:.78rem;overflow:hidden}.ws-avatar{color:#fff;border-radius:10px;flex-shrink:0;place-items:center;width:42px;height:42px;font-size:.95rem;font-weight:700;display:grid}.ws-avatar.sm{border-radius:50%;width:32px;height:32px;font-size:.75rem}.ws-avatar.tone-pink{background:linear-gradient(145deg,#f472b6,#ec4899)}.ws-avatar.tone-blue{background:linear-gradient(145deg,#60a5fa,#3b82f6)}.ws-avatar.tone-green{background:linear-gradient(145deg,#4ade80,#22c55e)}.ws-avatar.tone-orange{background:linear-gradient(145deg,#fb923c,#f97316)}.ws-avatar.tone-purple{background:linear-gradient(145deg,#a78bfa,#8b5cf6)}.ws-avatar.tone-teal{background:linear-gradient(145deg,#2dd4bf,#14b8a6)}.ws-main{background:#fff;border:1px solid #0000000a;border-radius:16px;flex-direction:column;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000000a,0 10px 28px #0f172a0d}.ws-main-head{border-bottom:1px solid #f0f0f0;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.ws-main-title{align-items:center;gap:12px;min-width:0;display:flex}.ws-main-title h2{align-items:center;gap:8px;margin:0;font-size:1rem;font-weight:700;display:flex}.ws-main-title p{color:#8b8f97;white-space:nowrap;text-overflow:ellipsis;max-width:560px;margin:3px 0 0;font-size:.78rem;overflow:hidden}.ws-inline-tag{color:#3b6fd9;background:#f0f5ff;border-radius:999px;align-items:center;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-flex}.ws-icon-btn{color:#6b7280;background:0 0;border:none;border-radius:10px;place-items:center;width:34px;height:34px;display:grid}.ws-icon-btn:hover,.ws-icon-btn.active{color:#1f2329;background:#f3f4f6}.ws-icon-btn:disabled{opacity:.35;cursor:not-allowed}.ws-icon-btn:disabled:hover{color:#6b7280;background:0 0}.ws-workspace{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:1fr;height:100%;min-height:0;display:grid}.ws-workspace.with-draft,.ws-workspace.with-history{grid-template-columns:minmax(0, 1fr) 6px min(var(--ws-side-width,360px), 64%)}.ws-workspace.with-draft{grid-template-columns:minmax(0, 1fr) 6px min(var(--ws-side-width,560px), 64%)}.ws-side-resizer{cursor:col-resize;z-index:3;touch-action:none;background:0 0;border:none;width:6px;margin:0;padding:0;position:relative}.ws-side-resizer:before{content:"";background:0 0;width:10px;position:absolute;top:0;bottom:0;left:-2px}.ws-side-resizer:hover,.ws-side-resizer.is-dragging{background:#3b6fd929}.ws-side-resizer:after{content:"";opacity:.7;background:#9db4e8;border-radius:2px;width:2px;height:36px;margin-top:-18px;position:absolute;top:50%;left:2px}.ws-chat{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.ws-thread{flex-direction:column;flex:1;gap:18px;min-height:0;padding:18px 22px 8px;display:flex;overflow:auto}.ws-msg{align-items:flex-start;gap:10px;max-width:100%;animation:.3s both rise;display:flex}.ws-msg.role-user{flex-direction:row;justify-content:flex-end}.ws-msg.role-agent,.ws-msg.role-system{flex-direction:row;justify-content:flex-start}.ws-msg.role-system{justify-content:center}.ws-msg.role-system .ws-avatar{display:none}.ws-msg-body{flex-direction:column;min-width:0;max-width:min(78%,560px);display:flex}.ws-msg.role-user .ws-msg-body{align-items:flex-end}.ws-msg.role-agent .ws-msg-body,.ws-msg.role-system .ws-msg-body{align-items:flex-start}.ws-msg.role-system .ws-msg-body{align-items:center;max-width:88%}.ws-msg-meta{align-items:baseline;gap:8px;margin-bottom:6px;display:flex}.ws-msg.role-user .ws-msg-meta{flex-direction:row-reverse}.ws-msg-meta strong{font-size:.82rem;font-weight:700}.ws-msg-meta time{color:#a0a4ab;font-size:.72rem}.ws-mode-tag{letter-spacing:.02em;border-radius:4px;align-items:center;padding:1px 7px;font-size:.66rem;font-weight:700;display:inline-flex}.ws-mode-tag.qa{color:#0f766e;background:#ecfdf5}.ws-mode-tag.workflow{color:#475569;background:#f1f5f9}.ws-avatar.tone-amber{color:#b45309;background:#fef3c7}.ws-msg.mode-action .ws-msg-body{max-width:min(100%,420px)}.ws-msg.role-user.mode-action .ws-msg-body{align-items:flex-end}.ws-action-chip{border-radius:999px;align-items:center;padding:6px 12px;font-size:.8rem;font-weight:600;display:inline-flex}.ws-action-chip.user{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe}.ws-action-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.ws-action-card.streaming{border-color:#fcd34d}.ws-action-card.status-ok{background:#f0fdf4;border-color:#86efac}.ws-action-card.status-fail{background:#fef2f2;border-color:#fca5a5}.ws-action-card.status-pending{background:#fffbeb;border-color:#fde68a}.ws-action-card-head{border-bottom:1px solid #0000000a;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 12px;font-size:.78rem;display:flex}.ws-action-card-head strong{color:#334155;font-weight:700}.ws-action-card.status-ok .ws-action-card-head strong{color:#15803d}.ws-action-card.status-fail .ws-action-card-head strong{color:#b91c1c}.ws-action-card.status-pending .ws-action-card-head strong{color:#b45309}.ws-action-card-head time{color:#94a3b8;font-size:.7rem}.ws-action-card-body{color:#1f2937;padding:10px 12px 12px;font-size:.86rem;line-height:1.5}.ws-material-suggest-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.ws-msg.mode-qa .ws-msg-body,.ws-msg.mode-workflow .ws-msg-body{max-width:min(100%,640px)}.ws-routing{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;align-items:center;gap:8px;padding:10px 14px;font-size:.84rem;display:inline-flex}.ws-routing-dot{background:#0f766e;border-radius:50%;width:8px;height:8px;animation:1s ease-in-out infinite ws-routing-pulse}@keyframes ws-routing-pulse{0%,to{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.ws-turn{gap:12px;width:100%;max-width:100%;display:grid}.ws-agent-say{color:#1f2937;white-space:pre-wrap;word-break:break-word;margin:0;padding:0;font-size:.92rem;line-height:1.65}.ws-agent-say.muted{color:#6b7280}.ws-agent-answer{color:#1f2937;white-space:pre-wrap;word-break:break-word;font-size:.92rem;line-height:1.65}.ws-agent-answer.streaming{color:#1f2937}.ws-agent-answer:has(.ws-msg-rich){white-space:normal}.ws-status-block{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;gap:8px;padding:12px 14px;display:grid}.ws-status-block.running{background:#f8fafc;border-color:#e8eef5}.ws-status-block.done{background:#f3fbf7;border-color:#d1fae5}.ws-status-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ws-status-head strong{color:#111827;font-size:.88rem;font-weight:700}.ws-status-block.done .ws-status-head strong{color:#047857}.ws-status-tag{color:#0f766e;background:#ecfdf5;border-radius:999px;margin-left:auto;padding:2px 8px;font-size:.72rem;font-style:normal;font-weight:600}.ws-status-icon{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:.72rem;font-weight:700;display:inline-flex}.ws-status-icon.running{color:#0f766e;background:#ecfdf5;animation:1.4s ease-in-out infinite ws-workflow-pulse;box-shadow:0 0 0 3px #0f766e1a}.ws-status-icon.done{color:#047857;background:#d1fae5}.ws-status-detail{color:#6b7280;margin:0;font-size:.82rem;line-height:1.5}.ws-status-steps{gap:6px;margin:4px 0 0;padding:0;list-style:none;display:grid}.ws-status-step{grid-template-columns:20px 1fr;align-items:start;gap:8px;display:grid}.ws-status-step-mark{color:#15803d;background:#e8f8ee;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;margin-top:1px;font-size:.68rem;font-weight:700;display:inline-flex}.ws-status-step.status-running .ws-status-step-mark{color:#0f766e;background:#ecfdf5}.ws-status-step.status-fail .ws-status-step-mark{color:#b91c1c;background:#feecec}.ws-status-step-body{gap:1px;min-width:0;display:grid}.ws-status-step-body strong{color:#1f2937;font-size:.84rem;font-weight:600}.ws-status-step.status-running .ws-status-step-body strong{color:#0f766e}.ws-status-step-body em{color:#6b7280;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.74rem;font-style:normal;line-height:1.4;display:-webkit-box;overflow:hidden}.ws-result-panel{background:#f3fbf7;border:1px solid #bbf7d0;border-radius:16px;padding:4px;overflow:hidden}.ws-result-panel.streaming{background:#fff;border-color:#e5e7eb;padding:0}.ws-result-deliver{gap:6px;padding:12px 12px 4px;display:grid}.ws-result-card{background:#fff;border:1px solid #e8eef5;border-radius:12px;overflow:hidden}.ws-result-panel.streaming .ws-result-card{border:none;border-radius:0}.ws-result-panel-head{align-items:flex-start;gap:12px;padding:14px 14px 0;display:flex}.ws-result-panel-icon{color:#0f766e;background:#ecfdf5;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.ws-result-panel-icon svg{width:20px;height:20px}.ws-result-panel-meta{gap:2px;min-width:0;padding-top:2px;display:grid}.ws-result-panel-meta strong{color:#111827;font-size:.9rem;font-weight:700}.ws-result-panel-meta span{color:#6b7280;font-size:.76rem;line-height:1.4}.ws-result-panel-body{color:#1f2937;padding:14px;font-size:.88rem;line-height:1.55}.ws-result-panel.streaming .ws-result-panel-body{padding:14px}.ws-result-panel-body.typing{color:#6b7280}.ws-result-card .ws-sources{margin:0 14px 14px}.ws-qa{gap:8px;display:grid}.ws-bubble.qa{background:#f0fdf9;border:1px solid #ccfbf1;border-radius:4px 14px 14px}.ws-sources.qa-sources{margin-top:2px}.ws-sources-label{color:#94a3b8;margin-bottom:6px;font-size:.7rem;font-weight:700}.ws-avatar.tone-slate{color:#334155;background:#e2e8f0}.ws-bubble{color:#1f2329;white-space:pre-wrap;word-break:break-word;background:#f5f5f5;border-radius:12px;max-width:100%;padding:12px 14px;font-size:.9rem;line-height:1.65;display:inline-block}.ws-msg.role-user .ws-bubble{color:#fff;background:#2f6fed;border-radius:12px 4px 12px 12px}.ws-msg.role-user .ws-mention{color:#fff;background:#ffffff2e}.ws-msg.role-user .ws-msg-md,.ws-msg.role-user .ws-msg-md h1,.ws-msg.role-user .ws-msg-md h2,.ws-msg.role-user .ws-msg-md h3,.ws-msg.role-user .ws-msg-md p,.ws-msg.role-user .ws-msg-md li{color:#fff}.ws-msg.role-agent .ws-bubble{background:#f3f4f6;border-radius:4px 12px 12px}.ws-bubble:has(.ws-msg-rich){white-space:normal}.ws-msg.role-system .ws-bubble{color:#9ca3af;text-align:center;background:#f3f4f6;border-radius:999px;padding:4px 10px;font-size:.78rem}.ws-route-chip{color:#4338ca;background:#eef2ff;border-radius:6px;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;margin-top:6px;padding:3px 8px;font-size:.72rem;line-height:1.4;display:inline-flex}.ws-route-chip em{color:#a5b4fc;font-style:normal}.ws-bubble.typing{color:#6b7280}.ws-thinking{color:#6b7280;align-items:center;gap:8px;font-size:.88rem;display:inline-flex}.ws-thinking-spinner{border:2px solid #0f766e38;border-top-color:#0f766e;border-radius:50%;flex-shrink:0;width:14px;height:14px;animation:.65s linear infinite ws-workflow-spin}.ws-thinking-dots{align-items:center;gap:4px;display:inline-flex}.ws-thinking-dots span{opacity:.35;background:#0f766e;border-radius:50%;width:5px;height:5px;animation:1.05s ease-in-out infinite ws-thinking-bounce}.ws-thinking-dots span:nth-child(2){animation-delay:.15s}.ws-thinking-dots span:nth-child(3){animation-delay:.3s}@keyframes ws-thinking-bounce{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}.ws-msg-rich{white-space:normal}.ws-msg-md{gap:.55rem;display:grid}.ws-msg-md h1,.ws-msg-md h2,.ws-msg-md h3{color:#111827;margin:0;font-weight:700;line-height:1.35}.ws-msg-md h1{font-size:1.05rem}.ws-msg-md h2{font-size:.98rem}.ws-msg-md h3{font-size:.92rem}.ws-msg-md p{margin:0}.ws-msg-md ul,.ws-msg-md ol{margin:0;padding-left:1.2rem}.ws-msg-md li{margin:.15rem 0}.ws-msg-md blockquote{color:#334155;background:#f0fdfa;border-left:3px solid #0f766e;border-radius:0 8px 8px 0;margin:0;padding:.4rem .75rem}.ws-msg-md code{background:#eef2f7;border-radius:4px;padding:.05em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84em}.ws-msg-md table{border-collapse:collapse;width:100%;font-size:.84rem}.ws-msg-md td{border:1px solid #e5e7eb;padding:.35rem .5rem}.ws-msg-media{gap:.75rem;margin-top:.75rem;display:grid}.ws-msg-media figure{margin:0}.ws-msg-media img,.ws-msg-media video{background:#0f172a0a;border-radius:10px;max-width:min(100%,420px);max-height:280px;display:block}.ws-msg-media figcaption{color:#6b7280;margin-top:.35rem;font-size:.78rem}.ws-attach-chips{flex-wrap:wrap;gap:8px;padding:0 4px 8px;display:flex}.ws-attach-chip{color:#334155;background:#f8fafc;border:1px solid #dbe3ee;border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:4px 8px 4px 10px;font-size:.78rem;display:inline-flex}.ws-attach-chip em{text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-style:normal;overflow:hidden}.ws-attach-chip small{color:#64748b}.ws-attach-chip .ws-attach-unbound{color:#b45309;background:#fffbeb;border-radius:4px;padding:0 5px;font-weight:600}.ws-attach-chip.status-uploading,.ws-attach-chip.status-parsing{background:#eff6ff;border-color:#93c5fd}.ws-attach-chip.status-error{color:#b91c1c;background:#fef2f2;border-color:#fca5a5}.ws-attach-chip.status-parsed{background:#f0fdfa;border-color:#99f6e4}.ws-attach-progress{background:#dbeafe;border-radius:999px;flex-shrink:0;width:36px;height:4px;display:inline-block;overflow:hidden}.ws-attach-progress i{border-radius:inherit;background:#3b82f6;height:100%;display:block}.ws-confirm-bar{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 10px;padding:10px 12px;display:flex}.ws-confirm-bar strong{color:#1e3a8a;font-size:.82rem;display:block}.ws-confirm-bar span{color:#64748b;font-size:.78rem}.ws-voice-mode{background:#fff;border:1px solid #e5e7eb;border-radius:999px;display:inline-flex;overflow:hidden}.ws-voice-mode button{color:#6b7280;background:0 0;border:0;padding:4px 10px;font-size:.72rem}.ws-voice-mode button.active{color:#1f3a8a;background:#e8eefc;font-weight:600}.ws-voice-mode button:disabled{opacity:.55;cursor:not-allowed}.ws-mic.state-listening{box-shadow:0 0 0 3px #3b82f640}.ws-mic.state-capturing{box-shadow:0 0 0 3px #ef444447}.ws-mic.state-transcribing{box-shadow:0 0 0 3px #f59e0b4d}.ws-mic.state-speaking{box-shadow:0 0 0 3px #10b9814d}.ws-attach-chip button{cursor:pointer;color:#94a3b8;background:0 0;border:0;padding:0 2px;font-size:1rem;line-height:1}.ws-attach-chip button.ws-attach-retry{color:inherit;font-size:.75rem;text-decoration:underline}.ws-mic.recording{color:#dc2626;background:#fef2f2;animation:1.2s ease-in-out infinite ws-mic-pulse}.ws-consult-rec{cursor:pointer;color:#94a3b8;background:0 0;border:none;border-radius:8px;align-items:center;gap:4px;padding:4px 6px;font-size:.75rem;font-weight:600;line-height:1;display:inline-flex}.ws-consult-rec:hover:not(:disabled){color:#dc2626;background:#fef2f2}.ws-consult-rec:disabled{opacity:.65;cursor:wait}.ws-consult-rec.recording{color:#dc2626;background:#fef2f2;animation:1.2s ease-in-out infinite ws-mic-pulse}.ws-consult-rec.busy{color:#d97706;background:#fffbeb}.ws-consult-rec.error{color:#b91c1c}.ws-consult-rec-time{font-variant-numeric:tabular-nums;min-width:2.4em}@keyframes ws-mic-pulse{0%,to{box-shadow:0 0 #dc262640}50%{box-shadow:0 0 0 6px #dc262600}}.ws-mention{color:#0f766e;background:#e6f6f3;border-radius:999px;align-items:center;margin-right:6px;padding:1px 8px;font-size:.82rem;font-weight:700;display:inline-flex}.ws-trace{flex-wrap:wrap;gap:6px;padding-left:42px;display:flex}.ws-trace-chip{color:#4b5563;background:#f3f4f6;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.72rem;font-weight:600;display:inline-flex}.ws-trace-chip.ok{color:#15803d;background:#e8f8ee}.ws-trace-chip.danger{color:#b91c1c;background:#feecec}.ws-trace-chip em{opacity:.7;font-style:normal}.ws-process{flex-wrap:wrap;gap:6px;margin:0 0 8px;display:flex}.ws-process-chip{color:#6b7280;background:#f3f4f6;border:1px solid #0000;border-radius:999px;align-items:center;gap:5px;padding:5px 10px;font-size:.72rem;font-weight:600;display:inline-flex}.ws-process-chip i{text-align:center;width:1em;font-style:normal}.ws-process-chip.status-pending{opacity:.55}.ws-process-chip.status-running{color:#0f766e;background:#ecfdf5;border-color:#a7f3d0}.ws-process-chip.status-done{color:#15803d;background:#e8f8ee}.ws-process-chip.status-skipped{opacity:.4}.ws-process-chip.status-fail{color:#b91c1c;background:#feecec}.ws-workflow{background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:min(100%,520px);overflow:hidden}.ws-workflow.running{border-color:#a7f3d0}.ws-workflow-head{color:#334155;background:#f8fafc;border-bottom:1px solid #eef2f7;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;font-size:.78rem;font-weight:700;display:flex}.ws-workflow-head em{color:#0f766e;font-size:.72rem;font-style:normal;font-weight:600}.ws-workflow-steps{margin:0;padding:8px 0;list-style:none}.ws-workflow-step{grid-template-columns:28px 1fr;gap:8px;padding:8px 14px;display:grid;position:relative}.ws-workflow-step:not(:last-child):after{content:"";background:#e5e7eb;width:1px;position:absolute;top:30px;bottom:-2px;left:26px}.ws-workflow-mark{color:#9ca3af;z-index:1;background:#f3f4f6;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:.72rem;font-weight:700;display:inline-flex}.ws-workflow-step.status-running .ws-workflow-mark,.ws-workflow-mark.is-running{color:#0f766e;background:#ecfdf5;animation:1.4s ease-in-out infinite ws-workflow-pulse;box-shadow:0 0 0 3px #0f766e1f}.ws-workflow-spinner{border:2px solid #0f766e38;border-top-color:#0f766e;border-radius:50%;width:10px;height:10px;animation:.65s linear infinite ws-workflow-spin}@keyframes ws-workflow-spin{to{transform:rotate(360deg)}}@keyframes ws-workflow-pulse{0%,to{box-shadow:0 0 0 3px #0f766e1f}50%{box-shadow:0 0 0 5px #0f766e14}}.ws-workflow-step.status-done .ws-workflow-mark{color:#15803d;background:#e8f8ee}.ws-workflow-step.status-fail .ws-workflow-mark{color:#b91c1c;background:#feecec}.ws-workflow-step.status-skipped{opacity:.55}.ws-workflow-step.status-pending{opacity:.7}.ws-workflow-body strong{color:#1f2937;font-size:.84rem;font-weight:700;display:block}.ws-workflow-body p{color:#6b7280;margin:2px 0 0;font-size:.74rem;line-height:1.4}.ws-workflow-step.status-running .ws-workflow-body strong{color:#0f766e}.ws-workflow-output{background:#fcfcfd;border-top:1px solid #eef2f7;padding:12px 14px 14px}.ws-workflow-output-label{color:#64748b;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px;font-size:.72rem;font-weight:700}.ws-workflow-output-body{color:#1f2937;font-size:.88rem;line-height:1.55}.ws-workflow-output-body.typing{color:#6b7280}.ws-workflow-output-actions{gap:6px;margin-top:10px;display:flex}.ws-retrieval-summary{color:#4b5563;background:#f8fafc;border:1px solid #e8eaed;border-radius:8px;margin:10px 0 0;padding:6px 10px;font-size:.74rem;line-height:1.4}.ws-stream-caret{vertical-align:text-bottom;background:#0f766e;width:7px;height:1em;margin-left:2px;animation:.9s step-end infinite ws-caret-blink;display:inline-block}@keyframes ws-caret-blink{50%{opacity:0}}.ws-tool-used{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.ws-tool-pill{color:#4b5563;background:#f3f4f6;border-radius:6px;padding:3px 8px;font-size:.68rem;font-weight:600}.ws-tool-pill.ok{color:#15803d;background:#e8f8ee}.ws-tool-pill.danger{color:#b91c1c;background:#feecec}.ws-sources{border-top:1px solid #eef0f3;margin-top:10px;padding-top:8px}.ws-sources-more{color:#0f766e;cursor:pointer;background:0 0;border:none;align-items:center;margin-top:8px;padding:0;font-size:.74rem;font-weight:650;display:inline-flex}.ws-sources-more:hover{color:#0d9488;text-decoration:underline}.ws-source-list{gap:8px;margin-top:0;display:grid}.ws-source-card{background:#fafbfc;border:1px solid #e8eaed;border-radius:10px;padding:10px 12px}.ws-source-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;display:flex}.ws-source-head strong{color:#111827;font-size:.8rem}.ws-source-head em{color:#9ca3af;font-size:.68rem;font-style:normal}.ws-source-card p{color:#6b7280;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.74rem;line-height:1.45;display:-webkit-box;overflow:hidden}.ws-source-card a{color:#0f766e;margin-top:4px;font-size:.68rem;text-decoration:none;display:inline-block}.ws-msg-actions{gap:8px;margin-top:8px;display:flex}.ws-msg-action{color:#4b5563;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:4px 10px;font-size:.72rem;font-weight:600}.ws-msg-action:hover{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}.ws-msg-action.primary{color:#1d4ed8;background:#e8f1ff;border-color:#bfd4ff}.ws-msg-action.primary:hover{background:#dbeafe;border-color:#93c5fd}.ws-record-chip{background:linear-gradient(#f7faff 0%,#f3f6fb 100%);border:1px solid #dbe4f0;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:10px 12px;display:flex}.ws-record-chip-info{flex-direction:column;gap:2px;min-width:0;display:flex}.ws-record-chip-info strong{font-size:.88rem}.ws-record-chip-info span{color:#6b7280;font-size:.75rem}.ws-record-chip-actions{flex-wrap:wrap;gap:6px;display:flex}.ws-main-actions{flex-shrink:0;align-items:center;gap:4px;display:flex;position:relative}.ws-more-wrap{position:relative}.ws-more-menu{z-index:20;background:#fff;border:1px solid #ebebeb;border-radius:12px;flex-direction:column;gap:2px;min-width:168px;padding:6px;display:flex;position:absolute;box-shadow:0 12px 28px #0f172a1f}.ws-more-menu.top{top:calc(100% + 6px);right:0}.ws-more-menu button{text-align:left;color:#1f2329;background:0 0;border:none;border-radius:8px;padding:9px 12px;font-size:.84rem;font-weight:500}.ws-more-menu button:hover:not(:disabled){background:#f3f4f6}.ws-more-menu button:disabled{color:#a0a4ab;cursor:not-allowed}.ws-more-menu hr{border:none;border-top:1px solid #f0f0f0;margin:4px 6px}.ws-composer{flex-shrink:0;padding:8px 14px 12px;position:relative}.ws-slash{z-index:5;background:#fff;border:1px solid #ebebeb;border-radius:16px;max-height:340px;padding:8px;position:absolute;bottom:calc(100% - 10px);left:18px;right:18px;overflow:auto;box-shadow:0 12px 32px #0f172a1f}.ws-slash-label{color:#8b8f97;justify-content:space-between;align-items:baseline;gap:10px;padding:6px 10px;font-size:.75rem;font-weight:600;display:flex}.ws-slash-label-hint{color:#a0a4ab;font-size:.7rem;font-weight:500}.ws-slash-section-label{color:#6b7280;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px 4px;font-size:.72rem;font-weight:600;display:flex}.ws-slash-section-label span{color:#2f5fc4;background:#eef4ff;border-radius:999px;padding:1px 8px;font-size:.68rem;font-weight:700}.ws-slash-search{color:#8b8f97;background:#f8f9fb;border:1px solid #e5e7eb;border-radius:10px;align-items:center;gap:8px;margin:2px 6px 8px;padding:8px 10px;display:flex}.ws-slash-search input{color:#1f2329;background:0 0;border:none;outline:none;flex:1;min-width:0;font-size:.84rem}.ws-slash-search input::placeholder{color:#a0a4ab}.ws-slash-upload{background:0 0;border:none;margin:2px 6px 10px;padding:0}.ws-slash-upload.is-busy{opacity:.85;pointer-events:none}.ws-upload-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.ws-upload-actions .ws-upload-zone{min-height:100%}.ws-upload-zone{text-align:left;color:#1f2329;cursor:pointer;background:linear-gradient(#f7f9fc 0%,#f3f6fb 100%);border:1.5px dashed #c5d0e3;border-radius:14px;align-items:flex-start;gap:12px;width:100%;margin:0;padding:14px 14px 12px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex}.ws-upload-zone:hover:not(:disabled){background:linear-gradient(#f4f7fd 0%,#eef3fb 100%);border-color:#8aa4d8;box-shadow:0 4px 14px #2f5fc414}.ws-slash-upload.is-dragover .ws-upload-zone,.ws-upload-zone:focus-visible{background:#eef4ff;border-style:solid;border-color:#2f5fc4;box-shadow:0 0 0 3px #2f5fc41f}.ws-upload-zone:disabled{cursor:wait;opacity:.75}.ws-upload-zone-icon{color:#2f5fc4;background:#fff;border:1px solid #dde5f2;border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid;box-shadow:0 1px 2px #0f172a0a}.ws-upload-zone-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.ws-upload-zone-body strong{color:#1f2937;font-size:.88rem;font-weight:700;line-height:1.3}.ws-upload-zone-body em{color:#6b7280;font-size:.74rem;font-style:normal;line-height:1.35}.ws-upload-tags{flex-wrap:wrap;gap:5px;margin-top:6px;display:flex}.ws-upload-tags i{color:#64748b;letter-spacing:.01em;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:2px 7px;font-size:.68rem;font-style:normal;font-weight:600}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete){text-align:left;color:#1f2329;background:0 0;border:none;border-radius:10px;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:9px 10px;font-size:.86rem;display:grid}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete)>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ws-mat-row{border-radius:10px;align-items:center;gap:4px;width:100%;min-width:0;display:flex}.ws-mat-row:hover{background:#f3f4f6}.ws-mat-row.selected{background:#eef4ff}.ws-mat-row>button:not(.ws-mat-delete){flex:auto;min-width:0;width:auto!important}.ws-mat-row .ws-mat-delete{min-width:2.5rem;color:var(--danger);white-space:nowrap;background:0 0;border:none;border-radius:10px;flex:none;grid-template-columns:none;justify-content:center;align-self:stretch;align-items:center;margin:0;padding:9px 12px;font-size:.78rem;font-weight:600;line-height:1;width:auto!important;display:inline-flex!important}.ws-mat-row .ws-mat-delete:hover{background:#fef2f2}.ws-slash .ws-mat-row>button.ws-mat-preview{color:#2f5fc4;white-space:nowrap;flex:none;justify-content:center;align-items:center;min-height:32px;padding:7px 9px;font-size:.76rem;display:inline-flex;width:auto!important}.ws-slash .ws-mat-row>button.ws-mat-preview:disabled{color:#8b8f97}.ws-mat-entry{width:100%;min-width:0}.ws-slash .ws-mat-row>button.ws-mat-retry{color:#235bc7;white-space:nowrap;flex:none;min-height:32px;padding:7px 9px;font-size:.76rem;width:auto!important}.ws-slash .ws-mat-row>button.ws-mat-retry:disabled{color:#8b8f97;cursor:default}.ws-mat-error-details{color:#9b5825;overflow-wrap:anywhere;margin:2px 10px 7px 28px;font-size:.76rem}.ws-mat-error-details summary{cursor:pointer}.ws-mat-error-details p{margin:5px 0;line-height:1.6}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete):hover,.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete).active{background:#f3f4f6}.ws-mat-row:hover>button:not(.ws-mat-delete),.ws-mat-row.selected>button:not(.ws-mat-delete){background:0 0}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete).selected{color:#1e3a8a;background:#eef4ff}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete).selected:hover{background:#e3ecff}.ws-mat-row.selected>button:not(.ws-mat-delete).selected{color:#1e3a8a;background:0 0}.ws-slash button:not(.ws-upload-zone):not(.ws-mat-delete).selected svg{color:#2f5fc4}.ws-mat-selected{color:#2f5fc4;background:#fff;border:1px solid #c7d7f5;border-radius:999px;padding:1px 8px;font-size:.72rem;font-style:normal;font-weight:700}.ws-mat-unbound{color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:999px;padding:1px 8px;font-size:.72rem;font-style:normal;font-weight:700}.ws-mat-parsing{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:1px 8px;font-size:.72rem;font-style:normal;font-weight:700}.ws-mat-row.is-pending{opacity:.92}.ws-mat-row.is-pending>button:disabled{cursor:default;opacity:1}.ws-slash code{color:#8b8f97;font-size:.72rem}.ws-composer-box{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:9px 12px 8px;transition:border-color .15s,box-shadow .15s}.ws-composer-box:focus-within{border-color:#cfd8ea;box-shadow:0 8px 28px #0f172a0f}.ws-composer-top{flex-wrap:wrap;gap:8px;margin-bottom:5px;display:flex}.ws-select-chip{color:#1f2329;background:#f5f6f8;border:none;border-radius:999px;align-items:center;gap:6px;max-width:100%;height:32px;padding:0 10px;font-size:.8rem;display:inline-flex}.ws-select-chip em{color:#8b8f97;font-size:.72rem;font-style:normal;font-weight:600}.ws-select-chip strong{text-overflow:ellipsis;white-space:nowrap;max-width:140px;font-weight:700;overflow:hidden}[data-workstation-mode=outpatient] .ws-select-chip{border:1px solid #0000}[data-workstation-mode=outpatient] .ws-select-chip.tone-agent{color:#1f3f8a;background:#f3f7ff;border-color:#d7e4ff}[data-workstation-mode=outpatient] .ws-select-chip.tone-agent em{color:#5b7fd4}[data-workstation-mode=outpatient] .ws-select-chip.tone-skill{color:#0b5c54;background:#f0faf7;border-color:#c9ebe4}[data-workstation-mode=outpatient] .ws-select-chip.tone-skill em{color:#2a9a8c}[data-workstation-mode=outpatient] .ws-select-chip.tone-agent:hover,[data-workstation-mode=outpatient] .ws-select-chip.tone-agent.active{color:#2f6fed;background:#eaf1ff;border-color:#2f6fed}[data-workstation-mode=outpatient] .ws-select-chip.tone-skill:hover,[data-workstation-mode=outpatient] .ws-select-chip.tone-skill.active{color:#0e8075;background:#e6f7f3;border-color:#0e8075}.ws-select-dot{color:#c0c4cc;flex-shrink:0;font-style:normal;font-weight:600}.ws-select-sub{text-overflow:ellipsis;white-space:nowrap;color:#6b7280;max-width:120px;font-size:.74rem;font-weight:600;overflow:hidden}.ws-select-chip:hover .ws-select-sub,.ws-select-chip.active .ws-select-sub{color:#6b8fd4}.ws-select-chip:hover,.ws-select-chip.active{color:#2f5fc4;background:#eef4ff}.ws-select-chip.active em{color:#6b8fd4}.ws-composer-box>textarea{resize:none;color:#1f2329;field-sizing:content;background:0 0;border:none;outline:none;width:100%;min-height:48px;max-height:112px;padding:3px 4px 6px;font-size:.9rem;line-height:1.55}.ws-composer-box>.ws-flow-input-label{margin:2px 4px 0;font-size:11px}.ws-composer-box textarea::placeholder{color:#a0a4ab}.ws-composer-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:2px;display:flex}.ws-tool-row{flex-wrap:wrap;flex:200px;align-items:center;gap:6px;min-width:0;display:flex}.ws-tool-chip{color:#4b5563;white-space:nowrap;background:0 0;border:none;border-radius:999px;align-items:center;gap:5px;height:32px;padding:0 11px;font-size:.8rem;font-weight:600;display:inline-flex}.ws-tool-chip:hover:not(:disabled){color:#1f2329;background:#f3f4f6}.ws-tool-chip.active{color:#2f5fc4;background:#eef4ff}.ws-tool-chip:disabled{opacity:.45;cursor:not-allowed}.ws-patient-chip{min-height:32px;max-width:min(280px, calc(52 * var(--app-layout-width-unit)));color:#4b5563;text-align:left;background:0 0;border:none;border-radius:999px;align-items:center;gap:7px;padding:4px 12px;font-size:.8rem;font-weight:600;display:inline-flex}.ws-patient-chip.icon-only{border-radius:10px;flex-shrink:0;justify-content:center;width:36px;max-width:none;height:36px;min-height:36px;padding:0}.ws-patient-chip.icon-only .ws-patient-chip-label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ws-patient-chip:hover,.ws-patient-chip.active{color:#1f2329;background:#f3f4f6}.ws-patient-chip.filled{color:#2f5fc4;background:#eef4ff}.ws-patient-chip.active.filled{background:#e0ebff}.ws-patient-meta{flex-direction:column;gap:1px;min-width:0;line-height:1.2;display:flex}.ws-patient-meta strong{text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;font-weight:700;overflow:hidden}.ws-patient-meta em{color:#6b8fd4;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-style:normal;font-weight:500;overflow:hidden}.ws-patient-chip.filled .ws-patient-meta:not(:has(em)){justify-content:center}.ws-empty-hint{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:22px;width:100%;max-width:440px;min-height:0;margin:0 auto;padding:28px 20px 48px;animation:.55s both ws-empty-in;display:flex}.ws-empty-mark{place-items:center;display:grid;position:relative}.ws-empty-mark:before{content:"";pointer-events:none;background:radial-gradient(circle,#2f6fed1f 0%,#0d94880f 42%,#0000 70%);border-radius:50%;width:140px;height:140px;position:absolute}.ws-empty-logo{z-index:1;background:linear-gradient(#fff 0%,#f7f9fc 100%);border:1px solid #e8edf5;border-radius:16px;place-items:center;width:64px;height:64px;display:grid;position:relative;box-shadow:inset 0 1px #ffffffe6,0 10px 28px #15233a14,0 2px 6px #15233a0a}.ws-empty-logo span{background:conic-gradient(from 210deg,#3b82f6,#22c55e,#f59e0b,#a855f7,#3b82f6);border-radius:10px;width:34px;height:34px;-webkit-mask:radial-gradient(circle,#0000 34%,#000 35%);mask:radial-gradient(circle,#0000 34%,#000 35%)}.ws-empty-copy{flex-direction:column;align-items:center;gap:8px;display:flex}.ws-empty-brand{color:#111827;letter-spacing:.08em;margin:0;font-size:1.7rem;font-weight:800;line-height:1.2}.ws-empty-hint h3{color:#374151;letter-spacing:.01em;margin:0;font-size:1.05rem;font-weight:650;line-height:1.35}.ws-empty-hint p{color:#8b93a1;max-width:300px;margin:2px 0 0;font-size:.88rem;line-height:1.65}@keyframes ws-empty-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@container app-layout (width<=720px){.ws-empty-hint{gap:18px;padding:20px 12px 36px}.ws-empty-logo{border-radius:14px;width:56px;height:56px}.ws-empty-logo span{border-radius:9px;width:30px;height:30px}.ws-empty-brand{letter-spacing:.06em;font-size:1.45rem}.ws-empty-hint h3{font-size:.98rem}.ws-empty-hint p{max-width:260px;font-size:.84rem}}.ws-composer-right{flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;max-width:100%;margin-left:auto;display:flex}.ws-mic{color:#4b5563;background:#f3f4f6;border:none;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.ws-mic:hover{color:#1f2329;background:#e8eaee}.ws-send{color:#fff;background:#d1d5db;border:none;border-radius:50%;place-items:center;width:36px;height:36px;transition:background .15s,transform .15s;display:grid}.ws-send.ready{background:#3b6fd9}.ws-send.ready:hover{background:#2f5fc4;transform:translateY(-1px)}.ws-send.stopping{cursor:pointer;background:#374151}.ws-send.stopping:hover{background:#1f2937;transform:translateY(-1px)}.ws-send:disabled{cursor:not-allowed}.ws-draft{overscroll-behavior:contain;scrollbar-width:thin;background:#fafbfc;border-left:1px solid #f0f0f0;flex-direction:column;min-width:0;min-height:0;padding:12px;display:flex;overflow:auto}.ws-draft-head{flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.ws-draft-head h3{margin:0;font-size:.92rem}.ws-draft-badges{flex-wrap:wrap;flex:1;gap:6px;display:flex}.ws-panel-close{flex-shrink:0;margin-left:auto;font-size:1.2rem;line-height:1}.ws-draft-editor{resize:vertical;background:#fff;border:1px solid #e5e7eb;border-radius:12px;outline:none;flex:1;width:100%;min-height:220px;padding:12px;font-size:.88rem;line-height:1.65}.ws-draft-editor:focus{border-color:#c5d4f5;box-shadow:0 0 0 3px #3b6fd914}.ws-qc-list{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.ws-doctor-review-notice{background:#fffcf4;border:1px solid #f0dbaa;border-radius:10px;margin:12px 0;padding:12px;font-size:.85rem;line-height:1.6}.ws-doctor-review-notice>p{margin:0}.ws-doctor-review-notice details{margin-top:8px}.ws-review-group h4{margin:12px 0 6px;font-size:.88rem}.ws-review-group>p{margin:0 0 6px}.ws-review-group ul{margin:0;padding-left:18px}.ws-review-group li{overflow-wrap:anywhere;margin:8px 0}.ws-review-group .ws-review-quote{border-left:2px solid #e3c987;margin:4px 0;padding-left:8px}.intake-checklist-reminder{margin:10px 0 12px;padding:10px 12px}.intake-checklist-reminder-warn{color:var(--warn);margin:0 0 8px;font-size:.85rem}.intake-checklist-reminder-block h4{margin:8px 0 6px;font-size:.85rem}.intake-checklist-reminder-list{gap:6px;margin:0;padding:0;list-style:none;display:grid}.intake-checklist-reminder-list label{align-items:flex-start;gap:8px;font-size:.82rem;line-height:1.35;display:flex}.intake-checklist-reminder-list input{margin-top:3px}.intake-checklist-reminder-list strong{display:block}.intake-checklist-reminder-list em{color:var(--muted);margin-top:2px;font-style:normal;display:block}.ws-draft-actions{flex-wrap:wrap;flex-shrink:0;gap:8px;margin-top:12px;display:flex}.ws-history{background:#fafbfc;border-left:1px solid #f0f0f0;flex-direction:column;min-width:0;min-height:0;padding:14px;display:flex;overflow:auto}.ws-history-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.ws-history-head h3{margin:0;font-size:.92rem}.ws-history-count{color:#8b8f97;font-size:.75rem;font-weight:600}.ws-history-list{flex-direction:column;flex:1;gap:6px;display:flex}.ws-history-item{text-align:left;background:#fff;border:1px solid #ebebeb;border-radius:10px;flex-direction:column;gap:3px;padding:10px 12px;display:flex}.ws-history-item-row{flex-direction:row;align-items:center;gap:8px;padding:0}.ws-history-item-main{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;gap:3px;min-width:0;padding:10px 12px;display:flex}.ws-history-item-del{color:var(--danger,#dc2626);cursor:pointer;background:0 0;border:0;border-radius:6px;flex-shrink:0;margin-right:10px;padding:4px 6px;font-size:.75rem;font-weight:600}.ws-history-item-del:hover{background:#fef2f2}.ws-history-item strong{font-size:.84rem}.ws-history-item span{color:#8b8f97;font-size:.72rem}.ws-history-item:hover{border-color:#c5d4f5}.ws-history-item.active{background:#f5f8ff;border-color:#3b6fd9}.ws-context-body{flex-direction:column;flex:1;gap:16px;min-height:0;display:flex;overflow:auto}.ws-context-section h4{color:#6b7280;letter-spacing:.02em;margin:0 0 8px;font-size:.78rem;font-weight:700}.ws-context-meta{gap:6px;margin:0 0 8px;display:grid}.ws-context-meta>div{grid-template-columns:52px 1fr;gap:8px;font-size:.82rem;display:grid}.ws-context-meta dt{color:#9ca3af;margin:0}.ws-context-meta dd{color:#1f2329;word-break:break-word;margin:0}.ws-context-summary{color:#374151;white-space:pre-wrap;margin:0;font-size:.8rem;line-height:1.55}.ws-context-summary.muted{color:#9ca3af}.ws-context-fold{color:#6b7280;cursor:pointer;text-align:left;background:0 0;border:none;margin:0 0 8px;padding:0;font-size:.78rem;font-weight:700}.ws-mat-preview{background:#fff;border:1px solid #ebebeb;border-radius:10px;gap:8px;padding:10px 12px;display:grid}.ws-mat-preview strong{font-size:.84rem}.ws-mat-preview pre{white-space:pre-wrap;word-break:break-word;color:#4b5563;max-height:280px;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.72rem;line-height:1.5;overflow:auto}.ws-patient-form{flex:1;gap:10px;display:grid;overflow:auto}.ws-patient-field{color:#6b7280;gap:4px;font-size:.78rem;display:grid}.ws-patient-field input{color:#1f2329;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px;font-size:.86rem}.ws-patient-field input:focus{border-color:#3b6fd9;outline:none;box-shadow:0 0 0 3px #3b6fd91f}.mat-page{min-height:calc(calc(100 * var(--app-layout-height-unit)) - 160px)}.mat-layout{min-height:calc(calc(100 * var(--app-layout-height-unit)) - 160px);grid-template-columns:260px 1fr;gap:14px;display:grid}.mat-patients{border:1px solid var(--line);background:#fafbfc;border-radius:14px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.mat-side-head{justify-content:space-between;align-items:center;padding:14px 14px 8px;display:flex}.mat-side-head h3{margin:0;font-size:.95rem}.mat-patient-list{flex-direction:column;flex:1;gap:4px;padding:0 8px 12px;display:flex;overflow:auto}.mat-patient{text-align:left;color:inherit;background:0 0;border:none;border-radius:10px;padding:10px 12px}.mat-patient:hover{background:#f0f2f5}.mat-patient.active{background:#e8eaed}.mat-patient-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.mat-patient-row strong{font-size:.9rem}.mat-patient-row em{color:#6b7280;background:#fff;border-radius:999px;place-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.72rem;font-style:normal;font-weight:700;display:inline-grid}.mat-patient-meta{color:#8b8f97;margin-top:3px;font-size:.75rem}.mat-split{grid-template-columns:1fr 1.1fr;min-height:420px;display:grid}.mat-list{border-right:1px solid var(--line);flex-direction:column;gap:8px;max-height:620px;padding:10px;display:flex;overflow:auto}.mat-item{border:1px solid var(--line);text-align:left;color:inherit;background:#fff;border-radius:12px;padding:12px}.mat-item:hover,.mat-item.active{background:#f8faff;border-color:#c5d4f5}.mat-item-top{justify-content:space-between;gap:8px;margin-bottom:6px;display:flex}.mat-item-top time{color:#8b8f97;font-size:.72rem}.mat-item strong{font-size:.9rem;display:block}.mat-item p{color:#8b8f97;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 0;font-size:.78rem;line-height:1.45;display:-webkit-box;overflow:hidden}.mat-detail{min-width:0;padding:16px 18px}.mat-detail-head h3{margin:8px 0 4px;font-size:1.05rem}.mat-detail-head p{color:#8b8f97;margin:0;font-size:.8rem}.mat-content{min-height:280px;margin-top:14px}.mat-entry-list,.rec-entry-list{max-height:calc(calc(100 * var(--app-layout-height-unit)) - 280px);flex-direction:column;gap:8px;padding:12px 16px 18px;display:flex;overflow:auto}.mat-entry,.rec-entry{text-align:left;border:1px solid var(--line);width:100%;color:inherit;cursor:pointer;background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.mat-entry:hover,.rec-entry:hover{background:#f8faff;border-color:#c5d4f5}.mat-entry-main,.rec-entry-main{flex:1;min-width:0}.mat-entry-top,.rec-entry-top{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:4px;display:flex}.mat-entry-top time,.rec-entry-top time{color:#8b8f97;margin-left:auto;font-size:.72rem}.mat-entry strong,.rec-entry strong{font-size:.92rem;display:block}.mat-patient-entry .mat-patient-name{margin-right:4px;font-size:1rem}.mat-entry p,.rec-entry p{color:#8b8f97;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 0;font-size:.78rem;line-height:1.45;display:-webkit-box;overflow:hidden}.mat-entry-go,.rec-entry-go{color:#6b7280;flex-shrink:0;font-size:.78rem;font-weight:600}.mat-drill-toolbar{align-items:center}.mat-detail-page,.rec-detail-page{padding:12px 18px 20px}.mat-detail-toolbar,.rec-detail-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.mat-detail-tabs{flex-wrap:wrap;gap:6px;margin-left:auto;display:flex}.rec-detail-actions{flex-wrap:wrap;gap:8px;margin-left:auto;display:flex}.rec-detail-title{margin:0 0 12px;font-size:1.05rem}.rec-a4-preview-wrap{border:1px solid var(--line);min-height:480px;max-height:min(calc(78 * var(--app-layout-height-unit)), 920px);background:#e8eaed;border-radius:12px;overflow:auto}.rec-a4-preview-frame{width:100%;min-height:720px;height:min(calc(74 * var(--app-layout-height-unit)), 880px);background:#e8eaed;border:none;display:block}.rec-edit-editor{border:1px solid var(--line);resize:vertical;box-sizing:border-box;border-radius:12px;width:100%;min-height:420px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86rem;line-height:1.55}.rec-edit-editor:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #3b82f61f}.mat-raw-fold{color:#6b7280;margin-top:14px;font-size:.85rem}.mat-raw-fold summary{cursor:pointer;margin-bottom:8px}.mat-exam-meta,.mat-exam-result{border:1px solid var(--line);background:#f8fafc;border-radius:10px;margin-top:4px;padding:10px 12px}.mat-exam-meta p,.mat-exam-block p{white-space:pre-wrap;margin:8px 0 0;font-size:.88rem;line-height:1.5}.mat-exam-block h4{color:#6b7280;margin:12px 0 0;font-size:.82rem;font-weight:600}.mat-exam-block:first-of-type h4{margin-top:8px}.mat-compare{grid-template-columns:1fr 1.15fr;gap:14px;min-height:420px;display:grid}.mat-compare-col{border:1px solid var(--line);background:#fafbfc;border-radius:12px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.mat-compare-col>header{color:#374151;border-bottom:1px solid var(--line);background:#f3f4f6;padding:10px 14px;font-size:.82rem;font-weight:700}.mat-compare-col>:not(header){flex:1;padding:12px;overflow:auto}.mat-file-pane{flex-direction:column;gap:10px;min-height:200px;display:flex}.mat-file-image{border:1px solid var(--line);background:#fff;border-radius:8px;max-width:100%}.mat-file-frame{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;min-height:420px}.mat-file-audio{width:100%}.mat-speech-original,.mat-speech-fulltext{margin-top:20px}.mat-speech-original audio{width:100%;display:block}.mat-speech-fulltext pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0;line-height:1.8}.mat-file-banner{color:#6b7280;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:8px 10px;font-size:.8rem}.mat-file-text{border:1px solid var(--line);white-space:pre-wrap;word-break:break-word;background:#fff;border-radius:8px;max-height:520px;margin:0;padding:12px;font-size:.82rem;line-height:1.5;overflow:auto}.mat-file-link-hint{color:#6b7280;margin:0;font-size:.85rem}.mat-result-pane{min-height:200px}.mat-detail-actions{flex-wrap:wrap;gap:8px;margin-left:auto;display:flex}.mat-detail-toolbar .mat-detail-tabs{margin-left:0}.mat-title-input{border:1px solid var(--line);box-sizing:border-box;border-radius:8px;width:100%;max-width:520px;padding:8px 12px;font-size:1.05rem;font-weight:700}.mat-title-input:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #3b82f61f}.mat-edit-editor{border:1px solid var(--line);resize:vertical;box-sizing:border-box;background:#fff;border-radius:10px;width:100%;min-height:220px;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86rem;line-height:1.55}.mat-edit-editor:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #3b82f61f}.mat-exam-edit{flex-direction:column;gap:12px;display:flex}.mat-exam-edit label{color:#6b7280;flex-direction:column;gap:6px;font-size:.82rem;font-weight:600;display:flex}.mat-exam-edit input,.mat-exam-edit textarea{color:#111827;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-family:inherit;font-size:.88rem;font-weight:400}.mat-exam-edit input:focus,.mat-exam-edit textarea:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #3b82f61f}.lab-report-panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.lab-report-header{background:linear-gradient(#f8fafc 0%,#fff 100%);border-bottom:1px solid #e5e7eb;padding:14px 16px 12px}.lab-report-title{color:#111827;text-align:center;letter-spacing:.02em;margin:0 0 12px;font-size:1.05rem;font-weight:700}.lab-report-title-input{text-align:center;border:1px solid var(--line);box-sizing:border-box;border-radius:8px;width:100%;margin:0 0 12px;padding:8px 10px;font-size:1.05rem;font-weight:700;display:block}.lab-report-title-input:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #3b82f61f}.lab-meta-input{border:1px solid var(--line);color:#1f2937;border-radius:6px;flex:1;min-width:0;padding:4px 8px;font-size:.82rem;font-weight:500}.lab-meta-input:focus{border-color:#93c5fd;outline:none}.lab-note-edit{color:#6b7280;flex-direction:column;gap:6px;margin-top:10px;font-size:.78rem;font-weight:600;display:flex}.lab-note-edit textarea{color:#1f2937;border:1px solid var(--line);resize:vertical;border-radius:8px;padding:8px 10px;font-family:inherit;font-size:.82rem;font-weight:400}.lab-report-table-wrap.is-editing .lab-report-bar{justify-content:space-between;align-items:center;gap:8px;display:flex}.lab-report-table.is-editing td,.lab-report-table-wrap.is-editing .lab-report-table td{vertical-align:middle;padding:4px}.lab-report-table-wrap.is-editing .lab-report-table input,.lab-report-table-wrap.is-editing .lab-report-table select{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:4px;width:100%;min-width:0;padding:4px 6px;font-size:.8rem}.lab-report-table-wrap.is-editing .lab-report-table input:focus,.lab-report-table-wrap.is-editing .lab-report-table select:focus{border-color:#93c5fd;outline:none}.lab-report-table .cell-ops{text-align:center;width:36px}.lab-row-del{color:#9ca3af;cursor:pointer;background:0 0;border:none;padding:2px 6px;font-size:1.1rem;line-height:1}.lab-row-del:hover{color:var(--danger)}.lab-report-panel.is-editing{box-shadow:0 0 0 2px #3b82f626}.lab-meta-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 14px;display:grid}.lab-meta-item{gap:6px;min-width:0;font-size:.82rem;line-height:1.4;display:flex}.lab-meta-label{color:#6b7280;flex:none}.lab-meta-label:after{content:"："}.lab-meta-value{color:#1f2937;word-break:break-word;font-weight:500}.lab-report-footer{background:#f9fafb;border-top:1px solid #e5e7eb;padding:12px 16px 14px}.lab-report-note{color:#6b7280;margin:10px 0 0;font-size:.78rem;line-height:1.45}.lab-report-table-wrap{background:#fff;border:none;border-radius:0;overflow:hidden}.lab-report-bar{color:#4b5563;background:#f9fafb;border-bottom:1px solid #e5e7eb;padding:8px 12px;font-size:.8rem}.lab-abnormal-count{color:#c2410c}.lab-unknown-count{color:#92400e}.lab-report-scroll{max-height:min(calc(62 * var(--app-layout-height-unit)), 640px);overflow:auto}.lab-report-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:760px;font-size:.82rem}.lab-report-table .col-code{width:9%}.lab-report-table .col-name{width:21%}.lab-report-table .col-value,.lab-report-table .col-flag{width:10%}.lab-report-table .col-ref{width:14%}.lab-report-table .col-unit{width:12%}.lab-report-table .col-method{width:24%}.lab-report-table thead th{z-index:1;color:#4b5563;text-align:left;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;background:#f3f4f6;border-bottom:1px solid #e5e7eb;padding:10px 12px;font-weight:600;position:sticky;top:0;overflow:hidden}.lab-report-table thead th:nth-child(4),.lab-report-table tbody td.cell-flag{text-align:center}.lab-report-table tbody td{vertical-align:middle;color:#1f2937;word-break:break-word;box-sizing:border-box;background-color:#0000;border-bottom:1px solid #f0f0f0;padding:9px 12px;line-height:1.4}.lab-report-table tbody tr.is-high td,.lab-report-table tbody tr.is-high{background-color:#fee2e2!important}.lab-report-table tbody tr.is-low td,.lab-report-table tbody tr.is-low{background-color:#dbeafe!important}.lab-report-table tbody tr.is-normal td,.lab-report-table tbody tr.is-normal{background-color:#0000!important}.lab-report-table tbody td.cell-name{font-weight:500}.lab-report-table tbody td.cell-value.is-high{color:#b91c1c;font-weight:700}.lab-report-table tbody td.cell-value.is-low{color:#1d4ed8;font-weight:700}.lab-report-table tbody td.cell-flag{color:#9ca3af;font-weight:700}.lab-report-table tbody td.cell-flag.flag-high,.lab-report-table tbody td.cell-flag.flag-critical,.lab-report-table tbody td.cell-flag.flag-warning{color:#dc2626}.lab-report-table tbody td.cell-flag.flag-low{color:#2563eb}.lab-report-table tbody tr.is-critical td{background-color:#fee2e2}.lab-report-table tbody tr.is-unknown td,.lab-report-table tbody tr.is-warning td{background-color:#fffbeb}.lab-report-table tbody td.cell-flag.flag-unknown,.lab-report-table tbody td.cell-flag.flag-warning{color:#92400e}.lab-report-table tbody td.cell-flag{white-space:nowrap}.lab-report-table tbody td.cell-method{color:#4b5563;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lab-cell{color:#1f2937;box-sizing:border-box;background:#fff;border:1px solid #e8eaed;border-radius:6px;min-height:1.35em;padding:7px 10px;line-height:1.35;display:block}.lab-cell-name{font-weight:500}.lab-cell-value.is-abnormal,.lab-cell-value.is-high{color:#c2410c;font-weight:700}.lab-cell-value.is-low{color:#1d4ed8;font-weight:700}.lab-cell-arrow{text-align:center;color:#9ca3af;min-width:2.5em;font-weight:700}.lab-cell-arrow.flag-high,.lab-cell-arrow.flag-critical,.lab-cell-arrow.flag-warning{color:#dc2626}.lab-cell-arrow.flag-low{color:#2563eb}.lab-cell-method{color:#4b5563}.lab-table-wrap{margin-top:12px}.lab-table-summary{color:#4b5563;margin-bottom:10px;font-size:.85rem}.rec-page{min-height:calc(calc(100 * var(--app-layout-height-unit)) - 160px)}@container app-layout (width<=1100px){.mat-layout,.mat-split,.mat-compare{grid-template-columns:1fr}.mat-patients{max-height:260px}.mat-list{border-right:none;border-bottom:1px solid var(--line);max-height:280px}.shell,.shell.collapsed{grid-template-columns:1fr}.sidebar{flex-flow:wrap;align-items:center;height:auto;position:relative}.side-nav{flex-flow:wrap;width:100%}.side-link{grid-template-columns:22px 1fr}.side-link .active-dot{display:none}.grid.stats{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.work,.split-config,.skill-card-grid{grid-template-columns:1fr}.models-defaults{grid-template-columns:1fr 1fr}.agents-upload-card{flex-direction:column;align-items:stretch}.page-banner{flex-direction:column}.topbar-left p{display:none}}@container app-layout (width<=720px){.grid.stats{grid-template-columns:1fr}.profile-meta{display:none}.content{padding:14px}.doctor-stage-head{flex-direction:column;align-items:flex-start}.ws-main-title p{max-width:240px}.models-defaults,.models-flags{grid-template-columns:1fr}.topbar{gap:8px;padding:10px 12px}.topbar-left{gap:8px}.topbar-left h1{font-size:1rem}.topbar-right,.topbar-actions{gap:2px}.topbar .icon-btn{width:32px;height:32px}}.models-page .page-card-head{padding-bottom:12px}.models-section{padding:8px 20px 20px}.models-section-title{color:#374151;margin:0 0 12px;font-size:.95rem;font-weight:650}.models-defaults{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.models-default-card{border:1px solid var(--line);background:#fff;border-radius:12px;flex-direction:column;gap:6px;min-height:88px;padding:12px 14px;display:flex}.models-default-label{color:var(--muted);font-size:.78rem;font-weight:600}.models-default-tag{color:#b45309;background:#fff7ed;border-radius:999px;align-items:center;gap:4px;width:fit-content;padding:2px 8px;font-size:.72rem;display:inline-flex}.models-default-name{color:#111827;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:650;overflow:hidden}.models-default-empty{color:#9ca3af;margin-top:8px;font-size:.85rem}.models-grid{margin-top:4px}.model-card{border:1px solid var(--line);background:#fff;border-radius:14px;flex-direction:column;gap:10px;padding:14px 16px;display:flex}.model-card.is-default{border-color:#fcd34d;box-shadow:0 0 0 1px #fef3c7}.model-card-top{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.model-card-top strong{word-break:break-word;font-size:.98rem}.model-default-pill{color:#b45309;vertical-align:middle;white-space:nowrap;background:#fff7ed;border-radius:999px;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;font-size:.72rem;display:inline-flex}.model-card-actions{flex-shrink:0;gap:2px;display:flex}.model-card-actions .icon-btn.danger:hover{color:var(--danger);background:var(--danger-soft)}.model-card-tags{flex-wrap:wrap;gap:6px;display:flex}.model-card-fields{flex-direction:column;gap:8px;margin:0;display:flex}.model-card-fields>div{grid-template-columns:72px 1fr;align-items:baseline;gap:8px;font-size:.82rem;display:grid}.model-card-fields dt{color:var(--muted);margin:0;font-weight:600}.model-card-fields dd{color:#374151;text-overflow:ellipsis;white-space:nowrap;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;overflow:hidden}.model-card-fields dd.masked{letter-spacing:.08em}.model-set-default{align-self:flex-start;margin-top:2px}.models-empty{grid-column:1/-1}.models-modal{width:min(560px,100%)}.models-modal-title{align-items:flex-start;gap:12px;display:flex}.models-modal-title h3{margin:0}.models-modal-title p{color:var(--muted);margin:4px 0 0;font-size:.82rem}.icon-tile.sm{background:var(--primary-soft);width:36px;height:36px;color:var(--primary);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.models-docs-hint{margin:-6px 0 12px;font-size:.82rem}.models-docs-hint a{color:var(--primary)}.models-test-row{flex-wrap:wrap;align-items:center;gap:10px;margin:-4px 0 14px;display:flex}.models-test-msg{font-size:.82rem}.models-test-msg.ok{color:var(--ok)}.models-test-msg.err{color:var(--danger)}.models-flags{border:1px solid var(--line);background:#f8fafc;border-radius:12px;grid-template-columns:1fr 1fr;gap:10px 16px;margin-bottom:12px;padding:12px 14px;display:grid}.models-flags label{color:#374151;cursor:pointer;align-items:center;gap:8px;margin:0;font-size:.86rem;display:inline-flex}.models-flags input{width:16px;height:16px;accent-color:var(--primary)}.model-select-field{position:relative}.model-select-trigger{border:1px solid var(--line);color:#111827;cursor:pointer;text-align:left;background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:10px 12px;font-size:.9rem;font-weight:600;display:flex}.model-select-trigger:hover{border-color:#c5d4f0}.model-select-trigger.open,.model-select-trigger:focus{border-color:#93b4f8;outline:none;box-shadow:0 0 0 3px #2f6fed1f}.model-select-trigger:disabled{opacity:.6;cursor:not-allowed}.model-select-trigger svg{color:var(--muted);flex-shrink:0;transition:transform .15s}.model-select-trigger.open svg{transform:rotate(180deg)}.model-select-menu{z-index:40;border:1px solid var(--line);background:#fff;border-radius:12px;max-height:260px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a1f}.model-select-menu button{text-align:left;color:#1f2937;cursor:pointer;background:0 0;border:none;border-radius:8px;width:100%;padding:9px 12px;font-size:.88rem}.model-select-menu button:hover,.model-select-menu button.active{background:#f3f4f6}.model-select-menu button.active{color:var(--primary);font-weight:650}.kb-page{flex-direction:column;gap:16px;min-height:100%;display:flex}.kb-list-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.kb-list-head h2{margin:0 0 6px;font-size:1.25rem}.kb-list-actions{flex-shrink:0;gap:10px;display:flex}.kb-tabs{border-bottom:1px solid var(--line);gap:4px;padding-bottom:0;display:flex}.kb-tab{color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 16px;font-weight:500}.kb-tab.active{color:var(--primary);border-bottom-color:var(--primary)}.kb-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.kb-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:10px;padding:16px;display:flex}.kb-card header h3{margin:0 0 8px;font-size:1.05rem}.kb-card-tags{flex-wrap:wrap;gap:6px;display:flex}.kb-card-desc{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.6em;margin:0;font-size:.88rem;line-height:1.5;display:-webkit-box;overflow:hidden}.kb-card-stats{color:var(--muted);flex-wrap:wrap;gap:12px;font-size:.82rem;display:flex}.kb-card footer{border-top:1px solid var(--line);gap:8px;margin-top:auto;padding-top:8px;display:flex}.kb-empty{text-align:center;color:var(--muted);padding:28px 16px;font-size:.9rem}.kb-empty.span-all{grid-column:1/-1}.kb-detail-head{align-items:center;gap:12px;display:flex}.kb-detail-title{flex:1;min-width:0}.kb-detail-title h2{margin:0 0 4px;font-size:1.2rem}.kb-meta-row{color:var(--muted);flex-wrap:wrap;gap:14px;font-size:.85rem;display:flex}.kb-panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}.kb-toolbar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.kb-toolbar-spacer{flex:1}.kb-catalog-nav{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:16px}.kb-catalog-summary{flex-wrap:wrap;align-items:baseline;gap:16px;margin-bottom:12px;font-size:13px;display:flex}.kb-catalog-summary span{color:var(--muted)}.kb-category-list{flex-wrap:wrap;gap:8px;display:flex}.kb-category-list .kb-category-active{background:var(--primary);color:#fff}.kb-category-list button span{opacity:.75;margin-left:6px}.kb-catalog-filter{border:1px solid var(--line);background:var(--panel);min-width:180px;max-width:320px;color:inherit;border-radius:6px;padding:7px 10px}.kb-doc-tags{flex-wrap:wrap;gap:5px;margin-top:6px;display:flex}.kb-doc-tags button{cursor:pointer;border:0}.kb-check{color:var(--muted);align-items:center;gap:6px;font-size:.88rem;display:inline-flex}.kb-table{border-collapse:collapse;width:100%;font-size:.9rem}.kb-table th,.kb-table td{text-align:left;border-bottom:1px solid var(--line);vertical-align:top;padding:10px 8px}.kb-table th{color:var(--muted);font-size:.8rem;font-weight:500}.kb-doc-title{font-weight:500}.kb-doc-sub{color:var(--muted);margin-top:4px;font-size:.78rem}.kb-doc-err{color:var(--danger);margin-top:4px;font-size:.78rem}.kb-ops{white-space:nowrap;flex-wrap:wrap;gap:12px;display:flex}.kb-ops .link:disabled{opacity:.4;cursor:not-allowed}.kb-ops .link,.kb-page .link{color:var(--primary);background:0 0;border:none;padding:0;font-size:.88rem}.danger-text{color:var(--danger)!important}.kb-chunk-list{flex-direction:column;gap:12px;display:flex}.kb-knowledge-body{max-width:100ch;font-size:.9rem;line-height:1.75}.kb-knowledge-body h3{margin:8px 0 12px;font-size:1rem}.kb-point-citation{color:var(--muted);font-size:.8rem;margin-top:4px!important}.kb-entry-editor{gap:14px;display:grid}.kb-entry-editor label{gap:6px;display:grid}.kb-entry-editor input,.kb-entry-editor textarea{border:1px solid var(--line);background:var(--panel);width:100%;color:var(--ink);font:inherit;border-radius:6px;padding:10px}.kb-entry-editor fieldset{border:1px solid var(--line);border-radius:8px;gap:10px;padding:12px;display:grid}.kb-knowledge-body ul{margin:0 0 14px;padding-left:22px}.kb-knowledge-body li{margin:0 0 12px}.kb-knowledge-body li p{margin:0}.kb-point-sources{flex-wrap:wrap;gap:12px;font-size:.78rem;display:flex}.kb-point-sources a{color:var(--primary)}.kb-knowledge-evidence{border-top:1px solid var(--line);color:var(--muted);padding-top:8px;font-size:.82rem}.kb-knowledge-evidence summary{cursor:pointer}.kb-knowledge-evidence blockquote{border-left:2px solid var(--line);margin:8px 0;padding-left:12px}.kb-source-checks{color:var(--muted);max-width:100ch;margin-top:6px;font-size:.8rem}.kb-source-checks summary{cursor:pointer}.kb-source-checks p{margin:8px 0 3px}.kb-source-checks a{color:var(--primary)}.kb-chunk-card{border:1px solid var(--line);background:#fafbfc;border-radius:10px;padding:12px}.kb-chunk-card header{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.kb-chunk-card pre{white-space:pre-wrap;word-break:break-word;font-family:var(--font);color:var(--ink);margin:0;font-size:.86rem;line-height:1.55}.kb-article{width:100%;max-width:860px;margin:0 auto}.kb-article-body{padding:8px 4px 24px}.kb-article-text{white-space:pre-wrap;word-break:break-word;font-family:var(--font);color:var(--ink);margin:0;font-size:1rem;line-height:1.75}.kb-original{min-height:calc(70 * var(--app-layout-height-unit));flex-direction:column;display:flex}.kb-original-frame{width:100%;min-height:calc(70 * var(--app-layout-height-unit));border:1px solid var(--line);background:#fff;border-radius:8px;flex:1}.kb-original-image-wrap{justify-content:center;padding:12px;display:flex;overflow:auto}.kb-original-image-wrap img{max-width:100%;height:auto}.kb-original-html{color:var(--ink);width:100%;max-width:900px;margin:0 auto;padding:8px 12px 24px;line-height:1.7}.kb-original-html table{border-collapse:collapse;width:100%;margin:12px 0;font-size:.92rem}.kb-original-html th,.kb-original-html td{border:1px solid var(--line);vertical-align:top;padding:6px 10px}.kb-original-html p{margin:0 0 .75em}.kb-search-bar{gap:10px;margin-bottom:14px;display:flex}.kb-search-bar input{border:1px solid var(--line);border-radius:8px;flex:1;padding:10px 12px}.kb-sync{max-width:560px}.kb-sync h3{margin:0 0 8px}.kb-sync p{margin:0 0 16px;line-height:1.55}.field .req{color:var(--danger);font-style:normal}.field .hint{color:var(--muted);margin-top:4px;font-size:.75rem;display:block}.banner.danger{background:var(--danger-soft);color:var(--danger);border-radius:8px;padding:10px 12px;font-size:.88rem}.muted{color:var(--muted)}.tpl-editor-modal{width:min(1100px,100%);max-height:min(calc(92 * var(--app-layout-height-unit)), 900px)}.tpl-editor-hosp{color:var(--muted);font-size:.92em;font-weight:500}.tpl-editor-body{flex-direction:column;gap:12px;min-height:0;display:flex;overflow:hidden}.tpl-editor-meta{grid-template-columns:200px 1fr;gap:12px;display:grid}.tpl-editor-meta .field{margin-bottom:0}.tpl-editor{border:1px solid var(--line);background:#fff;border-radius:12px;flex-direction:column;flex:1;gap:0;min-height:420px;display:flex;overflow:hidden}.tpl-toolbar{border-bottom:1px solid var(--line);background:#f8f9fb;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;display:flex}.tpl-toolbar-group{border-right:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:4px;padding-right:8px;display:inline-flex}.tpl-toolbar-group:last-child{border-right:none;padding-right:0}.tpl-toolbar select{border:1px solid var(--line);background:#fff;border-radius:8px;max-width:120px;padding:5px 8px;font-size:.82rem}.tpl-toolbar button{border:1px solid var(--line);color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;padding:5px 10px;font-size:.8rem;font-weight:600}.tpl-toolbar button:hover{background:#f3f4f6}.tpl-toolbar button.active{background:var(--primary-soft,#e8effc);color:var(--primary);border-color:#b7c9f0}.tpl-toolbar button:disabled,.tpl-toolbar select:disabled{opacity:.5;cursor:not-allowed}.tpl-color{border:1px solid var(--line);background:#fff;border-radius:8px;align-items:center;width:32px;height:28px;display:inline-flex;overflow:hidden}.tpl-color input{cursor:pointer;background:0 0;border:none;width:40px;height:36px;margin:-4px;padding:0}.tpl-date-insert{border:1px solid var(--line);color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:4px;padding:3px 8px;font-size:.78rem;font-weight:600;display:inline-flex}.tpl-date-insert input{cursor:pointer;background:0 0;border:none;max-width:128px;padding:0;font-size:.78rem}.tpl-editor-main{flex:1;grid-template-columns:1fr 220px;min-height:360px;display:grid}.tpl-editor-surface{background:#fafafa;min-height:360px;overflow:auto}.tpl-editor-surface .tiptap{color:#111;background:#fff;border:1px solid #eceef2;border-radius:8px;outline:none;min-height:360px;margin:12px;padding:20px 24px;font-family:SimSun,Songti SC,serif;font-size:14px;line-height:1.8;box-shadow:0 1px 2px #1018280a}.tpl-editor-surface .tiptap p{margin:.35em 0}.tpl-editor-surface .tiptap h1,.tpl-editor-surface .tiptap h2,.tpl-editor-surface .tiptap h3{margin:.6em 0 .35em;font-weight:700}.tpl-editor-surface .tiptap hr{border:none;border-top:1px solid #333;margin:14px 0}.tpl-editor-surface .tiptap ul,.tpl-editor-surface .tiptap ol{margin:.4em 0 .4em 1.4em;padding:0}.tpl-editor-surface .tiptap blockquote{color:#444;border-left:3px solid #ccc;margin:.5em 0;padding-left:12px}.tpl-preview-overlay{z-index:90}.tpl-preview-modal{width:min(860px,100%);max-height:min(calc(92 * var(--app-layout-height-unit)), 900px)}.tpl-preview-body{background:#e8eaed;overflow:auto;padding:0!important}.tpl-preview-frame{width:100%;height:min(calc(75 * var(--app-layout-height-unit)), 820px);background:#e8eaed;border:none;display:block}.tpl-ph{color:#1a56db;font-family:var(--font);white-space:nowrap;-webkit-user-select:none;user-select:none;background:#e8f0fe;border:1px solid #c5d7fb;border-radius:4px;margin:0 1px;padding:0 6px;font-size:.85em;font-weight:600;line-height:1.5;display:inline-block}.tpl-ph-panel{border-left:1px solid var(--line);background:#fcfcfd;padding:12px;overflow:auto}.tpl-ph-panel h4{margin:0 0 4px;font-size:.88rem}.tpl-ph-panel>p{color:var(--muted);margin:0 0 12px;font-size:.75rem;line-height:1.45}.tpl-ph-group{margin-bottom:14px}.tpl-ph-group-title{color:var(--muted);letter-spacing:.02em;margin-bottom:6px;font-size:.72rem;font-weight:700;display:block}.tpl-ph-list{flex-wrap:wrap;gap:6px;display:flex}.tpl-ph-list button{color:#1a56db;cursor:pointer;background:#fff;border:1px solid #d7dff0;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:600}.tpl-ph-list button:hover{background:#e8f0fe;border-color:#b7c9f0}.tpl-ph-list button:disabled{opacity:.5;cursor:not-allowed}.tpl-ph-empty{color:var(--muted);font-size:.75rem}.tpl-editor-loading{color:var(--muted);text-align:center;padding:24px}@container app-layout (width<=860px){.tpl-editor-meta,.tpl-editor-main{grid-template-columns:1fr}.tpl-ph-panel{border-left:none;border-top:1px solid var(--line);max-height:220px}}.toast-viewport{z-index:10050;width:min(380px, calc(calc(100 * var(--app-layout-width-unit)) - 32px));pointer-events:none;flex-direction:column;gap:10px;display:flex;position:fixed;top:16px;right:16px}.toast-viewport.toast-viewport-center{width:min(420px,100vw - 32px);top:50%;left:50%;right:auto;transform:translate(-50%,-50%)}.toast{pointer-events:auto;color:var(--ink);background:#fff;border-radius:12px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:.9rem;line-height:1.45;animation:.28s ease-out toast-in;display:flex;box-shadow:0 12px 32px #15233a24,0 0 0 1px #15233a0f}.toast.leaving{animation:.28s ease-in forwards toast-out}.toast-icon{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;margin-top:1px;font-size:.75rem;font-weight:700;display:inline-flex}.toast-msg{word-break:break-word;flex:1;min-width:0}.toast-close{color:var(--muted);background:0 0;border:none;border-radius:6px;flex-shrink:0;margin:-2px -2px 0 0;padding:0 2px;font-size:1.1rem;line-height:1}.toast-close:hover{color:var(--ink);background:#f3f4f6}.toast-success .toast-icon{background:var(--ok-soft);color:var(--ok)}.toast-error .toast-icon{background:var(--danger-soft);color:var(--danger)}.toast-warn .toast-icon{background:var(--warn-soft);color:var(--warn)}.toast-info .toast-icon{background:var(--primary-soft);color:var(--primary)}.toast-success{border-left:3px solid var(--ok)}.toast-error{border-left:3px solid var(--danger)}.toast-warn{border-left:3px solid var(--warn)}.toast-info{border-left:3px solid var(--primary)}@keyframes toast-in{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:translate(0)}}@keyframes toast-out{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(20px)}}@media (width<=560px){.toast-viewport{width:auto;top:10px;left:10px;right:10px}}@media (width<=768px){.login-page{min-height:calc(100 * var(--app-layout-height-unit));padding:20px 16px calc(20px + var(--safe-bottom));align-content:center}.login-card{border-radius:14px;padding:28px 20px 22px}.login-title{font-size:1.35rem}.login-brand-logo{width:52px;height:52px}}@container app-layout (width<=768px){.doctor-shell.is-mobile{width:100%;max-width:100%;height:calc(100 * var(--app-layout-height-unit));max-height:calc(100 * var(--app-layout-height-unit));padding:0;padding-bottom:calc(var(--mobile-nav-h) + var(--safe-bottom));flex-direction:column;grid-template-columns:none;display:flex;overflow:hidden}.doctor-shell.is-mobile .icon-rail{display:none!important}.doctor-shell.is-mobile .doctor-body,.doctor-shell.is-mobile .doctor-body.is-workstation{flex:1;width:100%;min-width:0;max-width:100%;height:auto;min-height:0;padding:0;overflow-x:hidden}.doctor-shell.is-mobile.is-workstation-route .doctor-body{padding-bottom:0}.doctor-shell.is-mobile .doctor-stage{box-shadow:none;border:none;border-radius:0;width:100%;min-width:0;max-width:100%;min-height:0;overflow-x:hidden}.doctor-shell.is-mobile .doctor-stage-head{padding:12px 14px calc(10px + var(--safe-top) * 0);flex-direction:row;align-items:center;gap:8px;min-width:0;max-width:100%}.doctor-shell.is-mobile .doctor-stage-head h1{font-size:1rem}.doctor-shell.is-mobile .doctor-stage-head p{display:none}.doctor-shell.is-mobile .doctor-stage-body{min-width:0;max-width:100%;padding:12px 12px 20px;overflow-x:hidden}.doctor-tabbar{z-index:40;height:calc(var(--mobile-nav-h) + var(--safe-bottom));padding:4px 2px var(--safe-bottom);background:#fafafa;border-top:1px solid #ebebeb;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #0f172a0f}.doctor-tab{color:#8b8f97;-webkit-tap-highlight-color:transparent;background:0 0;border:none;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:48px;padding:4px 2px;font-size:.68rem;font-weight:500;text-decoration:none;display:flex}.doctor-tab.active{color:#1f2329}.doctor-tab svg{flex-shrink:0}.doctor-more-overlay{z-index:45;flex-direction:column;justify-content:flex-end;display:flex;position:fixed;inset:0}.doctor-more-backdrop{background:#0f172a59;border:none;position:absolute;inset:0}.doctor-more-sheet{padding:8px 12px calc(12px + var(--safe-bottom));max-height:min(calc(88 * var(--app-layout-height-unit)), calc(calc(100 * var(--app-layout-height-unit)) - 12px));background:#fff;border-radius:16px 16px 0 0;animation:.22s both doctor-sheet-up;position:relative;overflow-y:auto;box-shadow:0 -8px 32px #0f172a1f}.doctor-more-handle{background:#d1d5db;border-radius:999px;width:36px;height:4px;margin:4px auto 10px}.doctor-more-title{padding:0 8px 10px;font-size:.95rem;font-weight:700}.doctor-more-section{color:#8b8f97;letter-spacing:.04em;margin:8px 8px 4px;font-size:.72rem;font-weight:600}.doctor-more-list{flex-direction:column;gap:4px;display:flex}.doctor-more-identity{border-bottom:1px solid #eef0f3;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px;padding:8px 10px 12px;display:flex}.doctor-more-identity .doctor-more-avatar{width:40px;height:40px;font-size:.9rem}.doctor-more-identity>div{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.doctor-more-identity strong{color:#111827;font-size:.95rem}.doctor-more-identity span{color:#6b7280;word-break:break-all;font-size:.75rem}.doctor-more-item{text-align:left;color:#1f2329;box-sizing:border-box;background:0 0;border:none;border-radius:12px;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px 10px;font-size:.92rem;font-weight:500;text-decoration:none;display:flex}.doctor-more-item:hover,.doctor-more-item.active{background:#f3f4f6}.doctor-more-item.danger{color:#ef4444}.doctor-more-item.danger:hover{background:#fef2f2}.topbar-actions.is-sheet{flex-direction:column;gap:4px;width:100%;display:flex}.topbar-actions.is-sheet .topbar-action-wrap{width:100%}.topbar-actions.is-sheet .doctor-more-item .badge-dot{min-width:18px;height:18px;margin-left:auto;font-size:10px;line-height:18px;position:static}.doctor-more-avatar{color:#fff;background:linear-gradient(145deg,#5b8def,#3b6fd9);border-radius:50%;place-items:center;width:28px;height:28px;font-size:.75rem;font-style:normal;font-weight:700;display:grid}@keyframes doctor-sheet-up{0%{opacity:.6;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.doctor-shell.is-mobile .page-card-head{flex-direction:column;align-items:stretch;gap:10px;min-width:0;max-width:100%}.doctor-shell.is-mobile .page-card-head .actions{justify-content:flex-start}.doctor-shell.is-mobile .page-card-head h2{font-size:1.05rem}.doctor-shell.is-mobile .page-card-head p{font-size:.8rem}.doctor-shell.is-mobile .panel,.doctor-shell.is-mobile .panel.flush,.doctor-shell.is-mobile .agents-page{min-width:0;max-width:100%}.doctor-shell.is-mobile .toolbar{flex-direction:column;align-items:stretch;gap:10px;min-width:0;max-width:100%}.doctor-shell.is-mobile .toolbar .search{width:100%;min-width:0;max-width:100%}.doctor-shell.is-mobile .chip-row{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;max-width:100%;padding-bottom:2px;overflow-x:auto}.doctor-shell.is-mobile .grid.two,.doctor-shell.is-mobile .grid.work{grid-template-columns:1fr}.doctor-shell.is-mobile .table-wrap{max-width:100%;overflow-x:hidden}.doctor-shell.is-mobile table.data{table-layout:fixed;border:none;width:100%;max-width:100%}.doctor-shell.is-mobile table.data thead{display:none}.doctor-shell.is-mobile table.data tbody{flex-direction:column;gap:10px;max-width:100%;display:flex}.doctor-shell.is-mobile table.data tr{box-sizing:border-box;border:1px solid var(--line);background:#fff;border-radius:12px;width:100%;max-width:100%;padding:10px 12px;display:block;box-shadow:0 1px 2px #0f172a0a}.doctor-shell.is-mobile table.data tr:hover td{background:0 0}.doctor-shell.is-mobile table.data td{border:none;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0;max-width:100%;padding:5px 0;font-size:.86rem;display:flex}.doctor-shell.is-mobile table.data td:before{content:attr(data-label);color:var(--muted);flex-shrink:0;max-width:36%;font-size:.75rem;font-weight:600}.doctor-shell.is-mobile table.data td:not([data-label]):before,.doctor-shell.is-mobile table.data td[data-label=""]:before{display:none}.doctor-shell.is-mobile table.data td:first-child:not([data-label]),.doctor-shell.is-mobile table.data td[data-label=""]{overflow-wrap:anywhere;word-break:break-word;border-bottom:1px solid #f3f4f6;margin-bottom:4px;padding-bottom:8px;display:block}.doctor-shell.is-mobile table.data td.action-links{white-space:normal;border-top:1px solid #f3f4f6;margin-top:6px;padding-top:8px;display:block}.doctor-shell.is-mobile table.data td.action-links:before{display:none}.doctor-shell.is-mobile .agents-page table.data td.action-links{white-space:normal}.doctor-shell.is-mobile .row-ops{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;max-width:100%}.doctor-shell.is-mobile .row-ops button,.doctor-shell.is-mobile .row-ops a{box-sizing:border-box;justify-content:center;align-items:center;min-height:36px;margin:0;padding:6px 10px;line-height:1;display:inline-flex}.doctor-shell.is-mobile table.data td .empty{text-align:center;width:100%}.doctor-shell.is-mobile table.data.mobile-list-table tbody{gap:0}.doctor-shell.is-mobile table.data.mobile-list-table tr{box-shadow:none;box-sizing:border-box;background:0 0;border:none;border-bottom:1px solid #f0f1f3;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;max-width:100%;padding:10px 4px;display:flex}.doctor-shell.is-mobile table.data.mobile-list-table tr:last-child{border-bottom:none}.doctor-shell.is-mobile table.data.mobile-list-table td{border:none;min-width:0;margin:0;padding:0;display:block}.doctor-shell.is-mobile table.data.mobile-list-table td:before,.doctor-shell.is-mobile table.data.mobile-list-table .col-desktop{display:none!important}.doctor-shell.is-mobile table.data.mobile-list-table .col-primary{flex:auto;min-width:0;overflow:hidden;border:none!important;margin:0!important;padding:0!important}.doctor-shell.is-mobile table.data.mobile-list-table .col-primary .cell-title{white-space:nowrap;text-overflow:ellipsis;font-size:.92rem;font-weight:600;overflow:hidden}.doctor-shell.is-mobile table.data.mobile-list-table .col-status{flex:none;align-items:center;display:flex!important}.doctor-shell.is-mobile table.data.mobile-list-table .col-meta{max-width:22%;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;text-align:right;flex:0 auto;align-items:center;font-size:.78rem;overflow:hidden;display:flex!important}.doctor-shell.is-mobile table.data.mobile-list-table .col-actions{flex:none;align-items:center;max-width:46%;border:none!important;margin:0!important;padding:0!important;display:flex!important}.doctor-shell.is-mobile table.data.mobile-list-table .col-actions .row-ops{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;max-width:100%;min-height:0;display:inline-flex}.doctor-shell.is-mobile table.data.mobile-list-table .col-actions .row-ops button,.doctor-shell.is-mobile table.data.mobile-list-table .col-actions .row-ops a{box-sizing:border-box;vertical-align:middle;white-space:nowrap;justify-content:center;align-items:center;height:30px;min-height:30px;margin:0;padding:0 6px;font-size:.76rem;line-height:1;display:inline-flex}.doctor-shell.is-mobile table.data.mobile-list-table td .empty{padding:24px 0}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tbody{gap:8px}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tr.rec-card-row{background:linear-gradient(#fff 0%,#fbfcfe 100%);border:1px solid #e8eaef;border-radius:14px;grid-template-columns:1fr auto;grid-template-areas:"main status""main actions";align-items:center;gap:6px 10px;padding:12px 14px;display:grid;box-shadow:0 1px 3px #0f172a0a}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tr.rec-card-row td{border:none;margin:0;padding:0;display:block}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tr.rec-card-row td:before{display:none!important}.doctor-shell.is-mobile .rec-page table.data.rec-card-table .rec-card-main{grid-area:main;min-width:0;border:none!important;margin:0!important;padding:0!important}.doctor-shell.is-mobile .rec-page table.data.rec-card-table .rec-card-main .cell-title{white-space:nowrap;text-overflow:ellipsis;font-size:.92rem;font-weight:650;line-height:1.3;overflow:hidden}.doctor-shell.is-mobile .rec-page table.data.rec-card-table .rec-card-main .cell-sub{color:#8b8f97;margin-top:2px;font-size:.72rem}.doctor-shell.is-mobile .rec-page table.data.rec-card-table .rec-card-status{grid-area:status;justify-self:end}.doctor-shell.is-mobile .rec-page table.data.rec-card-table .rec-card-time,.doctor-shell.is-mobile .rec-page table.data.rec-card-table td[data-label=方式],.doctor-shell.is-mobile .rec-page table.data.rec-card-table td[data-label=就诊号],.doctor-shell.is-mobile .rec-page table.data.rec-card-table td[data-label=科室],.doctor-shell.is-mobile .rec-page table.data.rec-card-table td[data-label=床号]{display:none}.doctor-shell.is-mobile .rec-page table.data.rec-card-table td.action-links{grid-area:actions;justify-self:end;border:none!important;margin:0!important;padding:0!important}.doctor-shell.is-mobile .rec-page table.data.rec-card-table td.action-links .row-ops{gap:6px}.doctor-shell.is-mobile .rec-page table.data.rec-card-table td.action-links .row-ops button{background:#f3f5f9;border-radius:8px;min-height:30px;padding:4px 10px;font-size:.78rem;text-decoration:none}.doctor-shell.is-mobile .rec-page table.data.rec-card-table td.action-links .row-ops button:hover{background:#e8eef8;text-decoration:none}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tr.rec-card-row:has(td[data-label=文书数]){grid-template-columns:1fr auto;grid-template-areas:"main status""main actions"}.doctor-shell.is-mobile .rec-page table.data.rec-card-table tr.rec-card-row:has(td[data-label=文书数]) td[data-label=文书数]{grid-area:status;justify-self:end;display:block}.modal-overlay{box-sizing:border-box;flex-direction:column;justify-content:flex-end;align-items:stretch;width:100%;max-width:100%;padding:0;overflow-x:hidden}.modal-dialog,.modal-dialog.sm,.agents-modal,.agents-modal-wide{max-height:min(calc(94 * var(--app-layout-height-unit)), 100%);box-sizing:border-box;border-radius:14px 14px 0 0;margin:0;overflow-x:hidden;width:100%!important;min-width:0!important;max-width:100%!important}.modal-head,.modal-body,.modal-foot{box-sizing:border-box;min-width:0;max-width:100%}.modal-head>div:first-child{overflow-wrap:anywhere;flex:1;min-width:0}.modal-head p{overflow-wrap:anywhere;word-break:break-word}.modal-body{-webkit-overflow-scrolling:touch;overflow:hidden auto}.modal-body,.modal-grid,.modal-grid .field,.modal-grid .span-2{min-width:0;max-width:100%}.modal-grid{grid-template-columns:1fr;width:100%}.modal-grid .span-2{grid-column:auto}.modal-grid .field input:not([type=checkbox]):not([type=radio]),.modal-grid .field textarea,.modal-grid .field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.agents-bind-head{flex-wrap:wrap;align-items:flex-start;min-width:0;max-width:100%}.agents-bind-head .linkish{text-align:right;white-space:normal;overflow-wrap:anywhere;flex-shrink:1}.agents-skill-pick,.agents-bind-list{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.agents-skill-chip{overflow-wrap:anywhere;word-break:break-word;white-space:normal;width:100%;min-width:0;max-width:100%}.modal-dialog .chip-row{flex-wrap:wrap;max-width:100%;overflow-x:hidden}.agents-modal-checks{min-width:0;max-width:100%;overflow:hidden}.agents-modal-checks span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.modal-foot{padding-bottom:calc(12px + var(--safe-bottom));flex-wrap:wrap;gap:8px;max-width:100%}.modal-foot.split{flex-direction:column;align-items:stretch}.modal-foot-actions{justify-content:stretch;width:100%;margin-left:0}.modal-foot-actions .btn{flex:1;min-width:0}.ws-layout.is-mobile,.ws-layout.is-mobile.list-collapsed{flex-direction:column;flex:1;grid-template-columns:none;height:auto;min-height:0;display:flex;position:relative}.ws-layout.is-mobile .ws-nav{top:0;left:0;bottom:calc(var(--mobile-nav-h) + var(--safe-bottom));z-index:31;width:56px;padding:calc(8px + var(--safe-top)) 4px 10px;border-right:1px solid #e8edf4;position:fixed;overflow:visible}.ws-layout.is-mobile .ws-nav-brand{margin:0 0 8px}.ws-layout.is-mobile .ws-nav-item span,.ws-layout.is-mobile .ws-nav-brand em{max-width:min(calc(52 * var(--app-layout-width-unit)), 180px);white-space:normal}.ws-layout.is-mobile .ws-list-backdrop{z-index:28;background:#0f172a59;border:none;position:fixed;inset:0}.ws-layout.is-mobile .ws-list{top:0;left:56px;bottom:calc(var(--mobile-nav-h) + var(--safe-bottom));width:min(320px, calc(calc(88 * var(--app-layout-width-unit)) - 56px));z-index:30;height:auto;max-height:none;padding:calc(8px + var(--safe-top)) 10px 12px;background:#fafafa;border-bottom:none;border-right:1px solid #ebebeb;transition:transform .2s;position:fixed;transform:translate(0);box-shadow:8px 0 28px #0f172a1f}.ws-layout.is-mobile.list-collapsed .ws-list{pointer-events:none;transform:translate(calc(-105% - 56px))}.ws-layout.is-mobile .ws-list-body,.ws-layout.is-mobile.list-collapsed .ws-list-body{display:flex!important}.ws-layout.is-mobile .ws-list-title{flex-direction:row;gap:6px}.ws-layout.is-mobile .ws-main{flex-direction:column;flex:1;width:100%;min-height:0;display:flex}.ws-layout.is-mobile .ws-main-head{flex-wrap:nowrap;gap:6px;min-width:0;padding:8px 10px}.ws-layout.is-mobile .ws-main-title{flex:1;min-width:0;overflow:hidden}.ws-layout.is-mobile .ws-main-title>div{min-width:0;overflow:hidden}.ws-layout.is-mobile .ws-main-title h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ws-layout.is-mobile .ws-main-title p{-webkit-line-clamp:1;-webkit-box-orient:vertical;max-width:none;display:-webkit-box;overflow:hidden}.ws-layout.is-mobile .ws-mobile-list-btn{flex-shrink:0}.ws-layout.is-mobile .ws-main-actions{flex-wrap:nowrap;flex-shrink:0;gap:2px}.ws-layout.is-mobile .ws-icon-btn{width:32px;height:32px}.ws-layout.is-mobile .ws-workspace,.ws-layout.is-mobile .ws-workspace.with-draft,.ws-layout.is-mobile .ws-workspace.with-history{flex:1;grid-template-columns:1fr;min-height:0;position:relative}.ws-layout.is-mobile .ws-side-resizer{display:none}.ws-layout.is-mobile .ws-chat{flex-direction:column;min-height:0;display:flex}.ws-layout.is-mobile .ws-thread{padding:10px 12px}.ws-layout.is-mobile .ws-msg{gap:8px}.ws-layout.is-mobile .ws-bubble,.ws-layout.is-mobile .ws-action-card,.ws-layout.is-mobile .ws-workflow{max-width:100%}.ws-layout.is-mobile .ws-composer{padding:8px 10px 10px}.ws-layout.is-mobile .ws-composer-top{flex-wrap:wrap;overflow-x:hidden}.ws-layout.is-mobile .ws-select-chip{flex:auto;min-width:0;max-width:calc(50% - 4px)}.ws-layout.is-mobile .ws-select-chip strong{flex:1;min-width:0;max-width:none}.ws-layout.is-mobile .ws-tool-chip span{display:none}.ws-layout.is-mobile .ws-tool-chip{flex-shrink:0;padding:0 8px}.ws-layout.is-mobile .ws-select-chip em{display:none}.ws-layout.is-mobile .ws-upload-actions{grid-template-columns:1fr}.ws-layout.is-mobile .ws-slash{max-height:min(calc(50 * var(--app-layout-height-unit)), 360px);overflow:auto}.ws-layout.is-mobile .ws-draft,.ws-layout.is-mobile .ws-history{left:0;right:0;bottom:calc(var(--mobile-nav-h) + var(--safe-bottom));z-index:32;max-height:min(calc(78 * var(--app-layout-height-unit)), 640px);height:min(calc(78 * var(--app-layout-height-unit)), 640px);background:#fff;border-top:1px solid #ebebeb;border-left:none;border-radius:16px 16px 0 0;animation:.22s both doctor-sheet-up;position:fixed;top:auto;box-shadow:0 -8px 28px #0f172a1f}.ws-layout.is-mobile .ws-more-menu{max-width:min(280px, calc(calc(100 * var(--app-layout-width-unit)) - 24px));left:auto;right:0}.doctor-shell.is-mobile .mat-layout,.doctor-shell.is-mobile .mat-split,.doctor-shell.is-mobile .mat-compare{grid-template-columns:1fr}.doctor-shell.is-mobile .mat-patients,.doctor-shell.is-mobile .mat-list{max-height:calc(40 * var(--app-layout-height-unit))}.doctor-shell.is-mobile .mat-file-pane,.doctor-shell.is-mobile .mat-result-pane{min-height:200px}.doctor-shell.is-mobile .mat-file-frame{min-height:240px}.doctor-shell.is-mobile .rec-detail-toolbar{flex-wrap:wrap;gap:8px}.doctor-shell.is-mobile .rec-detail-actions{flex-wrap:wrap;gap:8px;width:100%;display:flex}.doctor-shell.is-mobile .rec-edit-editor,.doctor-shell.is-mobile .record-view{font-size:.88rem}.doctor-shell.is-mobile .agents-page-head{flex-direction:column;align-items:stretch}.doctor-shell.is-mobile .agents-page-actions{flex-wrap:wrap}.doctor-shell.is-mobile .agents-upload-card,.doctor-shell.is-mobile .agents-upload-actions{flex-direction:column;align-items:stretch}.doctor-shell.is-mobile .skill-card-grid{grid-template-columns:1fr;min-width:0;max-width:100%}.doctor-shell.is-mobile .skill-card{width:100%;max-width:100%;padding:12px}.doctor-shell.is-mobile .skill-card-head,.doctor-shell.is-mobile .skill-card-actions{gap:8px}.doctor-shell.is-mobile .skill-card-actions button{min-height:32px;padding:4px 2px}.doctor-shell.is-mobile .agents-page .panel.flush{max-width:100%;overflow:visible}.doctor-shell.is-mobile .agents-page-head,.doctor-shell.is-mobile .agents-page-actions{min-width:0;max-width:100%}.doctor-shell.is-mobile .kb-list-head{flex-direction:column;align-items:stretch;gap:10px}.doctor-shell.is-mobile .kb-list-actions{flex-wrap:wrap}.doctor-shell.is-mobile .kb-grid{grid-template-columns:1fr}.doctor-shell.is-mobile .kb-tabs{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;overflow-x:auto}.doctor-shell.is-mobile .kb-tab{flex-shrink:0}.doctor-shell.is-mobile .kb-detail-head,.doctor-shell.is-mobile .kb-toolbar{flex-wrap:wrap;gap:8px}.doctor-shell.is-mobile .kb-search-bar{flex-direction:column;align-items:stretch}.doctor-shell.is-mobile .kb-search-bar .btn{width:100%}.doctor-shell.is-mobile .kb-table{border:none;width:100%;display:block}.doctor-shell.is-mobile .kb-table thead{display:none}.doctor-shell.is-mobile .kb-table tbody{flex-direction:column;gap:10px;display:flex}.doctor-shell.is-mobile .kb-table tr{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;display:block;box-shadow:0 1px 2px #0f172a0a}.doctor-shell.is-mobile .kb-table td{border:none;justify-content:space-between;align-items:flex-start;gap:12px;padding:4px 0;display:flex}.doctor-shell.is-mobile .kb-table td:before{content:attr(data-label);color:var(--muted);flex-shrink:0;font-size:.75rem;font-weight:600}.doctor-shell.is-mobile .kb-table td:not([data-label]):before,.doctor-shell.is-mobile .kb-table td[data-label=""]:before{display:none}.doctor-shell.is-mobile .kb-table td[data-label=""]{display:block}.doctor-shell.is-mobile .kb-ops{border-top:1px solid #f3f4f6;flex-wrap:wrap;gap:10px;margin-top:6px;padding-top:8px;display:flex}.doctor-shell.is-mobile .kb-ops:before{display:none}.doctor-shell.is-mobile .settings-check{min-height:44px}.doctor-shell.is-mobile .btn{min-height:40px}}.memory-page{--mem-accent:#0f766e;--mem-accent-2:#14b8a6;--mem-soft:#f0fdfa;--mem-line:#99f6e4;--mem-ink:#134e4a;flex-direction:column;gap:14px;display:flex}.memory-head-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.mem-btn{height:34px;color:var(--mem-ink);letter-spacing:.01em;white-space:nowrap;box-shadow:none;background:0 0;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-size:.8rem;font-weight:600;transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s;display:inline-flex}.mem-btn svg{opacity:.92;flex-shrink:0}.mem-btn:hover:not(:disabled){transform:translateY(-1px)}.mem-btn:active:not(:disabled){transform:translateY(0)}.mem-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}.mem-btn-primary{color:#fff;background:linear-gradient(135deg,#0f766e 0%,#0d9488 55%,#14b8a6 100%);border-color:#0000;box-shadow:0 4px 12px #0f766e38}.mem-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#0d9488 0%,#14b8a6 100%);box-shadow:0 6px 16px #0f766e47}.mem-btn-soft{background:var(--mem-soft);color:var(--mem-accent);border-color:var(--mem-line)}.mem-btn-soft:hover:not(:disabled){color:#115e59;background:#ccfbf1;border-color:#5eead4;box-shadow:0 2px 8px #0f766e1a}.mem-btn-warn{color:#b45309;background:#fffbeb;border-color:#fde68a}.mem-btn-warn:hover:not(:disabled){color:#92400e;background:#fef3c7;border-color:#fcd34d;box-shadow:0 2px 8px #b453091f}.mem-btn-danger{color:#be123c;background:#fff1f2;border-color:#fecdd3}.mem-btn-danger:hover:not(:disabled){color:#9f1239;background:#ffe4e6;border-color:#fda4af;box-shadow:0 2px 8px #be123c1f}.mem-btn-ghost-danger{color:#9f1239;background:0 0;border-color:#0000;height:30px;padding:0 10px;font-size:.76rem}.mem-btn-ghost-danger:hover:not(:disabled){box-shadow:none;background:#fff1f2;border-color:#fecdd3}.memory-status-bar{color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px 14px;font-size:.86rem;display:flex}.memory-pill{border:1px solid var(--line);border-radius:999px;align-items:center;padding:4px 10px;font-size:.8rem;font-weight:600;display:inline-flex}.memory-pill.ok{color:#166534;background:#ecfdf3;border-color:#bbf7d0}.memory-pill.warn{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.memory-status-reason{color:var(--muted)}.memory-toolbar-panel{padding:14px 16px}.memory-toolbar{grid-template-columns:minmax(160px,1fr) minmax(140px,.7fr) minmax(220px,1.4fr) auto;align-items:end;gap:12px 14px;display:grid}.memory-toolbar .field{margin:0}.memory-search-row{align-items:stretch;gap:8px;display:flex}.memory-search-row input{flex:1;min-width:0}.memory-search-row .mem-btn{flex-shrink:0;align-self:stretch;height:auto;min-height:38px}.memory-toolbar-actions{align-items:flex-end;padding-bottom:2px;display:flex}.memory-list-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;padding:14px 16px 8px;display:flex}.memory-list-head .muted{color:var(--muted);font-size:.85rem}.memory-pager{border-top:1px solid var(--line);margin:0;padding:12px 16px 16px}.memory-empty{text-align:center;color:var(--muted);padding:36px 20px;font-size:.92rem}.memory-list{margin:0;padding:0;list-style:none}.memory-item{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.memory-item:last-child{border-bottom:none}.memory-item-main{flex:1;min-width:0}.memory-item-meta{flex-wrap:wrap;gap:6px 8px;margin-bottom:6px;font-size:.78rem;display:flex}.memory-layer{color:#374151;background:#f3f4f6;border-radius:999px;padding:2px 8px;font-weight:600}.memory-layer.layer-doctor_pref{color:#1d4ed8;background:#eff6ff}.memory-layer.layer-patient{color:#166534;background:#ecfdf3}.memory-layer.layer-visit{color:#92400e;background:#fef3c7}.memory-layer.layer-session{color:#5b21b6;background:#f5f3ff}.memory-layer.layer-legacy{color:#991b1b;background:#fee2e2}.memory-patient,.memory-run,.memory-scenario{color:var(--muted)}.memory-text{color:#1f2937;white-space:pre-wrap;word-break:break-word;margin:0;line-height:1.55}@container app-layout (width<=900px){.memory-toolbar{grid-template-columns:1fr}.memory-toolbar-actions{justify-content:flex-start}.memory-head-actions{width:100%}.memory-head-actions .mem-btn{flex:1}}.doc-viewer-overlay{z-index:1200;justify-content:center;align-items:center;padding:24px 16px}.doc-viewer-panel{width:min(860px,100%);max-height:min(calc(88 * var(--app-layout-height-unit)), 920px);background:#fff;border-radius:16px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 24px 64px #0f172a38}.doc-viewer-header{border-bottom:1px solid #eef2f7;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 8px;display:flex}.doc-viewer-heading h2{color:#0f172a;margin:0;font-size:1.15rem}.doc-viewer-heading p{color:#64748b;margin:4px 0 0;font-size:.82rem}.doc-viewer-close{border-radius:10px;width:36px;height:36px;font-size:1.4rem;line-height:1}.doc-viewer-tabs{border-bottom:1px solid #f1f5f9;gap:8px;padding:10px 20px;display:flex}.doc-viewer-tab{color:#475569;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:6px 14px;font-size:.82rem}.doc-viewer-tab.active{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe;font-weight:600}.doc-viewer-body{flex:1;padding:8px 22px 28px;overflow:auto}.help-center{min-height:calc(calc(100 * var(--app-layout-height-unit)) - 140px);grid-template-columns:260px minmax(0,1fr);align-items:start;gap:18px;display:grid}.help-center-nav{background:#fff;border:1px solid #e8edf5;border-radius:14px;flex-direction:column;gap:12px;padding:16px 14px;display:flex;position:sticky;top:12px}.help-center-nav-head{border-bottom:1px solid #f1f5f9;flex-direction:column;gap:2px;padding:0 4px 8px;display:flex}.help-center-nav-head strong{color:#0f172a;font-size:.95rem}.help-center-nav-head span{color:#94a3b8;font-size:.75rem}.help-center-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.help-center-item{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;gap:4px;width:100%;padding:10px 12px;display:flex}.help-center-item strong{color:#1e293b;font-size:.88rem}.help-center-item span{color:#94a3b8;font-size:.72rem;line-height:1.35}.help-center-item:hover{background:#f8fafc}.help-center-item.active{background:#eff6ff;border-color:#bfdbfe}.help-center-item.active strong{color:#1d4ed8}.help-center-api,.help-center-back{color:#2563eb;padding:4px 8px;font-size:.82rem;text-decoration:none}.help-center-api:hover,.help-center-back:hover{text-decoration:underline}.help-center-main{background:#fff;border:1px solid #e8edf5;border-radius:14px;min-width:0;padding:22px 28px 36px}.help-center-main-head{border-bottom:1px solid #f1f5f9;margin-bottom:18px;padding-bottom:14px}.help-center-main-head h1{color:#0f172a;margin:0;font-size:1.35rem}.help-center-main-head p{color:#64748b;margin:6px 0 0;font-size:.88rem}.md-doc{color:#1e293b;font-size:.92rem;line-height:1.65}.md-doc h1,.md-doc h2,.md-doc h3,.md-doc h4{color:#0f172a;margin:1.4em 0 .55em;line-height:1.35}.md-doc h1{font-size:1.35rem}.md-doc h2{border-bottom:1px solid #f1f5f9;padding-bottom:.35em;font-size:1.15rem}.md-doc h3{font-size:1.02rem}.md-doc p{margin:.7em 0}.md-doc ul,.md-doc ol{margin:.55em 0 .9em;padding-left:1.4em}.md-doc li{margin:.25em 0}.md-doc blockquote{color:#475569;background:#f8fafc;border-left:3px solid #93c5fd;margin:.9em 0;padding:.55em 1em}.md-doc code{background:#f1f5f9;border-radius:4px;padding:.1em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em}.md-doc pre{color:#e2e8f0;background:#0f172a;border-radius:10px;padding:12px 14px;font-size:.82rem;overflow:auto}.md-doc pre code{color:inherit;background:0 0;padding:0}.md-doc table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.86rem;display:block;overflow-x:auto}.md-doc th,.md-doc td{text-align:left;vertical-align:top;border:1px solid #e2e8f0;padding:8px 10px}.md-doc th{background:#f8fafc;font-weight:600}.md-doc a{color:#2563eb}.md-doc-link-btn{color:#2563eb;cursor:pointer;font:inherit;background:0 0;border:none;padding:0;text-decoration:underline}.md-doc-dead-link{color:#64748b}.md-doc hr{border:none;border-top:1px solid #e2e8f0;margin:1.4em 0}.profile-help-links{border-top:1px solid #eef2f7;flex-direction:column;gap:8px;margin-top:22px;padding-top:16px;display:flex}.profile-help-link-row{flex-wrap:wrap;gap:14px;display:flex}.profile-help-link-row a{color:#2563eb;font-size:.9rem;text-decoration:none}.profile-help-link-row a:hover{text-decoration:underline}.doctor-shell .help-center{min-height:calc(calc(100 * var(--app-layout-height-unit)) - 88px)}@container app-layout (width<=900px){.help-center{grid-template-columns:1fr}.help-center-nav{position:static}.help-center-main{padding:16px 16px 28px}.doc-viewer-panel{max-height:calc(92 * var(--app-layout-height-unit))}}@media print{html,body,#root{height:auto;max-height:none}#root{container-type:normal}}
