/* e-Trust 3D site
   Layout idea: one pinned 3D object per page on a full-screen stage; text panels scroll over it
   and drive its pose. Each page has its own colour world (data-theme on <body>). */

:root {
  --display: "Anton", "Oswald", Impact, "Arial Narrow", "Hind Siliguri", sans-serif;
  --body: "Archivo", "Hind Siliguri", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;
}

/* Bangla text (DORKARI names, AI chat) */
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/hind-siliguri-bn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/hind-siliguri-bn-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/hind-siliguri-bn-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0980-09FF, U+200C-200D, U+25CC; }

/* ---------- page themes ---------- */
body[data-theme="home"] {
  --stage: #e6e7ea; --ink: #0c0e13; --muted: #7e838d; --accent: #2bcf8f; --accent2: #0d43b0;
  --panel: #050608; --onpanel: #f2f3f5; --line: rgba(12,14,19,.14); --mark-g: #2bcf8f; --mark-b: #0d43b0; color-scheme: light;
}
body[data-theme="about"] {
  --stage: #07122b; --ink: #eef2fb; --muted: #8f9bb8; --accent: #2bcf8f; --accent2: #6f9bff;
  --panel: #eef2fb; --onpanel: #07122b; --line: rgba(238,242,251,.16); --mark-g: #2bcf8f; --mark-b: #ffffff; color-scheme: dark;
}
body[data-theme="services"] {
  --stage: #dff3e9; --ink: #0b1f17; --muted: #557365; --accent: #0d43b0; --accent2: #1aa673;
  --panel: #0b1f17; --onpanel: #dff3e9; --line: rgba(11,31,23,.15); --mark-g: #1aa673; --mark-b: #0d43b0; color-scheme: light;
}
body[data-theme="projects"] {
  --stage: #15161a; --ink: #f1f1ef; --muted: #9a9ca3; --accent: #ffb547; --accent2: #2bcf8f;
  --panel: #f1f1ef; --onpanel: #15161a; --line: rgba(241,241,239,.15); --mark-g: #2bcf8f; --mark-b: #ffffff; color-scheme: dark;
}
body[data-theme="team"] {
  --stage: #f3ede2; --ink: #1d1a16; --muted: #857b6d; --accent: #ff6b4a; --accent2: #0d43b0;
  --panel: #1d1a16; --onpanel: #f3ede2; --line: rgba(29,26,22,.15); --mark-g: #2bcf8f; --mark-b: #0d43b0; color-scheme: light;
}
body[data-theme="contact"] {
  --stage: #0a0b0b; --ink: #f2f2f2; --muted: #8d8f91; --accent: #2bcf8f; --accent2: #8f7bff;
  --panel: #2bcf8f; --onpanel: #04130c; --line: rgba(242,242,242,.15); --mark-g: #2bcf8f; --mark-b: #ffffff; color-scheme: dark;
}

body[data-theme="dorkari"] {
  --stage: #1a1030; --ink: #fbf6ee; --muted: #b3a7c9; --accent: #ffb547; --accent2: #b794f6;
  --panel: #ffb547; --onpanel: #1a1030; --line: rgba(251,246,238,.16); --mark-g: #2bcf8f; --mark-b: #ffffff; color-scheme: dark;
}
body[data-theme="assistant"] {
  --stage: #fbeef0; --ink: #2a0d14; --muted: #8b5f69; --accent: #f23a4c; --accent2: #0d43b0;
  --panel: #2a0d14; --onpanel: #fbeef0; --line: rgba(42,13,20,.14); --mark-g: #2bcf8f; --mark-b: #0d43b0; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--stage); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 20; display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 48px); transition: background .3s ease, box-shadow .3s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--stage) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: .01em; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--mark-g); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s ease; }
.nav-links a:hover { background: var(--line); }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-cta { text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--stage); flex-shrink: 0; transition: transform .2s ease; }
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--stage); transition: transform .25s ease, top .25s ease; }
.nav-toggle i:first-child { top: 19px; } .nav-toggle i:last-child { top: 26px; }
.sheet-open .nav-toggle i:first-child { top: 22px; transform: rotate(45deg); }
.sheet-open .nav-toggle i:last-child { top: 22px; transform: rotate(-45deg); }
.nav-sheet { position: fixed; inset: 0; z-index: 15; background: var(--panel); color: var(--onpanel); padding: calc(var(--nav-h) + 24px) clamp(16px, 6vw, 48px) 32px; display: flex; flex-direction: column; overflow-y: auto; }
.nav-sheet[hidden] { display: none; }
.nav-sheet nav { display: grid; gap: 6px; }
.nav-sheet nav a { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 12vw, 64px); line-height: 1.05; text-decoration: none; display: flex; align-items: baseline; gap: 14px; }
.nav-sheet nav a small { font-family: var(--body); font-size: 14px; opacity: .55; }
.nav-sheet nav a.active { color: var(--accent); }
.sheet-open .nav .brand, .sheet-open .nav .nav-toggle { color: var(--onpanel); }
.sheet-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }
.sheet-open .nav .nav-toggle { background: var(--onpanel); }
.sheet-open .nav .nav-toggle i { background: var(--panel); }
.sheet-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; font-size: 18px; }
.sheet-foot a { text-decoration: none; }

