:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142439;background:#f4f7fa}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:#142a48;color:#fff;padding:9vw 8vw;display:flex;flex-direction:column;justify-content:center}.brand-mark{width:45px;height:45px;background:#50ba9d;clip-path:polygon(0 0,70% 0,100% 30%,100% 100%,30% 100%,0 70%);margin-bottom:26px}.login-brand h1{font-size:clamp(36px,5vw,65px);letter-spacing:-.06em;line-height:1.05;margin:0 0 15px}.login-brand p{color:#a9c1d4;max-width:460px;line-height:1.7}.login-form-wrap{display:grid;place-items:center;padding:32px}.login-form{width:min(100%,380px)}.login-form small,.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:#53849a}.login-form h2{font-size:28px;letter-spacing:-.04em;margin:13px 0 28px}.login-form label,.editor label{display:block;font-size:12px;font-weight:700;color:#526780;margin-bottom:17px}.login-form input,.editor input,.editor textarea,.search{display:block;width:100%;border:1px solid #d4dfe7;border-radius:7px;background:#fff;padding:12px;margin-top:8px;color:#182b43;outline-color:#3b8b9e}.login-form button,.primary{background:#176f85;color:#fff;border:0;border-radius:7px;padding:12px 18px;font-weight:700}.login-form button{width:100%;margin-top:4px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.side{background:#142a48;color:#d5e2ea;display:flex;flex-direction:column;min-height:100vh}.side-brand{padding:28px 24px 23px;border-bottom:1px solid #2c4360;display:flex;align-items:center;gap:13px;color:#fff;font-size:20px;font-weight:800;letter-spacing:-.04em}.side-brand .brand-mark{width:27px;height:27px;margin:0}.side small{margin:27px 24px 10px;color:#7695a9;font-size:10px;font-weight:800;letter-spacing:.14em}.nav{display:grid;gap:2px;padding:0 11px}.nav button{border:0;background:transparent;color:#bdd0dc;text-align:left;padding:11px 14px;border-radius:6px;font-size:13px}.nav button:hover,.nav button.active{background:#284a67;color:#fff}.side-foot{margin-top:auto;padding:22px 24px;border-top:1px solid #2c4360;font-size:11px;color:#829fb0}.main{min-width:0}.top{height:69px;background:#fff;border-bottom:1px solid #e4ebf0;display:flex;justify-content:space-between;align-items:center;padding:0 36px}.top strong{font-size:14px}.top span{font-size:12px;color:#7190a1}.top button,.subtle{border:1px solid #d9e3e9;background:#fff;border-radius:6px;padding:8px 12px;color:#456075}.page{max-width:1440px;margin:auto;padding:34px 36px 60px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:25px}.page h1{font-size:29px;letter-spacing:-.045em;margin:5px 0 7px}.page-head p{color:#7d93a4;font-size:13px;margin:0}.badge{padding:8px 12px;background:#e8f6ef;color:#248561;border-radius:30px;font-size:11px;font-weight:750;white-space:nowrap}.badge.off{background:#fff2e1;color:#9f7023}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:24px}.stat{background:#fff;border:1px solid #e0e8ee;border-radius:9px;padding:20px}.stat small{display:block;color:#8298a8;font-size:11px;margin-bottom:14px}.stat strong{display:block;font-size:26px;letter-spacing:-.04em}.stat span{color:#9bb0bd;font-size:11px}.card{background:#fff;border:1px solid #e0e8ee;border-radius:9px;overflow:hidden}.card-head{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #e7edf2}.card-head h2{font-size:17px;margin:0}.card-head p{font-size:11px;color:#91a3af;margin:5px 0 0}.card-actions{display:flex;gap:8px;align-items:center}.search{width:230px;margin:0;padding:9px;font-size:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{color:#8094a3;text-transform:uppercase;letter-spacing:.06em;font-size:10px;text-align:left;background:#fafcfd;border-bottom:1px solid #e5edf1}th,td{padding:15px 22px;vertical-align:top}td{border-bottom:1px solid #edf1f4}tr:last-child td{border-bottom:0}td strong{display:block;font-size:12px}td small{display:block;color:#92a5b1;margin-top:4px}code{font:11px ui-monospace,Consolas,monospace;color:#55758c;overflow-wrap:anywhere}.row-actions{white-space:nowrap}.row-actions button,.link-button{border:0;background:none;color:#176f85;font-size:11px;font-weight:750;padding:5px;margin-right:6px}.row-actions .danger{color:#bd5360}.empty{padding:50px;color:#8da1af;text-align:center}.notice{padding:13px 16px;border-radius:7px;background:#fff2ee;color:#9c4b3d;border:1px solid #f0d2ca;margin-bottom:18px;font-size:12px}.detail{margin-top:18px;background:#fff;border:1px solid #dce7ed;border-radius:9px;padding:23px}.detail h2{margin:3px 0 15px;font-size:18px}.detail-head{display:flex;justify-content:space-between}.detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fa;border-radius:6px;padding:15px;font:11px/1.6 ui-monospace,Consolas,monospace;max-height:300px;overflow:auto}.nested{display:flex;gap:8px;margin:18px 0}.nested button{background:#eff5f7;color:#4c6c7f;border:0;border-radius:5px;padding:8px 11px;font-size:11px}.nested button.active{background:#d5eef0;color:#146f81}.nested-list{display:grid;gap:6px}.nested-row{display:flex;justify-content:space-between;align-items:center;padding:11px;border:1px solid #e7edf0;border-radius:5px;font-size:12px}.secret{padding:14px;border:1px solid #acd9c7;background:#effaf3;border-radius:6px;margin:15px 0}.secret code{display:block;margin:10px 0;color:#1a674c;font-size:13px}.overlay{position:fixed;inset:0;z-index:20;background:#0b2237aa;display:grid;place-items:center;padding:20px}.editor{width:min(100%,610px);max-height:90vh;overflow:auto;background:#fff;border-radius:10px;padding:25px;box-shadow:0 20px 65px #0003}.editor h2{margin:0 0 8px}.editor p{font-size:12px;color:#7990a0;line-height:1.5}.editor textarea{min-height:300px;font:12px/1.5 ui-monospace,Consolas,monospace;resize:vertical}.editor-actions{display:flex;justify-content:flex-end;gap:8px}.editor-actions button{padding:10px 14px}.muted{color:#8ca0af;font-size:12px}.toolbar-mobile{display:none}@media(max-width:900px){.shell{grid-template-columns:190px minmax(0,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.page{padding:24px}.top{padding:0 24px}}@media(max-width:640px){.login{grid-template-columns:1fr}.login-brand{min-height:220px;padding:32px}.login-brand h1{font-size:32px}.login-form-wrap{padding:32px}.shell{display:block}.side{min-height:0}.side-brand{padding:15px}.side small,.side-foot{display:none}.nav{display:flex;overflow:auto;padding:5px 12px 12px}.nav button{white-space:nowrap}.top{height:55px;padding:0 18px}.page{padding:18px}.page-head{flex-direction:column}.stats{gap:8px}.stat{padding:15px}.card-head{align-items:stretch;flex-direction:column}.card-actions{flex-wrap:wrap}.search{width:100%}table{min-width:650px}.badge{align-self:flex-start}}

