:root {
  --bg: #f4f2f8;
  --surface: #fff;
  --text: #1c1530;
  --muted: #5c5670;
  --accent: #6b46c1;
  --accent-hover: #55309e;
  --border: #e2ddf0;
  --radius: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; color: var(--accent); }
.site-nav__user { color: var(--muted); font-size: 0.9rem; }

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }

.hero h1 { margin-top: 0; font-size: 1.75rem; }
.hero__lead { color: var(--muted); max-width: 42rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(107, 70, 193, 0.12);
}
.card--muted {
  pointer-events: none;
  opacity: 0.65;
}
.card__title { margin: 0 0 0.5rem; font-size: 1.05rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.muted { color: var(--muted); }

.dir-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.dir-list li {
  margin: 0.35rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.dir-list a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.dir-list a:hover { text-decoration: underline; }

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.badge {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.process__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0;
}

.auth-box {
  max-width: 380px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form__label { display: block; margin-top: 1rem; font-size: 0.9rem; }
.form__label:first-child { margin-top: 0; }
.form__input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.form .btn { margin-top: 1.25rem; width: 100%; }

.msg { padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.95rem; }
.msg--error { background: #fde8e8; color: #9b1c1c; }
.msg--ok { background: #e8f5e9; color: #1b5e20; }

.inline-form { margin-top: 1rem; }
