:root {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #101828;
  --muted: #667085;
  --line: #d7dee8;
  --blue: #005ea8;
  --blue-2: #0073ce;
  --blue-soft: #e8f3ff;
  --green: #0f766e;
  --green-soft: #e6f6f2;
  --orange: #b45309;
  --orange-soft: #fff4e5;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #eef2f6;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 94, 168, 0.08), transparent 30vw),
    linear-gradient(180deg, #f7f9fc 0, var(--bg) 420px);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font: inherit;
  color-scheme: light;
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(5, 22, 38, 0.96) 0%, rgba(5, 22, 38, 0.82) 42%, rgba(5, 22, 38, 0.36) 100%),
    url("./assets/da-competence.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  background: linear-gradient(180deg, transparent, rgba(5, 22, 38, 0.7));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 14px;
  width: 100%;
  min-height: 250px;
  align-content: center;
  padding: 24px;
}

.brand-stack {
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 8px;
  width: 180px;
}

.brand-stack-left {
  grid-column: 1;
}

.brand-stack-right {
  grid-column: 3;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
}

.source-brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.brand-lockup {
  grid-column: 2;
  display: grid;
  align-self: end;
  justify-self: center;
  justify-items: center;
  gap: 6px;
  width: min(680px, 100%);
  text-align: center;
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.banner-company-logo {
  display: block;
  width: clamp(105px, 11vw, 140px);
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.brand-name-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.brand-en {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brand-en > span {
  color: rgba(255, 255, 255, 0.9);
}

.brand-en > strong {
  color: #9bd3ff;
  font-weight: inherit;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
}

.source-brand {
  position: relative;
  height: 31px;
  min-height: 31px;
  overflow: hidden;
  padding: 2px 8px;
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.93),
      rgba(247, 250, 253, 0.84)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 12px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(7px) saturate(115%);
  backdrop-filter: blur(7px) saturate(115%);
  appearance: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .source-brand:hover {
    transform: translateY(-1px);
    border-color: rgba(155, 211, 255, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  }
}

.source-brand:active {
  transform: scale(0.97);
}

.source-brand.active {
  border-color: #67b8f5;
  background: rgba(232, 245, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(103, 184, 245, 0.28);
}

.source-brand .brand-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 2px 8px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.source-brand .brand-logo-cropped {
  width: 78px;
  height: 78px;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  padding: 0;
}

.brand-gemsy .brand-logo-cropped {
  width: 86px;
  height: 86px;
}

.brand-beisler .brand-logo-cropped {
  width: 76px;
  height: 76px;
}

.brand-butterfly .brand-logo-cropped {
  width: 64px;
  height: 64px;
}

.brand-sonotronic .brand-logo-cropped {
  width: 88px;
  height: 88px;
}

.brand-reference::after {
  content: "↗";
  position: absolute;
  top: 2px;
  right: 5px;
  color: rgba(0, 94, 168, 0.62);
  font-size: 9px;
  font-weight: 800;
}

.da-logo {
  max-width: 100%;
  max-height: 100%;
}

.brand-richpeace {
  gap: 5px;
}

.brand-richpeace .brand-logo {
  width: 22px;
  height: 22px;
  padding: 0;
}

.brand-wordmark {
  color: #25228a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

h1 span {
  color: #9bd3ff;
}

.brand-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.search-panel {
  grid-column: 2;
  align-self: start;
  justify-self: center;
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88),
      rgba(244, 249, 253, 0.76)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 32px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(118%);
  backdrop-filter: blur(12px) saturate(118%);
}

.search-main {
  display: grid;
  gap: 0;
}

.search-main label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 6px;
}

.search-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background-color 150ms ease,
    transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}

.search-button:hover {
  background: var(--blue-2);
}

.search-button:active {
  transform: scale(0.97);
}

.search-main input {
  min-height: 40px;
  border-color: rgba(197, 208, 221, 0.88);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hidden-controls {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  -webkit-text-fill-color: var(--ink);
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  opacity: 1;
  -webkit-text-fill-color: #98a2b3;
}

input:focus,
select:focus,
button:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 94, 168, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: #edf2f7;
  color: #344054;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.word-cloud {
  position: absolute;
  inset: 16px -90px 16px 210px;
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  opacity: 0.35;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.cloud-row {
  display: flex;
  width: max-content;
  gap: 16px;
  will-change: transform;
  animation: cloudMarquee 54s linear infinite;
}

.cloud-row-2 {
  animation-direction: reverse;
  animation-duration: 64s;
  animation-delay: -21s;
}

.cloud-row-3 {
  animation-duration: 72s;
  animation-delay: -37s;
}

.cloud-term {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(4, 17, 30, 0.18);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes cloudMarquee {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.content {
  min-width: 0;
}

.sidebar,
.card,
.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 12px;
}

.side-section {
  display: grid;
  gap: 8px;
}

.side-section + .side-section {
  padding-top: 12px;
  border-top: 1px solid #e5ebf3;
}

.side-section h2 {
  margin: 0;
  font-size: 13px;
  color: #344054;
}

.side-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.quick {
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-2);
  color: #344054;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.term-nav .quick {
  background: #f6f9fc;
}

.brand-nav .quick {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f9ff;
  padding-inline: 8px;
  text-decoration: none;
}

.nav-brand-logo,
.nav-brand-logo-placeholder {
  width: 28px;
  height: 22px;
  flex: 0 0 28px;
}

.nav-brand-logo {
  display: block;
  object-fit: contain;
}

.nav-brand-logo-symbol {
  padding: 1px 4px;
}

.nav-brand-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-brand-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
}

.brand-nav .quick:hover .nav-brand-count,
.brand-nav .quick.active .nav-brand-count {
  color: inherit;
}

.doc-nav .quick {
  background: #f8fafc;
}

.system-topic-nav[hidden] {
  display: none !important;
}

.system-topic-nav .quick {
  background: #f7f9fc;
}

.quick:hover,
.quick.active {
  border-color: rgba(0, 94, 168, 0.24);
  background: var(--blue-soft);
  color: #004b85;
}

.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.summary-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pagination {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.pagination-bottom {
  justify-content: center;
  width: 100%;
  margin: 14px 0 4px;
}

.page-button {
  min-height: 30px;
  border: 1px solid rgba(0, 94, 168, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.page-button:hover:not(:disabled) {
  background: var(--blue-soft);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-status {
  color: #475467;
  font-size: 13px;
  white-space: nowrap;
}

.feedback-open {
  min-height: 28px;
  border: 1px solid rgba(0, 94, 168, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 0 11px;
  cursor: pointer;
}

.feedback-open:hover {
  background: var(--blue-soft);
}

.results {
  display: grid;
  gap: 10px;
}

.card {
  padding: 13px 14px;
}

.term-card {
  position: relative;
  padding-right: 58px;
}

.term-report-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: inherit;
}

.term-report-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d0d9e6;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .term-report-button:hover span {
    border-color: rgba(0, 94, 168, 0.42);
    background: var(--blue-soft);
    color: var(--blue);
    transform: translateY(-1px);
  }
}

.term-report-button:active span {
  transform: scale(0.96);
}

.term-report-button:focus-visible {
  outline: 3px solid rgba(0, 94, 168, 0.2);
  outline-offset: 2px;
}

.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.term-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.term-cell span,
.term-label {
  color: #667085;
  font-size: 12px;
}

.term-cell strong {
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.term-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  min-width: 150px;
}

.badge.ok {
  background: var(--green-soft);
  color: var(--green);
}

.badge.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.context-grid.one {
  grid-template-columns: 1fr;
}

.context-grid b {
  color: #475467;
}

.context-grid p,
.doc-card p,
details p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
}

.source-summary {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e5ebf3;
  border-radius: 6px;
  background: var(--surface-2);
}

.source-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-summary b {
  display: inline-flex;
  min-width: 68px;
  margin-right: 8px;
  color: #475467;
}

.source-full {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #e5ebf3;
}

.source-full summary {
  font-size: 12px;
}

.doc-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.doc-file-count {
  color: #475467;
  font-size: 13px;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}

.doc-actions a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.doc-actions.prominent {
  gap: 8px;
  margin-top: 14px;
}

.resource-meta {
  margin: 9px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.term-review-panel a {
  display: inline-flex;
  margin-top: 7px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.doc-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(0, 94, 168, 0.22);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  padding: 0 13px;
  font-size: 13px;
}

.doc-open.primary {
  min-height: 38px;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 0 16px;
}

.doc-file-list {
  margin-top: 11px;
}

.doc-file-list > div {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.doc-file-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: #344054;
  text-decoration: none;
  font-size: 12px;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #edf2f7;
  color: #344054;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

mark {
  border-radius: 3px;
  background: #fff2a8;
  padding: 0 2px;
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 42px 18px;
  text-align: center;
  color: var(--muted);
}

.feedback-dialog {
  width: min(460px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
}

.feedback-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

.feedback-dialog form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback-dialog label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.feedback-dialog textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.submit-button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

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

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 80;
  display: none;
  width: 52px;
  min-height: 52px;
  border: 1px solid rgba(0, 94, 168, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.18);
  cursor: pointer;
  font-weight: 800;
}

body.show-back-to-top .back-to-top {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.back-to-top span {
  font-size: 18px;
  line-height: 1;
}

.back-to-top b {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    column-gap: 18px;
    padding: 24px;
  }

  .brand-stack {
    width: 150px;
  }

  .search-panel {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .app-shell {
    width: 100%;
    padding: 0 8px 28px;
  }

  .hero {
    min-height: 280px;
    border-radius: 0 0 8px 8px;
    border-top: 0;
    background-position: 70% center;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 0;
    row-gap: 8px;
    min-height: 280px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 16px;
  }

  .brand-stack {
    grid-column: 1;
    width: 100%;
    gap: 0;
  }

  .brand-stack-left {
    grid-row: 2;
  }

  .brand-stack-right {
    grid-row: 3;
  }

  .brand-card {
    min-height: 0;
    padding: 0;
  }

  .source-brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .source-brand {
    height: 44px;
    min-height: 44px;
    padding: 3px 2px;
  }

  .source-brand .brand-logo {
    max-height: 100%;
    padding-block: 2px;
    padding-inline: 2px;
  }

  .source-brand .brand-logo-cropped {
    max-width: none;
    max-height: none;
    padding: 0;
  }

  .brand-richpeace .brand-logo {
    width: 21px;
    height: 21px;
    padding: 0;
  }

  .brand-wordmark {
    font-size: 10px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-items: center;
    text-align: center;
  }

  .brand-title-row {
    gap: 8px;
  }

  .banner-company-logo {
    width: min(86px, 24vw);
  }

  .brand-name-pair {
    gap: 7px;
  }

  .brand-en {
    padding-left: 7px;
    font-size: 12px;
  }

  .da-logo {
    width: 100%;
    max-height: 100%;
  }

  h1 {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1;
    white-space: nowrap;
  }

  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .search-panel,
  .filter-row,
  .context-grid,
  .card-head {
    grid-template-columns: 1fr;
  }

  .search-panel {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    margin: 0;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  }

  body.search-docked .search-panel {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 8px;
    right: 8px;
    z-index: 70;
    width: auto;
    margin: 0;
    padding: 8px;
    border-color: rgba(0, 94, 168, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.18);
  }

  body.search-docked .search-main {
    gap: 4px;
  }

  body.search-docked .search-main label {
    display: none;
  }

  body.search-docked .search-input-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 6px;
  }

  body.search-docked input,
  body.search-docked .search-button {
    min-height: 44px;
  }

  body.search-docked .search-button {
    padding: 0 10px;
  }

  .search-button {
    min-height: 44px;
    padding: 0 12px;
  }

  .search-input-row {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 6px;
  }

  input,
  select {
    min-height: 44px;
    font-size: 16px;
  }

  .workbench {
    display: block;
    margin-top: 10px;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 10px;
    padding: 10px;
    gap: 8px;
  }

  .side-section {
    gap: 7px;
  }

  .side-section + .side-section {
    padding-top: 8px;
  }

  .side-section p {
    font-size: 11px;
  }

  .sidebar .side-section:last-child {
    display: none;
  }

  .side-section.term-nav,
  .side-section.brand-nav,
  .side-section.doc-nav,
  .side-section.system-topic-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .side-section.term-nav h2,
  .side-section.brand-nav h2,
  .side-section.doc-nav h2,
  .side-section.system-topic-nav h2 {
    position: sticky;
    left: 0;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    padding-right: 8px;
    background: #fff;
  }

  .side-section.term-nav::-webkit-scrollbar,
  .side-section.brand-nav::-webkit-scrollbar,
  .side-section.doc-nav::-webkit-scrollbar,
  .side-section.system-topic-nav::-webkit-scrollbar {
    display: none;
  }

  .quick {
    width: auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .badges {
    justify-content: flex-start;
    min-width: 0;
  }

  .summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination {
    margin-left: 0;
    justify-content: flex-start;
  }

  .page-button {
    min-height: 44px;
  }

  .feedback-open,
  .submit-button {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .results {
    gap: 8px;
  }

  .card {
    padding: 11px;
  }

  .term-card {
    padding-right: 62px;
  }

  .term-report-button {
    top: 50%;
    right: 4px;
    width: 44px;
    height: 44px;
  }

  .card-head {
    gap: 8px;
  }

  .terms {
    gap: 8px;
  }

  .term-cell {
    gap: 2px;
  }

  .term-cell strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .term-meta {
    font-size: 11px;
    line-height: 1.32;
  }

  .doc-actions.prominent {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doc-open,
  .doc-open.primary {
    width: 100%;
    min-height: 44px;
  }

  .doc-file-count {
    font-size: 12px;
  }

  .doc-file-list a {
    padding: 8px;
  }

  details {
    margin-top: 7px;
    font-size: 12px;
  }

  .word-cloud {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-row {
    animation: none;
  }

  .cloud-row-2 {
    transform: translateX(-18%);
  }

  .cloud-row-3 {
    transform: translateX(-8%);
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 270px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    min-height: 270px;
    padding-inline: 8px;
  }

  .brand-stack {
    width: 100%;
  }

  .brand-card {
    min-height: 0;
    padding: 0;
  }

  .source-brand .brand-logo-cropped {
    width: min(64px, 100%);
    height: auto;
  }

  .brand-gemsy .brand-logo-cropped,
  .brand-sonotronic .brand-logo-cropped {
    width: min(68px, 100%);
    height: auto;
  }

  .brand-beisler .brand-logo-cropped {
    width: min(62px, 100%);
    height: auto;
  }

  .brand-butterfly .brand-logo-cropped {
    width: min(58px, 100%);
    height: auto;
  }

  .brand-richpeace .brand-logo {
    display: none;
  }

  .brand-wordmark {
    font-size: 9px;
  }

  .banner-company-logo {
    width: min(82px, 25vw);
  }

  .brand-en {
    padding-left: 6px;
    font-size: 12px;
  }

  .da-logo {
    width: 100%;
    max-height: 100%;
  }

  h1 {
    font-size: clamp(24px, 7.6vw, 28px);
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .terms {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .term-cell {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
  }

  .summary-left {
    gap: 6px;
  }

  .pagination {
    width: 100%;
  }

  .page-status {
    flex: 1;
    text-align: center;
  }

  .back-to-top {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}
