:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183148;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% 0%,#e8f4f1 0,transparent 34%),radial-gradient(circle at 88% 8%,#e9efff 0,transparent 28%),#f5f7fb;color:#183148}a{color:#256d71;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{max-width:1180px;margin:auto;padding:0 24px}.topbar{background:#fffdfd;border-bottom:1px solid #e6ecf0;position:sticky;top:0;z-index:10;box-shadow:0 4px 22px #162b3f08}.topbar-inner{min-height:76px;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:12px;color:#163449;font-weight:800;letter-spacing:-.035em;font-size:18px;white-space:nowrap}.brand:hover{text-decoration:none}.brand-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#1e8784,#26566e);color:#fff;box-shadow:0 6px 15px #1c858c33;font-size:16px}.topnav{display:flex;align-items:center;gap:6px;margin-left:auto}.topnav a{color:#5c7082;padding:10px 13px;border-radius:9px;font-weight:650;font-size:14px}.topnav a.active,.topnav a:hover{color:#135f65;background:#e9f5f3;text-decoration:none}.logout{margin:0}.logout button{background:#f3f6f8;color:#476074;border:1px solid #e5ebef;padding:9px 14px;border-radius:9px;font-size:13px;font-weight:700}.logout button:hover{background:#e8eef2}.page{padding-top:39px;padding-bottom:72px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#2c837e;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800}.eyebrow:before{content:"";width:7px;height:7px;border-radius:100%;background:#41bdac;box-shadow:0 0 0 4px #dff4ef}.page-title{font-size:clamp(30px,4vw,46px);line-height:1.14;letter-spacing:-.045em;margin:12px 0 12px;color:#142e43}.lead{color:#668092;max-width:700px;font-size:16px;line-height:1.6;margin:0}.hero{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.hero-aside{display:flex;align-items:center;gap:10px;color:#577182;font-size:13px;background:#fff;border:1px solid #e4ecf1;padding:10px 14px;border-radius:11px;box-shadow:0 5px 18px #18314807;white-space:nowrap}.pulse{width:8px;height:8px;background:#32aa83;box-shadow:0 0 0 4px #e0f4e9;border-radius:50%}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:34px 0 16px}.section-head h2{margin:0;color:#1a3549;font-size:20px;letter-spacing:-.025em}.section-head p{margin:5px 0 0;color:#7d91a0;font-size:13px}.section-link{font-size:13px;font-weight:750}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{background:#fff;border:1px solid #e3eaf0;border-radius:15px;padding:18px 20px;box-shadow:0 5px 22px #18314808}.metric .label{color:#7b8e9a;font-size:13px;font-weight:650}.metric strong{display:block;margin-top:6px;color:#193a4f;font-size:30px;letter-spacing:-.05em;line-height:1.1}.metric small{display:block;color:#9aabb5;margin-top:6px;font-size:12px}.connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.connection-card{background:#fff;border:1px solid #e2eaf0;border-radius:18px;padding:24px;box-shadow:0 8px 28px #132e4409;transition:transform .18s,box-shadow .18s,border-color .18s}.connection-card:hover{transform:translateY(-3px);box-shadow:0 17px 36px #132e4412;border-color:#cbdde2}.card-top{display:flex;justify-content:space-between;align-items:start;gap:16px}.service-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;font-size:15px;font-weight:850;letter-spacing:-.05em}.service-icon.kiot{color:#096c68;background:#dff4ee}.service-icon.zalo{color:#255fb7;background:#e5edff}.service-icon.webhook{color:#775bb2;background:#efeafb}.status-badge{border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}.status-badge.ok{background:#e6f6ec;color:#258150}.status-badge.warn{background:#fff2df;color:#a16611}.status-badge.off{background:#eff2f5;color:#708391}.connection-card h3{font-size:21px;margin:18px 0 5px;letter-spacing:-.03em}.connection-card p{color:#738796;font-size:13px;line-height:1.5;margin:0;min-height:40px}.connection-meta{display:grid;gap:12px;border-top:1px solid #edf1f4;margin-top:22px;padding-top:18px}.connection-meta div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.connection-meta span{color:#8a9ca9}.connection-meta strong{color:#304c60;font-weight:700;max-width:65%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-footer{border-top:1px solid #edf1f4;margin-top:20px;padding-top:17px;display:flex;justify-content:space-between;align-items:center}.card-footer a{font-size:13px;font-weight:800}.arrow{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#eef6f5;color:#287c78;font-size:18px}.branch-panel,.feature-panel,.detail-card{background:#fff;border:1px solid #e2eaf0;border-radius:18px;box-shadow:0 8px 28px #132e4409}.branch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;padding:6px 22px}.branch-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf1f4;padding:15px 1px;min-width:0}.branch-row:nth-last-child(-n+2){border-bottom:0}.branch-avatar{width:35px;height:35px;border-radius:10px;background:#eef5f5;color:#327477;display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}.branch-label{min-width:0;flex:1}.branch-label strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.branch-label small{display:block;color:#96a7b2;font-size:11px;margin-top:2px}.branch-state{font-size:11px;font-weight:750;white-space:nowrap;color:#8a9ca8}.branch-state.on{color:#258150}.branch-row>a{margin-left:6px;font-size:12px;font-weight:750;white-space:nowrap}.bottom-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-top:16px}.feature-panel{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.feature-panel h3{margin:0 0 6px;font-size:16px;letter-spacing:-.02em}.feature-panel p{color:#8397a4;font-size:13px;line-height:1.5;margin:0}.feature-panel a{font-size:13px;font-weight:800;white-space:nowrap}.notice{padding:14px 17px;border-radius:11px;background:#e8f7ed;color:#236c48;border:1px solid #cfebd8;margin-bottom:20px;font-size:14px}.notice.error{background:#fff0ef;color:#a7443e;border-color:#f6d5d0}.empty{padding:28px;color:#79909f;font-size:14px}.breadcrumbs{display:flex;align-items:center;gap:10px;color:#90a2ae;font-size:13px;font-weight:650;margin-bottom:24px}.breadcrumbs a{color:#718998}.detail-hero{margin-bottom:24px}.detail-card{max-width:760px;padding:30px}.detail-card-head{display:flex;align-items:center;gap:15px;border-bottom:1px solid #edf1f4;padding-bottom:24px;margin-bottom:24px}.detail-card-head h2{margin:0;font-size:20px}.detail-card-head p{margin:5px 0 0;font-size:13px;color:#8195a3}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.field{margin-bottom:19px}.field.full{grid-column:1/-1}.field label,.check-line{display:block;font-size:13px;font-weight:750;color:#355269;margin-bottom:8px}.field input{width:100%;border:1px solid #dbe5eb;border-radius:10px;background:#fbfcfd;padding:12px 13px;outline:none;color:#193a4f;transition:border .15s,box-shadow .15s}.field input:focus{border-color:#60aca7;box-shadow:0 0 0 3px #dff4f1}.field .help{color:#8da0ad;font-size:12px;line-height:1.5;margin:6px 0 0}.check-line{display:flex;align-items:center;gap:9px;font-weight:600}.check-line input{accent-color:#27877f;width:16px;height:16px}.form-actions{border-top:1px solid #edf1f4;padding-top:22px;margin-top:8px;display:flex;align-items:center;gap:15px}.primary-btn{background:#1d7777;border:1px solid #1d7777;color:#fff;border-radius:10px;padding:11px 17px;font-size:13px;font-weight:800;box-shadow:0 6px 14px #1d777727}.primary-btn:hover{background:#155f61}.form-actions small{color:#92a4af;font-size:12px}.info-box{max-width:760px;background:#eef7f6;border:1px solid #d5eae6;color:#49746f;border-radius:13px;padding:16px 18px;font-size:13px;line-height:1.6;margin-top:16px}.info-box a{font-weight:800}.footer-note{font-size:12px;color:#9aabb6;margin-top:34px}.footer-note a{color:#6c8994}@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topnav{gap:0}.topnav a{padding:9px}.hero-aside{display:none}}@media(max-width:680px){.shell{padding:0 16px}.topbar-inner{min-height:66px;gap:10px}.brand{font-size:15px}.brand-symbol{width:33px;height:33px}.topnav a{font-size:12px;padding:8px}.topnav a:nth-child(2){display:none}.logout button{font-size:12px;padding:8px}.page{padding-top:26px}.hero{margin-bottom:20px}.connection-grid,.bottom-grid,.branch-list{grid-template-columns:1fr}.metric-grid{gap:9px}.metric{padding:14px}.metric strong{font-size:25px}.branch-row:nth-last-child(2){border-bottom:1px solid #edf1f4}.feature-panel{align-items:start;flex-direction:column}.detail-card{padding:21px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:680px){.topbar-inner{flex-wrap:wrap;min-height:0;padding-top:10px;padding-bottom:8px;gap:8px}.brand{flex:1}.logout{margin-left:auto}.topnav{order:3;width:100%;margin-left:0;border-top:1px solid #edf1f4;padding-top:6px;justify-content:space-between}.topnav a{flex:1;text-align:center;white-space:nowrap}.topnav a:nth-child(2){display:block}}
