:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #1f2924;
  --muted: #65736d;
  --line: #d7ded8;
  --line-strong: #9fb4ad;
  --accent: #176d5a;
  --accent-strong: #0f5647;
  --accent-soft: #dcebe5;
  --teal: #14877a;
  --teal-soft: #dff5ef;
  --blue: #2f67c6;
  --blue-soft: #e6efff;
  --violet: #6957c8;
  --violet-soft: #eeeaff;
  --rose: #bd4765;
  --rose-soft: #fde7ee;
  --amber: #b66b12;
  --amber-soft: #fff1cf;
  --cyan: #0d7285;
  --cyan-soft: #ddf7fb;
  --warning: #9b6216;
  --warning-soft: #fff1d9;
  --danger: #af3f3c;
  --danger-soft: #fde9e7;
  --now-red: #d71920;
  --info: #345f9c;
  --info-soft: #e5eefb;
  --shadow: 0 16px 40px rgba(31, 41, 36, 0.08);
  --shadow-soft: 0 10px 24px rgba(31, 41, 36, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fff8e8 0, var(--bg) 34%, #f1f7fb 100%);
  color: var(--ink);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(246, 247, 242, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.app-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber), var(--rose));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-art {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.brand-now {
  color: var(--now-red);
}

.brand small {
  margin-top: 3px;
  color: #48554f;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.top-nav a {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #9eb4ad;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(31, 41, 36, 0.06);
}

.top-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
}

.tool-band {
  padding: 24px clamp(18px, 4vw, 48px) 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(223, 245, 239, 0.9), rgba(230, 239, 255, 0.78) 52%, rgba(255, 241, 207, 0.76));
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.search-panel,
.assist-panel,
.quick-panel,
.detail-panel,
.ops-band {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(31, 41, 36, 0.11);
}

.search-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 28px);
  border-color: rgba(20, 135, 122, 0.62);
  border-top: 6px solid var(--teal);
}

.search-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.18;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.lead {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
}

