.manual-shell {
  max-width: 1080px;
  margin: auto;
  padding: 42px 26px 90px;
}
.manual-head {
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(circle at 90% 0, #663cc532, transparent 38%), #101622;
}
.manual-head h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  margin: 12px 0 18px;
  letter-spacing: -3px;
}
.manual-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}
.manual-actions,
.language-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.language-button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b111c;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.language-button:hover,
.language-button.active {
  color: #fff;
  border-color: var(--violet);
  background: #8b5cf621;
  box-shadow: inset 0 0 0 1px #8b5cf629;
}
.manual-language {
  display: none;
}
.manual-language.active {
  display: block;
}
.manual-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  margin-top: 34px;
}
.manual-nav {
  position: sticky;
  top: 96px;
  height: max-content;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0e1420;
}
.manual-nav strong {
  display: block;
  margin-bottom: 12px;
}
.manual-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.manual-nav a:hover {
  color: #fff;
}
.manual-content section {
  scroll-margin-top: 95px;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #101724, #0b101a);
}
.manual-content h2 {
  margin: 0 0 18px;
  font-size: 25px;
  letter-spacing: -1px;
}
.manual-content h3 {
  margin: 24px 0 8px;
  color: var(--cyan);
  font-size: 15px;
}
.manual-content p,
.manual-content li {
  color: #aab5c7;
}
.manual-content li {
  margin: 7px 0;
}
.notice {
  padding: 17px 19px;
  border: 1px solid #7656cc;
  border-radius: 12px;
  background: #8b5cf616;
}
.warning {
  border-color: #bd893d;
  background: #ffc85710;
}
.code {
  overflow: auto;
  padding: 15px;
  border: 1px solid #303b50;
  border-radius: 10px;
  background: #070a10;
  color: #d9e2f2;
  font:
    13px/1.6 Consolas,
    monospace;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  padding-left: 38px;
  margin: 14px 0;
}
.steps li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
}

/* Illustrated application guide */
.button-guide {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.guide-screen {
  overflow: hidden;
  border: 1px solid #303a4d;
  border-radius: 16px;
  background: #080b12;
  box-shadow: 0 22px 50px #0005;
}
.guide-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid #252d3c;
  background: linear-gradient(90deg, #121927, #0b1019);
}
.guide-screen-head h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}
.guide-screen-head span {
  color: #738099;
  font-size: 11px;
  text-align: right;
}
.app-illustration {
  min-height: 148px;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 15%, #8b5cf625, transparent 28%),
    linear-gradient(145deg, #0d1320, #070a10);
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.mock-brand:before {
  content: 'LMI';
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #9d73ff, #6942d7);
  font-size: 9px;
}
.mock-toolbar,
.mock-panel-bar,
.mock-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.mock-panel-bar,
.mock-tabs {
  padding: 9px;
  border: 1px solid #2b3342;
  border-radius: 9px;
  background: #101620;
}
.mock-button {
  position: relative;
  min-width: 36px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #364054;
  border-radius: 8px;
  background: #111722;
  color: #dce5f5;
  font-size: 15px;
}
.mock-button.active {
  border-color: #9b75ff;
  background: #8b5cf629;
  color: #cbb9ff;
}
.mock-button.danger {
  color: #ff8895;
}
.mock-number {
  position: absolute;
  top: -9px;
  right: -7px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #090d15;
  border-radius: 50%;
  background: #9b75ff;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.mock-page {
  height: 64px;
  margin-top: 9px;
  border: 1px solid #202938;
  border-radius: 9px;
  background:
    linear-gradient(90deg, #18c7bd25 1px, transparent 1px),
    linear-gradient(#18c7bd25 1px, transparent 1px), #0b1019;
  background-size: 22px 22px;
}
.guide-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #252d3c;
}
.guide-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 15px;
  background: #0e1420;
}
.guide-item b:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #8b5cf629;
  color: #b99eff;
  font-size: 11px;
}
.guide-item strong {
  display: block;
  margin-bottom: 3px;
  color: #f2f5fb;
  font-size: 13px;
}
.guide-item p {
  margin: 0;
  color: #8f9bb0;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 780px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }
  .manual-nav {
    position: static;
  }
  .manual-head {
    padding: 30px 24px;
  }
  .manual-content section {
    padding: 23px;
  }
  .manual-head h1 {
    letter-spacing: -2px;
  }
  .manual-shell {
    padding-inline: 16px;
  }
  .guide-legend {
    grid-template-columns: 1fr;
  }
  .app-illustration {
    padding: 18px 14px;
  }
  .guide-screen-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .guide-screen-head span {
    text-align: left;
  }
}

/* Passos ilustrados do tutorial de extensões. O "desenho" é tipográfico de propósito: acompanha o
   tema claro e escuro, é lido por leitor de tela como número de passo e não vira captura de tela
   desatualizada na próxima versão da interface. */
.manual-steps {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: none;
}
.manual-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--manual-border, rgba(139, 108, 255, 0.25));
  border-radius: 14px;
  background: var(--manual-step-bg, rgba(139, 108, 255, 0.06));
}
.manual-step-figure {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
}
.manual-step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8b6cff;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.manual-step-icon {
  font-size: 1.6rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .manual-steps li {
    flex-direction: column;
  }
  .manual-step-figure {
    flex-direction: row;
  }
}
