@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Nunito:wght@400;600;700;800&display=swap');

/* ---------- tokens ---------- */
:root{
  --ink: #1e2a44;
  --ink-purple: #3c2a57;

  --cream: #f7f1e3;
  --white: #ffffff;

  --moss: #4b7a44;
  --moss-dark: #375a31;
  --moss-light: #dbe9d4;
  --link-green: #2ea852;

  --orange: #c1592b;
  --orange-dark: #9c4620;
  --orange-light: #f4ddc9;

  --purple: #6c4b91;
  --purple-dark: #503670;
  --purple-light: #e6dcee;

  --red: #a4362c;
  --red-dark: #7d2921;
  --red-light: #f2d9d6;

  --brown: #6b4a34;
  --brown-dark: #4a3221;
  --brown-light: #e6dcd2;

  --border-width: 3px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-offset: 5px;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --table-head-bg: #ece2cd;
  --mobile-panel-bg: #e6e6e6;
  --soft-grey: #eeece5;
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
img{ max-width: 100%; display: block; }
a{ color: var(--link-green); text-decoration: none; }
a:hover{ color: var(--purple); text-decoration: underline; }
a:active{ color: var(--orange-dark); }

h1, h2, h3{
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--ink);
}
h1{ font-size: 2.6rem; font-weight: 600; }
h2{ font-size: 1.7rem; margin-top: 3.6rem; margin-bottom: 1.4rem; }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1rem; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- hard flat offset shadow, the site's core material ---------- */
.slab{
  background: var(--white);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}

/* ---------- highlight marks, used instead of bold ---------- */
mark, mark.mark-moss{
  background: var(--moss-light);
  color: var(--ink);
  padding: .05em .35em;
  border-radius: 5px;
  box-decoration-break: clone;
}
mark.mark-orange{ background: var(--orange-light); }
mark.mark-purple{ background: var(--purple-light); }

/* ---------- header / nav ---------- */
.site-header{
  position: relative;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border-width) solid var(--ink);
}
.nav-bar{
  position: relative;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-home{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-home:hover{ color: var(--moss-dark); text-decoration: none; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-weight: 700;
  list-style: none;
  padding: 0;
}
.nav-links > li{ position: relative; }
.nav-links a{
  color: var(--ink);
  text-decoration: none;
  padding: 8px 4px;
}
.nav-links a:hover{ color: var(--moss-dark); text-decoration: none; }

.nav-dropdown-toggle{
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 4px;
}
.nav-dropdown-toggle:hover{ color: var(--moss-dark); }
.nav-dropdown-toggle::after{ content: "▾"; font-size: 1.15em; line-height: 1; }

.nav-dropdown-panel{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 240px;
  background: var(--white);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
  padding: 8px;
  display: none;
  z-index: 20;
}
.nav-links > li.open .nav-dropdown-panel{ display: block; }
.nav-dropdown-panel a{
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-panel a:hover{ background: var(--moss-light); color: var(--ink); text-decoration: none; }
.nav-dropdown-panel .nav-link-inactive{
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--soft-grey);
  color: #8b8578;
  cursor: default;
}

a.nav-back{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  line-height: 1.25;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  opacity: .85;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
}
.nav-back:hover{ opacity: 1; background: var(--moss-light); }

.hamburger-toggle{ display: none; }
.hamburger-label{
  display: none;
  margin-left: auto;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}

/* ---------- page header / hero ---------- */
.page-hero{
  padding: 44px 0 60px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.page-hero-text{ flex: 1 1 320px; }
.page-hero-text p{
  font-size: 1.15rem;
  max-width: 60ch;
}

.tool-body{ margin-top: 20px; }
.button-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 40px;
}

.animal-frame{
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--moss);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.animal-frame img{ width: 100%; height: 100%; object-fit: cover; }

.page-hero .animal-frame{
  cursor: pointer;
  user-select: none;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 22px;
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover{ color: var(--ink); }
.btn:not(:disabled):hover{
  filter: brightness(1.12) saturate(1.15);
}
.btn:active, .btn.is-pressed{
  transform: translate(var(--shadow-offset), var(--shadow-offset));
  box-shadow: 0 0 0 var(--ink);
}
.btn:disabled:hover{ filter: none; }

.btn-primary{ background: var(--moss); color: var(--white); border-color: var(--moss-dark); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--moss-dark); }
.btn-primary:hover{ color: var(--white); }
.btn-primary:active{ box-shadow: 0 0 0 var(--moss-dark); }

.btn-secondary{ background: var(--orange); color: var(--white); border-color: var(--orange-dark); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--orange-dark); }
.btn-secondary:hover{ color: var(--white); }
.btn-secondary:active{ box-shadow: 0 0 0 var(--orange-dark); }

.btn-accent{ background: var(--purple); color: var(--white); border-color: var(--purple-dark); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--purple-dark); }
.btn-accent:hover{ color: var(--white); }
.btn-accent:active{ box-shadow: 0 0 0 var(--purple-dark); }

