/* Tâm An — giao diện. Phông Be Vietnam Pro (SIL OFL 1.1) tự lưu trữ. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/be-vietnam-pro-vietnamese-400-italic.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/be-vietnam-pro-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --line: #dbe2dc;
  --text: #1c2624;
  --muted: #5a6a65;
  --primary: #2b6b60;
  --primary-ink: #ffffff;
  --primary-soft: #e1eeea;
  --accent: #9a5b22;
  --accent-soft: #f6ece2;
  --danger: #a8321f;
  --danger-soft: #fbe9e5;
  --focus: #3b8f81;
  --shadow: 0 1px 2px rgba(20, 40, 35, .06), 0 6px 24px rgba(20, 40, 35, .06);
  --radius: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #161e1b; --surface-2: #1c2622; --line: #2a3632; --text: #e6eeeb; --muted: #9aaea7;
    --primary: #6cbfae; --primary-ink: #0b1a17; --primary-soft: #1c302b; --accent: #e0a46a; --accent-soft: #2e241b;
    --danger: #f08a76; --danger-soft: #34201c; --focus: #8fd3c4; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #161e1b; --surface-2: #1c2622; --line: #2a3632; --text: #e6eeeb; --muted: #9aaea7;
  --primary: #6cbfae; --primary-ink: #0b1a17; --primary-soft: #1c302b; --accent: #e0a46a; --accent-soft: #2e241b;
  --danger: #f08a76; --danger-soft: #34201c; --focus: #8fd3c4; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
  color-scheme: dark;
}
:root[data-size="large"] { --fs: 18px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
svg.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- khung ---------- */
.app { display: flex; flex-direction: column; min-height: 100%; }
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.2; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: .93rem;
}
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav a:hover { color: var(--text); }
.help-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--danger); color: var(--danger);
  background: var(--danger-soft); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .88rem; cursor: pointer;
}
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.view { padding: 20px 0 32px; }

