:root {
  --ink: #173640;
  --muted: #667f87;
  --brand: #ce1b2c;
  --blue: #25a9e0;
  --line: #d9e7e9;
  --soft: #f3f8f9;
  --nav: #132f38;
  --shadow: 0 14px 38px rgba(21, 52, 61, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: #eef4f5;
  color: var(--ink);
  font:
    14px Poppins,
    Arial,
    sans-serif;
}
.manual-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.manual-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.manual-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.manual-brand span {
  display: grid;
}
.manual-brand strong {
  font:
    700 20px Oswald,
    sans-serif;
  text-transform: uppercase;
}
.manual-brand small {
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 9px;
}
.top-actions a,
.top-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b8d4da;
  border-radius: 10px;
  background: #fff;
  color: #214b56;
  font: 700 12px Poppins;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.top-actions a {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.manual-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1050px);
  justify-content: center;
  gap: 24px;
  padding: 26px;
}
.manual-index {
  position: sticky;
  top: 98px;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding: 15px;
  border-radius: 16px;
  background: var(--nav);
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.manual-index.collapsed {
  width: 108px;
  padding: 10px;
}
.manual-index.collapsed nav,
.manual-index.collapsed .manual-search,
.manual-index.collapsed .index-head span {
  display: none;
}
.manual-index.collapsed .index-head {
  justify-content: center;
  padding: 0;
}
.manual-index.collapsed .index-head button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}
.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px 12px;
  color: #fff;
}
.index-head span {
  font: 700 15px Oswald;
  text-transform: uppercase;
}
.index-head button {
  border: 0;
  background: transparent;
  color: #aedae3;
  cursor: pointer;
  font-weight: 700;
}
.manual-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #bcd2d7;
  font-size: 11px;
  font-weight: 700;
}
.manual-search input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.manual-search input::placeholder {
  color: #9fb6bc;
}
.manual-index nav {
  display: grid;
  gap: 3px;
}
.manual-index nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #c8dce1;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
}
.manual-index nav a:hover,
.manual-index nav a.active {
  background: rgba(206, 27, 44, 0.24);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue);
}
main {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.manual-hero,
.chapter {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 24px;
  padding: 36px;
  background: linear-gradient(135deg, #fff 35%, #eaf7fa);
}
.manual-hero h1 {
  margin: 7px 0 12px;
  font: 700 clamp(34px, 5vw, 58px)/1 Oswald;
  text-transform: uppercase;
}
.manual-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.manual-hero img {
  width: 100%;
  max-height: 145px;
  object-fit: contain;
}
.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.chapter {
  padding: clamp(22px, 4vw, 38px);
}
.chapter[hidden] {
  display: none;
}
.chapter-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.chapter-title > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: 700 19px Oswald;
}
.chapter h2 {
  margin: 3px 0 0;
  font: 700 clamp(25px, 4vw, 34px) Oswald;
  text-transform: uppercase;
}
.chapter h3 {
  margin: 27px 0 9px;
  font: 700 20px Oswald;
}
.chapter p,
.chapter li {
  line-height: 1.72;
}
.chapter p {
  color: #36545d;
}
.chapter ul,
.chapter ol {
  padding-left: 24px;
  color: #36545d;
}
.chapter li + li {
  margin-top: 7px;
}
.note {
  margin-top: 20px;
  padding: 15px 17px;
  border-left: 5px solid var(--brand);
  border-radius: 10px;
  background: #fff4f3;
  color: #44302f;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  color: #496770;
  font-size: 11px;
  text-transform: uppercase;
}
tr:last-child td {
  border-bottom: 0;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.action-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfefe;
}
.action-grid article b {
  color: #214b56;
}
.action-grid article span {
  color: var(--muted);
  line-height: 1.5;
}
.formula {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.formula code {
  padding: 13px 15px;
  border-radius: 9px;
  background: #173640;
  color: #e8f8fa;
  white-space: normal;
}
.process-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.process-nav a {
  padding: 8px 11px;
  border: 1px solid #bcdde3;
  border-radius: 999px;
  background: #f5fbfc;
  color: #245a66;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.process-nav a:hover {
  border-color: var(--blue);
  background: #e8f7fa;
}
.process {
  scroll-margin-top: 94px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfefe;
}
.process-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.process-head span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--nav);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.process-head h3 {
  margin: 0;
}
.process-before,
.process-result,
.process-warning {
  padding: 12px 14px;
  border-radius: 9px;
}
.process-before {
  background: #f0f7f8;
}
.process-result {
  margin-bottom: 0;
  border-left: 4px solid #2a9870;
  background: #edf9f4;
}
.process-warning {
  margin-top: 12px;
  border-left: 4px solid var(--brand);
  background: #fff2f1;
  color: #5a3431;
}
.faq {
  display: grid;
  gap: 9px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfefe;
}
.faq summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}
.faq details p {
  margin: 0;
  padding: 0 16px 16px;
}
footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 6px;
  color: var(--muted);
}
footer img {
  width: 46px;
}
footer p {
  margin-right: auto;
}
footer a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 900px) {
  .manual-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .manual-index {
    position: relative;
    top: auto;
    max-height: none;
  }
  .manual-index.collapsed {
    width: auto;
  }
  .manual-hero {
    grid-template-columns: 1fr;
  }
  .manual-hero img {
    display: none;
  }
}
@media (max-width: 620px) {
  .manual-topbar {
    align-items: flex-start;
  }
  .manual-brand small,
  .top-actions button {
    display: none;
  }
  .top-actions a {
    font-size: 0;
  }
  .top-actions a::after {
    content: "Dashboard";
    font-size: 12px;
  }
  .manual-hero,
  .chapter {
    border-radius: 13px;
  }
  .manual-hero {
    padding: 25px;
  }
  .action-grid {
    grid-template-columns: 1fr;
  }
  footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  footer p {
    width: calc(100% - 65px);
  }
}
@media print {
  body {
    background: #fff;
  }
  .manual-topbar,
  .manual-index {
    display: none;
  }
  .manual-shell {
    display: block;
    padding: 0;
  }
  .manual-hero,
  .chapter {
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 14px;
  }
  .chapter {
    break-inside: auto;
  }
  .faq details {
    break-inside: avoid;
  }
  footer {
    border-top: 1px solid var(--line);
  }
}
