/* FINAL/FROZEN IUP SAMTALSLÄGE MOBILE · isolerat fokusläge utan produktnavigation. */
body.iup-conversation-open {
  overflow: hidden;
}

#iupModal {
  box-sizing: border-box;
  width: min(100%, 520px);
  max-width: none;
  height: min(100dvh, 932px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #f9fbff;
  background:
    radial-gradient(circle at 82% 8%, rgba(20, 75, 132, .2), transparent 26%),
    radial-gradient(circle at 10% 55%, rgba(10, 61, 116, .15), transparent 34%),
    linear-gradient(180deg, #021329 0%, #031a38 55%, #02142d 100%);
}

#iupModal::backdrop {
  background: rgba(0, 7, 18, .76);
}

#iupModalContent,
.iup-conversation-screen {
  width: 100%;
  min-height: 100%;
}

.iup-conversation-screen {
  position: relative;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 28px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: #f9fbff;
  background: transparent;
  scrollbar-width: thin;
}

.iup-conversation-screen.phase-review,
.iup-conversation-screen.phase-evidence {
  display: grid;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-bottom: 0;
  overflow: hidden;
}

.iup-conversation-scroll-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.iup-conversation-screen button,
.iup-conversation-screen textarea {
  font: inherit;
}

.iup-conversation-screen button {
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.iup-conversation-screen button:focus-visible,
.iup-conversation-screen textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.iup-conversation-screen svg {
  width: 24px;
  height: 24px;
}

.iup-conversation-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin: 2px 0 14px;
}

.iup-conversation-header > button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.iup-conversation-header > button:first-child svg {
  width: 32px;
  height: 32px;
}

.iup-conversation-header > div {
  min-width: 0;
}

.iup-conversation-header h1 {
  margin: 0 0 3px;
  color: #fff;
  font-size: clamp(1.2rem, 5.6vw, 1.48rem);
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.12;
  white-space: nowrap;
}

.iup-conversation-header p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .93rem;
}

.iup-conversation-header .iup-conversation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 6px;
  align-items: baseline;
  font-size: clamp(.78rem, 3.4vw, .9rem);
  line-height: 1.25;
}

.iup-conversation-header .iup-conversation-meta > span:last-child {
  white-space: nowrap;
}

.iup-conversation-header .iup-conversation-kind {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
}

.iup-conversation-kind strong,
.iup-conversation-complete {
  color: #ffc400;
  font-weight: 760;
}

.iup-conversation-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, .82);
  font-size: .94rem;
}

.iup-conversation-progress i {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #526071;
}

.iup-conversation-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffc400;
}

.iup-conversation-goal {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 5px 10px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(133, 154, 186, .38);
  border-radius: 8px;
  background: rgba(0, 13, 31, .3);
}

.iup-conversation-goal-icon {
  display: grid;
  place-items: start center;
  color: #7899ff;
}

.iup-conversation-goal-icon svg {
  width: 39px;
  height: 39px;
}

.iup-conversation-goal-meta > span,
.iup-conversation-summary-list header small {
  color: #7d9cff;
  font-size: .73rem;
  font-weight: 740;
  text-transform: uppercase;
}

.iup-conversation-goal-meta {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.iup-conversation-goal-meta small {
  color: rgba(255, 255, 255, .74);
  font-size: .76rem;
  text-transform: uppercase;
}

.iup-conversation-goal-meta small svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.iup-conversation-goal h2 {
  margin: 3px 0 4px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 820;
  letter-spacing: -.02em;
}

.iup-conversation-goal p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.32;
}

.iup-conversation-goal p svg {
  width: 17px;
  height: 17px;
  margin-left: 4px;
}

