:root {
  --color-primary: #0b2a4a;
  --color-on-primary: #ffffff;
  --color-secondary: #385168;
  --color-accent: #d38a1d;
  --color-success: #137b68;
  --color-background: #f4f7f8;
  --color-surface: #ffffff;
  --color-foreground: #10243a;
  --color-muted: #e8eef1;
  --color-muted-foreground: #687d8e;
  --color-border: #dce5e9;
  --color-danger: #dc2626;
  --shadow-soft: 0 24px 60px rgba(16, 36, 58, 0.1);
  --radius: 12px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-foreground);
  background: var(--color-background);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-mark strong {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #a96812;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.45);
  outline-offset: 3px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

.header-shell {
  position: relative;
  z-index: 60;
}

.brand-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--color-primary);
}

.brand-logo {
  width: 128px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark > span {
  display: none;
}

.brand-mark:hover {
  color: var(--color-primary);
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: 8px;
  font-family: "Lexend", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-mark small {
  display: block;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
}

.navbar .nav-link {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--color-secondary);
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-accent);
}

.nav-language-item {
  display: flex;
  align-items: center;
}

.navbar .nav-language-switch {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  margin: 4px 0 4px 8px;
  padding: 6px 11px;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-language-switch span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--color-on-primary);
  border-radius: 50%;
  background: var(--color-primary);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.navbar .nav-language-switch:hover {
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  background: var(--color-primary);
  transform: translateY(-1px);
}

.navbar .nav-language-switch:hover span {
  color: var(--color-primary);
  background: var(--color-on-primary);
}

.navbar .nav-language-switch:focus-visible {
  outline-offset: 2px;
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-admin-link {
  color: var(--color-muted-foreground) !important;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--color-on-primary);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  color: var(--color-on-primary);
  background: #af6d12;
  border-color: #af6d12;
}

.btn-secondary {
  color: var(--color-primary);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  color: var(--color-primary);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-light {
  color: var(--color-primary);
  background: var(--color-on-primary);
}

.btn-danger {
  color: #fff;
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.hero-section,
.page-hero {
  background:
    radial-gradient(circle at 90% 5%, rgba(211, 138, 29, 0.16), transparent 24%),
    linear-gradient(135deg, #f9fbfb 0%, #edf3f5 100%);
}

.hero-section {
  padding: 0 0 8px;
  overflow: clip;
}

.hero-section + .content-section {
  padding-top: 28px;
}

.hero-grid,
.product-detail-grid,
.two-column,
.about-layout,
.contact-layout,
.product-content-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-banner {
  position: relative;
  min-height: clamp(560px, 47vw, 760px);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-primary);
  border-radius: 0;
}

.hero-banner-shell {
  display: flex;
  align-items: center;
  min-height: clamp(560px, 47vw, 760px);
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}

.hero-banner-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition: opacity 520ms ease;
}

.hero-banner-slide .hero-banner-image {
  z-index: 0;
}

.hero-banner-slide .hero-banner-overlay {
  z-index: 1;
}

.hero-banner-slide .hero-banner-shell {
  position: relative;
  z-index: 2;
}

.hero-banner-image,
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-banner-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-banner-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 33, 0.88) 0%, rgba(4, 18, 33, 0.62) 38%, rgba(4, 18, 33, 0.16) 76%, rgba(4, 18, 33, 0.28) 100%),
    linear-gradient(0deg, rgba(4, 18, 33, 0.58) 0%, transparent 48%);
}

.hero-banner-content {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(48px, 6vw, 92px) 0;
  color: #fff;
}

.hero-banner-content .eyebrow {
  color: #f3bf68;
}

.hero-copy h1,
.hero-banner-content h1,
.page-hero h1 {
  max-width: 780px;
  color: var(--color-primary);
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.05;
}

.hero-lede,
.page-hero p,
.section-heading p {
  max-width: 690px;
  color: var(--color-secondary);
  font-size: 1.16rem;
}

.hero-banner-content h1 {
  margin-bottom: 22px;
  color: #fff;
  text-wrap: balance;
}

.hero-banner-content .hero-lede {
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.row-actions,
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 580px;
  margin: 32px 0 0;
}

