@font-face {
  font-family: Inter;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}


/* Shared dark theme. */
:root {
  color-scheme: dark;
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --bg: #0a0a0a;
  --card: #101012;
  --field: #1a1a1d;
  --surface-hover: #222225;
  --text: #f3f3f5;
  --muted: #b8b8c0;
  --line: #292930;
  --pink: #f6bfce;
  --pink-hover: #ffd4df;
  --pink-ink: #f2b6c9;
  --pink-soft: #372630;
  --on-pink: #291922;
  --glass: rgba(26, 26, 29, .92);
  --line-hover: #45454d;
  --backdrop: rgba(0, 0, 0, .66);
  --success: #94d6ae;
  --warning: #f3c190;
  --danger: #ffc4cb;
  --auth-field: #171717;
  --auth-field-focus: #242424;
  --avatar-placeholder: #242427;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f7;
  --card: #fff;
  --field: #f6f2f1;
  --surface-hover: #f1e9e8;
  --text: #242024;
  --muted: #655a5d;
  --line: #e8dedd;
  --pink: #f5ad9a;
  --pink-hover: #ef9985;
  --pink-ink: #973f4d;
  --pink-soft: #fce9e4;
  --on-pink: #331b1c;
  --glass: rgba(255, 255, 255, .92);
  --line-hover: #e5b5c0;
  --backdrop: rgba(35, 25, 30, .48);
  --success: #256446;
  --warning: #87501d;
  --danger: #ad354e;
  --auth-field: #f1eceb;
  --auth-field-focus: #ede2e4;
  --avatar-placeholder: #f0dfe7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
}

.page { max-width: 1608px; margin: 0 auto; padding: 16px; }

/* ---------- banner ---------- */
/* The banner always has the same shape: 450px tall at full width (1576px wide).
   The photo editor crops pictures to exactly this shape. */
.banner {
  position: relative;
  aspect-ratio: 1576 / 450;
  border-radius: 16px;
  overflow: hidden;
  background: var(--banner) center / cover;
}
.banner-empty {
  background: #202020;
}

/* ---------- layout: profile on the left, wishes on the right ---------- */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 0 24px;
}

/* ---------- profile ---------- */
/* Pulled up so the profile picture's middle sits on the banner's bottom edge. */
.profile { margin-top: -126px; position: relative; z-index: 1; }
/* The profile picture is always a circle of the same size, with a ring
   in the page colour around it (like Discord / X). */
