:root {
  --brand-deep:#214bb4;--brand:#2f8ff2;--brand-soft:#eaf4ff;--page:#f5f7fa;
  --ink:#17233d;--text:#53627a;--muted:#8b96a8;--line:#dfe4ec;--success:#20b26b;
  --warning:#f59a23;--danger:#f04452;--disabled:#a1a9b5;--card:#fff;
  --topbar:64px;--sidebar:248px;--radius:8px;
  font-family:"PingFang SC","Microsoft YaHei",Inter,system-ui,sans-serif;color:var(--text);
}
*{box-sizing:border-box}body{margin:0;background:var(--page);font-size:14px}button,input,select,textarea{font:inherit;color:inherit}
button,a{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 3px rgba(47,143,242,.22)}
.app-shell{min-height:100vh}.topbar{height:var(--topbar);position:fixed;inset:0 0 auto;z-index:30;display:flex;align-items:center;background:linear-gradient(105deg,var(--brand-deep),#2370d9 52%,#2495ed);color:#fff;box-shadow:0 1px 5px rgba(20,50,100,.22)}
.brand{width:var(--sidebar);height:100%;display:flex;gap:10px;align-items:center;padding:0 24px;text-decoration:none;color:#fff;font-weight:600;font-size:18px;white-space:nowrap}.brand-mark{width:38px;height:38px;border:3px solid rgba(255,255,255,.95);border-radius:50%;display:inline-grid;place-items:center;transform:rotate(-8deg)}.brand-mark span{font-size:19px;font-weight:800;transform:rotate(8deg)}
.topnav{height:100%;display:flex;align-items:stretch;gap:2px}.topnav a{position:relative;min-width:92px;display:grid;place-items:center;color:rgba(255,255,255,.72);text-decoration:none;font-size:15px}.topnav a:hover,.topnav a.active{color:#fff;background:rgba(255,255,255,.04)}.topnav a.active:after{content:"";position:absolute;bottom:0;left:22px;right:22px;height:3px;background:#fff;border-radius:3px 3px 0 0}
.top-actions{margin-left:auto;height:100%;display:flex;align-items:center;gap:12px;padding:0 20px}.icon-button,.user-button{border:0;background:transparent;color:#fff;cursor:pointer}.icon-button{font-size:24px}.platform-badge{color:var(--brand);background:#fff;border-radius:5px;padding:5px 9px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f1c8a5;color:#995b2e;font-weight:700}
.sidebar{position:fixed;top:var(--topbar);bottom:0;left:0;width:var(--sidebar);z-index:20;background:#fff;border-right:1px solid #edf0f4;display:flex;flex-direction:column;transition:width .2s}.sidebar-title{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #edf0f4;color:#252b36;font-size:19px;font-weight:600}.sidebar-title button{border:0;background:transparent;font-size:20px;cursor:pointer}.side-navigation{padding:16px 12px;overflow:auto}.side-group{margin-bottom:12px}.side-group-title{width:100%;height:42px;padding:0 12px;border:0;border-radius:6px;background:transparent;display:flex;align-items:center;gap:9px;color:#5e6879;font:inherit;font-weight:600;cursor:pointer;text-align:left}.side-group-title:hover{background:#f7f9fc}.side-group-title .chevron{margin-left:auto;color:#a6afbd;transition:transform .2s}.side-group.collapsed .side-group-title .chevron{transform:rotate(180deg)}.side-group-links{display:grid;overflow:hidden}.side-group.collapsed .side-group-links{display:none}.side-link{height:40px;display:flex;align-items:center;padding:0 18px 0 36px;border-radius:6px;color:#5f6877;text-decoration:none;margin:2px 0}.side-link:hover{background:#f6f9fd}.side-link.active{background:var(--brand-soft);color:var(--brand);font-weight:600}.sidebar-foot{margin-top:auto;padding:18px 24px;color:var(--muted);border-top:1px solid #edf0f4}.status-dot{display:inline-block;width:8px;height:8px;background:var(--success);border-radius:50%;margin-right:8px}
.workspace{margin-left:var(--sidebar);padding:84px 20px 28px;min-height:100vh;transition:margin .2s}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.page-head h1{margin:0;color:var(--ink);font-size:22px}.page-head p{margin:6px 0 0;color:var(--muted)}.page-updated{font-size:12px;color:var(--muted)}
.card{background:var(--card);border:1px solid #edf0f4;border-radius:var(--radius);box-shadow:0 2px 8px rgba(24,47,82,.035)}.filter-card{padding:18px 20px;margin-bottom:16px;display:flex;align-items:end;gap:16px;flex-wrap:wrap}.field{display:grid;gap:7px;min-width:200px}.field label{display:flex;align-items:baseline;gap:7px;min-width:0;color:#5a6578}.field-note{min-width:0;color:#9aa5b5;font-size:12px;font-weight:400;line-height:1.35}.field input,.field select,.modal-body input,.modal-body select,.modal-body textarea{height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px}.modal-body textarea{height:92px;padding:10px 12px;resize:vertical}.field input::placeholder,.modal-body input::placeholder,.modal-body textarea::placeholder{color:#b5bdc9}
.button{height:40px;border-radius:6px;padding:0 20px;border:1px solid var(--line);background:#fff;cursor:pointer}.button:hover{border-color:#aab6c7}.button.primary{color:#fff;background:var(--brand);border-color:var(--brand)}.button.primary:hover{background:#247fdd}.button.danger{color:#fff;background:var(--danger);border-color:var(--danger)}.button.text{height:auto;padding:0;border:0;background:transparent;color:var(--brand)}.button.text.danger-text{color:var(--danger)}.button:disabled{cursor:not-allowed;opacity:.48}.wide{width:100%}
.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:14px;margin-bottom:16px}.metric-card{padding:18px 18px 16px;position:relative;overflow:hidden}.metric-card:before{content:"";position:absolute;width:74px;height:74px;border-radius:50%;right:-22px;top:-25px;background:var(--brand-soft)}.metric-label{color:var(--muted);margin-bottom:8px}.metric-value{font-size:28px;line-height:1.2;color:var(--ink);font-weight:650}.metric-note{margin-top:8px;font-size:12px;color:var(--muted)}.metric-note .bad{color:var(--danger)}
.dashboard-grid{display:grid;grid-template-columns:minmax(600px,1.7fr) minmax(340px,1fr);gap:16px}.card-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #edf0f4}.card-head h2{font-size:16px;color:var(--ink);margin:0}.card-body{padding:16px 18px}.load-list{display:grid;gap:14px}.load-item-head{display:flex;justify-content:space-between;margin-bottom:7px}.progress{height:8px;border-radius:99px;background:#edf2f8;overflow:hidden}.progress span{height:100%;display:block;background:linear-gradient(90deg,#398ee8,#55b1ff);border-radius:99px}.event-list{display:grid}.event-item{position:relative;padding:2px 0 15px 22px;border-left:1px solid #e2e7ee}.event-item:before{content:"";position:absolute;left:-4px;top:4px;width:7px;height:7px;background:var(--brand);border-radius:50%}.event-item:last-child{border-left-color:transparent}.event-title{color:var(--ink);font-weight:600}.event-meta{font-size:12px;color:var(--muted);margin-top:4px}
.table-card{overflow:hidden}.table-toolbar{min-height:62px;padding:11px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf0f4}.table-toolbar .spacer{margin-left:auto}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.data-table th{height:48px;padding:0 14px;text-align:left;background:#f3f7ff;color:#5b6780;font-weight:600;border-bottom:1px solid #e6ebf2}.data-table td{height:58px;padding:0 14px;background:#fff;border-bottom:1px solid #edf0f4;color:#596477}.data-table tr:hover td{background:#fafcff}.data-table .sticky-action{position:sticky;right:0;width:1%;min-width:max-content;white-space:nowrap;box-shadow:-10px 0 14px -14px rgba(35,55,85,.65)}.data-table th.sticky-action{z-index:3;background:#f3f7ff}.data-table td.sticky-action{z-index:2;background:#fff}.data-table tr:hover td.sticky-action{background:#fafcff}.data-table .primary-cell{color:var(--ink);font-weight:600}.data-table .muted{color:var(--muted);font-size:12px}.data-table .actions{display:flex;gap:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.empty{padding:54px 20px;text-align:center;color:var(--muted)}
.tag{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;font-size:12px;background:#f0f2f5;color:#727d8c}.tag.success{color:#168b54;background:#e8f8f0}.tag.info{color:#2479ce;background:#eaf4ff}.tag.warning{color:#b96c0a;background:#fff4df}.tag.danger{color:#d63c49;background:#ffedef}.tag.key{color:#7a55c4;background:#f3edff}.tabs{height:58px;display:flex;gap:32px;align-items:end;padding:0 20px;border-bottom:1px solid #e4e8ef}.tab{height:58px;padding:0 4px;border:0;border-bottom:3px solid transparent;background:transparent;cursor:pointer;color:#596477;font-weight:600}.tab.active{color:var(--brand);border-bottom-color:var(--brand)}
.notice{margin-bottom:16px;border:1px solid #9dcfff;background:#eef8ff;border-radius:6px;padding:13px 16px;color:#52657a}.notice strong{color:#245a90}.notice ul{margin:7px 0 0;padding-left:20px}.notice li{margin:3px 0}
.modal-layer{position:fixed;inset:0;z-index:100;background:rgba(21,31,45,.48);display:grid;place-items:center;padding:22px}.hidden{display:none!important}.modal{width:min(720px,calc(100vw - 36px));max-height:calc(100vh - 44px);background:#fff;border-radius:10px;box-shadow:0 18px 70px rgba(0,0,0,.25);display:flex;flex-direction:column}.modal-header{height:68px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ebf0}.modal-header h2{font-size:20px;margin:0;color:var(--ink)}.modal-close{font-size:30px;color:#8a929e;border:0;background:transparent;cursor:pointer}.modal-body{padding:24px;overflow:auto}.modal-footer{padding:16px 24px;border-top:1px solid #edf0f4;display:flex;justify-content:flex-end;gap:12px}.modal-form{display:grid;gap:18px}.modal-form .field{min-width:0}.confirm-message{display:flex;gap:16px}.confirm-icon{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:grid;place-items:center;background:#fff0d8;color:#ee8c00;font-size:24px}.confirm-message h3{margin:2px 0 8px;color:var(--ink);font-size:19px}.confirm-message p{margin:0;color:#68758b;line-height:1.7}.step-list{display:grid;gap:10px;margin-top:15px}.step{padding:10px 12px;border-radius:6px;background:#f5f7fa;display:flex;justify-content:space-between}
.modal-layer{position:fixed;inset:0;z-index:100;background:rgba(21,31,45,.48);display:grid;place-items:center;padding:22px}.hidden{display:none!important}.modal{width:min(820px,calc(100vw - 36px));max-height:calc(100vh - 44px);background:#fff;border-radius:10px;box-shadow:0 18px 70px rgba(0,0,0,.25);display:flex;flex-direction:column}.modal-header{height:68px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ebf0}.modal-header h2{font-size:20px;margin:0;color:var(--ink)}.modal-close{font-size:30px;color:#8a929e;border:0;background:transparent;cursor:pointer}.modal-body{padding:24px;overflow:auto}.modal-footer{padding:16px 24px;border-top:1px solid #edf0f4;display:flex;justify-content:flex-end;gap:12px}.modal-form{display:grid;gap:18px}.modal-form.two-column{grid-template-columns:1fr 1fr}.modal-form .field{min-width:0}.modal-form .full-row{grid-column:1/-1}.required{color:var(--danger)}.service-options{display:grid;gap:10px}.service-option{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);border-radius:7px;background:#fbfdff;cursor:pointer}.service-option input{width:18px!important;height:18px!important;flex:0 0 18px;margin:2px 0 0;padding:0}.service-option strong,.service-option small{display:block}.service-option strong{color:var(--ink)}.service-option small{margin-top:4px;color:var(--muted);line-height:1.5}.confirm-message{display:flex;gap:16px}.confirm-icon{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:grid;place-items:center;background:#fff0d8;color:#ee8c00;font-size:24px}.confirm-message h3{margin:2px 0 8px;color:var(--ink);font-size:19px}.confirm-message p{margin:0;color:#68758b;line-height:1.7}.step-list{display:grid;gap:10px;margin-top:15px}.step{padding:10px 12px;border-radius:6px;background:#f5f7fa;display:flex;justify-content:space-between}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e8edf4;border:1px solid #e8edf4;border-radius:7px;overflow:hidden}.detail-grid>div{background:#fff;padding:14px 16px;min-width:0}.detail-grid span,.detail-grid small{display:block;color:#8490a3;font-size:12px}.detail-grid strong{display:block;margin-top:6px;color:var(--ink);font-size:14px;overflow-wrap:anywhere}.detail-grid small{margin-top:5px}.section-heading{margin:24px 0 12px;color:var(--ink);font-size:16px}
.license-uploader{display:flex;align-items:center;gap:18px;min-height:126px;padding:14px;border:1px dashed #b7c7da;border-radius:8px;background:#fbfdff}.license-upload-actions{display:grid;justify-items:start;gap:8px}.license-upload-actions small{color:var(--muted);font-size:12px}.license-placeholder{width:138px;height:98px;border:1px dashed #c9d4e2;border-radius:7px;background:#fff;display:grid;place-items:center;align-content:center;gap:5px;color:#8a98aa}.license-placeholder b{font-size:28px;font-weight:400}.license-placeholder span{font-size:11px}.license-uploaded{display:flex;align-items:center;gap:13px}.license-uploaded strong,.license-uploaded small{display:block}.license-uploaded strong{color:var(--ink)}.license-uploaded small{margin-top:5px;color:var(--muted);font-size:12px}.license-thumb{margin-top:8px;padding:0;border:0;background:transparent;color:var(--brand);cursor:pointer;text-align:left}.license-thumb:disabled{cursor:wait;opacity:.65}.license-thumb img{display:block;width:84px;height:58px;object-fit:cover;border:1px solid #dce4ee;border-radius:5px;background:#eef2f7}.license-thumb span{display:block;margin-top:4px;font-size:11px}.license-empty{margin-top:7px;font-size:11px}.license-lightbox{position:fixed;inset:0;z-index:260;display:grid;place-items:center;padding:28px;background:rgba(10,18,30,.78)}.license-lightbox-panel{position:relative;max-width:min(1100px,94vw);max-height:92vh;padding:16px 16px 12px;border-radius:10px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.4)}.license-lightbox-panel img{display:block;max-width:calc(94vw - 32px);max-height:calc(92vh - 74px);object-fit:contain}.license-lightbox-panel button{position:absolute;right:-12px;top:-12px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#526176;font-size:26px;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.25)}.license-lightbox-panel p{margin:9px 0 0;text-align:center;color:var(--muted);font-size:12px}
.app-shell.is-locked{display:none}.auth-layer{position:fixed;inset:0;z-index:100;background:#eaf4ff;overflow:auto}.login-page{position:relative;display:grid;grid-template-columns:minmax(520px,1.25fr) minmax(420px,.75fr);min-height:100vh;overflow:hidden;background-color:#eaf4ff;background-image:linear-gradient(rgba(107,163,224,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(107,163,224,.12) 1px,transparent 1px),radial-gradient(circle at 75% 45%,rgba(255,255,255,.96),rgba(234,244,255,.4) 38%,transparent 62%);background-size:64px 64px,64px 64px,auto}.login-intro{position:relative;padding:8vh 7vw 9vh;display:flex;flex-direction:column;z-index:1}.login-logo{display:flex;align-items:center;gap:12px;color:#1d3357}.login-logo-mark{width:52px;height:52px;border-radius:7px;display:grid;place-items:center;background:linear-gradient(145deg,#2454c8,#2e94f1);color:#fff;font-size:27px;font-weight:800;box-shadow:0 7px 18px rgba(37,103,207,.22)}.login-logo strong{display:block;font-size:21px}.login-logo small{display:block;margin-top:3px;font-size:10px;letter-spacing:1.5px;color:#70819a}.login-copy{margin:auto 0;padding:5vh 0 12vh;max-width:680px}.login-kicker{display:inline-flex;align-items:center;gap:10px;padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.82);box-shadow:0 7px 22px rgba(68,119,180,.09);color:#356691;font-weight:600}.login-kicker i,.login-safe i{width:8px;height:8px;border-radius:50%;background:#3fa1f4}.login-copy h1{margin:28px 0 14px;font-size:clamp(38px,4vw,58px);line-height:1.18;letter-spacing:1px;color:#15345f}.login-copy p{max-width:650px;margin:0;color:#617693;font-size:17px;line-height:1.9;font-weight:500}.login-features{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}.login-features span{min-width:112px;text-align:center;padding:12px 20px;border-radius:999px;background:rgba(255,255,255,.84);box-shadow:0 8px 25px rgba(54,105,164,.08);color:#416889;font-weight:600}.login-features span:before{content:"";display:inline-block;width:9px;height:9px;margin-right:10px;border-radius:3px;background:#55b6ed}.login-art{position:absolute;left:-9vw;bottom:-25vh;width:44vw;height:44vw;border:54px solid rgba(120,182,236,.11);border-radius:38%;transform:rotate(-18deg);display:grid;place-items:center;color:rgba(103,169,229,.1);font-size:13vw;font-weight:800}.login-panel{display:grid;place-items:center;padding:6vh 7vw 9vh 3vw;z-index:2}.auth-card{width:min(480px,100%);padding:42px 46px 34px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:0 28px 75px rgba(56,103,164,.2)}.login-card-head{text-align:center;margin-bottom:30px}.login-card-head h2{margin:0;color:#17345c;font-size:28px}.login-card-head p{margin:10px 0 0;color:#8292a7}.login-device{float:right;color:#5b6a7e;font-size:24px}.auth-card>label{display:block;margin:17px 0 8px;color:#4e6078;font-weight:600}.login-input{height:52px;border:1px solid #d8e2ee;border-radius:10px;background:#fff;display:flex;align-items:center;padding:0 15px;transition:.2s}.login-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(47,143,242,.12)}.login-input>span{width:28px;color:#94a4b8;font-size:18px}.login-input input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;font-size:15px}.login-input input::placeholder{color:#b2bdca}.login-input button{border:0;background:transparent;color:#93a1b2;cursor:pointer}.auth-error{min-height:36px;padding-top:10px;color:var(--danger);font-size:13px}.login-submit{width:100%;height:52px;border:0;border-radius:10px;background:linear-gradient(90deg,#2c84e8,#329cf3);color:#fff;font-size:17px;font-weight:600;cursor:pointer;box-shadow:0 9px 20px rgba(46,142,237,.22)}.login-submit:hover{filter:brightness(.97)}.login-submit:disabled{cursor:wait;opacity:.7}.login-safe{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:23px;color:#91a0b2;font-size:12px}.login-safe i{background:#38b77b}.login-footer{position:absolute;left:0;right:0;bottom:4vh;text-align:center;color:#8090a5;font-size:12px;z-index:3}.toast-stack{position:fixed;right:18px;top:82px;z-index:200;display:grid;gap:10px}.toast{min-width:280px;padding:13px 16px;border-radius:7px;background:#fff;border-left:4px solid var(--brand);box-shadow:0 8px 30px rgba(23,35,61,.16)}.toast.error{border-color:var(--danger)}
body.sidebar-collapsed{--sidebar:72px}body.sidebar-collapsed .brand-name,body.sidebar-collapsed .sidebar-title span,body.sidebar-collapsed .side-group-title span:not(.group-icon),body.sidebar-collapsed .side-group-title .chevron,body.sidebar-collapsed .side-link span,body.sidebar-collapsed .sidebar-foot{display:none}body.sidebar-collapsed .brand{padding:0 17px}body.sidebar-collapsed .side-link{padding:0;justify-content:center}body.sidebar-collapsed .sidebar-title{justify-content:center;padding:0}
@media(max-width:1280px){.metric-grid{grid-template-columns:repeat(3,1fr)}.topnav a{min-width:76px}.dashboard-grid{grid-template-columns:1fr}.brand{width:220px}:root{--sidebar:220px}}
@media(max-width:900px){:root{--sidebar:72px}.brand{width:72px;padding:0 17px}.brand-name,.sidebar-title span,.side-group-title span:not(.group-icon),.side-group-title .chevron,.side-link span,.sidebar-foot{display:none}.topnav a{min-width:64px;font-size:13px}.top-actions .user-button,.platform-badge{display:none}.sidebar-title{justify-content:center;padding:0}.side-link{padding:0;justify-content:center}.metric-grid{grid-template-columns:repeat(2,1fr)}.workspace{padding-left:14px;padding-right:14px}.filter-card{align-items:stretch}.field{min-width:100%}}
@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-intro{padding:34px 26px 0;min-height:240px}.login-copy{padding:28px 0 16px}.login-copy h1{font-size:34px;margin:18px 0 8px}.login-copy p{font-size:14px;line-height:1.65}.login-features{display:none}.login-art{display:none}.login-panel{padding:22px 20px 80px;align-items:start}.auth-card{padding:30px 24px;border-radius:20px}.login-footer{bottom:22px}:root{--sidebar:72px}.brand{width:72px;padding:0 17px}.brand-name,.sidebar-title span,.side-group-title span:not(.group-icon),.side-group-title .chevron,.side-link span,.sidebar-foot{display:none}.topnav a{min-width:64px;font-size:13px}.top-actions .user-button,.platform-badge{display:none}.sidebar-title{justify-content:center;padding:0}.side-link{padding:0;justify-content:center}.metric-grid{grid-template-columns:repeat(2,1fr)}.workspace{padding-left:14px;padding-right:14px}.filter-card{align-items:stretch}.field{min-width:100%}}
@media(max-width:720px){.detail-grid{grid-template-columns:1fr}}

.brand-logo,.login-logo-mark{display:inline-grid;place-items:center;overflow:hidden;background:#fff}.brand-logo{width:38px;height:38px;border-radius:8px;box-shadow:0 3px 10px rgba(10,44,112,.18)}.brand-logo img,.login-logo-mark img{width:100%;height:100%;object-fit:cover;transform:scale(1.24)}.login-logo-mark{width:52px;height:52px;border-radius:9px;box-shadow:0 7px 18px rgba(37,103,207,.18)}

.quick-drill-card{overflow:hidden}.scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px;padding:18px 20px 0}.scenario-card{min-height:110px;display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;text-align:left;gap:5px 12px;padding:18px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.scenario-card:hover{border-color:#9dcfff;background:#fbfdff}.scenario-card.selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 2px rgba(47,143,242,.08)}.scenario-card>b{grid-row:1/3;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#e9f4ff;color:var(--brand);font-size:24px}.scenario-card>strong{align-self:end;color:var(--ink);font-size:16px}.scenario-card>span{align-self:start;color:var(--muted);font-size:12px;line-height:1.55}.quick-drill-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 20px}.quick-drill-form .grow{flex:1;min-width:260px}.compact{padding:22px}.preflight-head{display:flex;justify-content:space-between;align-items:center;padding:13px 20px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;background:#fafcff}.preflight-head span{font-size:12px;color:var(--muted)}.preflight-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:1px;background:#edf0f4}.preflight-item{min-height:78px;display:flex;gap:11px;padding:14px;background:#fff}.preflight-item>b{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center}.preflight-item.passed>b{background:#e8f8f0;color:var(--success)}.preflight-item.warning>b{background:#fff4df;color:var(--warning)}.preflight-item.blocked>b{background:#ffedef;color:var(--danger)}.preflight-item strong,.preflight-item span{display:block}.preflight-item strong{color:var(--ink)}.preflight-item span{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}.good{color:var(--success)!important}.bad{color:var(--danger)!important}
.simple-scenario-picker{display:flex;gap:8px;padding:18px 20px 0}.simple-scenario{min-width:220px;padding:12px 15px;border:1px solid var(--line);border-radius:7px;background:#fff;text-align:left;cursor:pointer}.simple-scenario strong,.simple-scenario span{display:block}.simple-scenario strong{color:var(--ink)}.simple-scenario span{margin-top:4px;color:var(--muted);font-size:12px}.simple-scenario.selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 3px 0 0 var(--brand)}.drill-expectation{display:flex;align-items:baseline;gap:10px;padding:11px 20px 0;color:var(--muted);font-size:12px}.drill-expectation span{white-space:nowrap}.drill-expectation strong{color:var(--ink);font-size:13px;font-weight:600}.drill-expectation small{margin-left:2px;color:var(--muted)}.simple-drill-form{display:grid;grid-template-columns:minmax(420px,1fr) auto;align-items:end;gap:18px;padding:16px 20px 18px}.simple-drill-form .field{min-width:0}
.drill-cockpit{margin-top:16px;overflow:hidden}.drill-cockpit-body{padding:18px}.drill-cockpit-grid{display:grid;grid-template-columns:minmax(360px,1.15fr) minmax(230px,.72fr) minmax(230px,.68fr);gap:16px;align-items:stretch}.drill-player,.drill-route-panel,.drill-summary-panel{min-width:0;border:1px solid #e5ebf3;border-radius:8px;padding:15px;background:#fbfdff}.drill-panel-title{margin-bottom:13px;color:var(--ink);font-weight:650}.drill-player video{display:block;width:100%;aspect-ratio:16/9;background:#0d1726;border-radius:7px}.drill-player-empty{display:grid;place-items:center;aspect-ratio:16/9;border-radius:7px;background:#eef2f7;color:var(--muted)}.drill-player-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted);font-size:12px}.drill-player-meta span,.drill-player-meta b,.drill-player-meta small{display:block}.drill-player-meta b{color:#176cbe;font-size:12px}.drill-player-meta small{margin-top:3px;color:var(--muted)}.drill-play-link{flex:0 0 auto;color:var(--brand);text-decoration:none}.drill-route{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px}.drill-route>i{height:16px;color:#9eb1c8;font-size:17px;line-height:16px;text-align:center;font-style:normal}.drill-node{min-height:62px;padding:10px;border:1px solid #dce5ef;border-radius:8px;background:#fff;text-align:center;display:grid;place-items:center}.drill-node.active{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 7px 20px rgba(47,143,242,.1)}.drill-node b{color:var(--ink);font-size:13px}.drill-node span{color:var(--muted);font-size:11px}.drill-route-note{margin-top:12px;text-align:center;color:#6f8299;font-size:12px;line-height:1.6}.drill-metrics{display:grid;gap:9px}.drill-metrics>div{padding:13px 14px;border:1px solid #e6ebf2;border-radius:7px;background:#fff}.drill-metrics span{display:block;color:var(--muted);font-size:12px}.drill-metrics strong{display:block;margin-top:6px;color:var(--ink);overflow-wrap:anywhere}.drill-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.drill-detail-grid>section{border:1px solid #e6ebf2;border-radius:8px;padding:16px}.drill-timeline{display:grid;gap:7px}.drill-timeline-item{display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:6px;background:#f6f8fb}.drill-step-index{width:26px;height:26px;flex:0 0 26px;border-radius:50%;display:grid;place-items:center;background:#e6ecf3;color:#6b788b}.drill-timeline-item.success .drill-step-index{background:#daf5e8;color:#138b52}.drill-timeline-item.info .drill-step-index{background:#e2f1ff;color:#2479ce}.drill-timeline-item.danger .drill-step-index{background:#ffedef;color:#d63c49}.drill-timeline-item strong,.drill-timeline-item span{display:block}.drill-timeline-item strong{color:var(--ink);font-size:13px}.drill-timeline-item span{margin-top:3px;color:var(--muted);font-size:11px}.drill-evidence{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drill-evidence>div{padding:10px 12px;border-radius:6px;background:#f6f8fb}.drill-evidence span{display:block;color:var(--muted);font-size:11px}.drill-evidence strong{display:block;margin-top:5px;color:var(--ink);font-size:13px}.drill-report-hero{margin-bottom:16px;padding:18px;border-radius:8px;background:#fff4df;border-left:4px solid var(--warning)}.drill-report-hero.success{background:#eaf8f1;border-left-color:var(--success)}.drill-report-hero span{font-size:12px;color:var(--muted)}.drill-report-hero h3{margin:7px 0;color:var(--ink);font-size:20px}.drill-report-hero p{margin:0;color:#64738a;line-height:1.6}.waiting{color:var(--warning)!important}
@media(max-width:1500px){.preflight-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1180px){.drill-cockpit-grid{grid-template-columns:1fr 1fr}.drill-summary-panel{grid-column:1/-1}.drill-metrics{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.scenario-grid,.drill-detail-grid,.simple-drill-form,.drill-cockpit-grid{grid-template-columns:1fr}.simple-scenario-picker{display:grid;grid-template-columns:1fr 1fr}.drill-expectation{display:grid;gap:4px}.drill-summary-panel{grid-column:auto}.drill-metrics{grid-template-columns:1fr}.preflight-grid{grid-template-columns:1fr}.scenario-card,.simple-scenario{min-width:0}}

.license-file-control{height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:#fff}.license-file-state{display:flex;align-items:center;gap:10px;min-width:0}.license-file-state b{color:var(--ink);font-size:13px}.license-upload-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.license-view-link{margin-left:4px}.license-missing{color:var(--muted)}.profile-service-notice{margin:22px 0 0}
.service-context{min-height:96px;display:flex;align-items:center;gap:26px;padding:18px 20px;margin-bottom:14px}.service-context-picker,.service-context-current{display:grid;gap:7px;min-width:260px}.service-context-current span,.service-context-current small,.service-context-picker label,.service-context-meta span{color:var(--muted);font-size:12px}.service-context-current strong{color:var(--ink);font-size:17px}.service-context-picker select,.service-form-section input,.service-form-section select,.service-form-section textarea{width:100%;height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px}.service-form-section textarea{height:92px;padding:10px 12px;resize:vertical}.service-context-meta{flex:1;display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(2,minmax(100px,.7fr));gap:22px}.service-context-meta>div{display:grid;gap:7px}.service-context-meta strong{color:var(--ink)}.merchant-trial-control{min-width:275px;display:grid;gap:7px;padding-left:22px;border-left:1px solid var(--line)}.merchant-trial-control>label,.merchant-trial-control>small{font-size:12px}.merchant-trial-control>label{color:var(--muted)}.merchant-trial-control>div{display:flex;gap:8px}.merchant-trial-control input{min-width:150px;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:7px;color:var(--ink)}.service-guidance{display:flex;gap:12px;align-items:center;margin:0 2px 14px;color:var(--muted)}.service-guidance strong{color:#355a84}.service-tabs-card{margin-bottom:16px;overflow:hidden}.service-tabs-card+.notice{display:none}.service-card-grid{display:grid;grid-template-columns:repeat(2,minmax(360px,1fr));gap:16px}.service-card{overflow:hidden;border-top:3px solid #cfd7e3}.service-card.is-enabled{border-top-color:var(--success)}.service-card-head{min-height:92px;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px;border-bottom:1px solid #edf0f4}.service-card-title{color:var(--ink);font-size:18px;font-weight:650}.service-card-head p{max-width:560px;margin:7px 0 0;color:var(--muted);line-height:1.6}.service-card-body{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;padding:16px 20px}.service-config-line{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px dashed #edf0f4}.service-config-line span{color:var(--muted)}.service-config-line strong{color:#44536a;text-align:right}.service-card-remark{margin:0 20px 14px;padding:10px 12px;border-radius:6px;background:#f6f8fb;color:#728095;font-size:12px}.service-card-footer{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 20px;border-top:1px solid #edf0f4;background:#fbfcfe}.service-card-footer>span{color:var(--muted);font-size:12px}
.service-detail-nav{height:42px;display:flex;align-items:center;color:var(--muted);font-size:12px}.service-detail-hero{min-height:112px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:16px;background:linear-gradient(120deg,#fff,#f7fbff)}.service-detail-hero h2{margin:5px 0 6px;color:var(--ink);font-size:23px}.service-detail-hero p{margin:0;color:var(--muted)}.service-kicker{color:var(--brand);font-size:12px;font-weight:600}.service-detail-layout{display:grid;grid-template-columns:minmax(620px,1fr) 280px;gap:16px;align-items:start}.service-detail-main{display:grid;gap:14px}.service-form-section{padding:20px}.service-section-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:18px}.service-section-head h3,.service-action-panel h3{margin:0;color:var(--ink);font-size:16px}.service-section-head p{margin:6px 0 0;color:var(--muted);font-size:12px}.service-form-section>.section-heading{margin-top:0}.service-form-section>.notice{margin-top:0}.service-action-panel{position:sticky;top:82px;padding:20px}.service-current-status{padding:18px 0;border-bottom:1px solid #edf0f4}.service-current-status p{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.service-action-stack{display:grid;gap:10px;padding:18px 0}.service-action-panel>small{display:block;color:var(--muted);line-height:1.65}.button.danger-outline{color:var(--danger);border-color:#f5aeb5;background:#fff}.button.danger-outline:hover{background:#fff5f6}.check-option-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.check-option{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fbfdff;cursor:pointer}.check-option input,.inline-check input{width:17px!important;height:17px!important;flex:0 0 17px;margin:2px 0 0;padding:0}.check-option span,.check-option strong,.check-option small{display:block}.check-option strong{color:var(--ink)}.check-option small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.45}.inline-check{display:flex!important;align-items:center!important;gap:8px!important;width:max-content;cursor:pointer}
@media(max-width:1180px){.service-context{align-items:flex-end;flex-wrap:wrap}.service-context-meta{order:3;flex-basis:100%}.merchant-trial-control{border-left:0;padding-left:0}.service-card-grid{grid-template-columns:1fr}.service-detail-layout{grid-template-columns:1fr}.service-action-panel{position:static}}
@media(max-width:720px){.service-context-picker,.service-context-current{min-width:100%}.service-context-meta{grid-template-columns:1fr}.service-card-body,.check-option-grid{grid-template-columns:1fr}.service-detail-hero{align-items:flex-start}.modal-form.two-column{grid-template-columns:1fr}.modal-form .full-row{grid-column:auto}}
.credential-value{display:flex;gap:8px;align-items:center}.credential-value input{flex:1;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.credential-value .button{flex:0 0 auto}
.callback-secret-help{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}

.sms-funnel-card{overflow:hidden}.sms-funnel{display:grid;gap:10px;padding:22px}.sms-funnel>div{width:var(--sms-width);min-width:170px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 16px;border-radius:7px;background:linear-gradient(90deg,#e9f4ff,#f6fbff);border-left:4px solid var(--brand);color:#31577f;transition:width .25s ease}.sms-funnel>div.failed{background:linear-gradient(90deg,#fff0f1,#fff8f8);border-left-color:var(--danger);color:#a5424d}.sms-funnel span{font-size:12px}.sms-funnel strong{font-size:19px}.sms-month-grid{padding:20px;grid-template-columns:repeat(2,1fr)}.sms-month-grid>div{padding:16px;border-radius:7px;background:#f7f9fc}.sms-month-grid span,.sms-stats-summary span{display:block;color:var(--muted);font-size:12px}.sms-month-grid strong,.sms-stats-summary strong{display:block;margin-top:7px;color:var(--ink);font-size:21px}.sms-stats-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fbfcfe}.sms-stats-summary>div{padding:12px 14px;border-left:3px solid #9bc8f5;background:#fff}
@media(prefers-reduced-motion:reduce){.sms-funnel>div{transition:none}}
@media(max-width:900px){.sms-stats-summary{grid-template-columns:repeat(2,1fr)}.sms-funnel>div{min-width:130px}.sms-month-grid{grid-template-columns:1fr}}

/* Control-plane management system. Login styles above intentionally remain unchanged. */
.app-shell{
  --rail:88px;
  --sidebar:252px;
  --topbar:72px;
  --cp-ink:#171a21;
  --cp-blue:#3370ff;
  --cp-blue-deep:#1f5eff;
  --cp-cyan:#1f9d76;
  --cp-amber:#f5a623;
  --cp-red:#d94a5f;
  --cp-page:#f5f7fb;
  --cp-card:#fff;
  --cp-line:#e0e5ee;
  --cp-muted:#5f6876;
  --brand:#3370ff;
  --brand-deep:#1f5eff;
  --brand-soft:#eaf1ff;
  --ink:#171a21;
  --text:#30343b;
  --muted:#5f6876;
  --line:#e0e5ee;
  --success:#1f9d76;
  --warning:#f5a623;
  --danger:#d94a5f;
  --card:#fff;
  min-height:100vh;
  color:#30343b;
  background:
    radial-gradient(circle at 14% 0%,rgba(51,112,255,.085),transparent 31%),
    linear-gradient(180deg,#f8faff 0,var(--cp-page) 430px);
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.app-shell button,.app-shell a,.app-shell input,.app-shell select,.app-shell textarea{transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.app-shell button:focus-visible,.app-shell a:focus-visible,.app-shell input:focus-visible,.app-shell select:focus-visible,.app-shell textarea:focus-visible,.table-wrap:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(51,112,255,.2)}

.control-rail{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--rail);display:flex;flex-direction:column;background:var(--cp-ink);border-right:1px solid rgba(255,255,255,.06);color:#fff}
.control-rail:after{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--cp-blue),var(--cp-cyan))}
.control-rail .brand{width:100%;height:84px;flex:0 0 84px;display:grid;place-items:center;align-content:center;gap:5px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:10px;letter-spacing:.11em;color:#cbd5e1}
.control-rail .brand-logo{width:38px;height:38px;border-radius:10px;box-shadow:none}
.control-rail .brand-name{display:block;font-weight:650}
.control-rail .topnav{height:auto;min-height:0;flex:1;display:grid;align-content:start;gap:4px;padding:16px 10px;overflow:auto;scrollbar-width:none}
.control-rail .topnav::-webkit-scrollbar{display:none}
.control-rail .topnav a{min-width:0;width:68px;height:58px;display:grid;grid-template-rows:25px 16px;place-items:center;align-content:center;gap:2px;padding:0;border-radius:10px;color:#8995a8;font-size:11px;font-weight:550;letter-spacing:.02em}
.control-rail .topnav a b{display:grid;place-items:center;width:27px;height:25px;font-family:"DIN Alternate","Arial Narrow","PingFang SC",sans-serif;font-size:15px;font-weight:700;color:#b6c0ce}
.control-rail .topnav a:hover{color:#eef3ff;background:rgba(255,255,255,.055)}
.control-rail .topnav a.active{color:#fff;background:#203256;box-shadow:inset 3px 0 0 var(--cp-cyan)}
.control-rail .topnav a.active b{color:#78e1d4}
.control-rail .topnav a.active:after{display:none}
.rail-signal{height:70px;display:grid;place-items:center;align-content:center;gap:7px;border-top:1px solid rgba(255,255,255,.08);color:#6f7d91;font:700 8px/1 "SFMono-Regular",Consolas,monospace;letter-spacing:.14em}
.rail-signal i,.topbar-health i,.page-updated i{width:7px;height:7px;border-radius:50%;background:var(--cp-cyan);box-shadow:0 0 0 4px rgba(31,157,118,.12)}

.app-shell .topbar{position:fixed;inset:0 0 auto calc(var(--rail) + var(--sidebar));z-index:30;height:var(--topbar);display:flex;align-items:center;padding:0 24px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--cp-line);box-shadow:none;color:var(--cp-ink)}
.route-context{display:grid;gap:3px;min-width:0}
.route-context span{font:700 9px/1.2 "SFMono-Regular",Consolas,monospace;letter-spacing:.13em;color:#8894a7;text-transform:uppercase}
.route-context strong{overflow:hidden;color:#1c2738;font-size:17px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.topbar-health{margin-left:auto;display:flex;align-items:center;gap:9px;padding-right:18px;color:#647188;font-size:12px}
.app-shell .top-actions{margin-left:0;height:100%;gap:10px;padding:0 0 0 18px;border-left:1px solid var(--cp-line)}
.app-shell .icon-button,.app-shell .user-button{color:#59657a}
.app-shell .icon-button{height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid transparent;border-radius:8px;font-size:17px}
.app-shell .icon-button small{font-size:11px}
.app-shell .icon-button:hover{border-color:var(--cp-line);background:#f6f8fa;color:var(--cp-blue)}
.app-shell .avatar{width:34px;height:34px;border-radius:9px;background:#e8eefc;color:var(--cp-blue);font-size:13px}
.operator-copy{display:grid;gap:2px;min-width:92px}
.operator-copy strong{font-size:12px;color:#354052}
.operator-copy small{font-size:10px;color:#939eae}
.app-shell .user-button{height:32px;padding:0 8px;border-radius:7px;font-size:11px}
.app-shell .user-button:hover{background:#fff1f2;color:var(--cp-red)}
.route-loading #refreshButton span{animation:control-spin .8s linear infinite}
@keyframes control-spin{to{transform:rotate(360deg)}}

.app-shell .sidebar{position:fixed;inset:0 auto 0 var(--rail);z-index:35;width:var(--sidebar);display:flex;flex-direction:column;background:rgba(255,255,255,.9);border-right:1px solid var(--cp-line);transition:width .2s ease;backdrop-filter:blur(16px)}
.app-shell .sidebar-title{height:84px;flex:0 0 84px;padding:0 16px 0 20px;border-bottom:1px solid var(--cp-line);color:var(--cp-ink)}
.app-shell .sidebar-title>div{display:grid;gap:4px;min-width:0}
.app-shell .sidebar-title small{font:700 9px/1 "SFMono-Regular",Consolas,monospace;letter-spacing:.14em;color:#98a3b2}
.app-shell .sidebar-title span{overflow:hidden;font-size:18px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.app-shell .sidebar-title button{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--cp-line);border-radius:8px;color:#7d8899;font-size:22px;line-height:1}
.app-shell .sidebar-title button:hover{border-color:#b9c5d2;background:#fff;color:var(--cp-blue)}
.app-shell .side-navigation{padding:16px 12px 20px}
.app-shell .side-group{margin-bottom:18px}
.app-shell .side-group-title{height:32px;padding:0 9px;border-radius:6px;color:#929cad;font:700 10px/1 "SFMono-Regular","PingFang SC",sans-serif;letter-spacing:.06em}
.app-shell .side-group-title .group-icon{position:relative;width:12px;height:12px;flex:0 0 12px;color:#aeb9ca}
.app-shell .side-group-title .group-icon:before,.app-shell .side-group-title .group-icon:after{content:"";position:absolute;border-radius:2px;background:currentColor}
.app-shell .side-group-title .group-icon:before{left:2px;top:3px;width:2px;height:7px}
.app-shell .side-group-title .group-icon:after{left:2px;top:3px;width:7px;height:2px}
.app-shell .side-group-title .chevron{position:relative;width:7px;height:7px;flex:0 0 7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:#aeb8c7;transform:rotate(45deg);transition:transform .18s ease}
.app-shell .side-group.collapsed .side-group-title .chevron{transform:rotate(-45deg)}
.app-shell .side-group-title:hover{background:#f5f8ff;color:#526078}
.app-shell .side-link{position:relative;height:46px;gap:10px;margin:3px 0;padding:0 10px;border:1px solid transparent;border-radius:10px;color:#566278}
.app-shell .side-link .side-icon{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border:1px solid #e7ecf4;border-radius:8px;background:#f4f7fb;color:#7d899b;font-size:0;transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease}
.app-shell .side-link .side-icon svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.app-shell .side-link:hover{background:#f5f8ff;border-color:#e4eaf4;color:#253248}
.app-shell .side-link:hover .side-icon{border-color:#d8e2f1;background:#fff;color:#526987}
.app-shell .side-link.active{background:var(--brand-soft);border-color:#d7e3ff;color:var(--cp-blue);box-shadow:none;font-weight:700}
.app-shell .side-link.active:before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--cp-blue)}
.app-shell .side-link.active .side-icon{border-color:#cbdcff;background:#fff;color:var(--cp-blue);box-shadow:0 4px 12px rgba(51,112,255,.1)}
.app-shell .sidebar-foot{display:flex;align-items:center;gap:10px;margin:0 12px 12px;padding:13px;border:1px solid #e2e8f2;border-radius:12px;background:#f8faff;color:#687489}
.app-shell .sidebar-foot .status-dot{flex:0 0 8px;margin:0;background:var(--cp-cyan)}
.app-shell .sidebar-foot strong,.app-shell .sidebar-foot small{display:block}
.app-shell .sidebar-foot strong{font-size:11px;color:#4d596d}
.app-shell .sidebar-foot small{margin-top:2px;font-size:9px;color:#99a3b1}

.app-shell .workspace{margin-left:calc(var(--rail) + var(--sidebar));min-height:100vh;padding:104px clamp(20px,2.3vw,38px) 40px;transition:margin-left .2s ease}
.app-shell .workspace>*{max-width:1700px;margin-left:auto;margin-right:auto}
.app-shell .page-head{min-height:80px;align-items:flex-start;margin-bottom:22px}
.page-heading-copy{display:grid;gap:4px}
.page-kicker{font:700 10px/1.2 "SFMono-Regular",Consolas,monospace;letter-spacing:.12em;color:var(--cp-blue);text-transform:uppercase}
.app-shell .page-head h1{margin:3px 0 0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;font-size:clamp(25px,2vw,31px);font-weight:780;letter-spacing:-.025em;color:var(--cp-ink)}
.app-shell .page-head p{max-width:780px;margin:4px 0 0;color:var(--cp-muted);line-height:1.6}
.app-shell .page-updated{display:flex;align-items:center;gap:9px;margin-top:8px;padding:8px 10px;border:1px solid #e0e6ef;border-radius:10px;background:rgba(255,255,255,.88);color:#7b8799;font:500 10px/1.2 "SFMono-Regular",Consolas,monospace;box-shadow:0 8px 24px rgba(31,42,68,.035)}

.app-shell .card{background:var(--cp-card);border:1px solid var(--cp-line);border-radius:14px;box-shadow:0 10px 30px rgba(31,42,68,.045)}
.app-shell .card-head{height:60px;padding:0 20px;border-bottom-color:#e8edf1}
.app-shell .card-head h2{font-size:15px;font-weight:650;letter-spacing:-.01em;color:#263247}
.app-shell .card-body{padding:18px 20px}
.app-shell .card-body li{margin:7px 0;line-height:1.65}

.app-shell .filter-card{position:relative;min-height:76px;padding:16px 18px 15px;margin-bottom:18px;gap:12px;border-left:3px solid var(--cp-blue);box-shadow:none}
.app-shell .filter-card:before{content:"FILTER";position:absolute;top:7px;right:11px;color:#c1c9d3;font:700 8px/1 "SFMono-Regular",Consolas,monospace;letter-spacing:.13em}
.app-shell .field{gap:6px;min-width:190px}
.app-shell .field label{color:#687489;font-size:12px;font-weight:600}
.app-shell .field-note{color:#9aa4b3;font-size:10px}
.app-shell .field input,.app-shell .field select,.modal-body input,.modal-body select,.modal-body textarea,.service-context-picker select,.service-form-section input,.service-form-section select,.service-form-section textarea{height:40px;border-color:#d7dfe6;border-radius:7px;background:#fff;color:#38455a}
.app-shell .field input:hover,.app-shell .field select:hover,.modal-body input:hover,.modal-body select:hover,.modal-body textarea:hover{border-color:#acb9c7}
.app-shell .field input:focus,.app-shell .field select:focus,.modal-body input:focus,.modal-body select:focus,.modal-body textarea:focus{border-color:var(--cp-blue)}
.app-shell input:disabled,.app-shell input[readonly],.modal-body input:disabled,.modal-body input[readonly]{background:#f3f5f7;color:#7d8999}

.app-shell .button,.modal .button{box-sizing:border-box;height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 15px;border-color:#d4dde5;border-radius:7px;background:#fff;color:#4b586c;font-weight:600;font-size:12px;line-height:1;text-align:center;text-decoration:none;white-space:nowrap;touch-action:manipulation;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.app-shell .button:hover,.modal .button:hover{border-color:#9eacbb;background:#f9fafb;color:#263247;transform:translateY(-1px)}
.app-shell .button:active,.modal .button:active{transform:translateY(0)}
.app-shell .button:focus-visible,.modal .button:focus-visible{outline:3px solid rgba(51,112,255,.24);outline-offset:2px}
.app-shell .button.primary,.modal .button.primary{border-color:var(--cp-blue);background:var(--cp-blue);color:#fff;box-shadow:0 7px 18px rgba(51,112,255,.2)}
.app-shell .button.primary:hover,.modal .button.primary:hover{border-color:var(--cp-blue-deep);background:var(--cp-blue-deep);color:#fff}
.app-shell .button.danger,.modal .button.danger{border-color:var(--cp-red);background:var(--cp-red);color:#fff}
.app-shell .button.text,.modal .button.text{height:auto;padding:3px 0;border:0;background:transparent;box-shadow:none;color:var(--cp-blue);font-weight:600}
.app-shell .button.text:hover,.modal .button.text:hover{background:transparent;color:#163fae;transform:none}
.app-shell .button.text:focus-visible,.modal .button.text:focus-visible{border-radius:4px;outline-offset:3px}
.app-shell .button:disabled,.modal .button:disabled{transform:none}
.app-shell .button[aria-busy="true"],.modal .button[aria-busy="true"]{padding-left:32px;background-image:radial-gradient(circle at 17px 50%,transparent 5px,rgba(255,255,255,.75) 5.5px,rgba(255,255,255,.75) 6.5px,transparent 7px);background-repeat:no-repeat}

.app-shell .metric-grid{grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:14px;margin-bottom:18px}
.app-shell .metric-card{min-height:128px;padding:21px 19px 17px;border-top:0;box-shadow:0 10px 30px rgba(31,42,68,.035)}
.app-shell .metric-card:before{display:block;width:auto;height:3px;left:18px;right:18px;top:0;border-radius:0 0 4px 4px;background:linear-gradient(90deg,var(--cp-blue),#6e5ae6)}
.app-shell .metric-label{margin-bottom:12px;color:#7b8799;font-size:11px;font-weight:650;letter-spacing:.03em}
.app-shell .metric-value{font-family:"DIN Alternate",ui-sans-serif,"PingFang SC",sans-serif;font-size:31px;font-weight:760;letter-spacing:-.035em;color:var(--cp-ink)}
.app-shell .metric-note{margin-top:10px;color:#929cac;font-size:11px;line-height:1.45}
.app-shell .dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px;min-width:0}
.app-shell .dashboard-grid>*{min-width:0}

.app-shell .table-card{border-radius:14px;box-shadow:0 10px 30px rgba(31,42,68,.035)}
.app-shell .table-toolbar{min-height:58px;padding:10px 18px;border-bottom-color:#e7ecf0;background:#fff}
.app-shell .table-toolbar>strong{color:#29364a;font-size:13px}
.app-shell .table-wrap{max-width:100%;overflow:auto;scrollbar-color:#c7d0da transparent}
.app-shell .data-table{font-size:12px}
.app-shell .data-table th{position:sticky;top:0;z-index:2;height:43px;padding:0 15px;background:#f2f5fa;border-bottom-color:#e0e5ee;color:#657187;font:700 10px/1 "SFMono-Regular","PingFang SC",sans-serif;letter-spacing:.035em}
.app-shell .data-table td{height:62px;padding:8px 15px;background:#fff;border-bottom-color:#e9edf1;color:#566278;line-height:1.45}
.app-shell .data-table tbody tr:last-child td{border-bottom:0}
.app-shell .data-table tr:hover td{background:#f7f9ff}
.app-shell .data-table th.sticky-action{z-index:5;background:#f2f5fa}
.app-shell .data-table td.sticky-action{z-index:3;background:#fff}
.app-shell .data-table tr:hover td.sticky-action{background:#f7f9ff}
.app-shell .data-table .primary-cell{color:#202c40;font-weight:650}
.app-shell .data-table .actions{gap:14px}
.app-shell .mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:10px;letter-spacing:-.01em}

.app-shell .tag{gap:6px;min-height:23px;padding:3px 8px;border-radius:5px;background:#eef1f4;color:#697487;font-size:10px;font-weight:650}
.app-shell .tag:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.7}
.app-shell .tag.success{background:#e9f7f3;color:#168b7d}
.app-shell .tag.info{background:#eaf0ff;color:#315ecb}
.app-shell .tag.warning{background:#fff3df;color:#ac6c12}
.app-shell .tag.danger{background:#fdebed;color:#be3f4c}
.app-shell .tag.key{background:#f0eefe;color:#6954b5}

.app-shell .notice,.modal .notice{position:relative;padding:14px 16px 14px 19px;border:1px solid #d6e1ed;border-left:3px solid #4f7edc;border-radius:8px;background:#f5f8fc;color:#596b82;line-height:1.55}
.app-shell .notice strong,.modal .notice strong{color:#294e8d}
.app-shell .notice ul,.modal .notice ul{margin-top:8px}
.app-shell .tabs{height:55px;gap:8px;align-items:center;padding:0 12px;border-bottom:0}
.app-shell .tab{height:36px;padding:0 14px;border:1px solid transparent;border-radius:7px;color:#677388}
.app-shell .tab.active{border-color:#d9e1eb;background:#eef3ff;color:var(--cp-blue);box-shadow:none}
.external-services-card{overflow:hidden}.external-service-tabs{border-bottom:1px solid #e6ebf1!important;background:#f8faff}.external-service-panel{padding:24px}.external-service-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.external-service-panel-head h2{margin:0;color:var(--ink);font-size:18px}.external-service-panel-head p{margin:7px 0 0;color:var(--muted);line-height:1.6}.external-service-form{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px 22px;padding:6px 0 22px}.external-service-form .field{min-width:0}.external-service-meta{display:flex;gap:28px;padding:14px 0;border-top:1px solid #edf0f4;color:var(--muted);font-size:12px}.external-service-meta strong{color:#4b586d}.external-service-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid #edf0f4}.external-service-actions>span{margin-right:auto}

.empty-state{display:grid;place-items:center;align-content:center;gap:7px;min-height:260px;padding:34px;text-align:center;color:#8792a3}
.empty-state.compact{min-height:150px;padding:24px}
.empty-state h3,.empty-state strong{margin:0;color:#455166}
.empty-state p,.empty-state small{max-width:540px;margin:0;color:#8a95a5;line-height:1.6}
.empty-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d9e0e6;border-radius:9px;background:#f5f7f9;color:#8b96a6;font:700 17px/1 "DIN Alternate",sans-serif}
.error-state .empty-mark{border-color:#f0c6ca;background:#fff0f1;color:var(--cp-red)}
.loading-panel{display:grid;gap:12px;min-height:240px;padding:24px;border:1px solid var(--cp-line);border-radius:10px;background:#fff}
.loading-line,.loading-grid span{overflow:hidden;background:#edf1f4}
.loading-line{width:35%;height:14px;border-radius:4px}
.loading-line.wide{width:56%;height:24px}
.loading-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.loading-grid span{height:110px;border-radius:8px}
.loading-line:after,.loading-grid span:after{content:"";display:block;width:42%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);animation:control-shimmer 1.2s ease-in-out infinite}
@keyframes control-shimmer{from{transform:translateX(-140%)}to{transform:translateX(360%)}}

body.modal-open{overflow:hidden}
@media(max-width:720px){.external-service-form{grid-template-columns:1fr}.external-service-meta,.external-service-actions{align-items:stretch;flex-direction:column}.external-service-actions>span{margin:0}.external-service-actions .button{width:100%}}
.modal-layer{place-items:center;padding:24px;background:rgba(11,20,34,.58);backdrop-filter:blur(3px)}
.modal{width:min(840px,calc(100vw - 40px));max-height:calc(100vh - 48px);overflow:hidden;border:1px solid rgba(255,255,255,.6);border-radius:12px;box-shadow:0 28px 90px rgba(6,15,27,.35);animation:modal-enter .18s ease-out}
.modal-header{height:66px;padding:0 22px;border-bottom-color:#e2e8ed;background:#f8fafb}
.modal-header:before{content:"";width:4px;height:23px;margin-right:11px;border-radius:2px;background:var(--cp-blue)}
.modal-header h2{margin-right:auto;font-size:18px;color:#1d293b}
.modal-close{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;font-size:24px;line-height:1}
.modal-close:hover{background:#edf1f4;color:#263247}
.modal-body{padding:22px 24px}
.modal-footer{padding:14px 22px;border-top-color:#e3e8ed;background:#fafbfc}
@keyframes modal-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
.toast-stack{right:22px;top:88px;gap:9px}
.toast{min-width:300px;max-width:430px;display:grid;grid-template-columns:25px 1fr 24px;align-items:center;gap:10px;padding:12px 12px 12px 13px;border:1px solid #dce4ea;border-left:3px solid var(--cp-cyan);border-radius:9px;color:#445166;box-shadow:0 14px 35px rgba(16,29,48,.16);animation:toast-enter .18s ease-out}
.toast>i{width:23px;height:23px;display:grid;place-items:center;border-radius:6px;background:#e7f7f3;color:#158d7e;font-style:normal;font-weight:800}
.toast>button{border:0;background:transparent;color:#99a3b1;font-size:18px;cursor:pointer}
.toast.error{border-left-color:var(--cp-red)}
.toast.error>i{background:#fdebed;color:var(--cp-red)}
@keyframes toast-enter{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}

.app-shell .service-context,.app-shell .service-detail-hero{box-shadow:none}
.app-shell .service-context{border-left:3px solid var(--cp-blue)}
.app-shell .service-card{border-top-width:2px;box-shadow:none}
.app-shell .service-card.is-enabled{border-top-color:var(--cp-cyan)}
.app-shell .service-card-footer{background:#f8fafb}
.app-shell .service-form-section{box-shadow:none}
.app-shell .service-action-panel{top:92px;box-shadow:none}
.app-shell .detail-grid{border-color:#dfe5ea;background:#dfe5ea}
.app-shell .detail-grid>div{padding:15px 17px}
.app-shell .progress{height:6px;background:#e7ecf0}
.app-shell .progress span{background:linear-gradient(90deg,var(--cp-blue),var(--cp-cyan))}
.app-shell .event-item:before{background:var(--cp-cyan)}
.app-shell .scenario-card.selected{border-color:var(--cp-blue);background:#f1f5ff;box-shadow:0 0 0 2px rgba(35,87,217,.07)}
.app-shell .sms-funnel>div{border-left-color:var(--cp-blue);background:linear-gradient(90deg,#edf3ff,#f8faff);color:#36547e}
.app-shell .sms-funnel>div.failed{border-left-color:var(--cp-red)}
.app-shell .sms-template-card{overflow:hidden;padding:0}
.app-shell .sms-template-tabs{display:flex;align-items:stretch;gap:6px;padding:16px 18px 0;border-bottom:1px solid var(--cp-line,#e5e9f2);overflow-x:auto;background:#f8faff}
.app-shell .sms-template-tab{min-width:148px;min-height:58px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:3px;padding:10px 15px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:transparent;color:var(--cp-muted,#647087);cursor:pointer;white-space:nowrap}
.app-shell .sms-template-tab span{font-weight:700;color:inherit}
.app-shell .sms-template-tab small{font-size:12px;color:#8993a6}
.app-shell .sms-template-tab:hover{background:#eef3ff;color:var(--cp-blue,#3370ff)}
.app-shell .sms-template-tab.active{position:relative;background:#fff;border-color:var(--cp-line,#e5e9f2);color:var(--cp-blue,#3370ff)}
.app-shell .sms-template-tab.active:after{content:"";position:absolute;left:15px;right:15px;bottom:-1px;height:2px;background:#fff}
.app-shell .sms-template-tab.add{align-items:center;min-width:174px;border:1px dashed #b9c8e8;border-bottom:0;color:var(--cp-blue,#3370ff)}
.app-shell .sms-template-tab.add:disabled{opacity:.45;cursor:not-allowed}
.app-shell .sms-template-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px 22px;background:#fff}
.app-shell .sms-template-summary>div{display:grid;gap:3px;padding:14px 16px;border:1px solid #e6ebf4;border-radius:10px;background:#fbfcff}
.app-shell .sms-template-summary span{font-size:12px;color:#7a8496}
.app-shell .sms-template-summary strong{font-size:18px;color:#1f293b}
.app-shell .sms-template-summary small{color:#8791a3}
.app-shell .sms-template-card>.table-card{border:0;border-radius:0;box-shadow:none}
.app-shell .sms-scene-content{max-width:420px;line-height:1.65;color:#586276}
.app-shell .sms-template-empty{padding:54px 24px}

.app-shell .usage-category-card{overflow:hidden}
.app-shell .usage-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:0;border-bottom:1px solid var(--cp-line,#e0e5ee);background:#f7f9fc;overflow-x:auto}
.app-shell .usage-category-tab{min-width:150px;display:grid;gap:5px;padding:17px 20px;border:0;border-right:1px solid var(--cp-line,#e0e5ee);background:transparent;color:#657187;text-align:left;cursor:pointer}
.app-shell .usage-category-tab:last-child{border-right:0}
.app-shell .usage-category-tab strong{font-size:13px;color:#354257}
.app-shell .usage-category-tab small{font-size:10px;color:#8a95a5}
.app-shell .usage-category-tab:hover{background:#f0f4fb}
.app-shell .usage-category-tab.active{position:relative;background:#fff;color:var(--cp-blue)}
.app-shell .usage-category-tab.active:before{content:"";position:absolute;left:18px;right:18px;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--cp-blue)}
.app-shell .usage-category-tab.active strong{color:var(--cp-blue)}
.app-shell .usage-category-head{min-height:78px;display:flex;align-items:center;gap:18px;padding:16px 20px;border-bottom:1px solid var(--cp-line,#e0e5ee);background:#fff}
.app-shell .usage-category-head>div:first-child{min-width:0;margin-right:auto}
.app-shell .usage-category-head>div:first-child>strong{color:#263247;font-size:15px}
.app-shell .usage-category-head p{margin:6px 0 0;color:#7b8799;font-size:12px;line-height:1.5}
.app-shell .usage-grain{display:inline-flex;align-items:center;margin-right:9px;padding:3px 7px;border:1px solid #cad8f3;border-radius:4px;background:#f2f6ff;color:#3867b7;font:700 10px/1.2 "SFMono-Regular",Consolas,monospace;letter-spacing:.04em}
.app-shell .usage-category-summary{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:12px;min-width:220px;padding-left:20px;border-left:1px solid #e6ebf2;text-align:right}
.app-shell .usage-category-summary span{color:#7b8799;font-size:11px}
.app-shell .usage-category-summary strong{color:#1f4f9c;font-size:20px;font-variant-numeric:tabular-nums}
.app-shell .usage-category-summary small{grid-column:1/-1;margin-top:3px;color:#9aa5b5;font-size:10px}
.app-shell .usage-day{display:inline-flex;margin-top:7px;padding:3px 7px;border-radius:4px;background:#eef4ff;color:#3562ad;font:700 11px/1.3 "SFMono-Regular",Consolas,monospace}
.app-shell .usage-category-card>.table-card{border:0;border-radius:0;box-shadow:none}

.app-shell .monitor-path{min-height:92px;display:flex;align-items:center;gap:13px;padding:16px 20px;margin-bottom:16px;overflow:hidden;border-left:3px solid var(--cp-blue);box-shadow:none}
.app-shell .monitor-path>em{height:1px;flex:1;min-width:18px;background:#ccd6e3;position:relative}
.app-shell .monitor-path>em:after{content:"";position:absolute;right:-1px;top:-3px;width:6px;height:6px;border-top:1px solid #9eacbf;border-right:1px solid #9eacbf;transform:rotate(45deg)}
.app-shell .monitor-path-node{min-width:170px;display:flex;align-items:center;gap:11px;color:var(--cp-blue)}
.app-shell .monitor-path-node>i{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border:1px solid currentColor;border-radius:8px;background:#eef3ff;font:700 11px/1 "DIN Alternate",sans-serif;font-style:normal}
.app-shell .monitor-path-node span,.app-shell .monitor-path-node b,.app-shell .monitor-path-node small{display:block}
.app-shell .monitor-path-node b{color:#26354a;font-size:13px}
.app-shell .monitor-path-node small{margin-top:4px;color:#7b8798;font-size:11px;white-space:nowrap}
.app-shell .monitor-path-node.success{color:var(--cp-cyan)}.app-shell .monitor-path-node.warning{color:#bd7413}.app-shell .monitor-path-node.danger{color:var(--cp-red)}.app-shell .monitor-path-node.muted-node{color:#a0aab8}
.app-shell .monitor-path-node.muted-node>i{background:#f3f5f7}
.app-shell .monitor-layout{display:grid;grid-template-columns:minmax(650px,1fr) 292px;gap:16px;align-items:start}
.app-shell .monitor-main{display:grid;gap:16px;min-width:0}.app-shell .monitor-config-card,.app-shell .monitor-items-card{overflow:hidden;box-shadow:none}
.app-shell .monitor-config-body{display:grid;grid-template-columns:180px minmax(360px,1fr);gap:18px 20px;padding:20px}
.app-shell .monitor-config-body .field{min-width:0}.app-shell .monitor-webhook-field{min-width:0}
.app-shell .monitor-config-meta{grid-column:1/-1;display:flex;gap:28px;padding:12px 0;border-top:1px solid var(--cp-line);color:#7b8799;font-size:12px}
.app-shell .monitor-config-meta strong{color:#445267}.app-shell .monitor-inline-error{grid-column:1/-1;margin-top:-8px;padding:9px 11px;border-radius:7px;background:#fff1f2;color:var(--cp-red);font-size:12px}
.app-shell .monitor-config-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px}.app-shell .monitor-config-actions>span{margin-right:auto}
.app-shell .monitor-items-body{display:grid;gap:20px;padding:20px}.app-shell .monitor-item-group{display:grid;gap:11px}
.app-shell .monitor-item-group-head{display:flex;align-items:center;justify-content:space-between}.app-shell .monitor-item-group-head strong{color:#344258;font-size:13px}.app-shell .monitor-item-group-head span{color:#8b96a6;font-size:11px}
.app-shell .monitor-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.app-shell .monitor-item-option{min-height:76px;display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #dfe5ec;border-radius:8px;background:#fbfcfd;cursor:pointer;transition:border-color .15s,background .15s}
.app-shell .monitor-item-option:has(input:checked){border-color:#aebfe8;background:#f3f6ff}.app-shell .monitor-item-option:hover{border-color:#b7c4d4}
.app-shell .monitor-item-option input{width:17px;height:17px;flex:0 0 17px;margin:2px 0 0;accent-color:var(--cp-blue)}
.app-shell .monitor-item-option span,.app-shell .monitor-item-option strong,.app-shell .monitor-item-option small{display:block}.app-shell .monitor-item-option strong{color:#334157;font-size:13px}.app-shell .monitor-item-option small{margin-top:5px;color:#7f8a9b;font-size:11px;line-height:1.5}
.app-shell .monitor-guidance{position:sticky;top:88px;padding:21px;overflow:hidden;border-top:3px solid var(--cp-cyan);box-shadow:none}.app-shell .monitor-guidance-kicker{color:var(--cp-cyan);font-size:11px;font-weight:700;letter-spacing:.08em}.app-shell .monitor-guidance h2{margin:8px 0 20px;color:#28364b;font-size:17px;line-height:1.45}
.app-shell .monitor-rule{display:flex;gap:11px;padding:12px 0;border-top:1px solid var(--cp-line)}.app-shell .monitor-rule>i{width:29px;height:29px;display:grid;place-items:center;flex:0 0 29px;border-radius:7px;background:#eaf7f4;color:#158c7e;font-size:11px;font-weight:700;font-style:normal}.app-shell .monitor-rule p,.app-shell .monitor-rule strong,.app-shell .monitor-rule small{display:block;margin:0}.app-shell .monitor-rule strong{color:#3b485c;font-size:12px}.app-shell .monitor-rule small{margin-top:4px;color:#8590a0;font-size:11px;line-height:1.5}
.app-shell .monitor-guidance-foot{margin-top:16px;padding:14px;border-radius:8px;background:#f3f6fb}.app-shell .monitor-guidance-foot span,.app-shell .monitor-guidance-foot strong,.app-shell .monitor-guidance-foot small{display:block}.app-shell .monitor-guidance-foot span{color:#7f8b9d;font-size:11px}.app-shell .monitor-guidance-foot strong{margin-top:5px;color:#263b5c;font:700 22px/1.2 "DIN Alternate",sans-serif}.app-shell .monitor-guidance-foot small{margin-top:8px;color:#7f8b9d;font-size:11px;line-height:1.5}
.app-shell .monitor-deliveries{margin-top:16px;box-shadow:none}
@media(max-width:1180px){.app-shell .monitor-path-node{min-width:145px}.app-shell .monitor-layout{grid-template-columns:1fr}.app-shell .monitor-guidance{position:static;display:none}}
@media(max-width:820px){.app-shell .monitor-path{align-items:stretch;flex-direction:column}.app-shell .monitor-path>em{width:1px;height:12px;min-height:12px;flex:none;margin-left:15px}.app-shell .monitor-path>em:after{right:-3px;top:auto;bottom:0;transform:rotate(135deg)}.app-shell .monitor-config-body{grid-template-columns:1fr}.app-shell .monitor-config-meta,.app-shell .monitor-config-actions{align-items:stretch;flex-direction:column}.app-shell .monitor-config-actions>span{margin:0}.app-shell .monitor-item-grid{grid-template-columns:1fr}}

body.sidebar-collapsed .app-shell{--sidebar:76px}
body.sidebar-collapsed .app-shell .sidebar-title{padding:0;justify-content:center}
body.sidebar-collapsed .app-shell .sidebar-title>div,body.sidebar-collapsed .app-shell .side-group-title span:not(.group-icon),body.sidebar-collapsed .app-shell .side-group-title .chevron,body.sidebar-collapsed .app-shell .side-link span,body.sidebar-collapsed .app-shell .sidebar-foot{display:none}
body.sidebar-collapsed .app-shell .side-group-title,body.sidebar-collapsed .app-shell .side-link{justify-content:center;padding:0}
body.sidebar-collapsed .app-shell .side-link .side-icon{width:28px}
body.sidebar-collapsed .app-shell .side-link.active:before{top:8px;bottom:8px}
body.sidebar-collapsed .app-shell .sidebar-title button{transform:rotate(180deg)}

@media(max-width:1050px){
  .app-shell{--sidebar:76px}
  .app-shell .sidebar-title{padding:0;justify-content:center}
  .app-shell .sidebar-title>div,.app-shell .side-group-title span:not(.group-icon),.app-shell .side-group-title .chevron,.app-shell .side-link span,.app-shell .sidebar-foot{display:none}
  .app-shell .side-group-title,.app-shell .side-link{justify-content:center;padding:0}
  .app-shell .side-link .side-icon{width:28px}
  .app-shell .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .operator-copy{display:none}
}
@media(max-width:760px){
  .app-shell{--rail:68px;--sidebar:0px;--topbar:62px}
  .control-rail .brand{height:70px;flex-basis:70px}
  .control-rail .brand-logo{width:34px;height:34px}
  .control-rail .brand-name,.control-rail .topnav a span,.rail-signal span{display:none}
  .control-rail .topnav{padding:12px 7px}
  .control-rail .topnav a{width:54px;height:48px;display:grid;grid-template-rows:1fr}
  .app-shell .sidebar{display:none}
  .app-shell .topbar{padding:0 12px}
  .topbar-health,.app-shell .icon-button small,.app-shell .avatar{display:none}
  .app-shell .top-actions{padding-left:8px}
  .app-shell .user-button{display:block}
  .app-shell .workspace{padding:82px 12px 28px}
  .app-shell .page-head{display:grid;gap:12px}
  .app-shell .page-updated{width:max-content;margin:0}
  .app-shell .metric-grid,.loading-grid{grid-template-columns:repeat(2,1fr)}
  .app-shell .filter-card{align-items:stretch}
  .app-shell .field{min-width:100%}
  .modal{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}
  .modal-layer{padding:10px}
  .modal-body{padding:18px}
  .toast-stack{left:78px;right:10px;top:72px}
  .toast{min-width:0;width:100%}
  .app-shell .usage-category-tabs{display:flex}
  .app-shell .usage-category-head{align-items:flex-start;flex-direction:column}
  .app-shell .usage-category-head>div:first-child{margin-right:0}
  .app-shell .usage-category-summary{width:100%;min-width:0;padding:12px 0 0;border-left:0;border-top:1px solid #e6ebf2;text-align:left}
}

/* Merchant deployment reuses the billing list and service configuration patterns. */
.app-shell .merchant-deployment-list .data-table td{height:68px}
.app-shell .merchant-deployment-list .table-toolbar>.button,
.app-shell .merchant-deployment-create .service-action-stack .button,
.app-shell .merchant-deployment-detail .bill-detail-head .button,
.app-shell .merchant-deployment-detail .delivery-start-controls .button,
.app-shell .merchant-deployment-detail .delivery-failure .button{height:38px;min-width:0;padding:0 15px;border-radius:7px;font-size:12px;font-weight:600;line-height:1}
.app-shell .merchant-deployment-list .data-table .button.text{height:auto;padding:3px 0;border:0;border-radius:4px;background:transparent;box-shadow:none;color:var(--cp-blue)}

/* AI knowledge library reuses the same compact information alert as product lists. */
.app-shell .ai-knowledge-guide{width:100%;min-height:46px;display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:10px 12px;border-left-width:1px;background:#f2f7ff;color:#52627a}.ai-knowledge-guide-icon{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;border-radius:50%;background:#3370ff;color:#fff;font:700 12px/1 Georgia,serif}.ai-knowledge-guide>span:nth-child(2){min-width:0;line-height:1.55}.ai-knowledge-guide button{width:26px;height:26px;flex:0 0 26px;margin-left:auto;border:0;border-radius:5px;background:transparent;color:#8a96a8;font-size:20px;line-height:1;cursor:pointer}.ai-knowledge-guide button:hover{background:#e5edfa;color:#53647c}.ai-knowledge-card{overflow:hidden}.ai-knowledge-tabs{background:#f8faff;border-bottom:1px solid #e6ebf1}.ai-knowledge-filter{margin:0;border:0;border-bottom:1px solid #edf0f4;border-radius:0;box-shadow:none}.ai-knowledge-filter .field{min-width:230px}.ai-toolbar-copy{display:grid;gap:3px}.ai-toolbar-copy strong{color:var(--ink)}.ai-toolbar-copy span{color:var(--muted);font-size:12px}.ai-material-title{max-width:300px;overflow:hidden;text-overflow:ellipsis}.ai-knowledge-card .data-table td{height:72px}
@media(max-width:1180px){.ai-knowledge-card .table-toolbar{align-items:flex-start;flex-wrap:wrap}.ai-knowledge-card .table-toolbar .spacer{display:none;width:100%;margin:0}}
@media(max-width:700px){.ai-knowledge-filter .field{min-width:100%}.ai-knowledge-card .table-toolbar .button{flex:1 1 calc(50% - 10px);padding:0 10px}}
.app-shell .merchant-deployment-create .service-form-section{padding:20px}
.app-shell .merchant-deployment-create .field{width:100%;max-width:none;margin:0}
.app-shell .merchant-deployment-create select{width:100%;background-color:#fff;color:#303b4d}
.app-shell .merchant-deployment-create .service-action-panel .button{width:100%}
.app-shell .deployment-version-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;margin:0;border:1px solid #e0e6ed;border-radius:7px;background:#f8fafc}
.app-shell .deployment-version-grid>div{min-width:0;padding:13px 15px;border-right:1px solid #e0e6ed}
.app-shell .deployment-version-grid>div:last-child{border-right:0}
.app-shell .deployment-version-grid dt{color:#8590a0;font-size:11px}
.app-shell .deployment-version-grid dd{overflow-wrap:anywhere;margin:6px 0 0;color:#344158;font-size:13px;font-weight:650}
.app-shell .merchant-deployment-identity{grid-template-columns:1.15fr repeat(4,minmax(0,1fr))}
.app-shell .merchant-deployment-identity>div:nth-child(2) strong{font-size:16px}
.app-shell .delivery-start{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px 26px;border-left:4px solid var(--cp-blue)}
.app-shell .delivery-start span{color:#3970db;font-size:11px;font-weight:800;letter-spacing:.08em}
.app-shell .delivery-start h2{margin:5px 0;color:#273750;font-size:19px}
.app-shell .delivery-start p{max-width:720px;margin:0;color:#718096;line-height:1.6}
.app-shell .delivery-server-list{display:grid;gap:7px;margin-top:14px}
.app-shell .delivery-server-meta{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;padding:8px 11px;border:1px solid #cfe6db;border-radius:7px;background:#f3fbf7;color:#4f6d60;font-size:11px}
.app-shell .delivery-server-meta strong{color:#257356;font-size:11px}
.app-shell .delivery-server-meta small{flex-basis:100%;color:#738378}
.app-shell .delivery-server-meta.unavailable{border-color:#ead9bd;background:#fff9ef;color:#806f55}
.app-shell .delivery-server-meta.unavailable strong{color:#a46a19}
.app-shell .delivery-start-controls{min-width:340px;display:flex;gap:10px}
.app-shell .delivery-start-controls select{min-width:210px}
.app-shell .delivery-failure{display:flex;align-items:center;gap:14px}
.app-shell .delivery-failure div{margin-right:auto}
.app-shell .delivery-detail-grid{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(520px,1.28fr);gap:18px;align-items:start}
.app-shell .delivery-detail-grid>:only-child{grid-column:1/-1}
.app-shell .live-report-filters{align-items:end;flex-wrap:wrap}
.app-shell .live-report-filters .date-range{display:flex;align-items:center;gap:8px}
.app-shell .live-report-filters .date-range input{min-width:145px}
.app-shell .live-report-keyword{min-width:260px;flex:1}
.app-shell .live-report-metrics .metric-value{font-size:24px}.app-shell .live-report-metrics .metric-note{display:none}
.app-shell .report-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 18px;border-top:1px solid var(--cp-line)}
.app-shell .delivery-steps,.app-shell .delivery-checklist{overflow:hidden}
.app-shell .delivery-steps .card-head,.app-shell .delivery-checklist .card-head{padding:17px 20px;border-bottom:1px solid var(--cp-line)}
.app-shell .delivery-checklist .card-head>div{display:grid;gap:4px}
.app-shell .delivery-checklist .card-head p{margin:0;color:#7d899b;font-size:12px}
.app-shell .delivery-step-list{padding:6px 20px 12px}
.app-shell .delivery-step{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:60px;border-bottom:1px solid #edf0f5}
.app-shell .delivery-step:last-child{border-bottom:0}
.app-shell .delivery-step i{width:27px;height:27px;display:grid;place-items:center;border:1px solid #d8e0eb;border-radius:50%;color:#8190a5;font-style:normal;font-size:11px;font-weight:750}
.app-shell .delivery-step strong,.app-shell .delivery-step small{display:block}
.app-shell .delivery-step strong{color:#34435a;font-size:13px}
.app-shell .delivery-step small{margin-top:4px;color:#8a95a6;font-size:11px}
.app-shell .delivery-step time{color:#929daf;font-size:10px}
.app-shell .delivery-step.succeeded i{border-color:#79bea5;background:#ecf8f3;color:#28795d}
.app-shell .delivery-step.running i{border-color:#86a8f2;background:#eef3ff;color:#2f64cf}
.app-shell .delivery-step.failed i{border-color:#e4a3ad;background:#fff2f4;color:#bd3e51}
.app-shell .delivery-checklist-list{display:grid}
.app-shell .delivery-checklist-list article{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:20px;align-items:center;padding:17px 20px;border-bottom:1px solid #edf0f5}
.app-shell .delivery-checklist-list article:last-child{border-bottom:0}
.app-shell .delivery-checklist-list strong{color:#2d3b51;font-size:14px}
.app-shell .delivery-checklist-list p{margin:6px 0 0;color:#727f92;font-size:12px;line-height:1.65}
.app-shell .delivery-checklist-list select{height:36px;padding:0 30px 0 10px;font-size:12px}
.app-shell .delivery-field-message{min-height:18px;margin-top:2px;color:#78869a;font-size:12px;line-height:1.5}
.app-shell .delivery-field-message.error{padding:10px 12px;border:1px solid #f0cbd1;border-radius:7px;background:#fff7f8;color:#b83248}
.app-shell .delivery-field-message.success{color:#258060}
@media(max-width:1100px){.app-shell .delivery-detail-grid{grid-template-columns:1fr}.app-shell .merchant-deployment-identity{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .merchant-deployment-identity>div{border-bottom:1px solid var(--cp-line)}}
@media(max-width:760px){.app-shell .delivery-start{align-items:stretch;flex-direction:column}.app-shell .delivery-start-controls{min-width:0;width:100%;display:grid}.app-shell .delivery-checklist-list article{grid-template-columns:1fr}.app-shell .delivery-checklist-list select{width:100%}.app-shell .deployment-version-grid{grid-template-columns:1fr}.app-shell .deployment-version-grid>div{border-right:0;border-bottom:1px solid #e0e6ed}.app-shell .deployment-version-grid>div:last-child{border-bottom:0}.app-shell .merchant-deployment-identity{grid-template-columns:1fr}}
@media(max-width:520px){.app-shell .metric-grid,.loading-grid,.sms-stats-summary,.app-shell .sms-template-summary{grid-template-columns:1fr}.app-shell .metric-card{min-height:110px}.app-shell .page-head h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.app-shell *,.modal,.toast{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* Navigation hierarchy: top-level modules above, current module pages on the left. */
.app-shell{--sidebar:252px}
.app-shell .topbar{inset:0 0 auto 0;padding:0;background:linear-gradient(100deg,#2468f5 0%,#3370ff 64%,#3d7cff 100%);backdrop-filter:none;border-bottom:0;box-shadow:0 8px 24px rgba(37,91,219,.16);color:#fff}
.app-shell .topbar .brand{width:var(--sidebar);height:var(--topbar);flex:0 0 var(--sidebar);display:flex;align-items:center;gap:11px;padding:0 20px;border-right:0;color:#fff;font-size:16px;font-weight:800;letter-spacing:-.01em}
.app-shell .topbar .brand-logo{width:38px;height:38px;flex:0 0 38px;border-radius:10px;box-shadow:0 6px 18px rgba(21,58,153,.2)}
.app-shell .topbar .brand-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-shell .topnav{min-width:0;height:100%;display:flex;align-items:stretch;gap:0;padding:0 10px;overflow-x:auto;scrollbar-width:none}
.app-shell .topnav::-webkit-scrollbar{display:none}
.app-shell .topnav a{position:relative;min-width:76px;height:100%;display:flex;align-items:center;justify-content:center;padding:0 14px;border-radius:0;color:rgba(255,255,255,.76);font-size:14px;font-weight:550;white-space:nowrap}
.app-shell .topnav a:hover{background:rgba(255,255,255,.08);color:#fff}
.app-shell .topnav a.active{background:transparent;color:#fff;box-shadow:none;font-weight:750}
.app-shell .topnav a.active:after{content:"";display:block;position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#fff}
.app-shell .top-actions{margin-left:auto;flex:0 0 auto;border-left:1px solid rgba(255,255,255,.16)}
.app-shell .icon-button,.app-shell .user-button{color:rgba(255,255,255,.86)}
.app-shell .icon-button{width:38px;padding:0;justify-content:center}
.app-shell .icon-button:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff}
.app-shell .user-button:hover{background:rgba(255,255,255,.1);color:#fff}
.app-shell .avatar{background:#fff;color:var(--cp-blue-deep)}
.app-shell .operator-copy{min-width:74px}
.app-shell .operator-copy strong{color:#fff}
.app-shell .sidebar{inset:var(--topbar) auto 0 0;width:var(--sidebar);min-height:0}
.app-shell .side-navigation{flex:1;min-height:0;overflow:auto}
.app-shell .sidebar-foot{flex:0 0 auto;margin-top:auto}
.app-shell .workspace{margin-left:var(--sidebar);padding-top:96px}
.app-shell .page-head{display:none}

.modal-layer,.toast-stack{
  --cp-blue:#3370ff;
  --cp-blue-deep:#1f5eff;
  --cp-cyan:#1f9d76;
  --cp-red:#d94a5f;
  --brand:#3370ff;
  --brand-soft:#eaf1ff;
  --line:#e0e5ee;
  --ink:#171a21;
  --muted:#5f6876;
}

body.sidebar-collapsed .app-shell{--sidebar:76px}
body.sidebar-collapsed .app-shell .topbar .brand{padding:0;justify-content:center}

/* Billing keeps dense accounting data readable and promotes payable status to an action. */
.app-shell .bill-filter-card .field:nth-child(2){min-width:260px}
.app-shell .bill-list-card .data-table td{height:68px}
.app-shell .bill-adjustment{color:var(--cp-red);font-weight:700}
.app-shell .bill-detail-page{display:grid;gap:18px}
.app-shell .bill-detail-head{position:fixed;top:calc(var(--topbar) + 20px);right:clamp(20px,2.3vw,38px);left:calc(var(--sidebar) + clamp(20px,2.3vw,38px));z-index:18;min-height:62px;display:flex;align-items:center;gap:14px;padding:0 18px;border:1px solid var(--cp-line);border-radius:var(--radius);background:rgba(255,255,255,.96);box-shadow:0 6px 18px rgba(30,54,94,.08);backdrop-filter:blur(12px);transition:left .2s ease}
.app-shell .bill-detail-head-spacer{height:62px}
.app-shell .bill-detail-heading{display:flex;align-items:baseline;gap:12px;min-width:0}
.app-shell .bill-detail-heading h2{margin:0;color:var(--ink);font-size:22px;white-space:nowrap}
.app-shell .bill-detail-heading span{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.app-shell .bill-detail-head .spacer{margin-left:auto}
.app-shell .bill-identity-card{display:grid;grid-template-columns:1.15fr repeat(4,minmax(0,1fr));overflow:hidden}
.app-shell .bill-identity-card>div{min-height:96px;padding:18px 20px;border-right:1px solid var(--cp-line);background:#fff}
.app-shell .bill-identity-card>div:last-child{border-right:0}
.app-shell .bill-identity-card span,.app-shell .bill-identity-card small{display:block;color:#8792a3;font-size:12px}
.app-shell .bill-identity-card strong{display:block;margin:9px 0 5px;color:#273349;font-size:16px;overflow-wrap:anywhere}
.app-shell .bill-identity-card>div:nth-child(2) strong{color:var(--cp-blue);font-size:21px}
.app-shell .bill-detail-section .data-table td{height:auto;min-height:68px;padding-top:12px;padding-bottom:12px}
.app-shell .bill-line-note{max-width:220px;margin-top:5px;white-space:normal}
.app-shell .bill-amount-summary{justify-self:stretch;padding:20px 28px 18px;border-color:#dce6f8;background:#f7faff}
.app-shell .bill-amount-row{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#5f6c82}
.app-shell .bill-amount-row span{font-size:14px;font-weight:550}
.app-shell .bill-amount-row strong{color:#273349;font-size:20px;font-variant-numeric:tabular-nums}
.app-shell .bill-amount-summary .total{min-height:68px;margin-top:3px;border-top:1px solid #d8e1ef;color:#273349}
.app-shell .bill-amount-summary .total span{font-size:19px;font-weight:750}
.app-shell .bill-amount-summary .total strong{color:var(--cp-blue);font-size:28px;font-weight:800}

/* Pricing plans: package family first, version history second. */
.app-shell .billing-plan-table-card{overflow:hidden}
.app-shell .billing-plan-tabs{display:flex;gap:28px;padding:0 22px;border-bottom:1px solid var(--cp-line);background:#fff}
.app-shell .billing-plan-tab{position:relative;min-height:56px;display:flex;align-items:center;gap:10px;padding:0 2px;border:0;background:transparent;color:#526075;cursor:pointer;text-align:left;transition:color .18s ease}
.app-shell .billing-plan-tab span{font-size:15px;font-weight:750}
.app-shell .billing-plan-tab small{color:#8793a5;font-size:12px;white-space:nowrap}
.app-shell .billing-plan-tab:hover{color:var(--cp-blue-deep)}
.app-shell .billing-plan-tab.active{color:var(--cp-blue-deep)}
.app-shell .billing-plan-tab.active::after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:3px;border-radius:3px 3px 0 0;background:var(--cp-blue)}
.app-shell .billing-plan-tab.active small{color:#5578ce}
.app-shell .billing-plan-tab:focus-visible{outline:3px solid rgba(51,112,255,.22);outline-offset:2px}
.app-shell .billing-plan-toolbar-title{display:grid;gap:4px}
.app-shell .billing-plan-toolbar-title strong{color:var(--ink);font-size:15px}
.app-shell .billing-plan-toolbar-title span{color:var(--muted);font-size:12px}
.app-shell .billing-plan-table-card .data-table td{height:auto;min-height:70px;padding-top:14px;padding-bottom:14px}
.app-shell .billing-plan-table-card .data-table .sticky-action{min-width:178px}
.app-shell .billing-plan-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:8px;align-items:center;justify-content:start}
.app-shell .billing-plan-actions.single{grid-template-columns:minmax(120px,max-content)}
.app-shell .billing-plan-actions .button.text{min-height:30px;padding:4px 9px;border:1px solid #d8e1ed;border-radius:6px;background:#fff;color:var(--cp-blue);line-height:20px;white-space:nowrap}
.app-shell .billing-plan-actions .button.text:hover{border-color:#aebfe0;background:#f5f8ff;color:#163fae}
.app-shell .billing-plan-actions .button.text.danger-text{border-color:#f0cbd1;color:var(--cp-red)}
.app-shell .billing-plan-actions .button.text.danger-text:hover{border-color:#e2aab3;background:#fff7f8;color:#b83248}
.app-shell .billing-plan-actions .plan-action-wide{grid-column:1/-1;width:100%}
.app-shell .field-span-two{grid-column:1/-1}
.app-shell .billing-rate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.app-shell .billing-rate-grid span{display:grid;grid-template-columns:1fr 90px 14px;align-items:center;gap:6px;padding:8px 10px;border:1px solid #dfe5ee;border-radius:7px;background:#f8faff;color:#526075;font-size:12px}
.app-shell .billing-rate-grid input{min-width:0}

/* Merchant storage: the capacity ruler is the page's single visual signature. */
.app-shell .storage-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.app-shell .storage-table-card .data-table td{height:auto;min-height:76px;padding-top:14px;padding-bottom:14px}
.storage-meter{position:relative;width:190px;max-width:100%;height:9px;overflow:hidden;margin-bottom:7px;border:1px solid #dce5f2;border-radius:999px;background:repeating-linear-gradient(90deg,#edf2f8 0,#edf2f8 calc(10% - 1px),#dce5f2 calc(10% - 1px),#dce5f2 10%)}
.storage-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d95ff,#3370ff);transition:width .28s ease}
.storage-meter.is-alert i{background:linear-gradient(90deg,#ffbb66,#ed5c6f)}
.storage-meter.is-empty i{width:0}
.storage-allocation-form{gap:14px}
.storage-allocation-merchant{display:grid;gap:4px;padding:15px 16px;border:1px solid #dce6f8;border-radius:8px;background:#f7faff}
.storage-allocation-merchant strong{color:#273349;font-size:16px}
.storage-allocation-merchant span,.storage-allocation-merchant small{color:#7e8a9e;font-size:12px}
.storage-capacity-input{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:10px}
.storage-long-term{display:inline-flex!important;align-items:center;gap:7px;margin-top:8px;color:#526075!important;font-weight:400!important;cursor:pointer}
.storage-long-term input{width:16px;height:16px;margin:0;accent-color:var(--cp-blue)}
.notice.compact{margin:0;padding:10px 12px}
@media(max-width:980px){.app-shell .storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.storage-meter i{transition:none}}

/* Merchant storage: the capacity ruler is the page's single visual signature. */
.app-shell .storage-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.app-shell .storage-table-card .data-table td{height:auto;min-height:76px;padding-top:14px;padding-bottom:14px}
.storage-meter{position:relative;width:190px;max-width:100%;height:9px;overflow:hidden;margin-bottom:7px;border:1px solid #dce5f2;border-radius:999px;background:repeating-linear-gradient(90deg,#edf2f8 0,#edf2f8 calc(10% - 1px),#dce5f2 calc(10% - 1px),#dce5f2 10%)}
.storage-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6d95ff,#3370ff);transition:width .28s ease}
.storage-meter.is-alert i{background:linear-gradient(90deg,#ffbb66,#ed5c6f)}
.storage-meter.is-empty i{width:0}
.storage-allocation-form{gap:14px}
.storage-allocation-merchant{display:grid;gap:4px;padding:15px 16px;border:1px solid #dce6f8;border-radius:8px;background:#f7faff}
.storage-allocation-merchant strong{color:#273349;font-size:16px}
.storage-allocation-merchant span,.storage-allocation-merchant small{color:#7e8a9e;font-size:12px}
.storage-capacity-input{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:10px}
.storage-long-term{display:inline-flex!important;align-items:center;gap:7px;margin-top:8px;color:#526075!important;font-weight:400!important;cursor:pointer}
.storage-long-term input{width:16px;height:16px;margin:0;accent-color:var(--cp-blue)}
.notice.compact{margin:0;padding:10px 12px}
@media(max-width:980px){.app-shell .storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.storage-meter i{transition:none}}

/* 平台支付账户池沿用商户端的纵向配置交互。 */
.app-shell .platform-payment-table-card{overflow:hidden}
.app-shell .platform-payment-table-card .sticky-action{min-width:190px}
.app-shell .platform-payment-actions{display:flex;flex-wrap:wrap;gap:8px 14px;min-width:150px}
.modal.platform-payment-modal{width:min(760px,calc(100vw - 36px));max-height:calc(100vh - 80px)}
.platform-payment-modal .modal-header{height:54px;padding:0 18px}
.platform-payment-modal .modal-header h2{font-size:16px}
.platform-payment-modal .modal-close{font-size:25px;font-weight:300}
.platform-payment-modal .modal-body{padding:18px 28px 16px}
.platform-payment-modal .modal-footer{padding:12px 18px}
.platform-payment-modal .modal-footer .button{height:36px;padding:0 18px}
.platform-payment-form{display:grid;gap:0;max-width:700px;margin:0 auto}
.platform-payment-form section{display:grid}
.platform-payment-form [hidden]{display:none!important}
.payment-form-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;align-items:start;padding:8px 0}
.payment-form-label{padding-top:10px;color:#556176;font-size:13px;font-weight:400;line-height:20px;text-align:right}
.payment-form-control{min-width:0;display:grid;gap:7px}
.payment-form-control>input{width:100%}
.payment-form-control small{color:#909aaa;font-size:11px;line-height:1.55}
.payment-radio-group{display:flex;flex-wrap:wrap;align-items:center;gap:16px;min-height:40px}
.payment-radio{display:inline-flex;align-items:center;gap:8px;color:#3e4a5e;font-size:13px;cursor:pointer}
.payment-radio input{width:16px;height:16px;margin:0;accent-color:var(--cp-blue)}
.payment-radio input:disabled+span{color:#8d97a6}
.inline-actions{min-height:40px;display:flex;align-items:center;gap:12px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff}.inline-actions strong{color:var(--ink)}
.modal.ai-material-create-modal{width:min(980px,calc(100vw - 72px))}.modal.ai-material-create-modal .modal-header{height:64px;padding:0 30px;background:#fff}.modal.ai-material-create-modal .modal-header h2{display:flex;align-items:center;gap:12px;font-size:22px}.modal.ai-material-create-modal .modal-header h2:before{width:4px;height:26px;content:"";border-radius:3px;background:var(--cp-blue)}.modal.ai-material-create-modal .modal-body{padding:24px 30px 28px}.modal.ai-material-create-modal .modal-footer{padding:16px 30px}.modal.ai-material-create-modal .modal-footer .button{min-width:92px;height:40px;font-size:14px}.ai-material-create-boundary{margin:0 0 18px!important;padding:14px 17px!important}.ai-material-create-boundary strong{display:block;margin-bottom:2px;font-size:15px}.ai-material-type-field>label{display:block;margin-bottom:10px;color:#4c5b72;font-size:15px}.ai-material-create-modal .service-options{display:flex;flex-wrap:wrap;gap:10px}.ai-material-type-option{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid #dce4ee;border-radius:6px;background:#fff;color:#4f5d73;font-size:14px;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,color .16s ease}.ai-material-type-option:hover{border-color:#9ebdf5;background:#f7faff}.ai-material-type-option:has(input:checked){border-color:#4f7edc;background:#f2f6ff;color:#285cae;font-weight:600}.ai-material-type-option input{width:16px!important;height:16px!important;margin:0;padding:0;accent-color:var(--cp-blue)}.ai-material-create-modal #aiMaterialCreateFields{margin-top:18px}.ai-material-create-modal .modal-form{gap:16px}.ai-material-create-modal .modal-form .field>label{font-size:15px}
@media(max-width:720px){.modal.ai-material-create-modal{width:calc(100vw - 24px)}.modal.ai-material-create-modal .modal-header,.modal.ai-material-create-modal .modal-body,.modal.ai-material-create-modal .modal-footer{padding-left:20px;padding-right:20px}.modal.ai-material-create-modal .modal-header h2{font-size:20px}.ai-material-type-option{height:34px;padding:0 10px;font-size:13px}}
.ai-material-create-modal .ai-material-type-option{padding:0 2px;border:0;border-radius:0;background:transparent;transition:color .16s ease}.ai-material-create-modal .ai-material-type-option:hover{border-color:transparent;background:transparent;color:#285cae}.ai-material-create-modal .ai-material-type-option:has(input:checked){border-color:transparent;background:transparent;box-shadow:none;color:#285cae}
.payment-form-divider{display:flex;align-items:center;gap:14px;margin:17px 0 9px;color:#2e3b50;font-size:14px;font-weight:650}
.payment-form-divider:before,.payment-form-divider:after{content:"";height:1px;flex:1;background:#e5eaf0}
.payment-form-divider span{white-space:nowrap}
.payment-form-alert{padding-top:0}
.payment-form-alert .notice{padding-top:10px;padding-bottom:10px}
.pem-upload{min-height:40px;display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:12px}
.pem-upload .button{width:104px;padding:0 14px}
.pem-upload-display{min-width:0;color:#a5adba!important;background:#fff!important;cursor:default}
.pem-upload-display.configured{color:#7f8b9c!important}
.pem-upload-display.selected{color:#4c5a70!important}

@media(max-width:720px){
  .payment-form-row{grid-template-columns:1fr;gap:6px}
  .payment-form-label{padding-top:0;text-align:left}
  .payment-form-alert>span{display:none}
  .platform-payment-modal .modal-body{padding:16px 18px}
  .pem-upload{grid-template-columns:1fr}
  .pem-upload .button{width:100%}
}

/* Recharge catalog: five resource families share one auditable publishing rail. */
.app-shell .recharge-readiness{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(260px,1.2fr) minmax(280px,1fr);gap:26px;align-items:center;margin-bottom:16px;padding:20px 22px;border-color:#dbe5f4;background:linear-gradient(115deg,#fbfdff 0%,#f5f8ff 100%)}
.app-shell .recharge-readiness>div:first-child{display:grid;gap:4px}
.app-shell .recharge-readiness span,.app-shell .recharge-readiness small{color:#7c899b;font-size:12px}
.app-shell .recharge-readiness strong{color:#25334a;font-size:19px;font-variant-numeric:tabular-nums}
.app-shell .recharge-readiness p{margin:0;color:#647187;font-size:12px;line-height:1.7}
.app-shell .recharge-readiness-track{height:10px;overflow:hidden;border:1px solid #d8e2f0;border-radius:999px;background:repeating-linear-gradient(90deg,#eaf0f8 0,#eaf0f8 calc(20% - 1px),#d8e2f0 calc(20% - 1px),#d8e2f0 20%)}
.app-shell .recharge-readiness-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#25a279,#3370ff);transition:width .24s ease}
.app-shell .recharge-sku-card{overflow:hidden}
.app-shell .recharge-item-tabs{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:0;border-bottom:1px solid var(--cp-line);background:#f8faff}
.app-shell .recharge-item-tab{min-width:0;display:flex;align-items:center;gap:10px;padding:14px 16px;border:0;border-right:1px solid #e8edf5;background:transparent;color:#56647a;cursor:pointer;text-align:left}
.app-shell .recharge-item-tab:last-child{border-right:0}
.app-shell .recharge-item-tab>span:last-child{min-width:0;display:grid;gap:3px}
.app-shell .recharge-item-tab strong{overflow:hidden;color:inherit;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.app-shell .recharge-item-tab small{color:#909bac;font-size:11px;white-space:nowrap}
.app-shell .recharge-item-tab:hover{background:#fff}
.app-shell .recharge-item-tab.active{background:#fff;color:var(--cp-blue-deep);box-shadow:inset 0 -3px 0 var(--cp-blue)}
.app-shell .recharge-item-tab:focus-visible{position:relative;z-index:1;outline:3px solid rgba(51,112,255,.22);outline-offset:-3px}
.recharge-item-mark{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:8px;background:#e9f1ff;color:#2468db;font-size:12px;font-weight:800}
.recharge-item-mark.traffic{background:#e5f7f4;color:#087e72}.recharge-item-mark.storage{background:#f0edff;color:#674dc0}.recharge-item-mark.sms{background:#fff3d7;color:#a86500}.recharge-item-mark.ai{background:#ffedf4;color:#ae3c68}
.app-shell .recharge-sku-card .data-table td{height:auto;min-height:82px;padding-top:14px;padding-bottom:14px}
.app-shell .recharge-sku-name{display:grid;gap:5px}.app-shell .recharge-sku-name strong{color:#26344b;font-size:14px}.app-shell .recharge-price{color:#1f5ee8;font-size:17px;font-variant-numeric:tabular-nums}
.app-shell .recharge-detail-note{max-width:360px;margin-top:6px;line-height:1.55;white-space:normal}
.modal.recharge-sku-modal{width:min(720px,calc(100vw - 36px))}
.recharge-sku-identity{display:flex;align-items:center;gap:13px;margin-bottom:18px;padding:14px 16px;border:1px solid #dce5f2;border-radius:8px;background:#f7faff}
.recharge-sku-identity>div{min-width:0;display:grid;gap:4px}.recharge-sku-identity strong{color:#26344b;font-size:15px}.recharge-sku-identity small{overflow:hidden;color:#7d899b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.recharge-sku-form{gap:14px;margin-bottom:16px}
@media(max-width:980px){.app-shell .recharge-readiness{grid-template-columns:1fr 1fr}.app-shell .recharge-readiness p{grid-column:1/-1}.app-shell .recharge-item-tabs{grid-template-columns:repeat(3,minmax(130px,1fr))}.app-shell .recharge-item-tab:nth-child(3){border-right:0}}
@media(max-width:620px){.app-shell .recharge-readiness{grid-template-columns:1fr;gap:14px}.app-shell .recharge-readiness p{grid-column:auto}.app-shell .recharge-item-tabs{display:flex;overflow-x:auto}.app-shell .recharge-item-tab{min-width:132px}.recharge-sku-form{grid-template-columns:1fr}.recharge-sku-form .full-row{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.app-shell .recharge-readiness-track i{transition:none}}

@media(max-width:960px){
  .app-shell .bill-identity-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .bill-identity-card>div{border-bottom:1px solid var(--cp-line)}
  .app-shell .bill-detail-head{top:calc(var(--topbar) + 20px)}
}

@media(max-width:1050px){
  .app-shell{--sidebar:76px}
  .app-shell .topbar .brand{padding:0;justify-content:center}
  .app-shell .topbar .brand-name{display:none}
  .app-shell .topnav{padding:0 6px}
  .app-shell .topnav a{min-width:66px;padding:0 10px}
  .app-shell .topbar-health{display:none}
}
@media(max-width:900px){
  .app-shell .topnav a{min-width:52px;padding:0 8px}
  .app-shell .top-actions{padding-left:8px}
  .app-shell .operator-copy,.app-shell .avatar{display:none}
  .app-shell .icon-button{display:none}
  .app-shell .user-button{display:block}
}
@media(max-width:760px){
  .app-shell{--sidebar:68px;--topbar:62px}
  .app-shell .topbar .brand{width:68px;flex-basis:68px}
  .app-shell .topbar .brand-logo{width:34px;height:34px;flex-basis:34px}
  .app-shell .topnav{flex:1;padding:0 4px}
  .app-shell .topnav a{min-width:45px;padding:0 6px;font-size:12px}
  .app-shell .topnav a.active:after{left:7px;right:7px}
  .app-shell .top-actions{padding:0 7px;border-left:1px solid rgba(255,255,255,.16)}
  .app-shell .user-button{padding:0 4px;color:rgba(255,255,255,.88)}
  .app-shell .sidebar{display:flex;inset:var(--topbar) auto 0 0;width:var(--sidebar)}
  .app-shell .sidebar-title{height:62px;flex:0 0 62px;padding:0;justify-content:center}
  .app-shell .sidebar-title>div,.app-shell .side-group-title span:not(.group-icon),.app-shell .side-group-title .chevron,.app-shell .side-link span,.app-shell .sidebar-foot{display:none}
  .app-shell .side-navigation{padding:12px 8px}
  .app-shell .side-group-title,.app-shell .side-link{justify-content:center;padding:0}
  .app-shell .side-link .side-icon{width:28px}
  .app-shell .workspace{margin-left:var(--sidebar);padding-top:82px}
  .app-shell .bill-detail-head{top:calc(var(--topbar) + 12px);right:12px;left:calc(var(--sidebar) + 12px)}
  .app-shell .billing-plan-tabs{gap:20px;padding:0 14px;overflow-x:auto}
  .app-shell .billing-plan-tab{flex:0 0 auto}
}