.btn-danger{ background: var(--red); color: var(--white); border-color: var(--red-dark); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--red-dark); }
.btn-danger:hover{ color: var(--white); }
.btn-danger:active{ box-shadow: 0 0 0 var(--red-dark); }

.btn-ghost{ background: var(--cream); }

.btn:disabled{
  filter: grayscale(80%) brightness(1.05);
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}

/* ---------- tool cards ---------- */
.tool-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 40px;
  align-items: stretch;
}
.tool-card{
  position: relative;
  background: var(--white);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
  padding: 10px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: filter .12s ease;
}
.tool-card:hover{ filter: brightness(1.05) saturate(1.1); color: var(--ink); text-decoration: none; }
.tool-card:active{
  transform: translate(var(--shadow-offset), var(--shadow-offset));
  box-shadow: 0 0 0 var(--ink);
}
.tool-card.is-inactive{
  background: var(--soft-grey);
  cursor: default;
}
.tool-card.is-inactive:hover{ filter: none; }
.tool-card.is-inactive:active{ box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink); transform: none; }
.tool-card.is-inactive::after{ display: none; }
.tool-card.is-inactive .tool-card-title,
.tool-card.is-inactive p,
.tool-card.is-inactive .tool-card-category{
  color: #8b8578;
}
.tool-card.is-inactive .animal-frame{ filter: grayscale(100%) opacity(.75); }

