/* DermaLens -- mobile-first design system.
   Everything is sized for a phone held in one hand; wider screens get a centred
   column rather than a different layout, so there is only one thing to maintain. */

:root {
  --pink: #ff4d8d;
  --pink-soft: #ffe3ed;
  --violet: #7c5cff;
  --violet-soft: #ece7ff;
  --teal: #00cfb4;
  --teal-soft: #d8fbf5;
  --amber: #ffab1f;
  --amber-soft: #fff2d9;
  --danger: #ff4757;
  --danger-soft: #ffe4e6;

  --ink: #1b1533;
  --ink-2: #4a4364;
  --ink-3: #8c86a3;
  --line: #ece9f5;
  --surface: #ffffff;
  --surface-2: #f8f6ff;
  --bg: #fdf7fb;

  --grad-brand: linear-gradient(135deg, #ff4d8d 0%, #7c5cff 55%, #00cfb4 120%);
  --grad-warm: linear-gradient(135deg, #ff7a59 0%, #ff4d8d 100%);
  --grad-cool: linear-gradient(135deg, #7c5cff 0%, #00cfb4 100%);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-full: 999px;

  --shadow-sm: 0 2px 10px rgba(27, 21, 51, .06);
  --shadow-md: 0 8px 26px rgba(27, 21, 51, .10);
  --shadow-lg: 0 18px 48px rgba(124, 92, 255, .20);

  --header-h: 62px;
  --nav-h: 68px;
  --maxw: 640px;

  --font: 'Noto Sans Thai', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f1ff;
    --ink-2: #c3bcdd;
    --ink-3: #8e87ab;
    --line: #2c2545;
    --surface: #1c1730;
    --surface-2: #241d3d;
    --bg: #120e21;
    --pink-soft: #3a1f30;
    --violet-soft: #271f4d;
    --teal-soft: #10352f;
    --amber-soft: #3a2c12;
    --danger-soft: #3d1c22;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--violet); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---- App shell -------------------------------------------------------------- */

.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

@media (min-width: 700px) {
  .shell {
    box-shadow: 0 0 60px rgba(27, 21, 51, .10);
    border-inline: 1px solid var(--line);
  }
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.appbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.appbar__logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 77, 141, .35);
  flex: none;
}

.appbar__title { font-size: 1rem; line-height: 1.15; }
.appbar__sub { font-size: .68rem; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.appbar__spacer { flex: 1; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--violet);
  background: var(--violet-soft);
}

.avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--violet);
  font-size: .9rem;
}

.page {
  flex: 1;
  padding: 18px 16px calc(var(--nav-h) + 24px);
}

.page--flush { padding: 0 0 calc(var(--nav-h)); }

/* ---- Bottom navigation ------------------------------------------------------ */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--maxw));
  height: var(--nav-h);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  color: var(--ink-3);
  font-size: .68rem;
  font-weight: 600;
  transition: color .18s ease;
}

.tabbar__item iconify-icon { font-size: 23px; transition: transform .18s ease; }
.tabbar__item:active iconify-icon { transform: scale(.88); }
.tabbar__item.is-active { color: var(--violet); }
.tabbar__item.is-active iconify-icon { transform: translateY(-1px); }

.tabbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0;
  transition: opacity .18s ease;
}

.tabbar__item.is-active .tabbar__dot { opacity: 1; }

/* ---- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-full);
  padding: 13px 22px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-align: center;
}

.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn iconify-icon { font-size: 20px; }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--soft { background: var(--violet-soft); color: var(--violet); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 26px; font-size: 1rem; }

.btn--google {
  background: #fff;
  color: #1f1f1f;
  border: 1.5px solid #dadce0;
  box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  .btn--google { background: #fff; color: #1f1f1f; }
}

/* ---- Cards & chips ---------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 700;
  background: var(--violet-soft);
  color: var(--violet);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease;
}

.chip:active { transform: scale(.95); }
.chip iconify-icon { font-size: 16px; }
.chip--pink { background: var(--pink-soft); color: var(--pink); }
.chip--teal { background: var(--teal-soft); color: #009e89; }
.chip--amber { background: var(--amber-soft); color: #b97400; }
.chip--danger { background: var(--danger-soft); color: var(--danger); }
.chip--static { cursor: default; }

.notice {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  font-size: .84rem;
  line-height: 1.55;
  background: var(--amber-soft);
  color: #8a5a00;
  border: 1px solid rgba(255, 171, 31, .3);
}

.notice iconify-icon { font-size: 20px; flex: none; margin-top: 1px; }
.notice--danger { background: var(--danger-soft); color: #b3182a; border-color: rgba(255, 71, 87, .3); }
.notice--info { background: var(--violet-soft); color: var(--violet); border-color: rgba(124, 92, 255, .25); }

@media (prefers-color-scheme: dark) {
  .notice { color: #ffd489; }
  .notice--danger { color: #ff9aa4; }
}

/* ---- Auth & landing --------------------------------------------------------- */