.hero-metrics div {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-metrics dt {
  color: var(--color-primary);
  font-family: "Lexend", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0;
  color: var(--color-muted-foreground);
}

.hero-banner-metrics {
  width: min(100%, 660px);
  max-width: none;
  margin-top: 42px;
}

.hero-banner-metrics div {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-banner-metrics dt {
  color: #fff;
}

.hero-banner-metrics dd {
  color: rgba(255, 255, 255, 0.72);
}

.hero-banner-content .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.hero-banner-content .btn-secondary:hover {
  color: var(--color-primary);
  background: #fff;
  border-color: #fff;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100% - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-carousel-arrow,
.hero-carousel-dot {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(4, 18, 33, 0.34);
  cursor: pointer;
}

.hero-carousel-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  color: var(--color-primary);
  background: #fff;
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.hero-carousel-dot.is-active {
  width: 24px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  border-radius: 8px;
}

.hero-section .slide-strip {
  margin-top: 20px;
}

.hero-media {
  position: relative;
}

.hero-media img,
.product-detail-hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 300px;
  padding: 18px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  color: var(--color-secondary);
}

.section-band,
.content-section,
.cta-section {
  padding: 72px 0;
}

.section-band {
  background: #fff;
}

.section-heading {
  margin-bottom: 28px;
}

.home-product-search {
  display: flex;
  max-width: 620px;
  margin-top: 20px;
  gap: 10px;
}

.home-product-search .form-control {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
}

.home-product-search .btn {
  flex: 0 0 auto;
}

.home-search-results {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8fbff;
}

.home-search-summary,
.home-search-empty,
.product-cas {
  color: var(--color-secondary);
}

.home-search-summary {
  margin-bottom: 18px;
  font-weight: 700;
}

.section-heading h2,
.content-section h2,
.cta-section h2 {
  color: var(--color-primary);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card,
.product-card,
.product-row,
.news-card,
.info-panel,
.contact-panel,
.inquiry-card,
.auth-card,
.admin-card,
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: var(--color-primary);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.category-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f7;
}

.category-card span,
.category-card p {
  padding-inline: 18px;
}

.category-card span {
  padding-top: 18px;
  font-family: "Lexend", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.category-card p {
  color: var(--color-secondary);
}

.two-column,
.about-layout,
.contact-layout,
.product-content-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div,
.department-list div {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.feature-list strong,
.feature-list span,
.department-list strong,
.department-list span,
.department-list a {
  display: block;
}

.feature-list span,
.department-list span {
  color: var(--color-secondary);
}

.product-card {
  overflow: hidden;
}

.product-card div {
  padding: 20px;
}

.product-card h3,
.product-row h3 {
  color: var(--color-primary);
  font-size: 1.18rem;
}

.product-cas {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.product-facts div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-facts div:nth-child(even) {
  border-right: 0;
}

.product-facts div:last-child:nth-child(odd),
.product-facts div:last-child:nth-child(even),
.product-facts div:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.product-facts div:last-child:nth-child(odd) {
  border-right: 0;
}

.product-facts strong {
  color: var(--color-primary);
}

.product-facts span {
  color: var(--color-secondary);
  overflow-wrap: anywhere;
}

.product-name-en {
  margin-bottom: 12px;
  color: var(--color-muted-foreground);
  font-size: 1.1rem;
}

.markdown-body { color: var(--color-secondary); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin-top: 1.5em; color: var(--color-primary); }
.product-facts, .document-list, .image-grid, .spec-table { display: none; }

.product-category,
.spec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 3px 9px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cta-section {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.cta-section h2,
.cta-section p {
  color: var(--color-on-primary);
}

.cta-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.page-hero {
  padding: 64px 0;
}

.page-hero.compact {
  padding: 54px 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
}

.search-form,
.category-filter {
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.search-form {
  margin-bottom: 16px;
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.category-filter {
  display: grid;
  gap: 8px;
}

.category-filter a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: var(--color-secondary);
  border-radius: 6px;
}

.category-filter a.active,
.category-filter a:hover {
  color: var(--color-accent);
  background: #e0f2fe;
}

.results-heading {
  margin-bottom: 18px;
}

.product-list {
  display: grid;
  gap: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.product-row img {
  width: 170px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f7;
}

.catalog-sidebar {
  display: grid;
  gap: 16px;
}

.catalog-category-tree {
  max-height: calc(100dvh - 242px);
  padding: 14px;
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.catalog-tree-heading {
  display: grid;
  gap: 2px;
  padding: 4px 10px 12px;
}

.catalog-tree-heading > span {
  color: var(--color-primary);
  font-weight: 800;
}

.catalog-tree-heading > small,
.catalog-tree-kind {
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.catalog-tree-all,
.catalog-tree-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--color-secondary);
  border-radius: 6px;
}

.catalog-tree-all small {
  min-width: 24px;
  padding: 1px 7px;
  color: var(--color-accent);
  background: #e0f2fe;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.catalog-tree-list,
.catalog-tree-children {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-tree-children {
  position: relative;
  margin: 2px 0 4px 13px;
  padding-left: 12px;
  border-left: 1px solid #d9e4ee;
}

.catalog-tree-node {
  min-width: 0;
}

.catalog-tree-link {
  position: relative;
}

.catalog-tree-children > .catalog-tree-node > .catalog-tree-link::before {
  width: 8px;
  height: 1px;
  margin-right: -2px;
  background: #d9e4ee;
  content: "";
}

.catalog-tree-label {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.catalog-tree-all:hover,
.catalog-tree-all.is-selected,
.catalog-tree-link:hover,
.catalog-tree-link.is-selected {
  color: var(--color-accent);
  background: #e0f2fe;
}

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

.results-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.results-heading h2 {
  margin: 3px 0 2px;
}

.results-heading p {
  margin: 0;
  color: var(--color-secondary);
}

.catalog-result-eyebrow {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-product-list {
  gap: 18px;
}

.catalog-product-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.catalog-product-card:hover {
  border-color: #b7d5ee;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.catalog-product-copy {
  min-width: 0;
}

.catalog-product-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  font-size: 1.18rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-title:hover,
.catalog-product-title:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}

.catalog-product-name-en,
.product-drawer-name-en {
  display: block;
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 0.92rem;
}

.catalog-product-copy p {
  margin: 8px 0 0;
  color: var(--color-secondary);
}

.catalog-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
  color: var(--color-secondary);
}

.catalog-pager a {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-weight: 700;
}

.catalog-pager > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  font-weight: 700;
}

.catalog-pager a:hover {
  background: #e0f2fe;
  border-color: #b7d5ee;
}

.catalog-pager .is-disabled {
  color: #a4b1bf;
  background: #f6f8fa;
  border: 1px solid #e7edf2;
  border-radius: 6px;
  cursor: not-allowed;
}

.catalog-pager-status {
  padding-inline: 3px !important;
}

.public-product-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(640px, 100vw);
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  box-shadow: -18px 0 42px rgba(4, 18, 33, 0.2);
}

.public-product-drawer::backdrop {
  background: rgba(4, 18, 33, 0.44);
}

.public-product-drawer-surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: var(--color-surface);
}

.public-product-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 24px;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  font-weight: 800;
}

.public-product-drawer-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-secondary);
  background: #f4f8fb;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1.65rem;
  line-height: 1;
}

.public-product-drawer-close:hover,
.public-product-drawer-close:focus-visible {
  color: var(--color-primary);
  border-color: #b7d5ee;
  background: #e0f2fe;
}

.public-product-drawer-body {
  min-height: 0;
  padding: 24px;
  overflow: auto;
}

.product-drawer-summary > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.product-drawer-summary h2 {
  margin: 2px 0 4px;
  color: var(--color-primary);
}

.product-drawer-slug {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-top: 16px;
  color: var(--color-secondary);
  line-height: 1.55;
}

.product-drawer-slug > span {
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-drawer-slug code {
  padding: 2px 7px;
  color: #075985;
  background: #f1f7fb;
  border-radius: 4px;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.product-drawer-summary-text {
  margin: 12px 0 0;
  color: var(--color-secondary);
  line-height: 1.7;
}

.product-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.product-drawer-facts div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-drawer-facts div:nth-child(even) {
  border-right: 0;
}

.product-drawer-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-drawer-facts dt {
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-drawer-facts dd {
  margin: 0;
  color: var(--color-primary);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.product-drawer-content {
  margin-top: 26px;
  color: var(--color-secondary);
}

.product-drawer-content h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1.18rem;
}

.product-drawer-content .markdown-body {
  color: var(--color-secondary);
}

.product-drawer-inquiry {
  width: 100%;
  margin-top: 28px;
}

.product-detail-grid {
  grid-template-columns: minmax(0, 1fr) 480px;
}

.product-content-layout {
  align-items: start;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 220px;
  color: var(--color-primary);
  background: #f8fafc;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.inquiry-card,
.info-panel,
.contact-panel {
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  padding: 24px;
}

.news-card time,
.article-body time,
.article-location {
  color: var(--color-muted-foreground);
}

.article-body {
  max-width: 820px;
}

.contact-layout {
  align-items: start;
}

.inquiry-form,
.admin-form {
  display: grid;
  gap: 18px;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.search-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-weight: 700;
}

.form-control {
  min-height: 44px;
  border-color: var(--color-border);
  border-radius: var(--radius);
}

textarea.form-control {
  min-height: 140px;
}

.feedback-toast-region {
  position: fixed;
  z-index: 2100;
  top: 20px;
  right: 20px;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.feedback-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid #b7e4cb;
  border-radius: 8px;
  background: #f1fff7;
  box-shadow: 0 14px 32px rgba(4, 18, 33, 0.18);
  color: #146c43;
  font-weight: 700;
  pointer-events: auto;
  animation: feedback-toast-enter 180ms ease-out;
}

.feedback-toast.is-error {
  border-color: #f1b9bc;
  background: #fff5f5;
  color: #a62b36;
}

.feedback-toast-message {
  flex: 1;
  line-height: 1.45;
}

.feedback-toast-close {
  width: 24px;
  height: 24px;
  margin: -2px -2px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: currentColor;
  font-size: 1.35rem;
  line-height: 1;
}

.feedback-toast-close:hover,
.feedback-toast-close:focus-visible {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.feedback-toast.is-leaving {
  animation: feedback-toast-leave 180ms ease-in forwards;
}

@keyframes feedback-toast-enter {
  from { opacity: 0; transform: translateY(-8px) translateX(12px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

@keyframes feedback-toast-leave {
  from { opacity: 1; transform: translateY(0) translateX(0); }
  to { opacity: 0; transform: translateY(-6px) translateX(10px); }
}

.product-editor-dialog .EasyMDEContainer,
.admin-form .EasyMDEContainer {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-editor-dialog .EasyMDEContainer .editor-toolbar,
.admin-form .EasyMDEContainer .editor-toolbar {
  border: 0;
  background: #f7fafc;
}

.product-editor-dialog .EasyMDEContainer .CodeMirror,
.admin-form .EasyMDEContainer .CodeMirror {
  min-height: 220px;
  border: 0;
  color: var(--color-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.product-editor-dialog .EasyMDEContainer .editor-statusbar,
.admin-form .EasyMDEContainer .editor-statusbar {
  padding: 7px 10px;
  color: var(--color-secondary);
}

.field-validation,
.field-validation-error {
  display: block;
  margin-top: 5px;
  color: var(--color-danger);
  font-size: 0.92rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-panel dl,
.detail-list {
  display: grid;
  gap: 12px;
}

.contact-panel dt,
.detail-list dt {
  color: var(--color-primary);
  font-weight: 700;
}

.contact-panel dd,
.detail-list dd {
  margin: 0;
  color: var(--color-secondary);
}

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

.auth-section {
  display: grid;
  min-height: calc(100dvh - 76px);
  place-items: center;
  padding: 48px 16px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.check-control {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  padding: 56px 0 28px;
  color: #cbd5e1;
  background: #07111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  column-gap: clamp(56px, 11vw, 180px);
  row-gap: 28px;
}

.footer-grid h2 {
  color: #fff;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: #cbd5e1;
}

.footer-brand,
.footer-brand:hover {
  color: #fff;
}

.footer-copy {
  max-width: 680px;
  margin-top: 16px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.portal-page {
  display: flex;
  flex-direction: column;
}

.portal-module {
  order: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 76px);
}

.admin-sidebar {
  padding: 22px;
  color: #dbeafe;
  background: var(--color-primary);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.admin-sidebar a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  color: #dbeafe;
  border-radius: 6px;
}

.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-brand {
  color: #fff !important;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin-bottom: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--color-muted-foreground);
}

.stat-card strong {
  color: var(--color-primary);
  font-family: "Lexend", sans-serif;
  font-size: 2rem;
}

.admin-card {
  padding: 22px;
  margin-bottom: 20px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.table-actions form {
  margin: 0;
}

.text-button {
  padding: 0;
  color: var(--color-accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.text-button.danger {
  color: var(--color-danger);
}

.admin-table th {
  color: var(--color-primary);
  background: #f8fafc;
}

.admin-table small,
.media-card small {
  color: var(--color-muted-foreground);
}

.sortable-hint {
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.sortable-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--color-success);
  font-size: 0.92rem;
}

.sortable-status.is-error {
  color: var(--color-danger);
}

.sortable-column,
.sortable-cell {
  width: 48px;
  padding-inline: 8px !important;
  text-align: center !important;
}

.sortable-handle {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--color-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: grab;
  font-size: 1.2rem;
  line-height: 1;
}

.sortable-handle:hover,
.sortable-handle:focus-visible {
  color: var(--color-accent);
  background: #fff7e6;
  border-color: #f3cf8e;
}

.sortable-admin-list tr[draggable="true"] {
  transition: background-color 140ms ease, opacity 140ms ease;
}

.sortable-admin-list tr.is-dragging {
  opacity: 0.45;
  background: #fff7e6;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  font-weight: 700;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.product-management-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.category-workspace,
.product-workspace {
  min-width: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.category-workspace {
  position: sticky;
  top: 18px;
  max-height: calc(100dvh - 112px);
  display: flex;
  flex-direction: column;
}

.workspace-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--color-border);
}

.workspace-panel-header h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.12rem;
}

.workspace-panel-header p,
.empty-tree,
.empty-table {
  margin: 6px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}

.workspace-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-workspace .workspace-actions {
  margin-top: 12px;
}

.workspace-actions .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.workspace-status {
  min-height: 22px;
  margin: 0;
  padding: 5px 18px 0;
  color: var(--color-success);
  font-size: 0.84rem;
}

.workspace-status.is-error,
.form-error {
  color: var(--color-danger);
}

.category-tree-scroll {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.category-tree,
.category-tree ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tree ul {
  margin: 3px 0 0 24px;
  padding-left: 9px;
  border-left: 1px solid var(--color-border);
}

.category-tree-node {
  min-width: 0;
}

.category-tree-row {
  display: grid;
  grid-template-columns: 24px 18px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-height: 36px;
}

.category-drag-handle,
.icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--color-secondary);
  border: 0;
  background: transparent;
  cursor: grab;
  font: inherit;
  line-height: 1;
}

.category-drag-handle:hover,
.category-drag-handle:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--color-accent);
  background: #fff7e6;
}

.icon-button {
  cursor: pointer;
  font-size: 1.2rem;
}

.category-select {
  width: 16px;
  height: 16px;
  margin: 0;
}

.category-tree-link,
.category-tree-all {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: var(--color-secondary);
  border-radius: 4px;
}

.category-tree-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tree-link small {
  flex: 0 0 auto;
  color: var(--color-muted-foreground);
}

.category-tree-link:hover,
.category-tree-all:hover,
.category-tree-link.is-selected,
.category-tree-all.is-selected {
  color: var(--color-primary);
  background: #edf5ff;
}

.category-node-edit {
  padding: 4px 6px;
  color: var(--color-accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.category-node-edit:hover,
.category-node-edit:focus-visible { text-decoration: underline; }

.category-tree-node.is-dragging .category-tree-row {
  opacity: 0.48;
  background: #fff7e6;
}

.product-workspace {
  overflow: hidden;
}

.product-management-table {
  min-width: 700px;
}

.product-search {
  display: flex;
  gap: 10px;
  padding: 14px 18px 0;
}

.product-search .form-control { min-width: 0; flex: 1; }
.select-column { width: 42px; text-align: center !important; }

.table-pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 18px; color: var(--color-secondary); }
.table-pager a { color: var(--color-accent); font-weight: 700; }

.admin-product-pager {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-product-pager a,
.admin-product-pager > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 5px;
}

.admin-product-pager a {
  color: var(--color-accent);
  background: #f5f9fc;
  border: 1px solid #d7e3ed;
}

.admin-product-pager a:hover {
  color: #075985;
  background: #e0f2fe;
  border-color: #b7d5ee;
}

.admin-product-pager .is-disabled {
  color: #a4b1bf;
  background: #f6f8fa;
  border: 1px solid #e7edf2;
  cursor: not-allowed;
}

.admin-product-pager-status {
  padding-inline: 2px !important;
}

.news-management-workspace {
  display: grid;
  gap: 16px;
}

.news-workspace-header {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--color-border);
}

.news-workspace-actions {
  align-self: flex-start;
}

.news-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
}

.news-search .form-control {
  min-width: 0;
  flex: 1;
}

.tagify {
  width: 100%;
  min-height: 44px;
  padding: 4px 7px;
  --tags-border-color: var(--color-border);
  --tags-hover-border-color: #b7d5ee;
  --tags-focus-border-color: var(--color-accent);
  --tag-bg: #e0f2fe;
  --tag-text-color: #075985;
  --tag-hover: #cbe9fb;
  --tag-remove-btn-color: #075985;
  --tag-remove-btn-bg--hover: #bae6fd;
  border-radius: var(--radius);
}

.tagify__tag {
  margin: 3px;
  font-weight: 700;
}

.tagify__input {
  min-width: 130px;
  margin: 3px;
}

.image-path-control {
  display: flex;
  min-height: 44px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.image-path-control:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 125, 177, 0.12);
}

.image-path-control .form-control {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.image-path-actions {
  display: flex;
  flex: 0 0 auto;
  border-left: 1px solid var(--color-border);
}

.image-path-actions button {
  min-width: 48px;
  padding: 0 10px;
  color: var(--color-accent);
  background: #f8fbfd;
  border: 0;
  border-left: 1px solid var(--color-border);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.image-path-actions button:first-child { border-left: 0; }

.image-path-actions button:hover:not(:disabled),
.image-path-actions button:focus-visible:not(:disabled) {
  color: #075985;
  background: #e0f2fe;
}

.image-path-actions button:disabled {
  color: #a4b1bf;
  background: #f6f8fa;
  cursor: not-allowed;
}

.image-preview-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  background: var(--color-surface);
  border: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.image-preview-dialog::backdrop { background: rgba(8, 24, 41, 0.62); }

.image-preview-surface { padding: 20px; }

.image-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.image-preview-header h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.image-preview-content {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.news-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.news-management-card {
  display: grid;
  min-width: 0;
  padding: 18px;
  grid-template-columns: 104px minmax(0, 1fr) 240px;
  column-gap: 24px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.news-management-card-top {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: flex;
  min-width: 104px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.news-management-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-select-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.news-select-control input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.news-management-card h3 {
  grid-column: 2;
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1.45;
}

.news-management-title-en,
.news-management-summary {
  grid-column: 2;
  margin: 0;
  color: var(--color-secondary);
  overflow-wrap: anywhere;
}

.news-management-title-en {
  color: var(--color-muted-foreground);
  font-size: 0.84rem;
}

.news-management-summary {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-management-card .news-tag-list {
  grid-column: 2;
  margin-top: 14px;
}

.news-management-card-footer {
  grid-column: 3;
  grid-row: 1 / span 4;
  min-width: 240px;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-left: 20px;
  border-left: 1px solid var(--color-border);
}

.news-management-card-footer time {
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
}

.news-list-footer {
  display: flex;
  justify-content: flex-end;
  min-height: 32px;
}

.admin-news-pager {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-news-pager a,
.admin-news-pager > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 5px;
}

.admin-news-pager a {
  color: var(--color-accent);
  background: #f5f9fc;
  border: 1px solid #d7e3ed;
}

.admin-news-pager a:hover {
  color: #075985;
  background: #e0f2fe;
  border-color: #b7d5ee;
}

.admin-news-pager .is-disabled {
  color: #a4b1bf;
  background: #f6f8fa;
  border: 1px solid #e7edf2;
  cursor: not-allowed;
}

.admin-news-pager-status {
  padding-inline: 2px !important;
}

.product-listing-title {
  display: block;
  max-width: 300px;
  padding: 0;
  overflow: hidden;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-listing-title:hover,
.product-listing-title:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}

.status-pill.is-muted {
  color: #475569;
  background: #e2e8f0;
}

.admin-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--color-foreground);
  background: var(--color-surface);
  border: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.admin-dialog::backdrop {
  background: rgba(8, 24, 41, 0.52);
}

.dialog-surface {
  padding: 22px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.22rem;
}

.dialog-header p,
.form-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--color-muted-foreground);
}

.form-error {
  margin: 0 0 14px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.product-detail-dialog {
  width: min(880px, calc(100vw - 32px));
}

.news-editor-dialog {
  width: min(980px, calc(100vw - 32px));
}

.product-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.product-detail-list div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-detail-list .full {
  grid-column: 1 / -1;
}

.product-detail-list dt {
  margin-bottom: 6px;
  color: var(--color-muted-foreground);
  font-size: 0.82rem;
}

.product-detail-list dd {
  margin: 0;
  color: var(--color-secondary);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-box {
  padding: 16px;
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.media-card {
  position: relative;
  display: grid;
  grid-template-rows: 150px auto auto;
  gap: 8px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.media-card-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
}

.media-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.media-card-delete {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
}

.media-card-alt,
.media-card-path {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-alt {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.media-card-path {
  color: var(--color-accent);
  font-size: 0.76rem;
}

.media-upload-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.media-upload-actions .btn {
  min-width: 68px;
}

.page-hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  position: relative;
}

.page-hero-inner::after {
  position: absolute;
  right: 0;
  bottom: -72px;
  width: 220px;
  height: 220px;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 42, 74, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(11, 42, 74, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(135deg, #000, transparent);
}

.slide-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.slide-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.slide-card img {
  width: 120px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
}

.slide-card strong,
.slide-card span {
  display: block;
}

.slide-card strong {
  margin-bottom: 6px;
  color: var(--color-primary);
}

.slide-card span {
  color: var(--color-muted-foreground);
  font-size: 0.88rem;
}

.about-image-stack {
  position: relative;
}

.about-image-stack > img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-stamp {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  min-width: 150px;
  padding: 22px;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius);
}

.about-stamp strong {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

.about-stamp span {
  color: #c8d8e4;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.capability-card {
  min-height: 240px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.capability-card > span {
  color: var(--color-accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.capability-card h3 {
  margin: 32px 0 12px;
  color: var(--color-primary);
}

.capability-card p {
  color: var(--color-secondary);
}

.catalog-application {
  max-width: 420px;
  padding: 10px 14px;
  color: var(--color-secondary);
  background: var(--color-muted);
  border-radius: 999px;
  font-size: 0.88rem;
}

.category-filter a.category-child {
  padding-left: 28px;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}

.spec-pills,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 50px 32px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

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

.document-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--color-primary);
  background: #f8fafb;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.document-card:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.document-card span {
  color: var(--color-accent);
  font-weight: 800;
}

.compact-list {
  gap: 10px;
}

.news-card-large {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.news-date {
  display: grid;
  place-items: center;
  padding: 14px 8px;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius);
}

.news-date strong {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.news-date span {
  margin-top: 6px;
  color: #c8d8e4;
  font-size: 0.76rem;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
  color: var(--color-muted-foreground);
}

.news-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.article-meta .news-tag-list {
  margin-top: 0;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.news-tag-tone-0 { color: #075985; background: #e0f2fe; }
.news-tag-tone-1 { color: #9a3412; background: #ffedd5; }
.news-tag-tone-2 { color: #166534; background: #dcfce7; }
.news-tag-tone-3 { color: #6b21a8; background: #f3e8ff; }
.news-tag-tone-4 { color: #9f1239; background: #ffe4e6; }
.news-tag-tone-5 { color: #854d0e; background: #fef9c3; }

.news-markdown-body {
  color: var(--color-secondary);
  line-height: 1.8;
}

.news-markdown-body > :first-child { margin-top: 0; }
.news-markdown-body > :last-child { margin-bottom: 0; }

.media-file-card {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 16px;
  color: var(--color-primary);
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.portal-designer {
  min-height: 100vh;
  background: var(--color-background);
}

.designer-toolbar,
.designer-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100% - var(--container)) / 2));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.designer-title,
.designer-controls,
.designer-edit-actions,
.designer-language {
  display: flex;
  align-items: center;
  gap: 10px;
}

.designer-title strong {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.designer-title span,
.designer-subnav p {
  color: var(--color-muted-foreground);
  font-size: 0.86rem;
}

.designer-subnav {
  justify-content: flex-start;
  flex-wrap: wrap;
  background: #f8fafb;
}

.designer-subnav label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary);
  font-weight: 700;
}

.designer-subnav select,
.designer-language button {
  min-height: 36px;
  padding: 6px 12px;
  color: var(--color-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.designer-language button.active {
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.designer-subnav p {
  margin: 0 0 0 auto;
}

.designer-subnav p.is-error {
  color: var(--color-danger);
}

.designer-canvas {
  display: flex;
  width: min(1440px, calc(100% - 40px));
  min-height: 780px;
  margin: 20px auto 48px;
  padding: 12px;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.designer-preview {
  width: 100%;
  min-height: 820px;
  border: 0;
  background: var(--color-surface);
}

.portal-design-preview.is-designing .portal-module {
  position: relative;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease, opacity 0.18s ease;
}

.portal-design-preview.is-designing .portal-module[draggable="true"] {
  cursor: grab;
}

.portal-design-preview.is-designing .portal-module[draggable="true"]:hover,
.portal-design-preview.is-designing .portal-module.is-dragging {
  outline-color: var(--color-accent);
}

.portal-design-preview.is-designing .portal-module.is-dragging {
  opacity: 0.58;
}

.portal-designer-module-bar {
  position: absolute;
  z-index: 80;
  top: 12px;
  left: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(16, 36, 58, 0.14);
  font-size: 0.76rem;
}

.portal-design-preview.is-designing .portal-designer-module-bar {
  display: flex;
}

.portal-designer-module-bar strong {
  white-space: nowrap;
}

.portal-designer-module-bar span {
  overflow: hidden;
  color: var(--color-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-designer-drag-handle {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--color-accent);
  background: transparent;
  border: 0;
  cursor: grab;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-design-preview.is-designing [data-portal-field] {
  cursor: text;
}

.portal-design-preview.is-designing [data-portal-field].is-editing {
  outline: 2px dashed var(--color-accent);
  outline-offset: 5px;
}

.designer-module {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.is-designing .designer-module[draggable="true"] {
  cursor: grab;
}

.is-designing .designer-module[draggable="true"]:hover,
.designer-module.is-dragging {
  border-color: var(--color-accent);
  box-shadow: 0 12px 26px rgba(16, 36, 58, 0.12);
}

.designer-module.is-dragging {
  opacity: 0.55;
}

.designer-module-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--color-muted-foreground);
  background: #f8fafb;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.8rem;
}

.designer-module-bar strong {
  color: var(--color-primary);
}

.designer-module-bar span:last-child {
  margin-left: auto;
}

.drag-handle {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.1em;
}

.designer-module-body {
  padding: 26px 28px;
}

.designer-module-body h2,
.designer-module-body p {
  max-width: 720px;
}

.designer-module-body h2 {
  margin-bottom: 12px;
  color: var(--color-primary);
}

.designer-module-body p {
  margin-bottom: 0;
  color: var(--color-secondary);
}

.designer-module.is-locked .designer-module-body {
  background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f8fafb 12px, #f8fafb 24px);
}

.designer-module [contenteditable="true"] {
  outline: 2px dashed var(--color-accent);
  outline-offset: 5px;
}

.portal-preview {
  min-height: 100vh;
  padding: 40px 0;
  background: var(--color-background);
}

.portal-preview header {
  margin-bottom: 22px;
}

.portal-preview-stack {
  display: grid;
  gap: 14px;
}

.portal-preview-module {
  padding: 26px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.portal-preview-module > span {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-preview-module h2 {
  margin-top: 10px;
}

.portal-preview-module p {
  color: var(--color-secondary);
}

.portal-preview-module small {
  color: var(--color-muted-foreground);
}

@media (max-width: 1024px) {
  .hero-grid,
  .product-detail-grid,
  .two-column,
  .about-layout,
  .contact-layout,
  .product-content-layout,
  .catalog-layout,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .category-grid,
  .product-grid,
  .footer-grid,
  .stat-grid,
  .media-grid,
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-facts div,
  .product-facts div:nth-child(even),
  .product-facts div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .product-facts div:last-child {
    border-bottom: 0;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .product-management-layout {
    grid-template-columns: 1fr;
  }

  .news-management-card {
    grid-template-columns: 92px minmax(0, 1fr) 208px;
  }

  .category-workspace {
    position: static;
    max-height: 420px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section,
  .section-band,
  .content-section,
  .cta-section,
  .page-hero {
    padding: 44px 0;
  }

  .hero-section {
    padding: 0;
  }

  .hero-section + .content-section {
    padding-top: 24px;
  }

  .hero-banner,
  .hero-banner-shell {
    min-height: 520px;
  }

  .hero-banner-overlay {
    background:
      linear-gradient(90deg, rgba(4, 18, 33, 0.88) 0%, rgba(4, 18, 33, 0.58) 100%),
      linear-gradient(0deg, rgba(4, 18, 33, 0.68) 0%, transparent 58%);
  }

  .hero-banner-content {
    justify-content: flex-end;
    padding: 34px 0 28px;
  }

  .hero-banner-content h1 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .hero-banner-metrics {
    margin-top: 28px;
  }

  .hero-metrics,
  .slide-strip,
  .category-grid,
  .product-grid,
  .footer-grid,
  .stat-grid,
  .media-grid,
  .form-grid,
  .image-grid,
  .capability-grid,
  .document-list {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .home-product-search {
    flex-direction: column;
  }

  .home-product-search .btn {
    width: 100%;
  }

  .news-card-large {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .news-card-large > .text-link {
    grid-column: 2;
  }

  .news-management-card {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .news-management-card-top,
  .news-management-card h3,
  .news-management-title-en,
  .news-management-summary,
  .news-management-card .news-tag-list,
  .news-management-card-footer {
    grid-column: 1;
    grid-row: auto;
  }

  .news-management-card-top {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .news-management-card-footer {
    min-width: 0;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    padding: 14px 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .product-row img {
    width: 100%;
  }

  .cta-inner,
  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .nav-language-item {
    align-self: flex-start;
  }

  .navbar .nav-language-switch {
    margin-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .designer-toolbar,
  .designer-subnav {
    align-items: stretch;
    flex-direction: column;
  }

  .designer-controls,
  .designer-edit-actions {
    flex-wrap: wrap;
  }

  .designer-subnav p {
    margin-left: 0;
  }

  .designer-canvas {
    min-height: 0;
    margin: 16px 16px 36px;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
