:root {
  --ink: #0f2537;
  --navy: #143656;
  --blue: #1e6091;
  --sky: #e6f2fb;
  --sky-deep: #cde4f7;
  --accent: #d92364;
  --muted: #52677a;
  --line: #d9e4ee;
  --surface: #f7fafd;
  --white: #ffffff;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 54, 86, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 16px; letter-spacing: -0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-main { font-size: 17px; font-weight: 900; color: var(--navy); letter-spacing: 0.06em; }
.brand-sub { font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 0.2em; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform 0.2s;
}
.nav a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(30, 96, 145, 0.22); }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-outline { background: rgba(255, 255, 255, 0.9); color: var(--navy); border-color: rgba(20, 54, 86, 0.2); }
.btn-outline:hover { background: #fff; border-color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); }

/* Editorial Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--blue); }

/* Full-bleed Immersive Hero (Kerui-style) */
.hero {
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  background: linear-gradient(110deg, #e7f3fc 0%, #d4e9f9 55%, #c5e1f7 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('media/hero-cover.jpg') right center / contain no-repeat;
  background-position: calc(50% + 260px) center;
  opacity: 0.96;
  pointer-events: none;
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(235, 245, 253, 0.98) 0%, rgba(235, 245, 253, 0.92) 38%, rgba(235, 245, 253, 0.28) 62%, rgba(235, 245, 253, 0) 82%);
  pointer-events: none;
}
.hero > .container { width: 100%; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 560px; padding: 64px 0 56px;
}
.hero-company {
  font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: 0.01em;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 900; line-height: 1.06; letter-spacing: -0.025em;
  color: var(--ink); margin: 0 0 16px;
}
.hero-tagline {
  font-size: 19px; font-weight: 800; color: var(--blue); margin: 0 0 14px;
}
.hero-sub {
  font-size: 15.5px; color: var(--muted); margin: 0 0 12px; max-width: 470px;
}
.hero-methods {
  font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-foot {
  font-size: 13px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.hero-foot strong { color: var(--ink); }

/* Sections */
.section { padding: 88px 0; }
.section-sky {
  background: linear-gradient(180deg, #edf6fd 0%, #f8fbfe 100%);
  border-bottom: 1px solid var(--line);
}
.section-head-split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.section-head-split h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--ink); margin: 0; line-height: 1.15; font-weight: 700;
}
.section-head-split p { max-width: 440px; color: var(--muted); margin: 0; font-size: 15px; }

/* Interactive Studio (Kerui-style 2-column stage + material panel) */
.studio-shell {
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 24px; align-items: stretch;
}
.studio-stage {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column;
  box-shadow: 0 16px 40px rgba(15, 37, 55, 0.06);
}
.studio-toolbar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.tab-group { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.tab-btn {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 7px;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tab-btn.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(15, 37, 55, 0.08); }

.stage-canvas {
  position: relative; flex: 1; min-height: 360px; border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, #f4f9fe 0%, #e4eff9 100%);
  border: 1px solid #d5e4f0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; perspective: 1000px;
}
.stage-badge-tl {
  position: absolute; top: 14px; left: 16px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--navy); background: rgba(255,255,255,0.86);
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line);
}
.stage-badge-tr {
  position: absolute; top: 14px; right: 16px; font-size: 11px; font-weight: 700;
  color: var(--muted);
}

/* 3D Pouch View */
.pouch-3d-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform 0.35s ease;
}
.pouch-3d-card {
  width: 240px; height: 270px; background: #fff; border-radius: 16px;
  padding: 16px; box-shadow: 0 24px 44px rgba(15, 37, 55, 0.16);
  border: 1px solid rgba(20, 54, 86, 0.12);
  display: flex; align-items: center; justify-content: center;
  transform: rotateY(-10deg) rotateX(4deg);
  transition: transform 0.35s ease, filter 0.3s ease;
}
.pouch-3d-card:hover { transform: rotateY(10deg) rotateX(-3deg) scale(1.03); }
.pouch-3d-card img { max-height: 230px; object-fit: contain; }
.pouch-3d-card.finish-gloss { filter: contrast(1.06) saturate(1.1); }
.pouch-3d-card.finish-matte { filter: contrast(0.96) saturate(0.92); }

