:root { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #1d2026; background: #f5f6f8; letter-spacing: 0; }
.platform-admin-note { min-height: 66px; border: 1px solid #d8e0ea; border-radius: 7px; background: #eef3f9; padding: 13px 15px; }.platform-admin-note strong, .platform-admin-note span { display: block; }.platform-admin-note strong { font-size: 13px; }.platform-admin-note span { margin-top: 5px; color: #667b93; font-size: 11px; }.platform-admin-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.platform-app-card { align-self: start; border: 1px solid #dfe2e7; border-radius: 7px; background: #fff; padding: 15px; }.platform-app-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding-bottom: 12px; border-bottom: 1px solid #eceef1; }.platform-app-card header strong, .platform-app-card header span { display: block; }.platform-app-card header strong { font-size: 14px; }.platform-app-card header span { margin-top: 4px; color: #8b919a; font-size: 10px; }.platform-app-card > label, .platform-app-card details label { display: block; margin-top: 10px; color: #606772; font-size: 10px; }.platform-app-card input { width: 100%; height: 35px; margin-top: 5px; border: 1px solid #d8dce2; border-radius: 5px; padding: 0 9px; }.platform-app-card details { margin-top: 12px; border: 1px solid #e2e5e9; border-radius: 5px; padding: 9px 10px; }.platform-app-card summary { cursor: pointer; color: #59616d; font-size: 10px; }.platform-app-card > button { width: 100%; height: 35px; margin-top: 12px; border: 0; border-radius: 5px; background: #242830; color: #fff; }.platform-app-card .check-field { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }.platform-app-card .check-field input { width: 14px; height: 14px; margin: 0; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 1040px; min-height: 100vh; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-shell { min-height: 100vh; display: grid; place-items: center; background: #16181d; }
.login-panel { width: 360px; padding: 34px; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: #ff3157; color: #fff; font-weight: 800; }
.login-panel h1 { margin: 22px 0 5px; font-size: 24px; }
.login-panel p { margin: 0 0 25px; color: #818792; font-size: 13px; }
.login-panel label, .plan-card label { display: block; margin-top: 14px; color: #626873; font-size: 12px; }
.login-panel input, .plan-card input { width: 100%; height: 40px; margin-top: 7px; border: 1px solid #d9dce1; border-radius: 5px; padding: 0 10px; outline: 0; }
.login-panel input:focus, .plan-card input:focus { border-color: #737a85; }
.login-panel button, .plan-card button { width: 100%; height: 40px; margin-top: 18px; border: 0; border-radius: 5px; background: #20232a; color: #fff; font-weight: 650; }
.form-error { min-height: 18px; margin-top: 10px; color: #c92e4b; font-size: 12px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
aside { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; background: #15171c; color: #fff; }
.brand { height: 55px; display: flex; align-items: center; gap: 10px; padding: 0 7px; }
.brand > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #ff3157; font-size: 12px; font-weight: 800; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 14px; }.brand small { margin-top: 4px; color: #777e89; font-size: 10px; }
nav { display: flex; flex-direction: column; gap: 5px; margin-top: 30px; }
nav button, .logout { height: 39px; border: 0; border-radius: 5px; background: transparent; color: #9197a1; padding: 0 12px; text-align: left; font-size: 12px; }
nav button:hover, nav button.active { background: #292c33; color: #fff; }
.logout { margin-top: auto; border-top: 1px solid #2d3037; border-radius: 0; }
main { min-width: 0; padding: 0 30px 40px; }
main > header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e3e7; }
header h1 { margin: 0; font-size: 21px; } header p { margin: 6px 0 0; color: #858b95; font-size: 12px; }
.outline { height: 34px; border: 1px solid #d5d8dd; border-radius: 5px; background: #fff; color: #545a64; padding: 0 12px; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.metrics article { min-height: 116px; padding: 18px; border: 1px solid #e0e3e7; border-radius: 7px; background: #fff; }
.metrics span, .metrics small, .metrics strong { display: block; }.metrics span { color: #6d737e; font-size: 11px; }.metrics strong { margin-top: 12px; font-size: 24px; }.metrics small { margin-top: 7px; color: #9a9fa8; font-size: 10px; }
.content { min-height: 400px; }
.table-wrap { overflow: hidden; border: 1px solid #e0e3e7; border-radius: 7px; background: #fff; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 13px 14px; border-bottom: 1px solid #eceef1; text-align: left; font-size: 11px; } th { background: #fafbfc; color: #777d87; font-size: 10px; font-weight: 650; } td strong, td small { display: block; } td small { margin-top: 4px; color: #8e949d; font-size: 9px; }
td select { min-width: 105px; height: 30px; border: 1px solid #dadee3; border-radius: 4px; background: #fff; padding: 0 7px; font-size: 10px; }
.status { min-width: 54px; height: 26px; border: 0; border-radius: 4px; font-size: 9px; }.status.active { background: #e0f3eb; color: #176d50; }.status.disabled { background: #ffe5ea; color: #b92d48; }
.event { padding: 4px 6px; border-radius: 3px; background: #edf0f3; color: #646b75; font-size: 9px; }.event.settled { background: #e0f3eb; color: #176d50; }.event.failed { background: #ffe5ea; color: #b92d48; }.event.reserved { background: #fff0cb; color: #825f19; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-card { padding: 19px; border: 1px solid #e0e3e7; border-radius: 7px; background: #fff; }.plan-card > div { padding-bottom: 13px; border-bottom: 1px solid #eceef1; }.plan-card strong, .plan-card span { display: block; }.plan-card strong { font-size: 15px; }.plan-card span { margin-top: 4px; color: #969ba4; font-size: 10px; }.plan-card input { height: 34px; margin-top: 5px; font-size: 11px; }
td code { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #616873; font-size: 9px; }
.model-admin { display: grid; gap: 16px; }
.model-create { border: 1px solid #dfe2e6; border-radius: 7px; background: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 16px; }
.model-create > div { grid-column: 1 / -1; align-self: center; }.model-create strong, .model-create span { display: block; }.model-create strong { font-size: 14px; }.model-create span { max-width: 520px; margin-top: 5px; color: #858b95; font-size: 10px; line-height: 1.5; }
.model-create label, .model-definition label, .endpoint-fields label { color: #666d77; font-size: 10px; }.model-create input, .model-create select, .model-definition input, .endpoint-fields input { width: 100%; height: 34px; margin-top: 5px; border: 1px solid #d9dde2; border-radius: 4px; background: #fff; padding: 0 8px; outline: 0; color: #252930; font-size: 10px; }
.model-create button, .model-definition button, .endpoint-row button, .endpoint-create button { min-height: 34px; border: 0; border-radius: 4px; padding: 0 10px; font-size: 10px; }.model-create button, .model-definition button[type="submit"], .save-route, .add-route { background: #22262d; color: #fff; }
.model-routes { display: grid; gap: 14px; }.model-route { border: 1px solid #dfe2e6; border-radius: 7px; background: #fff; overflow: hidden; }.model-definition { min-height: 76px; display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(110px, 1fr)); align-items: center; gap: 9px; padding: 12px 15px; background: #fafbfc; border-bottom: 1px solid #e4e7ea; }
.model-title { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 9px; }.model-title strong, .model-title small { display: block; }.model-title strong { font-size: 13px; }.model-title small { margin-top: 4px; color: #89909a; font-size: 9px; }.model-kind { width: 42px; height: 26px; border-radius: 4px; display: grid; place-items: center; background: #e8edf7; color: #365d9a; font-size: 9px; font-weight: 700; }.model-kind.video { background: #f7e7ec; color: #9e3851; }
.check-field { min-height: 34px; display: flex !important; align-items: center; gap: 6px; white-space: nowrap; }.check-field input { width: 15px !important; height: 15px !important; margin: 0 !important; accent-color: #22262d; }.danger-outline { border: 1px solid #efcbd2 !important; background: #fff7f8 !important; color: #a72c45 !important; }
.endpoint-list { padding: 0 15px; }.endpoint-row { padding: 15px 0; border-bottom: 1px solid #e7e9ec; }.endpoint-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.endpoint-heading strong, .endpoint-heading span { display: block; }.endpoint-heading strong { font-size: 12px; }.endpoint-heading strong i { display: inline-flex; min-height: 20px; margin-right: 7px; border-radius: 3px; background: #eceff3; align-items: center; padding: 0 6px; color: #555e69; font-size: 8px; font-style: normal; }.endpoint-heading div > span { margin: 4px 0 0; color: #8c929b; font-size: 9px; }
.route-status { min-height: 23px; border-radius: 4px; display: inline-flex; align-items: center; padding: 0 7px; font-size: 8px; }.route-status.healthy { background: #e0f3eb; color: #176d50; }.route-status.failed { background: #ffe5ea; color: #b92d48; }.route-status.pending { background: #fff0cb; color: #825f19; }.route-status.disabled { background: #eceef1; color: #6f7680; }
.endpoint-fields { margin-top: 11px; display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; gap: 8px; }.endpoint-fields .wide { min-width: 0; }.endpoint-error { margin: 10px 0 0; border-left: 2px solid #d44861; padding-left: 8px; color: #a72c45; font-size: 9px; line-height: 1.5; }.endpoint-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; color: #8d939c; font-size: 8px; }.endpoint-row footer { margin-top: 10px; display: flex; justify-content: flex-end; gap: 6px; }.endpoint-row footer .test-route { border: 1px solid #d5d9de; background: #fff; color: #545b65; }
.empty-endpoints, .empty-models { min-height: 82px; display: grid; place-items: center; color: #9298a1; font-size: 10px; }.endpoint-create-wrap { margin: 0 15px 15px; border: 1px dashed #cfd4da; border-radius: 5px; }.endpoint-create-wrap summary { min-height: 38px; display: flex; align-items: center; padding: 0 11px; color: #555d68; cursor: pointer; font-size: 10px; font-weight: 650; }.endpoint-create { border-top: 1px solid #e4e7ea; padding: 12px; background: #fafbfc; }.endpoint-create > button { display: block; margin: 11px 0 0 auto; }
.route-events { display: grid; gap: 9px; }.route-events > div:first-child strong, .route-events > div:first-child span { display: block; }.route-events > div:first-child strong { font-size: 13px; }.route-events > div:first-child span { margin-top: 4px; color: #8b919a; font-size: 10px; }.route-events .table-wrap { overflow-x: auto; }.route-events table { min-width: 900px; }
@media (max-width: 1280px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
