:root { --bg: #f1f1f1; --surface: #fff; --surface-2: #f7f7f7; --border: #e3e3e3; --text: #303030; --text-2: #616161; --text-3: #8a8a8a; --accent: #2a78d6; --radius: 12px; --mono: ui-monospace, SFMono-Regular, Menlo, monospace; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: #005bd3; text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 15px; margin: 0 0 12px; }
.topbar { background: #1a1a1a; color: #fff; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; position: sticky; top: 0; z-index: 10; }
.topbar a { color: #fff; } .brand { font-weight: 700; display: flex; gap: 10px; align-items: center; }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #2a78d6, #1baf7a); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 52px); }
.side { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { color: var(--text); padding: 7px 12px; border-radius: 8px; font-weight: 550; }
.side a.on, .side a:hover { background: #fff; text-decoration: none; }
.main { padding: 24px; max-width: 1180px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sub { color: var(--text-2); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.05); padding: 18px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; } .card.flush h2 { padding: 16px 18px 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); } .kpi { padding: 16px 18px; border-right: 1px solid var(--border); } .kpi:last-child { border: 0; }
.kpi small { color: var(--text-2); font-weight: 550; } .kpi b { display: block; font-size: 22px; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12.5px; color: var(--text-2); font-weight: 550; background: var(--surface-2); } tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr[data-href] { cursor: pointer; } tr[data-href]:hover td { background: #fafafa; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #c9c9c9; background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.btn:hover { text-decoration: none; background: #f6f6f6; } .btn-primary { background: #303030; border-color: #303030; color: #fff; } .btn-primary:hover { background: #1a1a1a; }
.btn-danger { color: #b42318; } .btn-sm { height: 28px; padding: 0 10px; font-size: 13px; } .btn-block { width: 100%; justify-content: center; }
form.inline { display: inline; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; } .field > span { font-weight: 550; }
.input, select, textarea { width: 100%; font: inherit; padding: 7px 10px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: var(--text); }
.input:focus, select:focus, textarea:focus { outline: 2px solid #005bd3; outline-offset: -1px; }
.help { color: var(--text-2); font-size: 12.5px; } .check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 550; background: #e8e8e8; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.b-active { background: #cdfee1; color: #0c5132; } .b-trial { background: #e0f0ff; color: #00527c; } .b-past_due { background: #ffeb78; color: #4f4700; }
.b-suspended, .b-cancelled { background: #fedad9; color: #8e1f0b; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; } .flash-success { background: #cdfee1; color: #0c5132; } .flash-error { background: #fedad9; color: #8e1f0b; }
.banner { padding: 10px 14px; border-radius: 10px; background: #e0f0ff; color: #00527c; margin-bottom: 14px; } .banner.warn { background: #fff1c2; color: #5e4200; } .banner.crit { background: #fedad9; color: #8e1f0b; }
code, .mono { font-family: var(--mono); font-size: 12.5px; } pre { background: #1a1a1a; color: #e9e9e9; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; white-space: pre; margin: 0; }
.copy-wrap { position: relative; } .copy-wrap .btn { position: absolute; top: 8px; right: 8px; height: 26px; font-size: 12px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 6px 0 2px; } .bar span { display: block; height: 100%; background: #2a78d6; }
.bar.high span { background: #eda100; } .bar.full span { background: #d03b2f; }
dl.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; } dl.dl dt { color: var(--text-2); } dl.dl dd { margin: 0; }
.muted { color: var(--text-2); } .subtle { color: var(--text-3); font-size: 12.5px; } .strong { font-weight: 600; } .danger { color: #b42318; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.plan.current { border-color: #2a78d6; box-shadow: 0 0 0 1px #2a78d6; } .plan .price { font-size: 26px; font-weight: 750; } .plan .price small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-2); } .plan form { margin-top: auto; }
.public { max-width: 920px; margin: 0 auto; padding: 32px 16px; } .public-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 700; font-size: 16px; }
.login { max-width: 380px; margin: 12vh auto; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { flex-direction: row; overflow-x: auto; padding: 8px; } .grid, .grid-3 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } .main { padding: 16px; } dl.dl { grid-template-columns: 1fr; } }
