:root {
  --bg: #f5f6f8; --card: #fff; --text: #1c2027; --muted: #6a7280; --line: #e3e6eb; --soft: #f0f2f5;
  --accent: #4f46e5; --accent-soft: #eef0ff; --ok: #15803d; --ok-soft: #e8f6ed; --err: #c62828; --err-soft: #fdecec;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12141a; --card: #1a1d24; --text: #e6e8ec; --muted: #9aa2b1; --line: #2c313b; --soft: #222630;
    --accent: #8b87ff; --accent-soft: #25264a; --ok: #4ade80; --ok-soft: #173024; --err: #ff6b6b; --err-soft: #3d1c1c; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; } h2 { font-size: 16px; margin: 0 0 12px; font-weight: 620; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; height: 54px; }
.logo { font-weight: 700; font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-weight: 520; }
.nav a.on, .nav a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.who { color: var(--muted); display: flex; gap: 12px; align-items: center; font-size: 13px; }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.tile { display: block; color: var(--text); transition: border-color .15s; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile b { font-size: 16px; display: block; margin-bottom: 6px; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login { width: 100%; max-width: 360px; }
.field { margin: 12px 0; } .field label { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input:not([type]) {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 560; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.alert { padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.alert.err { background: var(--err-soft); color: var(--err); } .alert.ok { background: var(--ok-soft); color: var(--ok); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 560; font-size: 12.5px; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-form input { width: auto; min-width: 160px; flex: 1; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.tag.off { background: var(--soft); color: var(--muted); }
section { margin-top: 22px; }
@media (max-width: 640px) { .top-in { gap: 10px; } .who span { display: none; } table { font-size: 13px; } }
