/* ShieldCounsel — dark navy + gold, mobile-first */
:root {
  --navy: #0f1f3d;
  --navy-deep: #0a1630;
  --navy-card: #14274d;
  --gold: #c9a227;
  --gold-light: #e8cb63;
  --cream: #f4f1e6;
  --muted: #a9b3cc;
  --danger: #d66a6a;
  --gold-rgb: 201, 162, 39;
  --gold-light-rgb: 232, 203, 99;
  --ink-rgb: 244, 241, 230;
  --on-gold: #0a1630;
  --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--gold-light);
  line-height: 1.25;
}

a { color: var(--gold-light); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  /* App shell: keep the header below the status bar / notch (inset is 0 in browsers). */
  padding: calc(0.6rem + env(safe-area-inset-top, 0px)) 1rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a:hover { color: var(--gold-light); text-decoration: underline; }

#nav-auth { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  flex: 1;
}

.hero { text-align: center; padding: 1.5rem 0 2rem; }

.hero-logo {
  width: min(72vw, 300px);
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.25);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin: 1.2rem 0 0.4rem;
}

.verses { margin: 2rem 0; display: grid; gap: 1rem; }

.verse {
  background: var(--navy-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  text-align: left;
}

.verse blockquote {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.verse cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--on-gold);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:hover { background: var(--gold-light); }

.btn:disabled { opacity: 0.55; cursor: wait; }

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}

.btn-outline:hover { background: rgba(var(--gold-rgb), 0.15); }

.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  padding: 0.4rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--navy-card);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.card h3 { margin-top: 0; }

.card .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }

.card .actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* ---------- Forms ---------- */
form label { display: block; margin: 0.9rem 0 0.35rem; font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 8px;
  color: var(--cream);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: var(--sans);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.3);
}

textarea { min-height: 130px; resize: vertical; }

