:root {
  --ink: #16202c;
  --ink-soft: #4b5768;
  --muted: #7c8798;
  --line: #e4e8ee;
  --bg: #fbfbfa;
  --card: #ffffff;
  --brand: #0f4c5c;
  --brand-soft: #eaf3f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}

h1 {
  font-size: 26px;
  margin: 0 0 32px;
}

.space-block { margin-bottom: 36px; }

.space-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.doc-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.doc-card:hover { border-color: var(--brand); }
.doc-card .t { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.doc-card .s { font-size: 13.5px; color: var(--ink-soft); }

.empty { color: var(--muted); font-size: 14px; }

.topbar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 44px;
}
.topbar-nav a { color: var(--muted); }
.topbar-nav .who a { color: var(--brand); font-weight: 600; }

.btn-login {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-login:hover { opacity: .9; }

.anon-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  text-align: center;
}
.anon-empty p { color: var(--ink-soft); margin: 0 0 18px; font-size: 14.5px; }

.login-card {
  max-width: 360px;
  margin: 120px auto;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.login-card h1 { font-size: 20px; margin-bottom: 24px; }
.login-card label { display: block; font-size: 13px; color: var(--ink-soft); margin: 16px 0 6px; }
.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.login-card button {
  margin-top: 24px;
  width: 100%;
  padding: 11px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.login-card .error { color: #a3251f; font-size: 13px; margin-top: 14px; }
