:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh;background-color:#f9fafb;color:#111827}button{font-family:inherit;cursor:pointer;background-color:transparent;border:none;padding:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideDown{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}.app-switcher{--app-switcher-bg: var(--bg-primary, #ffffff);--app-switcher-bg-secondary: var(--bg-secondary, #f5f7fa);--app-switcher-bg-tertiary: var(--bg-tertiary, #e8ecf0);--app-switcher-text: var(--text-primary, #1a202c);--app-switcher-text-secondary: var(--text-secondary, #4a5568);--app-switcher-text-tertiary: var(--text-tertiary, #9ca3af);--app-switcher-border: var(--border-color, #e2e8f0);--app-switcher-shadow: var(--shadow-hover, 0 4px 8px rgba(0, 0, 0, .15));position:relative}.app-switcher--sidebar{width:100%;padding:0}.app-switcher--sidebar .app-switcher__trigger{display:flex;align-items:center;gap:12px;width:100%;height:auto;padding:10px 16px;background:none;border:none;border-radius:0;border-left:3px solid transparent;justify-content:flex-start;font-size:.85rem;font-weight:500;color:var(--app-switcher-text-secondary)}.app-switcher--sidebar .app-switcher__trigger:after{content:"Apps";font-size:.85rem;color:var(--text-tertiary, #9ca3af)}.app-switcher--sidebar .app-switcher__trigger:hover{background:var(--app-switcher-bg-secondary);color:var(--app-switcher-text)}.app-switcher--sidebar .app-switcher__trigger:hover:after{color:var(--text-secondary, #4a5568)}.app-switcher__trigger{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:var(--app-switcher-bg-secondary);border:1px solid var(--app-switcher-border);border-radius:8px;cursor:pointer;transition:all .2s ease;color:var(--app-switcher-text-secondary)}.app-switcher__trigger:hover{background:var(--app-switcher-bg-tertiary);color:var(--app-switcher-text)}.app-switcher__trigger:focus-visible{outline:2px solid #3e7c8c;outline-offset:2px}.app-switcher__overlay{display:none}.app-switcher__menu{position:absolute;top:calc(100% + 8px);right:0;min-width:200px;background:var(--app-switcher-bg);border:1px solid var(--app-switcher-border);border-radius:10px;box-shadow:var(--app-switcher-shadow);z-index:1000;animation:appSwitcherFadeIn .2s ease;overflow:hidden}.app-switcher--sidebar .app-switcher__menu{top:auto;bottom:calc(100% + 8px);left:8px;right:auto;min-width:180px;max-width:calc(var(--sidebar-width, 250px) - 16px);animation:appSwitcherSlideUpSidebar .2s ease}@keyframes appSwitcherSlideUpSidebar{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes appSwitcherFadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.app-switcher__header{padding:8px 12px;border-bottom:1px solid var(--app-switcher-border);background:var(--app-switcher-bg-secondary)}.app-switcher__title{font-size:.7rem;font-weight:600;color:var(--app-switcher-text-tertiary);text-transform:uppercase;letter-spacing:.5px}.app-switcher__grid{display:flex;flex-direction:column;padding:6px}.app-switcher__item{display:flex;align-items:center;gap:10px;padding:8px;background:none;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease;text-align:left;width:100%}.app-switcher__item:hover{background:var(--app-switcher-bg-secondary)}.app-switcher__item:focus-visible{outline:2px solid #3e7c8c;outline-offset:-2px}.app-switcher__item--current{opacity:.5;cursor:default;pointer-events:none}.app-switcher__item--current:hover{background:none}.app-switcher__icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;flex-shrink:0;transition:transform .2s ease}.app-switcher__item:hover .app-switcher__icon{transform:scale(1.05)}.app-switcher__item--current .app-switcher__icon{transform:none}.app-switcher__label{font-size:.85rem;font-weight:500;color:var(--app-switcher-text);flex:1}.app-switcher__current-badge{font-size:.6rem;font-weight:600;color:var(--app-switcher-text-tertiary);background:var(--app-switcher-bg-tertiary);padding:2px 6px;border-radius:8px;text-transform:uppercase;letter-spacing:.3px}@media (max-width: 768px){.app-switcher__overlay,.app-switcher--sidebar .app-switcher__overlay{display:block;position:fixed;inset:0;background:#00000080;z-index:1100;animation:appSwitcherFadeIn .2s ease}.app-switcher__menu,.app-switcher--sidebar .app-switcher__menu{position:fixed;inset:auto 0 0;border-radius:16px 16px 0 0;min-width:unset;max-width:unset;max-height:60vh;z-index:1101;animation:appSwitcherSlideUp .3s ease}@keyframes appSwitcherSlideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.app-switcher__grid{padding:8px}.app-switcher__item{padding:12px 10px}.app-switcher__icon{width:40px;height:40px}}.dark-mode .app-switcher__menu{box-shadow:0 4px 20px #0006}.dark-mode .app-switcher__overlay{background:#000000b3}:root{--sidebar-width: 250px;--header-height: 60px;--bg-primary: #ffffff;--bg-secondary: #f5f7fa;--bg-tertiary: #e8ecf0;--text-primary: #1a202c;--text-secondary: #4a5568;--text-tertiary: #9ca3af;--border-color: #e2e8f0;--shadow: 0 2px 4px rgba(0, 0, 0, .1);--shadow-hover: 0 4px 8px rgba(0, 0, 0, .15);--color-accent: #7D5500;--header-gradient: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%)}.sidebar{width:var(--sidebar-width);background:var(--bg-primary);border-right:1px solid var(--border-color);position:fixed;left:0;top:0;height:100vh;height:100dvh;overflow:hidden;transition:transform .3s ease;z-index:1000;box-shadow:var(--shadow);display:flex;flex-direction:column}.sidebar.closed{transform:translate(-100%)}.sidebar-overlay{position:fixed;inset:0;background:#00000080;z-index:999;display:none}.sidebar-header{display:flex;align-items:center;gap:12px;padding:20px 16px;border-bottom:1px solid var(--border-color);background:var(--header-gradient)}.sidebar-icon-logo{width:36px;height:36px;flex-shrink:0}.sidebar-title{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin:0}.sidebar-nav{flex:1;overflow-y:auto;padding:8px 0}.sidebar-bottom{border-top:1px solid var(--border-color);padding:8px 0;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));flex-shrink:0}.sidebar-link-bottom{padding:10px 16px!important}.sidebar-link-bottom .sidebar-label{font-size:.85rem;color:var(--text-tertiary)}.sidebar-link-bottom .sidebar-icon{opacity:.7}.sidebar-link-bottom:hover .sidebar-label{color:var(--text-secondary)}.sidebar-link-bottom.active .sidebar-label{color:var(--color-accent)}.sidebar-link{display:flex;align-items:center;gap:12px;padding:12px 16px;color:var(--text-secondary);text-decoration:none;transition:all .2s ease;border-left:3px solid transparent}.sidebar-link:hover{background:var(--bg-secondary);color:var(--text-primary)}.sidebar-link.active{background:var(--bg-secondary);color:var(--color-accent);border-left-color:var(--color-accent);font-weight:600}.sidebar-icon{font-size:1.2rem;display:flex;align-items:center}.sidebar-label{font-size:.9rem}.header{height:var(--header-height);background:var(--header-gradient);border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:flex-start;gap:15px;padding:0 20px;position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}.theme-button{margin-left:auto;background:none;border:none;color:var(--text-primary);cursor:pointer;padding:8px;border-radius:6px;transition:background .2s ease;display:flex;align-items:center;justify-content:center}.theme-button:hover{background:var(--bg-secondary)}.menu-button{background:none;border:none;font-size:1.5rem;color:var(--text-primary);cursor:pointer;padding:8px;border-radius:6px;transition:background .2s ease;display:flex;align-items:center;justify-content:center}.menu-button:hover{background:var(--bg-secondary)}.header-title h1{font-size:1.35rem;font-weight:600;color:var(--text-primary);margin:0}.main-content{flex:1;margin-left:var(--sidebar-width);transition:margin-left .3s ease;min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}.main-content.sidebar-closed{margin-left:0}.content-wrapper{flex:1;padding:20px;max-width:1400px;margin:0 auto;width:100%;overflow-x:hidden}.app-container{display:flex;min-height:100vh}@media (max-width: 768px){.sidebar-overlay{display:block}.sidebar{transform:translate(-100%)}.sidebar.open{transform:translate(0)}.main-content{margin-left:0!important}.header{padding:0 15px;justify-content:center;gap:10px}.menu-button{position:absolute;left:15px}.theme-button{position:absolute;right:15px;margin-left:0}.header-title h1{font-size:1rem}.content-wrapper{padding:16px;max-width:100vw}}@media (max-width: 480px){.content-wrapper{padding:12px}.header-title h1{font-size:1.2rem}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#f9fafb}.auth-container{width:100%;max-width:420px;background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;padding:40px}.auth-header{text-align:center;margin-bottom:30px}.auth-title{font-size:1.8rem;font-weight:700;color:#111827;margin-bottom:8px}.auth-subtitle{font-size:1rem;color:#6b7280}.auth-tabs{display:flex;gap:10px;margin-bottom:25px}.auth-tab{flex:1;padding:12px 20px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.auth-tab:hover{background:#e5e7eb}.auth-tab.active{background:#7d5500;color:#fff;border-color:#7d5500}.auth-error{background:#fee2e2;color:#dc2626;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:.9rem;border:1px solid #fecaca}.auth-success{background:#dcfce7;color:#16a34a;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:.9rem;border:1px solid #bbf7d0}.auth-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:.9rem;font-weight:600;color:#111827}.form-group input,.form-group select{padding:12px 16px;font-size:1rem;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#111827;transition:border-color .2s ease,box-shadow .2s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#7d5500;box-shadow:0 0 0 3px #7d550033}.form-group input:disabled{opacity:.6;cursor:not-allowed}.form-hint{font-size:.8rem;color:#9ca3af}.auth-button{padding:14px 24px;background:#7d5500;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;margin-top:10px}.auth-button:hover:not(:disabled){background:#5c3f00;transform:translateY(-2px);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.auth-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.auth-trouble{text-align:center;margin-top:20px}.auth-trouble-link{background:none;border:none;color:#9ca3af;font-size:.85rem;cursor:pointer;padding:0;text-decoration:underline;transition:color .2s ease}.auth-trouble-link:hover{color:#6b7280}.auth-footer{text-align:center;margin-top:25px;padding-top:20px;border-top:1px solid #e5e7eb}.auth-footer p{font-size:.9rem;color:#6b7280}.auth-link{color:#7d5500;text-decoration:none;font-weight:600}.auth-link:hover{text-decoration:underline}.registration-success{text-align:center;padding:20px 0}.success-icon{font-size:4rem;margin-bottom:20px}.registration-success h2{font-size:1.5rem;color:#111827;margin-bottom:15px}.registration-success p{color:#6b7280;line-height:1.6;margin-bottom:25px}.auth-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;gap:16px}.loading-spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#7d5500;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 480px){.auth-container{padding:30px 20px}.auth-title{font-size:1.5rem}.auth-tabs{flex-direction:column}.auth-tab{padding:14px 20px}}.profile-page{min-height:100%;padding:20px}.profile-container{max-width:500px;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 2px 4px #0000001a;padding:30px}.profile-header{text-align:center;margin-bottom:30px}.profile-avatar{width:80px;height:80px;border-radius:50%;background:#7d5500;color:#fff;font-size:2.5rem;font-weight:600;display:flex;align-items:center;justify-content:center;margin:0 auto 15px}.profile-name{font-size:1.5rem;font-weight:600;color:#1a202c;margin-bottom:10px}.profile-role-badge{display:inline-block;padding:4px 12px;border-radius:20px;color:#fff;font-size:.8rem;font-weight:600;text-transform:capitalize}.profile-section{margin-bottom:25px}.profile-section-title{font-size:.85rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}.profile-info-list{display:flex;flex-direction:column;gap:12px}.profile-info-item{display:flex;justify-content:space-between;align-items:center}.profile-info-label{font-size:.9rem;color:#4a5568}.profile-info-value{font-size:.9rem;color:#1a202c;font-weight:500}.profile-info-muted{color:#9ca3af;font-size:.8rem;font-family:monospace}.profile-permissions{display:flex;flex-wrap:wrap;gap:8px}.profile-permission-tag{padding:4px 10px;background:#f5f7fa;border:1px solid #e2e8f0;border-radius:4px;font-size:.75rem;color:#4a5568}.profile-actions{margin-top:30px;padding-top:20px;border-top:1px solid #e2e8f0}.profile-logout-button{width:100%;padding:12px 20px;background:#dc2626;color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease}.profile-logout-button:hover{background:#b91c1c}@media (max-width: 480px){.profile-container{padding:20px}.profile-info-item{flex-direction:column;align-items:flex-start;gap:4px}}