.iup-conversation-lock {
  display: flex;
  gap: 9px;
  align-items: center;
  grid-column: 1 / -1;
  padding-top: 5px;
  border-top: 1px solid rgba(139, 156, 183, .26);
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.iup-conversation-lock svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.iup-conversation-goal > button {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  border: 0;
  color: #7d9cff;
  background: transparent;
  font-weight: 760;
}

.iup-conversation-goal > button svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.iup-conversation-goal.variant-work-plan,
.iup-conversation-goal.variant-evidence {
  grid-template-columns: 50px minmax(0, 1fr);
  margin-bottom: 14px;
}

.iup-conversation-goal.variant-work-plan h2,
.iup-conversation-goal.variant-evidence h2 {
  font-size: 1.08rem;
}

.iup-conversation-goal.variant-work-plan p,
.iup-conversation-goal.variant-evidence p {
  font-size: .84rem;
}

.iup-conversation-goal.variant-evidence .iup-conversation-goal-meta,
.iup-conversation-goal.variant-evidence h2 {
  display: inline;
}

.iup-conversation-goal.variant-evidence .iup-conversation-goal-meta::after {
  content: " · ";
  color: rgba(255, 255, 255, .65);
}

.iup-conversation-goal.variant-evidence h2 {
  margin-left: 4px;
}

.iup-conversation-goal.variant-evidence p {
  margin-top: 8px;
}

.iup-conversation-question h2,
.iup-conversation-plan > h2,
.iup-conversation-editor h2,
.iup-conversation-evidence > h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: -.025em;
}

.iup-conversation-question > p,
.iup-conversation-editor > p,
.iup-conversation-evidence > p {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
}

.iup-conversation-levels {
  display: grid;
  gap: 5px;
}

.iup-conversation-levels button {
  display: grid;
  min-height: 44px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(135, 153, 181, .42);
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 15, 34, .35);
  text-align: left;
}

.iup-conversation-levels button.selected,
.iup-conversation-options button.selected {
  border-color: #ffc400;
  box-shadow: inset 0 0 0 1px #ffc400;
}

.iup-conversation-levels i,
.iup-conversation-options i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #7194ff;
  border-radius: 50%;
  color: #061a35;
  background: transparent;
  font-style: normal;
}

.iup-conversation-levels .selected i,
.iup-conversation-options .selected i {
  border-color: #ffc400;
  background: #ffc400;
}

.iup-conversation-levels .target-level:not(.selected) i {
  border-color: transparent;
  color: #7899ff;
}

.iup-conversation-levels .target-level:not(.selected) i svg {
  width: 30px;
  height: 30px;
}

.iup-conversation-levels i svg,
.iup-conversation-options i svg {
  width: 20px;
  height: 20px;
}

.iup-conversation-levels strong {
  font-size: 1rem;
}

.iup-conversation-levels span {
  color: #ffc400;
  font-size: .82rem;
  font-weight: 760;
}

.iup-conversation-plan {
  margin-top: 10px;
}

.iup-conversation-plan > h2 {
  font-size: 1.16rem;
}

.iup-conversation-plan > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 9px;
  padding: 8px 11px;
  border: 1px solid rgba(135, 153, 181, .4);
  border-radius: 8px;
  background: rgba(1, 15, 34, .32);
}

.iup-conversation-plan > div > span {
  color: #7899ff;
}

.iup-conversation-plan > div > p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .84);
  line-height: 1.28;
}

.iup-conversation-plan > div > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.iup-conversation-plan button,
.iup-conversation-secondary,
.iup-conversation-danger {
  border: 1px solid rgba(135, 153, 181, .46);
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 15, 34, .34);
  font-weight: 800;
}

.iup-conversation-plan button.selected {
  border-color: #ffc400;
  color: #ffc400;
}

.iup-conversation-plan button svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.iup-conversation-field-error {
  min-height: 18px;
  margin: 5px 0 0 !important;
  color: #ffcb2f !important;
  font-size: .78rem;
}

.iup-conversation-field-error:empty {
  display: none;
}

.iup-conversation-footer {
  display: grid;
  gap: 7px;
  margin: 10px -28px 0;
  padding: 10px 28px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(135, 153, 181, .34);
  background: rgba(2, 20, 44, .96);
}

.iup-conversation-footer p {
  margin: 0;
  color: #7d9cff;
  font-size: .86rem;
}

.iup-conversation-footer p svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.iup-conversation-screen.phase-review > .iup-conversation-footer,
.iup-conversation-screen.phase-evidence > .iup-conversation-footer {
  position: relative;
  z-index: 3;
}

.iup-conversation-footer > button,
.iup-conversation-primary {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  color: #07172e;
  background: #ffc400;
  font-size: 1.08rem;
  font-weight: 900;
}

.iup-conversation-primary:disabled {
  opacity: .68;
}

.iup-conversation-footer small,
.iup-conversation-editor > small,
.iup-conversation-summary-actions small,
.iup-conversation-sheet small {
  color: rgba(255, 255, 255, .68);
  text-align: center;
}

.iup-conversation-editor,
.iup-conversation-evidence {
  display: grid;
}

