.condition-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong, #d9d9df);
  border-radius: 18px;
  background: #fafaf7;
  color: var(--text, #202124);
  box-shadow: 0 24px 80px #20212430;
}
.condition-dialog::backdrop { background: #1b203b65; backdrop-filter: blur(4px); }
.condition-form { position: relative; padding: 28px; }
.condition-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: #555763;
  font-size: 28px !important;
}
.condition-eyebrow { margin: 0 44px 10px 0; color: #505eb5; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.condition-dialog h2 { margin: 0 24px 10px 0; font-size: 24px; line-height: 1.4; letter-spacing: -.04em; }
.condition-dialog h2:focus { outline: none; }
#condition-description { color: var(--muted, #6b6b73); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.condition-question { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.condition-question legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 650; line-height: 1.6; }
.condition-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.condition-choice { position: relative; display: flex; min-width: 0; cursor: pointer; }
.condition-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.condition-choice span {
  display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px;
  padding: 10px 6px; border: 1px solid #dcdde3; border-radius: 10px;
  background: white; color: #44464f; text-align: center; font-size: 13px; line-height: 1.5; word-break: keep-all;
}
.condition-choice input:checked + span { background: #eef0ff; border-color: #5e6ad2; color: #3946a2; font-weight: 700; box-shadow: inset 0 0 0 1px #5e6ad2; }
.condition-choice input:focus-visible + span, .condition-dialog button:focus-visible, .condition-dialog textarea:focus-visible, .condition-notice button:focus-visible { outline: 3px solid #5e6ad2; outline-offset: 3px; }
.condition-note-label { display: block; font-size: 14px; line-height: 1.7; font-weight: 600; margin-bottom: 8px; }
.condition-note-label span { font-size: 12px; font-weight: 400; color: #6b6b73; }
.condition-dialog textarea { box-sizing: border-box; display: block; width: 100%; min-height: 88px; padding: 12px; border: 1px solid #dcdde3; border-radius: 10px; font: inherit; font-size: 16px; line-height: 1.6; color: #202124; background: white; resize: vertical; }
.condition-dialog textarea::placeholder { font-size: 13px; color: #737580; }
.condition-count { text-align: right; font-size: 12px; color: #6b6b73; margin: 6px 0 0; }
.condition-error { color: #a02b32; font-size: 13px; line-height: 1.6; }
.condition-error:empty { display: none; }
.condition-dialog button { font-family: inherit; cursor: pointer; font-size: 13px; }
.condition-submit { margin-top: 16px; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #5361c4; color: white; font-weight: 700; font-size: 15px !important; }
.condition-submit:hover { background: #4351ae; }
.condition-snoozes { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.condition-snoozes button { background: transparent; border: 0; border-radius: 6px; color: #5c5e6a; min-height: 44px; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.condition-dialog :disabled { cursor: wait; opacity: .6; }
.condition-notice { margin: 20px 0; padding: 14px; border-radius: 10px; background: #eef0ff; font-size: 14px; line-height: 1.6; }
.condition-notice[hidden] { display: none; }
.condition-notice button { margin-left: 12px; min-height: 44px; color: #3946a2; background: white; border: 1px solid #cbd0ef; border-radius: 6px; cursor: pointer; }
@media (max-width: 380px) {
  .condition-form { padding: 22px 16px; }
  .condition-dialog h2 { font-size: 21px; }
  .condition-choices { gap: 5px; }
  .condition-choice span { font-size: 12px; }
}
