#side{max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);max-width:calc(100vw - 32px)}#minimap-wrap,#chips-toggle{flex-shrink:0}#chips,.touch-device #chips{width:min(280px,calc(100vw - 32px));max-height:none;min-height:0;flex:0 1 auto;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:var(--accent-light) #171b22;padding:5px 7px 7px 5px;border:2px solid var(--accent);background:var(--panel-color);box-shadow:2px 2px 0 var(--line);gap:6px}#chips::-webkit-scrollbar{width:16px}#chips::-webkit-scrollbar-track{background:#171b22;border-left:2px solid var(--accent)}#chips::-webkit-scrollbar-thumb{background:var(--accent-light);border:3px solid #171b22;border-radius:0;min-height:28px}#chips::-webkit-scrollbar-thumb:hover{background:var(--ink)}.menu-section{min-width:0}.menu-section[hidden]{display:none}.menu-section summary{cursor:pointer;padding:7px 4px;font:13px var(--head);color:var(--accent-light)}.menu-section-body{display:flex;flex-direction:column;gap:6px;padding:3px 2px 6px}#chips .chip{white-space:normal;overflow-wrap:anywhere;min-width:0}#chips :focus-visible,#chips-toggle:focus-visible{outline:2px dashed var(--ink);outline-offset:-2px}#chips .sky-tools{margin:0;min-width:0;max-width:none;padding:6px;border:0}.sky-tools label,.sky-tools legend{display:block;font:13px var(--ui)}.sky-tools label{margin:8px 0}.sky-tools label .chip{margin-top:3px}.sky-tools input[type=date]{width:100%;max-width:100%;min-height:36px;font:14px var(--ui)}.sky-tools input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;vertical-align:middle}.sky-tools output{display:block;font:13px/1.4 var(--ui);overflow-wrap:anywhere}.sky-tools .sky-event-buttons{display:grid;grid-template-columns:1fr}.sky-tools [aria-pressed=true]{background:var(--primary);border-color:var(--ink)}#toast{max-width:calc(100vw - 32px);white-space:normal;overflow-wrap:anywhere;text-align:center}#prompt{max-width:calc(100vw - 32px);white-space:normal}#dialog,#credits>.panel{max-height:calc(100dvh - 80px);overflow:auto;overscroll-behavior:contain}#help .help-body{max-height:calc(100dvh - 64px);overflow-y:auto}#chips .presence-popup{position:fixed;right:16px;top:16px;max-height:calc(100dvh - 80px);overflow-y:auto;z-index:10}@media(max-width:700px){#chips,.touch-device #chips{width:min(244px,calc(100vw - 24px))}#side{right:10px;top:10px;max-height:calc(100dvh - 80px);max-width:calc(100vw - 20px);width:auto}#minimap{width:96px;height:96px}#chips .chip,.touch-device #chips .chip{min-height:44px;padding:7px;font-size:14px}body:has(#side:not(.collapsed)) #first-visit-hint,body:has(#side:not(.collapsed)) #activity-tracker{visibility:hidden}}@media(max-height:440px){#side:not(.collapsed) #minimap-wrap{display:none}}@media(max-width:300px){#side:not(.collapsed) #minimap-wrap{display:none}}.touch-device #side{z-index:6}.test-tools-on #holiday-mode{display:none!important}@supports selector(::-webkit-scrollbar){#chips{scrollbar-color:auto}}.touch-device #side:not(.collapsed) #chips-toggle{visibility:visible;position:static}@media(max-height:240px){#side{top:6px;right:6px;max-height:calc(100dvh - 80px);gap:4px}#side>:not(#chips):not(#chips-toggle):not(#menu-scrollbar){display:none}.touch-device #chips-toggle{visibility:visible;position:static}}#loc,#dialog,.presence-popup{overflow-wrap:anywhere}#corner-credit{max-width:calc(100vw - 16px);flex-wrap:wrap;justify-content:flex-end}body.touch-device:has(#side:not(.collapsed)) #hud{z-index:6}#bigmap{z-index:20}body.touch-device #corner-credit:has(#credits[open]){z-index:8}body.touch-device #side{max-height:calc(100dvh - max(80px,min(180px,35dvh)))}#chips.custom-scrollbar{scrollbar-width:none;padding-right:25px}#chips.custom-scrollbar::-webkit-scrollbar{display:none}#menu-scrollbar{position:absolute;right:2px;width:18px;border:2px solid var(--accent);background:#171b22;touch-action:none;cursor:pointer;z-index:1}#menu-scrollbar[hidden]{display:none}.menu-scroll-thumb{position:absolute;left:2px;right:2px;min-height:24px;background:var(--accent-light);border:2px solid var(--line);cursor:grab}#menu-scrollbar:active .menu-scroll-thumb{cursor:grabbing;background:var(--ink)}#menu-scrollbar:focus-visible{outline:2px dashed var(--ink);outline-offset:-4px}.touch-device #dialog{bottom:min(210px,35dvh);max-height:calc(100dvh - min(210px,35dvh) - 64px)}.menu-backup-line{flex:1 1 100%;box-sizing:border-box;margin:-2px 0 4px;padding:0 4px;font:13px/1.4 var(--ui,monospace);color:var(--ink,#eee4c8);opacity:.85;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}.menu-backup-line[data-due=true]{opacity:1;color:#ffd486}.menu-backup-now{font:13px var(--ui,monospace);min-height:32px;padding:2px 10px;color:inherit;background:transparent;border:1px dashed currentColor;cursor:pointer}.menu-backup-now[hidden]{display:none}