.hero {
  position: relative;
  padding: 34px 22px 40px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -45% -30% auto -30%;
  height: 420px;
  background: var(--grad-brand);
  opacity: .16;
  filter: blur(46px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__badge {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 30px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 48px;
  box-shadow: var(--shadow-lg);
  animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}

.hero h1 { position: relative; font-size: 1.85rem; }

.hero__gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { position: relative; color: var(--ink-2); font-size: .95rem; margin-bottom: 26px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 13px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.feature iconify-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.feature__title { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.feature__text { font-size: .75rem; color: var(--ink-3); line-height: 1.5; }

.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 22px;
  max-width: var(--maxw);
  margin-inline: auto;
}

.auth__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px 22px;
  box-shadow: var(--shadow-md);
}

.auth__steps { display: grid; gap: 12px; margin: 20px 0 24px; }

.auth__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--ink-2);
}

.auth__step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .78rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: .75rem;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Chat ------------------------------------------------------------------- */

.chat {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
}

.chat__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px calc(var(--nav-h) + 96px);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.msg { display: flex; gap: 9px; margin-bottom: 16px; align-items: flex-end; }
.msg--user { flex-direction: row-reverse; }

.msg__avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #fff;
  background: var(--grad-cool);
  margin-bottom: 2px;
}

.msg--user .msg__avatar { background: var(--grad-warm); }

.msg__body { max-width: 82%; min-width: 0; }

.bubble {
  padding: 12px 15px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 6px;
  font-size: .92rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.msg--user .bubble {
  background: var(--grad-warm);
  color: #fff;
  border: 0;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 6px;
}

.bubble strong { font-weight: 700; }
.bubble ul { margin: .4em 0; padding-left: 1.1em; }
.bubble li { margin-bottom: .25em; }
.bubble h4 { margin: .7em 0 .3em; font-size: .92rem; color: var(--violet); }
.msg--user .bubble h4 { color: #fff; }

.bubble__photo {
  border-radius: 16px;
  margin-bottom: 8px;
  max-height: 260px;
  width: 100%;
  object-fit: cover;
}

.msg__time { font-size: .66rem; color: var(--ink-3); margin-top: 4px; padding-inline: 6px; }
.msg--user .msg__time { text-align: right; }

/* ---- Prediction result cards ------------------------------------------------ */

.pred { margin-top: 10px; display: grid; gap: 9px; }

.pred__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pred__item {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* The top-1 result is the one people act on, so it gets the accent rail. */
.pred__item--top { border-color: transparent; box-shadow: var(--shadow-md); }
.pred__item--top::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
}

.pred__rank {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 19px;
}

.pred__item--top .pred__rank { background: var(--grad-brand); color: #fff; }

.pred__info { flex: 1; min-width: 0; }
/* These are <span>s in chat.js, so they need blockifying or the name, English
   label and summary all run together on one line and the bar collapses. */
.pred__name { display: block; font-weight: 700; font-size: .9rem; line-height: 1.35; }
.pred__en { display: block; font-size: .7rem; color: var(--ink-3); }

.pred__bar {
  display: block;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--line);
  margin-top: 6px;
  overflow: hidden;
}

.pred__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  width: 0;
  transition: width .9s cubic-bezier(.2, .8, .3, 1);
}

.pred__pct {
  flex: none;
  font-weight: 800;
  font-size: 1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 52px;
  text-align: right;
}

.pred__summary { display: block; font-size: .78rem; color: var(--ink-2); margin-top: 5px; line-height: 1.5; }

.pred__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }

.pred__ask {
  font-size: .86rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--ink-2);
}

/* ---- Nearby places ---------------------------------------------------------- */

.places { margin-top: 10px; display: grid; gap: 9px; }

.map {
  width: 100%;
  height: 210px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  z-index: 0;
}

