:root {
  --blue: #0f4d7d;
  --blue-dark: #0b3659;
  --terracotta: #c45c3d;
  --paper: #fbfaf6;
  --milk: #fffdf8;
  --line: rgba(15, 77, 125, 0.16);
  --muted: #66737b;
  --radius: 10px;
  --gap: 10px;
  --pad: 14px;
  --copy-line: 1.42;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2c33;
  background: var(--paper);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 18px 18px, rgba(196, 92, 61, 0.045) 0 2px, transparent 2px 36px),
    linear-gradient(45deg, transparent 0 46%, rgba(15, 77, 125, 0.025) 46% 54%, transparent 54% 100%) 0 0 / 42px 42px,
    var(--paper);
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
.app { width: 100%; padding: 18px 16px 112px; max-width: 540px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }
.view-back {
  min-height: 40px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-weight: 850;
}
.app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-head img { width: 74px; height: 74px; object-fit: contain; flex: 0 0 auto; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: var(--gap);
  min-height: 126px;
  padding: 16px;
  margin-bottom: var(--gap);
  background: linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.home-hero img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(15, 77, 125, 0.14));
}
.hero-text p {
  margin: 7px 0 0;
  color: #40515a;
  font-size: 16px;
  line-height: var(--copy-line);
}
small { color: var(--terracotta); font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3 { margin: 0; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1; white-space: nowrap; }
h2 { font-size: 31px; line-height: 1.08; margin-bottom: 14px; }
.lead, .note, p { color: #40515a; line-height: var(--copy-line); text-wrap: pretty; }
.lead { margin: 0 0 16px; font-size: 17px; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.dashboard.compact { margin-top: var(--gap); }
.dashboard.compact .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 78px;
}
.card, .tile-list article, .program, .practice-box, .reply, .note, .alert, .event, .legal-box {
  padding: var(--pad);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(23, 45, 58, 0.05);
}
.card {
  position: relative;
  min-height: 122px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(15, 77, 125, 0.07);
  z-index: -1;
}
.card i {
  display: block;
  width: 48px;
  height: 42px;
  margin-bottom: 13px;
  position: relative;
}
.card b, .event b, .program b, .tile-list b { display: block; color: var(--blue-dark); margin-bottom: 8px; font-weight: 850; }
.card span, .event span, .program span, .tile-list span { color: var(--muted); line-height: var(--copy-line); text-wrap: pretty; }
.card-practices {
  background: linear-gradient(135deg, #ffffff 0%, #f3faf7 100%);
}
.card-practices i {
  border: 2px solid rgba(15, 77, 125, 0.28);
  border-radius: 999px;
}
.card-practices i::before,
.card-practices i::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}
.card-practices i::before {
  inset: 7px 9px;
  border: 3px solid rgba(196, 92, 61, 0.55);
}
.card-practices i::after {
  left: 18px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--blue);
}
.card-path {
  background: linear-gradient(135deg, #ffffff 0%, #f7f4ee 100%);
}
.card-path i::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 38px;
  height: 30px;
  border-bottom: 3px solid var(--blue);
  border-radius: 0 0 999px 999px;
}
.card-path i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: 13px 13px 0 var(--terracotta), 30px 19px 0 var(--terracotta);
}
.card-events {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7fa 100%);
}
.card-events i {
  width: 46px;
  height: 42px;
  border: 2px solid rgba(15, 77, 125, 0.42);
  border-radius: 9px;
  background:
    linear-gradient(var(--terracotta), var(--terracotta)) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(15,77,125,0.18) 12px 13px),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(15,77,125,0.18) 12px 13px);
}
.card-events i::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--terracotta);
}
.card-programs {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f3 100%);
}
.card-programs i::before,
.card-programs i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
  border-radius: 999px;
  border: 3px solid transparent;
}
.card-programs i::before {
  top: 7px;
  border-top-color: var(--blue);
  transform: rotate(-9deg);
}
.card-programs i::after {
  bottom: 7px;
  border-top-color: var(--terracotta);
  transform: rotate(9deg);
}
.card-help {
  background: linear-gradient(135deg, #ffffff 0%, #fff4f1 100%);
}
.card-help i::before,
.card-help i::after {
  content: "";
  position: absolute;
  background: var(--terracotta);
  border-radius: 999px;
}
.card-help i::before {
  left: 19px;
  top: 4px;
  width: 10px;
  height: 35px;
}
.card-help i::after {
  left: 6px;
  top: 16px;
  width: 36px;
  height: 10px;
  box-shadow: 0 0 0 8px rgba(196, 92, 61, 0.08);
}
.home-help-card {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: var(--gap);
  padding: var(--pad);
  border: 1px solid rgba(196, 92, 61, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #fff4f1 100%);
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 26px rgba(23, 45, 58, 0.06);
}
.home-help-card i {
  position: relative;
  width: 48px;
  height: 42px;
}
.home-help-card b {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-weight: 850;
}
.home-help-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
  text-transform: none;
  font-weight: 750;
}
.home-help-card em {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}
.client-route {
  display: grid;
  gap: 10px;
  margin: var(--gap) 0;
  padding: var(--pad);
  border-radius: 16px;
  border: 1px solid rgba(15, 77, 125, 0.12);
  background:
    radial-gradient(circle at 88% 18%, rgba(196, 92, 61, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(23, 45, 58, 0.07);
  backdrop-filter: blur(14px);
}
.route-head {
  display: grid;
  gap: 4px;
}
.route-head b {
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.16;
}
.client-route button {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(15, 77, 125, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.9);
  color: inherit;
  text-align: left;
}
.client-route button:first-of-type {
  border-color: rgba(15, 77, 125, 0.16);
  background: #eef5f7;
}
.client-route span {
  color: var(--blue-dark);
  font-weight: 900;
}
.client-route em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.28;
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.primary, .danger, .list, .event button, .practice-box button, .next-step-card button, .booking-path button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 850;
}
.primary { background: var(--blue); color: white; }
.danger { background: var(--terracotta); color: white; }
.quick-actions button {
  display: grid;
  align-content: center;
  min-height: 82px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(23, 45, 58, 0.1);
}
.quick-actions button:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 68px;
}
.free-start-action {
  border: 1px solid rgba(15, 77, 125, 0.14);
  background:
    radial-gradient(circle at 88% 18%, rgba(196, 92, 61, 0.12), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  color: var(--blue-dark);
}
.free-start-action small {
  color: var(--muted) !important;
}
.quick-actions span {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.booking-action span {
  font-size: 19px;
  line-height: 1.05;
}
.quick-actions small {
  margin-top: 7px;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: var(--copy-line);
  text-transform: none;
}
.ritual-progress {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: var(--pad);
  border: 1px solid rgba(196, 92, 61, 0.22);
  border-radius: var(--radius);
  background: #fff7f3;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ritual-progress b {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
}
.ritual-progress small {
  display: block;
  margin-top: 4px;
  color: #7a5b4f;
  text-transform: none;
  font-weight: 700;
}
.ritual-progress em {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  font-style: normal;
  font-weight: 850;
  font-size: 13px;
}
.gamify-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 12px 0;
}
.gamify-panel div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  text-align: center;
}
.gamify-panel b {
  color: var(--terracotta);
  font-size: 22px;
  line-height: 1;
}
.gamify-panel span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.ritual-feedback {
  min-height: 20px;
  margin: 0 0 8px;
  color: #7a5b4f;
  font-size: 14px;
  line-height: var(--copy-line);
}
.ritual-step {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: var(--pad);
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}
.ritual-step p {
  margin: 0;
  color: #40515a;
  line-height: var(--copy-line);
}
.feelings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feelings-grid button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fbfaf6;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
}
.feelings-grid button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.wide { width: 100%; margin-top: 10px; }
.list, .event button, .practice-box button { background: white; color: var(--blue); border: 1px solid var(--line); }
.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.event-actions button:last-child {
  background: #eef5f7;
}
.event-reminder-result {
  margin-top: 10px;
}
label { display: flex; align-items: flex-start; gap: var(--gap); margin: 12px 0; color: #40515a; line-height: var(--copy-line); }
input, textarea, select {
  width: 100%;
  margin: 8px 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #1f2c33;
}
label input { width: auto; margin-top: 3px; }
textarea { min-height: 98px; resize: vertical; }
.tile-list, .steps { display: grid; gap: var(--gap); }
.path-guide {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 77, 125, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96) 0%, rgba(238, 245, 247, 0.92) 100%),
    radial-gradient(circle at 88% 12%, rgba(196, 92, 61, 0.16), transparent 34%);
  box-shadow: 0 16px 34px rgba(23, 45, 58, 0.08);
}
.path-guide-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.path-guide-head i {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(15, 77, 125, 0.14);
  box-shadow: inset 0 0 0 6px rgba(15, 77, 125, 0.04);
}
.path-guide-head i::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 23px;
  width: 24px;
  height: 15px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  border-radius: 0 0 0 10px;
  transform: rotate(-22deg);
}
.path-guide-head i::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--terracotta);
  box-shadow: -18px 15px 0 rgba(196, 92, 61, 0.72);
}
.path-guide-head small {
  display: block;
  margin-bottom: 4px;
  color: var(--terracotta);
  font-size: 11px;
}
.path-guide-head b {
  display: block;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.12;
}
.path-guide p {
  margin: 0;
  color: #40515a;
  line-height: 1.5;
}
.guide-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.guide-rules span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 77, 125, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.28;
}
.path-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 750;
}
.preview-toggle {
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5f7;
  font-weight: 750;
}
.back-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-weight: 850;
}
.path-progress div {
  height: 8px;
  overflow: hidden;
  background: #e4edf1;
  border-radius: 999px;
}
.path-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--terracotta);
  border-radius: inherit;
}
.program, .event { display: grid; gap: 8px; margin: var(--gap) 0; }
.event small {
  color: var(--terracotta);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}
