:root { color-scheme: light; --bg: #f6f7fb; --surface: #ffffff; --surface-muted: #f0f3f8; --border: #d9e0ea; --border-strong: #bcc7d5; --text: #172033; --muted: #657286; --blue: #2563eb; --blue-dark: #1d4ed8; --green: #15803d; --amber: #b45309; --red: #b91c1c; --shadow: 0 10px 30px rgba(23, 32, 51, 0.08); } * { box-sizing: border-box; } html, body { margin: 0; min-height: 100%; } body { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; } button, input, select, textarea { font: inherit; } button { border: 0; } code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; } .shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; } .sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 16px; background: #111827; color: #eef2ff; display: flex; flex-direction: column; gap: 22px; } .brand { display: flex; align-items: center; gap: 12px; } .brand-mark { width: 38px; height: 38px; border-radius: 8px; background: #2563eb; color: #ffffff; display: grid; place-items: center; font-weight: 800; font-size: 13px; } .brand-title { font-weight: 700; font-size: 15px; } .brand-subtitle, .connection-subtitle, .muted { color: var(--muted); } .brand-subtitle, .connection-subtitle { color: #94a3b8; font-size: 12px; } .nav { display: grid; gap: 5px; } .nav-item { width: 100%; padding: 9px 10px; border-radius: 6px; background: transparent; color: #cbd5e1; text-align: left; cursor: pointer; } .nav-item:hover, .nav-item.is-active { background: rgba(255, 255, 255, 0.09); color: #ffffff; } .connection-box { margin-top: auto; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; } .connection-title { font-weight: 700; } .state-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #94a3b8; flex: 0 0 auto; } .state-ok { background: #22c55e; } .state-warn, .state-loading { background: #f59e0b; } .state-bad { background: #ef4444; } .main { min-width: 0; padding: 24px; } .topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; } h1, h2, p { margin: 0; } h1 { font-size: 24px; font-weight: 750; } h2 { font-size: 15px; font-weight: 730; } .topbar p, .panel-head p, .metric-note, .muted { color: var(--muted); font-size: 12px; } .topbar-actions, .row-actions, .filter-row, .pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .view { display: none; } .view.is-active { display: grid; gap: 16px; } .status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .metric, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); } .metric { padding: 14px; } .metric-label { color: var(--muted); font-size: 12px; } .metric-value { margin-top: 6px; font-size: 22px; font-weight: 760; overflow-wrap: anywhere; } .panel { overflow: hidden; } .panel-head { min-height: 58px; padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .panel-head.split { align-items: flex-start; } .grid { display: grid; gap: 16px; } .two-col { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr); } .btn { min-height: 34px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: #ffffff; color: var(--text); cursor: pointer; white-space: nowrap; } .btn:hover { border-color: var(--blue); color: var(--blue-dark); } .btn-primary { border-color: var(--blue); background: var(--blue); color: #ffffff; } .btn-primary:hover { background: var(--blue-dark); color: #ffffff; } .btn-danger { border-color: #fecaca; color: var(--red); } .btn-small { min-height: 28px; padding: 5px 9px; font-size: 12px; } .inline-check, .inline-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; } .inline-label input { width: 80px; } input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; background: #ffffff; color: var(--text); padding: 8px 10px; outline: none; } input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); } textarea { resize: vertical; } .filter-row { padding: 12px 16px; border-bottom: 1px solid var(--border); } .filter-row input, .filter-row select { max-width: 260px; } .form { display: grid; gap: 11px; padding: 14px 16px; } .form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .manual-meta { border-bottom: 1px solid var(--border); } .manual-meta label { max-width: 420px; } .table-wrap { width: 100%; overflow: auto; } .table-wrap.compact { max-height: 560px; } table { width: 100%; border-collapse: collapse; } th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; } th { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; } td code { overflow-wrap: anywhere; } tr.clickable { cursor: pointer; } tr.clickable:hover { background: var(--surface-muted); } .empty, .empty-block { color: var(--muted); text-align: center; } .empty-block { padding: 18px; } .pager { justify-content: space-between; padding: 12px 16px; } .list { display: grid; } .list-item { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .list-item:last-child { border-bottom: 0; } .compact-item { padding-block: 10px; } .pill { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-muted); color: var(--muted); font-size: 12px; white-space: nowrap; } .pill-ok { border-color: #bbf7d0; background: #f0fdf4; color: var(--green); } .pill-warn { border-color: #fde68a; background: #fffbeb; color: var(--amber); } .pill-bad { border-color: #fecaca; background: #fef2f2; color: var(--red); } .pill-neutral { border-color: var(--border); background: var(--surface-muted); color: var(--muted); } .kv-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; padding: 6px 16px 14px; } .kv-list dt, .kv-list dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); } .kv-list dt { color: var(--muted); font-size: 12px; } .kv-list dd { overflow-wrap: anywhere; } .log-box { min-height: 280px; margin: 0; padding: 14px; background: #0f172a; color: #dbeafe; overflow: auto; white-space: pre-wrap; word-break: break-word; } .unit-editor { display: grid; gap: 12px; padding: 14px 16px 16px; } .unit-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: #fbfcfe; display: grid; gap: 10px; } .unit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .unit-meta { display: flex; flex-wrap: wrap; gap: 6px; } .unit-meta span { padding: 3px 7px; border-radius: 6px; background: var(--surface-muted); color: var(--muted); font-size: 12px; } .source-label textarea { background: #f8fafc; color: #334155; } .settings-panel { max-width: 720px; } .toast-region { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 30; } .toast { max-width: min(420px, calc(100vw - 36px)); padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow); background: #ecfdf5; color: var(--green); border: 1px solid #bbf7d0; } .toast-warn { background: #fffbeb; color: var(--amber); border-color: #fde68a; } .toast-bad { background: #fef2f2; color: var(--red); border-color: #fecaca; } @media (max-width: 1080px) { .shell { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; } .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .two-col, .status-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 720px) { .main { padding: 16px; } .topbar { flex-direction: column; } .topbar-actions, .row-actions, .filter-row { width: 100%; } .btn, .filter-row input, .filter-row select { max-width: none; } .status-grid, .two-col, .form-grid, .nav { grid-template-columns: 1fr; } .kv-list { grid-template-columns: 1fr; } .kv-list dt { border-bottom: 0; padding-bottom: 2px; } .kv-list dd { padding-top: 0; } }