:root {
  --paper: #faf8f3;
  --white: #fff;
  --sand: #efede6;
  --ink: #132524;
  --muted: #4e5d59;
  --line: #dbded5;
  --accent: #14534b;
  --yellow: #f5c932;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.62 "DM Sans", "Noto Sans", "PingFang SC", "Hiragino Sans", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--muted); }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.05vw, 5rem); font-weight: 820; }
h2 { font-size: clamp(1.85rem, 3.1vw, 3.25rem); font-weight: 770; }
h3 { font-size: clamp(1.3rem, 2vw, 2.2rem); font-weight: 740; }
:focus-visible { outline: 3px solid #aa5700; outline-offset: 5px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: normal; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding-block: clamp(3.3rem, 7vw, 6.5rem); }
.skip { position: fixed; z-index: 10; top: .5rem; inset-inline-start: .5rem; translate: 0 -150%; background: var(--white); padding: .7em 1em; }
.skip:focus { translate: 0; }
.site-header { background: var(--paper); position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.header-grid { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 4rem); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--accent); white-space: nowrap; }
.brand span, .footer-mark { font-size: 1.35rem; font-weight: 900; letter-spacing: -.065em; }
.brand b { font-size: .9rem; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
nav { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.5rem); }
nav a { font-size: .9rem; font-weight: 700; text-decoration: none; text-align: center; }
nav a:hover, .text-link:hover, .industry-copy h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.locale { position: relative; }
.locale summary { white-space: nowrap; cursor: pointer; font-size: .88rem; font-weight: 700; }
.locale summary span { color: var(--accent); }
.locale ul { position: absolute; inset-inline-end: 0; min-width: 145px; z-index: 2; margin: .6rem 0 0; padding: .38rem; list-style: none; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 42px #14282420; }
.locale a { display: block; text-decoration: none; padding: .35rem .75rem; }
.locale a:hover, .locale a[aria-current] { background: var(--sand); }
.hero { position: relative; isolation: isolate; background: var(--sand); }
.hero-inner { min-height: clamp(430px, 44vw, 630px); padding-block: clamp(3rem, 8vw, 7rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; }
.hero-inner h1, .hero-inner p { max-width: min(20ch, 53%); }
.hero-inner h1 { color: var(--accent); }
.hero-inner p { font-size: clamp(1rem, 1.6vw, 1.24rem); margin-block: 1.45rem 1.65rem; max-width: min(42ch, 48%); }
.hero-inner h1::before, .page-intro h1::before { content: ""; display: block; height: 6px; width: 52px; background: var(--yellow); margin-block-end: 1.1rem; }
.hero-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-visual picture { position: absolute; inset-block: 0; inset-inline-end: 0; width: 70%; }
.hero-visual img { height: 100%; object-fit: cover; object-position: 66% center; }
.hero-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--sand) 25%, color-mix(in srgb, var(--sand) 95%, transparent) 35%, color-mix(in srgb, var(--sand) 73%, transparent) 46%, transparent 68%); }
[dir="rtl"] .hero-visual::after { background: linear-gradient(-90deg, var(--sand) 25%, color-mix(in srgb, var(--sand) 95%, transparent) 35%, color-mix(in srgb, var(--sand) 73%, transparent) 46%, transparent 68%); }
[dir="rtl"] .hero-visual img { scale: -1 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .8rem 1.1rem; background: var(--accent); color: white; text-decoration: none; min-height: 49px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 750; cursor: pointer; text-align: start; }
.button:hover { filter: brightness(.9); }
.button:disabled { opacity: .68; cursor: wait; }
.arrow { display: inline-block; font: 550 1.3em/1 system-ui, sans-serif; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--accent); text-decoration: none; font-weight: 750; }
.section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-block-end: 2rem; }
.section-heading::after { content: ""; height: 1px; min-width: 2rem; flex: 1; background: var(--line); }
.section-heading h2 { border-inline-start: 5px solid var(--yellow); padding-inline-start: .55em; color: var(--accent); }
.industry-row { display: grid; grid-template-columns: 1.36fr 1fr; background: var(--sand); min-width: 0; }
.industry-row + .industry-row { margin-top: 1rem; }
.industry-image { overflow: hidden; display: block; }
.industry-image img { aspect-ratio: 2.55; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.industry-image:hover img { transform: scale(1.03); }
.industry-copy { padding: clamp(1.15rem, 3vw, 3.2rem); align-self: center; }
.industry-copy p { margin-block: .6rem .85rem; max-width: 55ch; }
.industry-copy h3 a { color: var(--accent); text-decoration: none; }
.featured { background: var(--white); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-block: clamp(1.5rem, 4vw, 3.2rem); }
.featured-image { display: block; }
.featured-image img { max-width: 520px; margin-inline: auto; aspect-ratio: 1; object-fit: contain; }
.featured-copy { border-inline-start: 1px solid var(--line); padding-inline: clamp(1.25rem, 5vw, 5rem); padding-block: 1rem; }
.featured-copy h2 { color: var(--accent); }
.featured-copy p { margin-block: 1rem 1.4rem; max-width: 42ch; }
.secondary-products { padding-block-start: clamp(2.4rem, 5vw, 4.6rem); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.product-card { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.product-card a { display: block; text-decoration: none; }
.product-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.product-card img { height: 170px; width: 100%; object-fit: contain; padding: .6rem; }
.product-card a > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem; border-top: 1px solid var(--line); color: var(--accent); }
.product-card h3 { font-size: 1.13rem; overflow-wrap: anywhere; }
.inquiry { background: var(--accent); color: white; padding-block: clamp(3rem, 7vw, 6rem); }
.inquiry-grid { display: grid; gap: clamp(1.5rem, 6vw, 7rem); grid-template-columns: 1fr 1.35fr; }
.inquiry-copy h2 { margin-block-end: .7rem; }
.inquiry-copy p { color: white; opacity: .9; max-width: 37ch; margin-block-end: 1.25rem; }
.inquiry-copy a { display: block; width: fit-content; text-underline-offset: 4px; margin-block: .4rem; direction: ltr; }
.lead-form { background: var(--paper); color: var(--ink); padding: clamp(1rem, 2.6vw, 2.6rem); display: grid; gap: .8rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lead-form label { font-size: .91rem; font-weight: 700; display: grid; gap: .27rem; }
.lead-form input:not([type=checkbox]), .lead-form textarea, .lead-form select {
  background: white; width: 100%; min-height: 43px; border: 1px solid #aebbb2; border-radius: 3px; font: inherit; color: var(--ink); padding: .55rem .7rem; text-align: start;
}
.lead-form textarea { resize: vertical; }
.lead-form .trap { display: none; }
.lead-form .consent { display: flex; align-items: start; gap: .55rem; font-size: .84rem; font-weight: 450; }
.lead-form input[type=checkbox] { inline-size: 1.1rem; block-size: 1.1rem; flex-shrink: 0; margin: .23rem 0 0; accent-color: var(--accent); }
.lead-form button { background: var(--yellow); color: var(--ink); justify-self: start; }
.form-status { color: var(--accent); font-weight: 700; }
.form-status[data-error] { color: #8c2422; }
.footer { background: #132524; color: white; padding-block: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.footer p { color: #d5e1d9; }
.footer a { display: block; width: fit-content; margin-block-end: .25rem; text-underline-offset: 3px; }
.page-intro { padding-block: clamp(2rem, 6vw, 5rem) 1.65rem; }
.page-intro .back { margin-block-end: 1.25rem; }
.page-intro .back .arrow { rotate: 180deg; }
.page-intro p { margin-block-start: 1rem; max-width: 65ch; font-size: 1.12rem; }
.page-intro h1 { color: var(--accent); font-size: clamp(2.2rem, 4.5vw, 4.15rem); }
.detail-scene img { aspect-ratio: 2.35; object-fit: cover; }
.detail-scene figcaption { color: var(--muted); font-size: .82rem; margin-block-start: .4rem; }
.detail-action { margin-block-start: 1.6rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding-block: 1.5rem 4rem; }
.product-detail figure { background: white; }
.product-detail img { max-height: 530px; object-fit: contain; }
.product-detail h2 { margin-block-end: .7rem; }
.region-detail img { object-fit: cover; }
.downloads { list-style: none; padding: 0; }
.downloads a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--accent); text-decoration: none; background: white; }
.downloads a:hover { text-decoration: underline; }
.subtle { font-size: .88rem; margin-block: .5rem; }
.faq-heading { margin-block-start: 3rem; }
.faq { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 750; color: var(--accent); cursor: pointer; }
.faq p { margin-block-start: .5rem; }
@media (min-width: 1500px) { .hero-inner h1 { max-width: 45%; } }
@media (max-width: 900px) {
  .wrap { width: min(100% - 52px, 1280px); }
  .header-grid { column-gap: 1rem; }
  nav { column-gap: .65rem; }
  .brand { gap: .35rem; }
  .brand b { display: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 34px); }
  .header-grid { min-height: auto; row-gap: 0; grid-template-columns: 1fr auto; padding-block-start: .75rem; }
  .brand b { display: inline; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; gap: .18rem .9rem; margin-block: .25rem .45rem; }
  nav a { padding-block: .25rem; font-size: .86rem; }
  .hero { padding-block-start: min(63vw, 320px); }
  .hero-visual { height: min(63vw, 320px); }
  .hero-visual picture { width: 100%; }
  .hero-visual img { object-position: 69% 52%; }
  .hero-visual::after, [dir="rtl"] .hero-visual::after { background: linear-gradient(0deg, var(--sand), transparent 15%); }
  .hero-inner { min-height: auto; padding-block: .6rem 2.2rem; }
  .hero-inner h1, .hero-inner p { max-width: 100%; }
  .hero-inner h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-inner p { margin-block: .8rem 1rem; }
  .industry-row { grid-template-columns: 1fr; }
  .industry-image img { aspect-ratio: 2.15; height: auto; }
  .featured-grid, .inquiry-grid, .product-detail { grid-template-columns: 1fr; }
  .featured-image img { max-width: 350px; }
  .featured-copy { padding-inline: 1rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 24px); }
  .field-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.locale a small { display: block; color: var(--muted); font-size: .73rem; }
.selection { margin-block-start: clamp(2rem, 5vw, 4rem); padding: clamp(1.3rem, 4vw, 3rem); background: var(--sand); }
.selection h2 { color: var(--accent); font-size: clamp(1.4rem, 2.4vw, 2.3rem); }
.selection ul { margin-block-end: 0; padding-inline-start: 1.2rem; }
.selection li + li { margin-block-start: .6rem; }

/* Industrial catalog navigation and multipage layout. */
.header-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.desktop-nav { gap: clamp(.5rem, 1.3vw, 1.25rem); }
.desktop-nav a { white-space: nowrap; font-size: .88rem; padding-block: 1.55rem; border-bottom: 3px solid transparent; }
.desktop-nav a[aria-current], .desktop-nav a.active-section { color: var(--accent); border-bottom-color: var(--yellow); }
.mobile-site-nav { display: none; }
.catalog-head { border-bottom: 1px solid var(--line); padding-block: 1.1rem 2.1rem; background: var(--sand); }
.catalog-head h1 { color: var(--accent); font-size: clamp(2rem, 3.5vw, 3.35rem); margin-block: 1.5rem .8rem; }
.catalog-head p { max-width: 78ch; }
nav.breadcrumbs { display: block; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: .35rem .65rem; }
.breadcrumbs li { display: flex; gap: .65rem; font-size: .82rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); }
.breadcrumbs a { font-size: inherit; font-weight: 450; }
.breadcrumbs span { color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 3rem); padding-block: 2.5rem 5rem; align-items: start; }
.catalog-sidebar { border: 1px solid var(--line); background: white; }
.catalog-sidebar h2 { font-size: 1.15rem; padding: 1.1rem; color: white; background: var(--accent); letter-spacing: 0; }
.catalog-sidebar a { display: flex; justify-content: space-between; align-items: start; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .94rem; }
.catalog-sidebar a:last-child { border-bottom: 0; }
.catalog-sidebar a[aria-current] { font-weight: 750; color: var(--accent); box-shadow: inset 4px 0 var(--yellow); background: var(--sand); }
.catalog-sidebar a:hover { text-decoration: underline; }
.catalog-sidebar small { color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-results { min-width: 0; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: end; padding-block-end: 1.5rem; }
.catalog-toolbar h2 { font-size: 1.45rem; }
.catalog-search { display: grid; gap: .35rem; font-size: .82rem; }
.catalog-search input { min-height: 42px; width: min(290px, 100%); max-width: 100%; border: 1px solid #9eafa6; background: white; color: var(--ink); font: inherit; padding: .5rem .65rem; border-radius: 2px; }
.catalog-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-card img { height: 195px; object-fit: contain; }
.catalog-card .model-code { display: block; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; margin-block-start: .4rem; }
.catalog-card small { display: block; font-size: .72rem; color: var(--muted); margin-block-start: .4rem; }
.catalog-card .item-category { display: block; font-size: .75rem; color: var(--muted); margin-block-start: .45rem; }
.catalog-empty { padding: 1rem; border: 1px solid var(--line); margin-block-end: 1rem; }
.catalog-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 3rem; align-items: start; }
.catalog-detail figure { background: white; border: 1px solid var(--line); padding: 1.2rem; }
.catalog-detail img { max-height: 460px; object-fit: contain; }
.catalog-detail figcaption { font-size: .8rem; color: var(--muted); padding-block-start: .7rem; }
.catalog-detail h2 { font-size: clamp(1.4rem, 2.3vw, 2.15rem); }
.product-facts { margin-block: 1.2rem; }
.product-facts > div { display: grid; grid-template-columns: minmax(100px, .7fr) 1fr; padding: .6rem .5rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.product-help { margin-block-start: 1.25rem; }
.content-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.content-cards article { padding: 1.4rem; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: white; }
.content-cards h2 { font-size: 1.4rem; margin-block-end: 1rem; }
.content-cards .text-link { align-items: start; line-height: 1.35; }
.about-detail { padding: 0; }
.about-detail h3 { font-size: 1.2rem; margin-block: 1.5rem .5rem; }
.content-section > .wrap { width: 100%; }
.catalog-related { padding-block-start: 1.3rem; }
[hidden] { display: none !important; }
@media (max-width: 1200px) {
  .brand b { display: none; }
  .header-grid { gap: 1rem; }
  .desktop-nav { gap: .75rem; }
  .desktop-nav a { font-size: .83rem; }
  .catalog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .header-grid { min-height: 72px; grid-template-columns: 1fr auto; padding-block: 0; }
  .desktop-nav { display: none; }
  .brand b { display: inline; }
  .mobile-site-nav { display: block; }
  .mobile-site-nav > summary { cursor: pointer; list-style: none; font-size: 1.6rem; line-height: 1; padding: .5rem; color: var(--accent); }
  .mobile-site-nav > summary::-webkit-details-marker { display: none; }
  .mobile-site-nav nav { position: absolute; inset-inline: 0; top: 100%; display: grid; grid-template-columns: 1fr 1fr; justify-content: start; gap: 0; margin: 0; background: var(--paper); box-shadow: 0 15px 25px #13252418; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .mobile-site-nav a { text-align: start; padding: .7rem; border-bottom: 1px solid var(--line); }
  .mobile-site-nav a[aria-current] { color: var(--accent); font-weight: 850; }
}
@media (max-width: 700px) {
  .header-grid { min-height: 67px; }
  .catalog-layout { grid-template-columns: 1fr; padding-block-start: 1.2rem; gap: 1.5rem; }
  .catalog-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-sidebar h2 { grid-column: 1 / -1; padding: .7rem 1rem; }
  .catalog-sidebar a { font-size: .88rem; padding: .7rem; }
  .catalog-detail { grid-template-columns: 1fr; padding-block: 1.6rem; }
  .catalog-detail img { max-height: 340px; }
  .content-cards { grid-template-columns: 1fr; }
  .catalog-card img { height: 145px; }
  .catalog-card h3 { font-size: 1rem; }
  .catalog-card a > div { padding: .7rem; gap: .3rem; }
  .catalog-toolbar { align-items: stretch; }
  .catalog-search, .catalog-search input { width: 100%; }
  .catalog-toolbar h2 { font-size: 1.25rem; }
}
@media (max-width: 370px) {
  .catalog-items { grid-template-columns: 1fr; }
  .header-actions { gap: .3rem; }
  .brand b { display: none; }
}

.product-application { padding-block: 1rem 3.4rem; }
.product-application .section-heading h2 { font-size: clamp(1.6rem, 2.7vw, 2.65rem); }
.application-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.8rem); }
.application-layout figure { margin: 0; min-width: 0; }
.application-layout figure > a { display: block; background: var(--sand); border: 1px solid var(--line); }
.application-layout img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: contain; }
.application-layout figcaption { font-size: .78rem; color: var(--muted); margin-block-start: .6rem; }
.application-copy h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); color: var(--accent); }
.application-copy p { margin-block: 1rem 1.4rem; line-height: 1.85; }
.catalog-detail .detail-action { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 700px) {
  .application-layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .product-application { padding-block-end: 2.2rem; }
  .application-copy h3 { font-size: 1.4rem; }
}

