:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.4;color:#dce7f8;background:#0f1726;text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#0f1726;color:#dce7f8}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}input,textarea,select{width:100%;border:1px solid #cdd7e6;background:#fff;color:#1d2433;border-radius:8px;padding:10px 12px}textarea{resize:vertical}.layout{height:100dvh;min-height:100dvh;display:grid;grid-template-columns:var(--sidebar-width, 290px) 12px minmax(0,1fr);overflow:hidden}.sidebar{position:relative;background:#111827;color:#f9fbff;font-size:14px;padding:18px 14px;overflow-y:auto}.brand{display:inline-flex;align-items:center;gap:10px;font-size:20px;font-weight:700;margin:6px 8px 18px}.brand-link{width:fit-content}.brand-link:hover{opacity:.9}.brand-logo{width:28px;height:28px;border-radius:8px}.brand-text{line-height:1}.nav{display:grid;gap:6px;margin-bottom:14px}.nav-row{display:flex;align-items:center;gap:6px;margin-bottom:6px}.nav-link{display:flex;align-items:center;gap:8px;flex:1 1 auto;padding:8px 10px;border:0;border-radius:6px;background:#202c42;color:inherit;font:inherit;line-height:1.35;text-align:left;cursor:pointer}.nav-link.router-link-active{background:#30435f}.nav-link-content{display:flex;align-items:center;gap:8px}.nav-link.with-icon .icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex:0 0 18px;font-size:24px;line-height:1;position:relative;top:-1px}.nav-link.with-icon .icon.users-icon{font-size:20px}.nav-icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:#1f4ca8;color:#fff;font:inherit;cursor:pointer}.nav-icon-button:disabled{opacity:.7;cursor:default}.menu-block-head{display:flex;align-items:center;justify-content:space-between;margin:14px 8px 8px}.menu-block-title{color:#94a3ba;text-transform:uppercase;font-size:11px;margin:0}.apps-create-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:#1f4ca8;color:#fff;font-size:14px;line-height:1}.apps-create-icon:hover{opacity:.9}.sidebar-resize{grid-column:2;grid-row:1;position:relative;width:12px;height:100%;border:0;background:transparent;cursor:col-resize;z-index:20;padding:0}.sidebar-resize:before{content:"";position:absolute;top:50%;left:50%;width:10px;height:54px;transform:translate(-50%,-50%);border-radius:999px;background:#6f85ad47;border:1px solid rgba(160,182,221,.35);opacity:.75;transition:opacity .15s ease,background .15s ease,border-color .15s ease}.sidebar-resize:after{content:"";position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%);width:2px;background:#9aafd680;transition:background .15s ease}.sidebar-resize:hover:before,.sidebar-resize:focus-visible:before{opacity:1;background:#7e97c466;border-color:#b4caee99}.sidebar-resize:hover:after,.sidebar-resize:focus-visible:after{background:#c4d8fad9}.sidebar-resize:active:before{background:#92abd57a;border-color:#d0e1ffb3}.sidebar-resize:active:after{background:#e2effff2}.sidebar-overlay{display:none}.apps-list{display:grid;gap:6px}.apps-search-wrap{margin:0 8px 8px}.apps-search{height:32px;padding:6px 9px;border-radius:6px;border:1px solid #364d71;background:#182337;color:#dbe7f9;font-size:13px}.apps-search::placeholder{color:#90a5c3}.apps-search:focus{outline:none;border-color:#5e7eb0}.app-item{display:grid;gap:2px;border-radius:6px;padding:8px 10px;background:#1c273b;min-height:42px;transition:background .15s ease;min-width:0}.app-item:hover{background:#25334a}.app-item.active{background:#30435f}.app-topline{width:100%;min-width:0;display:flex;align-items:baseline;gap:8px;overflow:hidden}.app-name{flex:1 1 auto;min-width:0;display:block;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-prefix{flex:0 1 45%;min-width:0;display:block;font-size:12px;color:#9fb1cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-backend{width:100%;min-width:0;display:block;padding-left:32px;margin-top:4px;font-size:12px;color:#b6c4dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.apps-empty{padding:8px 10px;font-size:12px}.content{min-width:0;min-height:0;display:grid;grid-template-rows:64px 1fr;background:#172337}.topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #3a4d6d;background:#1e2d44;padding:0 22px}.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}.mobile-menu-button{display:none;width:30px;height:30px;border:1px solid #385074;border-radius:6px;background:#1f2d45;color:#d5e1f4;cursor:pointer;padding:0}.topbar-title{font-size:16px;font-weight:600;color:#eaf1ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-user{position:relative;display:flex;align-items:center;gap:8px;flex:0 0 auto}.user-trigger{display:inline-flex;align-items:center;gap:8px;border:1px solid #364c70;border-radius:8px;background:#243553;color:#e0e9f9;padding:7px 10px;cursor:pointer;max-width:100%}.user-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar-badge{width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#314a71;color:#d8e7ff;font-size:11px;font-weight:700}.user-trigger .caret{color:#9fb1cc;font-size:11px}.user-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:170px;background:#22324d;border:1px solid #415a7a;border-radius:8px;box-shadow:0 12px 24px #1722371f;padding:6px;z-index:10}.menu-item{width:100%;display:flex;align-items:center;gap:8px;border:0;background:#22324d;color:#dce7f8;border-radius:6px;padding:8px 10px;cursor:pointer;text-align:left}.menu-item:hover{background:#2f4668}.menu-item.danger{color:#ff9aa6}.menu-item.danger:hover{background:#5b313b;color:#ffd6dd}.page{position:relative;min-height:0;overflow:auto;font-size:14px;padding:22px;background:#172337;color:#dce7f8}.page-transition-wrap{min-height:100%}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.page-header.compact{margin-top:20px}h1,h2,h3{margin:0;color:#edf3ff}h1{font-size:24px}h2{font-size:20px}h3{font-size:17px}.data-table{width:100%;border-collapse:collapse;background:#22324c;border:1px solid #415b7d;border-radius:8px;overflow:hidden}.data-table th,.data-table td{text-align:left;padding:12px;border-bottom:1px solid #2b3e5b;vertical-align:middle}.data-table th{color:#a9bbd6;font-weight:600;font-size:13px;background:#273954}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.page-top-actions{justify-content:flex-end;margin-bottom:14px}.stack{display:grid;gap:12px;max-width:920px}.field{display:grid;gap:6px}.field.compact{max-width:180px}.field-readonly{min-height:42px;display:flex;align-items:center;padding:10px 12px;border:1px solid #344965;background:#22334d;color:#dce7f8;border-radius:8px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.label{display:block;font-size:12px;color:#9ab0cd;margin-bottom:3px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#1e2d44;border:1px solid #425c7f;border-radius:8px;padding:14px;margin-bottom:14px}.status-chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:12px;background:#d8f5df;color:#205f2f}.status-chip.inactive{background:#f2e0de;color:#863d38}.user-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #385074;border-radius:6px;padding:6px 10px;background:#243553}.admin-badge{font-size:12px;color:#654b00;background:#fff0c2;border-radius:4px;padding:2px 6px}.admin-badge.yes{color:#0f4a88;background:#d7e9ff}.icon{line-height:1}.primary-button,.secondary-button,.danger-button,.link-button,.danger-text-button{border:0;border-radius:6px;padding:8px 12px;cursor:pointer}.icon-action-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;cursor:pointer;font-size:16px;line-height:1}.icon-action-glyph{width:100%;height:100%;display:inline-flex;align-items:center;justify-content:center;line-height:1}.icon-action-button.secondary{background:#2c4261;color:#d8e6fb}.icon-action-button.primary{background:#1e4bb8;color:#fff}.icon-action-button.danger{background:#c73c3c;color:#fff}.primary-button{background:#1e4bb8;color:#fff}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled,.icon-action-button:disabled,.link-button:disabled,.danger-text-button:disabled,.menu-item:disabled,.user-trigger:disabled{opacity:.7;cursor:not-allowed}.secondary-button,.link-button{background:#2c4261;color:#d8e6fb}.danger-button{background:#c73c3c;color:#fff}.danger-text-button{background:#4d2a31;color:#ffccce}.error{color:#a23737;margin:8px 0}.success{color:#2f6b3f;margin:8px 0}.muted{color:#9fb1cc}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(140deg,#121d2f,#1a2a41);padding:24px}.login-form{width:100%;max-width:420px;border:1px solid #425c7f;border-radius:8px;background:#1e2d44;padding:20px;display:grid;gap:12px;color:#dce7f8}.login-brand{display:flex;align-items:center;gap:10px}.login-brand-logo{width:34px;height:34px;border-radius:10px}.hint{margin:0;color:#a9bbd6;font-size:12px}.login-page input,.login-page textarea,.login-page select{border:1px solid #4a6487;background:#223450;color:#e3edff}.section-title{margin-top:10px}.auth-editor{border:1px solid #425c7f;border-radius:8px;background:#1e2d44;padding:14px;display:grid;gap:14px}.auth-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #2c405d}.auth-method-add{display:flex;gap:8px;flex-wrap:wrap}.auth-method-add .secondary-button{padding:7px 10px}.auth-method-list{display:grid;gap:12px}.auth-control{margin:0}.auth-mode-control{display:flex;align-items:center;gap:8px}.auth-control-label{font-size:13px;color:#9bb0cb}.auth-mode-control select{width:130px;padding-top:8px;padding-bottom:8px}.auth-empty{margin:0;padding:12px;border:1px dashed #405878;border-radius:8px;background:#1a2940}.auth-method-card{border:1px solid #415a7a;border-radius:8px;background:#243553;padding:12px;display:grid;gap:12px}.auth-method-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.auth-type-toggle{display:flex;gap:12px;flex-wrap:wrap}.auth-type-block{display:grid;gap:8px;padding:10px;border:1px solid #3a5274;border-radius:8px;background:#273954}.field-inline{display:flex;align-items:center;justify-content:space-between;gap:8px}.auth-basic-user-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center}.auth-method-enter-active,.auth-method-leave-active{transition:opacity .16s ease,transform .16s ease}.auth-method-enter-from,.auth-method-leave-to{opacity:0;transform:translateY(-6px)}.auth-method-move{transition:transform .16s ease}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.kpi-card{background:#1e2d44;border:1px solid #425c7f;border-radius:8px;padding:14px}.kpi-title{font-size:12px;color:#9cb1cd;margin-bottom:4px}.kpi-value{font-size:26px;line-height:1.2;font-weight:700}.kpi-sub{margin-top:4px;color:#9cb1cd;font-size:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px}.gateway-panel{margin-top:12px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.users-top-actions{justify-content:flex-start}.users-filter{width:280px;max-width:100%}.users-editor-panel{margin-bottom:14px}.users-table th,.users-table td{white-space:nowrap}.users-mobile-list{display:none}.users-mobile-card{border:1px solid #3f597c;border-radius:8px;background:#223450;padding:10px;display:grid;gap:10px}.users-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.users-mobile-username{overflow-wrap:anywhere}.users-mobile-grid{display:grid;gap:8px}.users-mobile-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.users-mobile-row>:last-child{min-width:0;text-align:right;overflow-wrap:anywhere}.users-mobile-actions{display:flex;gap:8px;flex-wrap:wrap}.gateway-table th,.gateway-table td,.endpoints-table th,.endpoints-table td{white-space:nowrap}.endpoint-path-link{color:#cfe2ff;text-decoration:underline;text-decoration-color:transparent;transition:color .14s ease,text-decoration-color .14s ease}.endpoint-path-link:hover,.endpoint-path-link:focus-visible{color:#8fd0ff;text-decoration-color:currentColor}.endpoints-head{justify-content:flex-start;gap:8px;margin-bottom:10px}.endpoints-head-count{font-size:12px}.endpoints-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.endpoints-filter-input{width:220px;max-width:100%;border:1px solid #4a6487;background:#223450;color:#e3edff}.endpoints-filter-input::placeholder{color:#9bb0cb}.endpoints-filter-select{width:auto;min-width:140px;border:1px solid #4a6487;background:#223450;color:#e3edff;padding-right:34px}.endpoints-filters .icon-action-button.secondary:not(:disabled):hover .icon-action-glyph{color:#8fd0ff}.endpoints-table{border:0;background:transparent;border-radius:0;overflow:visible}.endpoints-mobile-list{display:none}.endpoints-mobile-empty{margin:0}.endpoint-mobile-group{display:grid;gap:8px;margin-bottom:12px}.endpoint-mobile-cards{display:grid;gap:8px}.endpoint-mobile-card{border:1px solid #3f597c;border-radius:8px;background:#223450;padding:10px;display:grid;gap:10px}.endpoint-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.endpoint-mobile-path{display:block;overflow-wrap:anywhere;font-size:14px;line-height:1.35}.endpoint-mobile-auth{flex-wrap:wrap}.endpoint-mobile-actions{display:flex;gap:8px;flex-wrap:wrap}.endpoint-group-row td{background:transparent;padding-top:9px;padding-bottom:16px;padding-left:0;border-top:0;border-bottom:1px solid #2b3e5b}.endpoint-route-row td:first-child{border-left:1px solid #2b3e5b}.endpoint-route-row td:last-child{border-right:1px solid #2b3e5b}.endpoint-group-spacer td{padding:0;height:18px;border:0;background:transparent}.endpoint-group-head{display:flex;align-items:center;gap:10px}.endpoint-group-segment{font-size:14px;color:#8abd4c;letter-spacing:0;line-height:1.2}.endpoint-group-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;border-radius:999px;padding:0 7px;background:#2d4464;color:#b9cce6;font-size:11px;font-weight:600}.http-method-badge{min-width:72px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:0 9px;font-size:11px;font-weight:700;border:1px solid transparent;text-transform:uppercase}.http-method-badge.method-get{background:#284f8f;border-color:#3f6fb9;color:#d8e8ff}.http-method-badge.method-post{background:#1f5a40;border-color:#2d7b56;color:#d8ffec}.http-method-badge.method-put{background:#664423;border-color:#8b5f33;color:#ffe8cf}.http-method-badge.method-delete{background:#6a2e37;border-color:#94434f;color:#ffe0e4}.http-method-badge.method-patch{background:#5a3f79;border-color:#7c58a2;color:#f0e2ff}.http-method-badge.method-head{background:#2b5d61;border-color:#3f8187;color:#dafdff}.http-method-badge.method-options{background:#3c4150;border-color:#596277;color:#e7ecf6}.http-method-badge.method-other{background:#3b4459;border-color:#596582;color:#e1e7f4}.endpoint-path-cell{max-width:420px;overflow:hidden;text-overflow:ellipsis;color:#bccfe3}.endpoint-auth{display:inline-flex;align-items:center;gap:6px}.endpoint-lock-chip{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #4d6487;border-radius:6px;background:#2a3f5f;font-size:13px;line-height:1}.endpoint-auth-icons{display:inline-flex;align-items:center;gap:4px}.endpoint-auth-icon{min-width:28px;height:24px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #4d6487;border-radius:6px;background:#2a3f5f;color:#dce7f8;font-size:11px;font-weight:700;line-height:1}.endpoint-details-actions{gap:10px}.endpoint-details-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.endpoint-details-main{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.endpoint-details-path{margin:0;font-size:22px;font-weight:700;color:#edf3ff}.endpoint-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.endpoint-value-break{display:block;overflow-wrap:anywhere}.endpoint-copy-link{width:auto;max-width:100%;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;padding:4px 6px;margin:0 -6px;display:inline-flex;align-items:flex-start;gap:8px;text-align:left}.endpoint-copy-value{display:block;flex:0 1 auto;overflow-wrap:anywhere}.endpoint-copy-icon{width:16px;height:16px;flex:0 0 16px;stroke:#9fd2ff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .14s ease}.endpoint-copy-link:hover .endpoint-copy-icon,.endpoint-copy-link:focus-visible .endpoint-copy-icon{opacity:1}.endpoint-copy-link:not(:disabled):hover .endpoint-copy-value,.endpoint-copy-link:not(:disabled):focus-visible .endpoint-copy-value{color:#c8e7ff}.endpoint-copy-link:disabled{cursor:default}.endpoint-auth-panel{max-width:920px}.endpoint-auth-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.endpoint-auth-summary{margin-top:0}.icon-action-svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.panel{background:#1e2d44;border:1px solid #425c7f;border-radius:8px;padding:14px}.panel h3{margin-bottom:10px}.flag-list{display:grid;gap:8px}.flag-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.method-bars{display:grid;gap:10px}.method-row{display:grid;gap:5px}.method-head{display:flex;justify-content:space-between;align-items:center;font-size:13px}.bar-track{width:100%;height:8px;background:#314967;border-radius:999px;overflow:hidden}.content input,.content textarea,.content select{border:1px solid #4a6487;background:#223450;color:#e3edff}.bar-fill{height:100%;background:linear-gradient(90deg,#2f66d8,#25a57c)}.toasts{position:fixed;right:16px;top:16px;display:grid;gap:8px;z-index:1000;pointer-events:none}.toast{min-width:220px;max-width:360px;padding:10px 12px;border-radius:8px;color:#fff;box-shadow:0 12px 26px #0b142461;border:1px solid rgba(255,255,255,.16);pointer-events:auto;cursor:pointer}.toast.success{background:#217048}.toast.error{background:#9a3737}.toast-enter-active,.toast-leave-active{transition:opacity .2s ease,transform .2s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translateY(8px) scale(.98)}.toast-move{transition:transform .2s ease}.page-fade-slide-enter-active,.page-fade-slide-leave-active{transition:opacity .16s ease,transform .16s ease}.page-fade-slide-enter-from,.page-fade-slide-leave-to{opacity:0;transform:translateY(4px)}@media(max-width:1024px){.layout{grid-template-columns:1fr}.sidebar{display:block;position:fixed;left:0;top:0;bottom:0;width:min(88vw,340px);transform:translate(-100%);transition:transform .18s ease;z-index:40;box-shadow:0 16px 32px #00000059}.sidebar.mobile-open{transform:translate(0)}.sidebar-resize{display:none}.sidebar-overlay{display:block;position:fixed;inset:0;border:0;padding:0;background:#09101f73;z-index:30}.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center}.content{grid-template-rows:58px 1fr}.topbar{padding:0 14px}.page{padding:16px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.endpoint-summary-grid{grid-template-columns:1fr}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.endpoints-filter-input{width:100%}.endpoints-filter-select{min-width:0;flex:1 1 180px}}@media(max-width:768px){.topbar-title{font-size:15px}.user-trigger{padding:7px 8px}.user-name,.user-role{display:none}.page-header{flex-wrap:wrap;gap:8px}.page-top-actions{justify-content:flex-start}.summary-grid{grid-template-columns:1fr;padding:12px}.dashboard-kpis{grid-template-columns:1fr}.kpi-card,.panel{padding:12px}.endpoint-details-hero{flex-direction:column;align-items:flex-start}.endpoint-details-path{font-size:18px;overflow-wrap:anywhere}.endpoints-filters{gap:6px}.endpoints-filter-input,.users-filter{width:100%}.endpoints-filter-select{flex:1 1 100%}.auth-method-card-head,.field-inline{flex-direction:column;align-items:flex-start}.auth-basic-user-row{grid-template-columns:1fr}.auth-basic-user-row .danger-text-button{width:100%;min-height:40px}.users-table-wrap,.endpoints-table{display:none}.users-mobile-list,.endpoints-mobile-list{display:grid;gap:8px}}@media(max-width:560px){.sidebar{width:min(92vw,340px);padding:16px 12px}.content{grid-template-rows:54px 1fr}.topbar{padding:0 10px;gap:8px}.mobile-menu-button,.icon-action-button,.nav-icon-button{width:40px;height:40px}.primary-button,.secondary-button,.danger-button,.link-button,.danger-text-button{min-height:40px}.page{padding:12px;font-size:13px}.auth-type-toggle{gap:8px}.toasts{left:10px;right:10px;top:10px}.toast{min-width:0;max-width:100%}}