.event.muted {
  opacity: 0.78;
}
.event-list {
  display: grid;
  gap: 16px;
}
.event-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.event-tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(15, 77, 125, 0.12);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.event-tabs a:first-child {
  background: var(--blue);
  color: white;
}
.event-shelf {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 77, 125, 0.1);
  box-shadow: 0 14px 32px rgba(23, 45, 58, 0.06);
}
.paid-event-shelf {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,241,232,0.68));
  border-color: rgba(196, 92, 61, 0.14);
}
.event-shelf-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 5px;
}
.event-shelf-title span {
  display: grid;
  gap: 3px;
}
.event-shelf-title b {
  color: var(--blue-dark);
  font-size: 18px;
}
.event-shelf-title small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.event-shelf-title em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,77,125,0.08);
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.paid-event-shelf .event-shelf-title em {
  background: rgba(196, 92, 61, 0.12);
  color: var(--terracotta);
}
.paid-event {
  border-color: rgba(196, 92, 61, 0.16);
}
.calendar-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef5f7;
}
.calendar-box span {
  display: grid;
  gap: 2px;
}
.calendar-box b {
  color: var(--blue-dark);
}
.calendar-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.calendar-box p {
  margin: 0;
  color: #40515a;
  line-height: var(--copy-line);
}
.calendar-box a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.booking-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 12px;
}
.booking-path {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  border: 1px solid rgba(15, 77, 125, 0.12);
}
.booking-path div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.booking-path button {
  min-height: 54px;
  background: white;
  color: var(--blue-dark);
  border: 1px solid rgba(15,77,125,0.12);
  text-align: left;
}
.booking-types button {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(23, 45, 58, 0.04);
}
.booking-types button.active {
  border-color: rgba(196, 92, 61, 0.38);
  background: #fff7f3;
}
.booking-types b {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-weight: 900;
}
.booking-types span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
#leadForm label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: var(--blue-dark);
  font-weight: 850;
}
#leadForm input,
#leadForm textarea,
#leadForm select {
  margin: 0;
  font-weight: 400;
}
.booking-panel {
  display: none;
  gap: var(--gap);
  margin: 12px 0;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.booking-panel.active {
  display: grid;
}
.booking-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: #eef5f7;
}
.booking-note b {
  color: var(--blue-dark);
}
.booking-note span {
  color: #40515a;
  line-height: var(--copy-line);
}
.program-hint {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef5f7 0%, #fff7f3 100%);
  border: 1px solid rgba(15, 77, 125, 0.12);
}
.program-hint b {
  color: var(--blue-dark);
}
.program-hint span {
  color: #40515a;
  line-height: var(--copy-line);
}
.booking-consent {
  display: flex !important;
  align-items: flex-start;
  color: #40515a !important;
  font-weight: 650 !important;
}
.practice-box { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin: 12px 0; }
.practice-box b { color: var(--terracotta); }
.practice-store-head {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 77, 125, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(196, 92, 61, 0.18), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  box-shadow: 0 16px 36px rgba(23, 45, 58, 0.08);
}
.practice-store-head::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 126px;
  height: 78px;
  border: 2px solid rgba(15, 77, 125, 0.1);
  border-left: 0;
  border-radius: 999px 0 0 999px;
  transform: rotate(-16deg);
}
.practice-store-head p {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin: 0;
  color: #40515a;
  line-height: var(--copy-line);
}
.practice-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -66px 14px 20px 0;
  position: relative;
  z-index: 3;
}
.sound-icon-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15,77,125,0.1);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.92), transparent 34%),
    rgba(255, 255, 255, 0.78);
  color: var(--blue);
  box-shadow: 0 14px 30px rgba(23,45,58,0.1);
  backdrop-filter: blur(16px);
}
.sound-icon-toggle i {
  position: relative;
  width: 12px;
  height: 16px;
  border-radius: 3px 0 0 3px;
  background: currentColor;
}
.sound-icon-toggle i::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -4px;
  width: 18px;
  height: 24px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}