/* Exploded 3D Layer View */
.layers-3d {
  display: none; flex-direction: column; align-items: center; gap: 12px; width: 84%;
}
.layers-3d.active { display: flex; }
.pouch-3d-wrap.hidden { display: none; }
.layer-plate {
  width: 100%; max-width: 440px; padding: 14px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid #c6daeb;
  box-shadow: 0 10px 22px rgba(15, 37, 55, 0.08);
  display: flex; justify-content: space-between; align-items: center;
  transform: perspective(700px) rotateX(12deg);
  transition: transform 0.25s ease;
}
.layer-plate:hover { transform: perspective(700px) rotateX(0deg) translateY(-2px); border-color: var(--blue); }
.layer-plate-num { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.layer-plate strong { display: block; font-size: 14.5px; color: var(--navy); }
.layer-plate span { font-size: 12.5px; color: var(--muted); }

/* Right Controls Panel */
.studio-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 40px rgba(15, 37, 55, 0.06);
}
.panel-title { font-size: 19px; font-weight: 800; color: var(--navy); margin: 4px 0 18px; }
.ctrl-block { margin-bottom: 16px; }
.ctrl-label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.pill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pill {
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; transition: all 0.16s;
}
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.spec-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 14px 0 16px; font-size: 13px; color: var(--navy);
}
.spec-box strong { display: block; margin-bottom: 4px; }

/* Applications (Editorial Cards) */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 37, 55, 0.09); }
.app-stage {
  height: 240px; background: linear-gradient(135deg, #edf5fc 0%, #dcebf7 100%);
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px;
}
.app-stage img {
  max-height: 185px; border-radius: 10px;
  filter: drop-shadow(0 14px 20px rgba(15, 37, 55, 0.18));
  transition: transform 0.25s;
}
.app-card:hover .app-stage img:first-child { transform: translateY(-6px) rotate(-3deg); }
.app-card:hover .app-stage img:last-child { transform: translateY(-6px) rotate(3deg); }
.app-body { padding: 24px 26px; display: flex; gap: 18px; align-items: flex-start; }
.app-num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--blue); }
.app-body h3 { margin: 0 0 8px; font-size: 21px; color: var(--ink); }
.app-body p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags span { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* Formats Grid */
.formats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.format-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; transition: all 0.2s;
}
.format-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 37, 55, 0.08); }
.format-thumb {
  height: 170px; background: var(--surface); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 14px; margin-bottom: 14px;
}
.format-thumb img { max-height: 140px; object-fit: contain; }
.format-card h3 { margin: 4px 0 8px; font-size: 17px; color: var(--navy); }
.format-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.format-meta { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--blue); }