/* Resource forms */
.editor{width:min(100%,760px);padding:0}.editor-heading{padding:27px 30px 12px;border-bottom:1px solid #e8edf1}.editor-heading h2{font-size:25px;letter-spacing:-.035em;margin:7px 0}.editor-heading p{margin:0 0 13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;padding:24px 30px}.form-grid .wide{grid-column:1/-1}.form-grid .field{min-width:0;margin:0 0 15px}.field small{display:block;margin-top:4px;font-weight:400;line-height:1.4;color:#8397a7}.editor input,.editor select,.editor textarea{font:inherit;width:100%;border:1px solid #d4dfe7;border-radius:7px;background:#fff;padding:10px 11px;margin-top:7px;color:#182b43;outline-color:#3b8b9e}.editor textarea{min-height:110px;font:12px/1.5 ui-monospace,Consolas,monospace}.editor select{min-height:40px}.check-field{display:flex!important;align-items:center;gap:10px;padding:9px 0;margin:0 0 12px!important;color:#324b60!important}.check-field input{width:17px;height:17px;margin:0;accent-color:#176f85}.form-section{border-top:1px solid #e8edf1;padding-top:18px;margin:6px 0 13px}.form-section strong{display:block;color:#20394c}.form-section span{font-size:11px;color:#8397a7}.config-list{display:grid;gap:8px}.config-row{display:grid;grid-template-columns:minmax(0,1fr) 105px minmax(0,1.25fr) 38px;gap:7px}.config-row input,.config-row select{margin:0}.config-row button{padding:5px;font-size:21px}.add-setting{justify-self:start;margin:5px 0 18px}.editor-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #e8edf1;padding:18px 30px}.editor>.notice{margin:14px 30px 0}@media(max-width:640px){.editor{max-height:95vh}.editor-heading,.form-grid,.editor-actions{padding-left:18px;padding-right:18px}.form-grid{grid-template-columns:1fr}.form-grid>*{grid-column:1/-1}.config-row{grid-template-columns:1fr 96px 34px}.config-row input[name^="config_value_"]{grid-column:1/3}.config-row button{grid-column:3;grid-row:1/3}}

/* Gateway operations */
.top-controls{display:flex;align-items:center;gap:14px}.top-controls select{max-width:190px;border:1px solid #d8e3e9;background:#fff;color:#284459;border-radius:6px;padding:7px 9px;font-size:12px}.management-card{margin-top:18px}.management-list{padding:6px 22px}.management-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 2px;border-bottom:1px solid #e8edf1;font-size:12px}.management-row:last-child{border-bottom:0}.management-row strong{display:block;color:#263f53;font-size:13px}.management-row code,.management-row small{display:block;margin-top:5px;color:#8197a6}.management-row>div:last-child{display:flex;gap:7px;align-items:center}.inline-form{padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}.inline-form label{display:block;color:#526780;font-size:12px;font-weight:700}.inline-form input,.inline-form select,.inline-form textarea{display:block;width:100%;border:1px solid #d4dfe7;border-radius:7px;padding:11px;margin-top:7px;color:#182b43;background:#fff;outline-color:#3b8b9e}.inline-form label:has(textarea),.inline-form label:has(input[type=file]),.inline-form .field-note{grid-column:1/-1}.inline-form textarea{font:12px/1.5 ui-monospace,Consolas,monospace}.inline-form button{justify-self:start}.inline-form .field-note{margin:0;color:#8a9dab;font-size:11px;line-height:1.5}.health-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:30px 25px}.health-grid>div:not(:first-child){display:grid;gap:5px}.health-grid small{color:#90a4b1;font-size:10px;font-weight:800;letter-spacing:.08em}.health-grid strong{font-size:14px}.health-indicator{display:grid;place-items:center;border-radius:7px;font-weight:800}.health-indicator.healthy{background:#e4f5ee;color:#247759}.health-indicator.unhealthy{background:#fff0ed;color:#ac564c}.pad{padding:20px}.import-result{padding:14px 24px;color:#1c7c5c;background:#eff9f3;font-size:12px}.management-card .notice{margin:15px 0}.inline-form:has(#restore-confirmation){display:block}.inline-form:has(#restore-confirmation) input{max-width:320px;margin:15px 0}.inline-form:has(#restore-confirmation) button{display:block}@media(max-width:720px){.top-controls{gap:8px}.top-controls span{display:none}.top-controls select{max-width:135px}.management-row{align-items:flex-start;flex-direction:column}.management-row>div:last-child{flex-wrap:wrap}.inline-form{grid-template-columns:1fr}.inline-form>*{grid-column:1}.health-grid{grid-template-columns:repeat(2,1fr)}}
