@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root { color-scheme: dark; --bg: #141516; --surface: #202224; --surface-2: #292b2e; --line: #36383c; --text: #f5f5f3; --muted: #b7babf; --accent: #f7cf53; --green: #70c79a; --red: #ed857e; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 Inter, system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topbar { height: 82px; padding: 0 clamp(18px,3vw,52px); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: #18191a; position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 182px; height: 66px; object-fit: cover; }
.version { border: 1px solid #9c8538; color: var(--accent); border-radius: 4px; padding: 3px 6px; font-size: 11px; font-weight: 700; }
.top-links { display: flex; align-items: center; gap: clamp(12px,2vw,28px); margin-left: auto; color: var(--muted); font-weight: 600; }
.top-links a.active { color: var(--accent); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-name { color: var(--muted); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.layout { display: grid; grid-template-columns: 226px minmax(0,1fr); min-height: calc(100vh - 82px); }
.rail { border-right: 1px solid var(--line); padding: 30px 12px; background: #18191a; }
.rail-label { margin: 0 12px 12px; color: #8f9499; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.rail a { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 6px; color: #c4c7ca; padding: 10px 12px; margin-bottom: 3px; font-weight: 500; }
.rail a svg { width: 17px; height: 17px; flex: none; }
.rail a:hover, .rail a.active { background: #2b2d2e; color: #fff; }
.rail a.active { box-shadow: inset 3px 0 var(--accent); }
.rail-divider { margin: 20px 12px; border-top: 1px solid var(--line); }
.main { width: min(100%, 1100px); padding: clamp(24px,3.6vw,54px); margin: 0 auto; min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(27px,3vw,38px); line-height: 1.15; margin: 8px 0 10px; letter-spacing: 0; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; letter-spacing: 0; }
h3 { font-size: 15px; line-height: 1.4; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { color: var(--muted); max-width: 700px; font-size: 15px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.page-head .lede { margin-bottom: 0; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #505258; background: var(--surface-2); color: #f4f4f2; border-radius: 6px; min-height: 36px; padding: 7px 13px; font-weight: 600; white-space: nowrap; }
.action:hover { background: #36383b; color: #fff; }
.action.primary { background: var(--accent); border-color: var(--accent); color: #181914; }
.action.primary:hover { background: #ffdc72; color: #181914; }
.action.danger { color: #ffc0b9; border-color: #77534f; }
.action:disabled { opacity: .45; cursor: not-allowed; }
.action svg { width: 16px; height: 16px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.item-list { border-top: 1px solid var(--line); }
.item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.item-body { min-width: 0; flex: 1; }
.item p { color: var(--muted); margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.item-meta { color: #a2a6ad; font-size: 12px; margin-top: 8px; }
.item-actions { display: flex; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #52555a; border-radius: 4px; color: #c9cbd0; font-size: 11px; font-weight: 600; }
.pill.up { border-color: #3b7959; color: #93deb0; }
.pill.down { border-color: #8f4f49; color: #ffc0b9; }
.pill.unknown { border-color: #66686b; color: #c8c9c9; }
.summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 40px; }
.summary { padding: 20px; }
.summary strong { display: block; font-size: 22px; margin: 5px 0; }
.summary span { color: var(--muted); font-size: 12px; }
.section-title { margin: 32px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.quick-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.quick-link { min-height: 95px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.quick-link strong { display: block; margin-bottom: 4px; }
.quick-link span { color: var(--muted); font-size: 12px; }
.post-body { color: #d6d7d9; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.post-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-block:first-of-type { padding-top: 0; }
.post-block h2 { margin: 8px 0; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 12px; }
.staff-person { position: relative; padding: 0 19px 19px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; overflow: hidden; }
.staff-banner { width: calc(100% + 38px); height: 88px; margin: 0 -19px 12px; background: #374038; }
.staff-person:nth-child(3n + 2) .staff-banner { background: #323943; }
.staff-person:nth-child(3n) .staff-banner { background: #49422c; }
.staff-banner img { display: block; width: 100% !important; height: 100% !important; border-radius: 0 !important; object-fit: cover; }
.staff-person .staff-avatar, .staff-person .staff-initial { position: absolute; top: 55px; left: 17px; width: 54px; height: 54px; border: 4px solid var(--surface); }
.staff-person > div:not(.staff-banner):not(.staff-initial) { padding-top: 22px; }
.staff-initial { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #3e3b2c; color: var(--accent); font-size: 17px; font-weight: 700; }
.staff-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.staff-person p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.empty { padding: 24px 0; color: var(--muted); }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.editor-tabs button.active { border-color: var(--accent); color: var(--accent); }
.notice { padding: 13px 16px; border-left: 3px solid var(--accent); color: #e3e0d5; background: #2b2a24; margin: 14px 0 22px; }
.notice.error { border-color: var(--red); background: #302421; color: #ffc0b9; }
.notice[hidden], [hidden] { display: none !important; }
dialog { width: min(580px,calc(100vw - 24px)); max-height: min(85vh,760px); overflow: auto; border: 1px solid #55585a; border-radius: 8px; background: #252729; color: var(--text); box-shadow: 0 20px 80px #000a; padding: 0; }
dialog::backdrop { background: #000a; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 20px 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--line); }
.field { display: block; margin-bottom: 14px; color: #d8d9db; font-size: 12px; font-weight: 600; }
.field input, .field textarea, .field select { display: block; width: 100%; margin-top: 6px; background: #191a1c; border: 1px solid #55585c; border-radius: 5px; color: #fff; padding: 10px; min-height: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input[type=checkbox] { width: 17px; min-height: 17px; display: inline-block; vertical-align: middle; margin: 0 8px 0 0; }
.field small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.public-layout { max-width: 1050px; margin: 0 auto; padding: 48px 28px 90px; }
.public-layout .page-head { margin-bottom: 36px; }
.public-nav { margin-left: auto; display: flex; gap: 23px; color: var(--muted); }
.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav summary { list-style: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav > div { display: grid; position: absolute; top: calc(100% + 9px); right: 0; width: 160px; padding: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 35px #0007; }
.mobile-nav a { padding: 8px 9px; border-radius: 4px; }
.mobile-nav a:hover { background: var(--surface-2); }
.component-list { border-top: 1px solid var(--line); margin-bottom: 36px; }
.status-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 18px 20px; margin-bottom: 24px; border: 1px solid #3d704f; border-left: 3px solid #70c79a; border-radius: 6px; background: #1e2b24; }
.status-summary strong { font-size: 17px; }
.status-summary span { color: #c3c8c4; }
.status-summary.down { background: #312422; border-color: #864a45; border-left-color: #ed857e; }
.status-summary.unknown { background: #2d2b23; border-color: #766b3a; border-left-color: #f7cf53; }
.status-detail { color: #d9dbdc !important; }
.component { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.component small { display: block; color: var(--muted); margin-top: 3px; }
.component .uptime { font-variant-numeric: tabular-nums; color: #d4d6d8; }
.footer { border-top: 1px solid var(--line); color: #969ba0; padding: 24px clamp(18px,3vw,52px); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
@media (max-width: 760px) { .topbar { height: auto; min-height: 68px; padding: 7px 14px; gap: 3px 8px; flex-wrap: wrap; } .brand img { width: 144px; height: 52px; } .top-links { order: 3; width: 100%; margin: 0; gap: 20px; padding: 0 0 7px; font-size: 12px; } .account { order: 2; } .public-nav { display: none; } .mobile-nav { display: block; } .account-name { display: none; } .layout { display: block; } .rail { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 2px; overflow-x: auto; padding: 7px 10px; } .rail-label, .rail-divider { display: none; } .rail a { width: auto; white-space: nowrap; padding: 8px; margin: 0; font-size: 12px; } .rail a svg { display: none; } .main, .public-layout { padding: 26px 17px 70px; } .page-head { align-items: flex-start; flex-direction: column; } .summary-grid, .quick-links { grid-template-columns: 1fr; } .item { flex-wrap: wrap; } .item-actions { margin-left: auto; } .component { grid-template-columns: 1fr auto; } .component .uptime { grid-column: 1/-1; } .footer { flex-wrap: wrap; } }
