:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --panel: #ffffff;
  --text: #1d1d1b;
  --muted: #9d9d9c;
  --line: #d6d6d6;
  --accent: #f39200;
  --accent-strong: #e94e1b;
  --accent-hot: #e30613;
  --danger: #e30613;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.login-page::after {
  position: fixed;
  content: "";
  pointer-events: none;
}

.login-page::after {
  left: -72px;
  bottom: -72px;
  width: 260px;
  height: 260px;
  background: url("../img/mediapro-avatar.png") center / contain no-repeat;
}

.login-box {
  position: relative;
  width: min(100%, 380px);
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(29, 29, 27, 0.08);
  z-index: 1;
}

.login-box h1,
.page-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.login-box p,
.page-header p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.login-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 0 0 28px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.field span {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--text);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: var(--accent-hot);
}

.button-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent-hot);
}

.error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-lockup img {
  width: 156px;
  height: auto;
}

.brand-lockup span {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  font-size: 15px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 44px 24px 56px;
}

.page-header {
  position: relative;
  margin-bottom: 34px;
  padding: 28px 0 38px;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header::after {
  position: absolute;
  right: 0;
  top: 0;
  width: min(280px, 28vw);
  height: 160px;
  background: url("../img/mediapro-avatar.png") center / contain no-repeat;
  content: "";
  opacity: 1;
  z-index: 0;
}

.section-marker {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.section-marker::after {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 9px;
  background: var(--muted);
  content: "";
}

.section {
  margin-top: 28px;
}

.section h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

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

.link-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  min-height: 132px;
  padding: 16px 76px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.link-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: url("../img/mediapro-avatar.png") center / contain no-repeat;
  content: "";
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 0;
}

.link-card:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}

.link-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.link-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
}

.placeholder-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 12px;
  color: #344054;
}

.faq-item a {
  display: inline-flex;
  margin: 0 16px 16px;
  font-size: 14px;
  font-weight: 700;
}

.doc-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.doc-nav span {
  overflow-wrap: anywhere;
  text-align: right;
}

.doc-content {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}

.doc-content h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.doc-content h2 {
  margin: 30px 0 12px;
  font-size: 21px;
}

.doc-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.doc-content h4,
.doc-content h5,
.doc-content h6 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.doc-content p,
.doc-content ul,
.doc-content table,
.doc-content pre,
.doc-content blockquote {
  margin: 0 0 16px;
}

.doc-content ul {
  padding-left: 22px;
}

.doc-content code {
  border-radius: 4px;
  background: #eef2f6;
  padding: 2px 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
}

.doc-content pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111827;
  color: #f9fafb;
  padding: 14px;
}

.doc-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.doc-content blockquote {
  border-left: 4px solid var(--accent-hot);
  padding-left: 14px;
  color: #344054;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.doc-content th,
.doc-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.doc-content th {
  background: #eef2f6;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-lockup span {
    border-left: 0;
    padding-left: 0;
  }

  .content {
    padding: 24px 16px 40px;
  }

  .page-header::after {
    width: 140px;
    height: 92px;
    opacity: 1;
  }

  .doc-page {
    padding: 20px 14px 40px;
  }

  .doc-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-nav span {
    text-align: left;
  }

  .doc-content {
    padding: 18px;
  }
}