.avatar {
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 6px solid var(--bg);
  box-sizing: content-box;
  object-fit: cover;
  display: block;
}
.avatar-empty {
  display: grid; place-items: center;
  background: var(--pink); color: var(--on-pink);
  font-size: 40px; font-weight: 800;
}
.profile h1 { font-size: 25px; font-weight: 600; margin: 10px 0 16px; }
.bio { color: var(--muted); margin: 0 0 16px; white-space: pre-line; overflow-wrap: anywhere; }
.profile h1 { overflow-wrap: anywhere; }
.profile-crown { display: inline-block; transform: translateY(-1.5px); }
.wish-manage { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 6px; }
.wish-manage .btn { padding: 7px 2px; }
.wish-hidden { font-size: 11px; font-weight: 800; color: var(--pink-ink); }
.manage-dialog textarea { width: 100%; resize: vertical; }
.manage-dialog .manage-check { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.manage-check input { accent-color: var(--pink-ink); }

/* ---------- change photo / banner buttons ---------- */
.avatar-wrap { position: relative; width: fit-content; }
.photo-edit { position: absolute; z-index: 2; margin: 0; }
.banner-edit { right: 14px; bottom: 14px; }
.avatar-edit { left: 50%; bottom: 12px; transform: translateX(-50%); }

.chip {
  display: inline-block;
  font: 700 13px/1 var(--font-ui);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(6px);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: opacity .15s, background .15s;
}
.chip:hover { background: var(--card); }

/* only show the buttons when hovering the picture (always shown on phones) */
.banner-edit .chip, .avatar-edit .chip { opacity: 0; }
.banner:hover .banner-edit .chip,
.avatar-wrap:hover .avatar-edit .chip { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 700 14px/1 var(--font-ui);
  color: var(--on-pink);
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--pink-hover); }
#add .btn:disabled { opacity: .52; cursor: default; background: var(--pink); }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:is(:hover, :focus-visible) { background: transparent; color: var(--text); }
.btn.ghost:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* ---------- wishes ---------- */
.wishlist-tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }
.wishlist-tabs a {
  padding: 4px 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.wishlist-tabs a[aria-current="page"] { color: var(--text); font-weight: 750; }
.wishlist-tabs a:hover { color: var(--text); }

.spent-totals { display: grid; max-width: 780px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.spent-totals div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.spent-totals dt, .spent-note, .spent-date { color: var(--muted); font-size: 13px; }
.spent-totals dd { margin: 3px 0 0; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.spent-grid { list-style: none; margin: 0; padding: 0; }
.spent-grid :is(.spent-date, .wish-hidden) { margin: 0 0 8px; }

.count {
  font-size: 13px; font-weight: 700;
  color: var(--pink-ink); background: var(--pink-soft);
  padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .32); border-color: var(--line-hover); }

.pic {
  position: relative;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--pink-soft);
  display: grid; place-items: center;
  font-size: 48px;
}
.pic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

.info { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.wish-suggestion { margin: auto 0 8px; color: var(--muted); font-size: 13px; }
.info h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.wish-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: auto 0 12px; }
.wish-suggestion + .wish-price-row { margin-top: 0; }
.price { margin: 0; font-weight: 800; }
.wish-paid {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* little × in the corner, shows on hover (always on phones) */
.remove {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: var(--glass); color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.card:hover .remove, .remove:focus-visible { opacity: 1; }
.remove:hover { color: var(--pink-ink); }

.empty { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; text-align: center; }

/* ---------- add-a-wish pop-up ---------- */
dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: 18px; padding: 0;
  background: var(--card); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
}
dialog::backdrop { background: var(--backdrop); }
dialog form { display: grid; gap: 12px; padding: 22px; }
dialog h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
dialog input, dialog select, dialog textarea {
  font: 400 15px var(--font-ui);
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); color: var(--text);
  outline: none;
}
dialog :is(input, select, textarea):focus { background: var(--surface-hover); }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Entry mode and preview card. */
#add:has(.wish-dialog-head) {
  width: 800px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 22px;
}
#add form { gap: 18px; }
#add:has(.wish-dialog-head) form { padding: 0; }
.wish-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.wish-dialog-head h2 { margin: 0; font-size: 24px; }
.wish-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font: 400 23px/1 var(--font-ui);
  cursor: pointer;
}
.wish-close:hover { background: var(--pink-soft); color: var(--pink-ink); }

.wish-view { width: min(540px, calc(100vw - 32px)); }
.wish-view .wish-dialog-head { gap: 16px; padding-bottom: 16px; }
.wish-view h2 { font-size: 20px; overflow-wrap: anywhere; }
.wish-view .wish-view-close { flex: none; padding: 0; }
.wish-view-photo {
  display: block;
  width: 100%;
  height: min(52dvh, 440px);
  object-fit: contain;
  background: var(--bg);
  border-block: 1px solid var(--line);
}
.wish-view-photo[hidden] { display: none; }
.wish-view-price { margin: 0; padding: 16px 24px; color: var(--pink-ink); font-weight: 800; }

