:root {
  color-scheme: light;
  --ink: #102b3b;
  --ink-soft: #3e5967;
  --muted: #647b86;
  --line: #dce5e8;
  --paper: #f7fafb;
  --white: #fff;
  --teal: #007b73;
  --teal-dark: #005d59;
  --mint: #dbf4ef;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #54bcb1; outline-offset: 3px; }
.shell { width: min(100% - 40px, 1040px); margin-inline: auto; }

.site-header { background: var(--ink); color: #f6fbfc; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.identity-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #70e1d3; }
.identity-mark svg { width: 100%; height: 100%; }
.identity-accent { color: #70e1d3; padding-inline: 2px; }
.header-count { color: #afc7cf; font-size: 13px; white-space: nowrap; }
.main { padding-top: 46px; padding-bottom: 60px; }
.intro { position: relative; padding: 0 0 29px; }
.intro-line { display: flex; align-items: center; gap: 5px; margin-bottom: 22px; }
.intro-line span { display: block; width: 25px; height: 3px; border-radius: 9px; background: var(--teal); }
.intro-line span:nth-child(2) { width: 9px; opacity: .56; }
.intro-line span:nth-child(3) { width: 5px; opacity: .28; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.055em; font-weight: 780; }
h1 span { color: var(--teal); }
.intro p { margin: 15px 0 0; color: var(--ink-soft); line-height: 1.5; font-size: 17px; }

.search-panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 12px 36px rgba(16,43,59,.045); }
.search-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.search-box { min-height: 56px; border: 1.5px solid #b8cbd0; border-radius: 9px; display: flex; align-items: center; gap: 12px; padding: 0 17px; transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #bce6de; }
.search-box svg { flex: none; width: 21px; height: 21px; color: var(--teal); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; min-width: 0; }
.search-box input::placeholder { color: #84969e; opacity: 1; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.filter-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.filter-row label { color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.filter-row select { width: min(260px, 100%); height: 42px; padding: 0 36px 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%233e5967' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; appearance: none; }
.clear-button { margin-left: auto; border: 0; padding: 8px 0; background: transparent; color: var(--teal-dark); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.clear-button[hidden] { display: none; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 35px 0 16px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.brand-grid, .model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.brand-card, .model-card, .document-card { display: flex; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); text-decoration: none; min-width: 0; }
.brand-card, .model-card { min-height: 80px; padding: 16px 18px; justify-content: space-between; gap: 12px; }
.card-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.card-title { font-weight: 720; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.card-subtitle { color: var(--muted); font-size: 13px; line-height: 1.25; }
.card-chevron { flex: none; width: 20px; height: 20px; color: var(--teal); }
.brand-card:active, .model-card:active, .document-card:active { background: var(--mint); transform: scale(.99); }
.brand-card, .model-card, .document-card { transition: background .12s, border-color .12s, transform .12s; }
.group-heading { margin: 28px 0 10px; font-size: 15px; font-weight: 760; color: var(--ink-soft); }
.group-heading:first-of-type { margin-top: 0; }
.empty-state { margin-top: 30px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.empty-state h2 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); }

.detail { min-height: calc(100dvh - 68px); background: var(--paper); }
.detail .shell { padding-top: 29px; padding-bottom: 60px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 7px 0; background: transparent; color: var(--teal-dark); font-size: 15px; font-weight: 720; }
.back-button svg { width: 19px; height: 19px; }
.detail-heading { padding: 23px 0 22px; border-bottom: 1px solid var(--line); }
.detail-kicker { color: var(--teal-dark); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.detail-heading h1 { font-size: clamp(30px, 4.5vw, 44px); }
.detail-heading p:last-child { color: var(--muted); margin: 9px 0 0; }
.document-list { display: grid; gap: 10px; margin-top: 22px; }
.document-card { min-height: 78px; padding: 14px 17px; gap: 15px; }
.pdf-icon { flex: none; width: 32px; height: 38px; border: 1.5px solid #a9c9c5; border-radius: 4px; display: grid; place-items: center; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.document-card .card-main { flex: 1; }
.document-card .card-title { font-size: 16px; }
.document-card .card-subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.viewer { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #d9e3e6; height: 100vh; height: 100dvh; }
.viewer-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: max(9px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left)); background: var(--ink); color: white; }
.viewer .back-button { flex: none; color: white; border: 1px solid #5d7784; border-radius: 7px; padding: 8px 10px; font-size: 14px; }
.viewer-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.viewer-link { flex: none; padding: 8px 9px; color: #a3eee2; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.viewer-tools { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 4px max(14px, env(safe-area-inset-right)) 4px max(14px, env(safe-area-inset-left)); background: var(--white); border-bottom: 1px solid var(--line); }
.viewer-status { color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.zoom-controls { display: flex; align-items: center; gap: 4px; }
.zoom-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font-size: 23px; line-height: 1; }
.zoom-button:active { background: var(--mint); }
.zoom-button:disabled { opacity: .4; cursor: default; }
.zoom-label { width: 50px; text-align: center; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.viewer-scroll { flex: 1; overflow: auto; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); overscroll-behavior: contain; touch-action: pan-x pan-y; }
.zoom-preview-shell, .viewer-pages { width: max-content; min-width: 100%; }
.pdf-page { width: max-content; max-width: none; min-width: min(100%, 280px); margin: 0 auto 16px; background: white; box-shadow: 0 2px 8px rgba(16,43,59,.2); }
.pdf-canvas { display: block; max-width: none; }
.page-loading { display: block; padding: 24px; color: var(--muted); font-size: 14px; }
.pdf-error { max-width: 500px; margin: 32px auto; padding: 20px; background: white; border-radius: 8px; color: var(--ink-soft); }
.site-footer { padding: 0 0 28px; color: var(--muted); font-size: 13px; }

@media (hover: hover) and (pointer: fine) {
  .brand-card:hover, .model-card:hover, .document-card:hover { border-color: #85bcb5; background: #fafffe; }
  .back-button:hover, .clear-button:hover, .viewer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 760px) {
  .brand-grid, .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding-top: 36px; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1040px); }
  .header-inner { min-height: 60px; }
  .header-count { display: none; }
  .main { padding-top: 29px; }
  .intro { padding-bottom: 24px; }
  .intro-line { margin-bottom: 17px; }
  h1 { font-size: 36px; }
  .intro p { font-size: 16px; }
  .search-panel { padding: 17px; }
  .search-box { padding-inline: 13px; }
  .search-box input { font-size: 16px; }
  .filter-row { flex-wrap: wrap; }
  .filter-row select { flex: 1; min-width: 0; }
  .clear-button { flex-basis: 100%; text-align: right; }
  .brand-grid, .model-grid { gap: 8px; }
  .brand-card, .model-card { min-height: 78px; padding: 13px; }
  .card-title { font-size: 15px; }
  .card-subtitle { font-size: 12px; }
  .card-chevron { width: 16px; height: 16px; }
  .section-head { align-items: start; flex-direction: column; gap: 3px; }
  .document-card { padding: 12px; }
  .viewer-name { display: none; }
  .viewer-link { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