.tool-card::after{
  content: "✨";
  position: absolute;
  top: 46px;
  right: 12px;
  font-size: 1.7rem;
  opacity: 0;
  transform: scale(.6) rotate(-15deg);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.tool-card-category{
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--soft-grey);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.4;
}
.tool-card:hover::after{
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.tool-card .animal-frame{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  font-size: 3rem;
  box-shadow: none;
  border-width: 2px;
}
.tool-card-title{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 4px 0 0;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tool-card p{
  flex: 1 1 auto;
  margin: 0;
  padding: 10px 12px;
  background: var(--soft-grey);
  border: 1.5px solid #9a958c;
  border-radius: var(--radius-sm);
  font-size: 1.03rem;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}
.tool-card .tool-emoji{ display: block; font-size: 1.3rem; line-height: 1; text-align: right; }

/* ---------- badges / tags ---------- */
.badge{
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.badge-moss{ background: var(--moss-light); }
.badge-orange{ background: var(--orange-light); }
.badge-purple{ background: var(--purple-light); }

/* ---------- notices ---------- */
.notice{
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  background: var(--white);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}
.notice-moss{ background: var(--moss-light); }
.notice-orange{ background: var(--orange-light); }
.notice-purple{ background: var(--purple-light); }

/* ---------- forms ---------- */
label{ display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], input[type=search], textarea, select{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  margin-bottom: 16px;
}
textarea{ resize: vertical; min-height: 220px; font-family: 'DM Mono', monospace; }
input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, textarea:focus, select:focus{
  outline: none;
  box-shadow: 3px 3px 0 var(--purple);
}
.checkbox-row, .radio-row{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
}
.checkbox-row input, .radio-row input{ width: auto; margin: 0; box-shadow: none; }
.checkbox-row input:focus, .radio-row input:focus{ box-shadow: none; outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- table ---------- */
table{ width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; }
th, td{ text-align: left; vertical-align: middle; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
th{ font-family: var(--font-heading); font-weight: 700; background: var(--table-head-bg); }
thead th:first-child{ border-top-left-radius: var(--radius-sm); }
thead th:last-child{ border-top-right-radius: var(--radius-sm); }

/* ---------- chart / graph frame — always white, regardless of page bg ---------- */
.chart-frame{
  background: var(--white);
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
}

/* ---------- copy-confirmation toast, floats up above whatever button triggered it ---------- */
.copy-toast-wrap{ position: relative; display: inline-block; }
.copy-toast{
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 6px);
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  color: var(--moss-dark);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.copy-toast.show{
  animation: copyToastFloat 1.3s ease forwards;
}
@keyframes copyToastFloat{
  0%{ opacity: 0; transform: translate(-50%, 6px); }
  15%{ opacity: 1; transform: translate(-50%, 0); }
  100%{ opacity: 0; transform: translate(-50%, -22px); }
}

/* ---------- static text panel, e.g. a long explanatory block — brown instead of ink ---------- */
.text-panel{
  background: var(--white);
  border: var(--border-width) solid var(--brown-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--brown-dark);
  padding: 44px 70px;
  margin-top: 56px;
  font-size: 1.14rem;
}
.text-panel p:last-child{ margin-bottom: 0; }

/* ---------- entry row: a textarea paired with a live stat sidebar ---------- */
.entry-row{
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.entry-row textarea{ flex: 1 1 auto; margin-bottom: 0; }

.stats-side{
  flex: 0 0 210px;
  width: 210px;
  background: var(--soft-grey);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.stats-q{ border-left: 5px solid var(--moss); }
.stats-a{ border-left: 5px solid var(--orange); }

.stat-block{ padding-top: 10px; }
.stat-block:first-child{ padding-top: 0; }
.stat-block + .stat-block{ border-top: 1px solid rgba(30, 42, 68, .15); }

.stat-label{
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.stat-val{
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2px;
  color: var(--ink);
}

/* ---------- ratio strip ---------- */
.ratio-bar{
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--soft-grey);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 16px 28px;
  margin: 28px 0;
  font-size: 1.15rem;
}
.ratio-bar .ratio-title{ font-weight: 800; flex: 0 0 auto; }
.ratio-item{ flex: 0 0 auto; }
.ratio-val{
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 800;
}
.ratio-ok{ color: var(--link-green); }

/* ---------- short field grid, e.g. a row of labeled class-name inputs ---------- */
.field-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- shared status toast for pages with several action buttons ---------- */
.status-toast{
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--moss-dark);
  opacity: 0;
  transition: opacity .15s ease-in-out;
  margin-top: 14px;
}
.status-toast.show{ opacity: 1; }

/* ---------- upload dropzone — standing rule: grey, thick dashed darker-grey border, rounded, no shadow ---------- */
.dropzone{
  display: block;
  background: var(--soft-grey);
  border: 3px dashed #9a958c;
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.dropzone:hover, .dropzone.drag{
  background: #e6e2d6;
  border-color: #7d7869;
}
.dropzone input[type=file]{ display: none; }
.dz-title{ font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.dz-sub{ font-size: .88rem; color: var(--ink); opacity: .7; }

.dropzone.uploaded{
  opacity: .55;
  filter: grayscale(60%);
  cursor: not-allowed;
}

.hidden{ display: none !important; }

/* ---------- range slider ---------- */
input[type=range]{
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: var(--soft-grey);
  border: 2px solid var(--ink);
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  border: 2px solid var(--ink);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* ---------- toggle switch ---------- */
.toggle-switch{
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--soft-grey);
  border: 2px solid var(--ink);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .15s ease;
}
.toggle-switch::after{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  transition: transform .15s ease;
}
.toggle-switch.on{ background: var(--moss-light); }
.toggle-switch.on::after{ transform: translateX(20px); background: var(--moss); }

/* ---------- accordion (collapsible list groups) ---------- */
.accordion{ border: 2px solid var(--ink); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.accordion-toggle{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.accordion-title{ display: flex; align-items: center; gap: 8px; }
.accordion-count{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
}
.accordion-count::after{ content: "▾"; font-size: 1.1em; transition: transform .15s ease; }
.accordion.open .accordion-count::after{ transform: rotate(180deg); }
.accordion-body{ display: none; border-top: 2px solid var(--ink); max-height: 340px; overflow-y: auto; }
.accordion.open .accordion-body{ display: block; }
.accordion-empty{ padding: 16px 18px; font-size: .9rem; color: var(--ink); }

/* ---------- filter row (search box + dropdown, sit adjacent, not stretched) ---------- */
.filter-row{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row input[type=search], .filter-row input[type=text]{ width: 220px; margin-bottom: 0; }
.filter-row select{ width: auto; margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer{
  border-top: var(--border-width) solid var(--ink);
  background: var(--white);
  padding: 28px 0;
  margin-top: 50px;
  font-size: .95rem;
}
.site-footer a{ font-weight: 700; }

/* ==========================================================================
   Mobile overrides — deliberately kept LAST in the file. Equal-specificity
   ties in CSS go to whichever rule appears later in source order, media
   query or not, so this block must stay after every base rule it might
   need to beat, or its overrides silently lose to whatever base rule for
   the same property happens to be added later in the file.
   ========================================================================== */
@media (max-width: 760px){
  .tool-grid{ grid-template-columns: 1fr; }
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .hamburger-toggle:checked ~ .nav-links{
    max-height: 2000px;
    border-bottom: var(--border-width) solid var(--ink);
  }
  .nav-links > li{ width: 100%; }
  .nav-links a, .nav-dropdown-toggle{ width: 100%; padding: 12px 20px; }
  .nav-dropdown-panel{
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    display: none;
    background: var(--mobile-panel-bg);
  }
  .nav-links > li.open .nav-dropdown-panel{ display: block; }
  .hamburger-label{ display: block; }

  .nav-links > li:last-child{
    padding: 12px 20px 18px;
  }
  .nav-links a.nav-back{
    width: auto;
  }

  .page-hero{
    flex-direction: column;
    align-items: center;
    padding-bottom: 22px;
  }
  .animal-frame{ margin: 0 auto; }
  .page-hero-text{ width: 100%; text-align: left; }

  h1{ font-size: 2.15rem; }
  .tool-body{ margin-top: 8px; }

  .button-row{
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .button-row > *{ width: 100%; }
  .copy-toast-wrap .btn{ width: 100%; }
  .button-row .btn{ justify-content: center; }

  .copy-toast{ font-size: 1.15rem; }

  .text-panel{
    padding: 26px 14px;
    margin-top: 32px;
  }

  .entry-row{
    flex-direction: column;
  }
  .stats-side{
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
  }
  .stats-side .stat-block{
    flex: 1 1 0;
    text-align: center;
    padding-top: 0;
    border-top: none;
  }
  .stats-side .stat-label{
    line-height: 1.2;
    min-height: 2.4em;
  }
  .field-grid{
    grid-template-columns: 1fr;
  }

  .ratio-bar{
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    border-radius: var(--radius-sm);
    font-size: 1.02rem;
    line-height: 1.25;
    gap: 10px 18px;
  }
}