.iup-conversation-screen.phase-work-plan {
  display: grid;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

.iup-conversation-screen.phase-summary {
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
}

.iup-conversation-screen.phase-work-plan .iup-conversation-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.iup-conversation-screen.phase-work-plan .iup-conversation-editor textarea {
  flex: 1 1 120px;
  min-height: 120px;
  height: auto;
  resize: none;
}

.iup-conversation-editor textarea,
.iup-conversation-textarea textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #7899ff;
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 15, 34, .42);
  line-height: 1.45;
}

.iup-conversation-editor > button {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
}

.iup-conversation-speech {
  border: 1px solid rgba(135, 153, 181, .42);
  border-radius: 8px;
  color: #7d9cff;
  background: transparent;
  font-weight: 800;
}

.iup-conversation-editor > small {
  margin-top: 17px;
}

.iup-conversation-editor > small {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.iup-conversation-editor > small svg,
.iup-conversation-speech svg,
.iup-conversation-textarea button svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.iup-conversation-evidence > label {
  margin: 14px 0 8px;
  color: #7d9cff;
  font-weight: 780;
}

.iup-conversation-textarea {
  position: relative;
}

.iup-conversation-textarea textarea {
  min-height: 112px;
  padding-bottom: 48px;
  border-color: rgba(160, 171, 190, .6);
}

.iup-conversation-textarea button {
  position: absolute;
  right: 8px;
  bottom: 5px;
  border: 0;
  color: #7d9cff;
  background: transparent;
  font-weight: 760;
}

.iup-conversation-evidence fieldset {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.iup-conversation-evidence legend {
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 830;
}

.iup-conversation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.iup-conversation-options button {
  position: relative;
  display: grid;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 5px;
  border: 1px solid rgba(135, 153, 181, .42);
  border-radius: 8px;
  color: #fff;
  background: rgba(1, 15, 34, .34);
  text-align: center;
}

.iup-conversation-options i {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 22px;
}

.iup-conversation-options i svg {
  width: 15px;
  height: 15px;
}

.iup-conversation-options button > span {
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
}

.iup-conversation-options button > span svg {
  width: 31px;
  height: 31px;
}

.iup-conversation-options strong {
  font-size: clamp(.72rem, 3.3vw, .88rem);
  line-height: 1.15;
}

.iup-conversation-complete {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  font-size: 1.02rem;
}

.iup-conversation-complete svg {
  padding: 4px;
  border-radius: 50%;
  color: #07172e;
  background: #ffc400;
}

.iup-conversation-summary-list {
  display: grid;
  gap: 12px;
}

.iup-conversation-summary-list article {
  padding: 13px;
  border: 1px solid rgba(135, 153, 181, .42);
  border-radius: 8px;
  background: rgba(1, 15, 34, .3);
}

.iup-conversation-summary-list header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
}

.iup-conversation-summary-list header > span {
  color: #7899ff;
}

.iup-conversation-summary-list header h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.15rem;
}

.iup-conversation-summary-list header button {
  padding: 4px;
  border: 0;
  color: #7d9cff;
  background: transparent;
  font-weight: 760;
}

.iup-conversation-summary-list header button svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.iup-conversation-summary-list dl {
  margin: 0;
}

.iup-conversation-summary-list dl > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 3px;
  border-top: 1px solid rgba(135, 153, 181, .28);
}

.iup-conversation-summary-list dt {
  color: #7d9cff;
  font-weight: 760;
}

.iup-conversation-summary-list .summary-current dt {
  color: #ffc400;
}

.iup-conversation-summary-list .summary-current dt svg {
  padding: 3px;
  border-radius: 50%;
  color: #07172e;
  background: #ffc400;
}

.iup-conversation-summary-list .summary-evidence dt {
  color: #7899ff;
}

.iup-conversation-summary-list dt svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.iup-conversation-summary-list dd {
  margin: 0;
  color: #fff;
  line-height: 1.4;
}

.iup-conversation-warning {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
  padding: 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  background: rgba(15, 37, 66, .7);
}

.iup-conversation-warning svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #ffc400;
}

.iup-conversation-summary-actions {
  display: grid;
  gap: 9px;
}

.iup-conversation-summary-actions > button {
  min-height: 52px;
}

.iup-conversation-success {
  display: grid;
  min-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(36px, env(safe-area-inset-bottom)));
  align-content: center;
  justify-items: center;
  text-align: center;
}

