/* Shared diagnosis interior, using the approved cloud and marble palette. */
body:is(.p-question,.p-result) { background: #f5edef; color: #443650; }
:is(.p-question,.p-result) .diagnosis-app { width: min(100%,640px); background: #f5edef; }
:is(.p-question,.p-result) .last1-background { display: none; }
:is(.p-question,.p-result) .question-screen,
.p-result .result-screen {
  background: linear-gradient(#fff8f526,#f7eef255), url('assets/diagnosis-cloud-background-v1.png') center top / cover no-repeat;
  min-height: 100svh;
}
.p-question .question-screen { padding: 26px 22px 40px; }
.p-question .inner-header { margin-bottom: 38px; color: #443650; }
.p-question .inner-header small { color: #67576d; }
.p-question .question-panel { margin: 0; padding: 30px 24px; border-color: #ffffffd9; border-radius: 24px; background: #fffaf7e8; box-shadow: 0 14px 40px #6b496326; }
.p-question .progress { height: 5px; background: #e8dce6; }
.p-question .progress span { background: linear-gradient(90deg,#b28398,#87789f); }
.p-question .progress b { color: #67516b; font-family: sans-serif; }
.p-question .question-number { margin: 34px 0 18px; color: #916c83; font-size: 34px; }
.p-question .question-panel h1 { font-size: 22px; line-height: 1.75; color: #443650; }
.p-question .helper { margin: 18px 0 24px; color: #6f6174; }
.p-question .choices { grid-template-columns: 1fr; gap: 12px; }
.p-question .choice { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 15px 18px; border: 1px solid #d8c7d4; border-radius: 14px; background: #ffffffd9; color: #443650; font-size: 15px; text-align: left; line-height: 1.7; }
.p-question .choice span { margin: 0; color: #96718b; }
.p-question .choice.chosen { background: #f0dbe8; border-color: #8c6683; box-shadow: inset 0 0 0 1px #8c6683; }
.p-question .choice.chosen span { color: #63425c; }
.p-question .choice:focus-visible { outline-color: #73577d; }
.p-question #next-button { width: 100%; min-height: 60px; margin: 24px auto; padding: 18px 30px; background: linear-gradient(110deg,#827696,#b87f90); }
.p-result .result-screen { padding: 0 0 40px; background-size: 100% auto; background-color: #f3e9ef; }
.p-result .result-header { height: auto; padding: 42px 20px 18px; color: #443650; font-size: 30px; }
.p-result .result-body { padding: 12px 22px 30px; }
.p-result .result-body > h1 { white-space: normal; font-size: 21px; line-height: 1.8; margin: 0 0 30px; color: #443650; }
.p-result .result-card { margin: 24px 0; padding: 26px 22px; border-color: #ffffffdd; border-radius: 24px; background: #fffaf7ed; box-shadow: 0 12px 36px #6b49631c; }
.p-result .result-card h2 { border-color: #e3cedc; color: #443650; font-size: 18px; line-height: 1.7; }
.p-result .result-card h2 b { background: #96788f; }
.p-result .reference-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
.p-result .reference-grid div { padding: 16px 8px; border-color: #e0d1dc; background: #fffaf7; }
.p-result .reference-strength,.p-result .reference-partner { padding: 18px; background: #f4eaf1; color: #55445b; line-height: 1.9; }
.p-result .palette-layout { grid-template-columns: 1fr; gap: 20px; }
.p-result .palette-swatches { gap: 12px; }
.p-result .palette-swatches i { aspect-ratio: 1; border-radius: 10px; }
.p-result .palette-swatches span { font-size: 12px; }
.p-result .palette-swatches small { font-size: 10px; }
.p-result #line-session-button { background: linear-gradient(110deg,#827696,#b87f90); border-color: #d8c4d0; font-size: 15px; padding: 20px 32px; }
.p-result .share-panel { border-color: #cbb6c6; }
.p-result .share-panel p,.p-result .restart-links,.p-result .restart,.p-result .session-lead { color: #55445b; }
.p-result .share-button { border-color: #cbb6c6; color: #55445b; }
.p-cover .cover-screen { background: linear-gradient(#fff8f52b,#f9f1f55c),url('assets/diagnosis-cloud-background-v1.png') center bottom / 100% auto no-repeat,#f8eef3; }
@media(max-width:360px) {
  .p-question .question-screen,.p-result .result-body { padding-left: 16px; padding-right: 16px; }
  .p-question .question-panel,.p-result .result-card { padding-left: 18px; padding-right: 18px; }
  .p-question .inner-header small { font-size: 10px; }
  .p-question .question-panel h1 { font-size: 20px; }
}