.product-video { padding-block: 1rem 3rem; }
.product-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #123e37; border: 1px solid var(--line); }
.product-video video::cue { background: #123e37e8; color: #fff; }
.product-video figcaption { font-size: .84rem; color: var(--muted); margin-block-start: .7rem; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-block-start: 1rem; }
@media (max-width: 700px) {
  .product-video .section-heading h2 { font-size: 1.65rem; }
}
.catalog-card .video-availability { display: inline-block; color: var(--accent); font-size: .78rem; font-weight: 750; margin-block-start: .4rem; }

.video-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.video-gallery > .product-video { width: 100%; margin: 0; padding: 0 0 1.5rem; }
.video-gallery .section-heading { margin-block-end: 1rem; }
.video-gallery .section-heading h2 { font-size: clamp(1.15rem, 2vw, 1.65rem); }
.video-gallery .video-actions { gap: .75rem 1rem; }
.video-gallery .video-actions .button { min-height: 43px; padding: .55rem .85rem; }
@media (max-width: 800px) {
  .video-gallery { grid-template-columns: 1fr; }
}

.ai-advisor { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 90; font-size: 1rem; }
.ai-toggle { border: 1px solid #d6bd76; border-radius: 2rem; padding: .85rem 1.25rem; background: var(--accent); color: #fff; box-shadow: 0 8px 28px #123e372b; cursor: pointer; font: inherit; font-weight: 700; }
.ai-panel { position: absolute; inset-inline-end: 0; bottom: 4rem; width: min(420px, calc(100vw - 2rem)); max-height: min(720px, calc(100dvh - 7rem)); background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 18px 65px #123e3733; overflow: auto; padding: 1.1rem; }
.ai-panel[hidden] { display: none; }
.ai-panel header { display: flex; align-items: start; gap: 1rem; justify-content: space-between; }
.ai-panel h2 { margin: 0; font-size: 1.3rem; }
.ai-panel header p, .ai-status { font-size: .875rem; line-height: 1.6; color: var(--muted); margin: .4rem 0; }
.ai-close { font: inherit; font-size: 1.7rem; border: none; background: transparent; color: var(--accent); cursor: pointer; padding: 0 .4rem; }
.ai-messages { max-height: 310px; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; margin-block: .6rem; }
.ai-message { font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: #e8efeb; color: #173d37; padding: .8rem; border-radius: .7rem; line-height: 1.7; margin: .65rem 0; }
.ai-user { background: var(--accent); color: #fff; margin-inline-start: 1.8rem; }
.ai-pending { color: #526d64; }
.ai-sources { display: grid; gap: .5rem; padding: .5rem .4rem; font-size: .875rem; }
.ai-sources a, .ai-inquiry { text-decoration: underline; text-underline-offset: .2em; }
.ai-form { display: grid; gap: .5rem; }
.ai-input-label { font-size: .875rem; font-weight: 700; }
.ai-form textarea { width: 100%; resize: vertical; min-height: 75px; border: 1px solid #819c90; border-radius: .5rem; padding: .65rem; background: #fff; color: #173d37; font: inherit; }
.ai-form .button { justify-content: center; cursor: pointer; }
.ai-form button:disabled { opacity: .6; cursor: wait; }
.ai-inquiry { display: block; margin-block: .8rem; font-weight: 700; }
.ai-panel small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.6; }
@media(max-width: 700px) { .ai-advisor { inset-inline-end: 1rem; bottom: 1rem; } .ai-panel { max-height: calc(100dvh - 6rem); } .ai-messages { max-height: 35dvh; } }

[data-theme="zh-cn"]{--accent:#14534b}
[data-theme="en"]{--accent:#223f69;--paper:#f6f8fa;--sand:#e9eef4}
[data-theme="ja"]{--accent:#9c3c3b;--paper:#faf7f3;--sand:#f0eae5}
[data-theme="ko"]{--accent:#304376;--paper:#f7f8fc;--sand:#ebeff8}
[data-theme="fr"]{--accent:#294b87;--paper:#faf8f6;--sand:#eef1f8}
[data-theme="es"]{--accent:#8d3f30;--paper:#fdf8f1;--sand:#f3ece0}
[data-theme="de"]{--accent:#594b28;--paper:#f9f8f3;--sand:#efede4}
[data-theme="it"]{--accent:#3c624c;--paper:#f9f8f2;--sand:#ebf0e8}
[data-theme="ar"]{--accent:#246348;--paper:#fbf8ee;--sand:#eee8d9}