.iup-conversation-success-icon {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  margin-bottom: 28px;
  border: 7px solid #ffc400;
  border-radius: 50%;
  color: #ffc400;
}

.iup-conversation-success-icon svg {
  width: 68px;
  height: 68px;
  stroke-width: 2.4;
}

.iup-conversation-success h1 {
  margin: 0 0 13px;
  font-size: 2rem;
  letter-spacing: -.03em;
}

.iup-conversation-success > p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .74);
  font-size: 1.14rem;
  line-height: 1.55;
}

.iup-conversation-success > div:nth-of-type(2) {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(135, 153, 181, .42);
  border-radius: 8px;
  text-align: left;
}

.iup-conversation-success > div:nth-of-type(2) > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #07172e;
  background: #ffc400;
}

.iup-conversation-success > div p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.iup-conversation-success > div strong {
  color: #ffc400;
  font-size: 1.1rem;
}

.iup-conversation-success > button {
  width: 100%;
  margin-top: 30px;
}

.iup-conversation-success .iup-conversation-link {
  margin-top: 12px;
  border: 0;
  color: #7d9cff;
  background: transparent;
  font-weight: 760;
}

.iup-conversation-overlay {
  position: absolute;
  inset: 0;
  height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 28px max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
  opacity: .24;
  filter: brightness(.28);
  pointer-events: none;
}

.iup-conversation-sheet {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 14px;
  padding: 12px 28px max(34px, calc(22px + env(safe-area-inset-bottom)));
  border: 1px solid rgba(134, 155, 187, .42);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #031d3f, #02162f);
  box-shadow: 0 -20px 55px rgba(0, 5, 15, .65);
  text-align: center;
}

.iup-conversation-sheet:focus {
  outline: none;
}

.iup-conversation-sheet > i {
  width: 54px;
  height: 5px;
  justify-self: center;
  margin-bottom: 17px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .32);
}

.iup-conversation-sheet h1 {
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
  letter-spacing: -.02em;
}

.iup-conversation-sheet p {
  margin: 0;
  color: rgba(255, 255, 255, .83);
  line-height: 1.45;
}

.iup-conversation-sheet-icon {
  display: grid;
  place-items: center;
  color: #ffc400;
}

.iup-conversation-sheet-icon svg {
  width: 58px;
  height: 58px;
}

.iup-conversation-sheet button {
  min-height: 56px;
}

.iup-conversation-danger {
  border: 2px solid #ffc400;
  color: #ffc400;
  background: transparent;
}

@media (max-width: 899px) {
  body.iup-conversation-open .bottom-nav,
  body.iup-conversation-open .glossary-fab {
    display: none !important;
  }

  #iupModal {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }
}

