.ir-request-open { overflow: hidden !important; }
.ir-request-modal[hidden] { display: none !important; }
.ir-request-modal { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: center; padding: 24px; font-family: "Segoe UI", Arial, sans-serif; color: #172033; }
.ir-request-backdrop { position: absolute; inset: 0; background: rgba(12, 18, 30, .58); backdrop-filter: blur(2px); }
.ir-request-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border: 1px solid #d9e0ea; border-radius: 14px; box-shadow: 0 28px 80px rgba(0, 0, 0, .34); }
.ir-request-header { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 22px 24px 18px; border-bottom: 1px solid #e6eaf0; }
.ir-request-brand { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: #0969da; font-weight: 800; letter-spacing: .04em; }
.ir-request-eyebrow { display: block; color: #55708f; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ir-request-header h2 { margin: 3px 0 0; color: #14213a; font-size: 24px; font-weight: 700; }
.ir-request-close { width: 38px; height: 38px; border: 0; border-radius: 50%; color: #5d6879; background: transparent; font-size: 30px; line-height: 34px; cursor: pointer; }
.ir-request-close:hover { background: #f0f3f7; color: #172033; }
.ir-request-close:focus { outline: none; }
.ir-request-close:focus-visible { background: #f0f3f7; box-shadow: 0 0 0 3px rgba(9, 105, 218, .18); color: #172033; }
.ir-request-body { padding: 22px 24px 8px; }
.ir-request-intro { margin: 0 0 18px; color: #49566a; font-size: 15px; line-height: 1.55; }
.ir-request-profile { display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; margin-bottom: 18px; border: 0; background: transparent; }
.ir-request-profile div, .ir-request-profile div:last-child { display: flex; flex: 0 1 auto; align-items: baseline; min-width: 0; padding: 6px 9px; border: 1px solid #dfe5ed; border-radius: 7px; background: #f8fafc; }
.ir-request-profile span { display: inline; flex: 0 0 auto; margin: 0 6px 0 0; color: #6b7788; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ir-request-profile strong { display: inline; min-width: 0; overflow: hidden; color: #26344a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ir-request-profile strong .ir-request-sector { margin: 0; color: #009fc2; font-size: inherit; font-weight: inherit; text-transform: none; }
.ir-request-note { display: block; margin: 0 0 18px; }
.ir-request-note > span { display: block; margin: 0 0 7px; color: #6b7788; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ir-request-note textarea { box-sizing: border-box; width: 100%; min-height: 76px; padding: 11px 13px; resize: vertical; border: 1px solid #d5dde8; border-radius: 9px; outline: none; color: #26344a; background: #fff; font: inherit; line-height: 1.4; }
.ir-request-note textarea:focus { border-color: #6ca7e8; box-shadow: 0 0 0 3px rgba(9, 105, 218, .10); }
.ir-request-note textarea:disabled { color: #6d7888; background: #f3f6f9; }
.ir-request-note-summary { min-width: 0; margin: 0 0 12px; padding: 7px 10px; border: 1px solid #dfe5ed; border-radius: 7px; background: #f8fafc; }
.ir-request-note-summary span { margin-right: 6px; color: #6b7788; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ir-request-note-summary strong { color: #26344a; font-size: 12px; font-weight: 600; }
.ir-request-session-active .ir-request-intro { display: none; }
.ir-request-session-active .ir-request-body { padding-top: 14px; }
.ir-request-session-active .ir-request-profile { margin-bottom: 8px; }
.ir-request-session-active .ir-request-note { display: none; }
.ir-request-status { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid #dce4ef; border-radius: 10px; background: #f7f9fc; }
.ir-request-status-icon { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #8492a6; box-shadow: 0 0 0 4px rgba(132, 146, 166, .14); }
.ir-request-status strong { color: #26344a; font-size: 14px; }
.ir-request-status p { margin: 3px 0 0; color: #5f6d80; line-height: 1.45; }
.ir-request-status-ready .ir-request-status-icon, .ir-request-status-connected .ir-request-status-icon { background: #18a568; box-shadow: 0 0 0 4px rgba(24, 165, 104, .14); }
.ir-request-status-waiting .ir-request-status-icon, .ir-request-status-incoming .ir-request-status-icon, .ir-request-status-accepted .ir-request-status-icon { background: #e49a16; box-shadow: 0 0 0 4px rgba(228, 154, 22, .16); }
.ir-request-status-offline .ir-request-status-icon, .ir-request-status-error .ir-request-status-icon, .ir-request-status-unauthorized .ir-request-status-icon { background: #d64045; box-shadow: 0 0 0 4px rgba(214, 64, 69, .14); }
.ir-request-code-panel, .ir-request-incoming { margin-top: 16px; padding: 18px; border: 1px solid #cfd9e8; border-radius: 10px; background: #f9fbfe; }
.ir-request-code-panel > span { display: block; color: #5d6b7d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ir-request-code-panel > strong { display: block; margin: 6px 0; color: #132b4c; font-family: Consolas, monospace; font-size: 34px; letter-spacing: .16em; }
.ir-request-code-panel p, .ir-request-incoming p { margin: 5px 0 0; color: #566477; line-height: 1.45; }
.ir-request-incoming > strong { color: #172d4d; font-size: 18px; }
.ir-request-shared { align-items: center; gap: 10px; padding: 11px 24px; color: #fff; background: #087f5b; }
.ir-request-shared:not([hidden]) { display: flex; }
.ir-request-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #7dffc9; box-shadow: 0 0 0 4px rgba(125, 255, 201, .18); }
.ir-request-persistent { position: fixed; top: 14px; right: 18px; z-index: 29999; display: flex; align-items: stretch; overflow: hidden; color: #fff; background: #087f5b; border: 1px solid rgba(255, 255, 255, .38); border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .32); font-family: "Segoe UI", Arial, sans-serif; }
.ir-request-persistent[hidden] { display: none !important; }
.ir-request-persistent-open { display: grid; grid-template-columns: auto auto; gap: 1px 10px; align-items: center; padding: 10px 14px; border: 0; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.ir-request-persistent-open .ir-request-live-dot { grid-row: 1 / 3; }
.ir-request-persistent-open strong { font-size: 13px; }
.ir-request-persistent-open small { color: #c8ffeb; font-size: 11px; }
.ir-request-persistent-end { padding: 0 13px; border: 0; border-left: 1px solid rgba(255, 255, 255, .25); color: #fff; background: rgba(0, 0, 0, .12); font-weight: 700; cursor: pointer; }
.ir-request-persistent-end:hover { background: rgba(100, 0, 0, .28); }
.ir-remote-cursor { position: fixed; top: 0; left: 0; z-index: 2147483647; width: 19px; height: 25px; pointer-events: none; transform-origin: 0 0; filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .7)); }
.ir-remote-cursor::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 82%, 23% 64%, 39% 100%, 54% 93%, 38% 59%, 69% 59%); }
.ir-remote-cursor::after { content: ""; position: absolute; inset: 2px 3px 4px 2px; background: #087fdb; clip-path: polygon(0 0, 0 72%, 21% 55%, 38% 92%, 46% 88%, 30% 52%, 59% 52%); }
.ir-remote-cursor.is-pressed::after { background: #e5484d; }
.ir-request-link-button { margin-left: auto; border: 0; color: #fff; background: transparent; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ir-request-footer { display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 24px 22px; }
.ir-request-footer > span { color: #6d7888; font-size: 12px; }
.ir-request-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.ir-request-incoming .ir-request-actions { margin-top: 15px; justify-content: flex-start; }
.ir-request-button { min-height: 38px; padding: 8px 16px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-weight: 650; cursor: pointer; }
.ir-request-button:disabled { cursor: default; opacity: .55; }
.ir-request-button-primary { color: #fff; background: #0969da; }
.ir-request-button-primary:hover:not(:disabled) { background: #075bbb; }
.ir-request-button-secondary { color: #34445b; border-color: #cbd4df; background: #fff; }
.ir-request-button-danger { color: #b4232b; border-color: #e6b9bc; background: #fff; }
.ir-request-button-danger:hover { background: #fff2f2; }
@media (max-width: 640px) {
    .ir-request-modal { padding: 10px; }
    .ir-request-dialog { max-height: calc(100vh - 20px); }
    .ir-request-header, .ir-request-body, .ir-request-footer { padding-left: 16px; padding-right: 16px; }
    .ir-request-footer { align-items: stretch; flex-direction: column; }
    .ir-request-actions { justify-content: stretch; }
    .ir-request-button { flex: 1 1 auto; }
}
