#admin-ir { --border: #475569; --bg: #151827; --text: #e2e8f0; --accent: #c4b5fd; }
html[data-theme="light"] #admin-ir { --border: #94a3b8; --bg: #ffffff; --text: #1f2937; --accent: #4f46e5; }
#admin-ir [hidden] { display: none !important; }
#admin-ir h4 { margin: 0 0 12px; }
#admin-ir label { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 140px; }
#admin-ir input, #admin-ir select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit;
}
#admin-ir button, #admin-ir a { min-height: 44px; }
#admin-ir button { white-space: normal; overflow-wrap: anywhere; background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: 6px; cursor: pointer; font: inherit; }
#admin-ir button:disabled { opacity: .6; cursor: default; }
#admin-ir button:active { opacity: .75; }
#admin-ir .admin-sched-err { color: #fca5a5; }
html[data-theme="light"] #admin-ir .admin-sched-err { color: #b91c1c; }
#admin-ir .ir-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; align-items: end; }
#admin-ir-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; margin: 12px 0 20px; }
#admin-ir .ir-source { display: flex; flex-direction: column; text-align: left; gap: 6px; min-width: 0; }
#admin-ir-detail { overflow-wrap: anywhere; }
#admin-ir-detail:not(:empty) { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 16px 0; }
#admin-ir-detail ul { padding-left: 20px; }
#admin-ir-detail a { display: inline-flex; align-items: center; max-width: 100%; color: var(--accent); text-decoration: underline; }
#admin-ir :is(input, select, button, a, h4):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#admin-ir-status { min-height: 24px; overflow-wrap: anywhere; }
