:root { color-scheme: light; --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fb; --border: #e3e6eb; --text: #1d2330; --text-2: #52596a; --muted: #8a91a0; --accent: #2a78d6; --accent-ink: #ffffff; --series-1: #2a78d6; --good: #1a7f37; --good-bg: #e6f4ea; --bad: #c62828; --bad-bg: #fdecea; --warn: #9a6700; --warn-bg: #fff4d6; --sidebar: #1b2130; --sidebar-text: #c9cfdb; --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); } @media (prefers-color-scheme: dark) { :root { color-scheme: dark; --bg: #12151c; --surface: #1a1e27; --surface-2: #20252f; --border: #2c3240; --text: #e8ebf1; --text-2: #b4bccb; --muted: #7d8697; --accent: #3987e5; --series-1: #3987e5; --good: #4ac26b; --good-bg: #16301f; --bad: #f07070; --bad-bg: #3a1c1c; --warn: #e0b341; --warn-bg: #352b10; --sidebar: #0d1016; --shadow: none; } } * { box-sizing: border-box; } body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); } [hidden] { display: none !important; } h1 { font-size: 22px; margin: 0; } h2 { font-size: 15px; margin: 0 0 12px; } a { color: var(--accent); } code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; } /* Login */ .login { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; width: 100%; max-width: 360px; display: grid; gap: 14px; box-shadow: var(--shadow); } .login-card .brand { color: var(--text); margin-bottom: 8px; } .error { color: var(--bad); min-height: 1em; margin: 0; } /* Layout */ .app { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; } .sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; } .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; color: #fff; padding: 0 8px 18px; } .logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 16px; } nav { display: grid; gap: 2px; } nav a { color: var(--sidebar-text); text-decoration: none; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; } nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; } nav a.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; } nav .ico { width: 18px; text-align: center; opacity: .85; } .sidebar-foot { margin-top: auto; display: grid; gap: 6px; padding: 12px 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); } .whoami { font-size: 13px; padding: 0 8px 4px; } .sidebar .btn.ghost { color: var(--sidebar-text); border-color: rgba(255, 255, 255, .12); } main { padding: 24px 28px 48px; min-width: 0; } .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .page-head p { margin: 4px 0 0; color: var(--text-2); } /* Cards & grid */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; } .grid { display: grid; gap: 16px; } .grid.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .tile .label { color: var(--text-2); font-size: 12.5px; } .tile .value { font-size: 26px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; } .tile .sub { color: var(--muted); font-size: 12px; margin-top: 2px; } .stack { display: grid; gap: 16px; } /* Buttons & forms */ a.btn { text-decoration: none; display: inline-block; } .btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 550; white-space: nowrap; } .btn:hover { background: var(--surface-2); } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(1.07); } .btn.danger { color: var(--bad); } .btn.ghost { background: transparent; } .btn.small { padding: 5px 10px; font-size: 12.5px; } .btn:disabled { opacity: .5; cursor: default; } label { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); font-weight: 550; } input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; } textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; } input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); } .check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); } .check input { width: auto; } .hint { color: var(--muted); font-size: 12px; font-weight: 400; } .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; } .toolbar > * { flex: 0 1 auto; } .toolbar input, .toolbar select { width: auto; min-width: 140px; } .form-grid { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } /* Tables */ .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; } th { font-size: 12px; color: var(--text-2); font-weight: 600; background: var(--surface-2); white-space: nowrap; } tr:last-child td { border-bottom: 0; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; } td.actions { text-align: right; white-space: nowrap; } td.wrap { max-width: 420px; overflow-wrap: anywhere; } .empty { padding: 28px; text-align: center; color: var(--muted); } .card .table-wrap { border: 0; } .mini td, .mini th { padding: 6px 4px; } /* Badges */ .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; } .badge.ok { background: var(--good-bg); color: var(--good); border-color: transparent; } .badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; } .badge.info { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: transparent; } /* Bar chart */ .chart { position: relative; } .chart svg { display: block; width: 100%; height: 180px; overflow: visible; } .chart .bar { fill: var(--series-1); } .chart .bar.hover { fill: color-mix(in srgb, var(--series-1) 75%, var(--text)); } .chart .axis { fill: var(--muted); font-size: 11px; } .chart .grid-line { stroke: var(--border); stroke-width: 1; } .chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); } /* Modal & toast */ dialog { border: 1px solid var(--border); border-radius: 14px; padding: 0; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); } dialog::backdrop { background: rgba(10, 14, 22, .45); } #modal-form { padding: 22px; display: grid; gap: 14px; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .toast { position: fixed; bottom: 20px; right: 20px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 100; max-width: calc(100vw - 40px); } .toast.err { background: var(--bad); color: #fff; } .secret { padding: 10px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; overflow-wrap: anywhere; user-select: all; } .pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--text-2); } .kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; } @media (max-width: 820px) { .app { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; height: auto; padding: 12px; } nav { grid-auto-flow: column; overflow-x: auto; } nav a { white-space: nowrap; } .sidebar-foot { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; } .toolbar input, .toolbar select { min-width: 0; flex: 1 1 140px; } main { padding: 16px; } }