@font-face { font-family: "DM Sans"; src: url(/static/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/static/fonts/space-grotesk-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root { --navy: #182246; --navy-2: #222e5c; --cyan: #00c2e0; --cyan-d: #009fb8; --bg: #f5f7fb; --card: #fff; --text: #1b2240; --muted: #5d6685; --line: #e3e7f0; --err: #c62f3b; --ok: #14865f; --r: 12px; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "DM Sans", system-ui, sans-serif; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 600; color: var(--navy); line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: 1.9rem; margin-top: .4em; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
a { color: var(--cyan-d); } a:hover { color: var(--navy); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 40px; }
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand span { font-family: "Space Grotesk"; font-weight: 600; color: var(--cyan); border-left: 1px solid #ffffff40; padding-left: 10px; }
nav.main { display: flex; gap: 4px; flex: 1; } nav.main a, .me a { color: #d7dcef; text-decoration: none; padding: 6px 12px; border-radius: 8px; }
nav.main a:hover, nav.main a.active, .me a.active { background: var(--navy-2); color: #fff; } nav.main a.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.me { display: flex; align-items: center; gap: 6px; font-size: .92rem; } .me form { margin: 0; }
button.link { background: none; border: 0; color: #d7dcef; cursor: pointer; font: inherit; padding: 6px 8px; } button.link:hover { color: var(--cyan); }
.foot { color: var(--muted); font-size: .85rem; padding: 18px 20px 28px; } .foot a { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: 0 1px 2px #1822460a; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat b { display: block; font: 600 2rem "Space Grotesk"; color: var(--navy); } .stat span { color: var(--muted); font-size: .9rem; }
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 70%, #0f4d6a 100%); color: #fff; border-radius: var(--r); padding: 28px 30px; margin-bottom: 22px; }
.hero h1 { color: #fff; margin: 0 0 6px; } .hero p { margin: 0; color: #c9d1ee; } .hero .accent { color: var(--cyan); }
.btn, button.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan); color: var(--navy); border: 0; border-radius: 999px; padding: 9px 20px; font: 600 .95rem "DM Sans"; text-decoration: none; cursor: pointer; }
.btn:hover { background: #33d0e8; color: var(--navy); } .btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--cyan); }
.btn.small { padding: 5px 12px; font-size: .85rem; } .btn.danger { background: #fde8ea; color: var(--err); }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #cfd5e4; border-radius: 10px; padding: 10px 12px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
textarea { min-height: 420px; font: 14px/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; } .flash.ok { background: #e3f7ef; color: var(--ok); } .flash.error { background: #fde8ea; color: var(--err); }
body.auth { background: radial-gradient(circle at 20% 10%, #23306a 0, var(--navy) 55%); }
body.auth main.wrap { display: grid; place-items: center; } body.auth .foot, body.auth .foot a { color: #9aa5cf; }
.auth-card { width: 100%; max-width: 410px; margin-top: 6vh; } .auth-card .logo { display: block; margin: 0 auto 22px; }
.auth-card h1 { font-size: 1.45rem; text-align: center; margin: 0 0 4px; } .auth-card .sub { text-align: center; color: var(--muted); margin: 0 0 8px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 20px; padding: 11px; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .spacer { flex: 1; }
.list { list-style: none; padding: 0; margin: 0; } .list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; } .list li:last-child { border: 0; }
.list a { font-weight: 600; text-decoration: none; color: var(--navy); } .list a:hover { color: var(--cyan-d); } .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 9px; border-radius: 999px; background: #e6f9fc; color: #04788b; font-weight: 600; } .pill.off { background: #eceef4; color: var(--muted); }
.doc { line-height: 1.7; } .doc img { max-width: 100%; border-radius: 8px; } .doc pre { background: var(--navy); color: #e5ebff; padding: 14px 16px; border-radius: 10px; overflow: auto; } .doc code { background: #eef1f8; padding: 1px 5px; border-radius: 5px; font-size: .9em; } .doc pre code { background: none; padding: 0; }
.doc blockquote { border-left: 3px solid var(--cyan); margin: 1em 0; padding: 2px 16px; color: var(--muted); } .doc table { margin: 1em 0; } .doc > :first-child { margin-top: 0; }
.crumbs { color: var(--muted); font-size: .9rem; } .crumbs a { color: var(--muted); }
mark { background: #c9f4fb; color: inherit; padding: 0 2px; border-radius: 3px; }
.search { display: flex; gap: 8px; } .search input { flex: 1; }
.copy { font: 13px ui-monospace, monospace; background: #f1f4fa; border: 1px dashed #b9c2d8; border-radius: 8px; padding: 10px; word-break: break-all; }
.tiles a { display: block; text-decoration: none; color: inherit; } .tiles a:hover .card { border-color: var(--cyan); } .tiles h3 { margin: 0 0 4px; } .tiles p { margin: 0; color: var(--muted); font-size: .92rem; }
.soon { opacity: .6; }
@media (max-width: 720px) { .top-in { gap: 10px; } .brand span { display: none; } nav.main a, .me a { padding: 6px 8px; } .me a { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hide-sm { display: none; } .card { padding: 18px; } h1 { font-size: 1.5rem; } }
@media (max-width: 720px) {
  .me > a { display: none; } nav.main { gap: 0; } .top-in { gap: 6px; }
  .grid:first-of-type { grid-template-columns: repeat(3, 1fr); gap: 10px; } .stat b { font-size: 1.3rem; } .stat span { font-size: .78rem; }
  .list li { flex-direction: column; gap: 2px; } .meta { white-space: normal; }
  .hero { padding: 22px; } .row.between h1 { margin-bottom: 0; }
}
@media (max-width: 720px) { .top-in { padding: 0 12px; } .brand img { height: 26px; } nav.main a { padding: 6px 7px; font-size: .9rem; } button.link { padding: 6px 2px; font-size: .9rem; } }
.card:has(> table) { overflow-x: auto; } @media (max-width: 720px) { th, td { padding: 8px 5px; font-size: .88rem; } }
.row > input, .row > select { width: auto; }
