/* Rootling's own pages use the shared catalogue's colour and type tokens. */
/* Outfit from Fontsource 5.3.0. See ../fonts/OFL-Outfit.txt. */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rd-font-body: "Outfit", sans-serif;
  --rd-font-mono: var(--rd-font-body);
}

/* The signed-out pages (html.rootling-lens) use Kava Plaza's page frame from the
   shared lens.css: a fixed viewport that never scrolls (see the end of this file).
   Every other page (a site's sign-in window, verification, the signed-in Rootling
   page) scrolls as one document: the shared app frame locks it (fixed body,
   overscroll-behavior: none), and a body scroll container that refuses to chain
   stops touch scrolling in current Chrome. Only the viewport scrolls there. */
html:not(.rootling-lens), html:not(.rootling-lens) body { position: static; height: auto; min-height: 100%; font-size: 16px; overscroll-behavior: auto; }
html:not(.rootling-lens) { overflow: auto; }
html:not(.rootling-lens) body { overflow: visible; }
body { background: var(--rd-paper); color: var(--rd-ink); }
html:not(.rootling-lens) #app { height: auto; min-height: 100dvh; width: 100%; overflow: visible; }

.rootling-page, .rootling-public {
  min-height: 100dvh;
  background: radial-gradient(circle at 72% 32%, var(--rd-accent-soft), transparent 42%), var(--rd-paper);
}
.rootling-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
}
.rootling-entry-brand { display: flex; align-items: center; gap: .75rem; }
.rootling-entry-art { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.rootling-brand, .rootling-wordmark {
  font: 700 1.35rem/1 var(--rd-font-display); letter-spacing: .02em; color: var(--rd-ink);
}
.rootling-wordmark { text-decoration: none; }
.rootling-wordmark:hover { color: var(--rd-accent); }
.rootling-card {
  width: min(100%, 27rem); display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.35rem, 4vw, 2rem); background: var(--rd-card);
  border: 1px solid var(--rd-rule); border-radius: var(--rd-radius); box-shadow: var(--rd-frame);
}
.rootling-card h1 { font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.12 var(--rd-font-display); color: var(--rd-ink); }
.rootling-card p { color: var(--rd-ink-2); }
.rootling-seedling { display: block; width: 7rem; height: 7rem; object-fit: contain; align-self: center; }
.rootling-form { display: flex; flex-direction: column; gap: .9rem; }
.rootling-field { display: flex; flex-direction: column; gap: .3rem; font: 700 .9rem/1.3 var(--rd-font-body); color: var(--rd-ink-2); }
.rootling-field input {
  width: 100%; min-height: 2.9rem; padding: .55rem .7rem; font: 1rem var(--rd-font-body);
  color: var(--rd-ink); background: var(--rd-field, var(--rd-paper-2));
  border: 0; border-bottom: 2px solid var(--rd-rule); border-radius: 0;
}
.rootling-field input:focus-visible, .rootling-card button:focus-visible,
.rootling-public a:focus-visible {
  outline: 2px solid var(--rd-accent); outline-offset: 3px;
}
.rootling-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
  padding: .65rem 1.15rem; font: 700 1rem/1.2 var(--rd-font-display); text-align: center;
  color: var(--rd-paper); background: var(--rd-accent); border: 0; border-radius: var(--rd-radius);
  text-decoration: none; cursor: pointer;
}
.rootling-primary:hover { filter: brightness(1.1); }
.rootling-primary:disabled { opacity: .6; cursor: default; }
.rootling-secondary, .rootling-quiet {
  display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--rd-accent);
  font: 700 .9rem/1.3 var(--rd-font-body); text-decoration: underline; text-underline-offset: .24em;
}
.rootling-quiet { padding: .2rem 0; background: none; border: 0; cursor: pointer; }
.rootling-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.rootling-status:empty { display: none; }
.rootling-status { color: var(--rd-ink-2); }

.rootling-public { display: flex; flex-direction: column; }
.rootling-topbar {
  width: min(100%, 74rem); margin: 0 auto; padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.rootling-public-content {
  flex: 1; width: min(100%, 74rem); margin: auto; padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
}
.rootling-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.rootling-intro h1 { font: 700 clamp(3rem, 7vw, 6rem)/.98 var(--rd-font-display); letter-spacing: -.035em; }
.rootling-intro > p:not(.rootling-kicker) { max-width: 34rem; font-size: 1.2rem; line-height: 1.5; color: var(--rd-ink-2); }
.rootling-kicker { font: 700 .95rem/1.3 var(--rd-font-body); letter-spacing: 0; color: var(--rd-accent); }
.rootling-public-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; }
.rootling-home-art { display: block; width: min(100%, 30rem); max-height: 68dvh; margin: auto; object-fit: contain; filter: drop-shadow(0 1.4rem 1.5rem var(--rd-accent-soft)); }
.rootling-art { display: block; width: min(100%, 16rem); max-height: 28dvh; object-fit: contain; }

.rootling-places {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem;
  width: 100%; text-align: left;
}
.rootling-places-center {
  position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  gap: .8rem; color: var(--rd-ink); font: 700 1.1rem/1.2 var(--rd-font-display);
}
.rootling-places-center::after {
  content: ""; position: absolute; bottom: -.9rem; left: 50%; width: 2px; height: .9rem;
  background: var(--rd-rule);
}
.rootling-places-center img { display: block; width: 5.5rem; height: 5.5rem; object-fit: contain; }
.rootling-place {
  display: flex; align-items: flex-start; gap: .7rem; min-width: 0; padding: .95rem;
  background: var(--rd-card); border: 1px solid var(--rd-rule);
  border-radius: var(--rd-radius);
}
.rootling-place h2 { margin: 0 0 .3rem; color: var(--rd-ink); font: 700 1rem/1.2 var(--rd-font-display); }
.rootling-place p { margin: 0; color: var(--rd-ink-2); font: 400 .9rem/1.35 var(--rd-font-body); }
.rootling-place-icon { position: relative; display: block; flex: none; width: 2rem; height: 2rem; color: var(--rd-accent); }
.rootling-place-online .rootling-place-icon { border: 2px solid currentColor; border-radius: 50%; }
.rootling-place-online .rootling-place-icon::before {
  content: ""; position: absolute; inset: -2px 7px; border: 2px solid currentColor; border-radius: 50%;
}
.rootling-place-online .rootling-place-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor;
}
.rootling-place-venue .rootling-place-icon { border: 2px solid currentColor; border-radius: .35rem; }
.rootling-place-venue .rootling-place-icon::before {
  content: ""; position: absolute; left: .43rem; top: .3rem; width: .7rem; height: .7rem;
  border: 2px solid currentColor; border-radius: 50%;
}
.rootling-place-venue .rootling-place-icon::after {
  content: ""; position: absolute; left: .37rem; right: .37rem; bottom: .28rem; border-top: 2px solid currentColor;
}
.rootling-create-card { width: min(100%, 40rem); }
.rootling-create-card .rootling-places-center img { width: 4.5rem; height: 4.5rem; }