.sound-icon-toggle i::after {
  content: "";
  position: absolute;
  left: 21px;
  top: -8px;
  width: 2px;
  height: 32px;
  border-radius: 999px;
  background: var(--terracotta);
  transform: rotate(-38deg);
  transform-origin: center;
  opacity: 0.95;
}
.sound-icon-toggle.is-on {
  color: white;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, var(--blue), var(--terracotta));
  border-color: rgba(255,255,255,0.26);
}
.sound-icon-toggle.is-on i::after {
  opacity: 0;
}
.sound-toggle-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.practice-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid rgba(15, 77, 125, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
}
.practice-tabs a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 900;
}
.practice-tabs a:first-child {
  background: var(--blue);
  color: white;
}
.practice-tabs a:last-child {
  background: #fff7f3;
  color: #9b3f27;
}
.practice-shelf {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}
.shelf-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
}
.shelf-title b {
  display: block;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.1;
}
.shelf-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  text-transform: none;
  font-size: 12px;
  line-height: 1.2;
}
.shelf-title em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5f7;
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.practice-card {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: var(--pad);
  border: 1px solid rgba(196, 92, 61, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf8 0%, #fff4ef 100%);
  text-align: left;
  color: inherit;
  box-shadow: 0 12px 30px rgba(23, 45, 58, 0.06);
}
.practice-card i {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(15, 77, 125, 0.14);
}
.practice-card i::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  border: 3px solid var(--terracotta);
}
.practice-card i::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 25px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(-22deg);
}
.practice-card-earth i::before {
  border-color: var(--blue);
  border-radius: 0 0 999px 999px;
  height: 18px;
  top: 18px;
}
.practice-card-earth i::after {
  left: 10px;
  top: 14px;
  width: 32px;
  background: var(--terracotta);
  box-shadow: 0 11px 0 rgba(15, 77, 125, 0.55);
  transform: none;
}
.practice-card-thread i::before {
  inset: 10px 7px;
  border-color: rgba(196, 92, 61, 0.72);
}
.practice-card-thread i::after {
  left: 7px;
  top: 24px;
  width: 38px;
  background: var(--terracotta);
  box-shadow: 0 -9px 0 rgba(196, 92, 61, 0.22), 0 9px 0 rgba(15, 77, 125, 0.22);
}
.practice-card-breath i::before {
  inset: 8px;
  border-color: rgba(15, 77, 125, 0.42);
}
.practice-card-breath i::after {
  left: 11px;
  top: 24px;
  width: 30px;
  height: 4px;
  background: var(--blue);
  box-shadow: 0 -10px 0 rgba(196, 92, 61, 0.5), 0 10px 0 rgba(15, 77, 125, 0.22);
  transform: none;
}
.practice-card b {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 18px;
}
.practice-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
  text-transform: none;
  font-weight: 750;
}
.paid-shelf {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(196, 92, 61, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 243, 0.74) 0%, rgba(238, 245, 247, 0.72) 100%);
}
.paid-shelf .shelf-title em {
  background: var(--terracotta);
  color: white;
}
.paid-product {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(15, 77, 125, 0.13);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(23, 45, 58, 0.06);
}
.paid-product::after {
  content: "₽";
  position: absolute;
  right: 14px;
  top: 8px;
  color: rgba(196, 92, 61, 0.14);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.paid-product small,
.paid-product b,
.paid-product span,
.paid-product button {
  position: relative;
  z-index: 1;
}
.paid-product small {
  color: var(--terracotta);
  font-size: 11px;
}
.paid-product b {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.16;
}
.paid-product span {
  max-width: 34ch;
  color: #40515a;
  line-height: var(--copy-line);
}
.paid-product button,
.chat-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}
.diary-practice {
  display: grid;
  gap: 12px;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(23, 45, 58, 0.06);
}
.diary-practice header p {
  margin-bottom: 0;
}
.deep-practice-card {
  display: grid;
  gap: 13px;
  padding: var(--pad);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
  box-shadow: 0 14px 34px rgba(23, 45, 58, 0.06);
}
.deep-practice-card p {
  margin: 0;
}
.practice-scene {
  position: relative;
  height: 148px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 77, 125, 0.11);
  background: linear-gradient(135deg, #f7fbfb 0%, #fff7f3 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.practice-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(196, 92, 61, 0.08) 0 2px, transparent 2px 15px) 0 118px / 30px 18px repeat-x;
  opacity: 0.8;
}
.scene-sky {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,0.86) 0 30%, rgba(15,77,125,0.08) 31% 100%);
}
.earth-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 38px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--terracotta), var(--blue));
  box-shadow: 0 12px 0 rgba(15, 77, 125, 0.08);
}
.foot {
  position: absolute;
  bottom: 45px;
  width: 46px;
  height: 76px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #d8e7ec 100%);
  border: 2px solid rgba(15, 77, 125, 0.34);
  box-shadow: 0 14px 22px rgba(23,45,58,0.08);
}
.left-foot { left: calc(50% - 54px); transform: rotate(-5deg); }
.right-foot { right: calc(50% - 54px); transform: rotate(5deg); }
.foot::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(196, 92, 61, 0.46);
}
.chest-hand {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 54px;
  height: 34px;
  transform: translateX(-50%) rotate(-7deg);
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(135deg, rgba(196,92,61,0.9), rgba(196,92,61,0.48));
  box-shadow: 0 10px 26px rgba(196,92,61,0.18);
}
.thread-scene {
  background: linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
}
.thread-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 70px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #b94f35 18%, var(--terracotta) 52%, #b94f35 82%, transparent 100%);
  box-shadow: 0 8px 22px rgba(196,92,61,0.2);
}
.thread-knot {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 50px;
  height: 50px;
  transform: translateX(-50%) rotate(45deg);
  border: 7px solid var(--terracotta);
  border-radius: 14px 999px 14px 999px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 14px 24px rgba(23,45,58,0.12);
}
.thread-point {
  position: absolute;
  left: 50%;
  top: 63px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 12px rgba(15,77,125,0.08), 0 0 0 24px rgba(15,77,125,0.04);
}
.thread-shadow {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15,77,125,0.06);
  filter: blur(4px);
}
.breath-scene {
  background: linear-gradient(135deg, #eef5f7 0%, #fffdf8 100%);
}
.breath-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(15, 77, 125, 0.16);
  box-shadow: 0 0 0 18px rgba(15,77,125,0.06), 0 0 0 38px rgba(196,92,61,0.06);
}
.breath-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--terracotta));
  box-shadow: 0 16px 30px rgba(23,45,58,0.16);
}
.breath-wave {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 16px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(196,92,61,0.36) 0 12px, rgba(15,77,125,0.22) 12px 24px);
  opacity: 0.75;
}
.practice-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.practice-steps li {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 10px;
  background: #fbfaf6;
  border: 1px solid rgba(15, 77, 125, 0.1);
}
.practice-steps b {
  color: var(--blue-dark);
}
.practice-steps span {
  color: #40515a;
  line-height: var(--copy-line);
}
.practice-timer {
  --practice-progress: 0%;
}
.modern-practice-timer {
  display: grid;
  gap: 14px;
  min-height: 132px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11,54,89,0.96) 0%, rgba(15,77,125,0.92) 100%);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px rgba(11,54,89,0.22);
}
.timer-topline {
  display: grid;
  gap: 4px;
}
.timer-topline small {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
}
.timer-topline span {
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}
.modern-practice-timer p {
  margin: 0;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.timer-core {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.timer-core b {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 0.9;
}
.timer-core em {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.68);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  max-width: 136px;
  line-height: 1.25;
}
.timer-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.timer-track i {
  display: block;
  width: var(--practice-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff1e8, var(--terracotta));
  box-shadow: 0 0 18px rgba(255,241,232,0.36);
  transition: width 0.35s ease;
}
.modern-practice-timer .timer-core b {
  color: white;
  font-size: 48px;
}
.modern-practice-timer.is-running .timer-core b {
  text-shadow: 0 0 18px rgba(255,255,255,0.24);
}
.modern-practice-timer.is-running .timer-topline span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 999px;
  background: #fff1e8;
  box-shadow: 0 0 12px rgba(255,241,232,0.8);
}
.modern-practice-timer.is-paused {
  filter: saturate(0.76);
}
.timer-controls {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: var(--gap);
}
.timer-controls button {
  margin-top: 0;
}
.timer-controls button:disabled {
  opacity: 0.46;
}
.practice-result {
  min-height: 22px;
  color: #7a5b4f;
  font-weight: 750;
}
.next-step-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(196, 92, 61, 0.12), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  border: 1px solid rgba(15, 77, 125, 0.12);
  box-shadow: 0 14px 30px rgba(23,45,58,0.07);
}
.next-step-card b {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.14;
}
.next-step-card span {
  color: #40515a;
  line-height: var(--copy-line);
}
.next-step-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.next-step-card button {
  background: white;
  color: var(--blue);
  border: 1px solid var(--line);
}
.next-step-card button:first-child {
  background: var(--blue);
  color: white;
  border-color: transparent;
}
.profile-next-step {
  margin-top: 0;
  margin-bottom: 2px;
}
.diary-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.diary-score div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 11px 8px;
  border-radius: var(--radius);
  background: #eef5f7;
  border: 1px solid rgba(15, 77, 125, 0.12);
  text-align: center;
}
.diary-score b {
  color: var(--terracotta);
  font-size: 24px;
  line-height: 1;
}
.diary-score span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.18;
}
.diary-practice label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
}
.diary-practice textarea {
  margin: 0;
  color: #1f2c33;
  font-weight: 400;
}
.choice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  overflow: hidden;
}
.choice-panel summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--blue-dark);
  font-weight: 850;
  cursor: pointer;
}
.choice-panel summary span {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  text-align: center;
  font-size: 12px;
}
.choice-panel .feelings-grid {
  padding: 0 12px 12px;
}
.diary-history {
  margin-top: 16px;
}
.diary-history h3 {
  margin-bottom: 8px;
  font-size: 24px;
}
.diary-entries {
  display: grid;
  gap: var(--gap);
  margin-top: 10px;
}
.empty-history {
  margin: 0;
  padding: var(--pad);
  border: 1px dashed rgba(15, 77, 125, 0.26);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  line-height: var(--copy-line);
}
.diary-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(23, 45, 58, 0.05);
}
.diary-entry summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
}
.diary-entry summary small {
  display: block;
  margin-bottom: 4px;
  color: var(--terracotta);
  font-size: 11px;
}
.diary-entry summary b {
  display: block;
  color: var(--blue-dark);
  line-height: 1.25;
}
.diary-entry summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.diary-entry-body {
  display: grid;
  gap: 9px;
  padding: 0 13px 13px;
}
.diary-entry-body p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fbfaf6;
  color: #40515a;
}
.diary-entry-body p b {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.entry-chips span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef5f7;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 750;
}
.breath-game {
  display: grid;
  grid-template-columns: 1fr 76px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: #eef5f7;
  border: 1px solid var(--line);
}
.breath-orb {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, #dbeaf0 70%);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 22px;
  text-align: center;
  transform: scale(0.82);
  transition: transform 1.2s ease, background 1.2s ease;
}
.breath-game.inhale .breath-orb {
  transform: scale(1);
  background: radial-gradient(circle, #ffffff 0%, #cfe5ef 70%);
}
.breath-game.hold .breath-orb {
  transform: scale(0.96);
  background: radial-gradient(circle, #fffaf4 0%, #eadbd0 70%);
}
.breath-game.exhale .breath-orb {
  transform: scale(0.76);
  background: radial-gradient(circle, #ffffff 0%, #e6edf0 70%);
}
.breath-meta {
  display: grid;
  text-align: center;
  color: var(--muted);
}
.breath-meta b {
  color: var(--terracotta);
  font-size: 30px;
  line-height: 1;
}
.breath-meta span {
  font-size: 12px;
}
.step { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); padding: var(--pad); background: white; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; color: inherit; }
.step.locked { opacity: 0.55; }
.step.active { border-color: rgba(196, 92, 61, 0.45); background: #fff7f3; }
.step.done b { color: var(--terracotta); }
.step span { display: grid; gap: 4px; color: var(--blue-dark); font-weight: 850; }
.step small { color: var(--muted); font-weight: 700; text-transform: none; }
.step-detail {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.step-detail h3 {
  margin-top: 4px;
  font-size: 28px;
}
.step-detail header p {
  margin-bottom: 0;
}
.yesno-list {
  display: grid;
  gap: 6px;
}
.example-box, .grounding-box, .substeps-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfaf6;
  border: 1px solid rgba(15, 77, 125, 0.12);
}
.example-box b, .grounding-box b, .substeps-box b {
  color: var(--blue-dark);
}
.example-box span {
  padding: 9px 10px;
  border-radius: 8px;
  background: white;
  color: #40515a;
  line-height: var(--copy-line);
}
.grounding-box ol, .substeps-box ol {
  margin: 0;
  padding-left: 20px;
  color: #40515a;
  line-height: 1.55;
}
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff7f3;
  color: var(--blue-dark);
  font-weight: 850;
}
.range-label b {
  color: var(--terracotta);
}
.range-input {
  accent-color: var(--terracotta);
  margin-top: -4px;
}
.prompt-list {
  display: grid;
  gap: 8px;
}
.prompt-list label {
  margin-bottom: -2px;
  color: var(--blue-dark);
  font-weight: 800;
}
.practice-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #eef5f7;
}
.practice-note b { color: var(--blue-dark); }
.practice-note span { color: #40515a; line-height: var(--copy-line); }
.completion-hint {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff7f3;
  color: #7a5b4f;
  font-size: 14px;
  line-height: var(--copy-line);
}
.list { display: block; width: 100%; text-align: left; margin: 8px 0; }
.subtle-action {
  text-align: center;
  background: #fbfaf6;
  color: var(--muted);
}
.danger-link {
  color: #9b3f27;
  border-color: rgba(196, 92, 61, 0.22);
}
.alert { color: #77341f; background: #fff7f3; border-color: rgba(196, 92, 61, 0.3); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: var(--gap) 0; }
.phones a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 8px; background: var(--terracotta); color: white; text-decoration: none; font-weight: 900; }
.support-strip {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #40515a;
  text-decoration: none;
}
.support-strip b { color: var(--muted); font-size: 13px; }
.support-strip img { display: block; width: min(100%, 244px); height: auto; }
.profile-support { margin-top: 14px; }
.profile-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(23, 45, 58, 0.06);
}
.profile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.profile-card-head b {
  display: block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: 21px;
  line-height: 1.12;
}
.profile-card-head em {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef5f7;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.profile-intro {
  margin: -2px 0 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #eef5f7;
  color: #40515a;
  font-size: 14px;
  line-height: var(--copy-line);
}
.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
}
.profile-form label:nth-last-child(-n + 2),
.profile-form label:nth-child(7) {
  grid-column: 1 / -1;
}
.profile-form input,
.profile-form select,
.profile-form textarea {
  margin: 0;
  font-weight: 400;
}
.points-wallet {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 77, 125, 0.16);
  background: linear-gradient(135deg, #fffdf8 0%, #eef5f7 100%);
  box-shadow: 0 16px 34px rgba(23, 45, 58, 0.08);
}
.wallet-main {
  display: flex;
  align-items: end;
  gap: 10px;
}
.wallet-main b {
  color: var(--terracotta);
  font-size: 48px;
  line-height: 0.9;
}
.wallet-main span {
  padding-bottom: 5px;
  color: var(--blue-dark);
  font-weight: 850;
}
.wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.wallet-stats div,
.profile-progress article {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 11px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 77, 125, 0.1);
}
.wallet-stats b,
.profile-progress b {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.05;
}
.wallet-stats span,
.profile-progress span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.profile-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 12px;
}
.points-info {
  display: grid;
  gap: var(--gap);
  margin-bottom: 12px;
}
.points-info details {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 10px 26px rgba(23, 45, 58, 0.05);
  overflow: hidden;
}
.points-info summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad);
  color: var(--blue-dark);
  font-weight: 850;
  cursor: pointer;
}
.points-info summary::after {
  content: "+";
  color: var(--terracotta);
  font-size: 20px;
  line-height: 1;
}
.points-info details[open] summary::after {
  content: "−";
}
.points-info ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 var(--pad) var(--pad) 32px;
  color: #40515a;
  line-height: 1.42;
}
.legal-box { display: grid; gap: 6px; margin-top: 14px; }
.legal-box b { color: var(--blue-dark); }
.legal-box span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.legal-mini {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 77, 125, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, rgba(11, 54, 89, 0.96), rgba(15, 77, 125, 0.9));
  color: white;
  box-shadow: 0 16px 36px rgba(11,54,89,0.18);
}
.chat-topbar span {
  display: grid;
  gap: 3px;
}
.chat-topbar small {
  color: rgba(255,255,255,0.66);
  font-size: 10px;
}
.chat-topbar b {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}
.chat-topbar em {
  position: relative;
  padding: 7px 10px 7px 23px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.chat-topbar em::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #8ee0ad;
  box-shadow: 0 0 0 4px rgba(142,224,173,0.14);
}
.chat-messages {
  display: grid;
  gap: 10px;
  min-height: min(430px, 54svh);
  max-height: 56svh;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  overflow: auto;
  background:
    radial-gradient(circle at 18px 18px, rgba(196, 92, 61, 0.045) 0 2px, transparent 2px 34px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(238, 245, 247, 0.88));
  box-shadow: inset 0 0 0 1px rgba(15, 77, 125, 0.06), 0 18px 36px rgba(23, 45, 58, 0.08);
  backdrop-filter: blur(16px);
}
.chat-message {
  display: grid;
  gap: 7px;
  max-width: 90%;
  padding: 12px;
  border-radius: 18px 18px 18px 7px;
  background: white;
  box-shadow: 0 10px 24px rgba(23, 45, 58, 0.05);
}
.chat-message.user {
  justify-self: end;
  border-radius: 18px 18px 7px 18px;
  background: var(--blue);
  color: white;
}
.chat-message.bot.thinking {
  opacity: 0.72;
  font-style: italic;
}
.chat-message b {
  color: var(--blue-dark);
  font-size: 13px;
}
.chat-message.user b,
.chat-message.user p {
  color: white;
}
.chat-message p {
  margin: 0;
  color: #40515a;
  line-height: var(--copy-line);
}
.chat-message p + p {
  margin-top: 2px;
}
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.chat-actions button {
  min-height: 36px;
  padding: 8px 10px;
  background: #eef5f7;
  color: var(--blue);
  font-size: 12px;
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: 0.4;
  animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.16s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.chat-form {
  display: grid;
  gap: var(--gap);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 38px rgba(23, 45, 58, 0.12);
  backdrop-filter: blur(18px);
}
.chat-form textarea {
  min-height: 64px;
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}
.chat-compose {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: var(--gap);
  align-items: center;
}
.chat-compose button {
  margin: 0;
}
.voice-button {
  position: relative;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, #fff7f3 0 25%, transparent 26%),
    linear-gradient(135deg, var(--terracotta), #9b3f27);
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(196, 92, 61, 0.24);
}
.voice-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  border: 1px solid rgba(196, 92, 61, 0.2);
  opacity: 0;
}
.voice-button.recording::after {
  opacity: 1;
  animation: recordRing 1.1s infinite ease-out;
}
.voice-button.recording {
  background:
    radial-gradient(circle at 50% 50%, white 0 21%, transparent 22%),
    linear-gradient(135deg, #d94e32, #7d2619);
}
@keyframes recordRing {
  from { transform: scale(0.98); opacity: 0.8; }
  to { transform: scale(1.14); opacity: 0; }
}
.voice-status {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
}
.tabbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(23, 45, 58, 0.16);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.tabbar button {
  height: 58px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  font-weight: 850;
}
.tabbar button.active {
  color: var(--blue);
  background: #eef5f7;
  box-shadow: inset 0 0 0 1px rgba(15, 77, 125, 0.08);
}
.tabbar span { display: block; font-size: 9px; margin-top: 3px; line-height: 1.15; font-weight: 850; }
.floating-sos {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 12;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #c85837, #9d301c);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(157, 48, 28, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.floating-sos:active { transform: translateY(1px) scale(0.98); }
@media (max-width: 520px) {
  .profile-form { grid-template-columns: 1fr; }
  .profile-card-head { display: grid; }
  .profile-card-head em { justify-self: start; }
  .wallet-stats, .profile-progress, .booking-types, .booking-grid, .booking-path div { grid-template-columns: 1fr; }
  .next-step-card div, .event-actions { grid-template-columns: 1fr; }
  .floating-sos { right: 12px; bottom: 82px; width: 54px; height: 54px; }
}
@media (max-width: 380px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .dashboard, .actions, .phones { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 78px;
    min-height: 122px;
    padding: 14px;
  }
  .home-hero img { width: 78px; height: 78px; }
  .tabbar span { display: none; }
  h1 { font-size: 28px; }
  .guide-rules { grid-template-columns: 1fr; }
  .chat-message { max-width: 96%; }
  .home-help-card { grid-template-columns: 42px minmax(0, 1fr); }
  .home-help-card em { grid-column: 2; justify-self: start; }
  .gamify-panel { grid-template-columns: 1fr 1fr 1fr; }
  .breath-game { grid-template-columns: 1fr; }
  .breath-meta { grid-row: 1; }
}
