:root {
  --green: #0d7046;
  --green-2: #18a563;
  --green-soft: #e7f2eb;
  --yellow: #e7b91c;
  --ink: #14221b;
  --text: #33423a;
  --muted: #6d7b72;
  --line: #dbe5de;
  --surface: #f3f7f2;
  --surface-2: #edf2ed;
  --white: #fffefa;
  --footer: #0d1b14;
  --content: 1180px;
  --shadow: 0 18px 42px rgba(18, 55, 37, 0.12);
  --shadow-soft: 0 10px 26px rgba(18, 55, 37, 0.08);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #fbfaf7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fbfaf7;
  color: var(--text);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

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

[hidden],
.is-filtered-out {
  display: none !important;
}

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

p,
li,
td,
th,
summary,
label,
dd {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

h1 {
  font-size: 2.45rem;
  font-weight: 800;
}

h2 {
  font-size: 1.56rem;
  font-weight: 800;
}

h3 {
  font-size: 1.06rem;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.65rem max(1.25rem, calc((100vw - var(--content)) / 2));
  background: rgba(255, 254, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(18, 55, 37, 0.045);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.brand img {
  width: 156px;
  flex: 0 0 auto;
}

.brand span {
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  white-space: normal;
}

.brand-copy strong {
  font-size: 0.9rem;
  line-height: 1.18;
}

.brand-copy small {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: #2f3c35;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 0.52rem 0.68rem;
  border-radius: 5px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0.68rem;
  bottom: 0.22rem;
  left: 0.68rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green-2);
  content: "";
}

.site-nav a:hover {
  background: #f0f5f1;
  color: var(--green);
}

.nav-toggle {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.86);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  border-color: #b9d8c7;
  background: var(--green-soft);
}

.nav-toggle:active {
  transform: translateY(1px);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

@media (min-width: 1081px) {
  .nav-toggle {
    display: none;
  }
}

.breadcrumb {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 700;
}

.breadcrumb-separator {
  margin: 0 0.45rem;
  color: #9aa6a0;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: #0e1c14;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 28, 19, 0.9), rgba(10, 28, 19, 0.68) 42%, rgba(10, 28, 19, 0.24) 74%, rgba(10, 28, 19, 0.1)),
    linear-gradient(180deg, rgba(10, 28, 19, 0.08), rgba(10, 28, 19, 0.34));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  width: 100%;
  max-width: var(--content);
  min-width: 0;
  margin: 0 auto;
  padding: 6.2rem 1.25rem 5.25rem;
}

.hero h1 {
  max-width: 650px;
  color: var(--white);
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-company {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-copy p:not(.kicker) {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: normal;
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--yellow);
}

.mobile-break {
  display: none;
}

.hero-actions,
.section-action,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button.primary {
  background: var(--green-2);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(24, 165, 99, 0.18);
}

.button.primary:hover {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 11px 22px rgba(13, 112, 70, 0.22);
  transform: translateY(-2px);
}

.button:active {
  box-shadow: none;
  transform: translateY(1px) scale(0.99);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  pointer-events: none;
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--green);
}

.button.secondary:hover {
  border-color: #a8ceb9;
  background: var(--green-soft);
  color: var(--green);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero .button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.button.tertiary {
  border-color: #c8dfd0;
  background: #eef7f0;
  color: var(--green);
}

.button.tertiary:hover {
  border-color: #a8ceb9;
  background: var(--green-soft);
  color: var(--green);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--content);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 28px rgba(18, 55, 37, 0.055);
}

.stats-band div {
  min-height: 100px;
  padding: 1.15rem 1.35rem;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats-band span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.section,
.list-hero,
.page-hero,
.article-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.35rem;
}

.section.muted {
  max-width: none;
  background: linear-gradient(180deg, #f4f7f2 0%, #f0f5f0 100%);
}

.section.muted > * {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 1.85rem;
}

.section-heading .kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-heading .kicker::after {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.section-heading h2 {
  margin-top: 0.1rem;
}

.section-heading p:last-child,
.list-hero p,
.page-hero p,
.article-page p {
  color: var(--muted);
}

.section-heading p:last-child {
  margin-top: 0.7rem;
}

.list-hero {
  padding-top: 3rem;
  padding-bottom: 2.05rem;
}

.list-hero h1 {
  max-width: 860px;
  font-size: 2.02rem;
}

.list-hero p {
  max-width: 760px;
  margin: 0.9rem 0 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 43%);
  gap: 2rem;
  align-items: center;
  padding-top: 2.45rem;
  padding-bottom: 2.9rem;
}

.page-hero h1 {
  max-width: 760px;
  font-size: 2.02rem;
}

.product-detail-hero h1 {
  font-size: 1.94rem;
}

.page-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
}

.page-hero > div,
.list-hero,
.contact-details,
.contact-form,
.card-body,
.document-card > div {
  min-width: 0;
}

.page-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.page-hero-image:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-grid,
.product-case-grid,
.service-grid,
.case-grid,
.document-grid,
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 1.2rem;
}

.service-grid,
.case-grid,
.document-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.document-card,
.feature,
.news-item,
.faq-item,
.fact-panel,
.contact-form,
.contact-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border-color: #e2eae4;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.card:hover {
  border-color: #b9d8c7;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-link,
.case-slide-link {
  display: flex;
  flex: 1;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
}

.card-link:hover,
.case-slide-link:hover {
  color: inherit;
}

.card-link:hover h2,
.card-link:hover h3,
.case-slide-link:hover h3 {
  color: var(--green);
}

.card-link:focus-visible,
.case-slide-link:focus-visible {
  outline: 3px solid rgba(18, 136, 74, 0.35);
  outline-offset: -3px;
}

.product-library-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 1rem 1rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #b9d8c7;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-library-link:hover {
  border-color: #91c3a8;
  background: #d9eee0;
  color: var(--green);
}

.product-detail-hero .product-library-link {
  width: fit-content;
  margin: 1.1rem 0 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body,
.feature,
.document-card,
.fact-panel,
.contact-form,
.contact-details {
  padding: 1.2rem;
}

.card-link .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card h2,
.card h3,
.news-item h2,
.feature h2,
.fact-panel h2,
.contact-form h2,
.contact-details h2 {
  margin: 0.22rem 0 0.65rem;
  font-size: 1.16rem;
}

.card p,
.feature p,
.document-card p,
.news-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.card-image,
.gallery-image,
.case-image {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-image,
.case-slide:hover .case-image {
  transform: scale(1.035);
}

.card-meta {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.authorization-badge {
  display: inline-flex;
  min-height: 26px;
  padding: 0.22rem 0.5rem;
  align-items: center;
  border: 1px solid #c58b24;
  border-radius: 5px;
  background: #fff7e8;
  color: #8a5700;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-detail-meta {
  justify-content: flex-start;
}

.product-detail-meta .kicker {
  margin: 0;
}

.mini-specs,
.inline-specs,
.fact-panel dl,
.contact-details dl {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.mini-specs {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mini-specs div,
.inline-specs div,
.fact-panel dl div,
.contact-details dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink);
  word-break: break-all;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1.7rem;
  align-items: start;
}

.split h2 {
  margin-bottom: 0.85rem;
  font-size: 1.42rem;
}

.check-list {
  margin: 0;
  padding-left: 1.15rem;
}

.check-list li {
  margin-bottom: 0.55rem;
}

.tag-list,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  line-height: 1.25;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-bar {
  margin-bottom: 1.3rem;
}

.chip {
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: #b9d8c7;
  background: var(--green-soft);
  color: var(--green);
}

.chip:active {
  transform: translateY(1px);
}

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.case-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 420px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.55rem;
  scrollbar-color: #b7cfbf transparent;
  scrollbar-width: thin;
}

.case-slide {
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.case-slide:hover {
  border-color: #b9d8c7;
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.case-slide-link > div {
  padding: 1rem;
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-case-card-image {
  object-position: center;
}

.product-case-list {
  display: grid;
  gap: 2.4rem;
}

.case-list-group {
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.case-list-group header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.case-list-group header h3 {
  margin-top: 0.18rem;
  font-size: 1.25rem;
}

.case-list-group header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.case-name-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: product-case;
}

.case-name-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.62rem 0.8rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  counter-increment: product-case;
}

.case-name-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.case-name-list li::before {
  content: counter(product-case, decimal-leading-zero);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-case-record-table {
  border-top: 1px solid var(--line);
}

.product-case-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1rem;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.product-case-record-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.52);
}

.product-case-record-header {
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.product-case-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.product-case-year-tab {
  display: inline-flex;
  min-width: 76px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: -1px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-case-year-tab small {
  color: #829187;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-case-year-tab:hover,
.product-case-year-tab.active {
  border-bottom-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.product-case-year-tab:focus-visible {
  outline: 3px solid rgba(26, 170, 96, 0.3);
  outline-offset: -3px;
}

.product-case-record-panel[hidden] {
  display: none;
}

.installation-case-list {
  display: grid;
  gap: 2.4rem;
}

.installation-case-group {
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.installation-case-group > header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.installation-case-group > header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.installation-case-group > header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.installation-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: installation-case;
}

.installation-record-list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.55rem;
  min-width: 0;
  min-height: 94px;
  padding: 0.85rem 1rem;
  align-content: start;
  border-bottom: 1px solid var(--line);
  counter-increment: installation-case;
}

.installation-record-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.installation-record-list li::before {
  grid-row: 1 / span 2;
  content: counter(installation-case, decimal-leading-zero);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.installation-record-heading {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  min-width: 0;
}

.installation-record-heading > span {
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.installation-record-list strong {
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.installation-record-list dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
}

.installation-record-list dl div {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.installation-record-list dt,
.installation-record-list dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.installation-record-list dt {
  color: var(--muted);
}

.installation-record-list dd {
  color: var(--ink);
  font-weight: 700;
}

.product-case-detail-image {
  object-fit: contain;
  background: var(--surface);
}

.product-case-source {
  align-items: center;
}

@media (max-width: 1240px) and (min-width: 1081px) {
  .site-header .brand-copy {
    display: none;
  }
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto 4rem;
  padding: 1.35rem 1.5rem;
  border-radius: 12px;
  background: var(--footer);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(13, 27, 20, 0.15);
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.cta-band p {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: #d9e5df;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

.spec-table caption {
  padding: 1rem 1rem 0.75rem;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
}

.spec-table th,
.spec-table td {
  padding: 0.8rem 0.95rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.spec-table thead th,
.spec-table tbody th {
  width: 32%;
  background: #f0f7f3;
  color: #173b28;
}

.report-list {
  padding: 1rem 1.1rem;
  border: 1px solid #e1d39a;
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  background: #fffdf4;
}

.report-list h3 {
  margin-bottom: 0.65rem;
}

.report-list ul {
  margin: 0;
  padding-left: 1.1rem;
}

.report-list li {
  margin-bottom: 0.45rem;
}

.subject-line {
  color: var(--green);
  font-weight: 800;
}

.document-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.document-thumb {
  width: 118px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document-card h3 {
  margin: 0.2rem 0 0.4rem;
}

.document-link {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
}

.authorization-certificate-placeholder {
  display: grid;
  width: 118px;
  aspect-ratio: 3 / 4;
  place-items: center;
  border: 1px dashed #a9c3b1;
  border-radius: 8px;
  background: #f3f8f4;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.authorization-certificate-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.authorization-certificate-heading {
  min-height: 4.25rem;
  box-sizing: border-box;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.authorization-certificate-heading h3 {
  margin: 0.25rem 0 0;
  font-size: 1.12rem;
}

.authorization-certificate-body {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.authorization-certificate-media {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.authorization-certificate-media > a:first-child,
.authorization-certificate-media > .authorization-certificate-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.authorization-certificate-media > a:first-child:hover .document-thumb {
  transform: scale(1.015);
}

.authorization-certificate-card .document-thumb {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 180ms ease;
}

.authorization-certificate-media .authorization-certificate-placeholder {
  width: 100%;
  display: grid;
  place-items: center;
}

.authorization-certificate-details {
  min-width: 0;
  padding-top: 0.15rem;
}

.authorization-certificate-name {
  color: var(--ink) !important;
  font-weight: 800;
}

.authorization-certificate-pending {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-cert-layout {
  display: grid;
  gap: 1rem;
}

.home-cert-primary,
.home-cert-system {
  display: grid;
  gap: 1rem;
}

.home-cert-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cert-system {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cert-primary .document-card {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.home-cert-primary .document-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-width: 0;
}

.home-cert-primary .document-thumb {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
}

.home-cert-system .document-card {
  grid-template-columns: 108px minmax(0, 1fr);
}

.home-cert-system .document-thumb {
  width: 108px;
}

.report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.2rem;
}

.report-columns a {
  display: block;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--green);
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.report-columns a:hover {
  border-color: #b9d8c7;
  background: var(--green-soft);
  transform: translateX(2px);
}

.product-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-library-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-library-card:hover {
  border-color: #b9d8c7;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.product-library-cover-wrap {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.product-library-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-library-cover-fallback {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-library-card-body {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
}

.product-library-card h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.42;
}

.product-library-card-body > p:not(.card-meta):not(.form-status) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-library-actions .button {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
}

.product-library-share-status {
  min-height: 1.35em;
  margin: 0.35rem 0 0;
  color: var(--green);
  font-size: 0.73rem;
}

.product-pdf-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 2.5rem;
  align-items: center;
  max-width: var(--content);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 3.1rem 1.25rem 3.35rem;
  border-bottom: 1px solid var(--line);
}

.product-pdf-detail-hero > div:first-child {
  min-width: 0;
}

.product-pdf-detail-hero h1 {
  max-width: 760px;
  font-size: 2.15rem;
}

.product-pdf-detail-hero > div:first-child > p:not(.kicker) {
  max-width: 700px;
  margin: 0.95rem 0 0;
  color: var(--muted);
}

.product-pdf-detail-actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.product-pdf-detail-actions .button {
  min-width: 0;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}

.product-pdf-detail-cover,
.product-pdf-detail-cover-fallback {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.product-pdf-detail-cover-fallback {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-pdf-viewer-section {
  padding-top: 2.4rem;
}

.product-pdf-viewer-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-pdf-viewer-heading h2 {
  font-size: 1.45rem;
}

.product-pdf-viewer-heading a {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-pdf-viewer {
  overflow: hidden;
  padding: 0.7rem;
  border: 1px solid #cbd8cf;
  border-radius: 7px;
  background: #27332c;
  box-shadow: var(--shadow-soft);
}

.product-pdf-viewer iframe {
  display: block;
  width: 100%;
  height: min(84vh, 1080px);
  min-height: 720px;
  border: 0;
  background: var(--white);
}

.faq-layout {
  display: grid;
  gap: 2rem;
}

.faq-group {
  display: grid;
  gap: 0.75rem;
}

.faq-group h2 {
  font-size: 1.45rem;
}

.faq-filter {
  margin-bottom: 0;
}

.faq-group-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.faq-group-heading h2 {
  margin: 0;
}

.faq-group-heading span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.faq-section .section-heading {
  margin-bottom: 1.15rem;
}

.faq-section .faq-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: var(--content);
  align-items: start;
}

.faq-section .faq-item {
  min-height: 100%;
  padding: 1.05rem 1.1rem;
}

.faq-item {
  padding: 0.95rem 1rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: 0 0 auto;
  color: var(--green);
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 0.9rem;
}

.news-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.news-item:hover {
  border-color: #b9d8c7;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.news-item time,
.article-meta {
  color: var(--muted);
}

.article-page {
  max-width: 860px;
}

.article-page h1 {
  font-size: 1.94rem;
}

.article-page .lead {
  color: var(--ink);
  font-size: 1.06rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-top: 2.4rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.editor-form input,
.editor-form textarea,
.editor-form select,
.login-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  background: #fffefa;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea,
.editor-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status[data-state="error"] {
  color: #a95540;
}

.map-box {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.map-box a {
  display: block;
  overflow: hidden;
}

.map-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.map-box a:hover img,
.map-box a:focus-visible img {
  transform: scale(1.015);
}

.floating-contact {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1000;
  display: grid;
  gap: 0.65rem;
}

.floating-contact a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: var(--green-2);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(14, 87, 49, 0.24);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-contact a:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(14, 87, 49, 0.28);
}

.floating-contact a:focus-visible {
  outline: 3px solid rgba(240, 196, 25, 0.7);
  outline-offset: 3px;
}

.floating-contact svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-label {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  width: max-content;
  max-width: min(280px, calc(100vw - 6.5rem));
  padding: 0.46rem 0.65rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.4rem, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: normal;
  overflow-wrap: anywhere;
}

.floating-contact a:hover .floating-label,
.floating-contact a:focus-visible .floating-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.site-footer {
  padding: 2.45rem max(1.25rem, calc((100vw - var(--content)) / 2)) 1.15rem;
  background: var(--footer);
  color: #d7e1db;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.8fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-grid > section {
  min-width: 0;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.98rem;
}

.footer-brand img {
  width: 154px;
  margin-bottom: 0.85rem;
  filter: brightness(1.1);
}

.footer-brand p,
.site-footer address {
  margin: 0;
  color: #b9c8c0;
  font-style: normal;
}

.footer-brand p {
  max-width: 430px;
}

.footer-brand .footer-slogan {
  margin: -0.4rem 0 0.55rem;
  color: var(--yellow);
  font-weight: 800;
}

.site-footer address {
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.footer-links {
  display: grid;
  gap: 0.46rem;
}

.footer-nav .footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem 0.75rem;
}

.footer-links a {
  line-height: 1.35;
}

.footer-links a,
.site-footer a {
  color: #e6efe9;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9dafaa;
  font-size: 0.88rem;
}

.footer-bottom .footer-icp {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
}

.footer-bottom .footer-copyright {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}

.footer-bottom nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-shell {
  min-height: 100vh;
  background: var(--surface);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-tabs button,
.icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.admin-tabs button {
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.admin-tabs button.active {
  border-color: #b9d8c7;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}

.admin-panel {
  padding: 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.admin-list,
.editor-form,
.login-panel,
.message-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.admin-list button {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
  text-align: left;
  cursor: pointer;
}

.admin-list button.active {
  border-color: #b9d8c7;
  background: var(--green-soft);
}

.editor-form {
  display: grid;
  gap: 0.9rem;
}

.editor-form h1,
.login-panel h1,
.message-list h1 {
  font-size: 1.45rem;
}

.editor-form label,
.login-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.editor-form .checkbox-field {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.editor-form .checkbox-field input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.editor-form textarea {
  min-height: 92px;
}

.login-panel {
  display: grid;
  width: min(440px, calc(100% - 2rem));
  margin: 12vh auto;
  gap: 1rem;
}

.message-list {
  display: grid;
  gap: 0.7rem;
}

.message-list article {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.overview-page {
  display: grid;
  gap: 1.15rem;
}

.overview-heading,
.overview-card-heading,
.message-heading,
.message-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.overview-heading h1,
.message-heading h1 {
  font-size: 1.65rem;
}

.overview-heading > div > p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.data-freshness,
.message-heading > span,
.overview-unit {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card,
.overview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.22rem 0.6rem;
  padding: 1rem;
}

.metric-card span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  color: var(--green);
  font-size: 1.9rem;
  line-height: 1.15;
}

.metric-card small {
  align-self: end;
  padding-bottom: 0.18rem;
  color: var(--muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 0.85rem;
}

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

.overview-card {
  padding: 1rem;
}

.overview-card h2 {
  margin-top: 0.15rem;
  font-size: 1.1rem;
}

.traffic-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.55rem;
  height: 220px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.traffic-day {
  display: grid;
  grid-template-rows: 1.2rem 1fr 1.2rem;
  height: 100%;
  align-items: end;
  text-align: center;
}

.traffic-value,
.traffic-day time {
  color: var(--muted);
  font-size: 0.72rem;
}

.traffic-bar {
  display: flex;
  height: 100%;
  align-items: end;
  justify-content: center;
  padding: 0 0.18rem;
}

.traffic-bar i {
  display: block;
  width: min(34px, 100%);
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green-2), var(--green));
}

.ranking-list,
.type-list,
.content-counts {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.ranking-row,
.type-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.58rem 0;
  border-bottom: 1px solid var(--line);
}

.ranking-row b {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
}

.ranking-row span,
.type-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row strong,
.type-row strong {
  color: var(--green);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.empty-public-state {
  display: grid;
  max-width: 680px;
  gap: 0.5rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border: 1px dashed #c7d9cd;
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.empty-public-state h2 {
  margin: 0;
  font-size: 1.3rem;
}

.empty-public-state p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.message-heading {
  align-items: end;
}

.message-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  gap: 0.65rem;
  margin: 1.15rem 0;
}

.message-toolbar input,
.message-toolbar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.62rem 0.72rem;
  background: #fbfdfc;
}

.message-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.message-item-heading {
  align-items: center;
}

.message-item-heading time {
  color: var(--muted);
  font-size: 0.8rem;
}

.message-item p {
  margin: 0.38rem 0 0;
  color: var(--muted);
}

.message-item .message-meta {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .brand span {
    display: none;
  }

  .site-header > .nav-toggle {
    display: flex !important;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
  }

  .nav-toggle span {
    display: block;
    flex: 0 0 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: grid;
  }

  .page-hero,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-case-grid,
  .product-library-grid,
  .document-grid,
  .feature-grid,
  .factory-gallery,
  .service-grid,
  .case-grid,
  .footer-grid,
  .admin-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    display: block;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .home-cert-primary {
    grid-template-columns: 1fr;
  }

  .home-cert-system {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-cert-system .document-card {
    grid-template-columns: 1fr;
  }

  .home-cert-system .document-thumb {
    width: 100%;
    max-width: 132px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .admin-tabs {
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  h1,
  .page-hero h1,
  .article-page h1 {
    font-size: 1.78rem;
  }

  .list-hero h1 {
    font-size: 1.6rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 1.78rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-break: anywhere;
  }

  .page-hero h1,
  .product-detail-hero h1,
  .page-hero p,
  .list-hero h1,
  .list-hero p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }

  .product-detail-hero h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.22rem;
  }

  h3 {
    font-size: 1.03rem;
  }

  .site-header {
    min-height: 68px;
    padding: 0.65rem 1rem;
  }

  .site-header > .nav-toggle {
    position: absolute;
    top: 0.65rem;
    right: 1rem;
  }

  .brand img {
    width: 138px;
  }

  .site-nav {
    top: 68px;
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: 520px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(12, 31, 22, 0.46), rgba(12, 31, 22, 0.82) 64%, rgba(12, 31, 22, 0.9));
  }

  .hero-image {
    object-position: center top;
  }

  .hero-copy {
    width: min(100%, 390px);
    margin: 0;
    padding: 4.45rem 1rem 2.35rem;
  }

  .hero .kicker {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
  }

  .hero-copy p:not(.kicker) {
    max-width: 100%;
    margin-top: 0.85rem;
    font-size: 0.96rem;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .hero-actions {
    gap: 0.55rem;
    margin-top: 1.05rem;
  }

  .hero-actions .button {
    flex: 1 1 9rem;
    min-height: 44px;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .section,
  .list-hero,
  .page-hero,
  .article-page {
    padding: 2.8rem 1rem 3.15rem;
  }

  .list-hero {
    padding-top: 2rem;
    padding-bottom: 1.1rem;
  }

  .stats-band,
  .product-grid,
  .product-case-grid,
  .product-library-grid,
  .document-grid,
  .document-grid.compact,
  .feature-grid,
  .factory-gallery,
  .service-grid,
  .case-grid,
  .home-cert-primary,
  .home-cert-system,
  .faq-section .faq-group,
  .footer-grid,
  .admin-grid,
  .metric-grid,
  .overview-grid,
  .overview-grid-secondary {
    grid-template-columns: 1fr;
  }

  .case-name-list {
    grid-template-columns: 1fr;
  }

  .product-case-record-header {
    display: none;
  }

  .product-case-record-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .product-case-record-row span::before {
    display: inline-block;
    width: 4.6rem;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .installation-record-list {
    grid-template-columns: 1fr;
  }

  .case-name-list li:nth-child(odd),
  .installation-record-list li:nth-child(odd) {
    border-right: 0;
  }

  .installation-record-list li {
    min-height: 0;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
  }

  .stats-band {
    border-right: 0;
    border-left: 0;
  }

  .stats-band div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band strong {
    font-size: 1.65rem;
  }

  .mini-specs div,
  .inline-specs div,
  .fact-panel dl div,
  .contact-details dl div,
  .news-item {
    grid-template-columns: 1fr;
  }

  .document-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .product-library-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .product-pdf-detail-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.6rem;
    padding-bottom: 2.8rem;
  }

  .product-pdf-detail-hero h1 {
    font-size: 1.62rem;
  }

  .product-pdf-detail-cover,
  .product-pdf-detail-cover-fallback {
    width: min(100%, 210px);
  }

  .product-pdf-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .product-pdf-detail-actions .button {
    width: 100%;
    white-space: normal;
  }

  .product-pdf-viewer-heading {
    display: grid;
    align-items: start;
  }

  .product-pdf-viewer {
    padding: 0.35rem;
  }

  .product-pdf-viewer iframe {
    height: 78vh;
    min-height: 620px;
  }

  .home-cert-primary .document-card,
  .home-cert-system .document-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .home-cert-primary .document-card {
    grid-template-columns: minmax(128px, 42%) minmax(0, 1fr);
  }

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

  .authorization-certificate-body {
    grid-template-columns: 1fr;
  }

  .document-thumb {
    width: 100px;
  }

  .authorization-certificate-placeholder {
    width: 100px;
  }

  .home-cert-system .document-thumb {
    width: 100px;
    max-width: none;
  }

  .report-columns {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    margin: 0 1rem 2.4rem;
    padding: 1.1rem;
  }

  .contact-layout {
    padding-top: 0.9rem;
  }

  .floating-contact {
    display: grid;
    right: 0.9rem;
    bottom: 0.9rem;
    gap: 0.55rem;
  }

  .floating-contact a {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .site-footer {
    padding: 2.2rem 1rem 1.1rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-nav .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-toolbar {
    grid-template-columns: 1fr;
  }

  .overview-heading,
  .message-heading {
    display: grid;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-bottom .footer-icp {
    grid-column: 1;
  }

  .footer-bottom nav {
    right: 0;
  }

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

/* CMS workspace */
.admin-shell {
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  background: #f3f6f4;
  color: var(--text);
}

.admin-shell .button {
  min-height: 40px;
  padding: 0.58rem 0.88rem;
  border-radius: 5px;
  font-size: 0.86rem;
}

.login-panel {
  display: grid;
  width: min(460px, calc(100% - 2rem));
  margin: 11vh auto 0;
  gap: 0.82rem;
  padding: 2.1rem;
  border: 1px solid #d6e2db;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 22px 56px rgba(20, 45, 32, 0.1);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-weight: 800;
}

.login-brand img {
  width: 148px;
  height: auto;
}

.login-brand span {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.login-panel h1 {
  font-size: 1.65rem;
}

.login-intro {
  margin: -0.15rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-panel form {
  display: grid;
  gap: 0.9rem;
}

.login-panel label,
.editor-form label,
.inline-setting-form label,
.media-editor-form label,
.page-image-form label,
.site-logo-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.login-panel input,
.editor-form input,
.editor-form textarea,
.editor-form select,
.inline-setting-form input,
.inline-setting-form textarea,
.inline-setting-form select,
.media-editor-form input,
.media-editor-form select,
.page-image-form input,
.page-image-form select,
.site-logo-form input,
.site-logo-form select,
.site-logo-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.62rem 0.7rem;
  background: #fbfdfc;
  color: var(--ink);
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.login-panel input:focus,
.editor-form input:focus,
.editor-form textarea:focus,
.editor-form select:focus,
.inline-setting-form input:focus,
.inline-setting-form textarea:focus,
.inline-setting-form select:focus,
.media-editor-form input:focus,
.media-editor-form textarea:focus,
.media-editor-form select:focus,
.page-image-form input:focus,
.page-image-form textarea:focus,
.page-image-form select:focus,
.site-logo-form input:focus,
.site-logo-form textarea:focus,
.site-logo-form select:focus {
  border-color: var(--green-2);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 170, 96, 0.12);
}

.admin-topbar {
  min-height: 72px;
  padding: 0.75rem max(1rem, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #d9e4de;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(20, 45, 32, 0.04);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
}

.admin-brand img {
  width: 128px;
  height: auto;
}

.admin-brand span {
  display: grid;
  gap: 0.15rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.admin-brand strong {
  color: var(--ink);
  font-size: 0.91rem;
}

.admin-brand small {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-action-help {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
  min-height: 34px;
  padding: 0.28rem 0.65rem;
  border: 1px solid #dce8e2;
  border-radius: 6px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-action-help .help-label {
  color: var(--green);
  font-weight: 800;
}

.admin-action-help .help-step {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.admin-action-help .help-step + .help-step {
  padding-left: 0.55rem;
  border-left: 1px solid #dce8e2;
}

.admin-action-help b {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.65rem;
}

.save-indicator {
  margin-right: 0.35rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.save-indicator::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0.35rem 1px 0;
  border-radius: 50%;
  background: var(--green-2);
}

.save-indicator.is-dirty {
  color: #a26e00;
}

.save-indicator.is-dirty::before {
  background: var(--yellow);
}

.publish-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.publish-button:hover {
  background: #24372c;
  color: var(--white);
}

.logout-button {
  min-width: 42px;
  padding: 0.45rem 0.65rem !important;
}

.admin-layout {
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  min-height: calc(100vh - 72px);
  flex-direction: column;
  border-right: 1px solid #d9e4de;
  background: var(--white);
}

.sidebar-heading {
  display: grid;
  gap: 0.18rem;
  padding: 1.25rem 1.15rem 0.9rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.sidebar-heading small {
  color: #94a39a;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.admin-tabs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.2rem 0.7rem 1rem;
  border: 0;
  background: var(--white);
}

.admin-tabs button {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.5rem 0.55rem;
  color: #516158;
  background: transparent;
  font-size: 0.86rem;
  text-align: left;
}

.admin-tabs button:hover {
  background: #f4f8f5;
  color: var(--ink);
}

.admin-tabs button.active {
  border-color: #c7e3d2;
  background: var(--green-soft);
  color: var(--green);
}

.nav-mark {
  width: 1.5rem;
  color: #a1b0a7;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

.admin-tabs button.active .nav-mark {
  color: var(--green);
  font-weight: 900;
}

.nav-group-label {
  margin: 1rem 0 0.26rem;
  padding: 0 0.55rem;
  color: #a1aea6;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: auto 0.7rem 0.8rem;
  padding: 0.72rem 0.55rem;
  border-top: 1px solid #edf1ee;
  color: #87958c;
  font-size: 0.7rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
}

.admin-main {
  min-width: 0;
  padding: 2rem clamp(1rem, 3vw, 3rem) 3rem;
}

.admin-main-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.35rem;
}

.admin-main-heading h1 {
  font-size: 1.75rem;
}

.admin-page-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.admin-grid {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-status {
  max-width: 1180px;
  margin: 0.9rem auto 0;
}

.admin-shell .form-status {
  color: var(--green);
  font-size: 0.82rem;
}

.overview-page,
.media-page,
.message-list,
.collection-settings {
  display: grid;
  gap: 1rem;
}

.overview-welcome,
.overview-card,
.metric-card,
.media-summary,
.message-list,
.inline-setting-form,
.editor-form,
.admin-list {
  border: 1px solid #d9e4de;
  border-radius: 8px;
  background: var(--white);
}

.overview-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
}

.overview-welcome h2,
.media-summary h2 {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
}

.overview-welcome p:last-child,
.media-summary p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.55rem;
  padding: 1rem 1.1rem;
}

.metric-card span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.metric-card strong {
  color: var(--green);
  font-size: 1.85rem;
  line-height: 1.2;
}

.metric-card small {
  align-self: end;
  padding-bottom: 0.18rem;
  color: #9aa79f;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 0.8rem;
}

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

.overview-card {
  min-width: 0;
  padding: 1.1rem 1.2rem;
}

.overview-card h2 {
  margin-top: 0.15rem;
  font-size: 1.08rem;
}

.traffic-chart {
  height: 190px;
  margin-top: 1rem;
}

.traffic-bar i {
  background: var(--green-2);
}

.analytics-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.analytics-toolbar h2 {
  margin: 0.1rem 0 0;
  font-size: 1.12rem;
}

.analytics-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid #d9e4de;
  border-radius: 6px;
  background: var(--white);
}

.analytics-range-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  padding: 0.42rem 0.7rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-range-tabs button:hover,
.analytics-range-tabs button.active {
  background: var(--green-soft);
  color: var(--green);
}

.analytics-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.traffic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.traffic-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-pv,
.traffic-bar-pv {
  background: var(--green);
}

.legend-uv,
.traffic-bar-uv {
  background: #2d7d9f;
}

.legend-ai,
.traffic-bar-ai {
  background: #c1841b;
}

.traffic-chart-scroll {
  overflow-x: auto;
  margin-top: 0.7rem;
  padding-bottom: 0.35rem;
}

.traffic-chart {
  grid-template-columns: repeat(var(--chart-days, 7), minmax(30px, 1fr));
  min-width: max-content;
  height: 210px;
  margin-top: 0;
  padding: 1rem 0.25rem 0;
}

.traffic-day {
  grid-template-rows: 1fr 1.2rem;
  min-width: 30px;
  height: 100%;
}

.traffic-chart[style*="--chart-days: 24"] .traffic-day {
  min-width: 34px;
}

.traffic-day-bars {
  display: flex;
  height: 100%;
  align-items: end;
  justify-content: center;
  gap: 2px;
}

.traffic-day-bars i {
  display: block;
  width: 7px;
  min-height: 0;
  border-radius: 3px 3px 0 0;
}

.traffic-day time {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

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

.text-button {
  flex: 0 0 auto;
  border: 0;
  padding: 0.15rem 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.text-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ranking-card .ranking-list {
  margin-top: 0.8rem;
  grid-auto-rows: 2.65rem;
  height: 31.45rem;
  align-content: start;
  overflow: hidden;
}

.recent-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5ece7;
}

.recent-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
}

.compact-history {
  max-height: 270px;
  margin-top: 0.45rem;
}

.all-history-data {
  margin-top: 0.85rem;
}

.all-data-caption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.page-stat-table {
  margin-top: 1rem;
  border-top: 1px solid #dfe8e2;
}

.page-stat-table > [data-page-stats] {
  display: grid;
}

.page-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 100px;
  gap: 0.7rem;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0;
  border-bottom: 1px solid #e8eee9;
  font-size: 0.8rem;
}

.page-stat-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-stat-row strong {
  color: var(--green);
  text-align: right;
}

.page-stat-heading {
  min-height: 32px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.page-stat-heading strong {
  color: var(--muted);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.history-heading h3 {
  margin: 0;
  font-size: 0.94rem;
}

.history-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.history-list {
  max-height: 460px;
  overflow: auto;
  border-top: 1px solid #dfe8e2;
}

.history-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 112px;
  gap: 0.55rem;
  align-items: center;
  min-height: 40px;
  padding: 0.48rem 0;
  border-bottom: 1px solid #e8eee9;
  font-size: 0.74rem;
}

.history-row time,
.history-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-list {
  position: sticky;
  top: 96px;
  min-width: 0;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 0.85rem;
}

.collection-list-heading,
.form-intro,
.media-section-heading,
.media-summary,
.message-heading,
.overview-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.collection-list-heading h2,
.form-intro h2,
.media-section-heading h3 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.collection-list-heading > span,
.media-section-heading > span,
.media-count,
.message-heading > span {
  flex: 0 0 auto;
  color: #96a39b;
  font-size: 0.76rem;
  font-weight: 800;
}

.add-button {
  width: 100%;
  min-height: 38px;
  margin: 1rem 0 0.75rem;
  border: 1px dashed #b7d6c4;
  border-radius: 5px;
  background: #f6fbf8;
  color: var(--green);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
}

.add-button:hover {
  background: var(--green-soft);
}

.collection-items {
  display: grid;
  gap: 0.35rem;
}

.collection-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem;
  align-items: stretch;
}

.collection-item {
  display: grid;
  width: 100%;
  gap: 0.18rem;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.62rem 0.65rem;
  background: #f8faf9;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.collection-item:hover {
  border-color: #cfe3d7;
  background: #f4f9f6;
}

.collection-item.active {
  border-color: #b8dbc7;
  background: var(--green-soft);
  color: var(--green);
}

.collection-item.is-offline {
  border-color: #eadfdc;
  background: #fffaf8;
  color: #8d6d63;
}

.collection-item-actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
}

.collection-item-actions .icon-button {
  min-width: 28px;
  min-height: 0;
  padding: 0.2rem;
  border-color: #dfe8e2;
  color: var(--green);
  line-height: 1;
}

.collection-item-actions .icon-button:disabled {
  border-color: #edf1ee;
  background: #f8faf9;
  color: #c4cec8;
  cursor: not-allowed;
}

.collection-item strong,
.collection-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-item strong {
  font-size: 0.81rem;
}

.collection-item small {
  color: #89978f;
  font-size: 0.7rem;
}

.editor-form,
.inline-setting-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.edit-tip {
  color: #94a39a;
  font-size: 0.75rem;
  text-align: right;
}

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

.field {
  min-width: 0;
}

.field:has(textarea),
.field:has(.image-field-body) {
  grid-column: 1 / -1;
}

.pdf-field {
  display: grid;
  gap: 0.45rem;
  grid-column: 1 / -1;
}

.pdf-current-file {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dfe8e2;
  border-radius: 5px;
  background: #f7fbf8;
}

.pdf-file-mark {
  display: grid;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #e3b8aa;
  border-radius: 4px;
  background: #fff4ef;
  color: #a95540;
  font-size: 0.65rem;
  font-weight: 900;
}

.pdf-current-file div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.pdf-current-file strong,
.pdf-current-file a,
.pdf-current-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-current-file strong {
  color: var(--green);
  font-size: 0.8rem;
}

.pdf-current-file a {
  color: var(--muted);
  font-size: 0.72rem;
}

.file-picker {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.file-picker input[type="file"] {
  min-height: 44px;
  padding: 0.42rem 0.55rem;
  background: #fbfdfc;
}

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

.field small,
.image-field-controls small {
  display: block;
  color: #95a39b;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
}

.faq-list-field {
  grid-column: 1 / -1;
}

.faq-list-editor {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.faq-list-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid #dfe8e2;
  border-radius: 5px;
  background: #fbfdfc;
}

.faq-list-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
}

.faq-list-item .field {
  display: grid;
  gap: 0.25rem;
}

.faq-list-item textarea {
  min-height: 64px;
}

.faq-list-item .field:last-of-type textarea {
  min-height: 88px;
}

.faq-list-item .icon-button {
  min-width: 30px;
  min-height: 30px;
  padding: 0.25rem;
  color: #a95540;
}

.editor-form textarea,
.inline-setting-form textarea {
  min-height: 94px;
  resize: vertical;
}

.editor-form textarea[name="heroTitle"] {
  min-height: 72px;
}

.checkbox-field {
  display: flex !important;
  min-height: 42px;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  background: #fbfdfc;
}

.checkbox-field input {
  width: 17px !important;
  height: 17px;
  min-height: 0 !important;
  accent-color: var(--green-2);
}

.editor-section {
  margin: 0;
  border: 1px solid #e0e9e4;
  border-radius: 6px;
  padding: 1rem;
}

.editor-section legend {
  padding: 0 0.4rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
}

.page-media-settings {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid #d9e4de;
  border-radius: 8px;
  background: var(--white);
}

.page-media-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.page-media-heading h2 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.page-media-heading p:last-child {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-image-form,
.site-logo-form {
  display: grid;
  gap: 0.8rem;
}

.page-factory-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.page-factory-row {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 0.8rem;
  border: 1px solid #e0e9e4;
  border-radius: 6px;
  background: #fbfdfc;
}

.page-factory-preview {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8e0;
  border-radius: 5px;
  background: #eef3f0;
}

.page-factory-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-factory-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.page-factory-info strong,
.page-factory-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-factory-info strong {
  color: var(--green);
  font-size: 0.78rem;
}

.page-factory-info small {
  color: #89978f;
  font-size: 0.68rem;
}

.page-factory-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 30px);
  gap: 0.3rem;
  align-items: center;
}

.page-factory-actions .button {
  min-height: 30px;
  padding: 0.35rem 0.45rem;
  font-size: 0.7rem;
}

.page-factory-actions .icon-button {
  min-width: 30px;
  min-height: 30px;
  padding: 0.25rem;
}

.page-factory-actions .page-factory-delete {
  color: #a95540;
}

.compact-page-editor,
.page-editor-form[data-page="cases"] {
  gap: 0.6rem;
  padding: 0.8rem;
}

.compact-page-editor .editor-section,
.page-editor-form[data-page="cases"] .editor-section {
  padding: 0.65rem 0.8rem;
}

.compact-page-editor .form-fields,
.page-editor-form[data-page="cases"] .form-fields {
  gap: 0.55rem;
}

.compact-page-editor textarea,
.page-editor-form[data-page="cases"] textarea {
  min-height: 72px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.danger {
  border-color: #ecd0c8;
  background: #fffaf8;
  color: #a95540;
}

.danger:hover {
  border-color: #d99a8a;
  background: #fff3ef;
  color: #913d2a;
}

.image-field-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.field-preview {
  width: 116px;
  height: 84px;
  border: 1px solid #dce7e0;
  border-radius: 5px;
  object-fit: cover;
  background: #f4f7f5;
}

.image-field-controls {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.collection-settings {
  grid-template-columns: 1fr;
}

.case-list-editor {
  margin-top: 1rem;
  padding: 1.2rem;
  border-top: 1px solid #dfe8e2;
  background: #fbfcfb;
}

.case-list-editor .form-intro {
  align-items: center;
}

.record-list-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(150px, 0.8fr) 120px auto;
  gap: 0.65rem;
  align-items: end;
  margin-top: 1rem;
}

.record-list-toolbar label {
  display: grid;
  gap: 0.3rem;
}

.record-list-toolbar input,
.record-list-toolbar select {
  min-height: 40px;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}

.record-list-result {
  margin: 0.8rem 0 0;
  color: #6f8177;
  font-size: 0.78rem;
}

.case-list-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.case-list-editor-card,
.case-record-editor {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #dfe8e2;
  border-radius: 5px;
  background: #fff;
}

.product-case-record-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  resize: vertical;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.45rem 0.5rem;
  background: #fbfdfc;
  color: var(--ink);
  outline: 0;
  font-size: 0.82rem;
}

.product-case-record-editor textarea:focus {
  border-color: var(--green-2);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 170, 96, 0.12);
}

.product-case-record-group {
  overflow: hidden;
  border: 1px solid #dfe8e2;
  border-radius: 5px;
  background: #fff;
}

.product-case-record-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr) 6rem;
  gap: 0.75rem;
  align-items: center;
  min-height: 54px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.product-case-record-group > summary::-webkit-details-marker {
  display: none;
}

.product-case-record-summary-project::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: -0.4rem;
  border: 1px solid #cddbd2;
  border-radius: 50%;
  color: var(--green-2);
  font-size: 1rem;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.product-case-record-group[open] .product-case-record-summary-project::before {
  content: "−";
}

.product-case-record-summary-project {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.product-case-record-summary-project strong,
.product-case-record-summary-project small,
.product-case-record-summary-products {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-case-record-summary-project strong {
  grid-column: 2;
  color: var(--ink);
  font-size: 0.86rem;
}

.product-case-record-summary-project small {
  grid-column: 2;
  color: #6f8177;
  font-size: 0.74rem;
}

.product-case-record-summary-products {
  color: #496257;
  font-size: 0.8rem;
}

.product-case-record-summary-count {
  color: #6f8177;
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.product-case-record-details {
  display: grid;
  gap: 0.65rem;
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid #e5ece7;
  background: #fbfdfc;
}

.case-list-editor-card .form-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-editor {
  padding-top: 0.2rem;
  border-top: 1px solid #e5ece7;
}

.project-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.project-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 0.35rem;
  align-items: center;
}

.project-item input {
  min-width: 0;
}

.project-item .icon-button {
  min-width: 28px;
  padding: 0.35rem;
  color: #a95540;
}

.case-record-table {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.case-record-editor {
  grid-template-columns: 4.5rem minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 7rem 2.35rem;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  align-items: end;
}

.case-record-editor .field {
  display: grid;
  gap: 0.25rem;
}

.case-record-editor .field-label {
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.case-record-editor input,
.case-record-editor select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.45rem 0.5rem;
  background: #fbfdfc;
  color: var(--ink);
  outline: 0;
  font-size: 0.82rem;
}

.case-record-editor input:focus,
.case-record-editor select:focus {
  border-color: var(--green-2);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 170, 96, 0.12);
}

.case-record-editor .record-delete-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: #a95540;
}

/* Product case records use a wider date/quantity column and a compact contract number. */
.case-record-editor.product-case-record-editor {
  grid-template-columns: 10rem 8rem minmax(0, 1.7fr) minmax(0, 1.45fr) minmax(0, 1.2fr) 7.8rem 2.35rem;
}

.record-list-pagination {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.record-list-pagination span {
  min-width: 7rem;
  color: #6f8177;
  font-size: 0.8rem;
  text-align: center;
}

.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-summary,
.media-library-toolbar {
  padding: 1.2rem;
}

.media-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.media-summary-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.media-summary-actions .button {
  flex: 0 0 auto;
}

.media-library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 0;
  padding-left: 0;
  border-bottom: 1px solid #dfe8e2;
}

.media-library-toolbar h3 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.media-library-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px;
  gap: 0.55rem;
  min-width: min(100%, 460px);
}

.media-library-filters input,
.media-library-filters select,
.media-picker-toolbar input,
.media-picker-toolbar select {
  min-height: 40px;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.6rem 0.7rem;
  background: #fbfdfc;
  color: var(--ink);
  outline: 0;
}

.media-asset-list {
  overflow: hidden;
  border: 1px solid #d9e4de;
  border-radius: 8px;
  background: var(--white);
}

.media-list-head,
.media-asset-row {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1.25fr) 140px minmax(220px, 2fr) 136px;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.media-list-head {
  color: #84958b;
  background: #f5faf7;
  font-size: 0.72rem;
  font-weight: 800;
}

.media-asset-row {
  min-width: 0;
  min-height: 82px;
  border-top: 1px solid #e5ede8;
}

.media-asset-cell {
  min-width: 0;
}

.media-asset-preview {
  display: grid;
  width: 76px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8e0;
  border-radius: 5px;
  background: #eef3f0;
}

.media-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-asset-name {
  display: grid;
  gap: 0.2rem;
}

.media-asset-name strong,
.media-asset-alt span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-asset-name strong {
  color: var(--green);
  font-size: 0.82rem;
}

.media-category-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.18rem 0.42rem;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 800;
}

.media-asset-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.media-asset-alt span {
  color: var(--muted);
  font-size: 0.78rem;
}

.media-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.media-asset-actions .button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
}

.media-index {
  color: #9caca2;
  font-size: 0.75rem;
  font-weight: 900;
}

.image-selected-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.25rem;
}

.image-selected-meta strong {
  overflow: hidden;
  color: var(--green);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-selected-meta span {
  color: #8b9b92;
  font-size: 0.7rem;
}

.image-picker-button {
  width: fit-content;
  min-height: 36px;
}

.media-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.4rem;
  border: 1px dashed #cfded5;
  border-radius: 5px;
  background: #fbfdfc;
  text-align: center;
}

.media-editor-overlay {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 36, 28, 0.48);
}

.media-editor-dialog {
  display: grid;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  gap: 1rem;
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid #d9e4de;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(20, 45, 32, 0.22);
}

.media-editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.media-editor-heading h2 {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
}

.media-editor-current {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid #e0eae4;
  border-radius: 6px;
  background: #f7fbf8;
}

.media-editor-current img {
  width: 112px;
  height: 80px;
  border: 1px solid #dce8e0;
  border-radius: 5px;
  background: #eef3f0;
  object-fit: contain;
}

.media-editor-current span {
  overflow: hidden;
  color: #84958b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.media-editor-fields .field:first-child,
.media-editor-fields .field:last-child {
  grid-column: 1 / -1;
}

.media-editor-form .field small {
  color: #84958b;
  font-size: 0.72rem;
  font-weight: 500;
}

.media-editor-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(169, 85, 64, 0.3);
  background: rgba(169, 85, 64, 0.08);
  color: #a95540 !important;
  font-size: 0.82rem;
  line-height: 1.5;
}

.media-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.2rem;
}

.media-picker-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 36, 28, 0.48);
}

.media-picker-dialog {
  display: grid;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  gap: 1rem;
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid #d9e4de;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(20, 45, 32, 0.22);
}

.media-picker-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.media-picker-heading h2 {
  margin: 0.1rem 0 0;
  font-size: 1.2rem;
}

.media-picker-heading p:last-child {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.media-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0.6rem;
}

.media-picker-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.media-picker-item {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d9e4de;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.media-picker-item:hover,
.media-picker-item.selected {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(26, 170, 96, 0.12);
}

.media-picker-image {
  display: block;
  height: 104px;
  background: #eef3f0;
}

.media-picker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-picker-copy {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem;
}

.media-picker-copy strong,
.media-picker-copy small,
.media-picker-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-picker-copy strong {
  font-size: 0.78rem;
}

.media-picker-copy small {
  color: var(--green);
  font-size: 0.68rem;
}

.media-picker-copy em {
  color: #8b9b92;
  font-size: 0.62rem;
  font-style: normal;
}

.message-list {
  padding: 1.2rem;
}

.message-list h2 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
}

.message-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  gap: 0.65rem;
  margin: 0.55rem 0 0.3rem;
}

.message-toolbar input,
.message-toolbar select {
  min-height: 40px;
  border: 1px solid #d4e0d9;
  border-radius: 5px;
  padding: 0.6rem 0.7rem;
  background: #fbfdfc;
}

.message-item {
  padding: 0.95rem 0;
  border-top: 1px solid #e5ece8;
}

.message-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.message-item-heading time {
  flex: 0 0 auto;
  color: #9aa79f;
  font-size: 0.74rem;
}

.message-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-item .message-meta {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .admin-topbar {
    flex-wrap: wrap;
  }

  .admin-topbar-meta {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .admin-action-help {
    max-width: none;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #d9e4de;
  }

  .sidebar-heading,
  .sidebar-footer {
    display: none;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.65rem;
  }

  .nav-group-label {
    grid-column: 1 / -1;
    margin: 0.45rem 0 0.08rem;
  }

  .admin-tabs button {
    min-height: 36px;
  }

  .admin-main {
    padding-top: 1.25rem;
  }

  .page-factory-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .login-panel {
    width: min(280px, calc(100vw - 2rem)) !important;
    max-width: min(280px, calc(100vw - 2rem)) !important;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
    padding: 1.35rem;
  }

  .login-brand {
    gap: 0.5rem;
  }

  .login-brand img {
    width: 120px;
  }

  .login-brand span {
    min-width: 0;
    padding-left: 0.55rem;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .analytics-toolbar {
    display: grid;
    align-items: start;
  }

  .analytics-range-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .analytics-range-tabs button {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  .overview-grid-rankings,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .page-stat-row {
    grid-template-columns: minmax(0, 1fr) 52px 70px;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "path time" "source source";
    gap: 0.15rem 0.55rem;
    align-items: start;
  }

  .history-row time {
    grid-area: time;
    text-align: right;
  }

  .history-row span {
    grid-area: path;
  }

  .history-row small {
    grid-area: source;
  }

  .admin-topbar {
    display: grid;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
  }

  .admin-topbar-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-action-help {
    display: flex;
    flex: 1 1 100%;
    min-width: 0;
    order: 2;
    white-space: normal;
  }

  .admin-topbar-meta .save-indicator {
    width: 100%;
    order: 1;
  }

  .admin-topbar-meta .button,
  .admin-topbar-meta .logout-button {
    order: 3;
  }

  .admin-brand img {
    width: 112px;
  }

  .admin-main-heading,
  .overview-welcome,
  .media-summary {
    display: grid;
    align-items: start;
  }

  .admin-main-heading h1 {
    font-size: 1.45rem;
  }

  .admin-page-note {
    max-width: none;
    text-align: left;
  }

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

  .collection-layout,
  .form-fields,
  .three-fields,
  .case-list-editor-grid,
  .case-record-editor,
  .record-list-toolbar,
  .message-toolbar {
    grid-template-columns: 1fr;
  }

  .case-list-editor-card .form-fields {
    grid-template-columns: 1fr;
  }

  .product-case-record-group > summary {
    grid-template-columns: 1fr;
  }

  .product-case-record-summary-count {
    text-align: left;
  }

  .project-item-grid {
    grid-template-columns: 1fr;
  }

  .admin-list {
    position: static;
    max-height: none;
  }

  .image-field-body {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .field-preview {
    width: 94px;
    height: 72px;
  }

  .media-picker-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-factory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-media-heading {
    flex-direction: column;
  }

  .media-list-head {
    display: none;
  }

  .media-asset-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 0.55rem 0.7rem;
    padding: 0.75rem;
  }

  .media-asset-category,
  .media-asset-alt {
    grid-column: 2;
  }

  .media-asset-category::before,
  .media-asset-alt::before {
    display: inline-block;
    width: 4.2rem;
    color: #84958b;
    content: attr(data-label);
    font-size: 0.7rem;
  }

  .media-asset-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .media-editor-fields {
    grid-template-columns: 1fr;
  }

  .media-editor-fields .field:first-child,
  .media-editor-fields .field:last-child {
    grid-column: auto;
  }

  .media-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .media-library-filters {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .media-picker-toolbar {
    grid-template-columns: 1fr;
  }

  .message-item-heading {
    display: grid;
    gap: 0.2rem;
  }
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(24, 165, 99, 0.42);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