@media (max-width: 700px), (max-height: 680px) {
  .rootling-public-content { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; }
  .rootling-intro { align-items: center; text-align: center; }
  .rootling-intro h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .rootling-public-actions { justify-content: center; }
  .rootling-home-art { width: min(55vw, 16rem); max-height: 30dvh; }
  .rootling-art { width: 6rem; max-height: 6rem; }
  .rootling-public-content > .rootling-card { margin: 0 auto; }
}
@media (max-width: 480px) {
  .rootling-topbar { padding: 1rem; }
  .rootling-public-content { padding: .75rem 1rem 2rem; }
  .rootling-page { justify-content: flex-start; padding: 1.25rem 1rem 2rem; }
  .rootling-card { gap: .75rem; padding: 1.2rem; }
  .rootling-home-art { width: min(50vw, 12rem); }
}

/* Creation and check-in use the same palette as Rootling's public home page. */
.rootling-auth .rootling-topbar {
  width: min(100%, 78rem);
  padding: 1.8rem clamp(1.5rem, 4vw, 3rem);
}
.rootling-auth .rootling-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: 700 1.65rem/1 var(--rd-font-display);
  letter-spacing: -.035em;
  color: var(--rd-ink);
}
.rootling-auth .rootling-wordmark::before {
  content: "";
  width: 1.05rem;
  height: 1.35rem;
  border-radius: 80% 4% 80% 4%;
  background: var(--rd-accent);
  transform: rotate(-38deg);
  box-shadow: .4rem -.4rem 0 -.18rem var(--rd-accent-soft);
}
.rootling-auth-content {
  width: min(100%, 78rem);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 3rem;
}
.rootling-auth-story {
  min-width: 0;
  text-align: center;
  touch-action: pan-y pinch-zoom;
}
.rootling-auth-eyebrow,
.rootling-card-eyebrow {
  color: var(--rd-accent);
  font: 700 .8rem/1.2 var(--rd-font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rootling-auth-story-title {
  margin-top: .8rem;
  font: 700 clamp(3.4rem, 5vw, 5.8rem)/.98 var(--rd-font-display);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.rootling-auth-story-copy {
  max-width: 28rem;
  margin: 1.2rem auto 0;
  color: var(--rd-ink-2);
  font: 400 1.22rem/1.4 var(--rd-font-body);
  text-wrap: balance;
}
.rootling-auth-story-signup .rootling-auth-story-title { font-size: clamp(2.7rem, 4vw, 3.8rem); }
.rootling-auth-story-signup .rootling-places { margin-top: 1.2rem; }
.rootling-seedling-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 33rem);
  min-height: 26rem;
  margin: .2rem auto 0;
  isolation: isolate;
}
.rootling-seedling-glow {
  position: absolute;
  z-index: -1;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--rd-card) 0 33%, var(--rd-accent-soft) 66%, transparent 72%);
}
.rootling-seedling-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 1.7rem;
  width: 54%;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--rd-accent-soft);
  filter: blur(.7rem);
}
.rootling-auth-seedling {
  display: block;
  width: min(100%, 29rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.4rem 1.1rem var(--rd-accent-soft));
  transform: rotate(-4deg);
}
.rootling-seedling-caption {
  color: var(--rd-ink-2);
  font: italic 1.02rem/1.3 var(--rd-font-body);
}
.rootling-auth-side { width: min(100%, 32rem); margin: 0 auto; }
.rootling-auth-card {
  width: 100%;
  gap: .75rem;
  padding: clamp(1.7rem, 3.6vw, 3rem);
  background: var(--rd-card);
  border: 1px solid var(--rd-rule);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-frame);
}
.rootling-auth-card h1 {
  margin-top: .25rem;
  color: var(--rd-ink);
  font: 700 clamp(2.45rem, 3.5vw, 3.25rem)/1.06 var(--rd-font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.rootling-auth-card > p:not(.rootling-card-eyebrow):not(.rootling-status) {
  color: var(--rd-ink-2);
  font: 400 1.08rem/1.4 var(--rd-font-body);
}
.rootling-auth-card .rootling-form { gap: .95rem; margin-top: .8rem; }
.rootling-auth-card .rootling-field {
  gap: .45rem;
  color: var(--rd-ink);
  font: 700 .92rem/1.2 var(--rd-font-body);
}
.rootling-auth-card .rootling-field input {
  min-height: 3.35rem;
  padding: .75rem 1rem;
  background: var(--rd-paper);
  border: 1px solid var(--rd-rule);
  border-radius: var(--rd-radius);
}
.rootling-auth-card .rootling-field input:hover { border-color: var(--rd-accent); }
.rootling-auth-card .rootling-field input:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 1px;
  border-color: var(--rd-accent);
}
.rootling-auth-card .rootling-primary {
  min-height: 3.4rem;
  margin-top: .3rem;
  font: 700 1.05rem/1.2 var(--rd-font-body);
}
.rootling-auth-card .rootling-status { color: var(--rd-accent); }
.rootling-card-unavailable {
  padding: .9rem 1rem;
  color: var(--rd-ink-2);
  background: var(--rd-paper-2);
  border: 1px solid var(--rd-rule);
  border-radius: var(--rd-radius);
  font: 400 1rem/1.35 var(--rd-font-body);
}
.rootling-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  padding-top: .4rem;
  border-top: 1px solid var(--rd-rule);
}
.rootling-auth-card .rootling-secondary {
  color: var(--rd-accent);
  font: 700 .98rem/1.2 var(--rd-font-body);
  text-decoration-thickness: 1px;
}
.rootling-auth-navigation { margin-top: 1.35rem; }
.rootling-auth-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .35rem;
  border: 1px solid var(--rd-rule);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
}
.rootling-auth-tabs a {
  flex: 1;
  padding: .5rem .75rem;
  color: var(--rd-ink-2);
  border-radius: var(--rd-radius);
  font: 700 .95rem/1.2 var(--rd-font-body);
  text-align: center;
  text-decoration: none;
}
.rootling-auth-tabs a:hover { color: var(--rd-accent); background: var(--rd-accent-soft); }
.rootling-auth-tabs a[aria-current="page"] { color: var(--rd-paper); background: var(--rd-accent); }
.rootling-auth-edges { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .6rem 0; }
.rootling-auth-edge {
  color: var(--rd-accent);
  font: 700 .85rem/1.2 var(--rd-font-body);
  text-decoration: none;
}
.rootling-auth-edge:hover { text-decoration: underline; text-underline-offset: .2em; }
.rootling-auth a:focus-visible, .rootling-auth button:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .rootling-auth-content { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 2rem; }
  .rootling-auth-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 1rem;
    text-align: left;
  }
  .rootling-auth-story-title { margin-top: .4rem; font-size: clamp(2.7rem, 7vw, 4rem); }
  .rootling-auth-story-copy { margin: .6rem 0 0; font-size: 1rem; }
  .rootling-seedling-scene { grid-column: 2; grid-row: 1 / 4; min-height: 0; margin: 0; }
  .rootling-auth-seedling { width: 100%; }
  .rootling-seedling-scene::after { bottom: 0; }
  .rootling-seedling-caption { display: none; }
  .rootling-auth-story-signup { display: block; text-align: center; }
}
@media (max-width: 600px) {
  .rootling-places { grid-template-columns: 1fr; }
  .rootling-place { padding: .75rem; }
  .rootling-create-page { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .rootling-auth .rootling-topbar { padding: 1.1rem 1.2rem; }
  .rootling-auth .rootling-wordmark { font-size: 1.4rem; }
  .rootling-auth-content { gap: 1rem; padding: .3rem 1rem 1.75rem; }
  .rootling-auth-story { grid-template-columns: minmax(0, 1fr) 8.75rem; gap: 0 .25rem; padding: .4rem .4rem .6rem; }
  .rootling-auth-eyebrow { font-size: .69rem; letter-spacing: .12em; }
  .rootling-auth-story-title { font-size: clamp(2.35rem, 10vw, 3.1rem); }
  .rootling-auth-story-copy { font-size: .95rem; line-height: 1.25; }
  .rootling-auth-story-signup .rootling-auth-story-title { font-size: clamp(2.2rem, 8vw, 2.8rem); }
  .rootling-auth-card { gap: .55rem; padding: 1.55rem 1.3rem; }
  .rootling-auth-card h1 { font-size: 2.35rem; }
  .rootling-auth-card .rootling-form { gap: .7rem; margin-top: .5rem; }
  .rootling-auth-card .rootling-field input { min-height: 3.05rem; }
  .rootling-auth-navigation { margin-top: .9rem; }
}
/* Short single-column windows put the form first. The browser's sign-in window
   (FedCM) is 500px wide and at most 600px tall with its own bars, and above the
   form the Seedling would push Check in out of sight. */
@media (max-width: 900px) and (max-height: 620px) {
  .rootling-auth-story { display: none; }
  .rootling-auth .rootling-topbar { padding-block: .9rem; }
  .rootling-auth-content { padding-top: 0; }
}
.rootling-signout-notice { padding: .75rem 1rem; border-radius: .75rem; background: color-mix(in srgb, var(--rd-accent, #356545) 8%, transparent); line-height: 1.45; }

.rootling-create, .rootling-app {
  min-height: 100dvh; color: var(--rd-ink);
  background: radial-gradient(circle at 50% 42%, #e6efd8, transparent 45%), var(--rd-paper);
}
.rootling-create-header, .rootling-app-header {
  width: min(100%, 76rem); margin: auto; padding: 1.5rem clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.rootling-create-progress { font: 700 1rem var(--rd-font-body); color: var(--rd-accent); }
.rootling-create-content {
  width: min(100%, 46rem); margin: auto; padding: 1rem 1.25rem 3rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rootling-create-content h1 { font: 700 clamp(2.3rem, 6vw, 4rem)/1.05 var(--rd-font-display); }
.rootling-create-scene {
  position: relative; display: grid; place-items: center; width: min(100%, 25rem);
  height: clamp(15rem, 37dvh, 23rem); margin: 1rem 0; isolation: isolate;
  overflow: hidden; pointer-events: none;
}
.rootling-create-scene::before {
  content: ""; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff8e9 0 34%, #f4ddbc 68%, transparent 72%);
}
.rootling-create-ground {
  position: absolute; bottom: 1.3rem; width: 65%; height: 1.2rem; border-radius: 50%;
  background: #6b8654; filter: blur(.2rem);
}
.rootling-create-seed {
  width: 4.3rem; height: 5.2rem; margin-top: 2rem; border-radius: 65% 25% 65% 35%;
  background: #8b633a; transform: rotate(-28deg); box-shadow: inset -.7rem -.5rem 0 #704c2d;
}
.rootling-create-scene img {
  display: block; width: min(100%, 22rem); height: 100%; object-fit: contain;
  filter: drop-shadow(0 1rem 1rem rgba(71, 86, 49, .17)); animation: rootling-grow .45s ease-out both;
}
.rootling-create-scene-1 img { width: min(100%, 12rem); }
.rootling-create-scene-2 img { width: min(100%, 16rem); }
.rootling-create-name {
  position: absolute; bottom: 0; padding: .3rem .9rem; border-radius: 999px;
  background: var(--rd-card); color: var(--rd-ink); font: 700 1.15rem var(--rd-font-display);
}
.rootling-create-action { display: grid; gap: .7rem; width: min(100%, 23rem); }
.rootling-create-action input {
  width: 100%; min-height: 3.2rem; padding: .7rem 1rem; font: 1rem var(--rd-font-body);
  color: var(--rd-ink); background: var(--rd-card); border: 1px solid var(--rd-rule); border-radius: .7rem;
}
.rootling-create-action .rootling-primary { width: 100%; }
.rootling-create-status { min-height: 1.5rem; margin-top: .5rem; color: var(--rd-ink-2); }
.rootling-create-navigation { display: flex; justify-content: center; gap: 2rem; width: 100%; margin-top: .4rem; }
.rootling-create :focus-visible, .rootling-app :focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 3px; }
@keyframes rootling-grow { from { opacity: 0; transform: translateY(2rem) scale(.6); } to { opacity: 1; transform: translateY(0) scale(1); } }

.rootling-app-content {
  width: min(100%, 68rem); margin: auto; padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.rootling-app-character img { display: block; width: min(100%, 28rem); height: auto; margin: auto; }
.rootling-app-details h1 { font: 700 clamp(3rem, 6vw, 5rem)/1 var(--rd-font-display); }
.rootling-app-details dl { display: grid; gap: 0; margin: 1.5rem 0; border-top: 1px solid var(--rd-rule); }
.rootling-app-details dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rd-rule); }
.rootling-app-details dt { color: var(--rd-ink-2); }
.rootling-app-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.rootling-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Points, gear and badges continue the character sheet below the Rootling:
   the same hairline rules and text actions, with the shared ledger rows,
   tier label and badge grid from components.css. */
.rootling-app-progress .rootling-app-content { padding-bottom: 2.5rem; }
@media (min-width: 701px) { .rootling-app-progress .rootling-app-character img { width: min(100%, 22rem); } }
.rootling-progress {
  width: min(100%, 68rem); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(1.75rem, 4vw, 3rem);
}
.rootling-progress[aria-busy="true"] { min-height: 14rem; }
.rootling-progress-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--rd-rule);
}
.rootling-progress-heading h2 { font: 700 1.6rem/1.1 var(--rd-font-display); }
.rootling-progress-tally, .rootling-tier, .rootling-progress h3, .rootling-badge-state {
  font-family: var(--rd-font-mono); font-size: .66rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
}
.rootling-progress-tally, .rootling-tier { color: var(--rd-accent); }
.rootling-progress h3 { margin: 1.5rem 0 .15rem; color: var(--rd-ink-2); }
.rootling-wallet {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rd-rule);
}
.rootling-wallet-name { display: grid; gap: .25rem; min-width: 0; }
.rootling-wallet-figure { display: grid; justify-items: end; gap: .15rem; }
.rootling-wallet-figure strong { font: 700 2.1rem/1 var(--rd-font-display); font-variant-numeric: tabular-nums; }
.rootling-wallet-figure small, .rootling-gear-note { font-size: .82rem; font-style: italic; color: var(--rd-ink-2); }
.rootling-progress .ledger-row { min-height: 3.25rem; padding: .55rem 0; font-size: .95rem; }
.rootling-progress .ledger-row .what { display: grid; gap: .1rem; }
.rootling-progress .ledger-row .what span { font-size: .82rem; color: var(--rd-ink-2); }
.rootling-progress .ledger-row .amt { font-size: .9rem; }
.rootling-progress .rootling-history-heading {
  font: 600 .85rem/1.5 var(--rd-font-mono);
  letter-spacing: normal;
  text-transform: none;
}
.rootling-history .ledger-row { font-family: var(--rd-font-mono); font-weight: 500; }
.rootling-history .ledger-row .what span { font-style: normal; font-weight: 400; }
.rootling-history .ledger-row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.rootling-gear-note { text-align: right; }
.rootling-progress-empty { padding: .85rem 0; font-style: italic; color: var(--rd-ink-2); }
.rootling-badges { margin: 1rem 0 0; padding: 0; list-style: none; }
.rootling-badges .badge { font-size: .82rem; color: var(--rd-ink); }
.rootling-badges .badge.locked { opacity: .55; }
.rootling-badge-state { font-size: .56rem; color: var(--rd-ink-2); }
.rootling-progress-status { grid-column: 1 / -1; }
/* Settings use the same ruled rows and the sign-in pages' underlined fields;
   their layout is at the end of this file. */
.rootling-setting-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1rem; }
.rootling-setting-form select {
  width: 100%; min-height: 2.9rem; padding: .55rem .7rem; font: 1rem var(--rd-font-body); color: var(--rd-ink);
  background: var(--rd-field, var(--rd-paper-2)); border: 0; border-bottom: 2px solid var(--rd-rule); border-radius: 0;
}
.rootling-setting-form select:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 3px; }
.rootling-field[hidden] { display: none; }
.rootling-progress > section > .rootling-app-actions { margin-top: .5rem; }
@media (max-width: 900px) {
  .rootling-progress { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
}

@media (max-width: 700px) {
  .rootling-app-content { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .rootling-app-character img { width: min(55vw, 14rem); }
  .rootling-create-scene { height: clamp(13rem, 32dvh, 19rem); }
  .rootling-create-scene-3 img { width: min(100%, 17rem); }
}
@media (prefers-reduced-motion: reduce) { .rootling-create-scene img { animation: none; } }

/* Rootling updates: the same brief paper surface Kava Plaza uses
   (Kava Plaza web/styles/notifications.css), present only during an update. */
.notification-popups {
  position: fixed; z-index: 1100; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right));
  width: min(26rem, calc(100vw - 2rem)); pointer-events: none;
}
.notification-popup {
  position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2rem; gap: .65rem;
  padding: 1.1rem .7rem 1rem 1rem; max-height: calc(100dvh - max(2rem, env(safe-area-inset-top)) - env(safe-area-inset-bottom));
  overflow: auto; isolation: isolate; pointer-events: auto; color: var(--rd-ink); background: var(--rd-paper);
  border: 1px solid var(--rd-rule); border-radius: 2rem .75rem 1.75rem .75rem;
  box-shadow: .25rem .35rem 0 var(--rd-worn), 0 1rem 3rem color-mix(in srgb, var(--rd-ink) 13%, transparent);
  font-family: var(--rd-font-body); transform-origin: top right;
  animation: notification-arrive .48s cubic-bezier(.16, 1, .3, 1) both;
}
.notification-art { align-self: center; position: relative; }
.notification-art::before {
  content: ""; position: absolute; inset: 10% -5%; background: var(--rd-accent-soft);
  border-radius: 60% 40% 65% 35%; transform: rotate(-12deg); z-index: -1;
}
.notification-art img { display: block; width: 3.5rem; height: 3.5rem; object-fit: contain; }
.notification-content { min-width: 0; overflow-wrap: anywhere; }
.notification-eyebrow {
  display: block; margin-bottom: .3rem; font: .65rem var(--rd-font-mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--rd-ink-3);
}
.notification-copy h2 { margin: 0; font: 600 1.15rem/1.2 var(--rd-font-display); }
.notification-copy p { margin: .5rem 0; font-size: .95rem; line-height: 1.4; }
.notification-popup .notification-dismiss {
  align-self: start; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.5rem -.25rem 0 -.5rem;
  padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--rd-ink-3);
  font: 1.5rem var(--rd-font-body); letter-spacing: 0; text-transform: none; cursor: pointer;
}
.notification-popup .notification-dismiss:hover { color: var(--rd-ink); background: var(--rd-accent-soft); }
.notification-popup :focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
.notification-flourish { position: absolute; bottom: 0; left: 1rem; width: 3rem; height: 3px; background: var(--rd-accent); border-radius: 3px 3px 0 0; }
.notification-popup.is-leaving { animation: notification-depart .22s ease-in both; pointer-events: none; }
@keyframes notification-arrive { from { opacity: 0; transform: translateY(-1.5rem) rotate(2deg) scale(.96); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@keyframes notification-depart { to { opacity: 0; transform: translateY(-.8rem) scale(.98); } }
@media (max-width: 480px) {
  .notification-popups { top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); width: calc(100vw - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) { .notification-popup, .notification-popup.is-leaving { animation-duration: .001ms; transform: none; } }

/* ── Signed-out pages on Kava Plaza's page frame (shared lens.css .home-shell) ──
   Page numbers, edges, swipes, arrow keys and the crossfade come from the shared
   page system; this only places Rootling's own art and forms in it. */
/* Kava Plaza's frame keeps every one-finger touch for page swipes
   (touch-action: none); Rootling's keeps two-finger pinch-zoom as well. */
.rootling-home { touch-action: pinch-zoom; }
.rootling-home [hidden] { display: none !important; }
/* Button lettering as on kavaplaza.com (Kava Plaza's plaza.css). */
.rootling-home .home-form button {
  font: 700 1rem/1.2 var(--rd-font-display);
  letter-spacing: 0;
  text-transform: none;
}
.rootling-home .home-entry .home-title:not(.is-small) h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.rootling-home .home-title p:empty { display: none; }
.rootling-step-count {
  display: block;
  margin-bottom: .55rem;
  font-family: var(--rd-font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rd-accent);
}
.rootling-home .home-entry .home-title.is-small h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .96; text-wrap: balance; }
.rootling-home .home-entry .home-form { width: 100%; }
.rootling-alt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .45rem; }
.rootling-alt-row.is-short { grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr)); }
.rootling-home .rootling-frame-wait { color: var(--rd-ink-3); font: 400 1.1rem/1.3 var(--rd-font-body); }
.rootling-home.is-solo .home-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.rootling-home.is-solo .home-action { display: none; }
.rootling-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.rootling-home .home-form .home-alt-action { min-width: 0; }
.rootling-home .home-form button:disabled { opacity: .6; cursor: default; }
.rootling-home .rootling-card-unavailable { margin: 0; }
/* The creation art fills whatever height its stage row leaves, so the form
   beside or beneath it always fits the screen. */