.wish-modes {
  display: flex;
  gap: 4px;
  margin: 0 24px;
  padding: 4px;
  width: fit-content;
  max-width: calc(100% - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.wish-modes button {
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 700 14px var(--font-ui);
  cursor: pointer;
}
.wish-modes button[aria-pressed="true"] {
  background: var(--surface-hover);
  color: var(--text);
}
.wish-modes button:hover { color: var(--pink-ink); }

.wish-columns {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0 24px;
}
.wish-panel { display: grid; align-content: start; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wish-panel[hidden], .wish-picture[hidden], .wish-picture img[hidden] { display: none; }
.wish-field { display: grid; gap: 5px; }
.wish-upload-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

.wish-preview-card {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.wish-picture img {
  display: block;
  flex: 0 0 216px;
  width: 216px;
  height: 168px;
  object-fit: contain;
  background: var(--bg);
}
.wish-picture-details { display: grid; flex: 1; gap: 8px; min-width: 0; padding: 16px 20px; overflow-wrap: anywhere; }
#wish-preview-name { font-size: 16px; line-height: 1.4; }
#wish-preview-price { margin: 0; color: var(--pink-ink); font-weight: 800; }
#wish-preview-name:empty, #wish-preview-price:empty { display: none; }
.wish-picture-details:has(strong:empty):has(p:empty) { display: none; }
.picture-remove {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--pink-ink);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
dialog input[type="file"] { min-width: 0; }
dialog input::file-selector-button {
  background: var(--surface-hover);
  color: var(--text);
  border: 0;
  border-radius: 6px;
  margin-right: 8px;
  padding: 4px 8px;
  cursor: pointer;
}
.wish-import-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.wish-import-row input { min-width: 0; }
.wish-import-row .btn { border-radius: 10px; padding-inline: 16px; }
#add:has(.wish-dialog-head) .actions {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
#add input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset;
  -webkit-text-fill-color: var(--text);
}

@media (max-width: 650px) {
  .wish-dialog-head { padding: 16px 16px 0; }
  .wish-columns, .wish-modes { margin-inline: 16px; }
  .wish-modes { width: auto; max-width: none; }
  .wish-modes button { flex: 1; }
  .wish-picture img { flex-basis: 124px; width: 124px; height: 112px; }
  .wish-picture-details { padding: 12px; }
  #add:has(.wish-dialog-head) .actions { padding-inline: 16px; }
}

/* link reading status + picture preview in the add form */
.fetch-status { margin: -4px 0 0; font-size: 13px; color: var(--muted); min-height: 0; }
.fetch-status:empty { display: none; }
.fetch-status.busy { color: var(--muted); }
.fetch-status.ok { color: var(--success); }
.fetch-status.warn { color: var(--warning); }
.add-preview {
  height: 140px;
  border-radius: 12px;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.add-preview[hidden] { display: none; }
.add-preview img { display: block; width: 100%; height: 140px; min-width: 0; min-height: 0; object-fit: contain; }

/* ---------- photo editor pop-up ---------- */
.editor { width: min(560px, calc(100vw - 24px)); }
.ed-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; }
.ed-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.ed-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.ed-x:hover { color: var(--text); }

.ed-stage {
  position: relative;
  height: 340px;
  margin: 0 22px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  cursor: grab;
  touch-action: none;   /* lets fingers drag the photo instead of scrolling the page */
  user-select: none;
}
.ed-stage:active { cursor: grabbing; }
.ed-img {
  position: absolute; left: 50%; top: 50%;
  max-width: none;
  pointer-events: none;
}
/* blurred copy of the photo inside the frame, behind the real photo */
.ed-fill {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
}
.ed-fill-img {
  position: absolute; left: 50%; top: 50%;
  max-width: none;
}
/* the fixed frame: everything outside it is darkened */
.ed-frame {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  outline: 3px solid #fff;
  box-shadow: 0 0 0 9999px rgba(20, 12, 15, .6);
  pointer-events: none;
}
.ed-hint { margin: 8px 22px 0; font-size: 12px; color: var(--muted); text-align: center; }

.ed-tools { display: flex; align-items: center; gap: 12px; padding: 10px 22px 6px; }
.ed-zoom { flex: 1; accent-color: var(--pink-ink); }
.ed-ico { font-size: 22px; }
.ed-ico-small { font-size: 14px; }
.ed-rotate {
  margin-left: 8px;
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: var(--pink-soft); color: var(--pink-ink);
  font-size: 20px; cursor: pointer;
}
.ed-rotate:hover { background: var(--surface-hover); }

.ed-foot { display: flex; gap: 8px; padding: 8px 22px 20px; }
.spacer { flex: 1; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .page { padding: 0 0 24px; }
  .banner { border-radius: 0; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .profile { --mobile-avatar-size: 132.6675px; text-align: start; margin-top: calc(var(--mobile-avatar-size) / -2); }
  .avatar { width: var(--mobile-avatar-size); height: var(--mobile-avatar-size); border-width: 5px; box-sizing: border-box; }
  .banner-edit { top: 10px; bottom: auto; right: 10px; } /* top corner, so the profile picture doesn't cover it */
  .avatar { margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pic { aspect-ratio: 1; }
  .info { padding-inline: 10px; }
  .remove { opacity: 1; }
  .avatar-wrap { margin: 0 auto 0 0; }
  .banner-edit .chip, .avatar-edit .chip { opacity: 1; }
  .ed-stage { height: 280px; margin: 0 14px; }
  .ed-head, .ed-tools, .ed-foot { padding-left: 14px; padding-right: 14px; }
}

#shade-field[hidden] { display: none; }

dialog select { width: 100%; min-width: 0; }

.preview-retry { justify-self: start; }
.preview-retry[hidden] { display: none; }

.price-fields { display: grid; grid-template-columns: minmax(0,1fr) 95px; gap: 10px; }
.price-fields input { min-width: 0; }

/* ---------- accounts ---------- */
.auth-theme { position: absolute; top: 12px; right: 12px; }
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--bg);
  color: var(--text);
}
@media (min-width: 701px) and (min-height: 720px) {
  .auth-body { padding-bottom: 88px; }
}
@media (min-width: 701px) and (min-height: 900px) {
  .auth-body { padding-bottom: 152px; }
}
.auth-card { width: min(100%, 420px); }
.auth-head { margin-bottom: 30px; text-align: center; }
.auth-branding { display: inline-grid; max-width: 100%; gap: 20px; }
.auth-brand-image { contain: inline-size; min-width: 0; }
.auth-mark {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.auth-card h1 {
  margin: 0;
  font-size: clamp(19px, 4.5vw, 31px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.auth-kiss { letter-spacing: 0; }
.auth-note { margin: 11px 0 0; color: var(--muted); font-size: 15px; }
.auth-notice { margin: 0 0 18px; line-height: 1.5; }
.auth-error { margin: 0 0 18px; color: var(--danger); font-size: 14px; }
.auth-card form { display: grid; gap: 18px; }
.auth-card form[hidden] { display: none; }
.password-requirements { display: grid; gap: 6px; margin: -8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.password-requirements li { display: flex; justify-content: space-between; gap: 12px; }
.password-requirements span { color: var(--danger); font-weight: 700; }
.password-requirements [data-met="true"] span { color: var(--success); }
.auth-field, .auth-card label { display: grid; gap: 6px; }
.auth-card label { color: var(--text); font-size: 14px; font-weight: 600; }
.auth-card input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  outline: none;
  background: var(--auth-field);
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.auth-card input::placeholder { color: var(--muted); opacity: 1; }
.auth-password { position: relative; }
.auth-password input { padding-right: 56px; }
.auth-password button {
  position: absolute;
  inset: 4px 4px 4px auto;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--pink-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.auth-password button:hover { background: var(--surface-hover); }
.auth-card input:focus { background: var(--auth-field-focus); }
.auth-card button:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 2px; }
.auth-card .auth-submit {
  font-family: inherit;
  font-weight: 600;
  margin-top: 4px;
  min-height: 46px;
  border-radius: 9px;
  background: var(--pink);
  color: var(--on-pink);
}
.auth-card .auth-submit:hover { background: var(--pink-hover); }
@media (max-width: 480px) {
  .auth-body { padding: 32px 18px; }
  .auth-head { margin-bottom: 24px; }
}
@media (max-width: 700px) and (min-height: 780px) {
  .auth-body { padding-bottom: 96px; }
}
.account-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}
.account-bar-links { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-inline-end: auto; }
.account-bar-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 2px solid var(--line-hover); border-radius: 999px; background: var(--card);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.account-bar-links a:hover { background: var(--surface-hover); color: var(--pink-ink); }
.account-bar-links a[aria-current] { background: transparent; border-color: var(--pink-ink); color: var(--pink-ink); }
.account-bar-links a:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 2px; }
.site-logo span { font: 23px/1 Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, sans-serif; }
.account-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-placeholder);
}
.account-avatar-empty { display: grid; place-items: center; color: var(--pink-ink); font-weight: 800; }
.account-identity { display: grid; justify-items: start; gap: 2px; min-width: 0; line-height: 1.2; text-align: start; }
.account-identity strong { color: inherit; overflow-wrap: anywhere; }
.account-role { color: var(--muted); font-size: 12px; font-weight: 600; }
.puppy-paw svg { width: 26px; height: 26px; color: var(--pink-ink); }
@media (max-width: 620px) {
  .account-bar-links { gap: 4px; }
  .account-bar-links a { font-size: 12px; padding-inline: 7px; gap: 3px; }
  .site-logo span { font-size: 19px; }
  .puppy-paw svg { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .account-bar { gap: 4px; }
  .account-bar .account-menu summary { gap: 5px; padding-inline: 4px; }
  .account-menu .account-identity { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.theme-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: 400 20px/1 var(--font-ui);
  cursor: pointer;
}
.theme-icon:hover { background: var(--surface-hover); }
.theme-icon:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 2px; }
.account-menu { position: relative; z-index: 5; }
.account-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  list-style: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.account-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.account-menu summary:hover, .account-menu[open] summary { background: var(--surface-hover); }
.account-menu-items {
  position: absolute;
  inset-block-start: calc(100% + 5px);
  inset-inline-end: 0;
  min-width: 154px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}
.account-menu-items button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.account-menu-items button:is(:hover, :focus-visible) { background: var(--surface-hover); }
@media (max-width: 520px) {
  .account-bar { padding: 6px 12px; }
}
.auth-recovery { justify-self: start; color: var(--muted); font-size: 14px; }
.auth-recovery:hover { color: var(--text); }

/* Keep the phone layout a little more compact without restricting browser zoom. */
@supports (zoom: .9) {
  @media (max-width: 700px) and (pointer: coarse) {
    body { zoom: .9; }
    .auth-body { min-height: calc(100dvh / .9); }
  }
}