.form-hint { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

.status {
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
  display: none;
}

.status.show { display: block; }

.status.success { background: rgba(87, 166, 110, 0.18); border: 1px solid #57a66e; color: #c9ecd4; }

.status.error { background: rgba(214, 106, 106, 0.15); border: 1px solid var(--danger); color: #f3c9c9; }

.status.info { background: rgba(var(--gold-rgb), 0.12); border: 1px solid var(--gold); color: var(--gold-light); }

/* ---------- Auth tabs ---------- */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }

.tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

.tab-btn.active { background: var(--gold); color: var(--on-gold); font-weight: 700; }

/* ---------- Messages / diary ---------- */
.thread { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0; }

.msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.97rem;
}

.msg .meta { font-size: 0.75rem; opacity: 0.75; margin-bottom: 0.25rem; }

.msg.mine {
  align-self: flex-end;
  background: var(--gold);
  color: var(--on-gold);
  border-bottom-right-radius: 3px;
}

.msg.theirs {
  align-self: flex-start;
  background: rgba(var(--ink-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-bottom-left-radius: 3px;
}

/* Automated ShieldCounsel Companion replies (never the guide himself). */
.msg.assistant {
  align-self: flex-start;
  background: rgba(var(--gold-rgb), 0.10);
  border: 1px dashed rgba(var(--gold-rgb), 0.65);
  border-bottom-left-radius: 3px;
}

.msg.assistant .meta { color: var(--gold); opacity: 1; }

.msg-form { display: flex; gap: 0.6rem; margin-top: 0.6rem; }

.msg-form textarea { min-height: 54px; flex: 1; }

.msg-form .btn { align-self: flex-end; }

.entry-body { white-space: pre-wrap; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Guide admin ---------- */
.thread-card { border: 1px solid rgba(var(--gold-rgb), 0.35); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.2rem; background: var(--navy-card); }

.thread-card > h3 { margin: 0 0 0.5rem; font-size: 1.05rem; word-break: break-all; }

/* ---------- Phase 3: Guide triage + member reply banner ---------- */
.triage-bar { border: 1px solid rgba(var(--gold-rgb), 0.55); background: rgba(var(--gold-rgb), 0.12); color: var(--gold-light); border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 1.2rem; font-size: 0.98rem; }
.triage-bar.triage-clear { border-color: rgba(var(--gold-rgb), 0.25); background: var(--navy-card); color: var(--gold-light); }
.thread-card.awaiting { border: 1.5px solid var(--gold); }
.pill-wait { display: inline-block; background: var(--gold); color: var(--on-gold); border-radius: 999px; padding: 0.08rem 0.6rem; font-size: 0.78rem; font-weight: 700; vertical-align: middle; word-break: normal; }
.guide-reply-banner { border: 1px solid rgba(var(--gold-rgb), 0.55); background: rgba(var(--gold-rgb), 0.12); color: var(--gold-light); border-radius: var(--radius); padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  /* App shell: keep footer content above the home indicator (inset is 0 in browsers). */
  padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.prayer-logo {
  width: min(56vw, 200px);
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  display: block;
  margin: 0 auto 1rem;
}

/* ---------- Verses & Comfort ---------- */
.verses-hero { text-align: center; padding: 1rem 0 1.5rem; }

.verses-hero-logo {
  width: min(80vw, 340px);
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.25);
  display: block;
  margin: 0 auto 1rem;
}

.struggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.struggle-btn {
  background: var(--navy-card);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}

.struggle-btn:hover { border-color: var(--gold-light); }

.struggle-btn.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.comfort-line {
  color: var(--gold-light);
  font-style: italic;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .container { padding: 2.5rem 1.5rem 4rem; }
  .verses { grid-template-columns: 1fr; }
}

/* ---------- Guided Rooms / trust block / diary extras ---------- */
.verse-box { background: rgba(var(--gold-rgb), 0.10); border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0.8rem 0; }
.room-steps { margin: 0.6rem 0; padding-left: 1.3rem; }
.room-steps li { margin-bottom: 0.45rem; }
.room-prompt { background: var(--navy-deep); border-radius: 8px; padding: 0.8rem 1rem; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust-item h4 { color: var(--gold-light); margin: 0 0 0.3rem; font-family: var(--serif); }
.trust-item p { margin: 0; color: var(--muted); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.2rem; }
.chip { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.9rem; cursor: pointer; font-family: var(--sans); }
.chip:hover { background: rgba(var(--gold-rgb), 0.15); }
.step-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(var(--gold-rgb), 0.2); }
.step-row:last-child { border-bottom: none; }
.step-row .step-text { flex: 1; }
.step-row .step-text.done { text-decoration: line-through; color: var(--muted); }
.reflection-form { background: var(--navy-deep); border-radius: 8px; padding: 0.9rem 1rem; margin-top: 0.8rem; }
.voice-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.7rem; }
.rec-indicator { color: var(--danger); font-weight: 600; display: none; }

/* Language toggle (top right, next to nav) */
.lang-toggle{margin-inline-start:auto;flex:0 0 auto;background:transparent;color:var(--gold-light);border:1px solid rgba(var(--gold-light-rgb),.45);border-radius:999px;padding:.28rem .8rem;font-size:.85rem;font-weight:600;cursor:pointer;line-height:1.4}
.lang-toggle:active{background:rgba(var(--gold-light-rgb),.15)}
@media (max-width:560px){.lang-toggle{font-size:.8rem;padding:.24rem .65rem}}

/* RTL (Arabic) */
[dir="rtl"] body{direction:rtl;text-align:right}
[dir="rtl"] .site-nav{justify-content:flex-start}
[dir="rtl"] .verse{border-left:none;border-right:4px solid var(--gold);border-radius:10px 0 0 10px}
[dir="rtl"] .msg.mine{margin-left:0;margin-right:auto;border-radius:12px 12px 4px 12px}
[dir="rtl"] .msg.theirs{margin-right:0;margin-left:auto;border-radius:12px 12px 12px 4px}
[dir="rtl"] input[type="text"],[dir="rtl"] input[type="email"],[dir="rtl"] input[type="password"],[dir="rtl"] input[type="number"],[dir="rtl"] textarea{text-align:right}
[dir="rtl"] .verse-ref{text-align:left}

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.book-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  margin-bottom: 0.8rem;
}

.book-quote {
  color: var(--gold-light);
  font-style: italic;
  margin: 0.8rem 0 0.4rem;
}

/* ---------- Themes (picker in the header; choice saved per device) ---------- */
:root[data-theme="candlelight"] {
  --navy: #2e1c11; --navy-deep: #201207; --navy-card: #3b2415;
  --gold: #d9903f; --gold-rgb: 217, 144, 63;
  --gold-light: #f2b879; --gold-light-rgb: 242, 184, 121;
  --cream: #f8ecdb; --muted: #c9a888; --ink-rgb: 248, 236, 219; --on-gold: #201207;
}
:root[data-theme="desert"] {
  --navy: #ece0c8; --navy-deep: #f8f2e2; --navy-card: #fffaf0;
  --gold: #96690f; --gold-rgb: 150, 105, 15;
  --gold-light: #7d5a10; --gold-light-rgb: 125, 90, 16;
  --cream: #37291a; --muted: #7d6c52; --ink-rgb: 55, 41, 26; --on-gold: #fff8ea;
}
:root[data-theme="royal"] {
  --navy: #27143f; --navy-deep: #190b2a; --navy-card: #301b4e;
  --gold: #c9a227; --gold-rgb: 201, 162, 39;
  --gold-light: #eed688; --gold-light-rgb: 238, 214, 136;
  --cream: #f3edfb; --muted: #b7a6d1; --ink-rgb: 243, 237, 251; --on-gold: #190b2a;
}
:root[data-theme="jordan"] {
  --navy: #1d2c3a; --navy-deep: #111c26; --navy-card: #24384a;
  --gold: #8fb0c9; --gold-rgb: 143, 176, 201;
  --gold-light: #c6dcee; --gold-light-rgb: 198, 220, 238;
  --cream: #eef4f8; --muted: #a3bccd; --ink-rgb: 238, 244, 248; --on-gold: #111c26;
}
/* Light-theme (Desert Sand) readability fixes for fixed-color status text */
:root[data-theme="desert"] .status.success { color: #1e6b38; }
:root[data-theme="desert"] .status.error { color: #a33333; }
:root[data-theme="desert"] .status.info { color: var(--gold-light); }

/* ---------- App-style header: brand name + icon pill nav ---------- */
.brand-name {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-nav { gap: 0.45rem; }
.site-nav a, #nav-auth a {
  background: rgba(var(--gold-rgb), 0.10);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  line-height: 1.3;
  color: var(--cream);
}
.site-nav a:hover, #nav-auth a:hover {
  color: var(--gold-light);
  text-decoration: none;
  border-color: var(--gold);
}
.site-nav a.active, #nav-auth a.active {
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  border-color: var(--gold);
}
#nav-auth a.btn { background: var(--gold); color: var(--on-gold); border: none; }
.nav-ico { margin-inline-end: 0.35rem; }

/* ---------- Theme picker ---------- */
#theme-slot { position: relative; flex: 0 0 auto; }
.theme-btn {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(var(--gold-light-rgb), 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.4;
}
.theme-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  background: var(--navy-card);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 210px;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: start;
}
.theme-opt:hover { background: rgba(var(--gold-rgb), 0.14); }
.theme-opt .dot {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid;
}
.theme-opt .check { margin-inline-start: auto; color: var(--gold-light); font-weight: 700; }

/* ---------- Page-logo entrance motion (settle + living glow) ---------- */
@keyframes sc-logo-in {
  0% { opacity: 0; transform: translateY(16px) scale(0.94); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.012); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sc-glow {
  0%, 100% { box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.25); filter: brightness(1); }
  50% { box-shadow: 0 8px 46px rgba(var(--gold-rgb), 0.55); filter: brightness(1.07); }
}
.hero-logo, .verses-hero-logo, .prayer-logo {
  animation: sc-logo-in 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both, sc-glow 3.8s ease-in-out 0.9s infinite;
}
.brand img { animation: sc-logo-in 0.7s ease both; }
.book-cover { animation: sc-logo-in 0.8s ease both; }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .verses-hero-logo, .prayer-logo, .brand img, .book-cover { animation: none; }
}

/* ---------- Book reader ---------- */
.reader-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.reader-bar h1 { font-size: 1.3rem; margin: 0; flex: 1; min-width: 180px; }
.music-pill {
  background: rgba(var(--gold-rgb), 0.10);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
}
.music-pill.on { background: var(--gold); color: var(--on-gold); }
.reader-frame {
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 480px;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: var(--radius);
  background: #fff;
}

/* ---------- Slim header + dropdown menu (Paul's design, 2026-10-24) ---------- */
.site-header { flex-wrap: nowrap; gap: 0.5rem; }
.hdr-btn {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(var(--gold-light-rgb), 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  flex: 0 0 auto;
  font-family: var(--sans);
}
.hdr-btn:active { background: rgba(var(--gold-light-rgb), 0.15); }
#back-btn { font-size: 1.25rem; line-height: 1.1; padding: 0.14rem 0.65rem 0.3rem; }
.hdr-right { margin-inline-start: auto; display: flex; gap: 0.45rem; align-items: center; flex: 0 0 auto; }
.hdr-right .lang-toggle { margin-inline-start: 0; }
.hdr-right #nav-auth { flex-wrap: nowrap; }
.menu-panel {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  padding: 0.7rem 1rem 0.9rem;
  z-index: 40;
}
.menu-panel .site-nav {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-left: 0;
  gap: 0.4rem;
}
.menu-panel .site-nav a { display: flex; align-items: center; }
.menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.3);
}
.menu-auth:empty { display: none; }
.menu-auth a {
  background: rgba(var(--gold-rgb), 0.10);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  line-height: 1.3;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.menu-auth a.active { background: var(--gold); color: var(--on-gold); font-weight: 700; }
@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .hdr-btn { padding: 0.24rem 0.55rem; font-size: 0.88rem; }
}

/* ---------- Compact bar, pass 2: split wordmark, locks, flags (Paul) ---------- */
html, body { overflow-x: clip; }
.site-header { padding-inline: 0.7rem; gap: 0.4rem; }
.brand-name { font-size: 1.02rem; }
.brand img { width: 40px; height: 40px; }
#nav-auth a { text-decoration: none; }
#nav-auth a.auth-lock { font-size: 1.02rem; padding: 0.26rem 0.6rem; line-height: 1.35; }
.lang-toggle { font-size: 1.05rem; padding: 0.2rem 0.55rem; }
#menu-btn { font-size: 1.05rem; padding: 0.2rem 0.6rem; }
@media (max-width: 420px) {
  .brand-name { font-size: 0.95rem; }
  .brand img { width: 36px; height: 36px; }
}