.rootling-home .home-stage:has(> .rootling-create-scene) { align-self: stretch; }
.rootling-home .rootling-create-scene {
  width: min(25rem, 100%);
  height: min(100%, 23rem);
  margin: 0;
  container-type: size;
}
.rootling-home .rootling-create-scene::before { width: min(80cqw, 94cqh); }
.rootling-home .rootling-create-scene img { animation: none; transition: width .3s ease; }
.rootling-home .rootling-create-scene.is-new img { animation: rootling-grow .45s ease-out both; }
.rootling-home .rootling-create-scene-3 img { width: min(100%, 19rem); }

@container (max-width: 760px) {
  /* A notice on a phone uses the width of the screen, not the space between wide-screen edges. */
  .rootling-home .home-fullsheet-notice { padding-inline: 1rem; }
  .rootling-home .home-fullsheet-notice::before { inset-inline: .6rem; }
  .rootling-home .home-fullsheet-note { min-height: 0; padding: 1.2rem 1.25rem; font-size: 1.15rem; }
  /* Home's title stays clear of the side edge arrows, however long the owner makes it. */
  .rootling-home .home-entry .home-title:not(.is-small) { padding-inline: 2.6rem; }
  .rootling-home .home-entry .home-title:not(.is-small) h1 { font-size: clamp(2.1rem, 10.5cqw, 4.6rem); }
  /* Keep home's title clear of the taller bottom edge phones get. */
  .rootling-home.has-bottom-action .home-main {
    padding-bottom: calc(var(--viewport-safe-bottom) + var(--mobile-browser-bottom) + 6.6rem);
  }
  .rootling-home .home-entry .home-title.is-small h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  /* The art gives way first, so the form always fits the screen. */
  .rootling-home .rootling-create-scene-1 img { width: min(100%, 10rem); }
  .rootling-home .rootling-create-scene-2 img { width: min(100%, 13rem); }
  .rootling-home .rootling-create-scene-3 img { width: min(100%, 15rem); }
  .rootling-home .rootling-create-ground { bottom: .4rem; }
  .rootling-home .rootling-create-name { font-size: 1rem; }
}

