:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #122033;
  --muted: #5d6b80;
  --primary: #0a7b75;
  --primary-strong: #085f5a;
  --border: #dde5f0;
  --shadow: 0 16px 36px rgba(18, 32, 51, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% -10%, #dff5f2 0, transparent 30%),
    radial-gradient(circle at 100% 0%, #e9f0ff 0, transparent 25%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #0f2b42;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button {
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: #21405f;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-links a:hover,
.nav-links button:hover {
  background: #edf4ff;
}

main {
  padding: 2rem 0 2.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.section-intro {
  margin-bottom: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.card + .card {
  margin-top: 1rem;
}

.card-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.card-subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.two-col {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1.2fr;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem 1rem;
}

.meta-item {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid #e8eef7;
}

.meta-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #56718f;
  margin-bottom: 0.2rem;
}

form p {
  margin: 0 0 0.85rem;
}

label {
  display: block;
  color: #274764;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9d6e5;
  border-radius: 11px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #66a6dc;
  box-shadow: 0 0 0 3px rgba(102, 166, 220, 0.25);
}

.helptext {
  display: block;
  margin-top: 0.35rem;
  color: #6d7f96;
  font-size: 0.8rem;
}

.errorlist {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  color: #c1272d;
}

.btn,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a7b75, #0f8b84);
  color: #fff;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.64rem 0.95rem;
  cursor: pointer;
}

.btn:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #086a65, #0b7872);
}

.btn-secondary {
  background: #eff4fb;
  color: #204462;
  border: 1px solid #d5e1ef;
}

.btn-secondary:hover {
  background: #e2edf8;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #56708d;
  padding: 0.75rem;
  border-bottom: 1px solid #e6edf7;
  background: #f6f9ff;
}

tbody td {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid #edf2f9;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e6f4f3;
  color: #0a605c;
  font-size: 0.75rem;
  font-weight: 800;
}

.collection {
  list-style: none;
  margin: 0;
  padding: 0;
}

.collection-item {
  background: var(--surface-soft);
  border: 1px solid #e8eef7;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.collection-item + .collection-item {
  margin-top: 0.6rem;
}

.pre-json {
  background: #f6f9ff;
  border: 1px solid #dce7f7;
  border-radius: 10px;
  padding: 0.8rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1a314a;
  font-size: 0.82rem;
}

.notice {
  border: 1px solid #dce8f8;
  background: #f1f6ff;
  color: #2b4763;
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  margin-bottom: 0.9rem;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.auth-card {
  width: min(460px, 100%);
}

.hero {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.hero-points {
  margin: 0;
  padding-left: 1.1rem;
  color: #2f4a67;
}

.hero-points li + li {
  margin-top: 0.45rem;
}

.fc {
  --fc-border-color: #dce5f2;
  --fc-button-bg-color: #0a7b75;
  --fc-button-border-color: #0a7b75;
  --fc-button-hover-bg-color: #086a65;
  --fc-button-hover-border-color: #086a65;
  --fc-button-active-bg-color: #085f5a;
  --fc-button-active-border-color: #085f5a;
}

@media (max-width: 940px) {
  .two-col,
  .hero {
    grid-template-columns: 1fr;
  }
}
