@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";
:root{--bg:#f8fafc;--bg-subtle:#f1f5f9;--surface:#fff;--surface-raised:#fff;--border:#e2e8f0;--border-strong:#cbd5e1;--text-primary:#0f172a;--text-secondary:#475569;--text-muted:#94a3b8;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-subtle:#dbeafe;--accent-text:#1e40af;--success:#16a34a;--success-subtle:#dcfce7;--warning:#d97706;--warning-subtle:#fef3c7;--error:#dc2626;--error-subtle:#fee2e2;--row-hover:#f1f5f9;--row-selected:#eff6ff;--sidebar-bg:#0f172a;--sidebar-text:#cbd5e1;--sidebar-hover:#1e293b;--sidebar-active:#2563eb;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #00000012,0 2px 4px -2px #00000012;--shadow-lg:0 10px 15px -3px #00000014,0 4px 6px -4px #0000000d;--radius-sm:6px;--radius:8px;--radius-lg:12px;--transition:.15s cubic-bezier(.4,0,.2,1)}.dark{--bg:#0b1220;--bg-subtle:#111827;--surface:#111827;--surface-raised:#1e293b;--border:#1f2937;--border-strong:#374151;--text-primary:#e5e7eb;--text-secondary:#9ca3af;--text-muted:#6b7280;--accent:#3b82f6;--accent-hover:#60a5fa;--accent-subtle:#3b82f626;--accent-text:#93c5fd;--success:#22c55e;--success-subtle:#22c55e26;--warning:#f59e0b;--warning-subtle:#f59e0b26;--error:#ef4444;--error-subtle:#ef444426;--row-hover:#1e293b;--row-selected:#1d4ed833;--sidebar-bg:#060e1a;--sidebar-text:#9ca3af;--sidebar-hover:#111827;--sidebar-active:#3b82f6;--shadow-sm:0 1px 2px 0 #0000004d;--shadow-md:0 4px 6px -1px #0000004d;--shadow-lg:0 10px 15px -3px #00000059}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;font-size:16px}body{background:var(--bg);color:var(--text-primary);transition:background var(--transition),color var(--transition);font-family:Inter,system-ui,sans-serif;line-height:1.5}h1{letter-spacing:-.02em;font-size:1.5rem;font-weight:600}h2{letter-spacing:-.015em;font-size:1.25rem;font-weight:600}h3{font-size:1rem;font-weight:600}p{color:var(--text-secondary)}.mono{font-family:JetBrains Mono,Fira Code,monospace;font-size:.8125rem}.app-shell{height:100vh;display:flex;overflow:hidden}.sidebar{background:var(--sidebar-bg);flex-direction:column;flex-shrink:0;width:240px;display:flex;overflow-y:auto}.main-area{flex-direction:column;flex:1;display:flex;overflow:hidden}.topbar{border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0;align-items:center;gap:.75rem;height:56px;padding:0 1.5rem;display:flex}.content{flex:1;padding:1.5rem;overflow-y:auto}.sidebar-logo{border-bottom:1px solid #ffffff0f;align-items:center;gap:.625rem;height:56px;padding:0 1rem;display:flex}.sidebar-logo-mark{background:var(--accent);border-radius:var(--radius-sm);color:#fff;letter-spacing:-.02em;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.75rem;font-weight:700;display:flex}.sidebar-logo-name{color:#fff;letter-spacing:-.01em;font-size:.9375rem;font-weight:600}.sidebar-section{padding:1rem .75rem .5rem}.sidebar-label{text-transform:uppercase;letter-spacing:.08em;color:var(--sidebar-text);opacity:.5;margin-bottom:.25rem;padding:0 .5rem;font-size:.6875rem;font-weight:600}.sidebar-item{border-radius:var(--radius-sm);color:var(--sidebar-text);transition:background var(--transition),color var(--transition);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:.625rem;width:100%;padding:.5rem .75rem;font-size:.875rem;font-weight:500;text-decoration:none;display:flex}.sidebar-item:hover{background:var(--sidebar-hover);color:#fff}.sidebar-item.active{background:var(--sidebar-active);color:#fff}.sidebar-item svg{opacity:.75;flex-shrink:0;width:16px;height:16px}.sidebar-item.active svg{opacity:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden}.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.25rem;display:flex}.btn{border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:.375rem;padding:.4375rem .875rem;font-family:inherit;font-size:.8125rem;font-weight:500;line-height:1;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-secondary{background:var(--surface);color:var(--text-primary);border-color:var(--border-strong)}.btn-secondary:hover:not(:disabled){background:var(--row-hover)}.btn-destructive{background:var(--error-subtle);color:var(--error);border-color:#0000}.btn-destructive:hover:not(:disabled){background:var(--error);color:#fff}.btn-ghost{color:var(--text-secondary);background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--row-hover);color:var(--text-primary)}.btn-sm{padding:.3125rem .625rem;font-size:.75rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem}thead th{text-align:left;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--border);background:var(--bg-subtle);white-space:nowrap;padding:.625rem 1rem;font-size:.75rem;font-weight:600}tbody td{border-bottom:1px solid var(--border);color:var(--text-primary);vertical-align:middle;padding:.75rem 1rem}tbody tr:hover td{background:var(--row-hover)}tbody tr:last-child td{border-bottom:none}.badge{letter-spacing:.03em;text-transform:uppercase;border-radius:9999px;align-items:center;gap:.25rem;padding:.1875rem .5rem;font-size:.6875rem;font-weight:600;display:inline-flex}.badge-admin{color:#6d28d9;background:#ede9fe}.badge-user{background:var(--bg-subtle);color:var(--text-secondary)}.badge-active{background:var(--success-subtle);color:var(--success)}.badge-invited{background:var(--warning-subtle);color:var(--warning)}.badge-disabled{background:var(--error-subtle);color:var(--error)}.badge-view{background:var(--accent-subtle);color:var(--accent-text)}.dark .badge-admin{color:#c4b5fd;background:#6d28d933}.dark .badge-user{color:var(--text-secondary);background:#ffffff14}.input{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:100%;color:var(--text-primary);transition:border-color var(--transition),box-shadow var(--transition);outline:none;padding:.5rem .75rem;font-family:inherit;font-size:.875rem}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb1f}.input::placeholder{color:var(--text-muted)}.label{color:var(--text-primary);margin-bottom:.375rem;font-size:.8125rem;font-weight:500;display:block}.field{flex-direction:column;gap:.25rem;display:flex}.file-icon{border-radius:var(--radius-sm);flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.file-icon.folder{background:var(--accent-subtle);color:var(--accent)}.file-icon.file{background:var(--bg-subtle);color:var(--text-secondary)}.file-name-cell{cursor:pointer;align-items:center;gap:.625rem;display:flex}.file-name{color:var(--text-primary);font-weight:500}.file-name:hover{color:var(--accent)}.modal-backdrop{z-index:50;background:#00000080;justify-content:center;align-items:center;padding:1rem;animation:.15s fade-in;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:480px;animation:.2s slide-up}.modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.modal-body{flex-direction:column;gap:1rem;padding:1.5rem;display:flex}.modal-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;display:flex}.progress-bar{background:var(--border);border-radius:9999px;height:4px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:9999px;height:100%;transition:width .3s}.breadcrumb{color:var(--text-secondary);align-items:center;gap:.25rem;min-width:0;font-size:.875rem;display:flex}.breadcrumb-item{cursor:pointer;color:var(--text-secondary);transition:color var(--transition);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.breadcrumb-item:hover{color:var(--accent)}.breadcrumb-item.current{color:var(--text-primary);cursor:default;font-weight:500}.breadcrumb-sep{color:var(--border-strong);flex-shrink:0}.toast-container{z-index:100;flex-direction:column;gap:.5rem;display:flex;position:fixed;bottom:1.5rem;right:1.5rem}.toast{background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);align-items:center;gap:.5rem;min-width:240px;padding:.75rem 1rem;font-size:.875rem;animation:.2s slide-in-right;display:flex}.toast.success{border-left:3px solid var(--success)}.toast.error{border-left:3px solid var(--error)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}.status-dot{background:var(--success);border-radius:50%;width:8px;height:8px;animation:2s infinite pulse-dot}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.4}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.sr-only{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.flex{display:flex}.flex-col{flex-direction:column;display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.grid-3{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}.w-full{width:100%}.text-sm{font-size:.875rem}.text-xs{font-size:.75rem}.text-muted{color:var(--text-muted)}.text-secondary{color:var(--text-secondary)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.empty-state{text-align:center;color:var(--text-muted);padding:3rem 1rem;font-size:.875rem}.divider{border:none;border-top:1px solid var(--border);margin:0}
