:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, button, input, select, textarea { font: inherit; }
.language-select { min-width: 100px; max-width: 155px; padding: 12px 16px; border: 1px solid #aec5d1; border-radius: 999px; background: #fff; color: #183b50; font-size: 13px; font-weight: 650; cursor: pointer; }
.language-select:focus-visible { outline: 2px solid #078a91; outline-offset: 3px; }
/* Keep translated labels readable; long words must not widen grid tracks. */
h1, h2, h3, p, label, button, a { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; hyphens: auto; }
.button { max-width: 100%; line-height: 1.45; text-align: center; }
.button > span { min-width: 0; }
.button > span:last-child:not(:first-child) { flex-shrink: 0; }
.eyebrow::before { flex-shrink: 0; }
@font-face { font-family: "YH Khmer"; src: url("assets/fonts/NotoSansKhmer-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "YH Lao"; src: url("assets/fonts/NotoSansLao-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
html:lang(km) { font-family: "YH Khmer", sans-serif; }
html:lang(lo) { font-family: "YH Lao", sans-serif; }
html:is(:lang(km), :lang(lo)) body :is(h1,h2,h3,p,a,button,label,span,strong,small) { letter-spacing: normal; line-height: 1.65; }
html:is(:lang(km), :lang(lo)) body :is(h1,h2,h3) { line-height: 1.45; }
html:is(:lang(km), :lang(lo)) body .brand { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
html:is(:lang(km), :lang(lo)) body .brand-name { letter-spacing: -.035em; line-height: 1.5; }
html:is(:lang(km), :lang(lo)) body .brand-sub { letter-spacing: .22em; line-height: 1.5; }
html:is(:lang(ja), :lang(zh)) body :is(h1,h2,h3) { line-break: strict; }
html:lang(ko) body :is(h1,h2,h3,p,a,button) { word-break: keep-all; letter-spacing: normal; }
.translation-note { margin: 18px 0; font-size: 12px; line-height: 1.7; color: #526b7a; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wide-container { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.section-title { max-width: 760px; margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.section-copy { max-width: 640px; margin: 18px 0 0; font-size: 16px; line-height: 1.8; opacity: .72; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 23px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button .arrow { font-size: 19px; line-height: 1; }
.icon-box { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; }
.icon-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: relative; z-index: 20; }
.nav-row { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 900; }
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: -.035em; }
.brand-sub { display: block; margin-top: 2px; font-size: 9px; font-weight: 700; letter-spacing: .22em; opacity: .58; }
.nav-panel { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 700; opacity: .8; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 70px; }
.footer-grid h4 { margin: 0 0 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.footer-grid p, .footer-grid a { font-size: 14px; line-height: 2; opacity: .7; }
.footer-links { display: grid; align-content: start; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid currentColor; font-size: 12px; opacity: .55; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .nav-panel { position: absolute; top: 68px; right: 20px; left: 20px; display: none; padding: 24px; border-radius: 22px; box-shadow: 0 24px 70px rgb(0 0 0 / .18); }
  .nav-panel.open { display: grid; }
  .nav-links { display: grid; gap: 15px; }
  .nav-actions { padding-top: 10px; }
  .section-head { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container, .wide-container { width: min(100% - 28px, 1180px); }
  .nav-row { min-height: 70px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 18px; }
  .nav-actions { align-items: stretch; flex-direction: column; }
  .lang, .nav-actions .button { width: 100%; }
  .section-title { font-size: 34px; }
  .section-copy { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* Provided round trademark artwork */
.chat-history-more{align-self:center;padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--teal);font:inherit;font-size:12px;cursor:pointer}
.chat-history-more:disabled{opacity:.6;cursor:wait}
.brand-logo-crop { display: block; flex: 0 0 auto; width: 54px; height: 54px; overflow: hidden; border: 0; border-radius: 50%; background: #fff; box-shadow: none; padding: 0; }
.brand-logo-crop img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@media (max-width: 760px) { .brand-logo-crop { width: 46px; height: 46px; } }