/* Printing & Factory */
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.print-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.print-card h3 { margin: 8px 0 6px; font-size: 22px; color: var(--navy); }
.print-moq { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.print-card p { margin: 0; color: var(--muted); font-size: 15px; }

.factory-banner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
.factory-img-frame {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(15, 37, 55, 0.1);
}
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.wf-card h4 { margin: 6px 0; font-size: 16px; color: var(--navy); }
.wf-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Global Reach Dark Band */
.reach-band {
  background: linear-gradient(135deg, #0d2235 0%, #163b5c 100%);
  color: #fff; padding: 76px 0;
}
.reach-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.reach-band h2 { font-family: var(--serif); font-size: 36px; margin: 0 0 14px; }
.reach-band p { color: #b9cfe2; margin: 0 0 24px; }
.region-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.region-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px 16px; }
.region-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.region-card span { font-size: 12.5px; color: #9fc0dc; }
.map-box {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 20px;
}

/* FAQ & Contact */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.contact-shell {
  background: var(--navy); color: #fff; border-radius: 22px; padding: 48px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px;
}
.contact-shell h2 { font-family: var(--serif); font-size: 36px; margin: 0 0 12px; }
.contact-shell p { color: #c4d8e8; margin: 0 0 22px; }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #e1eef8; margin-bottom: 26px; }
.contact-form { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px;
}
.field textarea { min-height: 84px; resize: vertical; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

@media (max-width: 980px) {
  .hero-bg { opacity: 0.25; background-position: center; background-size: cover; }
  .hero-mask { background: linear-gradient(180deg, rgba(235,245,253,0.92), rgba(235,245,253,0.96)); }
  .studio-shell, .app-grid, .print-grid, .factory-banner, .reach-grid, .contact-shell, .faq-list { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .formats-grid, .workflow-grid, .form-row, .region-pills { grid-template-columns: 1fr; }
  .contact-shell { padding: 26px 20px; }
}

.catalog-filter { display: flex; align-items: end; gap: 18px; margin: 30px 0; }
.catalog-filter label { display: grid; gap: 6px; font-weight: 600; }
.catalog-filter input, .catalog-filter select { min-width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; min-height: 480px; }
.detail-image { display: grid; place-items: center; min-height: 400px; background: var(--sky); border-radius: 18px; }
.detail-image img { max-height: 350px; }
.detail-grid h1 { font-size: 48px; line-height: 1.15; }
.contact-form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.contact-form fieldset label { margin-right: 18px; }
.enquiry-preview { margin-top: 28px; }
.enquiry-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 18px; background: var(--surface); border-radius: 8px; }
.page-intro { max-width: 740px; font-size: 18px; color: var(--muted); }
.content-cards { margin: 48px 0; grid-template-columns: repeat(3, 1fr); }
.page-cta { padding: 40px; background: var(--sky); border-radius: 18px; margin-top: 56px; }
.factory-page-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 18px; margin-top: 35px; }
.pouch-model canvas { max-width: 100%; touch-action: none; cursor: grab; }
.model-controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.model-controls button { border: 1px solid var(--line); background: white; border-radius: 6px; padding: 6px 9px; color: var(--ink); cursor: pointer; }
.model-note { margin: 0; max-width: 310px; text-align: center; font-size: 11px; color: var(--muted); }
[hidden] { display: none !important; }
.enquiry-preview { color: var(--ink); background: #fff; border-radius: 16px; padding: 24px; }
.contact-shell .enquiry-preview p { color: var(--muted); }

@media (min-width: 981px) { .hero-content { max-width: 470px; } .hero-bg { background-position: right center; background-size: auto 100%; } .hero-mask { background: linear-gradient(90deg, #ebf5fd 0%, #ebf5fd 34%, rgba(235,245,253,.88) 44%, transparent 68%); } }
.journey-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.journey-nav a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.journey { display: grid; gap: 14px; }
.journey details { padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.journey summary { cursor: pointer; font-weight: 700; font-size: 19px; }
.detail-grid select, .detail-grid input { display: block; width: 100%; margin: 8px 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
button.region-card { color: inherit; text-align: left; cursor: pointer; font: inherit; }
button.region-card[aria-pressed="true"] { border-color: #7cc4f8; background: rgba(124,196,248,.15); }
#sample-dialog { border: 0; border-radius: 14px; padding: 20px; max-width: min(700px, 90vw); max-height: 85vh; }
#sample-dialog::backdrop { background: rgba(7, 23, 38, .7); }
#sample-dialog img { max-width: 100%; max-height: 70vh; object-fit: contain; margin: 14px auto 0; }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; padding: 6px 0; }
.nav-menu summary::after { content: ' ▾'; font-size: 10px; }
.nav-dropdown { position: absolute; top: 100%; left: -18px; min-width: 215px; padding: 10px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,37,55,.15); }
.nav-dropdown a { padding: 8px; border-radius: 6px; }
.nav-dropdown a:hover { background: var(--sky); }
.nav-dropdown a::after { display: none; }
.calculator { margin: 40px 0; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.calculator form { max-width: 700px; }
.calculator input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.detail-guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 64px; }
.detail-guidance > div { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.detail-guidance h2 { margin: 8px 0 16px; }
.detail-faq { margin-top: 50px; max-width: 850px; }
.detail-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.detail-faq summary { cursor: pointer; font-weight: 700; }
.factory-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.factory-facts div { padding: 20px; background: var(--surface); border-radius: 12px; }
.factory-facts strong, .factory-facts span { display: block; }
.factory-facts strong { font-size: 28px; color: var(--navy); }
.factory-facts span { color: var(--muted); }

.ai-assistant { position: fixed; right: 22px; bottom: 22px; z-index: 1000; font-size: 14px; }
.ai-assistant-toggle { border: 0; border-radius: 999px; padding: 14px 20px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 8px 28px rgba(15,37,55,.24); cursor: pointer; }
.ai-assistant-panel { width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 100px)); margin-bottom: 12px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(15,37,55,.2); }
.ai-assistant-panel[hidden] { display: none; }
.ai-assistant-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy); color: #fff; }
.ai-assistant-heading strong, .ai-assistant-heading span { display: block; }
.ai-assistant-heading span { margin-top: 3px; font-size: 11px; opacity: .8; }
.ai-assistant-close { border: 0; background: transparent; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.ai-assistant-intro { margin: 0; padding: 14px 18px 8px; color: var(--muted); font-size: 12px; }
.ai-assistant-log { flex: 1; overflow-y: auto; padding: 8px 18px; }
.ai-assistant-message { width: fit-content; max-width: 92%; margin: 8px 0; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.ai-assistant-message--answer { background: var(--sky); color: var(--ink); }
.ai-assistant-message--question { margin-left: auto; background: #e8f3fb; color: var(--navy); }
.ai-assistant-form { display: flex; align-items: end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ai-assistant-form textarea { flex: 1; min-width: 0; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ai-assistant-form .btn { padding: 10px 14px; }
.ai-assistant-form button:disabled { opacity: .6; cursor: wait; }
.ai-assistant-status { min-height: 16px; margin: 0; padding: 0 14px 12px; color: var(--muted); font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .ai-assistant { right: 12px; bottom: 12px; } .ai-assistant-panel { height: min(520px, calc(100vh - 82px)); } }
