
    .oqr-back { position: fixed; inset: 0; z-index: 2600; background: rgba(20, 16, 51, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
    .oqr-back[hidden] { display: none; }
    .oqr-box { width: 100%; max-width: 500px; max-height: 92vh; overflow: auto; padding: 22px; border-radius: 24px; background: #fff; color: #1E1B4B; box-shadow: 0 2px 8px rgba(30, 27, 75, 0.08); }
    .oqr-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
    .oqr-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFF1E6; color: #EA580C; }
    .oqr-ic.is-appeal { background: #EEEBFF; color: #4F46E5; }
    .oqr-ht { flex: 1; min-width: 0; } .oqr-box h3 { margin: 2px 0 2px; font-size: 18px; font-weight: 700; color: #1E1B4B; }
    .oqr-sub { margin: 0; color: #5B5880; font-size: 14px; line-height: 1.45; }
    .oqr-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ECE9FB; background: #fff; color: #1E1B4B; }
    .oqr-x:hover { background: #F8F6FF; }
    .oqr-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .oqr-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #F8F6FF; color: #1E1B4B; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
    .oqr-chip svg { color: #4F46E5; } .oqr-chip:hover { background: #EEEBFF; }
    .oqr-chip[aria-checked="true"] { background: #4F46E5; color: #fff; } .oqr-chip[aria-checked="true"] svg { color: #fff; }
    .oqr-text { width: 100%; border: 0; border-radius: 16px; padding: 12px 14px; background: #F8F6FF; color: #1E1B4B; font-size: 14px; resize: vertical; outline: none; }
    .oqr-text:focus { box-shadow: 0 0 0 2px #C9C2FF; }
    .oqr-err { color: #BE123C; font-size: 13px; margin: 8px 0 0; }
    .oqr-actions { display: flex; gap: 10px; margin-top: 16px; }
    .oqr-btn { flex: 1; height: 46px; border: 0; border-radius: 16px; font-size: 14px; font-weight: 700; background: #4F46E5; color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(30, 27, 75, 0.08); }
    .oqr-btn:hover { background: #4F46E5; } .oqr-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
    [data-theme="dark"] .oqr-btn:not(.oqr-btn--ghost) { background: #E8C878; color: #1A1440; box-shadow: none; } /* 12/11: the main button is gold at night */
    .oqr-btn--ghost { background: #fff; color: #4F46E5; border: 1px solid #DCD7FB; box-shadow: none; } .oqr-btn--ghost:hover { background: #F8F6FF; }
    .oqr-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
    .oqr-done span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #E7F7EE; color: #15803D; }
    .oqr-done b { font-size: 14px; color: #1E1B4B; }
    .oqr-flag { background: none; border: 0; padding: 0; font-size: 13px; color: var(--oq-muted, var(--bs-secondary-color, #777)); cursor: pointer; text-decoration: underline; }
    .oqr-flag:hover { color: var(--oq-violet, #6c63ff); }
    [data-theme="dark"] .oqr-box { background: #1E1B4B; color: #F4F2FF; border: 1px solid #2A2650; }
    [data-theme="dark"] .oqr-box h3, [data-theme="dark"] .oqr-done b { color: #fff; } [data-theme="dark"] .oqr-sub { color: #9C99BD; }
    /* 16/11 (Daniel: «this is normal?»): at night the reasons and the details box had the window's own colour, so they looked
       like plain text — a lighter navy, lavender icons, the chosen reason gold (the night colour), a gold focus ring */
    [data-theme="dark"] :is(.oqr-chip, .oqr-text) { background: #2A2650; color: #F4F2FF; } [data-theme="dark"] .oqr-chip svg { color: #C4C0FF; }
    [data-theme="dark"] .oqr-chip:hover { background: #342E66; } [data-theme="dark"] .oqr-text::placeholder { color: #9C99BD; }
    [data-theme="dark"] .oqr-chip[aria-checked="true"] { background: #E8C878; color: #1A1440; } [data-theme="dark"] .oqr-chip[aria-checked="true"] svg { color: #1A1440; }
    [data-theme="dark"] .oqr-text:focus { box-shadow: 0 0 0 2px rgba(232, 200, 120, .55); } [data-theme="dark"] .oqr-x, [data-theme="dark"] .oqr-btn--ghost { background: transparent; border-color: #2A2650; color: #C4C0FF; }

