/* CalcuTools shared global header | 18 Nov 2026 */
.ct-global-nav{position:sticky;top:0;z-index:1400;width:100%;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid #e7edf5;box-shadow:0 2px 12px rgba(15,23,42,.035)}
.ct-global-nav,.ct-global-nav *,.ct-global-mobile-panel,.ct-global-mobile-panel *{box-sizing:border-box}
.ct-global-nav-inner{width:min(1240px,calc(100% - 32px));min-height:72px;margin:0 auto;display:flex;align-items:center;gap:14px}
.ct-global-brand{display:inline-flex;flex:0 0 auto;align-items:center;gap:9px;color:#0b1220;text-decoration:none;font-size:20px;font-weight:950;letter-spacing:-.045em;white-space:nowrap}
.ct-global-brand img{display:block;width:38px;height:38px;object-fit:contain}
.ct-global-brand span span{color:#2563eb}
.ct-global-links{display:flex;align-items:center;gap:3px;margin-left:7px;white-space:nowrap}
.ct-global-links>a,.ct-global-agri-group>a:first-child{display:inline-flex;align-items:center;min-height:38px;padding:8px 10px;border-radius:10px;color:#5b6b82;text-decoration:none;font-size:12px;font-weight:850}
.ct-global-links>a:hover,.ct-global-agri-group>a:first-child:hover{background:#f3f7fd;color:#1d4ed8}
.ct-global-agri-group{display:inline-flex;align-items:center;gap:3px}
.ct-global-hi-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 8px;border:1px solid #0f766e;border-radius:999px;background:#0f766e;color:#fff!important;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}
.ct-global-hi-badge:hover{background:#115e59;border-color:#115e59}
.ct-global-spacer{flex:1 1 auto;min-width:6px}
.ct-global-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px}
.ct-global-action,.ct-global-fav,.ct-global-theme,.ct-global-menu{min-height:40px;border:1px solid #dce5f0;border-radius:10px;background:#fff;color:#334155;text-decoration:none;font-family:inherit;font-size:12px;font-weight:850}
.ct-global-action{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;white-space:nowrap}
.ct-global-action:hover,.ct-global-fav:hover,.ct-global-theme:hover{border-color:#93c5fd;color:#1d4ed8}
.ct-global-fav{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;cursor:pointer}
.ct-global-fav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-global-theme,.ct-global-menu{display:inline-flex;align-items:center;justify-content:center;width:40px;padding:0;cursor:pointer}
.ct-global-theme svg,.ct-global-menu svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-global-sun{display:none}
html[data-theme="dark"] .ct-global-nav{background:rgba(15,23,42,.96);border-bottom-color:#334155;box-shadow:0 2px 14px rgba(0,0,0,.22)}
html[data-theme="dark"] .ct-global-brand{color:#f8fafc}
html[data-theme="dark"] .ct-global-links>a,html[data-theme="dark"] .ct-global-agri-group>a:first-child{color:#cbd5e1}
html[data-theme="dark"] .ct-global-links>a:hover,html[data-theme="dark"] .ct-global-agri-group>a:first-child:hover{background:#1e293b;color:#bfdbfe}
html[data-theme="dark"] .ct-global-action,html[data-theme="dark"] .ct-global-fav,html[data-theme="dark"] .ct-global-theme,html[data-theme="dark"] .ct-global-menu{background:#0f172a;border-color:#334155;color:#e2e8f0}
html[data-theme="dark"] .ct-global-fav:hover,html[data-theme="dark"] .ct-global-theme:hover{border-color:#60a5fa;color:#bfdbfe}
html[data-theme="dark"] .ct-global-mobile-panel{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .ct-global-mobile-links>a,html[data-theme="dark"] .ct-global-mobile-agri>a:first-child{color:#e2e8f0;background:#111d30;border-color:#334155}
html[data-theme="dark"] .ct-global-theme-state-dark .ct-global-moon{display:none}
html[data-theme="dark"] .ct-global-theme .ct-global-moon{display:none}
html[data-theme="dark"] .ct-global-theme .ct-global-sun{display:block}
.ct-global-menu{display:none}
.ct-global-mobile-panel{width:100%;padding:10px 16px 14px;background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 10px 18px rgba(15,23,42,.06)}
.ct-global-mobile-panel[hidden]{display:none!important}
.ct-global-mobile-links{width:min(1240px,100%);margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.ct-global-mobile-links>a,.ct-global-mobile-agri>a:first-child{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#334155;text-decoration:none;font-size:12px;font-weight:850}
.ct-global-mobile-agri{display:inline-flex;align-items:center;gap:6px}
@media(max-width:1080px){.ct-global-links{display:none}.ct-global-spacer{display:block}.ct-global-menu{display:inline-flex}}
@media(max-width:640px){.ct-global-nav-inner{width:calc(100% - 24px);min-height:62px;gap:8px}.ct-global-brand{font-size:18px;gap:7px}.ct-global-brand img{width:34px;height:34px}.ct-global-actions{gap:5px}.ct-global-action{min-height:38px;padding:7px 9px;font-size:11px}.ct-global-fav{width:38px;height:38px;min-height:38px;padding:0}.ct-global-fav .fav-btn-text{display:none}.ct-global-fav svg{width:17px;height:17px}.ct-global-theme,.ct-global-menu{width:38px;height:38px;min-height:38px}.ct-global-language{display:none}.ct-global-mobile-panel{padding:10px 12px 13px}.ct-global-mobile-links{gap:6px}}
@media(prefers-reduced-motion:no-preference){.ct-global-mobile-panel{transition:opacity .16s ease}}
