@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --navy:#102e43;
  --navy2:#193f57;
  --teal:#00a8a2;
  --lime:#d5ea52;
  --ink:#142b3a;
  --muted:#70818d;
  --line:#e2e9ec;
  --bg:#f3f7f8;
  --white:#fff;
  --shadow:0 14px 36px #183a4a0c
}
* {
  box-sizing:border-box
}
[hidden] {
  display:none !important
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'DM Sans',sans-serif
}
header {
  height:78px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(calc((100vw - 1160px)/2),32px)
}
.brand {
  display:flex;
  align-items:center;
  gap:13px
}
.mark {
  width:38px;
  height:38px;
  border-radius:11px;
  background:var(--navy);
  color:var(--lime);
  font:800 24px Manrope;
  display:grid;
  place-items:center
}
h1 {
  font:700 15px Manrope;
  margin:3px 0 0
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:700;
  color:var(--teal)
}
.topnote {
  font-size:12px;
  color:var(--muted)
}
main {
  max-width:1160px;
  margin:0 auto;
  padding:36px 28px
}
.intro {
  background:linear-gradient(112deg,#12364c,#1b5368);
  border-radius:16px;
  padding:29px 34px;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:var(--shadow)
}
.intro .eyebrow {
  color:var(--lime)
}
h2 {
  font:700 27px Manrope;
  margin:6px 0
}
.intro p {
  margin:0;
  color:#d4e2e9;
  font-size:14px
}
.stat {
  border-left:1px solid #ffffff36;
  padding-left:30px;
  min-width:145px;
  display:flex;
  flex-direction:column
}
.stat strong {
  font:700 28px Manrope;
  color:var(--lime)
}
.stat span {
  font-size:11px;
  color:#d4e2e9
}
.tabs {
  display:flex;
  gap:8px;
  margin:26px 0 0;
  border-bottom:1px solid var(--line)
}
.tab {
  border:0;
  background:transparent;
  padding:13px 16px;
  color:#71818b;
  font:600 13px 'DM Sans';
  cursor:pointer;
  border-bottom:2px solid transparent
}
.tab.active {
  color:var(--navy);
  border-color:var(--teal)
}
.panel {
  display:none;
  background:#fff;
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 14px 14px;
  min-height:370px;
  padding:30px 32px;
  box-shadow:var(--shadow)
}
.panel.active {
  display:block
}
.section-head h3 {
  font:700 20px Manrope;
  margin:6px 0
}
.section-head p {
  font-size:13px;
  color:var(--muted);
  margin:0
}
.form-grid {
  display:grid;
  grid-template-columns:1.6fr .8fr 1.3fr 1fr;
  gap:16px;
  margin-top:25px
}
label {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:12px;
  font-weight:700;
  color:#526675
}
select,input {
  height:43px;
  border:1px solid #dbe4e8;
  border-radius:8px;
  padding:0 12px;
  background:#fff;
  color:var(--ink);
  font:500 13px 'DM Sans';
  outline:none
}
select:focus,input:focus {
  border-color:var(--teal);
  box-shadow:0 0 0 3px #00a8a21a
}
.result {
  margin-top:20px;
  border:1px solid var(--line);
  border-radius:11px;
  padding:19px 21px
}
.result.empty {
  background:#f8fafb;
  color:#8a9aa4;
  font-size:13px
}
.result.warning {
  background:#fff8e8;
  border-color:#f3dfa9;
  color:#87620d;
  font-size:13px
}
.result-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px
}
.field span {
  display:block;
  color:#7c8d96;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom:7px
}
.field strong {
  font:600 14px Manrope;
  overflow-wrap:anywhere
}
.field.primary-result strong {
  font-size:21px;
  color:var(--navy)
}
.field .price {
  color:var(--teal)
}
.tag {
  display:inline-block;
  border-radius:20px;
  background:#e3f6f3;
  color:#087c74;
  padding:5px 10px;
  font-size:11px;
  font-weight:700
}
.tag.no {
  background:#fff0ed;
  color:#b64b39
}
.searchline {
  display:flex;
  align-items:end;
  gap:12px;
  margin-top:25px
}
.grow {
  flex:1
}
.primary {
  height:43px;
  border:0;
  border-radius:8px;
  background:var(--teal);
  color:white;
  font-weight:700;
  padding:0 20px;
  cursor:pointer
}
.primary:hover {
  background:#078d89
}
.searchbox {
  max-width:500px;
  margin-top:23px
}
.table-wrap {
  margin-top:18px;
  overflow:auto;
  max-height:430px
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:12px
}
th {
  text-align:left;
  background:#f5f8f9;
  color:#71818b;
  padding:11px 12px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.5px;
  position:sticky;
  top:0
}
td {
  padding:11px 12px;
  border-bottom:1px solid #edf1f2
}
td:first-child {
  font-weight:700;
  color:var(--navy)
}
.compatible-models {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 220px;
}
.compatible-models span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8f5f4;
  color: #087c74;
  font-size: 11px;
  line-height: 1.4;
}
.no-compatible-models {
  color: var(--muted);
  font-style: italic;
}
.empty-table {
  padding:22px;
  color:#85949c;
  font-size:13px
}
footer {
  display:flex;
  justify-content:space-between;
  padding:18px 4px;
  color:#8a989f;
  font-size:10px
}
@media(max-width:700px) {
  header {
    padding:0 18px
  }
.topnote {
    display:none
  }
main {
    padding:22px 14px
  }
.intro {
    padding:24px 21px
  }
.stat {
    min-width:100px;
    padding-left:18px
  }
h2 {
    font-size:22px
  }
.tabs {
    overflow:auto
  }
.tab {
    white-space:nowrap;
    padding:12px 11px
  }
.panel {
    padding:23px 18px
  }
.form-grid {
    grid-template-columns:1fr
  }
.result-grid {
    grid-template-columns:1fr 1fr
  }
.searchline {
    align-items:stretch;
    flex-direction:column
  }
.primary {
    width:100%
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--teal);
}
.settings-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}
.settings-toggle:hover {
  border-color: var(--teal);
}
.settings-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 60px #102e4330;
}
.settings-dialog::backdrop {
  background: #10212b80;
}
.settings-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.settings-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}
.settings-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.settings-dialog .issue-actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.theme-icon {
  font-size: 16px;
  line-height: 1;
}
:root[data-theme="dark"] {
  --ink: #e7eff3;
  --muted: #a0b2bd;
  --line: #2e4654;
  --bg: #101d25;
  --white: #172832;
  --navy: #dceaf0;
}
:root[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme="dark"] header,
:root[data-theme="dark"] .panel {
  background: #172832;
  border-color: var(--line);
}
:root[data-theme="dark"] .mark {
  background: #0c171e;
}
:root[data-theme="dark"] .topnote,
:root[data-theme="dark"] .section-head p,
:root[data-theme="dark"] label {
  color: var(--muted);
}
:root[data-theme="dark"] .theme-toggle {
  background: #203641;
  border-color: #3b5664;
  color: #edf6f8;
}
:root[data-theme="dark"] .settings-toggle,
:root[data-theme="dark"] .settings-dialog {
  background: #203641;
  border-color: #3b5664;
  color: #edf6f8;
}
:root[data-theme="dark"] .settings-option {
  color: #edf6f8;
}
:root[data-theme="dark"] .settings-help {
  color: #a0b2bd;
}
:root[data-theme="dark"] select,
:root[data-theme="dark"] input {
  background: #10212b;
  border-color: #3b5664;
  color: var(--ink);
}
:root[data-theme="dark"] .result {
  background: #1b303b;
  border-color: var(--line);
}
:root[data-theme="dark"] .result.empty {
  background: #152630;
  color: #a0b2bd;
}
:root[data-theme="dark"] .result.warning {
  background: #3b321e;
  border-color: #66552b;
  color: #f1d58e;
}
:root[data-theme="dark"] .field span,
:root[data-theme="dark"] footer {
  color: #a0b2bd;
}
:root[data-theme="dark"] .tabs {
  border-color: var(--line);
}
:root[data-theme="dark"] .tab {
  color: #a0b2bd;
}
:root[data-theme="dark"] .tab.active {
  color: #eef6f8;
}
:root[data-theme="dark"] th {
  background: #203641;
  color: #c0d0d8;
}
:root[data-theme="dark"] td {
  border-color: #2a404c;
}
:root[data-theme="dark"] .compatible-models span {
  background: #25434e;
  color: #9be2d8;
}
:root[data-theme="dark"] .empty-table {
  color: #a0b2bd;
}
@media (max-width: 700px) {
  .header-actions {
    gap: 0;
  }
  .theme-toggle {
    padding: 0 9px;
  }
  .theme-label {
    display: none;
  }
}
.serial-lookup {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}
.serial-lookup .searchline {
  margin-top: 18px;
}
.serial-lookup .result {
  margin-bottom: 0;
}
.serial-model-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
:root[data-theme="dark"] .serial-lookup {
  background: #152630;
}
@media (max-width: 700px) {
  .serial-lookup {
    padding: 16px;
  }
}
.serial-parts-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.serial-parts-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.serial-parts-summary > strong {
  color: var(--teal);
  font: 700 13px Manrope, sans-serif;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .serial-parts-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
.combobox {
  position: relative;
  width: 100%;
}
.combobox input {
  width: 100%;
  padding-right: 42px;
}
.combo-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 40px;
  height: 41px;
  border: 0;
  border-left: 1px solid #dbe4e8;
  border-radius: 0 7px 7px 0;
  background: #f8fafb;
  color: #526675;
  font-size: 17px;
  cursor: pointer;
}
.combo-toggle:hover {
  background: #edf3f5;
}
.combo-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #dbe4e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px #183a4a20;
}
.combo-options[hidden] {
  display: none;
}
.combo-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 13px 'DM Sans', sans-serif;
  cursor: pointer;
}
.combo-option:hover,
.combo-option.active {
  background: #e8f5f4;
  color: #087c74;
}
:root[data-theme="dark"] .combo-toggle {
  border-left-color: #3b5664;
  background: #203641;
  color: #edf6f8;
}
:root[data-theme="dark"] .combo-toggle:hover {
  background: #294653;
}
:root[data-theme="dark"] .combo-options {
  border-color: #3b5664;
  background: #172832;
}
:root[data-theme="dark"] .combo-option {
  color: #e7eff3;
}
:root[data-theme="dark"] .combo-option:hover,
:root[data-theme="dark"] .combo-option.active {
  background: #25434e;
  color: #9be2d8;
}
.combo-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}
.compatibility-list-section {
  margin-top: 30px;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.list-heading h3 {
  margin: 5px 0 0;
  font: 700 18px Manrope, sans-serif;
}
.secondary {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}
.secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.list-remove {
  border: 0;
  background: transparent;
  color: #b64b39;
  font: 600 11px 'DM Sans', sans-serif;
  cursor: pointer;
}
:root[data-theme="dark"] .secondary {
  background: #203641;
  color: #dbe8ed;
}
:root[data-theme="dark"] .secondary:hover {
  color: #9be2d8;
}
@media (max-width: 700px) {
  .list-heading h3 {
    font-size: 16px;
  }
}
.issue-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}
.issue-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.issue-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px #071a2733;
}
.issue-dialog::backdrop {
  background: #09182299;
  backdrop-filter: blur(3px);
}
.issue-dialog form {
  display: grid;
  gap: 12px;
}
.issue-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.issue-dialog-heading h2 {
  margin: 5px 0 0;
  font: 700 21px Manrope, sans-serif;
}
.dialog-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: #f2f6f7;
  color: var(--ink);
  font-size: 23px;
  cursor: pointer;
}
.issue-help,
.issue-draft-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.issue-dialog label {
  margin-top: 3px;
}
.issue-dialog textarea {
  width: 100%;
  min-height: 125px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 13px 'DM Sans', sans-serif;
  resize: vertical;
}
.issue-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
:root[data-theme="dark"] .issue-button,
:root[data-theme="dark"] .issue-dialog {
  background: #172832;
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .dialog-close,
:root[data-theme="dark"] .issue-dialog textarea {
  background: #10212b;
  color: var(--ink);
  border-color: #3b5664;
}
.issue-button {
  border-color: #c83232;
  background: #c83232;
  color: #fff;
  font-weight: 700;
}
.issue-button:hover {
  border-color: #a92222;
  background: #a92222;
  color: #fff;
}
:root[data-theme="dark"] .issue-button {
  border-color: #d64242;
  background: #d64242;
  color: #fff;
}
:root[data-theme="dark"] .issue-button:hover {
  border-color: #ef5757;
  background: #ef5757;
}
.admin-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.admin-nav-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}
:root[data-theme="dark"] .admin-nav-link {
  color: #edf6f8;
}
@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 14px;
  }
  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand-logo-dark {
  display: none;
}
:root[data-theme="dark"] .brand-logo-light {
  display: none;
}
:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}