/* Sista smalspaltspassningen: behåll hela valytan ovanför den fasta dockan. */
@media (max-width: 400px) {
  .iup-conversation-screen.phase-review,
  .iup-conversation-screen.phase-evidence {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .phase-review .iup-conversation-header,
  .phase-evidence .iup-conversation-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px 8px;
    margin: 1px 0 10px;
  }

  .phase-review .iup-conversation-header h1,
  .phase-evidence .iup-conversation-header h1 {
    font-size: 1.18rem;
  }

  .phase-review .iup-conversation-header .iup-conversation-meta,
  .phase-evidence .iup-conversation-header .iup-conversation-meta {
    gap: 0 4px;
    font-size: .76rem;
    line-height: 1.22;
  }

  .phase-review .iup-conversation-header .iup-conversation-kind,
  .phase-evidence .iup-conversation-header .iup-conversation-kind {
    font-size: .8rem;
    line-height: 1.2;
  }

  .phase-review .iup-conversation-progress,
  .phase-evidence .iup-conversation-progress {
    gap: 10px;
    margin-bottom: 9px;
    font-size: .9rem;
  }

  .phase-review .iup-conversation-goal.variant-review,
  .phase-evidence .iup-conversation-goal.variant-evidence {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 8px;
    margin-bottom: 10px;
    padding: 8px 9px;
  }

  .phase-review .iup-conversation-goal-icon svg,
  .phase-evidence .iup-conversation-goal-icon svg {
    width: 39px;
    height: 39px;
  }

  .phase-review .iup-conversation-goal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 6px;
    align-items: center;
  }

  .phase-review .iup-conversation-goal h2 {
    margin: 2px 0 4px;
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .phase-review .iup-conversation-goal p {
    font-size: .9rem;
    line-height: 1.28;
  }

  .phase-review .iup-conversation-lock {
    gap: 7px;
    padding-top: 4px;
    font-size: .82rem;
  }

  .phase-review .iup-conversation-goal > button {
    font-size: .9rem;
  }

  .phase-review .iup-conversation-question h2,
  .phase-review .iup-conversation-plan > h2,
  .phase-evidence .iup-conversation-evidence > h2 {
    margin-bottom: 4px;
    font-size: 1.3rem;
    line-height: 1.15;
  }

  .phase-review .iup-conversation-question > p,
  .phase-evidence .iup-conversation-evidence > p {
    margin-bottom: 8px;
    font-size: .95rem;
    line-height: 1.3;
  }

  .phase-review .iup-conversation-levels {
    gap: 5px;
  }

  .phase-review .iup-conversation-levels button {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 5px 11px;
  }

  .phase-review .iup-conversation-plan {
    margin-top: 7px;
  }

  .phase-review .iup-conversation-plan > h2 {
    font-size: 1.08rem;
  }

  .phase-review .iup-conversation-plan > div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 3px 9px;
  }

  .phase-review .iup-conversation-plan > div > p {
    margin-bottom: 3px;
    font-size: .9rem;
    line-height: 1.25;
  }

  .phase-review .iup-conversation-plan > div > div {
    gap: 5px;
  }

  .phase-evidence .iup-conversation-goal.variant-evidence h2 {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .phase-evidence .iup-conversation-goal.variant-evidence {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 5px 10px;
    margin-bottom: 14px;
    padding: 9px 11px;
  }

  .phase-evidence .iup-conversation-goal.variant-evidence p {
    margin-top: 8px;
    font-size: .84rem;
    line-height: 1.32;
  }

  .phase-evidence .iup-conversation-evidence > h2 {
    margin-bottom: 5px;
    font-size: 1.38rem;
  }

  .phase-evidence .iup-conversation-evidence > p {
    margin-bottom: 9px;
    font-size: 1rem;
    line-height: 1.35;
  }

  .phase-evidence .iup-conversation-evidence > label {
    margin: 10px 0 6px;
    font-size: 1rem;
  }

  .phase-evidence .iup-conversation-textarea textarea {
    min-height: 104px;
    padding: 12px 12px 46px;
    line-height: 1.4;
  }

  .phase-evidence .iup-conversation-evidence fieldset {
    margin-top: 10px;
  }

  .phase-evidence .iup-conversation-evidence legend {
    margin-bottom: 7px;
    font-size: 1.12rem;
    line-height: 1.18;
  }

  .phase-evidence .iup-conversation-options {
    gap: 5px;
  }

  .phase-evidence .iup-conversation-options button {
    min-height: 104px;
    gap: 7px;
    padding: 8px 5px;
  }

  .phase-evidence .iup-conversation-options i {
    top: 8px;
    width: 22px;
    height: 22px;
  }

  .phase-evidence .iup-conversation-options button > span {
    margin-top: 14px;
  }

  .phase-evidence .iup-conversation-options button > span svg {
    width: 31px;
    height: 31px;
  }

  .phase-review > .iup-conversation-footer,
  .phase-evidence > .iup-conversation-footer {
    gap: 4px;
    margin-top: 8px;
    padding-top: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .phase-review > .iup-conversation-footer > button,
  .phase-evidence > .iup-conversation-footer > button {
    min-height: 44px;
    padding-block: 8px;
    font-size: 1rem;
  }

  .phase-review > .iup-conversation-footer p,
  .phase-evidence > .iup-conversation-footer p {
    font-size: .84rem;
    line-height: 1.2;
  }

  .phase-review > .iup-conversation-footer small {
    font-size: .76rem;
    line-height: 1.2;
  }
}

@media (max-width: 350px) {
  .iup-conversation-screen {
    padding-inline: 16px;
  }

  .iup-conversation-footer {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .iup-conversation-header h1 {
    font-size: 1.12rem;
  }

  .iup-conversation-header .iup-conversation-meta {
    font-size: .76rem;
  }

  .iup-conversation-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .iup-conversation-options {
    gap: 5px;
  }

  .iup-conversation-summary-list dl > div {
    grid-template-columns: 105px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #iupModal *,
  #iupModal *::before,
  #iupModal *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
