* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f2efe9;
  color: #20201d;
  font-family: Arial, Helvetica, sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 42px;
}

.top {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.brand,
.eyebrow,
.step {
  color: #777269;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

.back {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 22px;
}

.hero {
  padding-top: 26px;
}

h1 {
  margin: 12px 0 0;
  max-width: 460px;
  font-size: clamp(38px, 10vw, 52px);
  line-height: .99;
  letter-spacing: -.045em;
}

h2 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -.035em;
}

h3 {
  margin: 8px 0 0;
  font-size: 23px;
  line-height: 1.25;
}

.lead,
.hint {
  color: #68635b;
  font-size: 18px;
  line-height: 1.45;
}

.lead {
  margin: 20px 0 28px;
}

.hint {
  margin: 14px 0 24px;
}

.primary,
.secondary {
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
}

.primary {
  border: 0;
  background: #20201d;
  color: #fff;
}

.primary:disabled {
  opacity: .32;
}

.secondary {
  margin-top: 10px;
  border: 1px solid #d2cdc3;
  background: transparent;
  color: #33312d;
}

.section {
  margin-top: 28px;
}

.practice-card,
.mini-card,
.analysis-block,
.support {
  background: #fff;
  border-radius: 20px;
}

.practice-card {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  display: block;
  margin-bottom: 7px;
  color: #817b72;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.chevron {
  color: #888177;
  font-size: 30px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.mini-card {
  min-height: 118px;
  padding: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  min-height: 45px;
  padding: 0 16px;
  border: 1px solid #d6d0c7;
  border-radius: 999px;
  background: #fff;
  color: #33312d;
}

.chip.selected {
  border-color: #20201d;
  background: #20201d;
  color: #fff;
}

.bottom-action {
  margin-top: 28px;
}

.story {
  width: 100%;
  min-height: 210px;
  padding: 18px;
  resize: vertical;
  border: 1px solid #d7d1c7;
  border-radius: 20px;
  outline: 0;
  background: #fff;
  color: #222;
  font-size: 17px;
  line-height: 1.45;
}

.story:focus {
  border-color: #827b70;
}

.privacy {
  margin-top: 12px;
  color: #777168;
  font-size: 13px;
}

.analysis-block {
  margin-top: 14px;
  padding: 19px;
}

.analysis-block p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.support {
  margin-top: 14px;
  padding: 17px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.support-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6e0d6;
  font-weight: 700;
}

.next-step {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #20201d;
  color: #fff;
}

.light {
  color: #aaa59c;
}

.phrases {
  margin-top: 24px;
}

.phrase {
  width: 100%;
  margin-top: 9px;
  padding: 17px;
  border: 1px solid #d6d0c7;
  border-radius: 18px;
  background: #fff;
  color: #292824;
  text-align: left;
  line-height: 1.4;
}

.prototype-note {
  margin: 20px 4px 0;
  color: #948e84;
  font-size: 12px;
  line-height: 1.4;
}

.success {
  padding-top: 70px;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20201d;
  color: #fff;
  font-size: 28px;
}

.loading-screen {
  padding-top: 50px;
}

.loader {
  width: 34px;
  height: 34px;
  margin-top: 28px;
  border: 3px solid #d8d2c8;
  border-top-color: #20201d;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analysis-list {
  margin: 0;
  padding-left: 20px;
}

.analysis-list li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.42;
}

.turning-point {
  border: 1px solid #d3cdc3;
}

.support-reason {
  margin: 5px 0 0;
  color: #777168;
  font-size: 14px;
  line-height: 1.4;
}

.result-screen {
  padding-bottom: 12px;
}

.analysis-title {
  margin-top: 12px;
  max-width: 460px;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.priority-step {
  margin-top: 24px;
}

.priority-step h3 {
  font-size: 24px;
  line-height: 1.3;
}

.priority-card {
  margin-top: 14px;
}

.analysis-details {
  margin-top: 22px;
  border-top: 1px solid #d6d0c7;
  border-bottom: 1px solid #d6d0c7;
}

.analysis-details summary {
  padding: 20px 2px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.analysis-details[open] summary {
  padding-bottom: 10px;
}

.details-block {
  margin-top: 10px;
}

.phrases {
  margin-top: 24px;
}

.memory-loading {
  margin-top: 20px;
  color: #8b857c;
  font-size: 13px;
}

.pending-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: #ddd6ca;
}

.pending-label {
  color: #6f695f;
}

.pending-action {
  margin: 8px 0 18px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.pending-result-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  background: #20201d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.feedback-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.feedback-button {
  width: 100%;
  padding: 18px;
  border: 1px solid #d4cec4;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  color: #292824;
}

.feedback-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.feedback-button span {
  color: #777168;
  font-size: 14px;
  line-height: 1.35;
}

.feedback-note {
  margin-top: 24px;
}

.feedback-note label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.result-note {
  min-height: 140px;
}


/* Presence personal memory */

.memory-home-slot {
  margin-top: 18px;
}

.memory-home-card {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  text-align: left;
}

.memory-home-title {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.memory-home-text {
  margin: 8px 0 0;
  line-height: 1.45;
}

.memory-open-button {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.memory-empty-entry {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.memory-empty-entry span {
  display: block;
  font-weight: 700;
}

.memory-empty-entry small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.62;
}

.memory-patterns {
  margin-top: 26px;
}

.memory-pattern-card {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
}

.memory-pattern-card p {
  margin: 7px 0 0;
  line-height: 1.45;
}

.memory-history {
  margin-top: 28px;
}

.memory-history-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.memory-history-card {
  padding: 17px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
}

.memory-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.memory-date {
  font-size: 13px;
  opacity: 0.58;
}

.memory-result-pill {
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

.memory-scenario-name {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.memory-summary {
  margin: 8px 0 0;
  line-height: 1.5;
}

.memory-action-box {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.memory-action-box p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.memory-result-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.72;
}

.memory-empty-state {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  text-align: left;
}

.memory-empty-state strong {
  display: block;
  font-size: 18px;
}

.memory-empty-state p {
  margin: 8px 0 18px;
  line-height: 1.5;
}

.memory-new-case {
  margin-top: 22px;
}

@media (max-width: 480px) {
  .memory-history-top {
    align-items: flex-start;
  }
}


/* =========================================
   Presence typography system v0.9.2
   ========================================= */

html,
body,
button,
textarea,
input {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

body {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* Main titles */

h1 {
  font-size: clamp(40px, 5vw, 48px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(44px, 5.7vw, 54px);
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.memory-screen h1 {
  font-size: clamp(40px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
}


/* Supporting text */

.lead {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.01em;
}


/* Small navigation labels */

.label,
.eyebrow,
.step {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.085em;
}


/* Main actions */

.primary,
.pending-result-button {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* Current action */

.pending-action {
  font-size: 19px;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.015em;
}


/* Cards */

.practice-card strong,
.mini-card strong {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}


/* Personal memory */

.memory-home-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.memory-home-text {
  font-size: 16px;
  line-height: 1.48;
  font-weight: 400;
}

.memory-open-button {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
}

.memory-empty-entry span {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.memory-empty-entry small {
  font-size: 13px;
  line-height: 1.4;
}

.memory-scenario-name {
  font-size: 18px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.memory-summary {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.memory-action-box p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.memory-pattern-card strong {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.memory-pattern-card p {
  font-size: 16px;
  line-height: 1.48;
}

.memory-result-note {
  font-size: 14px;
  line-height: 1.5;
}

.memory-result-pill,
.memory-date {
  font-size: 13px;
  line-height: 1.25;
}


/* Phone tuning */

@media (max-width: 480px) {

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 39px;
  }

  .hero h1 {
    font-size: 43px;
    line-height: 1;
  }

  .memory-screen h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
    line-height: 1.45;
  }

  .pending-action {
    font-size: 18px;
    line-height: 1.4;
  }

  .primary,
  .pending-result-button {
    font-size: 16px;
  }

  .memory-summary,
  .memory-action-box p,
  .memory-home-text,
  .memory-pattern-card p {
    font-size: 16px;
  }
}


/* Heading refinement v0.9.3 */

.hero h1 {
  font-size: clamp(40px, 4.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.memory-screen h1 {
  font-size: clamp(34px, 4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .memory-screen h1 {
    font-size: 35px;
    line-height: 1.05;
  }
}


/* Home question refinement v0.9.4 */

.hero h1 {
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: none;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }
}


/* Memory UX refinement v0.9.5 */

.memory-home-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.memory-home-link > div {
  min-width: 0;
  text-align: left;
}

.memory-home-chevron {
  flex: 0 0 auto;
  color: #888177;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

.memory-feedback-button {
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #20201d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}


/* Personal experience v0.10.3 */

.personal-experience {
  margin-top: 18px;
}

.personal-experience p {
  margin: 9px 0 0;
}

.experience-result {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.experience-action {
  font-size: 16px;
  line-height: 1.5;
}

.experience-note {
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.7;
}


/* Feedback selection UX v0.10.4 */

.feedback-button {
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease;
}

.feedback-button:active {
  transform: scale(0.99);
}

.feedback-button.is-selected {
  border: 2px solid #20201d;
  background: #f1eee8;
}

.feedback-button.is-selected strong::after {
  content: " ✓";
}

#feedbackNoteSlot {
  scroll-margin-top: 24px;
}

/* Presence journey */

.journey-clickable {
  cursor: pointer;
}

.journey-clickable:active {
  transform: scale(0.99);
}

.journey-screen {
  padding-bottom: 28px;
}

.journey-points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.journey-points > div,
.journey-practice-steps > div {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  line-height: 1.45;
}

.journey-progress {
  margin-bottom: 16px;
  font-size: 14px;
  opacity: 0.58;
}

.journey-question {
  margin-top: 14px;
  min-height: 64px;
}

.journey-score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.journey-score {
  min-height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
}

.journey-score:active {
  transform: scale(0.97);
}

.journey-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.52;
}

.journey-practice-steps {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.journey-done-note {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 650;
}

.journey-secondary {
  width: 100%;
  margin-top: 10px;
}


/* PRESENCE PILOT ANALYTICS */

.pilot-feedback-button {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 80;
  padding: 9px 13px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pilot-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.pilot-feedback-sheet {
  width: min(100%, 620px);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 22px;
  border-radius: 22px 22px 0 0;
  background: #fff;
}

.pilot-feedback-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.pilot-feedback-close {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.pilot-feedback-types {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.pilot-feedback-types button {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pilot-feedback-types button.selected {
  border-width: 2px;
}

.pilot-feedback-text {
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

.pilot-feedback-thanks {
  text-align: center;
}


/* =========================================================
   PRESENCE UI POLISH 0.19.12
   Compact mobile rhythm across all product screens
   ========================================================= */

@media (max-width: 900px) {

  .journey-screen {
    padding-top: 24px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 64px !important;
  }


  /* ---------- TYPOGRAPHY ---------- */

  .journey-screen .eyebrow,
  .journey-screen .label {
    font-size: 14px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.13em !important;
  }


  .journey-screen h1,
  .journey-screen h2 {
    margin-top: 6px !important;
    margin-bottom: 16px !important;

    font-size:
      clamp(
        34px,
        9vw,
        44px
      ) !important;

    line-height: 1.03 !important;
    letter-spacing: -0.035em !important;
  }


  .journey-screen .lead {
    margin-top: 0 !important;
    margin-bottom: 22px !important;

    font-size: 20px !important;
    line-height: 1.43 !important;
  }


  .journey-screen .hint {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }


  /* ---------- VERTICAL RHYTHM ---------- */

  .journey-screen .section {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }


  .journey-screen .section + .section {
    margin-top: 14px !important;
  }


  #pendingSlot,
  #memorySlot,
  .memory-home-slot {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
  }


  /* ---------- CARDS ---------- */

  .journey-screen .analysis-block,
  .journey-screen .practice-card,
  .journey-screen .mini-card,
  .journey-screen .feedback-button {
    border-radius: 20px !important;
  }


  .journey-screen .analysis-block {
    padding: 18px 20px !important;
  }


  .journey-screen .practice-card {
    min-height: 0 !important;
    padding: 18px 20px !important;
  }


  .journey-screen .mini-card {
    min-height: 0 !important;
    padding: 17px 18px !important;
  }


  .journey-screen .mini-grid {
    gap: 10px !important;
  }


  .journey-screen .practice-card strong,
  .journey-screen .mini-card strong {
    font-size: 18px !important;
    line-height: 1.28 !important;
  }


  /* ---------- RESULT CHOICES ---------- */

  .journey-screen .feedback-button {
    min-height: 0 !important;
    padding: 18px 20px !important;
  }


  .journey-screen .feedback-button strong {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }


  .journey-screen .feedback-button p,
  .journey-screen .feedback-button span {
    margin-top: 6px !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
  }


  /* ---------- MAIN BUTTONS ---------- */

  .journey-screen .primary,
  .journey-screen .secondary {
    min-height: 56px !important;

    padding:
      14px
      18px !important;

    border-radius: 18px !important;

    font-size: 18px !important;
    line-height: 1.25 !important;
  }


  #startCase {
    margin-top: 12px !important;
  }


  #pendingSlot .primary,
  #pendingSlot .secondary {
    margin-top: 14px !important;
  }


  /* ---------- PENDING ACTION ---------- */

  #pendingSlot .analysis-block {
    padding:
      18px
      20px !important;
  }


  #pendingSlot .analysis-block p {
    font-size: 18px !important;
    line-height: 1.42 !important;
  }


  /* ---------- HISTORY / PATTERNS ---------- */

  .journey-screen
  .analysis-block
  + .analysis-block {
    margin-top: 10px !important;
  }


  /* ---------- PILOT FEEDBACK ---------- */

  .pilot-feedback-button {
    position: static !important;

    display: block !important;

    width: fit-content !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin:
      18px
      auto
      82px !important;

    padding:
      10px
      16px !important;

    border-radius: 999px !important;

    box-shadow: none !important;

    font-size: 14px !important;
    line-height: 1.2 !important;

    z-index: auto !important;
  }


  .pilot-feedback-sheet {
    max-height: 84vh !important;

    padding:
      22px
      20px
      26px !important;

    border-radius:
      24px
      24px
      0
      0 !important;
  }


  .pilot-feedback-head h2 {
    margin-bottom: 8px !important;

    font-size: 32px !important;
    line-height: 1.05 !important;
  }


  .pilot-feedback-types {
    gap: 10px !important;
  }


  .pilot-feedback-types button {
    min-height: 50px !important;

    padding:
      11px
      14px !important;

    font-size: 16px !important;
    line-height: 1.25 !important;
  }


  .pilot-feedback-text {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

}


@media (max-width: 420px) {

  .journey-screen {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }


  .journey-screen h1,
  .journey-screen h2 {
    font-size: 36px !important;
  }


  .journey-screen .lead {
    font-size: 19px !important;
  }


  .journey-screen .analysis-block,
  .journey-screen .practice-card {
    padding:
      17px
      18px !important;
  }

}


/* =========================================================
   PRESENCE UI SYSTEM 0.19.13
   Mobile density + typography normalization
   ========================================================= */

@media (max-width: 900px) {

  /*
   * Базовая геометрия экрана
   */

  .journey-screen {
    padding:
      14px
      18px
      52px !important;
  }


  /*
   * Малые служебные подписи
   */

  .journey-screen .eyebrow,
  .journey-screen .label {
    margin-top: 0 !important;
    margin-bottom: 7px !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    letter-spacing: 0.11em !important;
  }


  /*
   * Если сверху идут две служебные строки
   * вроде названия продукта + "Сегодня"
   */

  .journey-screen >
  .eyebrow +
  .eyebrow {
    margin-top: 18px !important;
  }


  /*
   * Единый главный заголовок
   */

  .journey-screen h1,
  .journey-screen h2 {
    margin:
      6px
      0
      12px !important;

    font-size: 32px !important;
    font-weight: 750 !important;
    line-height: 1.06 !important;

    letter-spacing: -0.035em !important;
  }


  /*
   * Вводный текст
   */

  .journey-screen .lead {
    margin:
      0
      0
      16px !important;

    max-width: 34em !important;

    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
  }


  /*
   * Вторичный текст
   */

  .journey-screen .hint {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }


  /*
   * Секции
   */

  .journey-screen .section {
    margin:
      12px
      0
      0 !important;
  }


  .journey-screen
  .section +
  .section {
    margin-top: 12px !important;
  }


  /*
   * Основные карточки
   */

  .journey-screen .analysis-block {
    margin-top: 12px !important;

    padding:
      16px
      18px !important;

    border-radius: 18px !important;
  }


  .journey-screen
  .analysis-block
  + .analysis-block {
    margin-top: 10px !important;
  }


  .journey-screen
  .analysis-block
  strong {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }


  .journey-screen
  .analysis-block
  p {
    margin:
      7px
      0
      0 !important;

    font-size: 16px !important;
    line-height: 1.43 !important;
  }


  /*
   * Последний шаг на главной
   */

  #pendingSlot {
    margin:
      10px
      0
      0 !important;
  }


  #pendingSlot
  .analysis-block {
    padding:
      16px
      18px !important;
  }


  #pendingSlot
  .analysis-block
  p {
    font-size: 17px !important;
    line-height: 1.42 !important;
  }


  /*
   * История и повторяющиеся сценарии
   */

  #memorySlot,
  .memory-home-slot {
    margin:
      10px
      0
      0 !important;
  }


  /*
   * Практики
   */

  .journey-screen .practice-card {
    min-height: 0 !important;

    padding:
      15px
      17px !important;

    border-radius: 18px !important;
  }


  .journey-screen
  .practice-card
  strong {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }


  /*
   * Маленькие карточки
   */

  .journey-screen .mini-grid {
    gap: 9px !important;
  }


  .journey-screen .mini-card {
    min-height: 0 !important;

    padding:
      14px
      15px !important;

    border-radius: 17px !important;
  }


  .journey-screen
  .mini-card
  strong {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }


  /*
   * Все обычные варианты выбора.
   * Это также уплотняет экраны типа
   * "Что произошло?"
   */

  .journey-screen button {
    font-family: inherit !important;
  }


  .journey-screen button:not(.primary):not(.secondary):not(.pilot-feedback-close) {
    min-height: 44px;

    padding:
      10px
      15px;

    font-size: 16px;
    line-height: 1.25;
  }


  /*
   * Результат "Как прошло?"
   */

  .journey-screen .feedback-button {
    min-height: 0 !important;

    margin-top: 10px !important;

    padding:
      15px
      17px !important;

    border-radius: 18px !important;
  }


  .journey-screen
  .feedback-button
  strong {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }


  .journey-screen
  .feedback-button
  p,
  .journey-screen
  .feedback-button
  span {
    margin-top: 5px !important;

    font-size: 15px !important;
    line-height: 1.36 !important;
  }


  /*
   * Главные CTA
   */

  .journey-screen .primary,
  .journey-screen .secondary {
    min-height: 52px !important;

    margin-top: 12px !important;

    padding:
      12px
      18px !important;

    border-radius: 17px !important;

    font-size: 17px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
  }


  /*
   * Кнопка "Разобрать ситуацию"
   */

  #startCase {
    margin-top: 10px !important;
  }


  /*
   * Убираем лишние промежутки
   * вокруг загрузочных / динамических слотов
   */

  .memory-loading {
    margin:
      8px
      0 !important;

    padding:
      10px
      0 !important;

    font-size: 15px !important;
  }


  /*
   * Плавающая обратная связь больше
   * не перекрывает рабочий интерфейс
   */

  .pilot-feedback-button {
    position: static !important;

    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin:
      14px
      auto
      28px !important;

    padding:
      8px
      14px !important;

    border-radius: 999px !important;

    box-shadow: none !important;

    font-size: 13px !important;
    line-height: 1.2 !important;

    z-index: auto !important;
  }


  /*
   * Форма обратной связи
   */

  .pilot-feedback-sheet {
    max-height: 86vh !important;

    padding:
      18px
      18px
      22px !important;
  }


  .pilot-feedback-head h2 {
    margin:
      4px
      0
      10px !important;

    font-size: 28px !important;
    line-height: 1.08 !important;
  }


  .pilot-feedback-types {
    gap: 8px !important;
  }


  .pilot-feedback-types button {
    min-height: 46px !important;

    padding:
      10px
      12px !important;

    font-size: 15px !important;
  }


  /*
   * Не даём огромным внутренним
   * вертикальным отступам ломать экран
   */

  .journey-screen br + br {
    display: none !important;
  }

}


@media (max-width: 430px) {

  .journey-screen {
    padding:
      12px
      15px
      48px !important;
  }


  .journey-screen h1,
  .journey-screen h2 {
    font-size: 30px !important;
  }


  .journey-screen .lead {
    font-size: 16px !important;
  }


  .journey-screen
  .analysis-block {
    padding:
      15px
      16px !important;
  }


  #pendingSlot
  .analysis-block
  p {
    font-size: 16px !important;
  }


  .journey-screen .primary,
  .journey-screen .secondary {
    min-height: 50px !important;

    font-size: 16px !important;
  }

}


/* =========================================================
   PRESENCE UI SYSTEM 0.19.14
   Real shell-wide mobile rhythm
   ========================================================= */

@media (max-width: 900px) {

  .shell {
    padding:
      16px
      18px
      38px !important;
  }


  /*
   * Верх приложения
   */

  .shell > .top {
    min-height: 0 !important;

    margin:
      0
      0
      18px !important;

    padding: 0 !important;
  }


  .shell > .top.compact-top {
    display: flex !important;
    align-items: center !important;

    gap: 12px !important;

    margin-bottom: 14px !important;
  }


  .shell .back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex:
      0
      0
      44px !important;

    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;

    font-size: 22px !important;
    line-height: 1 !important;
  }


  .shell .compact-top-meta {
    flex: 1 !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    letter-spacing: 0.1em !important;

    opacity: 0.62 !important;
  }


  .shell .brand {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.25 !important;

    letter-spacing: 0.12em !important;
  }


  /*
   * Корневой контент экрана
   */

  .shell > section {
    margin: 0 !important;
    padding: 0 !important;
  }


  /*
   * Если step не был перенесён наверх
   */

  .shell .step:not(.compact-top-meta) {
    margin:
      0
      0
      8px !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    letter-spacing: 0.1em !important;
  }


  /*
   * Единая иерархия шрифтов
   */

  .shell h1,
  .shell h2 {
    margin:
      0
      0
      12px !important;

    font-size: 30px !important;
    font-weight: 750 !important;
    line-height: 1.06 !important;

    letter-spacing: -0.03em !important;
  }


  .shell .lead,
  .shell .hint {
    margin:
      0
      0
      16px !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }


  .shell .label,
  .shell .eyebrow {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    letter-spacing: 0.1em !important;
  }


  /*
   * Выбор типа ситуации
   */

  .shell .chips {
    display: flex !important;
    flex-wrap: wrap !important;

    gap:
      8px
      8px !important;

    margin:
      14px
      0
      0 !important;
  }


  .shell .chip {
    min-height: 42px !important;

    padding:
      8px
      14px !important;

    border-radius: 999px !important;

    font-size: 16px !important;
    line-height: 1.2 !important;
  }


  .shell .bottom-action {
    margin-top: 18px !important;
  }


  /*
   * Главные кнопки
   */

  .shell .primary,
  .shell .secondary {
    min-height: 52px !important;

    padding:
      12px
      18px !important;

    border-radius: 17px !important;

    font-size: 17px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }


  /*
   * Последний шаг
   */

  .shell .pending-card {
    margin-top: 10px !important;

    padding:
      16px
      18px !important;

    border-radius: 20px !important;
  }


  .shell .pending-action {
    margin:
      8px
      0
      14px !important;

    font-size: 17px !important;
    line-height: 1.38 !important;
  }


  .shell .pending-result-button {
    min-height: 50px !important;

    padding:
      11px
      16px !important;

    border-radius: 16px !important;

    font-size: 17px !important;
  }


  /*
   * Как прошло
   */

  .shell .feedback-options {
    display: grid !important;

    gap: 9px !important;

    margin-top: 14px !important;
  }


  .shell .feedback-button {
    min-height: 0 !important;

    margin: 0 !important;

    padding:
      14px
      16px !important;

    border-radius: 17px !important;
  }


  .shell .feedback-button strong {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }


  .shell .feedback-button span {
    display: block !important;

    margin-top: 5px !important;

    font-size: 15px !important;
    line-height: 1.34 !important;
  }


  /*
   * История
   */

  .shell .memory-patterns {
    margin-top: 16px !important;
  }


  .shell .memory-pattern-card {
    margin-top: 8px !important;

    padding:
      14px
      16px !important;

    border-radius: 16px !important;
  }


  .shell .memory-pattern-card p {
    margin:
      5px
      0
      0 !important;

    font-size: 15px !important;
    line-height: 1.35 !important;
  }


  .shell .memory-history {
    margin-top: 18px !important;
  }


  .shell .memory-history-list {
    gap: 9px !important;

    margin-top: 8px !important;
  }


  .shell .memory-history-card {
    padding:
      14px
      16px !important;

    border-radius: 16px !important;
  }


  .shell .memory-date {
    font-size: 12px !important;
  }


  .shell .memory-summary,
  .shell .memory-action-box p,
  .shell .memory-result-note {
    line-height: 1.38 !important;
  }


  /*
   * Практики и карточки пути
   */

  .shell .practice-card,
  .shell .analysis-block {
    padding:
      15px
      17px !important;

    border-radius: 18px !important;
  }


  .shell .mini-grid {
    gap: 9px !important;
  }


  .shell .mini-card {
    min-height: 0 !important;

    padding:
      14px
      15px !important;

    border-radius: 16px !important;
  }


  /*
   * Поле описания ситуации
   */

  .shell .story {
    min-height: 150px !important;

    margin-top: 12px !important;

    padding:
      14px
      15px !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
  }


  .shell .privacy {
    margin-top: 9px !important;

    font-size: 13px !important;
    line-height: 1.35 !important;
  }


  /*
   * Общие расстояния
   */

  .shell .section {
    margin-top: 12px !important;
  }


  .shell .section + .section {
    margin-top: 10px !important;
  }


  .shell .memory-loading {
    margin:
      8px
      0 !important;

    padding:
      6px
      0 !important;

    font-size: 14px !important;
  }

}


@media (max-width: 430px) {

  .shell {
    padding:
      14px
      15px
      34px !important;
  }


  .shell h1,
  .shell h2 {
    font-size: 29px !important;
  }


  .shell .lead,
  .shell .hint {
    font-size: 16px !important;
  }


  .shell .back {
    flex-basis: 42px !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }


  .shell .chip {
    min-height: 40px !important;

    padding:
      8px
      13px !important;
  }

}


/* =========================================================
   PRESENCE CONTENT HIERARCHY 0.19.15
   Action first, explanation second
   ========================================================= */

@media (max-width: 900px) {

  /*
   * RESULT OF SITUATION ANALYSIS
   */

  .result-screen {
    padding-top: 0 !important;
  }


  .result-screen .analysis-title {
    margin:
      0
      0
      12px !important;

    max-width: 100% !important;

    font-size: 27px !important;
    line-height: 1.08 !important;
  }


  .result-screen .priority-step {
    margin:
      12px
      0
      10px !important;

    padding:
      16px
      17px !important;

    border-radius: 19px !important;
  }


  .result-screen .priority-step h3 {
    margin:
      6px
      0
      0 !important;

    font-size: 20px !important;
    line-height: 1.3 !important;
  }


  .result-screen .priority-card {
    padding:
      14px
      16px !important;

    border-radius: 17px !important;
  }


  .result-screen .analysis-block {
    margin-top: 9px !important;
  }


  .result-screen .support {
    min-height: 0 !important;

    margin-top: 10px !important;

    padding:
      13px
      15px !important;

    border-radius: 17px !important;
  }


  .result-screen .support-number {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;

    font-size: 15px !important;
  }


  .result-screen .support-reason {
    margin-top: 4px !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
  }


  .result-screen .analysis-list {
    margin:
      8px
      0 !important;

    padding-left: 20px !important;
  }


  .result-screen .analysis-list li {
    margin:
      5px
      0 !important;

    font-size: 15px !important;
    line-height: 1.38 !important;
  }


  .result-screen .analysis-details {
    margin-top: 7px !important;
  }


  .result-screen .analysis-details summary {
    padding:
      12px
      2px !important;

    font-size: 15px !important;
    line-height: 1.3 !important;
  }


  /*
   * STARTING MAP OF 7 SUPPORTS
   */

  .support-assessment-screen {
    padding-top: 0 !important;
  }


  .support-assessment-screen
  .journey-progress {
    margin: 0 !important;
  }


  .support-assessment-screen
  .journey-question {
    margin:
      0
      0
      16px !important;

    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }


  .support-assessment-screen
  .journey-score-grid {
    display: grid !important;

    grid-template-columns:
      repeat(5, 1fr) !important;

    gap: 7px !important;

    margin-top: 12px !important;
  }


  .support-assessment-screen
  .journey-score {
    min-width: 0 !important;
    min-height: 48px !important;

    padding:
      8px
      4px !important;

    border-radius: 14px !important;

    font-size: 17px !important;
    font-weight: 700 !important;
  }


  .support-assessment-screen
  .journey-scale {
    display: flex !important;
    justify-content: space-between !important;

    gap: 12px !important;

    margin-top: 7px !important;

    font-size: 12px !important;
    line-height: 1.3 !important;
  }


  /*
   * DAILY PRACTICE
   *
   * Real-world action goes before the
   * detailed instruction.
   */

  .practice-focus-screen {
    display: flex !important;
    flex-direction: column !important;

    padding-top: 0 !important;
  }


  .practice-focus-screen > h1,
  .practice-focus-screen > h2 {
    order: 1;
  }


  .practice-focus-screen >
  .journey-done-note {
    order: 2;

    margin:
      0
      0
      10px !important;

    padding:
      9px
      12px !important;

    font-size: 14px !important;
  }


  .practice-focus-screen >
  .analysis-block {
    order: 3;

    margin:
      0
      0
      10px !important;

    padding:
      12px
      15px !important;
  }


  .practice-focus-screen >
  .analysis-block p {
    margin-top: 4px !important;

    font-size: 15px !important;
    line-height: 1.35 !important;
  }


  /*
   * Main real-world action.
   */

  .practice-focus-screen >
  .next-step {
    order: 4;

    margin:
      2px
      0
      12px !important;

    padding:
      16px
      17px !important;

    border-radius: 19px !important;
  }


  .practice-focus-screen >
  .next-step .step {
    margin-bottom: 6px !important;
  }


  .practice-focus-screen >
  .next-step h3 {
    margin: 0 !important;

    font-size: 19px !important;
    line-height: 1.32 !important;
  }


  /*
   * Why this practice matters becomes
   * supporting information.
   */

  .practice-focus-screen >
  .lead {
    order: 5;

    margin:
      0
      0
      10px !important;

    font-size: 15px !important;
    line-height: 1.38 !important;
  }


  /*
   * Compact instruction.
   */

  .practice-focus-screen >
  .journey-practice-steps {
    order: 6;

    display: grid !important;

    gap: 7px !important;

    margin:
      0
      0
      4px !important;
  }


  .practice-focus-screen
  .journey-practice-steps > div {
    padding:
      11px
      13px !important;

    border-radius: 14px !important;

    font-size: 15px !important;
    line-height: 1.35 !important;
  }


  /*
   * Primary completion CTA.
   */

  .practice-focus-screen
  #dayOneDone,
  .practice-focus-screen
  #dayOneHome,
  .practice-focus-screen
  #adaptivePracticeDone {
    order: 7;

    margin-top: 12px !important;
  }


  /*
   * Situation is secondary.
   */

  .practice-focus-screen
  #dayOneSituation,
  .practice-focus-screen
  #adaptiveSituation {
    order: 8;

    margin-top: 8px !important;
  }


  /*
   * Any remaining direct child goes
   * between instruction and buttons.
   */

  .practice-focus-screen >
  .journey-secondary {
    margin-top: 8px !important;
  }


  /*
   * Success / empty / error states.
   */

  .shell .success {
    padding-top: 8px !important;
  }


  .shell .success-mark {
    width: 52px !important;
    height: 52px !important;

    margin-bottom: 12px !important;

    font-size: 24px !important;
  }


  .shell .memory-empty-state {
    padding:
      17px
      18px !important;

    border-radius: 18px !important;
  }


  .shell .memory-empty-state p {
    margin:
      7px
      0
      14px !important;

    font-size: 15px !important;
    line-height: 1.38 !important;
  }

}


@media (max-width: 430px) {

  .result-screen .analysis-title {
    font-size: 26px !important;
  }


  .support-assessment-screen
  .journey-question {
    font-size: 18px !important;
  }


  .practice-focus-screen >
  .next-step h3 {
    font-size: 18px !important;
  }

}