/* Short screens (a FedCM window, a phone with its keyboard, landscape): the
   frame's top and bottom edges and the type tighten so every control stays in view. */
@container (max-width: 760px) and (max-height: 640px) {
  .rootling-home .home-topline { padding-block: calc(var(--viewport-safe-top) + .55rem) .4rem; }
  .rootling-home .home-topline .rootling-logo { height: 1.7rem; }
  .rootling-home .home-main {
    gap: .6rem;
    padding-top: calc(var(--viewport-safe-top) + 2.6rem);
    padding-bottom: calc(var(--viewport-safe-bottom) + 3.4rem);
  }
  .rootling-home .home-side { height: calc(var(--viewport-safe-top) + 3rem); min-height: 3rem; }
  .rootling-home .home-side-top { padding-top: calc(var(--viewport-safe-top) + .45rem); }
  .rootling-home .home-side-bottom { height: calc(var(--viewport-safe-bottom) + 3.2rem); padding-bottom: calc(var(--viewport-safe-bottom) + .5rem); }
  .rootling-home .home-side-left, .rootling-home .home-side-right { height: 100%; }
  .rootling-home .home-title h1, .rootling-home .home-copy h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .rootling-home .home-entry .home-title.is-small h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .rootling-home .home-title p, .rootling-home .home-copy p { margin-top: .4rem; font-size: 1rem; line-height: 1.3; }
  .rootling-home .home-entry { gap: .6rem; }
  .rootling-home .home-form { gap: .45rem; }
  .rootling-home .home-form input { min-height: 2.75rem; font-size: 1rem; }
  .rootling-home .home-form button { min-height: 2.75rem; }
  .rootling-home .home-hero-piece .brand-rootling { width: min(11rem, 34cqh); }
}