.place {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .15s ease;
}

.place:active { transform: scale(.98); }

.place__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--teal-soft);
  color: #009e89;
}

.place__icon--hospital { background: var(--pink-soft); color: var(--pink); }
.place__icon--pharmacy { background: var(--amber-soft); color: #b97400; }

.place__info { flex: 1; min-width: 0; }
.place__name { font-weight: 700; font-size: .87rem; line-height: 1.35; }
.place__meta { font-size: .72rem; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.place__dist { flex: none; font-weight: 800; font-size: .78rem; color: var(--violet); }

.map-credit { font-size: .66rem; color: var(--ink-3); text-align: right; }

/* ---- Composer --------------------------------------------------------------- */

.composer {
  position: fixed;
  bottom: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--maxw));
  padding: 10px 12px 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 45;
}

.composer__preview {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: var(--r-md);
  background: var(--violet-soft);
}

.composer__preview.is-open { display: flex; }
.composer__preview img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.composer__preview-name { flex: 1; font-size: .78rem; font-weight: 600; color: var(--violet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.composer__row { display: flex; align-items: flex-end; gap: 8px; }

.composer__btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  background: var(--violet-soft);
  color: var(--violet);
  transition: transform .15s ease;
}

.composer__btn:active { transform: scale(.9); }
.composer__btn--send { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 14px rgba(255, 77, 141, .35); }
.composer__btn:disabled { opacity: .45; }

.composer__input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 16px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: .92rem;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color .18s ease;
}

.composer__input:focus { border-color: var(--violet); }
.composer__input::placeholder { color: var(--ink-3); }

/* ---- Typing indicator ------------------------------------------------------- */

.typing { display: flex; gap: 4px; padding: 14px 16px; }

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  opacity: .45;
  animation: blink 1.3s infinite;
}

.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

@keyframes blink {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.fade-in { animation: fadeIn .32s cubic-bezier(.2, .8, .3, 1); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

/* ---- Chat empty state ------------------------------------------------------- */

.welcome { text-align: center; padding: 26px 12px 8px; }

.welcome__orb {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 26px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  box-shadow: var(--shadow-lg);
  animation: float 4.5s ease-in-out infinite;
}

.welcome h2 { font-size: 1.2rem; }
.welcome p { color: var(--ink-2); font-size: .87rem; }

.suggestions { display: grid; gap: 8px; margin-top: 18px; text-align: left; }

.suggestion {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .15s ease, border-color .15s ease;
}

.suggestion:active { transform: scale(.98); }
.suggestion iconify-icon { font-size: 22px; color: var(--violet); flex: none; }

/* ---- History ---------------------------------------------------------------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
}

.section-title iconify-icon { font-size: 26px; color: var(--violet); }

.history-list { display: grid; gap: 10px; }

.history-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .15s ease;
}

.history-item:active { transform: scale(.99); }

.history-item__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--violet-soft);
  color: var(--violet);
}

.history-item__icon--photo { background: var(--pink-soft); color: var(--pink); }
.history-item__body { flex: 1; min-width: 0; }
.history-item__title { font-weight: 700; font-size: .92rem; margin-bottom: 2px; }

.history-item__preview {
  font-size: .76rem;
  color: var(--ink-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-item__meta { font-size: .68rem; color: var(--ink-3); margin-top: 5px; display: flex; gap: 10px; }

.history-item__del {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  font-size: 19px;
  cursor: pointer;
}

.history-item__del:active { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty iconify-icon { font-size: 62px; color: var(--line); display: block; margin: 0 auto 12px; }

/* ---- About ------------------------------------------------------------------ */

.dev-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.dev-card__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #fff;
  background: var(--grad-cool);
}

.dev-card:nth-child(odd) .dev-card__avatar { background: var(--grad-warm); }
.dev-card__name { font-weight: 700; font-size: .95rem; }
.dev-card__id { font-size: .76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- Toast ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 84px);
  transform: translate(-50%, 16px);
  z-index: 80;
  max-width: calc(var(--maxw) - 32px);
  padding: 11px 18px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Credits ---------------------------------------------------------------- */

/* CC BY 4.0 on the Solar icon set requires the author and licence to be visible,
   so this block is quiet but never hidden behind a toggle. */
.credit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.credit + .credit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.credit__icon {
  font-size: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--violet);
}

.credit a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