/* ---------- thẻ chung ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); padding: 9px 14px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--text);
}
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; font-size: .9rem; cursor: pointer; color: var(--text); text-decoration: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.badge { display: inline-block; font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.muted { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field small { color: var(--muted); }
input[type=text], input[type=search], input[type=password], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px;
}
textarea { resize: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- trò chuyện ---------- */
.chat { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100dvh - 64px); }
.chat-bar { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; }
.chat-bar .title { margin-right: auto; font-weight: 600; color: var(--muted); font-size: .92rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 12px 0 18px; }
.msg { display: flex; flex-direction: column; max-width: 92%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble { border-radius: 18px; padding: 12px 16px; overflow-wrap: anywhere; }
.msg.user .bubble { background: var(--primary-soft); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.bubble p { margin: 0 0 .7em; } .bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: .2em 0 .7em; padding-left: 1.3em; }
.bubble blockquote { margin: .5em 0; padding: .3em .9em; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.msg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.msg-foot .chip { padding: 3px 10px; font-size: .8rem; }
.msg-foot .chip.src { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-actions { display: flex; gap: 2px; }
.msg-actions .btn { padding: 4px 8px; font-size: .8rem; }
.thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin: 0 2px; animation: blink 1.2s infinite both; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.err { color: var(--danger); background: var(--danger-soft); border-radius: 12px; padding: 10px 14px; font-size: .93rem; }

.welcome { text-align: center; padding: 24px 8px 8px; }
.welcome h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.25; margin: 10px 0 8px; font-weight: 700; }
.welcome p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.welcome img { width: 64px; height: 64px; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto; max-width: 680px; }

.composer-wrap { position: sticky; bottom: 0; padding: 10px 0 14px; background: linear-gradient(to top, var(--bg) 75%, transparent); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 18px; }
.composer textarea { border: none; background: transparent; padding: 9px 8px; max-height: 40vh; min-height: 42px; line-height: 1.5; }
.composer textarea:focus-visible { outline: none; }
.composer:focus-within { border-color: var(--focus); }
.mic.on { background: var(--danger); color: #fff; border-color: var(--danger); }
.hint { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; }

.voice-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 6px; }
.voice-orb {
  width: 112px; height: 112px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--primary) 60%, #fff), var(--primary));
  color: var(--primary-ink); box-shadow: 0 10px 40px color-mix(in srgb, var(--primary) 35%, transparent);
}
.voice-orb svg.i { width: 40px; height: 40px; }
.voice-orb.listening { animation: pulse 1.4s infinite; background: radial-gradient(circle at 35% 30%, #f4a291, var(--danger)); }
.voice-orb.speaking { animation: breathe 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(168, 50, 31, .45); } 70% { box-shadow: 0 0 0 22px rgba(168, 50, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 50, 31, 0); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
.voice-status { color: var(--muted); min-height: 1.6em; text-align: center; }

.crisis {
  border: 1px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: 14px 16px;
}
.crisis h2 { margin: 0 0 6px; font-size: 1.02rem; color: var(--danger); }
.crisis ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.crisis li a { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); }
.crisis li small { display: block; color: var(--muted); }

/* ---------- lớp phủ ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 18, .45); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(560px, 100%); max-height: 90dvh; overflow: auto; padding: 22px; }
.dialog h2 { margin: 0 0 8px; font-size: 1.25rem; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); z-index: 60; background: var(--surface); border-right: 1px solid var(--line);
  padding: 16px; overflow: auto; box-shadow: var(--shadow); }
.conv-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; }
.conv-list button { width: 100%; text-align: left; border: none; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.conv-list button:hover, .conv-list button[aria-current="true"] { background: var(--surface-2); }
.conv-list small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- thư viện ---------- */
.lib-head { display: grid; gap: 12px; margin-bottom: 18px; }
.lib-head h1 { margin: 0; font-size: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kcard { padding: 14px 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.kcard:hover { border-color: var(--primary); }
.kcard h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.kcard p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dom-tam-ly-hien-dai { --d: #2b6b60; } .dom-tri-lieu-ky-nang { --d: #3a6ea5; } .dom-tam-ly-giao-duc { --d: #7a5cb8; }
.dom-triet-phuong-tay { --d: #9a5b22; } .dom-triet-phuong-dong { --d: #b0413e; } .dom-tich-hop { --d: #4f7a28; } .dom-an-toan { --d: #a8321f; }
.dtag { font-size: .74rem; font-weight: 600; color: var(--d); background: color-mix(in srgb, var(--d) 12%, transparent); padding: 2px 8px; border-radius: 999px; }
.detail { max-width: 760px; margin: 0 auto; padding: 22px; }
.detail h1 { font-size: 1.5rem; line-height: 1.3; margin: 8px 0; }
.detail h2 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--primary); }
.detail .core { font-size: 1.06rem; background: var(--primary-soft); border-radius: 12px; padding: 12px 14px; }
.detail ul, .detail ol { padding-left: 1.3em; }
.detail blockquote { margin: .5em 0; padding: .4em 1em; border-left: 3px solid var(--accent); font-style: italic; color: var(--muted); }

/* ---------- trang chữ ---------- */
.page { max-width: 760px; margin: 0 auto; }
.page h1 { font-size: 1.6rem; margin: 6px 0 12px; }
.page h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.page section.card { padding: 18px 20px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.stat b { display: block; font-size: 1.4rem; }

/* ---------- đăng nhập & bảo mật ---------- */
.composer-wrap.gate { position: static; background: none; padding-top: 0; }
.auth { width: min(560px, 100%); margin: 4px auto 0; padding: 22px; }
.auth h2 { margin: 0 0 12px; font-size: 1.22rem; }
.auth .check label b { font-weight: 600; }
.check label small.block { display: block; font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn.passkey, .btn.wide { width: 100%; }
.btn.wide { margin-bottom: 10px; }
.steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 4px; }
.qr-wrap { display: grid; place-items: center; margin: 4px 0 14px; }
svg.qr { width: min(232px, 70vw); height: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
details.manual { margin: 0 0 14px; }
details.manual summary { cursor: pointer; color: var(--primary); font-weight: 500; }
.secret { display: block; font-size: 1rem; letter-spacing: .06em; overflow-wrap: anywhere; background: var(--surface-2);
  border-radius: 10px; padding: 8px 12px; margin: 6px 0; user-select: all; }
input.otp { font-size: 1.45rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 240px; }
.small { font-size: .85rem; }
.ok { color: var(--primary); background: var(--primary-soft); border-radius: 12px; padding: 10px 14px; font-size: .93rem; }
.sec h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 20px 0 6px; }
.sec h3:first-of-type { margin-top: 14px; }
.sec-list { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.sec-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.sec-list li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sec-list small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sec-list .btn { padding: 6px 10px; flex: none; }

@media (max-width: 720px) {
  .brand small { display: none; }
  .nav a span { display: none; }
  .nav a { padding: 8px 10px; }
  .help-btn span { display: none; }
  .msg { max-width: 100%; }
  .detail { padding: 16px; }
  .auth { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
