@font-face {
  font-family: Montserrat;
  src: url("/assets/Montserrat-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/assets/Montserrat-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f8f4;
  color: #20241f;
  font:
    500 16px/1.65 Montserrat,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #717a69;
  border-radius: 8px;
  background: #fff;
  color: #20241f;
  text-decoration: none;
  font-weight: 500;
}
button:hover,
.button:hover {
  background: #e9ece2;
}
.primary {
  background: #050605;
  color: #ccff0c;
  border: 1px solid #30332a;
}
.primary:hover {
  background: #171817;
}
.subtle {
  background: transparent;
  border-color: #ccd3c4;
}
.link-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 8px 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid #007e91;
  outline-offset: 4px;
}
header {
  height: 96px;
  background: #171817;
  color: #f1f3ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #464d40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 26px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.2;
}
.brand img {
  width: 82px;
  height: auto;
}
.brand span {
  border-left: 1px solid #464d40;
  padding-left: 24px;
}
.brand small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #bcc3b5;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
.header-right > a {
  color: #bcc3b5;
  text-decoration: none;
}
.account {
  border-color: #464d40;
  background: transparent;
  color: #ccff0c;
}
.layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: calc(100vh - 96px);
}
aside {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccd3c4;
  background: #f0f2eb;
}
.nav-title {
  padding: 0 12px 20px;
  color: #535c4d;
  font-size: 12px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border-radius: 8px;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 13px;
}
nav a span {
  font-size: 23px;
  line-height: 1;
  width: 24px;
  text-align: center;
}
nav a:hover {
  background: #e9ece2;
}
nav a[aria-current="page"] {
  background: #171817;
  color: #ccff0c;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 70px 12px 0;
}
.sidebar-bottom p {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}
.sidebar-bottom button {
  font-size: 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  justify-content: flex-start;
}
.sidebar-bottom a {
  font-size: 12px;
  display: block;
  margin: 10px 0;
}
.sidebar-bottom small {
  display: block;
  color: #535c4d;
  font-size: 10px;
  margin-top: 24px;
}
main {
  padding: 44px clamp(24px, 4vw, 68px) 30px;
  max-width: 1500px;
  min-width: 0;
  width: 100%;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -1.3px;
  margin: 0 0 18px;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 14px;
}
p {
  margin: 0 0 16px;
}
.intro p {
  color: #535c4d;
  max-width: 62ch;
  margin: 0;
  font-size: 15px;
}
.intro-note {
  border-left: 1px solid #ccd3c4;
  padding-left: 20px;
  max-width: 200px;
  font-size: 12px;
  color: #535c4d;
  flex-shrink: 0;
}
.intro-note strong {
  display: block;
  color: #20241f;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}
.search-panel {
  background: #fff;
  border: 1px solid #ccd3c4;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  background: #f7f8f4;
  border: 1px solid #717a69;
  border-radius: 8px;
  padding: 11px 13px;
  color: #20241f;
}
input.code {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.search-grid button {
  height: 49px;
}
.search-help {
  font-size: 12px;
  color: #535c4d;
  margin-top: 16px;
}
.examples {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  color: #535c4d;
}
.examples button {
  padding: 4px 10px;
  min-height: 30px;
  font-size: 12px;
  background: #f0f2eb;
  border-color: #ccd3c4;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filters button {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 12px;
  background: transparent;
  border-color: #ccd3c4;
}
.filters .active {
  background: #e9ff7a;
  color: #20241f;
  border-color: #717a69;
}
.count {
  color: #535c4d;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid #ccd3c4;
  border-radius: 12px;
  background: white;
  padding: 24px;
  min-width: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #535c4d;
  margin-bottom: 18px;
}
.badge {
  font-size: 10px;
  border: 1px solid #ccd3c4;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: normal;
  color: #535c4d;
}
.fault-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}
.fault-code {
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: #20241f;
  border-right: 1px solid #ccd3c4;
  padding-right: 16px;
}
.fault-title h3 {
  margin: 0;
  font-size: 17px;
}
.card p {
  font-size: 13px;
  color: #535c4d;
}
.card-footer {
  border-top: 1px solid #dde3d2;
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.card-footer button {
  padding: 7px 12px;
  font-size: 12px;
  min-height: 36px;
}
.safety {
  display: flex;
  gap: 16px;
  font-size: 12px;
  background: #e9ece2;
  padding: 18px 20px;
  border-radius: 8px;
  margin: 24px 0;
  color: #32382f;
}
.safety span {
  font-size: 22px;
}
.safety p {
  margin: 0;
}
.support-strip {
  margin-top: 30px;
  padding: 24px 28px;
  background: #171817;
  color: #f1f3ee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.support-strip h3 {
  font-size: 18px;
  margin: 0 0 7px;
}
.support-strip p {
  margin: 0;
  color: #bcc3b5;
  font-size: 12px;
}
.support-strip a {
  flex-shrink: 0;
}
.notice {
  border: 1px solid #b7c29f;
  border-radius: 8px;
  background: #eef4df;
  padding: 14px 18px;
  font-size: 12px;
  margin-bottom: 24px;
  color: #32382f;
}
.empty {
  text-align: center;
  padding: 48px 26px;
  border: 1px dashed #ccd3c4;
  border-radius: 12px;
  background: #fff;
}
.empty p {
  max-width: 65ch;
  margin: 12px auto;
  color: #535c4d;
  font-size: 14px;
}
.empty h3 {
  font-size: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #ccd3c4;
  padding: 22px 0 0;
  margin-top: 38px;
  font-size: 10px;
  color: #535c4d;
}
.whatsapp {
  position: fixed;
  right: 28px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #050605;
  color: #ccff0c;
  border: 1px solid #30332a;
  border-radius: 8px;
  padding: 13px 18px;
  text-decoration: none;
  font-size: 12px;
  z-index: 3;
  box-shadow: 0 3px 8px #0002;
}
dialog {
  width: min(740px, calc(100vw - 32px));
  max-height: 90vh;
  border: 1px solid #ccd3c4;
  border-radius: 16px;
  padding: 34px;
  color: #20241f;
  background: #f7f8f4;
}
dialog::backdrop {
  background: #05060599;
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  border: 0;
  background: transparent;
  width: 40px;
  padding: 0;
}
.dialog-heading {
  padding-right: 26px;
}
.detail-list {
  padding-left: 22px;
  font-size: 14px;
}
.detail-list li {
  padding: 5px 0;
}
.source {
  border-top: 1px solid #ccd3c4;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.source a {
  color: #007e91;
}
.detail-meta {
  font-size: 12px;
  color: #535c4d;
  margin-bottom: 22px;
}
.section {
  margin: 22px 0;
}
.document-list {
  display: grid;
  gap: 12px;
}
.document {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 22px;
  border: 1px solid #ccd3c4;
  border-radius: 8px;
  background: #fff;
}
.document h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.document p {
  font-size: 11px;
  color: #535c4d;
  margin: 0;
}
.document a {
  font-size: 12px;
  align-self: center;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #ccd3c4;
  padding: 12px 10px;
  vertical-align: top;
}
th {
  font-weight: 600;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin: 18px 0;
}
.check input {
  min-width: 19px;
  height: 19px;
  margin-top: 4px;
  accent-color: #171817;
}
.form-stack {
  display: grid;
  gap: 14px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.muted {
  font-size: 12px;
  color: #535c4d;
}
.terms {
  max-width: 75ch;
  font-size: 14px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-tabs button {
  font-size: 12px;
}
.admin-tabs .active {
  background: #171817;
  color: #ccff0c;
}
.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #dde3d2;
  font-size: 13px;
}
.metric strong {
  font-size: 24px;
}
.guide-paper {
  background: #fff;
  border: 1px solid #ccd3c4;
  padding: 24px;
}
.guide-paper p,
.guide-paper li {
  font-size: 12px;
}
.guide-paper h3 {
  font-size: 15px;
}
.guide-paper ul {
  padding-left: 18px;
}
.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
#toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  max-width: min(420px, 90vw);
  background: #171817;
  color: #f1f3ee;
  border-radius: 8px;
  padding: 16px 20px;
  z-index: 10;
  font-size: 13px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1120px) {
  .search-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .intro-note {
    display: none;
  }
  .layout {
    grid-template-columns: 218px 1fr;
  }
  header {
    padding: 20px 24px;
  }
  main {
    padding: 30px 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .support-strip {
    align-items: flex-start;
  }
  .search-grid button {
    width: 100%;
  }
}
@media (max-width: 720px) {
  header {
    height: 80px;
    padding: 16px 18px;
  }
  .brand {
    gap: 14px;
    font-size: 16px;
  }
  .brand img {
    width: 63px;
  }
  .brand span {
    padding-left: 14px;
  }
  .header-right {
    gap: 8px;
  }
  .header-right > a {
    display: none;
  }
  .header-right button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .layout {
    display: block;
  }
  aside {
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid #ccd3c4;
  }
  .nav-title,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 2px;
    padding: 9px 0;
  }
  nav a {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 12px;
    min-height: 42px;
  }
  nav a span {
    display: none;
  }
  main {
    padding: 26px 18px 95px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .intro p {
    font-size: 13px;
  }
  .search-panel {
    padding: 18px;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-grid > div:first-child {
    grid-column: 1/-1;
  }
  .search-grid button {
    grid-column: 1/-1;
  }
  .filters button {
    font-size: 11px;
    padding: 5px 9px;
  }
  .toolbar {
    gap: 12px;
  }
  .card {
    padding: 20px;
  }
  .support-strip {
    display: block;
    padding: 22px;
  }
  .support-strip a {
    margin-top: 18px;
  }
  .document {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .document a {
    justify-self: start;
  }
  footer {
    display: block;
  }
  footer a {
    display: block;
    margin-top: 8px;
  }
  .whatsapp {
    right: 18px;
    bottom: 16px;
  }
  dialog {
    padding: 26px 20px;
  }
  .guide-columns {
    grid-template-columns: 1fr;
  }
  .card-footer {
    align-items: flex-start;
  }
  .fault-code {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body {
    background: #fff;
    font-size: 10px;
  }
  header,
  .layout > aside,
  footer,
  .whatsapp,
  #toast,
  .close,
  .dialog-actions,
  .notice,
  .skip {
    display: none !important;
  }
  .layout,
  main {
    display: block;
    padding: 0;
  }
  main > *,
  dialog:not([open]) {
    display: none !important;
  }
  dialog[open] {
    display: block;
    position: static;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .guide-paper {
    border: 0;
    padding: 0;
  }
  .guide-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .guide-paper p,
  .guide-paper li {
    font-size: 10px;
    line-height: 1.5;
  }
  .guide-paper h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .guide-paper h2 {
    font-size: 20px;
  }
  .source {
    font-size: 9px;
    margin-top: 12px;
  }
  dialog::backdrop {
    display: none;
  }
  .guide-paper {
    break-inside: avoid;
  }
}
@media (max-width: 720px) {
  .whatsapp {
    width: 52px;
    height: 52px;
    padding: 14px;
    justify-content: center;
  }
  .whatsapp span {
    display: none;
  }
}

.contact-panel { background: #fff; border: 1px solid #ccd3c4; border-radius: 12px; padding: 30px; max-width: 960px; }
.contact-panel > h2 { margin-top: 0; }
.contact-topics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 20px 0 28px; }
.contact-topics h3 { font-size: 17px; margin: 0 0 8px; }
.contact-topics p { margin: 0; font-size: 14px; }
.guide-heading h2 { font-size: 28px; line-height: 1.25; }
.guide-table-wrap { max-width: 100%; overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
.guide-table th { text-align: left; font-weight: 600; background: #e9ece2; }
.guide-table td, .guide-table th { padding: 8px; border-bottom: 1px solid #ccd3c4; vertical-align: top; overflow-wrap: anywhere; }
.guide-table td:first-child { font-weight: 600; min-width: 70px; }
.guide-paper section { margin: 20px 0; }
.guide-paper .guide-columns { gap: 24px; }
.guide-paper .guide-columns section { margin: 0; }
.guide-sources { border-top: 1px solid #ccd3c4; padding-top: 12px; }
.guide-sources p, .guide-footnote { font-size: 11px; line-height: 1.5; }
.guide-sources p { margin: 6px 0; }
.guide-drawing { margin: 18px 0; padding: 16px; background: #fff; border: 1px solid #ccd3c4; border-radius: 8px; }
.guide-drawing img { display: block; width: 100%; height: auto; max-height: 700px; object-fit: contain; background: #fff; }
.guide-drawing figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; }
.access-explanation { margin: 20px 0; padding: 18px; background: #f7f8f4; border-radius: 8px; }
.access-explanation li { margin-bottom: 10px; }
@media(max-width:720px) { .contact-topics { grid-template-columns: 1fr; gap: 20px; } .contact-panel { padding: 22px; } .guide-heading h2 { font-size: 23px; } .guide-table { font-size: 11px; } .guide-table td, .guide-table th { padding: 6px; } .guide-paper { padding: 12px; } .guide-drawing { padding: 8px; } dialog { width: calc(100% - 16px); max-width: none; padding: 20px 12px; } }
