@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&display=swap");
@media (max-width: 720px) {
  .landing .top {
    align-items: center;
  }
  .landing .brand {
    min-width: 0;
    gap: 6px;
    white-space: nowrap;
    font-size: 16px;
  }
  .landing .brand img {
    width: 34px;
    height: 26px;
  }
  .landing .top nav {
    margin-left: auto;
    overflow: visible;
  }
  .landing .top nav a:not(.nav-action) {
    display: none;
  }
  .landing .top .nav-action {
    padding: 8px 10px;
    font-size: 14px;
  }
  .landing .top {
    padding-right: 8px;
    padding-left: 8px;
  }
}
.mcp-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #bdd0cd;
  border-radius: 6px;
  background: #e3f0ef;
}
.mcp-address code {
  overflow: auto;
  padding: 8px;
  border-radius: 3px;
  background: #fff;
  color: #17232b;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .mcp-address {
    grid-template-columns: 1fr;
  }
  .mcp-address .text-button {
    justify-self: start;
  }
}
:root {
  --canvas: #f3f7f8;
  --paper: #fff;
  --ink: #17232b;
  --text: #33454f;
  --muted: #718087;
  --line: #dbe4e7;
  --green: #27675f;
  --mint: #e3f0ef;
  --amber: #80602b;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Golos Text", "Golos UI", sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--canvas);
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
.wrap {
  width: min(calc(100% - 96px), var(--max));
  margin: 0 auto;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px max(48px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(174, 188, 204, 0.5);
  background: rgba(243, 247, 248, 0.9);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
}
.brand img {
  width: 50px;
  height: 34px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top nav a,
.text-button {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.top nav a:hover,
.text-button:hover {
  color: var(--ink);
  background: rgba(23, 35, 43, 0.045);
}
.top .nav-action {
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
  min-height: calc(100svh - 65px);
  padding: 72px 0;
}
.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero h1,
h1,
h2 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(47px, 5.3vw, 74px);
  line-height: 1.01;
  letter-spacing: -0.04em;
}
.lead {
  max-width: 620px;
  margin: 25px 0 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(23, 35, 43, 0.15);
}
.button.quiet {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}
.archive-card {
  padding: 16px;
  border: 1px solid #afbec7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 54px rgba(31, 48, 73, 0.12);
}
.archive-top {
  display: flex;
  justify-content: space-between;
  padding: 4px 5px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.archive-top i {
  color: var(--green);
  font-style: normal;
}
.archive-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-size: 14px;
}
.archive-row b,
.source-number {
  color: var(--green);
  font-size: 12px;
}
.archive-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.muted-row {
  opacity: 0.56;
}
.archive-card > p {
  margin: 17px 4px 3px;
  color: var(--muted);
  font-size: 13px;
}
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}
.strip div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  color: var(--muted);
  font-size: 14px;
}
.strip strong {
  color: var(--ink);
}
.section {
  padding-top: 118px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}
.section h2,
.contact h2 {
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head > p:last-child,
.connection p,
.access-card p,
.panel-head p,
.muted {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.source {
  min-height: 245px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}
.source.current {
  border-color: #b8d3cf;
  background: var(--mint);
}
.source h3 {
  margin: 42px 0 11px;
  font-size: 22px;
}
.source p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.source small {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 700;
}
.workflow ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.workflow li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.workflow li > b {
  color: var(--green);
  font-size: 14px;
}
.workflow h3 {
  margin: 0 0 7px;
  font-size: 20px;
}
.workflow p {
  max-width: 670px;
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.connection,
.contact {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: center;
  padding: 30px;
  border: 1px solid #c4d2d7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(31, 48, 73, 0.07);
}
.connection > div {
  max-width: 750px;
}
.connection h2 {
  font-size: 35px;
}
.connection p:not(.kicker) {
  margin: 15px 0 0;
}
.faq {
  padding-bottom: 118px;
}
.faq details {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
details p {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--text);
  line-height: 1.6;
}
.contact {
  margin-bottom: 70px;
}
.contact-links {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.contact-links > a:not(.button) {
  color: var(--text);
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.cabinet-main {
  padding-top: 64px;
  padding-bottom: 100px;
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.loading span {
  width: 17px;
  height: 17px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.hidden {
  display: none !important;
}
.access-card {
  max-width: 550px;
  margin: 8vh auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 19px 44px rgba(31, 48, 73, 0.08);
}
.access-card h1,
.cabinet-hero h1 {
  font-size: 42px;
  letter-spacing: -0.03em;
}
.small {
  color: var(--muted) !important;
  font-size: 13px !important;
}
.notice {
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid #d5c294;
  border-radius: 6px;
  background: #fcf8ea;
  color: #644d20;
}
.notice.error {
  border-color: #d6b4b1;
  background: #f9eeee;
  color: #7a302b;
}
.cabinet-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}
.cabinet-hero h1 {
  margin-bottom: 8px;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.status-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}
.status-card {
  min-height: 135px;
  padding: 20px;
}
.status-card p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.status-card strong {
  display: block;
  font-size: 23px;
}
.status-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.panel {
  margin-top: 14px;
  padding: 22px;
}
.panel h2 {
  font-size: 26px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.panel-head p {
  max-width: 580px;
  margin: 7px 0 0;
  font-size: 14px;
}
.small-button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 14px;
  white-space: nowrap;
}
.connections {
  display: grid;
  gap: 8px;
}
.connection-row,
.key-row,
.user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.connection-row:first-child,
.key-row:first-child,
.user-row:first-child {
  border-top: 0;
}
.connection-row b,
.key-row b,
.user-row b {
  display: block;
  font-size: 15px;
}
.connection-row span,
.key-row span,
.user-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.state {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.state.planned,
.state.unavailable {
  background: #eef1f2;
  color: #65747b;
}
.state.blocked,
.state.past_due {
  background: #f7eee4;
  color: var(--amber);
}
.key-form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  margin-bottom: 13px;
  border: 1px solid #bfd2d1;
  border-radius: 6px;
  background: var(--mint);
}
.key-form label {
  display: grid;
  gap: 7px;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}
.key-form input {
  width: 100%;
  max-width: 410px;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #b8c9cf;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.token-reveal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 13px;
  padding: 15px;
  border: 1px solid #bdcec9;
  border-radius: 6px;
  background: #eff7f5;
}
.token-reveal p {
  grid-column: 1/-1;
  margin: 0;
  font-size: 14px;
}
.token-reveal code {
  overflow: auto;
  padding: 8px;
  background: #fff;
  border-radius: 3px;
  color: var(--ink);
}
.admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-row {
  grid-template-columns: minmax(180px, 1fr) 160px 170px;
}
.user-row select,
.user-row input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.user-row .save {
  justify-self: start;
}
.empty {
  color: var(--muted);
  font-size: 14px;
}
.user-plan {
  display: grid;
  gap: 7px;
}
.user-plan label {
  font-size: 12px;
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 32px), var(--max));
  }
  .top {
    align-items: flex-start;
    padding: 11px 16px;
  }
  .top nav {
    gap: 0;
    overflow: auto;
  }
  .top nav a,
  .text-button {
    padding: 9px 8px;
    white-space: nowrap;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 42px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding: 55px 0;
  }
  .hero h1 {
    font-size: 42px;
  }
  .lead {
    font-size: 17px;
  }
  .strip div {
    display: grid;
    gap: 5px;
  }
  .source-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 75px;
  }
  .workflow li {
    grid-template-columns: 54px 1fr;
    gap: 12px;
  }
  .connection,
  .contact,
  .cabinet-hero {
    display: grid;
  }
  .connection h2 {
    font-size: 31px;
  }
  .faq {
    padding-bottom: 75px;
  }
  .contact {
    margin-bottom: 48px;
  }
  .cabinet-main {
    padding-top: 38px;
  }
  .access-card {
    margin: 30px 0;
    padding: 23px;
  }
  .access-card h1,
  .cabinet-hero h1 {
    font-size: 34px;
  }
  .panel {
    padding: 16px;
  }
  .panel-head {
    display: grid;
  }
  .key-form,
  .token-reveal {
    display: grid;
  }
  .key-form input {
    max-width: none;
  }
  .user-row {
    grid-template-columns: 1fr;
  }
  .user-row .save {
    width: 100%;
  }
}
