.topbar{padding-left:22px;padding-right:22px;gap:16px}
.topbar .system-title{flex:0 0 auto;white-space:nowrap;line-height:1.35}
.topbar-actions{min-width:0;flex:1 1 auto;justify-content:flex-end;gap:10px}
.topbar-actions>.button,.topbar-date,.current-role,.logout{flex:0 0 auto;white-space:nowrap}
.topbar-date{display:inline;font-size:11px}
.current-role{padding-left:10px;gap:7px}.current-role>div{min-width:max-content}.current-role strong,.current-role small{white-space:nowrap}.role-avatar{flex-shrink:0}
#global-search-host{position:relative;min-width:200px;max-width:340px;z-index:45;flex:0 1 280px}
.global-search{position:relative;color:#242625;font-size:14px}
.gs-field{display:flex;align-items:center;gap:8px;height:40px;padding:0 11px;border:1px solid #d5e1db;border-radius:11px;background:#fff;box-shadow:0 2px 6px #244a3005;transition:border-color .18s,box-shadow .18s}
.gs-field:focus-within{border-color:#6ca285;box-shadow:0 0 0 3px #6ca2851c}
.gs-field>svg,.gs-mobile-toggle svg{width:18px;height:18px;flex:none;stroke:#6d8178;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.gs-input{min-width:0;width:100%;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;padding:0!important;font:inherit!important;line-height:1.3;color:#242625}
.gs-input::placeholder{color:#82918a}.gs-input::-webkit-search-cancel-button{display:none}
.gs-clear,.gs-close,.gs-mobile-toggle{border:0;background:transparent;cursor:pointer;font:inherit;color:#637b6e;flex:none}
.gs-clear{font-size:21px;width:24px;height:28px;padding:0}.gs-clear:hover{color:#244a30}.gs-clear[hidden]{display:none}
.gs-mobile-toggle{display:none;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #d5e1db;border-radius:10px;background:#fff}
.gs-panel{position:absolute;top:calc(100% + 11px);right:0;width:min(570px,calc(100vw - 30px));border:1px solid #d7e2db;border-radius:16px;background:#fff;box-shadow:0 18px 56px #18392b26,0 3px 10px #18392b0d;overflow:hidden;z-index:60}
.gs-panel[hidden]{display:none}.gs-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 17px 12px;border-bottom:1px solid #edf1ee}.gs-panel-heading strong{font-size:15px;color:#244a30}.gs-close{padding:3px 7px;border:1px solid #dce5df;border-radius:6px;font-size:11px}
.gs-results-meta{padding:10px 17px 7px;font-size:12px;color:#6e7c74}.gs-list{max-height:min(57vh,470px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbdacf transparent;padding:0 7px 9px}
.gs-group{position:sticky;top:0;display:flex;align-items:center;gap:7px;background:#fff;padding:10px 10px 6px;color:#6b7d71;font-size:11px;font-weight:700;letter-spacing:.04em;z-index:1}.gs-group span{font-size:10px;border-radius:5px;background:#f0f5f1;padding:1px 5px;color:#65806d}
.gs-result{display:flex;align-items:flex-start;gap:11px;width:100%;padding:11px 10px;border:1px solid transparent;border-radius:9px;text-align:left;background:#fff;font:inherit;cursor:pointer;color:#242625;transition:background .12s,border-color .12s}.gs-result:hover,.gs-result.is-selected,.gs-result:focus-visible{background:#f0f6f2;border-color:#d6e6db;outline:none}.gs-type-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;background:#eaf2ed;border-radius:9px}.gs-type-icon svg{width:18px;height:18px;stroke:#3f7960;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.gs-result-text{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1}.gs-result-title{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.gs-result-summary{font-size:12px;line-height:1.5;color:#63766a;overflow-wrap:anywhere}.gs-result-detail{font-size:11px;color:#8a968f;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.gs-result-badge{flex:none;background:#edf3ef;border-radius:6px;padding:3px 6px;color:#456654;font-size:10px;max-width:75px;line-height:1.4}.gs-result mark{background:#f3e4d2;color:#624320;border-radius:3px;padding:0 1px}
.gs-empty{padding:32px 18px 36px;text-align:center;color:#7b8c81;font-size:13px;line-height:1.7;display:flex;flex-direction:column;gap:5px}.gs-empty strong{font-size:14px;color:#456654}.gs-help{display:flex;gap:17px;padding:10px 17px;background:#f8faf8;color:#8b9990;font-size:10px;border-top:1px solid #edf1ee}.gs-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1700px){.topbar .system-title span{display:none}}
@media(max-width:1440px){.topbar{padding-left:20px;padding-right:20px;gap:14px}.topbar .system-title{font-size:14px}.topbar-actions{gap:8px}#global-search-host{flex-basis:240px}.gs-input{font-size:12px!important}.current-role{padding-left:8px}}
@media(max-width:1100px){.topbar{padding-left:16px;padding-right:16px;gap:12px}.topbar .system-title{font-size:13px}.current-role>div{display:none}.current-role{padding-left:8px}.gs-field{height:37px}#global-search-host{min-width:190px;flex-basis:210px}.topbar-actions>.button{font-size:11px;padding-left:9px;padding-right:9px}}
@media(max-width:980px){#global-search-host{flex:0 0 38px;min-width:38px;max-width:none;position:static}.global-search{position:static}.gs-mobile-toggle{display:flex}.gs-field{display:none}.global-search.is-expanded .gs-field{display:flex;position:fixed;left:14px;right:14px;top:86px;height:44px;z-index:69;background:#fff;box-shadow:0 4px 20px #18392b1c}.gs-panel{position:fixed;top:139px;left:14px;right:14px;width:auto;max-height:calc(100dvh - 155px);z-index:69}.gs-list{max-height:calc(100dvh - 305px)}}
@media(max-width:900px){.topbar-date{display:none}}
@media(max-width:760px){.topbar{padding-left:12px;padding-right:12px;gap:8px}.topbar .system-title{flex:1 1 auto;min-width:0;max-width:none;font-size:12px;overflow:hidden;text-overflow:ellipsis}.topbar-actions{flex:0 0 auto;gap:6px}.topbar-actions>.button{display:none}.menu-toggle{width:30px}.current-role{padding-left:6px}.current-role>div{display:none}.global-search.is-expanded .gs-field{top:77px}.gs-panel{top:130px;max-height:calc(100dvh - 147px)}.gs-list{max-height:calc(100dvh - 297px)}.gs-result-badge{max-width:60px}.gs-help{gap:12px}.gs-result{gap:8px;padding:10px 8px}}
@media(max-width:480px){.topbar .system-title{font-size:11px;letter-spacing:0}#global-search-host{flex-basis:34px;min-width:34px}.gs-mobile-toggle{width:34px;height:34px}.current-role .role-avatar{width:25px;height:25px}.topbar-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){.gs-field,.gs-result{transition:none}}
@media print{#global-search-host{display:none!important}}
