/* AI 病历生成（/note）。只管屏幕显示。 */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.note-main{max-width:880px;width:calc(100% - 32px);margin:0 auto;padding:28px 0 calc(56px + env(safe-area-inset-bottom))}

.note-hero h1{margin:0;font-size:clamp(1.75rem,3.4vw,2.5rem);line-height:1.2;color:var(--ws-ink,#08333d)}
.note-hero > p{margin:10px 0 18px;font-size:1rem;line-height:1.8;color:var(--ws-muted,var(--ds-muted))}
.note-privacy{display:block;margin:0 0 16px;padding:14px 16px;border:1px solid #f0d58c;border-left:4px solid #d39b18;border-radius:12px;background:#fff8e6;color:#5c4300;font-size:.9375rem;line-height:1.75}
.note-privacy strong{display:block;margin-bottom:2px}
.note-login{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:#fdecec;color:#8a1f1f;line-height:1.7}
.note-login a{color:inherit;font-weight:700}
.note-card{margin:0 0 16px;padding:20px;border:1px solid var(--ws-line,var(--ds-line));border-radius:16px;background:#fff;box-shadow:var(--ws-shadow,0 5px 20px rgba(8,51,61,.045))}
.note-card h2{margin:20px 0 12px;font-size:1.125rem;color:var(--ws-ink,#08333d)}
.note-card h2:first-child{margin-top:0}
.note-card h2 small{display:block;margin-top:2px;font-size:.8125rem;font-weight:400;color:var(--ws-muted,var(--ds-muted))}
.note-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.note-field{display:block;margin:0 0 14px;font-size:.9375rem;font-weight:650;color:var(--ws-text,var(--ds-text))}
.note-field[hidden]{display:none}
.note-field em{margin-left:4px;font-style:normal;font-size:.75rem;font-weight:600;color:#b42318}
.note-field input,.note-field select,.note-field textarea,.note-result textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 12px;min-height:46px;border:1px solid var(--ds-line-strong);border-radius:10px;background:#fff;font:inherit;font-weight:400;font-size:1rem;line-height:1.6;color:var(--ws-ink,#08333d)}
.note-field textarea{resize:vertical}
.note-field input:focus,.note-field select:focus,.note-field textarea:focus,.note-result textarea:focus{border-color:var(--ws-blue,var(--ds-blue));box-shadow:0 0 0 3px rgba(17,105,122,.18);outline:none}
.note-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.note-actions button,.note-result-buttons button{min-height:46px;padding:0 14px;border:0;border-radius:10px;background:var(--ws-blue,var(--ds-blue));color:#fff;font:inherit;font-size:.9375rem;font-weight:650;cursor:pointer;transition:background-color .15s ease}
.note-actions button:hover,.note-result-buttons button:hover{background:var(--ws-blue-hover,var(--ds-blue-strong))}
.note-actions button:disabled{background:#9cb6bc;cursor:progress}
.note-result-buttons .note-secondary{background:var(--ds-blue-50);color:var(--ws-ink,#08333d)}
.note-result-buttons .note-secondary:hover{background:var(--ds-line)}
.note-status{min-height:1.6em;margin:12px 0 0;font-size:.9375rem;line-height:1.6;color:var(--ws-muted,var(--ds-muted))}
.note-status.note-error{color:#b42318}
.note-result{scroll-margin-top:calc(var(--site-header-height,72px) + 12px)}
.note-result[hidden]{display:none}
.note-result-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.note-result-head h2{margin:0}
.note-result-buttons{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.note-result-buttons button:disabled{opacity:.6;cursor:progress}
.note-result textarea{min-height:360px;resize:vertical;font-size:1rem;line-height:1.8}
.note-tip{margin:8px 0 0;font-size:.8125rem;color:var(--ws-muted,var(--ds-muted))}
.note-button{min-height:46px;padding:10px 14px;border:1px solid transparent;border-radius:10px;background:var(--ws-blue,var(--ds-blue));color:#fff;font:inherit;font-weight:650;cursor:pointer}
.note-button:hover{background:var(--ws-blue-hover,var(--ds-blue-strong))}
.note-button.note-secondary{background:var(--ds-blue-50);color:var(--ws-ink,#08333d);border-color:var(--ws-line,var(--ds-line))}
.note-button:disabled{opacity:.6;cursor:progress}
.note-button[hidden],.note-status[hidden]{display:none}
.note-case-toolbar,.note-batch-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px}
.note-case-toolbar .note-tip{flex:1;min-width:180px;margin:0}
.note-details{margin:16px 0;border-top:1px solid var(--ws-line,var(--ds-line));padding-top:12px}
.note-details summary{cursor:pointer;font-weight:650;color:var(--ws-ink,#08333d);padding:8px 0}
.note-details .note-field:first-of-type{margin-top:12px}
.note-batch{min-width:0;margin:12px 0 16px;padding:16px;border:1px solid var(--ws-line,var(--ds-line));border-radius:10px;background:var(--ds-bg)}
.note-batch legend{font-weight:700;color:var(--ws-ink,#08333d)}
.note-batch-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.note-batch-options label{display:flex;gap:8px;align-items:center;min-height:44px;font-size:.9375rem;cursor:pointer}
.note-batch-options input{width:18px;height:18px;flex-shrink:0;accent-color:var(--ws-blue,var(--ds-blue))}
.note-batch-controls{margin:0}
.note-document-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.note-document-list button{max-width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--ws-line,var(--ds-line));border-radius:8px;background:#fff;color:var(--ws-ink,#08333d);font:inherit;overflow-wrap:anywhere;cursor:pointer}
.note-document-list button[aria-pressed=true]{border-color:var(--ws-blue,var(--ds-blue));background:var(--ds-blue-50);font-weight:700}
.note-facts{margin:12px 0;font-size:.9375rem}
.note-facts>div{padding:10px 0;border-bottom:1px solid var(--ws-line,var(--ds-line))}
.note-facts dt{font-weight:650}
.note-facts dd{margin:4px 0 0;overflow-wrap:anywhere}
.note-fact-source{white-space:pre-wrap}
.note-fact-status{display:block;margin-top:4px;font-size:.8125rem;color:var(--ws-muted,var(--ds-muted))}
.note-facts mark{background:#fff0bc;color:#5c4300}
@media (max-width:640px){
  .note-card{padding:16px}
  .note-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:360px){.note-batch-options{grid-template-columns:1fr}}
