/* One calm, tactile studio across online and offline. No external fonts or image downloads. */
.practice-studio,
.wellbeing-offline {
  --studio-ink: #292d25;
  --studio-sage: #d9e6ce;
  --studio-paper: #fffaf0;
  --studio-orange: #efad88;
  --studio-yellow: #f0d56f;
  font-family: system-ui, sans-serif;
  color: var(--studio-ink);
}
.practice-studio {
  padding: 18px;
  border: 1px solid #d6d9cc;
  background: #fffdf6;
  border-radius: 16px;
  min-height: 250px;
}
.practice-studio.studio-terracotta {
  --studio-sage: #f7dac7;
}
.practice-studio.studio-saffron {
  --studio-sage: #f4e8b6;
}
.studio-kicker {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #626f53;
  margin: 0 0 12px;
}
.practice-studio h2 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 24px;
}
.practice-studio h3 {
  font-size: 19px;
  font-weight: 750;
  margin: 16px 0 10px;
}
.studio-help {
  font-size: 15px;
  line-height: 1.6;
  color: #59604f;
  margin: 10px 0 20px;
}
.studio-choice {
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #b6c0aa;
  background: #fffdf6;
  border-radius: 10px;
  color: #292d25;
  font: 650 15px/1.4 system-ui;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s;
}
.studio-choice:hover {
  background: #edf2e5;
}
.studio-choice[aria-pressed="true"] {
  background: var(--studio-sage, #d9e6ce);
  border-color: #566b47;
  box-shadow: inset 0 0 0 1px #566b47;
}
.studio-choice:disabled {
  opacity: 0.5;
  cursor: default;
}
.studio-choice:focus-visible,
.practice-studio :is(input, textarea):focus-visible {
  outline: 3px solid #58754c;
  outline-offset: 3px;
}
.studio-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.studio-field {
  display: block;
  font-weight: 650;
  margin: 18px 0;
}
.studio-field :is(input, textarea) {
  display: block;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bbc5b0;
  background: white;
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
  font: 400 16px/1.5 system-ui;
  color: #292d25;
}
.studio-field textarea {
  resize: vertical;
}
.studio-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.studio-compass {
  width: 190px;
  height: 190px;
  margin: 12px auto 22px;
  border: 1px solid #91a77d;
  border-radius: 50%;
  background: radial-gradient(circle, #fdfbf0 0 46%, #e0ead7 47% 65%, #f5f6e9 66%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font: 750 19px/1.4 system-ui;
  box-sizing: border-box;
}
.studio-ranking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #dfe4d4;
  padding: 9px 0;
}
.studio-ranking button {
  font-size: 13px;
  max-width: 60%;
}
.studio-circles {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.studio-circles > div {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  padding: 18px;
  box-sizing: border-box;
  border: 1px solid #90a781;
  font-weight: 750;
  background: #e2ecd8;
}
.studio-circles .circle-other {
  margin-left: -25px;
  background: #f8edd9e0;
  border-style: dashed;
}
.studio-sort-card {
  padding: 16px;
  border: 1px solid #d6dfca;
  background: #fff;
  border-radius: 12px;
  margin: 12px 0;
}
.studio-sort-card > p:first-child {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}
.studio-feedback {
  font-size: 14px;
  line-height: 1.6;
  background: var(--studio-sage, #e4ecd9);
  border-left: 3px solid #7b9264;
  padding: 12px 15px;
  margin: 16px 0;
  color: #34412e;
}
.studio-dialogue,
.studio-live-preview {
  margin: 18px 0;
  padding: 22px;
  border-radius: 14px;
  background: var(--studio-sage, #e4ecd9);
  font-size: 19px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.studio-breath {
  width: 210px;
  height: 210px;
  border: 1px solid #8fa77a;
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle, #f9fbef, #d3e5c8);
  transform: scale(var(--breath, 1));
  transition: transform 0.25s linear;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}
.studio-breath span {
  font-size: 32px;
  font-weight: 750;
}
.studio-step-title {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 6px;
}
.neo-app .exercise-workspace {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.neo-app .exercise-workspace-header {
  background: #f8f8ef;
  border-bottom: 1px solid #d9dfd1;
}
.neo-app .exercise-workspace-header h2 {
  font-size: 27px;
}
.neo-app .exercise-workspace-body {
  background: #f7f8f0;
}
.neo-app .exercise-workspace-body > fieldset > label {
  font-size: 13px;
  font-weight: 500;
}
.neo-app .exercise-workspace-body > fieldset > label > textarea {
  border: 1px solid #d3d9ca;
  background: #fff;
}
.neo-app .exercise-workspace-footer {
  background: #fbfcf4;
  border-top: 1px solid #d7dece;
  box-shadow: none;
}
.neo-app .practice-studio button {
  box-shadow: none;
  border-width: 1px;
}
.neo-app .practice-studio :is(input, textarea) {
  box-shadow: none;
  background: #fff;
  border-width: 1px;
}
.neo-app .practice-studio h2 {
  font-family: system-ui;
  letter-spacing: -0.045em;
}
.neo-app .practice-studio p {
  line-height: 1.6;
}
/* Public standalone offline app. */
body:has(#offline-app) {
  margin: 0;
  background: #f5ecd9;
  color: #292d25;
  font-family: system-ui, sans-serif;
}
.offline-brand {
  max-width: 760px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d9ceb4;
}
.offline-brand a {
  font-size: 15px;
  color: inherit;
  text-decoration: none;
}
.offline-brand strong {
  font-weight: 850;
}
.offline-brand > span {
  font-size: 11px;
  color: #677057;
}
#offline-app {
  max-width: 720px;
  padding: 28px 20px 110px;
  margin: auto;
}
#offline-app h1 {
  font-size: clamp(34px, 8vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 8px 0 20px;
}
#offline-app h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin-top: 30px;
}
#offline-app p {
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#offline-app a {
  color: #3d5233;
}
.offline-hero {
  background: #dce7cb;
  padding: 24px;
  border: 1px solid #a0b486;
  margin: 26px 0;
}
.offline-hero h2 {
  font-size: 32px !important;
  line-height: 1.2;
  margin: 16px 0 25px !important;
}
.offline-link {
  display: inline-block;
  margin: 12px 14px 12px 0;
  min-height: 30px;
  line-height: 30px;
}
.offline-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 780px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  background: #fff9ee;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #cccdbb;
}
.offline-nav a {
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #49553c;
  text-decoration: none;
}
.offline-nav a[aria-current="page"] {
  background: #dce7cb;
  border-radius: 10px;
}
.offline-availability {
  padding-left: 22px;
  line-height: 2;
  font-size: 15px;
}
.offline-practice-list {
  display: grid;
  gap: 16px;
}
.offline-practice-card,
.offline-private {
  background: #fffaf0;
  border: 1px solid #d5cbb5;
  padding: 20px;
  border-radius: 12px;
  margin: 16px 0;
}
.offline-practice-card h3 {
  font-size: 24px;
  margin: 8px 0;
  letter-spacing: -0.035em;
}
.offline-practice-card small {
  color: #536443;
  font-weight: 700;
}
.offline-private label {
  display: block;
  font-weight: 650;
  margin: 16px 0;
}
.offline-private :is(input, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #b6c0aa;
  border-radius: 8px;
  background: white;
  font-size: 16px;
}
.offline-notebook {
  margin: 18px 0;
  border: 1px solid #d8ceb5;
  background: repeating-linear-gradient(#fffdf4 0 31px, #dbe3dc 32px);
  padding: 22px;
  border-radius: 8px;
}
.offline-notebook label {
  display: block;
  font-weight: 600;
}
.offline-notebook textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b6c0aa;
  font: 16px/32px system-ui;
}
.offline-notebook p {
  white-space: pre-wrap;
}
.offline-goal {
  font-size: 26px;
  font-weight: 700;
}
#practice-dialog {
  max-width: 700px;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  border: 0;
  margin: 0 auto;
  padding: 0;
  background: #f7f8f0;
  color: #292d25;
}
#practice-dialog::backdrop {
  background: #24311dcc;
}
#practice-dialog[open] {
  display: flex;
  flex-direction: column;
}
#practice-dialog > header {
  padding: 18px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  background: #fbfcf4;
  border-bottom: 1px solid #d7dece;
}
#practice-dialog h1 {
  font-size: 23px;
  margin: 0;
}
#close-practice {
  min-height: 44px;
  border: 0;
  background: transparent;
  font: 650 14px system-ui;
}
#practice-content {
  flex: 1;
  overflow: auto;
  padding: 18px;
}
#practice-controls {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  background: #fbfcf4;
}
#practice-content legend {
  font-size: 20px;
  line-height: 1.4;
  margin: 20px 0;
}
#practice-content fieldset {
  border: 0;
  padding: 0;
}
#practice-content fieldset .studio-choice {
  margin: 4px;
}
#practice-content .studio-choice {
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .studio-breath {
    transition: none;
    transform: none;
  }
  .studio-choice {
    transition: none;
  }
}