/* ── The signed-in Rootling page on Kava Plaza's signed-in carousel ──────────
   (shared lens.css .me-carousel-shell). The Rootling sits in the middle; each
   other page holds one panel (Kava Plaza's .me-tool) and stays one screen. */
.rootling-me { touch-action: pinch-zoom; }
.rootling-me [hidden] { display: none !important; }
.rootling-me .me-carousel-topline {
  align-items: center;
  pointer-events: none;
}
.rootling-me .me-rootling-focus { gap: clamp(.45rem, 1.4vmin, .9rem); }
.rootling-me .me-rootling-art { width: min(22rem, 40cqh); }
.rootling-me .me-rootling-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rootling-me .me-rootling-focus h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.rootling-me-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.6rem;
  width: min(40rem, 100%); margin: 0;
}
.rootling-me-facts > div { display: grid; justify-items: center; gap: .1rem; min-width: 0; }
.rootling-me-facts dt {
  font-family: var(--rd-font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-ink-4);
}
.rootling-me-facts dd { margin: 0; font: 700 1.05rem/1.2 var(--rd-font-display); color: var(--rd-ink); text-align: center; }
.rootling-me-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
/* The two button kinds of Kava Plaza's forms (lens.css .home-form). */
.rootling-me-action {
  min-height: max(2.6rem, 44px); padding: .45rem 1.2rem; border: 0; border-radius: 0; cursor: pointer;
  color: var(--rd-card); background: var(--rd-ink);
  clip-path: polygon(.6rem 0, 100% 0, calc(100% - .6rem) 100%, 0 100%);
  font: 700 .95rem/1.2 var(--rd-font-display); letter-spacing: 0; text-transform: none; touch-action: manipulation;
}
.rootling-me-action.is-quiet {
  color: var(--rd-accent);
  background:
    linear-gradient(90deg, rgba(242, 235, 210, .86), rgba(242, 235, 210, .48)),
    linear-gradient(var(--rd-accent-soft), var(--rd-accent-soft));
  box-shadow: .08rem .12rem .35rem -.25rem rgba(60, 35, 5, .45);
  clip-path: polygon(.45rem 0, 100% 0, calc(100% - .28rem) 100%, 0 100%);
}
.rootling-me-action:hover, .rootling-me-action:focus-visible { outline: 0; color: var(--rd-card); background: var(--rd-accent); }
.rootling-me .me-page > .me-tool { width: min(36rem, 100%); max-height: 100%; padding: clamp(.85rem, 2.2vmin, 1.5rem) clamp(1rem, 2.6vmin, 1.8rem); }
.rootling-me .rootling-progress { display: block; width: 100%; margin: 0; padding: 0; }
.rootling-me .rootling-progress[aria-busy="true"] { min-height: 8rem; }
.rootling-me .rootling-progress h3 { margin-top: .9rem; }
/* The Rootling page (3.01): the Rootling with its name, hidden tag and username,
   and its stats beside it, the same ruled sections as the settings page. Wide
   screens set them side by side; narrow ones stack them, the Rootling smaller and
   the lists shorter, so the page stays one screen. */
