.app-shell{color:#000;background:#f3f4f6;flex-direction:column;width:100%;max-width:100%;height:100%;min-height:100vh;display:flex;overflow-x:hidden}.header{box-sizing:border-box;color:#fff;text-align:center;width:100%;box-shadow:none;z-index:40;background:#2f2f2f;border-bottom:1px solid #4b5563;padding:7px clamp(10px,2vw,16px);transition:background .3s,margin-right .3s ease-in-out;position:relative}.header-shell{justify-content:space-between;align-items:center;gap:16px;width:100%;min-width:0;display:flex}.header-brand{flex:1 1 0;align-items:center;gap:15px;min-width:40px;display:flex}.header h1{margin-bottom:4px;font-size:1.3em}.header-logo{white-space:nowrap;text-overflow:ellipsis;flex:0 auto;overflow:hidden}.header-right{scrollbar-width:none;flex-wrap:nowrap;flex:none;justify-content:flex-end;align-items:center;gap:10px;min-width:0;max-width:calc(100% - 56px);display:flex;position:relative;overflow:auto hidden}.header-right::-webkit-scrollbar{display:none}.header-right>*{flex:none}.header-auth{flex:0 auto;align-items:center;min-width:0;display:flex}.header-auth>*{flex:none}.header-auth-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:min(32vw,260px);display:block;overflow:hidden}.header-session-badge,.header-logout-btn,.header-login-btn,.header-login-page-link{white-space:nowrap;flex:none}.header-settings-btn{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:none;flex:none;justify-content:center;align-items:center;min-width:34px;padding:8px;font-size:.85em;transition:all .3s;display:flex}.header-settings-btn:hover{opacity:.7}.header-notification-btn{color:#fff;cursor:pointer;background:0 0;border:none;flex:none;justify-content:center;align-items:center;width:34px;height:34px;padding:0;transition:all .2s;display:flex;position:relative}.header-notification-btn:hover,.header-notification-btn.active{color:#6ee7b7;background:0 0}.header-notification-icon{width:17px;height:17px}.header-notification-badge{color:#fff;text-align:center;background:#ef4444;border:2px solid #2f2f2f;border-radius:999px;min-width:18px;padding:2px 5px;font-size:10px;font-weight:700;line-height:1;position:absolute;top:2px;right:1px}.header-theme-toggle{color:#fff;cursor:pointer;white-space:nowrap;background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:8px 12px;font-size:1.2em;transition:all .3s;display:flex}.header-theme-toggle:hover{opacity:.7}.external-api-control{flex:none;min-width:0}.external-api-toggle{white-space:nowrap;flex:none;min-width:62px}.header p{opacity:.9;font-size:1em}
.main-wrapper{box-sizing:border-box;background:#f3f4f6;flex:1;align-items:flex-start;gap:20px;width:100%;min-height:calc(100vh - 60px);padding:20px;display:flex;position:relative;overflow:hidden auto}.content-wrapper{box-sizing:border-box;background:#f3f4f6;flex-direction:row;flex:1;align-items:stretch;gap:20px;width:100%;height:calc(100vh - 100px);min-height:0;display:flex;overflow:hidden auto}
@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.02)}}
.drag-handle{opacity:.6;cursor:grab;margin-right:8px;font-size:.9em;display:inline-block}.drag-handle:active{cursor:grabbing}.hamburger-menu-btn,.header-logout-btn,.header-login-btn,.external-api-toggle,.header-theme-toggle,.header-notification-btn,.header-settings-btn{flex-shrink:0;justify-content:center;align-items:center;min-width:44px;height:44px;border-radius:10px!important;padding:8px 12px!important;font-size:13px!important}.external-api-toggle{min-width:70px;letter-spacing:.08em!important;padding-left:10px!important;padding-right:10px!important}.header-logout-btn,.header-login-btn{margin-left:0!important;padding:7px 10px!important}@media (max-width:1100px){.header-auth-label{max-width:24vw}}@media (max-width:900px){.header-auth-label{display:none}.header-session-badge{padding:4px 7px!important;font-size:.72em!important}.header-logo{font-size:1.05em!important}}@media (max-width:767px){html{scrollbar-gutter:auto}.header{padding:calc(4px + env(safe-area-inset-top))max(8px,env(safe-area-inset-right))4px max(8px,env(safe-area-inset-left));position:sticky;top:0}.header-shell{gap:4px}.header-brand{flex:none;gap:0}.header-right{flex:0 auto;gap:2px;max-width:calc(100% - 44px)}.header-logo,.header-login-page-link{display:none!important}.header-auth{gap:0!important}.header :is(.hamburger-menu-btn,.header-theme-toggle,.header-notification-btn,.header-settings-btn,.header-logout-btn,.header-login-btn){min-width:40px;height:44px;padding:6px!important}.external-api-control>button{min-height:44px;padding:6px}.external-api-control>button [role=status]{display:none}:where(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=file]),select,textarea){min-width:0;max-width:100%;font-size:16px!important}form :where(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea){min-height:44px}.notification-sidebar{padding-block:env(safe-area-inset-top)env(safe-area-inset-bottom);z-index:70;height:100dvh!important}:where(button,summary,a,input,select,textarea){touch-action:manipulation}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#work-sidebar{padding:max(12px,env(safe-area-inset-top))max(12px,env(safe-area-inset-right))max(12px,env(safe-area-inset-bottom))max(12px,env(safe-area-inset-left))}.navigation-sidebar{height:100dvh;padding-bottom:env(safe-area-inset-bottom)}.navigation-sidebar-header{padding-top:max(16px,env(safe-area-inset-top))}}@media (max-width:1024px){.main-wrapper{gap:15px;padding:15px}}@media (max-width:768px){.main-wrapper{flex-direction:column;gap:15px;padding:10px}.content-wrapper{flex-direction:column;min-height:auto}.header h1{font-size:1.3em}}
@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
html.dark,html.dark body,html.dark .container{color:#e5e7eb;background:#1f2937}html.dark .header{box-shadow:none;background:#1f1f1f;border-bottom:1px solid #4b5563}html.dark .main-wrapper,html.dark .content-wrapper{background:#1f2937}html.dark input,html.dark textarea,html.dark select{color:#e5e7eb;background:#4b5563;border-color:#6b7280}html.dark input:focus,html.dark textarea:focus,html.dark select:focus{background:#4b5563;border-color:#22c55e;outline-color:#22c55e}html.dark button{color:#e5e7eb}html.dark ::-webkit-scrollbar{display:none}.excel-preview-wrapper{flex-direction:column;height:100%;display:flex}

