/* ===== Tuấn Hàn Quốc — base styles (reading-first, editorial) ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --fg: #1d2733;
  --fg-soft: #5a6675;
  --line: #e6e9ee;
  --brand: #185FA5;        /* xanh tin cậy */
  --brand-soft: #E6F1FB;
  --brand-ink: #0C447C;
  --navy: #0C2E52;         /* nền hero/cta */
  --navy-2: #185FA5;
  --accent: #D85A30;       /* đỏ/cam Hàn Quốc */
  --accent-soft: #FAECE7;
  --accent-ink: #4A1B0C;
  --maxw: 720px;
  --radius: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161d; --bg-soft: #1a212b; --fg: #e8edf3; --fg-soft: #9aa7b6;
    --line: #2a3340; --brand: #5ea0ec; --brand-soft: #18283d; --brand-ink: #B5D4F4;
  }
}
:root[data-theme="dark"] {
  --bg: #11161d; --bg-soft: #1a212b; --fg: #e8edf3; --fg-soft: #9aa7b6;
  --line: #2a3340; --brand: #5ea0ec; --brand-soft: #18283d; --brand-ink: #B5D4F4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
.ti { font-size: 1em; line-height: 1; vertical-align: -2px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.reading { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section-label { font-size: 12px; letter-spacing: .14em; color: var(--fg-soft); margin: 0 0 14px; text-transform: uppercase; }
.section-label.accent { color: var(--accent); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 2px solid var(--navy-2);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-ava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.brand-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-ava .ini { display: none; color: #fff; font-family: var(--font-serif); font-size: 20px; }
.brand-ava.noimg .ini { display: block; }
.brand b { font-size: 19px; font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
.brand small { color: var(--accent); font-size: 11px; letter-spacing: 0.14em; }
.nav { display: flex; gap: 7px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--fg-soft); font-size: 13.5px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; line-height: 1; transition: color .15s, background .15s, border-color .15s; }
.nav a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.nav a.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.nav .btn-nav { background: var(--navy-2); color: #fff; border-color: var(--navy-2); padding: 6px 14px; }
.nav .btn-nav:hover { opacity: .92; color: #fff; border-color: var(--navy-2); text-decoration: none; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer; color: var(--fg-soft); font-size: 15px; }
/* Hamburger menu (chỉ hiện ở mobile) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 38px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; color: var(--fg); font-size: 21px; background: none; }
.nav-toggle .ic-close { display: none; }
@media (max-width: 820px) {
  .site-header .container { gap: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; margin-left: 0; padding: 12px 18px 16px; background: var(--bg); border-bottom: 2px solid var(--navy-2); box-shadow: 0 14px 26px rgba(0,0,0,.10); }
  .nav-cb:checked ~ .nav { display: flex; }
  .nav-cb:checked ~ .nav-toggle .ic-open { display: none; }
  .nav-cb:checked ~ .nav-toggle .ic-close { display: inline; }
  .nav a { width: 100%; text-align: left; padding: 11px 14px; font-size: 15px; border-radius: 10px; }
  .nav .btn-nav { text-align: center; }
  .theme-toggle { align-self: flex-start; margin-top: 4px; }
}

#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }

/* hero (navy) */
.hero-navy { background: var(--navy); }
.hero-navy .wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; }
.hero-navy .copy { padding: 44px 26px 40px; }
.hero-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .06em; color: var(--navy); background: #F0997B; padding: 4px 11px; border-radius: var(--radius); margin-bottom: 16px; }
.hero-navy h1 { font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 40px); line-height: 1.14; color: #fff; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero-navy p { font-size: 16px; line-height: 1.6; color: #B5D4F4; max-width: 520px; margin: 0 0 22px; }
.hero-navy .art { display: block; }
.hero-navy .art svg { width: 100%; height: 100%; display: block; }
.hero-slides { position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; font-size: 15px; }
.btn:hover { text-decoration: none; opacity: .93; }
.btn.ghost { background: transparent; color: #E6F1FB; border: 1px solid #5EA0EC; }
.btn.blue { background: var(--navy-2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-navy .wrap { grid-template-columns: 1fr; } .hero-navy .art { min-height: 160px; } .hero-slides { min-height: 280px; } }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.trust .item { background: var(--bg); padding: 16px 20px; display: flex; gap: 12px; align-items: center; }
.trust .item .ti { font-size: 22px; }
.trust .num { font-family: var(--font-serif); font-size: 19px; }
.trust .cap { font-size: 12px; color: var(--fg-soft); }

/* featured */
.featured { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.featured .cover, .featured svg { width: 100%; height: 150px; object-fit: cover; display: block; }
.featured .body { padding: 16px 18px 18px; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
.card a { color: inherit; }
.card .cover { aspect-ratio: 16/9; background: var(--bg-soft); object-fit: cover; width: 100%; display: block; }
.card .body { padding: 15px 17px 18px; }
.card .cat { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 18px; margin: 7px 0; line-height: 1.3; font-family: var(--font-serif); font-weight: 600; }
.card .meta { color: var(--fg-soft); font-size: 13px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); margin-left: 6px; }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cat-tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); display: block; color: inherit; }
.cat-tile:hover { text-decoration: none; border-color: var(--brand); }
.cat-tile .ic { display: inline-flex; width: 36px; height: 36px; border-radius: 9px; align-items: center; justify-content: center; font-size: 20px; }
.cat-tile .nm { font-size: 14px; font-weight: 600; margin-top: 10px; }
.cat-tile .ds { font-size: 12px; color: var(--fg-soft); margin-top: 3px; }

/* lead magnet */
.lead-magnet { border: 1px solid #F0997B; background: var(--accent-soft); border-radius: 12px; padding: 22px; }
.lead-magnet h3 { font-family: var(--font-serif); font-size: 19px; color: var(--accent-ink); margin: 0 0 6px; display: flex; gap: 9px; align-items: center; }
.lead-magnet p { font-size: 14px; color: #712B13; margin: 0 0 14px; }
.lead-magnet form { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-magnet input { flex: 1; min-width: 200px; padding: 11px 13px; border: 1px solid #E0A98E; border-radius: var(--radius); font-size: 15px; font-family: inherit; background: #fff; color: #4A1B0C; }

/* brands */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.brand-tile { border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 12px 12px; padding: 16px; text-align: center; background: var(--bg); }
.brand-tile .ti { font-size: 20px; }
.brand-tile .nm { font-size: 14px; font-weight: 600; margin-top: 6px; }
.brand-tile .ds { font-size: 11px; color: var(--fg-soft); }

/* cta navy */
.cta { background: var(--navy); border-radius: 12px; padding: 28px; text-align: center; }
.cta h3 { margin: 0 0 8px; font-size: 21px; font-family: var(--font-serif); color: #fff; }
.cta p { margin: 0 0 16px; color: #B5D4F4; font-size: 14px; }

/* article */
.article-head { padding: 40px 0 14px; }
.crumb { font-size: 12px; color: var(--fg-soft); }
.article-head .cat { color: var(--accent-ink); background: var(--accent-soft); display: inline-block; padding: 3px 10px; border-radius: var(--radius); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 10px 0 0; }
.article-head h1 { font-family: var(--font-serif); font-size: clamp(27px, 4.2vw, 40px); line-height: 1.16; margin: 12px 0; letter-spacing: -0.02em; }
.article-head .meta { color: var(--fg-soft); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.article-cover { width: 100%; border-radius: 12px; margin: 18px 0 8px; }

.article-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.article-main { min-width: 0; }
.article-main .prose { max-width: 720px; }
.layout-with-toc { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 1080px) { .layout-with-toc { grid-template-columns: minmax(0, 1fr) 200px; } }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc strong { display: block; color: var(--fg-soft); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-bottom: 10px; }
.toc a { display: block; color: var(--fg-soft); padding: 4px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a.lvl-3 { padding-left: 24px; }
.toc a.active { color: var(--brand); border-color: var(--brand); }
@media (max-width: 1079px) { .toc { display: none; } }

/* prose */
.prose { font-size: 18px; line-height: 1.75; }
.prose a { color: var(--brand); text-decoration: none; font-weight: 500; }
.prose a:hover { color: var(--brand-ink); }
.article-main .prose > p:first-of-type::first-letter { font-family: var(--font-serif); font-size: 3.4em; float: left; line-height: .8; padding: 4px 9px 0 0; color: var(--accent); font-weight: 600; }
.prose h2 { font-family: var(--font-serif); font-size: 26px; margin: 38px 0 12px; line-height: 1.25; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote { position: relative; margin: 30px 0; padding: 8px 0 8px 26px; border-left: 3px solid var(--accent); font-family: var(--font-serif); font-size: 21px; line-height: 1.45; color: var(--navy); }
.prose blockquote::before { content: "\201C"; position: absolute; left: 8px; top: -6px; font-family: var(--font-serif); font-size: 46px; line-height: 1; color: var(--accent); opacity: .28; pointer-events: none; }
.prose blockquote p { margin-bottom: 8px; }
.prose blockquote p:last-child { margin-bottom: 0; }
:root[data-theme="dark"] .prose blockquote, .prose blockquote { color: var(--fg); }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose pre { background: var(--bg-soft); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* author + share + hoi-tuan + related */
.author-box { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 34px 0 14px; }
.author-box .av { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 18px; flex-shrink: 0; }
.author-box img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author-box .name { font-weight: 600; }
.author-box .bio { color: var(--fg-soft); font-size: 14px; }

.share { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.share a, .share button { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font-size: 14px; cursor: pointer; background: var(--bg); color: var(--fg-soft); display: inline-flex; gap: 6px; align-items: center; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.hoi-tuan { display: flex; gap: 12px; align-items: center; border: 1px solid #F0997B; background: var(--accent-soft); border-radius: 12px; padding: 15px 16px; margin: 14px 0 16px; }
.hoi-tuan .ti { font-size: 24px; color: var(--accent); }
.hoi-tuan .t { font-weight: 600; color: var(--accent-ink); font-size: 14px; }
.hoi-tuan .s { font-size: 12px; color: #712B13; }
.hoi-tuan .btn { white-space: nowrap; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.chip { background: var(--brand-soft); color: var(--brand-ink); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.chip:hover { text-decoration: none; opacity: .85; }
.related > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-soft); margin: 44px 0 16px; }

/* timeline (about) */
.timeline .row { display: flex; gap: 14px; }
.timeline .dot { display: flex; flex-direction: column; align-items: center; }
.timeline .dot span.d { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .dot span.l { flex: 1; width: 2px; background: var(--line); }
.timeline .yr { font-size: 13px; font-weight: 600; color: var(--accent); }
.timeline .tx { font-size: 15px; color: var(--fg-soft); padding-bottom: 18px; }

/* forms */
.form-grid { display: grid; gap: 14px; max-width: 560px; }
.form-grid label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font-size: 15px; font-family: inherit;
}
.form-grid textarea { min-height: 120px; resize: vertical; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0; color: var(--fg-soft); font-size: 14px; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--fg-soft); }
.site-footer a:hover { color: var(--brand); }

/* sections spacing */
.block { margin: 44px 0; }
.block-tight { margin: 28px 0; }

/* ===== Hỏi Tuấn — AI chat UI ===== */
.chat-app { display: grid; grid-template-columns: 210px 1fr; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 66px); min-height: 520px; border-top: 1px solid var(--line); }
.chat-side { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.chat-persona { display: flex; gap: 9px; align-items: center; }
.chat-persona .av { position: relative; }
.chat-persona .av b { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 17px; }
.chat-persona .av i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #1D9E75; border: 2px solid var(--bg-soft); }
.chat-persona .nm { font-size: 14px; font-weight: 600; }
.chat-persona .sb { font-size: 11px; color: var(--fg-soft); }
.grp-label { font-size: 11px; letter-spacing: .05em; color: var(--fg-soft); margin-bottom: 7px; }
.topic { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 8px; color: var(--fg-soft); cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.topic:hover { background: var(--bg); }
.topic.active { background: var(--brand-soft); color: var(--brand-ink); }
.topic .tag { font-size: 9px; background: #FAEEDA; color: #854F0B; padding: 1px 5px; border-radius: 5px; margin-left: auto; }
.suggest { font-size: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; color: var(--fg-soft); line-height: 1.35; cursor: pointer; background: var(--bg); text-align: left; width: 100%; }
.suggest:hover { border-color: var(--brand); color: var(--brand); }
.quota-card { margin-top: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; }
.quota-card .top { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-soft); margin-bottom: 6px; }
.quota-bar { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.quota-bar span { display: block; height: 5px; background: var(--accent); width: 0; }
.quota-card .priv { font-size: 10px; color: var(--fg-soft); margin-top: 7px; display: flex; gap: 5px; align-items: center; }

.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-head .ti.lead { color: var(--brand); font-size: 17px; }
.chat-head .ttl { font-size: 14px; font-weight: 600; }
.chat-head .grounded { font-size: 11px; background: #E1F5EE; color: #0F6E56; padding: 3px 9px; border-radius: 99px; display: inline-flex; gap: 5px; align-items: center; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 13px; }
.m-row { display: flex; gap: 9px; }
.m-row.user { justify-content: flex-end; }
.m-av { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.bubble { max-width: 80%; font-size: 14px; line-height: 1.6; padding: 10px 13px; }
.bubble.bot { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; }
.bubble.user { background: var(--navy-2); color: #fff; border-radius: 12px 4px 12px 12px; }
.cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.cite { font-size: 11px; background: var(--brand-soft); color: var(--brand-ink); padding: 4px 9px; border-radius: 99px; display: inline-flex; gap: 5px; align-items: center; }
.cite:hover { text-decoration: none; opacity: .85; }
.read-full { margin-top: 6px; font-size: 11px; color: var(--brand); display: inline-flex; gap: 5px; align-items: center; }
.followups-label { margin-top: 9px; font-size: 11px; color: var(--fg-soft); }
.followups { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.followups .fu { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; color: var(--fg-soft); cursor: pointer; background: var(--bg); }
.followups .fu:hover { border-color: var(--brand); color: var(--brand); }
.count-divider { text-align: center; font-size: 11px; color: var(--fg-soft); display: flex; align-items: center; gap: 8px; }
.count-divider span.l { flex: 1; height: 1px; background: var(--line); }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--fg-soft); animation: blink 1.2s infinite; }
.typing span:nth-child(2){animation-delay:.2s} .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }
.convert { border: 1px solid #F0997B; background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.convert h4 { font-family: var(--font-serif); font-size: 15px; color: var(--accent-ink); margin: 0 0 6px; display: flex; gap: 9px; align-items: center; }
.convert p { font-size: 12px; color: #712B13; line-height: 1.55; margin: 0 0 11px; }
.convert .two { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 7px; }
.convert input { width: 100%; padding: 9px 11px; border: 1px solid #E0A98E; border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: #4A1B0C; margin-bottom: 8px; }
.convert .two input { margin: 0; }
.chat-input-bar { padding: 11px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.chat-input-bar .row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input-bar textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; font-family: inherit; background: var(--bg); color: var(--fg); }
.chat-send { width: 40px; height: 40px; border-radius: var(--radius); background: var(--navy-2); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--fg-soft); }
.chat-disclosure { display: flex; gap: 8px; align-items: center; padding: 9px 16px; background: #FAEEDA; color: #854F0B; font-size: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .chat-app { grid-template-columns: 1fr; height: auto; } .chat-side { flex-direction: row; flex-wrap: wrap; overflow-x: auto; } .messages { min-height: 360px; } }

/* floating launcher */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 17px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.fab:hover { text-decoration: none; opacity: .94; }
.fab .ti { font-size: 18px; }
@media (max-width: 520px) { .fab span.lbl { display: none; } .fab { padding: 13px; } }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.admin-table th { background: var(--bg-soft); }
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); margin: 16px 0; }
.notice.ok { background: #e6f7ee; color: #137a44; }