.rootling-me .rootling-profile {
  width: min(72rem, 100%); height: 100%; min-height: 0;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(1.25rem, 4vw, 4rem);
}
.rootling-me .rootling-profile.is-solo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.rootling-me .rootling-profile-identity { width: 100%; }
.rootling-me .rootling-profile .me-rootling-art { width: min(20rem, 40cqh); }
/* The Rootling render is portrait: as tall as the Seedling's square, narrower. */
.rootling-me .rootling-profile .me-rootling-art.is-tall { width: auto; height: min(26rem, 52cqh); aspect-ratio: 760 / 1137; }
.rootling-me .rootling-profile .me-rootling-focus h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
/* One line each, always: fitOneLine (frame.js) shrinks the font to fit the box. */
.rootling-profile-name, .rootling-profile-handle {
  display: block; width: 100%; max-width: 100%; overflow: hidden; white-space: nowrap; text-align: center;
}
.rootling-profile-handle { margin: -.35rem 0 0; font: 400 .95rem/1.25 var(--rd-font-mono); color: var(--rd-ink-2); }
/* The username and its tag read as one string, "@name#1234". */
.rootling-profile-tag { letter-spacing: .06em; color: var(--rd-ink-3); }
.rootling-profile-stats {
  min-width: 0; max-height: 100%; overflow: hidden;
  display: grid; align-content: center; gap: clamp(.6rem, 2.2cqh, 1.4rem);
}
.rootling-me .rootling-profile-stats .rootling-progress { display: block; width: 100%; margin: 0; padding: 0; }
.rootling-me .rootling-profile-stats .rootling-progress-heading { padding-bottom: .35rem; }
.rootling-me .rootling-profile-stats .rootling-progress-heading h2 { font-size: 1.15rem; }
.rootling-me .rootling-profile-stats .rootling-wallet { padding: .4rem 0; }
.rootling-me .rootling-profile-stats .rootling-wallet-figure strong { font-size: 1.6rem; }
.rootling-me .rootling-profile-stats .ledger-row { min-height: 2.4rem; padding: .2rem 0; }
.rootling-me .rootling-profile-stats .rootling-progress h3 { margin: .45rem 0 0; }
/* Badges beside the Rootling are chips, not tiles, so any number fits a row. */
.rootling-me .rootling-profile-stats .rootling-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.rootling-me .rootling-profile-stats .rootling-badges .badge {
  aspect-ratio: auto; flex-direction: row; gap: .35rem; padding: .25rem .6rem .25rem .45rem; font-size: .82rem;
}
.rootling-me .rootling-profile-stats .rootling-badges .badge svg { width: 1rem; height: 1rem; }
.rootling-me .rootling-profile-stats .rootling-badges .badge:nth-child(n+9) { display: none; }

/* Rows left out whole because they would run into the page dots (progression.js). */
.rootling-me .rootling-profile-stats .is-cut { display: none !important; }

/* Text that never wraps (fitOneLine shrinks it to fit). */
.rootling-one-line { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; }
.rootling-wallet-figure { min-width: 0; max-width: 62%; }
.rootling-wallet-name { flex: 1 1 auto; }
.rootling-wallet-figure .rootling-one-line { text-align: right; }

/* The wordmark in the top line, as on rootdoma.in. */
.rootling-logo { display: block; width: auto; height: clamp(1.9rem, 4.2vmin, 2.8rem); }
html[data-appearance="dark"] .rootling-logo { filter: invert(1); }

.rootling-me-status {
  position: absolute; left: 50%; bottom: 1.7rem; z-index: 7; transform: translateX(-50%);
  width: max-content; max-width: min(32rem, calc(100% - 2rem)); text-align: center;
  color: var(--rd-ink-2); font-size: .92rem;
}
.rootling-me-status:empty { display: none; }

