:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #172033; background: #f5f7fb; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input, select { font: inherit; } button { cursor: pointer; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }.sidebar { background: #111b2e; color: #e9eef8; padding: 28px 18px 20px; display: flex; flex-direction: column; gap: 26px; }.sidebar h1 { margin: 4px 0 0; font-size: 20px; }.eyebrow { letter-spacing: .09em; font-size: 11px; font-weight: 700; margin: 0; color: #64748b; }.sidebar .eyebrow { color: #8da1c1; }.sidebar nav { display: grid; gap: 4px; }.sidebar a { border-radius: 7px; color: #c9d5e8; padding: 10px 11px; text-decoration: none; font-size: 14px; }.sidebar a:hover, .sidebar a.active { background: #203353; color: #fff; }.sidebar a span { float: right; color: #8da1c1; font-size: 11px; }.sidebar-footer { border-top: 1px solid #2b3b58; margin-top: auto; padding-top: 16px; font-size: 13px; }.sidebar-footer p { margin: 0 0 8px; }.button-link { border: 0; background: transparent; padding: 0; color: #b8cdf2; text-decoration: underline; }
.main-content { min-width: 0; padding: 0 34px 36px; }.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 28px 0 22px; border-bottom: 1px solid #dce3ee; }.topbar h2 { font-size: 25px; margin: 4px 0 0; }.readonly-notice { margin: 0; border: 1px solid #c7d7f2; background: #edf4ff; color: #274a7a; padding: 8px 11px; border-radius: 6px; font-size: 13px; }.page-section { margin-top: 24px; }.grid { display: grid; gap: 16px; }.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }.cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }.capability-list { grid-template-columns: minmax(0, 1fr); }.card, .table-wrap, .notice { background: #fff; border: 1px solid #dfe6f0; border-radius: 8px; }.card { padding: 18px; }.capability-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }.capability-card-content { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(360px, 1fr); gap: 22px; align-items: start; }.metric-value { font-size: 32px; font-weight: 750; margin: 8px 0 0; }.card h3 { font-size: 16px; margin: 0 0 8px; }.muted { color: #65738a; font-size: 13px; }.id { color: #40516e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: break-word; word-break: normal; }.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }.detail-grid dl { margin: 0; }.detail-grid dt { font-size: 12px; color: #66758b; }.detail-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; }.table-wrap { overflow-x: auto; }.table { width: 100%; border-collapse: collapse; font-size: 13px; }.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e7ecf3; vertical-align: top; }.table th { background: #f8fafc; color: #526176; font-weight: 650; white-space: nowrap; }.table tr:last-child td { border-bottom: 0; }.matrix-table .table { min-width: max-content; }.matrix-table .table th:first-child, .matrix-table .table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 220px; background: #fff; }.matrix-table .table th:first-child { z-index: 2; background: #f8fafc; }.link { color: #1559a6; text-decoration: none; }.link:hover { text-decoration: underline; }.status { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650; background: #eff2f6; color: #3e4a5c; }.status.healthy, .status.success, .status.enabled { background: #e3f5ea; color: #17673d; }.status.unknown { background: #f1f3f6; color: #566274; }.status.unhealthy, .status.failure { background: #fce8e8; color: #a12a2a; }.status.registered { background: #e7f0ff; color: #265b9e; }.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }.filters label { display: grid; gap: 5px; font-size: 12px; color: #526176; }.filters input, .filters select, .login-card input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 9px; background: #fff; color: #172033; }.filters button, .primary-button, .login-card button { border: 1px solid #1559a6; border-radius: 6px; padding: 8px 13px; color: #fff; background: #1559a6; }.secondary-button { border: 1px solid #aab8cb; border-radius: 6px; padding: 7px 11px; color: #26364e; background: #fff; }.section-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }.section-header h3 { margin: 0; font-size: 18px; }.notice { padding: 15px; color: #526176; }.error { background: #fff1f1; border-color: #efc2c2; color: #9b2020; }.loading { color: #65738a; padding: 26px 0; }.raw-warning { background: #fff8e8; border-color: #ead9a4; color: #725a14; }.json { margin: 0; padding: 15px; max-width: 100%; overflow: auto; white-space: pre-wrap; word-break: break-word; background: #111b2e; color: #e6edf7; border-radius: 6px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }.timeline { display: grid; gap: 10px; }.timeline-item { border-left: 3px solid #8cabd7; padding: 10px 12px; background: #f8fafc; }.matrix-cell { min-width: 180px; }.pager { display: flex; justify-content: center; margin-top: 14px; }
.contract-explorer { margin-top: 14px; }.explorer-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }.explorer-toolbar button.active { background: #e8f0fc; border-color: #6e98cf; color: #174f94; }.schema-tree { border: 1px solid #dfe6f0; border-radius: 7px; padding: 8px 0; background: #fbfcfe; }.schema-node { display: grid; grid-template-columns: minmax(160px, .9fr) minmax(120px, .65fr) minmax(110px, .55fr); gap: 10px; align-items: center; padding: 7px 12px; border-bottom: 1px solid #edf1f6; font-size: 13px; }.schema-node:last-child { border-bottom: 0; }.schema-node .id { font-weight: 600; }.schema-node-type { color: #465d7e; }.schema-node-meta { color: #66758b; font-size: 12px; }.schema-copy-status { color: #17673d; font-size: 12px; }
.login-page { display: grid; min-height: 100vh; place-items: center; background: #edf2f8; }.login-card { width: min(100% - 32px, 390px); padding: 34px; background: #fff; border: 1px solid #d9e1ed; border-radius: 10px; box-shadow: 0 12px 35px rgba(31, 48, 75, .08); }.login-card h1 { margin: 5px 0; }.login-card form { display: grid; gap: 16px; margin-top: 26px; }.login-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }.login-card button { margin-top: 4px; }.form-error { margin: 0; color: #a12a2a; font-size: 13px; }
@media (max-width: 820px) { .admin-shell { grid-template-columns: 1fr; }.sidebar { gap: 14px; padding: 16px; }.sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.sidebar-footer { margin-top: 0; }.main-content { padding: 0 17px 24px; }.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.topbar { align-items: flex-start; flex-direction: column; }.detail-grid, .capability-card-content { grid-template-columns: 1fr; }.capability-card { grid-template-columns: 1fr; align-items: start; } }