/* ---------- sections ---------- */
section { position: relative; padding: 0 clamp(16px, 5vw, 72px); }
.story { min-height: 100svh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.col { max-width: 520px; }
.right .col { margin-left: auto; }
.stripe { height: 7px; width: min(520px, 70%); background: linear-gradient(90deg, var(--accent) 0 33%, var(--accent2) 33% 66%, var(--ink) 66%); transform: skewX(-30deg); transform-origin: left; }
.label { display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; max-width: 420px; }
.label::before { content: ""; height: 2px; background: currentColor; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .02em; margin: 0 0 16px; color: var(--accent2); }
.lead { font-size: clamp(21px, 2.4vw, 32px); line-height: 1.24; font-weight: 500; max-width: 26ch; margin: 28px 0 0; text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 18px 0 0; }
.muted { color: var(--muted); }
.big { font-size: clamp(54px, 9.4vw, 140px); max-width: 9.5em; }
.mid { font-size: clamp(44px, 6.4vw, 92px); }

.pill { display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--ink); color: var(--stage); text-decoration: none; font-size: 16px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit; transition: transform .25s ease; }
.pill span { width: 38px; height: 38px; border-radius: 50%; background: var(--stage); color: var(--ink); display: grid; place-items: center; font-size: 19px; transition: transform .25s ease; }
.pill:hover { transform: translateY(-2px); }
.pill:hover span { transform: translateX(3px); }
.panel .pill { background: var(--onpanel); color: var(--panel); }
.panel .pill span { background: var(--panel); color: var(--onpanel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ghost { display: inline-flex; align-items: center; padding: 0 22px; height: 54px; border-radius: 999px; border: 2px solid currentColor; text-decoration: none; font-weight: 500; }

/* hero */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 90px)); padding-bottom: 28px; }
.hero .wrap { display: flex; flex-direction: column; flex: 1; }
.signoff { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.roundel { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--ink); --mark-b: #0d43b0; --mark-g: #2bcf8f; }
.roundel svg { width: 34px; height: 34px; }
.signoff p { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 17px; line-height: 1.05; letter-spacing: .02em; }
.scroll-hint { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.bottom { justify-content: flex-end; padding-bottom: 12vh; }
.pad { padding-top: 12vh; padding-bottom: 12vh; }
.panel { background: var(--panel); color: var(--onpanel); }
.panel .muted, .panel .body { color: color-mix(in srgb, var(--onpanel) 62%, transparent); }

/* lists, stats, cards */
.svc { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 30px; max-width: 560px; }
.svc li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
.svc .n { font-family: var(--display); font-size: clamp(40px, 5vw, 62px); line-height: 1; font-variant-numeric: tabular-nums; }
.svc h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; }
.svc p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 44ch; }
.svc a { text-decoration: none; }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px 44px; }
.stat { border-left: 2px solid currentColor; padding-left: 12px; }
.stat strong { font-size: clamp(48px, 6vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: .38em; font-weight: 600; margin-left: 2px; }
.stat span { display: block; font-size: 15px; margin-top: 4px; }
.box { max-width: 440px; border-left: 2px solid currentColor; padding-left: 16px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.32; font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.checks li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex-shrink: 0; transform: translateY(-1px); }
.big-n { font-family: var(--display); font-size: clamp(90px, 14vw, 200px); line-height: .8; color: var(--accent); opacity: .9; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.socials a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1.5px solid currentColor; }
.socials a:hover { background: var(--ink); color: var(--stage); border-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.values h3 { margin: 0 0 6px; font-size: 19px; }
.values p { margin: 0; font-size: 15px; line-height: 1.5; }
.quote-mark { font-family: var(--display); font-size: 120px; line-height: .6; opacity: .3; }
blockquote { margin: 18px 0 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; font-weight: 500; max-width: 30ch; }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 30px; max-width: 820px; }
.faq details { border-top: 1.5px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 62ch; }

/* contact form */
.form-card { background: var(--panel); color: var(--onpanel); border-radius: 18px; padding: clamp(22px, 4vw, 44px); max-width: 640px; }
.form-card h2 { margin: 0 0 6px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--onpanel) 25%, transparent); background: color-mix(in srgb, var(--onpanel) 6%, transparent); color: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--onpanel); }
.field .err { font-size: 14px; color: #b3261e; font-weight: 600; }
.is-invalid { border-color: #b3261e !important; }
.alert { border-radius: 10px; padding: 14px 16px; font-weight: 600; margin-bottom: 8px; }
.alert.ok { background: color-mix(in srgb, var(--onpanel) 12%, transparent); }
.alert.bad { background: #b3261e; color: #fff; }
.hp { position: absolute; left: -9999px; }
.contact-lines { display: grid; gap: 18px; margin-top: 30px; }
.contact-lines a { text-decoration: none; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; }
.contact-lines small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: 16px; display: block; margin-top: 26px; filter: grayscale(.2); }

/* footer */
.footer { padding: 40px clamp(16px, 5vw, 72px) 34px; }
.footer h2 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 500; line-height: 1.02; margin: 28px 0 22px; letter-spacing: -.01em; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid a { display: block; margin: 0 0 8px; font-size: clamp(19px, 1.8vw, 23px); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
body[data-theme="contact"] .foot-grid a:hover { color: #fff; }
.foot-grid .sub { font-size: 16px; opacity: .72; }
.footer .fine { margin-top: 44px; font-size: 12px; opacity: .6; max-width: 60ch; }

.no-gl #gl { display: none; }

@media (max-width: 1240px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .brand { font-size: 16px; }
  .big { font-size: clamp(46px, 13.5vw, 72px); }
  .mid { font-size: clamp(38px, 11vw, 60px); }
  .grid2 { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .right .col { margin-left: 0; }
  .mobile-low { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .pill span, .nav-cta { transition: none; }
}


/* ---------- icons & helpers ---------- */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
[lang="bn"], .bn { font-family: "Hind Siliguri", var(--body); }

/* ---------- DORKARI ---------- */
.dk-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); }
.dk-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dk-bn { font-family: "Hind Siliguri", sans-serif; font-weight: 600; }
.dk-swatch { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: "Hind Siliguri", sans-serif; font-weight: 600; font-size: 22px; color: #1a1030; margin-bottom: 18px; }
.dk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.dk-grid a { display: block; text-decoration: none; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.dk-grid a:hover { transform: translateY(-3px); border-color: currentColor; }
.dk-grid b { display: block; font-size: 17px; }
.dk-grid span { font-family: "Hind Siliguri", sans-serif; opacity: .75; }
.dk-grid i { display: block; width: 26px; height: 6px; border-radius: 3px; margin-bottom: 12px; }

/* ---------- AI chat ---------- */
.chatbox { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; color: #17191d; box-shadow: 0 24px 70px rgba(0,0,0,.22); font-family: var(--body); }
.chatbox--page { height: min(680px, calc(100svh - var(--nav-h) - 60px)); min-height: 460px; }
.chatbox__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; background: #121418; color: #eef0f3; }
.chatbox__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #2bcf8f; color: #062014; }
.chatbox__id { display: grid; margin-right: auto; line-height: 1.25; }
.chatbox__id strong { font-size: 16px; }
.chatbox__status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #a8adb7; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bcf8f; display: inline-block; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.chatbox__log { flex: 1 1 auto; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; background: #f6f7f9; }
.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg--bot { align-self: flex-start; }
.msg__bubble { padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.msg--user .msg__bubble { background: #121418; color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg--bot .msg__bubble { background: #fff; border: 1px solid #e3e5ea; border-bottom-left-radius: 4px; }
.msg--error .msg__bubble { background: #fdecec; border-color: #f3b5b5; color: #8a1c1c; }
.msg__bubble p { margin: 0 0 8px; } .msg__bubble p:last-child { margin-bottom: 0; }
.msg__bubble ul, .msg__bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.msg__bubble h4 { margin: 8px 0 4px; font-size: 15px; }
.msg__bubble a { color: #0d43b0; }
.msg__bubble code { background: #eef0f4; padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.msg__bubble pre { background: #121418; color: #e8eaee; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.msg__bubble pre code { background: none; padding: 0; color: inherit; }
.msg__tools { display: flex; gap: 6px; margin-top: 4px; }
.msg__tools button { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; color: #6b7080; background: none; border: 0; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.msg__tools button:hover { background: #e9ebef; }
.msg__tools .icon { width: 14px; height: 14px; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px !important; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0ab; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chatbox__suggest { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; background: #f6f7f9; }
.chatbox__suggest::-webkit-scrollbar { display: none; }
.chatbox__suggest[hidden] { display: none; }
.chatbox__suggest button { flex: none; border: 1.5px solid #dcdfe5; background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; color: #17191d; }
.chatbox__suggest button:hover { border-color: #2bcf8f; }
.chatbox__form { display: flex; align-items: flex-end; gap: 8px; margin: 10px 12px 0; padding: 6px 6px 6px 14px; border: 1.5px solid #dcdfe5; border-radius: 16px; background: #fff; }
.chatbox__form:focus-within { border-color: #2bcf8f; }
.chatbox__form textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; padding: 9px 0; max-height: 160px; line-height: 1.45; font: inherit; font-size: 15px; color: inherit; }
.chatbox__send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #2bcf8f; color: #062014; cursor: pointer; }
.chatbox__send:disabled { opacity: .45; cursor: not-allowed; }
.chatbox__note { font-size: 12px; color: #7a7f8a; text-align: center; padding: 8px 14px 12px; margin: 0; }

.chat-widget { position: fixed; right: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 30; display: grid; justify-items: end; gap: 12px; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 18px 6px 7px; border: 0; border-radius: 999px; background: #121418; color: #fff; font: 600 15px var(--body); cursor: pointer; box-shadow: 0 12px 34px rgba(0,0,0,.28); transition: transform .2s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2bcf8f; color: #062014; }
.chat-fab[aria-expanded="true"] .chat-fab__text { display: none; }
.chat-fab[aria-expanded="true"] { padding-right: 7px; }
.chat-widget__panel { width: min(400px, calc(100vw - 28px)); height: min(620px, calc(100dvh - 120px)); }
.chat-widget__panel[hidden] { display: none; }
.chat-widget__panel .chatbox { height: 100%; }
.sheet-open .chat-widget { display: none; }
@media (max-width: 560px) {
  .chat-fab__text { display: none; }
  .chat-fab { padding-right: 7px; }
  .chat-widget__panel { position: fixed; inset: auto 8px 8px 8px; width: auto; height: calc(100dvh - 16px - var(--nav-h)); }
  .chat-widget.is-open .chat-fab { display: none; }
  .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) { .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* assistant page */
.assist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .assist { grid-template-columns: 1fr; } }

.field select option { color: #111; }

.chatbox__model { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; font-size: 13px; color: #5d626e; background: #fff; }
.chatbox__model select { flex: 1; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid #dcdfe5; background: #fff; color: #17191d; }
.msg__by { font-size: 11px; color: #8a8f99; align-self: center; padding: 0 4px; }
