﻿:root {
  --bg: #eef2ec;
  --panel: #ffffff;
  --ink: #16312a;
  --muted: #4b6a62;
  --line: #c9d6cf;
  --accent: #0f7b65;
  --accent-soft: #d7efe7;
  --legacy: #6d596d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 5%, #ddeee7 0, transparent 36%),
    radial-gradient(circle at 92% 8%, #fff0d4 0, transparent 30%),
    linear-gradient(180deg, #eef2ec 0%, #e6ece8 100%);
  color: var(--ink);
}

.shell-app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px;
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 14px 18px;
  box-shadow: 0 10px 20px rgba(12, 25, 21, 0.08);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.locale-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.small-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.lang-btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6faf8;
  color: var(--ink);
  font-weight: 700;
  min-width: 50px;
  padding: 7px 12px;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), #1f977e);
}

.top-nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 12px;
  border-radius: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.nav-link.active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), #1f977e);
  color: #fff;
}

.nav-badge {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #b5d8cc;
}

.nav-link.active .nav-badge {
  color: #e7fff6;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.page-main {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
}

.phase-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b8cfc5;
  background: #f0fbf6;
  color: #1a6d59;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 10px 0 6px;
  font-size: 31px;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 82ch;
}

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

.status-card,
.page-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px;
}

.status-card h2,
.page-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.status-card p,
.page-card p,
.page-card li {
  margin: 0;
  color: var(--muted);
}

.status-lines {
  display: grid;
  gap: 6px;
}

.status-line {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f9fcfb;
}

.page-body {
  display: grid;
  gap: 12px;
}

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

.page-link {
  margin-top: 10px;
  display: inline-flex;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  font-weight: 700;
  background: #f8fbfa;
}

.page-link:hover,
.page-link:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.export-menu {
  position: relative;
  display: inline-flex;
}

.export-menu-trigger {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #f7fbf9;
  font-weight: 700;
  color: var(--ink);
}

.export-menu-trigger .caret {
  font-size: 11px;
  margin-left: 2px;
}

.export-menu-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(12, 25, 21, 0.15);
  display: none;
  min-width: 120px;
  z-index: 10;
}

.export-menu.open .export-menu-list {
  display: block;
}

.export-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 700;
}

.export-item:hover,
.export-item:focus-visible {
  border-color: var(--line);
  background: #f5faf8;
  outline: none;
}

.export-item:disabled {
  cursor: not-allowed;
  color: #8ca29b;
}

.list-clean {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ead3a6;
  background: #fff5e4;
  color: #744a13;
  font-size: 14px;
}

.note-legacy {
  border-color: #d9c9d9;
  background: #f7f1f7;
  color: var(--legacy);
}

@media (max-width: 760px) {
  .shell-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 26px;
  }
}
