.admin-help { --guide-width:360px; --guide-height:350px; font-family:var(--font-body, Satoshi, sans-serif); }
.admin-help [hidden] { display:none!important; }
.admin-help-launcher { position:fixed; right:20px; bottom:calc(20px + env(safe-area-inset-bottom)); width:44px; height:44px; padding:11px; border:1px solid #B7996B; border-radius:6px; background:#1B1916; box-shadow:0 3px 12px #1B191626; z-index:100; }
.admin-help img { display:block; width:18px; height:18px; pointer-events:none; }
.admin-help-launcher img { filter:invert(1); width:20px; height:20px; }
.admin-help-window { position:fixed; right:8px; bottom:10px; height:min(560px,calc(100dvh - 92px)); width:var(--guide-width); display:flex; flex-direction:column; background:#F6F6F4; border:1px solid #B7996B; border-radius:6px; z-index:100; box-shadow:0 4px 18px #1B19161A; color:#1B1916; }
.admin-help.is-expanded .admin-help-window { height:calc(100dvh - 92px); }
.admin-help-window > header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px; border-bottom:1px solid #DBC499; flex-shrink:0; }
.admin-help-window > header > strong { font-size:15px; line-height:1.3; }
.admin-help-window > header > div { display:flex; gap:3px; }
.admin-help-window button { cursor:pointer; }
.admin-help-window > header button,.admin-help-walk button:has(img) { display:grid; place-items:center; width:30px; height:30px; padding:5px; background:transparent; color:#1B1916; border:1px solid transparent; border-radius:4px; }
.admin-help-window > header button:hover { border-color:#B7996B; }
.admin-help-tools { display:grid; gap:8px; padding:12px; border-bottom:1px solid #DBC499; flex-shrink:0; }
.admin-help-tools input[type=search],.admin-help-tools select { width:100%; min-width:0; height:34px; padding:5px 8px; font-size:13px; border:1px solid #DBC499; border-radius:4px; background:white; color:#1B1916; }
.admin-help-toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; }
.admin-help-toolbar label { display:flex; align-items:center; gap:5px; font-size:12px; margin:0; }
.admin-help-toolbar input { width:16px; height:16px; accent-color:#B7996B; }
.admin-help-tools button { border:1px solid #B7996B; border-radius:4px; background:white; color:#1B1916; font-size:12px; line-height:1.35; padding:6px 8px; }
.admin-help-walk { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:12px; }
.admin-help-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:12px; scroll-padding-top:12px; }
.admin-help-hint { font-size:12px; line-height:1.5; color:#463D32; margin:0 0 12px; }
.admin-help-index { display:flex; flex-wrap:wrap; gap:5px; padding-bottom:14px; border-bottom:1px solid #DBC499; }
.admin-help-index button { font-size:12px; line-height:1.35; text-align:left; border:1px solid #DBC499; border-radius:3px; padding:5px 6px; background:white; color:#463D32; }
.admin-help-index button[aria-current=true] { border-color:#B7996B; box-shadow:inset 2px 0 #B7996B; color:#1B1916; }
.admin-help-entry { padding:16px 8px; margin:0; border-bottom:1px solid #DBC499; border-left:2px solid transparent; }
.admin-help-entry.is-current { border-left-color:#B7996B; background:white; }
.admin-help-entry h3 { font-family:var(--font-heading, Chillax, sans-serif); font-size:16px; line-height:1.4; margin:0 0 12px; }
.admin-help-entry dl,.admin-help-entry p { margin:0; font-size:13px; line-height:1.55; }
.admin-help-entry dt { font-weight:700; margin-top:10px; }
.admin-help-entry dd { margin:3px 0 0; }
.admin-help-entry ol { padding-left:18px; margin:4px 0; }
.admin-help-entry .admin-help-warning { margin-top:12px; padding:8px; border-left:2px solid #B7996B; background:#DBC49926; }
.admin-help-window > footer { display:flex; flex-direction:column; gap:3px; padding:8px 12px; border-top:1px solid #DBC499; font-size:11px; color:#463D32; flex-shrink:0; }
.admin-help-target { outline:2px solid #B7996B!important; outline-offset:3px; }
.admin-help-window :focus-visible,.admin-help-launcher:focus-visible { outline:2px solid #B7996B; outline-offset:2px; }
#appView.has-help-guide { padding-right:380px; }
#appView.has-expanded-help { padding-right:470px; }
.admin-help.is-expanded { --guide-width:450px; }
.has-help-mode #panel,.has-help-mode #nav { cursor:help; }
@media(max-width:1100px) {
 #appView.has-help-guide,#appView.has-expanded-help { padding-right:0; height:calc(100dvh - 350px - env(safe-area-inset-bottom)); overflow:auto; overscroll-behavior:contain; }
 #appView.has-expanded-help { height:calc(100dvh - 440px - env(safe-area-inset-bottom)); }
 .admin-help-window { top:auto; left:8px; right:8px; bottom:env(safe-area-inset-bottom); width:auto; height:350px; max-height:60dvh; }
 .admin-help.is-expanded .admin-help-window { height:440px; }
 .admin-help-tools { grid-template-columns:1fr 1fr; gap:6px; padding:8px; }
 .admin-help-toolbar { grid-column:1/-1; }
 .admin-help-tools > button { grid-column:1/-1; }
 .admin-help-walk { grid-column:1/-1; }
 .admin-help-window > header { padding:7px 10px; }
 .admin-help-window > footer { padding:5px 10px; }
}
@media(max-height:560px) and (max-width:1100px) {
 #appView.has-help-guide,#appView.has-expanded-help { height:52dvh; }
 .admin-help-window,.admin-help.is-expanded .admin-help-window { height:46dvh; }
 .admin-help-tools > button { display:none; }
}
@media(prefers-reduced-motion:reduce) { .admin-help * { scroll-behavior:auto!important; } }
