:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;color:#0f172a;background:radial-gradient(circle at top,#e0f2ff,#f6f8fb 40%,#f1f5f9);min-height:100vh}body{margin:0;background:transparent;width:100%;min-height:100vh;display:block!important}a{color:inherit;text-decoration:none}button{font:inherit}input,select,textarea{color:#0f172a;background-color:#fff;caret-color:#2563eb;color-scheme:light}input::placeholder,textarea::placeholder{color:#94a3b8;opacity:1}select option{color:#0f172a;background:#fff}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-text-fill-color:#0f172a;box-shadow:0 0 0 1000px #fff inset}.auth-background{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:clamp(1.5rem,5vw,3.5rem);background:radial-gradient(circle at 15% -15%,rgba(56,189,248,.32),transparent 60%),radial-gradient(circle at 85% -20%,rgba(147,197,253,.25),transparent 60%),linear-gradient(180deg,#e2e8f04d,#f8fafcd9)}.auth-container{width:min(1400px,100%);margin:0 auto;display:grid;grid-template-columns:1.3fr 1fr;gap:clamp(2.5rem,7vw,4.5rem);justify-content:center;align-items:center}.auth-panel{background:#fffffff2;border-radius:32px;padding:clamp(2.5rem,5vw,3.5rem);box-shadow:0 35px 120px #0f172a3d;display:grid;gap:2rem;position:relative;overflow:hidden}.auth-panel:after{content:"";position:absolute;inset:-200px 55% auto -120px;height:360px;background:radial-gradient(circle,rgba(59,130,246,.25),transparent 70%);z-index:0}.auth-panel>*{position:relative;z-index:1}.auth-brand{display:flex;align-items:center;gap:1rem}.auth-logo{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-size:1.6rem;font-weight:700;box-shadow:0 14px 32px #4f46e559}.auth-brand h1{margin:0;font-size:clamp(1.85rem,4vw,2.1rem)}.auth-form{display:grid;gap:1.4rem}.auth-form label{display:grid;gap:.6rem;font-weight:600;color:#0f172a}.auth-form input{border-radius:14px;border:1px solid #d4dbe7;padding:.9rem 1rem;background:#fff;transition:border-color .2s ease,box-shadow .2s ease;font-size:1rem}.auth-form input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px #2563eb2e}.auth-form button{margin-top:.5rem;border-radius:999px;border:none;padding:.9rem;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-weight:600;font-size:1rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.auth-form button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 20px 40px #4f46e542}.auth-form button:disabled{opacity:.65;cursor:not-allowed}.link-button{border:none;background:none;color:#2563eb;font-weight:600;cursor:pointer;padding:.3rem 0;justify-self:flex-start;margin-top:.3rem}.bootstrap-hint{border-radius:18px;padding:1.2rem 1.4rem;background:#2563eb14;color:#1d4ed8;display:grid;gap:1rem;border:1px solid rgba(37,99,235,.12);margin-top:.8rem}.bootstrap-hint button{justify-self:flex-start;border-radius:999px;padding:.75rem 1.4rem;border:none;background:linear-gradient(135deg,#34d399,#22c55e);color:#0f172a;font-weight:700}.error-text{color:#b91c1c;margin:0}.auth-showcase{background:linear-gradient(155deg,#0f172af0,#1e293beb);border-radius:32px;padding:clamp(2.2rem,5vw,3.4rem);color:#e2e8f0;display:grid;gap:1.35rem;position:relative;overflow:hidden;box-shadow:0 32px 90px #0f172a52}.auth-showcase:after{content:"";position:absolute;inset:45% -140px -200px 40%;width:320px;height:340px;background:radial-gradient(circle,rgba(56,189,248,.35),transparent 65%)}.auth-showcase>*{position:relative;z-index:1}.auth-showcase h2{margin:0;font-size:clamp(2rem,4.6vw,2.6rem)}.auth-benefits{list-style:none;padding:0;margin:0;display:grid;gap:.85rem}.auth-benefits li{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:center;font-size:1rem}.auth-benefits span.icon{width:40px;height:40px;border-radius:14px;background:#38bdf82e;display:flex;align-items:center;justify-content:center;color:#38bdf8;font-weight:700}.auth-meta{margin-top:auto;font-size:.9rem;color:#e2e8f0c7}@media (max-width: 1200px){.auth-container{grid-template-columns:1fr;justify-items:center}.auth-showcase{order:-1;text-align:center}.auth-benefits li{justify-items:center}}.loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;font-weight:600;color:#334155}.app-shell{display:flex;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0f172aeb,#1e293be6);color:#e2e8f0;padding:2rem 1.75rem;display:grid;grid-template-rows:auto 1fr auto;gap:1.5rem;box-shadow:inset -1px 0 #94a3b829}.sidebar-header h2{margin:0 0 .3rem}.sidebar-header .small{margin:0}.company-list{display:flex;flex-direction:column;gap:.6rem;overflow-y:auto}.company-item{background:#94a3b81f;border:1px solid transparent;border-radius:14px;padding:.9rem 1rem;color:inherit;text-align:left;display:grid;gap:.35rem;cursor:pointer;transition:background .2s ease,border .2s ease}.company-item:hover{background:#60a5fa2e}.company-item.active{border:1px solid rgba(148,197,252,.8);background:#60a5fa40}.sidebar-divider{height:1px;background:#94a3b840}.create-company{display:grid;gap:.75rem}.create-company input{border-radius:12px;border:1px solid rgba(148,163,184,.4);padding:.75rem .85rem;background:#0f172a99;color:#f8fafc}.create-company input::placeholder{color:#e2e8f0b3}.create-company button{border-radius:999px;border:none;padding:.75rem;background:linear-gradient(135deg,#34d399,#22c55e);color:#0f172a;font-weight:700;cursor:pointer}.main-content{padding:2.5rem 3rem;display:grid;gap:1.5rem;background:#ffffffbf;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);flex:1;width:100%}.main-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem}.main-header h1{margin:0;font-size:2rem}.user-meta{display:flex;align-items:center;gap:1rem}button.ghost{border:1px solid rgba(148,163,184,.6);background:#fff9;border-radius:999px;padding:.55rem 1.1rem;color:#1f2937;cursor:pointer;transition:background .2s ease}button.ghost:hover{background:#0ea5e924}.banner{border-radius:14px;padding:1rem 1.2rem;font-weight:600}.banner-success{background:#86efac66;color:#166534;border:1px solid rgba(34,197,94,.6)}.banner-error{background:#fecaca66;color:#b91c1c;border:1px solid rgba(248,113,113,.6)}.card{background:#ffffffeb;border-radius:20px;padding:1.8rem;box-shadow:0 22px 60px #0f172a1f;display:grid;gap:1.3rem}.overview{display:flex;align-items:center;justify-content:space-between}.overview-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}.apikey-box{background:#0ea5e91f;border-radius:12px;padding:.75rem 1rem;font-family:JetBrains Mono,Fira Code,monospace;color:#0369a1;word-break:break-all}.section-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.channels-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.channel-card{background:#e2e8f099;border-radius:14px;padding:1rem;display:grid;gap:.35rem;border:1px solid rgba(148,163,184,.4)}.inline-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.inline-form label,.route-form label,.test-form label{display:grid;gap:.45rem;color:#334155;font-size:.9rem;font-weight:700}.inline-form input,.route-form select,.route-form input,.test-form input,.test-form select,.test-form textarea{border-radius:12px;border:2px solid #e2e8f0;padding:.75rem .85rem;background:#fff;color:#0f172a;font-size:1rem;transition:border-color .2s ease,box-shadow .2s ease}.inline-form input:focus,.route-form select:focus,.route-form input:focus,.test-form input:focus,.test-form select:focus,.test-form textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.route-form select,.test-form select{cursor:pointer;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;appearance:none}.inline-form button{border-radius:999px;padding:.75rem 1rem;background:linear-gradient(135deg,#34d399,#22c55e);border:none;color:#0f172a;font-weight:600;cursor:pointer}.routes-list{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}.routes-list li{display:flex;align-items:center;gap:.5rem}.chip{border-radius:999px;padding:.25rem .65rem;font-size:.8rem;font-weight:600}.chip-source{background:#0ea5e933;color:#0369a1}.chip-targets{background:#22c55e33;color:#15803d}.chip-arrow{color:#475569}.route-form{display:grid;gap:.85rem}.route-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.route-form button,.test-form button{justify-self:flex-start;border-radius:999px;border:none;padding:.75rem 1.2rem;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-weight:600;cursor:pointer}.inline-form button:disabled,.route-form button:disabled,.test-form button:disabled,button.ghost:disabled{opacity:.6;cursor:not-allowed}.messages-grid{display:grid;gap:1rem}.message-card{border:1px solid rgba(203,213,225,.7);border-radius:14px;padding:.85rem 1rem;background:#f8fafce6;display:grid;gap:.6rem}.message-card header{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between}.status-pill{border-radius:999px;padding:.25rem .6rem;font-size:.75rem;font-weight:700;text-transform:uppercase}.status-sent{background:#86efac59;color:#15803d}.status-failed{background:#fecaca66;color:#b91c1c}.status-pending{background:#fde68a66;color:#92400e}.message-card pre{margin:0;padding:.75rem;border-radius:10px;background:#0f172ae6;color:#e2e8f0;font-family:JetBrains Mono,Fira Code,monospace;max-height:220px;overflow:auto}.test-form{display:grid;gap:.85rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.85rem}.test-form textarea{resize:vertical;min-height:120px;font-family:JetBrains Mono,monospace}.muted{color:#64748b}.muted.small{font-size:.85rem}.tabs{display:flex;gap:.5rem;border-bottom:1px solid rgba(148,163,184,.3);margin-bottom:1.5rem}.tab-button{padding:.75rem 1.2rem;border:none;background:transparent;color:#64748b;font-weight:600;cursor:pointer;border-radius:12px 12px 0 0;transition:background .2s ease,color .2s ease}.tab-button:hover{background:#60a5fa1a;color:#0369a1}.tab-button.active{background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff}@media (max-width: 1080px){.app-shell{flex-direction:column}.sidebar{position:relative}.main-content{padding:1.5rem}}@media (max-width: 720px){.main-header{flex-direction:column;align-items:flex-start}.overview{flex-direction:column;align-items:flex-start;gap:1rem}.overview-actions{align-items:flex-start}}.overview-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}button.danger-ghost{color:#991b1b;border-color:#f87171a6}button.compact{border-radius:10px;padding:.45rem .7rem;font-size:.85rem}.icon-button{width:34px;height:34px;border-radius:10px;border:1px solid rgba(148,163,184,.55);background:#fff;color:#334155;font-weight:800;cursor:pointer}.summary-strip{display:flex;flex-wrap:wrap;gap:.5rem}.summary-strip span,.key-state{border-radius:999px;border:1px solid rgba(148,163,184,.35);background:#f8fafc;color:#334155;padding:.4rem .7rem;font-size:.85rem;font-weight:700}.key-state-ready{border-color:#22c55e59;background:#dcfce7d9;color:#166534}.key-state-missing{border-color:#fbbf2473;background:#fef3c7d9;color:#92400e}.channels-panel,.test-panel{gap:1.15rem}.channel-workbench,.test-workbench{display:grid;grid-template-columns:minmax(260px,.42fr) minmax(0,1fr);gap:1.2rem;align-items:start}.test-workbench{grid-template-columns:minmax(0,1fr) minmax(280px,.45fr)}.channel-builder,.test-form,.test-result-panel{display:grid;gap:.85rem;border:1px solid rgba(203,213,225,.8);border-radius:14px;padding:1rem;background:#f8fafc}.test-result-panel{background:#fff}.channel-builder h4,.test-result-panel h4{margin:0 0 .2rem}.channel-builder p,.test-result-panel p{margin:0}.channel-builder label,.api-key-field{display:grid;gap:.45rem;color:#334155;font-size:.9rem;font-weight:700}.channel-builder input,.channel-builder textarea,.channel-toolbar input,.channel-toolbar select,.api-key-field input{border-radius:12px;border:2px solid #e2e8f0;background:#fff;color:#0f172a;padding:.72rem .82rem;font-size:.95rem}.channel-builder textarea{resize:vertical;min-height:84px}.channel-builder button,.modal-actions button:last-child{border-radius:12px;border:none;padding:.8rem 1rem;background:#0f172a;color:#fff;font-weight:800;cursor:pointer}.channel-directory,.channel-list{display:grid;gap:.8rem}.channel-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,.32fr);gap:.75rem}.channel-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.8fr) auto;gap:1rem;align-items:center;border:1px solid rgba(203,213,225,.75);border-radius:12px;padding:.9rem;background:#fff}.channel-row-main{display:grid;grid-template-columns:minmax(130px,auto) minmax(0,1fr);gap:.85rem;align-items:center}.channel-code-block,.channel-copy,.channel-route-preview{display:grid;gap:.25rem}.channel-code{font-family:JetBrains Mono,Fira Code,monospace;font-weight:800;color:#0f172a;overflow-wrap:anywhere}.channel-copy strong,.channel-route-preview strong{overflow-wrap:anywhere}.row-actions{display:flex;justify-content:flex-end;gap:.5rem}.empty-state{display:grid;gap:.35rem;border:1px dashed rgba(148,163,184,.7);border-radius:12px;padding:1rem;background:#f8fafc}.field-heading{display:flex;justify-content:space-between;gap:.75rem;align-items:center}.inline-link{border:none;background:transparent;color:#2563eb;font-weight:800;cursor:pointer;padding:0}.connection-status{display:grid;gap:.25rem;border-radius:12px;border:1px solid rgba(148,163,184,.45);padding:.85rem 1rem;background:#f8fafc;color:#334155}.connection-status time{color:#64748b;font-size:.82rem}.connection-connected{border-color:#22c55e73;background:#f0fdf4f2;color:#166534}.connection-checking{border-color:#3b82f666;background:#eff6fff2;color:#1d4ed8}.connection-error{border-color:#f8717180;background:#fef2f2f2;color:#991b1b}.test-result{display:grid;gap:.75rem}.test-result dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .75rem;margin:0}.test-result dt{color:#64748b;font-weight:700}.test-result dd{margin:0;overflow-wrap:anywhere}.test-result pre{margin:0;max-height:260px;overflow:auto;border-radius:10px;padding:.75rem;background:#0f172a;color:#e2e8f0;font-family:JetBrains Mono,Fira Code,monospace}.test-result-success>strong{color:#15803d}.test-result-error>strong{color:#b91c1c}.stats-panel{gap:1rem}.stats-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}.stats-actions select{border-radius:12px;border:2px solid #e2e8f0;background:#fff;color:#0f172a;padding:.55rem 2.4rem .55rem .8rem;font-weight:700}.stats-layout{display:grid;gap:1rem}.stats-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.85rem}.metric-card{display:grid;gap:.25rem;border:1px solid rgba(203,213,225,.75);border-radius:12px;padding:1rem;background:#f8fafc}.metric-card span,.metric-card small{color:#64748b;font-size:.85rem;font-weight:700}.metric-card strong{color:#0f172a;font-size:1.75rem;line-height:1.1}.stats-section{display:grid;gap:.85rem;border:1px solid rgba(203,213,225,.75);border-radius:14px;padding:1rem;background:#fff}.stats-section header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.stats-section h4{margin:0}.stats-table,.daily-chart,.app-usage-list{display:grid;gap:.65rem}.topic-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;border-radius:12px;border:1px solid rgba(226,232,240,.95);background:#f8fafc;padding:.85rem}.topic-row>div:first-child{display:grid;gap:.2rem}.topic-row strong{overflow-wrap:anywhere}.topic-row-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.topic-row-meta span{border-radius:999px;background:#e2e8f0;color:#334155;padding:.3rem .6rem;font-size:.8rem;font-weight:800}.stats-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.45fr);gap:1rem}.daily-bar-row,.app-usage-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:.65rem;align-items:center;color:#334155;font-size:.88rem;font-weight:700}.app-usage-row{grid-template-columns:minmax(90px,.35fr) minmax(0,1fr) auto}.bar-track{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}.bar-fill{height:100%;border-radius:inherit;background:#2563eb}.app-fill{background:#16a34a}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:1.25rem;background:#0f172a80}.modal-panel{width:min(620px,100%);display:grid;gap:1rem;border-radius:16px;border:1px solid rgba(203,213,225,.8);background:#fff;padding:1.25rem;box-shadow:0 30px 90px #0f172a47}.modal-header,.modal-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.modal-header h3{margin:0}.secret-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem}.notice-box{display:grid;gap:.3rem;border-radius:12px;border:1px solid rgba(251,191,36,.45);background:#fef3c7bf;color:#78350f;padding:.9rem 1rem}.copy-status{margin:0;color:#1d4ed8;font-weight:700}@media (max-width: 1080px){.channel-workbench,.test-workbench,.channel-row,.stats-split{grid-template-columns:1fr}.row-actions{justify-content:flex-start}}@media (max-width: 720px){.section-header,.modal-actions{flex-direction:column;align-items:stretch}.channel-toolbar,.channel-row-main,.topic-row,.secret-input-row{grid-template-columns:1fr}.topic-row-meta{justify-content:flex-start}}