@container (max-width: 760px) {
  /* Stacked: aligned from the top so nothing is ever cut off above, the Rootling
     smaller and its facts on one line, two gear rows and one row of badges. */
  .rootling-me .rootling-profile { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .7rem; }
  .rootling-me .rootling-profile .me-rootling-art { width: min(6rem, 13cqh); }
  .rootling-me .rootling-profile .me-rootling-art.is-tall { width: auto; height: min(8.5rem, 17cqh); }
  .rootling-me .rootling-profile .me-rootling-focus h1 { font-size: clamp(1.8rem, 8.5cqw, 2.6rem); }
  .rootling-me .rootling-profile-identity { gap: .2rem; }
  .rootling-me .rootling-profile .rootling-me-facts { gap: .1rem 1.2rem; }
  .rootling-me .rootling-profile .rootling-me-facts dd { font-size: .9rem; }
  .rootling-me .rootling-profile-stats { align-content: start; gap: .55rem; }
  .rootling-me .rootling-profile-stats .rootling-wallet { padding: .25rem 0; }
  .rootling-me .rootling-profile-stats .rootling-wallet-figure strong { font-size: 1.35rem; }
  .rootling-me .rootling-profile-stats .rootling-badges .badge:nth-child(n+4) { display: none; }
  .rootling-me .rootling-profile-stats .rootling-history,
  .rootling-me .rootling-profile-stats .rootling-progress h3 { display: none; }
  .rootling-me .rootling-profile-stats .rootling-gear-row:nth-child(n+3) { display: none; }
  .rootling-me .me-rootling-art { width: min(15rem, 30cqh); }
  .rootling-me .me-rootling-focus h1 { font-size: clamp(2.2rem, 11cqw, 3.6rem); }
  .rootling-me-facts { gap: .35rem 1.1rem; }
  .rootling-me-status { bottom: calc(var(--viewport-safe-bottom) + var(--mobile-browser-bottom) + 7rem); }
}

/* Short screens keep every panel to one screen: shorter rows, fewer recent points. */
@container (max-height: 700px) {
  .rootling-me .rootling-progress .ledger-row { min-height: 2.6rem; padding: .3rem 0; }
  .rootling-me .rootling-history .ledger-row:nth-child(n+4) { display: none; }
  .rootling-me .rootling-progress h3 { margin-top: .5rem; }
  .rootling-me .rootling-progress-heading h2 { font-size: 1.3rem; }
}
@container (max-width: 760px) and (max-height: 640px) {
  .rootling-me .me-carousel-main {
    padding-top: calc(var(--viewport-safe-top) + 2.8rem);
    padding-bottom: calc(var(--viewport-safe-bottom) + 3.6rem);
  }
  .rootling-me .home-side { height: calc(var(--viewport-safe-top) + 3rem); min-height: 3rem; }
  .rootling-me .home-side-top { padding-top: calc(var(--viewport-safe-top) + .45rem); }
  .rootling-me .home-side-bottom { height: calc(var(--viewport-safe-bottom) + 3.2rem); padding-bottom: calc(var(--viewport-safe-bottom) + .5rem); }
  .rootling-me .home-side-left, .rootling-me .home-side-right { height: 100%; }
  .rootling-me .me-carousel-rail { bottom: calc(var(--viewport-safe-bottom) + 3.4rem); }
  .rootling-me-status { bottom: calc(var(--viewport-safe-bottom) + 4.2rem); }
  .rootling-me .me-rootling-art { width: min(10rem, 26cqh); }
}

/* ── Settings: readable at any zoom, one screen at any size (owner, 2026-12-01) ──
   The shared page scale (base.css) sets the root between 9.5px and 15px with the
   viewport, which left Settings' text near 10px on a desktop browser at 140%
   zoom. The Settings panel keeps its own size, never below 16px, and everything
   in it is sized in em from there. Sign out has a reserved place in the panel's
   head. Rows take two columns where the width allows; settings.js shows the full
   overview when it fits the height and the compact one when it doesn't. Every
   form opens in its own section, so the list and a form never compete for room. */
.rootling-me .me-page-settings > .me-tool {
  width: min(60em, 100%);
  font-size: max(16px, 1rem);
  padding: clamp(.7em, 2.2vmin, 1.4em) clamp(.9em, 2.6vmin, 1.6em);
}
.rootling-me .me-page-settings .rootling-progress { max-width: none; }
.rootling-me .rootling-settings { container-type: inline-size; display: grid; gap: .25em; min-width: 0; }
.rootling-me .rootling-settings-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5em 1em;
  min-height: 2.75em; padding-bottom: .4em;
}
.rootling-me .rootling-settings-head h2 {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 1.5em/1.15 var(--rd-font-display);
}
.rootling-me .rootling-settings-head:has(+ .rootling-settings-list:empty) { padding-bottom: 0; border-bottom: 0; }
.rootling-me .rootling-settings-head.is-section { justify-content: flex-start; }
.rootling-me .rootling-settings-head.is-section h2 { padding-left: .55em; border-left: 1px solid var(--rd-rule); }
.rootling-settings-leave { display: flex; align-items: center; gap: .75em; flex: none; }
.rootling-settings-leave > span { font: 400 .875em/1.2 var(--rd-font-body); color: var(--rd-ink-2); white-space: nowrap; }
.rootling-me .rootling-settings .rootling-me-action { min-height: 2.75em; padding: .45em 1.25em; font-size: 1em; }
.rootling-me .rootling-settings .rootling-quiet { min-height: 44px; font-size: .875em; }
.rootling-settings .rootling-setting-actions { gap: 0 1.15em; }
.rootling-settings-back { display: inline-flex; align-items: center; gap: .3em; flex: none; }
.rootling-settings-chevron { flex: none; display: grid; width: 1em; height: 1em; color: var(--rd-accent); }
.rootling-settings-chevron svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The full overview: ruled rows with their actions. */
.rootling-settings-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.25em; align-content: start; }
.rootling-me .rootling-settings .ledger-row {
  min-height: 3.5em; padding: .3em 0; gap: .5em 1em; font-size: 1em; font-weight: 500;
  border-top: 0; border-bottom: 1px solid rgba(60, 40, 10, .12);
}
.rootling-settings .ledger-row .what { display: grid; gap: .1em; }
.rootling-me .rootling-settings .ledger-row .what span { font-size: .875em; font-weight: 400; color: var(--rd-ink-2); }
@container (min-width: 38em) {
  .rootling-settings-list:not(.is-compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The compact overview: one labelled entry per row, each opening its section. */
.rootling-settings-list.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(13em, 100%), 1fr)); column-gap: 1.5em; }
.rootling-me .rootling-setting-entry {
  display: flex; align-items: center; gap: .75em; width: 100%; min-width: 0; min-height: 3.25em; margin: 0; padding: .3em .1em;
  color: var(--rd-ink); background: none; border: 0; border-bottom: 1px solid rgba(60, 40, 10, .12); border-radius: 0;
  font: 500 1em/1.25 var(--rd-font-body); text-align: left; text-transform: none; letter-spacing: 0;
}
.rootling-me button.rootling-setting-entry { cursor: pointer; }
.rootling-setting-entry .what { flex: 1; min-width: 0; display: grid; gap: .05em; }
.rootling-setting-entry .what b { font-weight: 600; }
.rootling-setting-entry .what span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .875em; font-style: italic; font-weight: 400; color: var(--rd-ink-2);
}
.rootling-me button.rootling-setting-entry:hover .what b { color: var(--rd-accent); }
.rootling-me button.rootling-setting-entry:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
/* The tightest overview, for very short screens (a phone on its side): the
   entries' names alone, in as many columns as fit. */
