/* site.css — burgundy, white, and light gold. Company site, not a game canvas. */
:root {
  --wine: #6e1e2f;
  --wine-deep: #4c1420;
  --gold: #c4a574;
  --paper: #f7f3ee;
  --ink: #24181b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  /* System stacks that carry full Vietnamese diacritics; Palatino/Iowan do not on many devices. */
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.bar, .foot {
  background: var(--wine);
  color: #fff;
  padding: 1rem 1.5rem;
}
.bar { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.brand { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
nav a, .foot a { color: #fff; margin-right: 1rem; }
main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
main > p, main > h2, main > ul:not(.grid):not(.strip):not(.gallery), main > form, main > section > p { max-width: 46rem; }
h1 { font-size: 2.2rem; line-height: 1.2; color: var(--wine-deep); }
.lead { font-size: 1.2rem; }
.cards { list-style: none; padding: 0; }
.cards li { border-top: 1px solid var(--gold); padding: 0.8rem 0; }
.button, button {
  background: var(--wine);
  color: #fff;
  border: 0;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  display: inline-block;
}
form.inbox { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
input, textarea { width: 100%; font: inherit; padding: 0.5rem; border: 1px solid var(--gold); }
.langs a[aria-current="true"] { color: var(--gold); }
/* Work gallery: cover on the card, photo grid on the case page. */
.cards img, .gallery img { display: block; width: 100%; height: auto; }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
/* Per-script fallbacks so each locale gets a font that has its glyphs. */
html:lang(zh-Hans) body { font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html:lang(zh-Hant) body { font-family: system-ui, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif; }
html:lang(ja) body { font-family: system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
html:lang(hi) body { font-family: system-ui, "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", Mangal, sans-serif; line-height: 1.8; }
/* Layout v2: header, hero, card grids, strips, gallery, lightbox, footer sitemap. */
.bar { position: sticky; top: 0; z-index: 10; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; }
nav a[aria-current="page"] { color: var(--gold); }
.nav-cta { border: 1px solid var(--gold); padding: 0.3rem 0.7rem; }
section { margin: 3rem 0; }
.hero { margin: -2rem -1.25rem 3rem; min-height: 70vh; display: flex; align-items: flex-end; background: var(--wine-deep) center/cover no-repeat; color: #fff; }
.hero-inner { width: 100%; padding: 4rem 1.5rem 3rem; background: linear-gradient(transparent, rgba(40, 10, 18, 0.88) 45%); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 40rem; }
.hero .lead { max-width: 42rem; }
.hero .logo { height: 110px; width: auto; }
.eyebrow { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.button.ghost { background: transparent; border: 1px solid var(--gold); color: inherit; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { display: block; color: inherit; text-decoration: none; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); height: 100%; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card a:hover img { opacity: .9; }
.card-body { display: block; padding: 0.7rem 0.9rem 0.9rem; }
.card-body strong { display: block; color: var(--wine-deep); }
.meta { display: block; font-size: 0.85rem; color: #6b5a5e; }
.panel { background: #fff; padding: 1rem 1.1rem; border-top: 3px solid var(--gold); }
.panel ul { padding-left: 1.1rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.ticks { list-style: none; padding: 0; }
.ticks li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.cta { background: var(--wine); color: #fff; padding: 2.5rem 1.5rem; }
.cta h2 { color: var(--gold); }
.strip { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.strip img, .gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.service-block { border-top: 1px solid var(--gold); padding-top: 1rem; }
.tag { background: var(--gold); color: var(--wine-deep); padding: 0.1rem 0.5rem; font-size: 0.8rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: none; }
.filters button { background: #fff; color: var(--wine); border: 1px solid var(--wine); padding: 0.4rem 0.8rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.card[hidden] { display: none; }
.columns { columns: 16rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lightbox img { max-width: 94vw; max-height: 86vh; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; }
.lightbox .prev, .lightbox .next { top: 50%; right: auto; }
.lightbox .next { right: 1rem; }
.lightbox .prev { left: 1rem; }
.lightbox[hidden] { display: none; }
/* Chat widget: floating launcher bottom-right, popup panel, icon picker. Orange and black as the logo. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #1a1a1a; border: 2px solid #e8711a; padding: 0; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: pointer; }
.chat-launcher:focus-visible, .chat-panel button:focus-visible, .chat-panel input:focus-visible { outline: 3px solid #e8711a; outline-offset: 2px; }
.chat-panel { position: fixed; right: 18px; bottom: 90px; z-index: 41; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border: 1px solid #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 16px; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .6rem; background: #1a1a1a; color: #fff; padding: .6rem .8rem; }
.chat-head strong { flex: 1; color: #e8711a; }
.chat-close { background: transparent; color: #fff; font-size: 1.5rem; padding: 0 .4rem; }
.chat-log { flex: 1; overflow-y: auto; padding: .8rem; background: #faf6f2; }
.msg { margin: 0 0 .6rem; padding: .5rem .7rem; max-width: 85%; line-height: 1.45; }
.msg.bot { background: #fff; border-left: 3px solid #e8711a; }
.msg.user { background: #1a1a1a; color: #fff; margin-left: auto; }
.msg a { color: #e8711a; }
.ico-wrap .ico { vertical-align: -4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem .6rem; border-top: 1px solid #eee; }
.chat-quick button { background: #fff; color: #1a1a1a; border: 1px solid #e8711a; padding: .25rem .6rem; font-size: .85rem; border-radius: 1rem; }
.chat-icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: .4rem; border-top: 1px solid #eee; }
.chat-icons[hidden] { display: none; }
.chat-icons button { background: transparent; padding: .3rem; }
.chat-icons button:hover { background: #fdebdc; }
.chat-form { display: flex; gap: .3rem; padding: .5rem; border-top: 1px solid #ddd; margin: 0; }
.chat-form input { flex: 1; border: 1px solid #1a1a1a; }
.chat-icon-toggle { background: transparent; padding: .2rem; }
.chat-send { background: #e8711a; color: #1a1a1a; font-weight: 700; }
@media (max-width: 480px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; border: 0; } }
/* Work timeline */
.tl-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; margin: 1rem 0; padding: .8rem; background: #fff; border: 1px solid #ddd; }
.tl-tools[hidden] { display: none; }
.tl-tools label { display: flex; flex-direction: column; font-size: .85rem; gap: .2rem; }
.tl-tools input, .tl-tools select { font: inherit; padding: .35rem .5rem; min-width: 10rem; }
.tl-count { font-size: .85rem; }
.tl-none { flex-basis: 100%; margin: 0; }
.tl-year > h2 { border-bottom: 2px solid var(--gold); padding-bottom: .2rem; }
.card time, .card .undated, .meta time { font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.journal-list { padding-left: 1.2rem; }
/* Sign-in and account */
.nav-login { background: transparent; color: inherit; border: 1px solid var(--gold); padding: .3rem .8rem; font: inherit; cursor: pointer; }
.nav-login[hidden] { display: none; }
.login-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 1rem; }
.login-backdrop[hidden] { display: none; }
.login-modal { background: #fff; color: #1a1a1a; width: min(420px, 100%); padding: 1rem 1.2rem; border-top: 4px solid #e8711a; }
.login-modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.login-close { background: transparent; font-size: 1.5rem; color: #1a1a1a; }
.login-providers { display: grid; gap: .5rem; }
.login-provider { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid #1a1a1a; color: #1a1a1a; text-decoration: none; font-weight: 600; }
.login-provider:hover, .login-provider:focus-visible { background: #fdebdc; }
.account .panel { margin: 1rem 0; }
.account .avatar { border-radius: 50%; }
.account .check { display: block; margin: .8rem 0; }
.account button.danger { background: #8b1a1a; color: #fff; }
.account button.ghost, .account .ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.form-notice { padding: .6rem .8rem; background: #fdebdc; border-left: 4px solid #e8711a; }
.form-notice[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Work gallery by activity (customer deck 2026-10-29). */
.gal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1.2rem; position: sticky; top: 0; z-index: 5; background: inherit; padding: .4rem 0; }
.gal-tabs a { border: 1px solid #E8711A; border-radius: 999px; padding: .3rem .8rem; text-decoration: none; color: inherit; font-size: .92rem; background: #fff; }
.gal-tabs a[aria-current="true"] { background: #E8711A; color: #fff; }
.gal-tabs .n { font-weight: 600; opacity: .8; }
.gal-cat.off { display: none; }
.gal-cat h3 { margin: 1.6rem 0 .6rem; }
.gal .gallery li { position: relative; }
.gal .cap { display: block; font-size: .82rem; color: #555; padding: .25rem .1rem 0; }
.lightbox .lb-cap { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #fff; margin: 0; }
.gal-tabs .nc { font-size: .8rem; opacity: .75; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.mini a { display: block; text-decoration: none; color: inherit; font-size: .85rem; }
.grid.mini img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; }
/* Client request portal (only rendered for role client; code served by /api/client/app.js). */
.rq-bubble { position: fixed; left: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #0F6E6E; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; z-index: 60; display: flex; align-items: center; justify-content: center; }
.rq-panel { position: fixed; left: 18px; bottom: 86px; width: min(380px, calc(100vw - 36px)); max-height: 75vh; overflow: auto; background: #fff; color: #1a1a1a; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 0 1rem 1rem; z-index: 60; border-top: 5px solid #0F6E6E; }
.rq-panel header { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; }
.rq-x { background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
.rq-form label { display: block; margin: .4rem 0; font-size: .9rem; }
.rq-form input, .rq-form textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; }
.rq-form button, .rq-approve { background: #0F6E6E; color: #fff; border: 0; border-radius: 6px; padding: .5rem 1rem; cursor: pointer; }
.rq-st { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: #eee; }
.rq-new { background: #dbeafe; } .rq-in-progress { background: #fef3c7; } .rq-waiting-approval { background: #fde2e2; } .rq-pending-approval { background: #ede9fe; } .rq-need-review { background: #ffedd5; } .rq-done { background: #dcfce7; } .rq-blocked { background: #e5e5e5; }
.rq-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.rq-filters a { border: 1px solid #0F6E6E; border-radius: 999px; padding: .2rem .7rem; text-decoration: none; }
.rq-filters a[aria-current="true"] { background: #0F6E6E; color: #fff; }
.rq-thread { list-style: none; padding: 0; } .rq-thread > li { border-left: 4px solid #0F6E6E; padding: .3rem .8rem; margin: .6rem 0; background: #fff; }
.rq-thread > li.rq-operator { border-color: #E8711A; }
.rq-thread p { white-space: pre-wrap; margin: .2rem 0; }
.rq-note { background: #fff7ed; padding: .6rem; border-radius: 6px; }
.rq-login label { display: block; margin: .4rem 0; } .rq-login input { display: block; font: inherit; padding: .4rem; }
.rq-received { background: #e0e7ff; } .rq-needs-info { background: #ffedd5; }
.rq-tabs { display: flex; gap: .5rem; margin: 0 0 1rem; } .rq-tabs button { border: 1px solid #0F6E6E; background: #fff; color: #0F6E6E; border-radius: 999px; padding: .3rem .9rem; cursor: pointer; } .rq-tabs button[aria-pressed="true"] { background: #0F6E6E; color: #fff; }
.rq-code { font-family: ui-monospace, monospace; font-weight: 600; }
.rq-zip { margin: .2rem 0 .4rem 1rem; font-size: .88rem; } .rq-zip summary { cursor: pointer; }
.dv-crumbs a { margin-right: .3rem; } .dv-list { list-style: none; padding: 0; } .dv-list li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #eee; } .dv-list li > :first-child { flex: 1; } .dv-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; align-items: end; }
.rq-google { margin: .6rem 0; width: 100%; background: #fff; font: inherit; font-weight: 600; cursor: pointer; } .rq-google:disabled { opacity: .55; cursor: not-allowed; } .rq-or { text-align: center; margin: .3rem 0; }
/* Contrast fixes: nav-link white color must not apply inside the portal. */
.rq-filters a { color: #0F6E6E; background: #fff; margin-right: 0; }
.rq-filters a[aria-current="true"] { color: #fff; background: #0F6E6E; }
.dv-crumbs a { color: #0F6E6E; font-weight: 600; text-decoration: underline; }
.rq-tabs { flex-wrap: wrap; }
/* Help page (admin guide) */
.hd-guide { max-width: 820px; line-height: 1.65; font-size: 1.02rem; color: #1a1a1a; }
.hd-guide h2 { color: #6d1d32; font-size: 1.7rem; margin: .4rem 0 .6rem; } .hd-guide h3 { color: #6d1d32; margin-top: 2rem; border-top: 1px solid #e5dccb; padding-top: 1rem; } .hd-guide h4 { color: #0F6E6E; margin: 1.3rem 0 .4rem; }
.hd-guide hr { display: none; } .hd-guide a { color: #0F6E6E; word-break: break-word; }
.hd-guide blockquote { border-left: 4px solid #F2B233; background: #fff7e6; margin: 1rem 0; padding: .6rem 1rem; }
.hd-guide code { background: #f3ece0; padding: 0 .3rem; border-radius: 3px; }
.hd-guide figure { margin: 1rem 0; } .hd-guide figure img { max-width: 100%; height: auto; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); } .hd-guide figcaption { font-size: .85rem; color: #666; text-align: center; }
.hd-table { overflow-x: auto; margin: .8rem 0; } .hd-guide table { border-collapse: collapse; width: 100%; min-width: 460px; background: #fff; } .hd-guide th, .hd-guide td { border: 1px solid #d8cbb5; padding: .45rem .6rem; vertical-align: top; text-align: left; } .hd-guide th { background: #f3ece0; }
@media (max-width: 600px) { .hd-guide { font-size: 1rem; } .hd-guide h2 { font-size: 1.4rem; } }

/* Responsive header (2026-10-30): nav wraps; on phones a hamburger collapses it. Nothing may exceed the viewport. */
html, body { overflow-x: clip; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; min-width: 0; }
nav a { margin-right: 0; }
main, .foot { overflow-wrap: anywhere; }
main img, main video, main iframe { max-width: 100%; height: auto; }
main table { display: block; max-width: 100%; overflow-x: auto; }
main pre { max-width: 100%; overflow-x: auto; }
h1 { overflow-wrap: anywhere; hyphens: auto; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--gold); padding: .45rem .5rem; width: 44px; height: 40px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; }
@media (max-width: 760px) {
  .bar { padding: .7rem 1rem; gap: .6rem; }
  .brand img { height: 32px; }
  h1 { font-size: 1.8rem; }
  .js .nav-toggle { display: flex; }
  .js .bar nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .3rem 0 .5rem; }
  .js .bar.nav-open nav { display: flex; }
  .js .bar nav > a, .js .bar nav > button { padding: .65rem .2rem; border-top: 1px solid rgba(255,255,255,.15); text-align: left; }
  .js .bar nav > .nav-cta, .js .bar nav > .nav-login { margin-top: .5rem; border: 1px solid var(--gold); text-align: center; }
}

/* Both bubbles stay: teal request bubble bottom-left, orange visitor chat bottom-right. Panel full-width on phones. */
@media (max-width: 480px) {
  .rq-panel, .lh-requester .rq-panel { left: 8px; right: 8px; width: auto; bottom: 82px; max-height: calc(100vh - 100px); }
  .rq-tabs button { padding: .45rem .8rem; }
  .rq-filters a { padding: .35rem .7rem; }
  .dv-list li { flex-wrap: wrap; } .dv-list li > :first-child { flex-basis: 100%; overflow-wrap: anywhere; }
  .dv-tools { flex-wrap: wrap; }
}
[data-requests] { overflow-wrap: anywhere; }
[data-requests] table { display: block; overflow-x: auto; max-width: 100%; }

.rq-progress ol, .rq-recent ul { list-style: none; padding: 0; margin: .3rem 0 1rem; }
.rq-progress li, .rq-recent li { border-left: 3px solid #0F6E6E; padding: .3rem .7rem; margin: .4rem 0; background: #f4fbfa; overflow-wrap: anywhere; }
.rq-progress li p, .rq-recent li p { margin: .2rem 0; }
.rq-recent h3, .rq-panel h3 { font-size: 1rem; margin: .6rem 0 .3rem; }

/* Bubble panel: title bar stays visible while the panel scrolls. */
.rq-panel header { position: sticky; top: 0; z-index: 2; background: #fff; margin: 0 -1rem; padding: .7rem 1rem; border-bottom: 1px solid #e6efee; }
.rq-panel header strong { overflow-wrap: anywhere; }
@media (max-width: 480px) { .rq-panel, .lh-requester .rq-panel { top: 12px; bottom: 84px; max-height: none; box-sizing: border-box; } }
.rq-panel { box-sizing: border-box; }

.rq-cbody { white-space: pre-line; }
.rq-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: .4rem 0; }
.rq-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid #cfe3e0; }
.rq-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 12px; }
.rq-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rq-lightbox button { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 1.8rem; width: 44px; height: 44px; border-radius: 50%; }

/* Phones (2026-10-30): chat panels fill the VISIBLE viewport (keyboard-aware via --vvh), header fixed, body scrolls;
   both round buttons hide while a panel is open. */
@media (max-width: 480px) {
  .chat-panel, .rq-panel, .lh-requester .rq-panel { position: fixed; left: 0; right: 0; top: 0; bottom: auto; width: 100vw; height: var(--vvh, 100dvh); max-height: none; margin: 0; border-radius: 0; border: 0; z-index: 150; }
  .rq-panel { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 1rem; }
  .chat-panel { display: flex; flex-direction: column; overflow: hidden; }
  .chat-panel[hidden], .rq-panel[hidden] { display: none; }
  .chat-panel .chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .chat-head, .chat-form { flex: 0 0 auto; }
  .chat-quick { flex: 0 1 auto; max-height: 28%; overflow-y: auto; }
  .lh-panel-open .chat-launcher, .lh-panel-open .rq-bubble { display: none !important; }
  .rq-panel header .rq-x, .chat-panel .chat-close { min-width: 44px; min-height: 44px; font-size: 1.6rem; }
}
.chat-panel, .rq-panel { margin: 0; }

.rq-by { margin: .15rem 0 0; font-size: .85rem; overflow-wrap: anywhere; }
.rq-list li { padding: .4rem 0; border-bottom: 1px solid #e6efee; }
/* Comments + stars under posts/cases; login-modal terms summary. */
.lh-comments { margin: 2.5rem 0; padding-top: 1rem; border-top: 1px solid #e4d9cc; }
.lh-cform { display: grid; gap: .5rem; max-width: 40rem; }
.lh-cform textarea { width: 100%; font: inherit; padding: .6rem; border: 1px solid #cdbfae; border-radius: 6px; }
.lh-cform button[type=submit] { justify-self: start; }
.lh-stars { display: flex; gap: .15rem; }
.lh-stars button { background: none; border: 0; color: var(--gold); font-size: 1.9rem; line-height: 1; padding: .1rem .2rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.lh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.lh-avg { color: var(--wine); font-weight: 600; }
.lh-clist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.lh-clist li { border-bottom: 1px solid #eee3d6; padding: .6rem 0; }
.lh-clist li.is-hidden { opacity: .55; }
.lh-cstars { color: var(--gold); }
.lh-cbody { margin: .2rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lh-ctools { display: flex; gap: .5rem; margin: .2rem 0; }
.login-terms { font-size: .85rem; line-height: 1.45; margin: .75rem 0 0; color: #4a3a3d; }