.field-label,
.filter-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 108px);
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 2px solid rgba(20, 135, 122, 0.48);
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow:
    0 0 0 3px rgba(20, 135, 122, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.search-row input {
  min-height: 48px;
  border-color: rgba(13, 114, 133, 0.66);
  border-width: 3px;
  font-weight: 700;
}

.search-row input:focus {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 4px rgba(13, 114, 133, 0.18),
    0 8px 18px rgba(13, 114, 133, 0.08);
}

select {
  border-color: rgba(20, 135, 122, 0.48);
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.primary-button {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(20, 135, 122, 0.18);
}

.primary-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(15, 86, 71, 0.22);
}

.secondary-button {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #8fb0eb;
}

.secondary-button:hover {
  border-color: var(--blue);
}

.ghost-button {
  color: var(--ink);
  background: #fbfcfa;
  border-color: #b5c4bd;
}

.ghost-button:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-strip span,
.badge,
.result-count,
.form-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.trust-strip span {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.trust-strip span:nth-child(2) {
  color: var(--blue);
  background: var(--blue-soft);
}

.trust-strip span:nth-child(3) {
  color: var(--amber);
  background: var(--amber-soft);
}

.quick-panel {
  padding: 18px;
  border-color: rgba(47, 103, 198, 0.6);
  border-top: 6px solid var(--blue);
}

.assist-panel {
  padding: 16px;
  border-color: rgba(182, 107, 18, 0.62);
  border-top: 6px solid var(--amber);
}

.assist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.assist-heading h2 {
  font-size: 20px;
}

.assist-heading span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.safety-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.safety-item {
  min-width: 0;
  min-height: 76px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  border: 2px solid #bfd3cd;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.safety-item:nth-child(2) {
  border-left-color: var(--blue);
}

.safety-item:nth-child(3) {
  border-left-color: var(--amber);
}

.safety-item:nth-child(4) {
  border-left-color: var(--rose);
}

.safety-item strong,
.safety-item span {
  display: block;
}

.safety-item strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.safety-item span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.example-chip {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfcfa;
  border: 2px solid #bfd3cd;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.example-chip:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.example-chip:nth-child(2) {
  border-left-color: var(--blue);
}

.example-chip:nth-child(3) {
  border-left-color: var(--amber);
}

.example-chip:nth-child(4) {
  border-left-color: var(--rose);
}

.assist-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.assist-stats span {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 2px solid #c5d5ce;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading span {
  color: var(--violet);
  background: var(--violet-soft);
}

.result-count {
  color: var(--blue);
  background: var(--blue-soft);
}

.popular-list {
  display: grid;
  gap: 8px;
}

.popular-button {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: #fbfcfa;
  border: 2px solid #c0d0ca;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
}

.popular-button:hover {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.popular-button:nth-child(2n) {
  border-left-color: var(--blue);
}

.popular-button:nth-child(3n) {
  border-left-color: var(--amber);
}

.popular-button:nth-child(4n) {
  border-left-color: var(--violet);
}

.popular-button:nth-child(5n) {
  border-left-color: var(--rose);
}

.popular-button strong,
.popular-button span {
  display: block;
}

.popular-button span {
  color: var(--muted);
  font-size: 13px;
}

.popular-button .popular-metrics {
  margin-top: 4px;
  color: var(--blue);
  font-weight: 800;
}

.popular-empty {
  padding: 14px;
  color: var(--muted);
  background: #fbfcfa;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 48px);
}

.results-column {
  min-width: 0;
}

.results-list {
  display: grid;
  gap: 12px;
}

.result-group {
  display: grid;
  gap: 12px;
}

.result-group + .result-group {
  margin-top: 8px;
}

.result-group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.result-group-heading h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.result-group-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-group-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid rgba(13, 114, 133, 0.42);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(13, 114, 133, 0.08);
}

.result-card-exact {
  border-color: rgba(20, 135, 122, 0.66);
  border-left-color: var(--teal);
  box-shadow: 0 12px 28px rgba(23, 109, 90, 0.12);
}

.result-card.result-quality-direct {
  border-left-color: var(--teal);
}

.result-card.result-quality-official_search {
  border-color: rgba(47, 103, 198, 0.5);
  border-left-color: var(--blue);
}

.result-card.result-quality-review,
.result-card.result-quality-unknown {
  border-color: rgba(182, 107, 18, 0.52);
  border-left-color: var(--amber);
}

.result-card h3 {
  margin: 0 0 6px;
}

.result-meta,
.link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-actions {
  display: grid;
  grid-template-columns: minmax(112px, 0.36fr) minmax(220px, 0.64fr);
  align-content: stretch;
  gap: 8px;
  width: 100%;
}

.result-actions .ghost-button,
.result-actions .primary-button {
  width: 100%;
  min-height: 44px;
}

.empty-state,
.detail-empty {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 2px dashed #b8c9c2;
  border-radius: 8px;
}

.detail-panel {
  align-self: start;
  min-width: 0;
  padding: 18px;
  border-color: rgba(105, 87, 200, 0.58);
  border-top: 6px solid var(--violet);
  position: sticky;
  top: 78px;
}

.compact {
  margin-bottom: 12px;
}

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-title-row h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.detail-title-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-row {
  min-width: 0;
  padding: 12px;
  background: #fbfcfa;
  border: 2px solid rgba(105, 87, 200, 0.36);
  border-left: 4px solid var(--violet);
  border-radius: 8px;
}

.link-row.link-quality-direct {
  border-color: rgba(20, 135, 122, 0.44);
  border-left-color: var(--teal);
}

.link-row.link-quality-official_search {
  border-color: rgba(47, 103, 198, 0.48);
  border-left-color: var(--blue);
}

.link-row.link-quality-review,
.link-row.link-quality-unknown {
  border-color: rgba(182, 107, 18, 0.48);
  border-left-color: var(--amber);
}

.link-row-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.link-row-header strong {
  word-break: keep-all;
}

.link-badges {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(220px, 100%);
}

.link-row .primary-button {
  width: 100%;
  margin-top: 12px;
}

.report-box {
  margin-top: 16px;
  padding: 12px;
  background: #fbfcfa;
  border: 2px dashed rgba(182, 107, 18, 0.4);
  border-radius: 8px;
}

.report-box summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.report-box[open] summary {
  margin-bottom: 10px;
}

.report-help {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.report-box textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid rgba(105, 87, 200, 0.36);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.report-status {
  color: var(--muted);
  font-size: 13px;
}

.model-seo-block {
  margin: 18px 0;
  padding: 20px;
  background: var(--surface);
  border: 2px solid rgba(20, 135, 122, 0.3);
  border-radius: 10px;
}

.model-seo-block h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.model-seo-block p {
  margin-bottom: 12px;
  color: var(--muted);
}

.model-seo-block table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.model-seo-block th,
.model-seo-block td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 135, 122, 0.2);
  font-size: 14px;
}

.model-seo-block th {
  background: rgba(20, 135, 122, 0.08);
}

.model-seo-note {
  font-size: 13px;
}

.related-models {
  margin-top: 16px;
}

.related-models h3,
.related-models h4 {
  margin-bottom: 8px;
  font-size: 15px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.related-links li {
  list-style: none;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  color: var(--ink);
  background: #fbfcfa;
  border: 2px solid rgba(20, 135, 122, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.related-links a:hover {
  border-color: var(--teal);
  background: rgba(20, 135, 122, 0.08);
}

.brand-model-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.brand-model-links li {
  list-style: none;
}

.brand-model-links a {
  color: var(--ink);
  font-size: 14px;
}

.faq-band {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid rgba(47, 103, 198, 0.48);
  border-top: 6px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(31, 41, 36, 0.11);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.faq-item {
  min-width: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  border: 2px solid #bfd3cd;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.faq-item:nth-child(2) {
  border-left-color: var(--teal);
}

.faq-item:nth-child(3) {
  border-left-color: var(--amber);
}

.faq-item:nth-child(4) {
  border-left-color: var(--rose);
}

.faq-item dt {
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-item dd {
  color: var(--muted);
  margin-left: 0;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.badge,
.result-meta span,
.link-meta span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.badge.status-official_driver_page_verified,
.badge.status-official_download_center_product_selected,
.badge.status-official_support_product_page_verified,
.badge.status-official_product_page_verified,
.badge.status-official_product_page_by_model,
.badge.status-verified {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.badge.status-needs_review,
.badge.status-admin_review,
.badge.status-official_page_not_found,
.badge.status-model_not_in_samsung_catalog {
  color: var(--warning);
  background: var(--warning-soft);
}

.badge.status-untrusted_url,
.badge.status-not_found {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge.status-active_or_unknown {
  color: var(--info);
  background: var(--info-soft);
}

.badge.status-official_model_search_page,
.badge.status-official_domain_verified {
  color: var(--info);
  background: var(--info-soft);
}

.badge.link-quality-direct {
  color: var(--accent-strong);
  background: var(--teal-soft);
  border: 1px solid rgba(20, 135, 122, 0.2);
}

.badge.link-quality-official_search {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(47, 103, 198, 0.2);
}

.badge.link-quality-review,
.badge.link-quality-unknown {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(182, 107, 18, 0.2);
}

.badge.status-official_download_center_product_selected {
  color: var(--violet);
  background: var(--violet-soft);
}

.badge.status-official_support_product_page_verified {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge.status-official_product_page_verified,
.badge.status-official_product_page_by_model {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.badge.match-exact {
  color: #ffffff;
  background: var(--accent);
}

.notice-band {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: #35250f;
  background: var(--amber-soft);
  border-top: 2px solid #d19a35;
  border-bottom: 2px solid #d19a35;
}

.notice-band strong {
  flex: 0 0 auto;
}

.notice-band p {
  min-width: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

.ops-band {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 20px;
  border-color: rgba(182, 107, 18, 0.6);
  border-top: 6px solid var(--amber);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 92px;
  padding: 16px;
  background: #fbfcfa;
  border: 2px solid rgba(20, 135, 122, 0.38);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
}

.metric-card:nth-child(2) {
  border-color: rgba(47, 103, 198, 0.38);
  border-top-color: var(--blue);
}

.metric-card:nth-child(3) {
  border-color: rgba(105, 87, 200, 0.38);
  border-top-color: var(--violet);
}

.metric-card:nth-child(4) {
  border-color: rgba(182, 107, 18, 0.42);
  border-top-color: var(--amber);
}

.metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.ops-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.ops-lists ul {
  min-height: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-lists li {
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  margin-top: 28px;
  color: #eaf4ef;
  background:
    linear-gradient(135deg, #173b35 0%, #243348 58%, #4b2530 100%);
  border-top: 5px solid var(--teal);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 48px) 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.footer-art {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(223, 245, 239, 0.75);
  border-radius: 8px;
}

.footer-logo-row strong,
.footer-logo-row small {
  display: block;
}

.footer-logo-row strong {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.footer-logo-row small {
  margin-top: 3px;
  color: #bad9d0;
  font-size: 13px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #cddbd5;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 20px;
  min-width: 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.footer-column h2 {
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 15px;
}

.footer-column a,
.footer-column > span {
  color: #d6e5df;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-manufacturers div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-manufacturers span,
.footer-manufacturers a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #eaf4ef;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.footer-manufacturers a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px);
  color: #bad0c8;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .tool-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  }
}

@media (max-width: 960px) {
  .app-header,
  .tool-layout,
  .content-grid,
  .notice-band,
  .metrics-grid,
  .ops-lists {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
    display: grid;
  }

  .top-nav {
    overflow-x: auto;
  }

  .tool-band {
    padding-top: 20px;
  }

  .detail-panel {
    position: static;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-band {
    align-items: flex-start;
  }

  .notice-band p {
    white-space: normal;
  }

  .footer-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .filter-grid,
  .search-row,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .safety-grid,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand small,
  .top-nav {
    font-size: 12px;
  }

  .brand strong {
    font-size: 17px;
  }

  .app-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-art {
    width: 40px;
    height: 40px;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .content-grid,
  .tool-band,
  .footer-inner,
  .footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-panel,
  .assist-panel,
  .quick-panel,
  .detail-panel,
  .ops-band {
    box-shadow: none;
  }

  .panel-heading,
  .assist-heading,
  .section-heading {
    display: grid;
    gap: 8px;
  }

  .result-count {
    justify-self: start;
  }

  .result-group-heading {
    display: grid;
    align-items: start;
    gap: 4px;
  }

  .result-group-heading span {
    justify-self: start;
  }

  .trust-strip span,
  .badge,
  .result-count,
  .form-status {
    min-height: 28px;
    font-size: 12px;
  }

  .notice-band {
    display: block;
  }

  .notice-band strong {
    display: block;
    margin-bottom: 6px;
  }

  .footer-inner {
    gap: 22px;
    padding-top: 24px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 26px;
  }

  .search-panel,
  .assist-panel,
  .quick-panel,
  .detail-panel,
  .ops-band {
    padding: 16px;
  }

  .safety-grid,
  .example-grid,
  .assist-stats {
    grid-template-columns: 1fr;
  }

  .footer-logo-row strong {
    font-size: 17px;
  }

  .footer-logo-row small {
    font-size: 12px;
  }
}
