/* Scoped helper styles: no table/form/navigation redesign. */
header .help-trigger{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;margin:0 auto 0 22px;padding:9px 13px;min-height:40px;border:1px solid #dce6f4;border-radius:12px;background:#f7faff;color:var(--navy);font-size:13px;font-weight:750;white-space:nowrap;transition:background .15s,border-color .15s}
header .help-trigger svg{color:var(--blue);flex:none}
header .help-trigger:hover{background:var(--blue-soft);border-color:#a9c2f2}
.help-trigger:focus-visible,.help-dialog button:focus-visible,.help-dialog input:focus-visible,.help-dialog select:focus-visible{outline:3px solid #93b8ff;outline-offset:3px}
.help-dialog{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(480px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);max-width:none;border:1px solid #dbe6f4;border-radius:22px;padding:0;color:var(--navy);background:#fff;box-shadow:-12px 12px 60px #0d2c4b26;overflow:hidden;font-size:14px}
.help-dialog[open]{display:flex;flex-direction:column;animation:help-enter .16s ease-out}
.help-dialog::backdrop{background:#12304c24}
.help-dialog *{box-sizing:border-box}
.help-top{display:flex;justify-content:space-between;gap:16px;padding:26px 24px 18px;background:linear-gradient(125deg,#f3f7ff,#fff);flex:none}
.help-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:850;color:var(--blue)}
.help-top h2{font-size:23px;line-height:1.35;margin:8px 0 6px;letter-spacing:-.04em}
.help-top p{margin:0;font-size:13px;color:var(--muted)}
.help-close,.help-clear{flex:none;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:24px;line-height:1}
.help-controls{padding:0 24px 14px;flex:none;border-bottom:1px solid #e7eef7}
.help-search-label{display:block;font-size:12px;font-weight:750;margin-bottom:7px}
.help-search-box{display:flex;align-items:center;gap:8px;border:1px solid #b8ceef;border-radius:13px;padding:3px 9px 3px 13px;background:#fff;box-shadow:0 3px 9px #2563eb08}
.help-search-box>svg{flex:none;color:var(--blue)}
.help-search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb12}
.help-search-box input{min-width:0;flex:1;width:100%;margin:0;padding:10px 0;border:0;box-shadow:none!important;border-radius:0;font-size:14px;background:transparent;color:var(--navy)}
.help-search-box input:focus-visible{outline:none}
.help-search-box input::-webkit-search-cancel-button{display:none}
.help-clear{width:27px;height:27px;border:0;font-size:19px;background:#f1f5fa}
.help-scope{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:12px}
.help-scope>label:first-child{display:grid;gap:4px;color:var(--muted);font-size:11px;flex:1;max-width:230px}
.help-scope select{width:100%;min-height:36px;padding:6px 8px;margin:0;border:1px solid var(--line);border-radius:9px;font-size:12px;background:#fff;color:var(--navy)}
.help-scope .help-current{display:flex;align-items:center;gap:6px;min-height:36px;font-size:12px;white-space:nowrap;color:var(--navy)}
.help-current input{width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:var(--blue)}
.help-context{font-size:11px;line-height:1.6;color:var(--muted);margin:9px 0 0}
.help-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;flex:1;padding:18px 20px 24px}
.help-result-status{font-size:12px;color:var(--muted);margin:0 4px 12px}
.help-results{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:9px}
.help-result{position:relative;display:block;min-width:0;width:100%;border:1px solid #e1e9f3;border-radius:13px;padding:14px 32px 14px 14px;text-align:left;background:#fff;color:var(--navy)}
.help-result:hover{background:#f8fbff;border-color:#b9cff2}
.help-result-path{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:var(--muted);line-height:1.5;margin-bottom:6px}
.help-result-path em{font-style:normal;font-size:9px;background:#eaf2ff;color:#2460cb;border-radius:5px;padding:2px 5px}
.help-result strong{display:block;line-height:1.55;font-size:14px;font-weight:750;word-break:keep-all;overflow-wrap:anywhere}
.help-result-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--muted);margin-top:6px}
.help-result-arrow{position:absolute;top:15px;right:12px;color:#6284b2;font-size:15px}
.help-more,.help-back{border:1px solid var(--line);background:#f8fbff;color:var(--blue);border-radius:10px;padding:10px 13px;font-size:12px;font-weight:750}
.help-more{display:block;width:100%;margin-top:12px}
.help-back{margin-bottom:20px;background:#fff}
.help-answer-path{display:block;color:var(--blue);font-size:11px;font-weight:750;margin-bottom:8px}
.help-answer h3{font-size:21px;line-height:1.5;letter-spacing:-.035em;margin:0 0 20px;word-break:keep-all;overflow-wrap:anywhere}
.help-answer h3:focus{outline:none}
.help-answer ol{margin:0;padding-left:25px;color:var(--ink)}
.help-answer li{padding-left:4px;margin-bottom:14px;line-height:1.9;word-break:keep-all;overflow-wrap:anywhere}
.help-answer li::marker{color:var(--blue);font-weight:850}
.help-note{background:#fff9ed;border:1px solid #f3dfb8;border-radius:12px;padding:14px;line-height:1.8;color:#7c5316;font-size:13px}
.help-note b{display:block;margin-bottom:4px;font-size:12px}
.help-destination{display:grid;gap:7px;border:1px solid #d8e5fb;border-radius:13px;background:#f3f7ff;padding:16px;margin-top:20px}
.help-destination>span{font-size:11px;color:var(--muted)}
.help-destination>strong{font-size:13px;line-height:1.5}
.help-navigate{display:flex;align-items:center;justify-content:space-between;border:0;border-radius:10px;background:var(--blue);color:#fff;padding:12px;margin-top:5px;font-size:13px;font-weight:750}
.help-destination>small{font-size:11px;color:var(--muted);line-height:1.6}
.help-nav-confirm{font-size:12px;line-height:1.75}.help-nav-confirm p{margin:8px 0}.help-nav-confirm button{display:block;width:100%;padding:10px;margin:6px 0 0;border:1px solid #abc4ec;border-radius:8px;background:#fff;color:var(--blue);font-size:12px;font-weight:700}
.help-related{margin-top:24px}
.help-related h4{font-size:12px;color:var(--muted);margin:0 0 8px}
.help-related button{display:flex;justify-content:space-between;gap:10px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--navy);text-align:left;line-height:1.65;font-size:13px}
.help-foot{flex:none;padding:13px 24px 15px;border-top:1px solid var(--line);background:#fafcff;display:grid;gap:4px}
.help-foot b{font-size:11px;color:#53667e}.help-foot span,.help-foot small{font-size:10px;line-height:1.65;color:var(--muted)}
.help-empty{text-align:center;padding:30px 14px}.help-empty>span{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 15px;background:#edf3fc;color:var(--blue);font-size:24px;border-radius:15px}.help-empty h3{font-size:17px}.help-empty p{font-size:13px;line-height:1.8;color:var(--muted)}.help-empty button{padding:11px;border:1px solid var(--line);border-radius:10px;background:#f7faff;color:var(--blue);font-size:13px}
@keyframes help-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1100px){header .help-trigger{margin-left:12px;margin-right:auto;padding:9px}.help-trigger .help-trigger-label{display:none}}
@media(max-width:620px){header .help-trigger{min-width:36px;min-height:36px;padding:7px;margin-left:8px;margin-right:8px}.help-dialog{inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.help-top{padding:20px 18px 14px}.help-top h2{font-size:22px}.help-controls{padding:0 18px 12px}.help-scroll{padding:15px 14px 20px}.help-foot{padding:10px 18px max(12px,env(safe-area-inset-bottom))}}
@media(max-width:620px){header:has(.help-trigger){padding-inline:12px;gap:0}header:has(.help-trigger) .brand-home{min-width:0;padding:4px 0;flex:0 1 auto}header:has(.help-trigger) .header-brand-logo{width:clamp(112px,calc(100vw - 232px),170px);height:auto}header:has(.help-trigger) .help-trigger{margin-right:auto}header:has(.help-trigger) .hospital{display:none}header:has(.help-trigger) .account-area{flex:none;gap:5px}header:has(.help-trigger) .clinic-management-button,header:has(.help-trigger) .logout-button{white-space:nowrap;min-height:36px;padding:7px;font-size:11px}}
@media(max-height:540px){.help-top{padding:12px 18px}.help-top h2{font-size:18px;margin:4px 0}.help-top p,.help-eyebrow,.help-context,.help-foot small{display:none}.help-controls{padding-bottom:8px}.help-foot{padding:8px 18px}}
@media(prefers-reduced-motion:reduce){.help-dialog[open]{animation:none}.help-trigger{transition:none}}
@media print{.help-dialog,.help-trigger{display:none!important}}