.rootling-settings-list.is-compact.is-tight { grid-template-columns: repeat(auto-fill, minmax(min(10em, 100%), 1fr)); }
.rootling-me .rootling-settings-list.is-tight .rootling-setting-entry { min-height: 2.75em; }
.rootling-settings-list.is-tight .rootling-setting-entry .what span { display: none; }
@container (max-height: 420px) {
  .rootling-me .me-page-settings > .me-tool { padding-block: .4em; }
}

/* Stacked, Settings is the first page and has no top edge, so it starts right
   under the wordmark. */
@container (max-width: 760px) {
  .rootling-me[data-page="settings"] .me-carousel-main { padding-top: calc(var(--viewport-safe-top) + .5rem); }
}

/* One section: what its row says, its actions, and its form, in columns where they fit. */
.rootling-settings-section { display: grid; gap: .35em; min-width: 0; }
.rootling-me .rootling-settings-section > .rootling-setting-row:first-child .what span { font-size: 1em; font-style: normal; color: var(--rd-ink); }
.rootling-me .rootling-settings .rootling-setting-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11em, 100%), 1fr)); align-items: end;
  gap: .6em 1.25em; margin-top: .35em;
}
.rootling-me .rootling-settings .rootling-setting-form > .rootling-setting-actions { grid-column: 1 / -1; justify-content: flex-start; }
.rootling-me .rootling-settings .rootling-field { gap: .3em; font: 700 .875em/1.3 var(--rd-font-body); color: var(--rd-ink-2); }
.rootling-me .rootling-settings .rootling-field input,
.rootling-me .rootling-settings .rootling-setting-form select { min-height: 44px; font-size: max(16px, 1rem); }

/* The Active Rootling: a head-crop thumbnail in its row, and a visual chooser
   (owner, 2026-12-01). Each option is the design's own art, as the Rootling page
   resolves it, with its base or franchise name and its evolution always written
   under it, so designs that share art stay distinct. The saved design says
   Current; the selected one is ringed and checked. */
.rootling-setting-art { flex: none; width: 2.75em; height: 2.75em; object-fit: contain; }
.rootling-me .rootling-settings .rootling-chooser { grid-template-columns: minmax(0, 1fr); gap: .5em; }
.rootling-chooser-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9em, 100%), 1fr)); gap: .6em; }
.rootling-chooser-option {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .25em; min-width: 0;
  padding: .6em .55em .55em; cursor: pointer; text-align: center;
  font: 500 1em/1.25 var(--rd-font-body); color: var(--rd-ink); /* not the shared label's small type */
  background: color-mix(in srgb, var(--rd-card) 50%, transparent);
  border: 1px solid var(--rd-rule); border-radius: var(--rd-radius);
  transition: border-color .15s, background-color .15s;
}
.rootling-chooser-option:hover { border-color: var(--rd-accent); }
.rootling-chooser-option:has(input:checked) {
  border-color: var(--rd-accent); background: var(--rd-accent-soft); box-shadow: inset 0 0 0 1px var(--rd-accent);
}
.rootling-chooser-option:has(input:focus-visible) { outline: 2px solid var(--rd-accent); outline-offset: 2px; }
.rootling-chooser-art { display: block; width: 100%; height: 6.5em; }
.rootling-chooser-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .4em .3em rgba(39, 25, 11, .14)); }
.rootling-chooser-text { display: grid; gap: .05em; width: 100%; min-width: 0; }
.rootling-chooser-text b { overflow: hidden; white-space: nowrap; font-weight: 600; color: var(--rd-ink); }
.rootling-chooser-text > span { font-size: .875em; color: var(--rd-ink-2); }
.rootling-me .rootling-chooser-text > .rootling-chooser-current {
  justify-self: center; font: 700 .875em/1.3 var(--rd-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--rd-accent);
}
.rootling-chooser-check {
  position: absolute; top: .4em; right: .4em; display: none; width: 1.4em; height: 1.4em; padding: .2em;
  color: var(--rd-card); background: var(--rd-accent); border-radius: 50%;
}
.rootling-chooser-check svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rootling-chooser-option:has(input:checked) .rootling-chooser-check { display: block; }
.rootling-chooser-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5em; }
.rootling-chooser-pages { display: flex; align-items: center; gap: 0 1em; }
.rootling-chooser-pages > span { font-size: .875em; color: var(--rd-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rootling-me .rootling-settings .rootling-quiet:disabled { opacity: .45; cursor: default; }
.rootling-chooser-error { margin: 0; font: 600 .875em/1.35 var(--rd-font-body); color: var(--rd-error, #9A4A1E); }
.rootling-chooser-error:empty { display: none; }
/* Very short screens: the head crop beside the labels. */
.rootling-chooser.is-short .rootling-chooser-options { grid-template-columns: repeat(auto-fill, minmax(min(12em, 100%), 1fr)); }
.rootling-chooser.is-short .rootling-chooser-option {
  grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: .6em; padding: .3em 2em .3em .45em; text-align: left;
}
.rootling-chooser.is-short .rootling-chooser-art { width: 2.75em; height: 2.75em; }
.rootling-me .rootling-chooser.is-short .rootling-chooser-text > .rootling-chooser-current { justify-self: start; }
.rootling-chooser.is-short .rootling-chooser-check { top: 50%; transform: translateY(-50%); }
