:root{color-scheme:dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--color-background: #121315;--color-surface: #191b20;--color-surface-alt: #1f2228;--color-surface-hover: #282c34;--color-border: #2d3038;--color-border-light: #363a42;--color-text: #f2f4f7;--color-text-muted: #a0a6b4;--color-text-soft: #7e8494;--color-accent: #5a8dee;--color-accent-dark: #3f6fcc;--color-positive: #3ecf8e;--color-negative: #f16a6f;--color-trial: #f6b84e;--color-table-header: #1b1d22}*,*:before,*:after{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#202329,#121315 65%);color:var(--color-text);min-height:100vh}#app{min-height:100vh}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;border-radius:10px;padding:.6rem 1rem;border:1px solid var(--color-border);background:linear-gradient(135deg,#2b2f36,#23262b);color:var(--color-text);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 30px #00000059;background:var(--color-surface-hover)}button:disabled{cursor:not-allowed;opacity:.6}button.primary{background:linear-gradient(135deg,var(--color-accent),var(--color-accent-dark));border-color:transparent;color:#fff}input{font:inherit}.auth-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;background:#0b0d11}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:var(--color-background)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1rem 2rem;border-bottom:1px solid var(--color-border);background:linear-gradient(180deg,#1a1d22,#14161a);position:sticky;top:0;z-index:10}.app-brand{display:flex;align-items:center;gap:.75rem;font-weight:600;color:var(--color-text)}.brand-mark{width:10px;height:10px;border-radius:50%;background:var(--color-accent);display:inline-block}.brand-text{letter-spacing:.02em}.app-nav{display:flex;align-items:center;gap:.5rem}.app-nav-link{padding:.5rem 1rem;border-radius:8px;color:var(--color-text-muted);border:1px solid transparent;transition:background .15s ease,color .15s ease,border .15s ease}.app-nav-link:hover{color:var(--color-text);background:var(--color-surface);border-color:var(--color-border-light)}.app-nav-link.is-active{background:var(--color-surface-hover);color:var(--color-text);border-color:var(--color-border-light)}.app-main{flex:1;padding:2.5rem 2rem 3.5rem;display:flex;justify-content:center}.page-layout,.dashboard-layout{width:100%;max-width:1180px;display:flex;flex-direction:column;gap:2rem}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.page-header h1{margin:0;font-size:1.75rem;letter-spacing:.01em}.page-header p{margin:.4rem 0 0;color:var(--color-text-muted);font-size:.95rem}.summary-cards{background:var(--color-surface);border:1px solid var(--color-border);border-radius:18px;padding:1.6rem;display:flex;flex-direction:column;gap:1.25rem}.summary-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.summary-header h1{margin:0;font-size:1.6rem}.summary-subtitle{margin:.35rem 0 0;color:var(--color-text-muted);font-size:.9rem}.refresh-button{min-width:130px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.summary-card{background:var(--color-surface-alt);border-radius:16px;border:1px solid var(--color-border);padding:1.1rem 1.3rem;display:flex;flex-direction:column;gap:.45rem}.summary-label{color:var(--color-text-soft);font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.summary-value{font-size:1.8rem;font-weight:600}.summary-description{color:var(--color-text-muted);font-size:.85rem}.settings-section{display:flex;flex-direction:column;gap:1rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:18px;padding:1.5rem}.settings-panel{border:1px dashed var(--color-border-light);border-radius:14px;padding:1.25rem;background:var(--color-surface-alt)}.tenant-toggle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem}.tenant-toggle{display:flex;gap:.75rem;align-items:center;padding:.75rem 1rem;border-radius:12px;background:var(--color-surface);border:1px solid var(--color-border);cursor:pointer;transition:border .15s ease,background .15s ease}.tenant-toggle input{width:18px;height:18px;accent-color:var(--color-accent)}.tenant-toggle:hover{border-color:var(--color-border-light);background:var(--color-surface-hover)}.tenant-name{display:block;font-weight:600;color:var(--color-text)}.tenant-subtitle{display:block;font-size:.85rem;color:var(--color-text-soft)}.error-banner{padding:.9rem 1.1rem;border-radius:12px;border:1px solid rgba(241,106,111,.35);background:#f16a6f1f;color:var(--color-negative)}.customer-section{display:flex;flex-direction:column;gap:1rem}.section-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.section-toolbar h2{margin:0}.section-toolbar p{margin:.25rem 0 0;color:var(--color-text-muted);font-size:.9rem}.toolbar-actions{display:flex;gap:.75rem;flex-wrap:wrap}.search-input{background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.6rem .9rem;color:var(--color-text);min-width:220px}.search-input:focus{outline:none;border-color:var(--color-border-light);box-shadow:0 0 0 2px #5a8dee33}.customer-table-container{overflow:hidden;border-radius:16px;border:1px solid var(--color-border);background:var(--color-surface)}.customer-table{width:100%;border-collapse:collapse}.customer-table thead{background:var(--color-table-header)}.customer-table th,.customer-table td{padding:1rem 1.4rem;text-align:left;border-bottom:1px solid var(--color-border);font-size:.95rem}.customer-table th{color:var(--color-text-soft);text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}.customer-table tbody tr{transition:background .15s ease}.customer-table tbody tr:hover{background:var(--color-surface-hover)}.customer-table tbody tr.selected-row{background:#5865f21f}.customer-cell{display:flex;align-items:center;gap:1rem}.customer-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#2f333a;font-weight:600;color:#e3e7ff;text-transform:uppercase;overflow:hidden}.customer-avatar img{width:100%;height:100%;object-fit:cover}.customer-name{font-weight:600;color:var(--color-text)}.customer-subtitle{font-size:.85rem;color:var(--color-text-soft)}.members-pill{display:inline-flex;align-items:center;padding:.35rem .75rem;border-radius:999px;background:#5a8dee1f;border:1px solid rgba(90,141,238,.35);color:#c1d4ff;font-size:.88rem;font-weight:500}.badge{display:inline-flex;align-items:center;justify-content:center;padding:.3rem .75rem;border-radius:999px;font-size:.85rem;font-weight:600}.badge-success{background:#3ecf8e29;border:1px solid rgba(62,207,142,.4);color:var(--color-positive)}.badge-trial{background:#f6b84e29;border:1px solid rgba(246,184,78,.35);color:var(--color-trial)}.badge-inactive{background:#f16a6f29;border:1px solid rgba(241,106,111,.4);color:var(--color-negative)}.growth-positive{color:var(--color-positive);font-weight:600}.growth-negative{color:var(--color-negative);font-weight:600}.growth-neutral{color:var(--color-text-soft)}.table-placeholder{padding:2.25rem;text-align:center;color:var(--color-text-soft)}.token-usage-panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:18px;padding:1.6rem;display:flex;flex-direction:column;gap:1.4rem}.panel-header h2{margin:0;font-size:1.4rem}.panel-header p{margin:.35rem 0 0;color:var(--color-text-muted);font-size:.95rem}.usage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.usage-card{background:var(--color-surface-alt);border-radius:14px;border:1px solid var(--color-border);padding:1.1rem;display:flex;flex-direction:column;gap:.35rem}.usage-label{font-size:.78rem;color:var(--color-text-soft);text-transform:uppercase;letter-spacing:.06em}.usage-value{font-size:1.45rem;font-weight:600}.usage-helper{font-size:.85rem;color:var(--color-text-muted)}.token-usage-table table{width:100%;border-collapse:collapse}.token-usage-table th,.token-usage-table td{padding:.85rem 1rem;border-bottom:1px solid var(--color-border);font-size:.9rem}.token-usage-table th{text-align:left;color:var(--color-text-soft);text-transform:uppercase;font-size:.75rem;letter-spacing:.06em}.token-usage-table tr:hover{background:var(--color-surface-hover)}.mono{font-family:JetBrains Mono,Fira Code,monospace;letter-spacing:.04em}@media(max-width:900px){.app-header{flex-wrap:wrap;justify-content:center;gap:1rem}.app-main{padding:2rem 1.25rem 3rem}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.toolbar-actions{width:100%}.search-input{flex:1;min-width:0}.customer-table th,.customer-table td{padding:.85rem 1rem}}.date-range-filter{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:var(--color-surface);border-radius:10px;border:1px solid var(--color-border)}.date-input-group{display:flex;align-items:center;gap:.5rem}.date-input-group label{font-size:.875rem;color:var(--color-text-muted);font-weight:500}.date-input{padding:.5rem .75rem;background:var(--color-surface-alt);border:1px solid var(--color-border);border-radius:6px;color:var(--color-text);font-size:.875rem}.date-input:focus{outline:none;border-color:var(--color-accent)}.clear-filter-button{padding:.5rem 1rem;font-size:.875rem;background:var(--color-surface-hover);border:1px solid var(--color-border);border-radius:6px}.modal-backdrop{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:var(--color-surface);border-radius:16px;border:1px solid var(--color-border);box-shadow:0 20px 60px #00000080;width:100%;max-width:1200px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 2rem;border-bottom:1px solid var(--color-border)}.modal-header h2{margin:0;font-size:1.5rem;font-weight:600}.modal-subtitle{margin:.25rem 0 0;font-size:.875rem;color:var(--color-text-muted)}.modal-close-button{width:2.5rem;height:2.5rem;padding:0;border-radius:50%;background:transparent;border:1px solid var(--color-border);font-size:1.5rem;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted)}.modal-close-button:hover{background:var(--color-surface-hover);color:var(--color-text)}.modal-tabs{display:flex;gap:.5rem;padding:1rem 2rem 0;border-bottom:1px solid var(--color-border)}.tab-button{padding:.75rem 1.5rem;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-text-muted);font-weight:500;border-radius:0;transition:color .2s ease,border-color .2s ease}.tab-button:hover{color:var(--color-text);background:transparent;transform:none;box-shadow:none}.tab-button.active{color:var(--color-accent);border-bottom-color:var(--color-accent)}.modal-body{flex:1;overflow-y:auto;padding:2rem}.logs-tab,.members-tab{display:flex;flex-direction:column;gap:1.5rem}.usage-summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.table-container{overflow-x:auto;border-radius:10px;border:1px solid var(--color-border);background:var(--color-surface-alt)}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:var(--color-table-header);border-bottom:1px solid var(--color-border)}.data-table th{padding:1rem;text-align:left;font-weight:600;font-size:.875rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.025em}.data-table td{padding:1rem;border-top:1px solid var(--color-border);font-size:.875rem}.data-table tbody tr:hover{background:var(--color-surface-hover)}.member-name{font-weight:500;color:var(--color-text)}.member-email{font-size:.75rem;color:var(--color-text-muted);margin-top:.25rem}.mono{font-family:Courier New,monospace;font-size:.875rem;color:var(--color-text-soft)}
