*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#1a1a2e;background:#f5f6fa;line-height:1.5;min-height:100vh}a{color:#4f46e5;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{font-weight:600;letter-spacing:-.01em}h1{font-size:1.5rem}h2{font-size:1.25rem}h3{font-size:1.125rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.875rem;font-weight:500;line-height:1;padding:.625rem 1.25rem;border-radius:.5rem;cursor:pointer;transition:background .15s,opacity .15s;border:1px solid transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#4f46e5;color:#fff;border-color:#4f46e5}.btn-primary:hover:not(:disabled){background:#4338ca}.btn-ghost{background:transparent;color:#1a1a2e;border-color:#d4d6dd}.btn-ghost:hover:not(:disabled){background:#eef0f5}.btn-full{width:100%}.form-field{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}.form-field label{font-size:.8125rem;font-weight:500;color:#4b5563}.form-field input{padding:.625rem .75rem;font-size:.9375rem;border:1px solid #d4d6dd;border-radius:.5rem;background:#fff;color:#1a1a2e;transition:border-color .15s,box-shadow .15s;outline:none;width:100%}.form-field input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.form-field input:disabled{background:#f3f4f6;color:#9ca3af}.form-row{display:flex;gap:1rem}.form-row .form-field{flex:1}.form-field textarea{padding:.625rem .75rem;font-size:.9375rem;border:1px solid #d4d6dd;border-radius:.5rem;background:#fff;color:#1a1a2e;font-family:inherit;resize:vertical;width:100%;outline:none;transition:border-color .15s,box-shadow .15s}.form-field textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.form-field textarea:disabled,.form-field input:read-only{background:#f3f4f6;color:#6b7280}.form-success-banner{background:#ecfdf5;border:1px solid #6ee7b7;border-radius:.5rem;color:#047857;font-size:.875rem;padding:.75rem 1rem;margin-bottom:1rem}.field-error{font-size:.8125rem;color:#dc2626}.form-error-banner{background:#fef2f2;border:1px solid #fca5a5;border-radius:.5rem;color:#dc2626;font-size:.875rem;padding:.75rem 1rem;margin-bottom:1rem}.auth-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.auth-card{width:100%;max-width:26rem;background:#fff;border-radius:1rem;padding:2rem;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.auth-header{text-align:center;margin-bottom:1.5rem}.auth-logo{font-size:1.25rem;font-weight:700;color:#1a1a2e;letter-spacing:-.02em}.auth-subtitle{color:#6b7280;font-size:.9375rem;margin-top:.25rem}.auth-switch{text-align:center;font-size:.875rem;color:#6b7280;margin-top:1.5rem}.app-layout{display:flex;flex-direction:column;min-height:100vh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;height:3.5rem;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50}.app-header-left{display:flex;align-items:center;gap:1rem}.app-logo{font-weight:700;font-size:1rem;color:#1a1a2e}.app-header-right{display:flex;align-items:center;gap:1rem}.app-user{font-size:.875rem;color:#4b5563}.app-body{display:flex;flex:1}.app-sidebar{width:16rem;background:#fff;border-right:1px solid #e5e7eb;padding:1.5rem 1rem;overflow-y:auto;position:sticky;top:3.5rem;height:calc(100vh - 3.5rem)}.sidebar-section-label{font-size:.75rem;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.sidebar-link{display:block;padding:.5rem .75rem;font-size:.875rem;color:#4b5563;border-radius:.375rem;transition:background .15s;text-decoration:none}.sidebar-link:hover{background:#f3f4f6}.sidebar-link--active{background:#eef0f5;color:#1a1a2e;font-weight:500}.app-main{flex:1;padding:2rem;overflow-y:auto}.dashboard-welcome{text-align:center;padding:4rem 2rem}.dashboard-welcome h2{font-size:1.5rem;margin-bottom:.75rem}.dashboard-hint{color:#6b7280;font-size:.9375rem}.spinner{display:inline-block;width:1.25rem;height:1.25rem;border:2px solid #d4d6dd;border-top-color:#4f46e5;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.onboarding-body{justify-content:center;align-items:center;min-height:calc(100vh - 3.5rem)}.onboarding-card{width:100%;max-width:30rem;margin:2rem auto;background:#fff;border-radius:1rem;padding:2rem;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.onboarding-card .auth-header{margin-bottom:1.5rem}.onboarding-card .auth-header h1{font-size:1.25rem;font-weight:700;color:#1a1a2e}.onboarding-card form{display:flex;flex-direction:column}.field-hint{font-size:.8125rem;color:#6b7280;margin-top:.25rem}.org-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .75rem;background:#eef0f5;border-radius:.375rem;font-size:.8125rem;font-weight:500;color:#1a1a2e}.org-switcher select{padding:.25rem .5rem;font-size:.8125rem;border:1px solid #d4d6dd;border-radius:.375rem;background:#fff;color:#1a1a2e;cursor:pointer;outline:none}.sidebar-link--disabled{opacity:.4;cursor:default;color:#9ca3af}.dashboard-role{color:#4b5563;font-size:.9375rem;margin-top:.5rem}.page-section{max-width:48rem;margin:0 auto;padding:2rem 0}.page-section h2{font-size:1.375rem;margin-bottom:.75rem}.page-section-description{color:#6b7280;font-size:.9375rem}.settings-card{max-width:40rem;padding:1.5rem 2rem;background:#fff;border:1px solid #e5e7eb;border-radius:1rem;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.settings-card .btn{margin-top:.5rem}.page-loading{display:flex;justify-content:center;padding:3rem 0}@media(max-width:48rem){.app-sidebar{position:static;width:100%;height:auto;border-right:none;border-bottom:1px solid #e5e7eb;overflow-x:auto;overflow-y:hidden;padding:.5rem .75rem}.app-sidebar .sidebar-section-label{display:none}.app-sidebar .sidebar-link{display:inline-block;white-space:nowrap;margin:0 .125rem}.app-body{flex-direction:column}.app-main{padding:1.5rem 1rem}.auth-page{padding:1rem}.auth-card{padding:1.5rem}.form-row{flex-direction:column;gap:0}}
