/* Interlect Report: the "found a mistake?" button, modal and form. Theme tokens with fallbacks (light), so it renders without the theme. */
.ilxr-bar { display: flex; justify-content: center; margin: 1.25rem 0 .25rem; }
.ilxr-open-btn {
  font: inherit; font-family: var(--font-body, inherit); font-size: .9rem; font-weight: 700; cursor: pointer; min-height: 36px;
  padding: .25rem 1rem; border-radius: 999px; border: 2px solid var(--edge, #2b1a3f);
  background: var(--paper, #fffdf5); color: var(--ink, #2b1a3f); box-shadow: 2px 2px 0 var(--edge, #2b1a3f);
}
.ilxr-open-btn:hover, .ilxr-open-btn:focus-visible {
  background: var(--sun, #ffc933); color: var(--on-color, #2b1a3f); border-color: var(--edge, #2b1a3f);
  box-shadow: 2px 2px 0 var(--edge, #2b1a3f); transform: translate(-1px, -1px);
}
.ilxr-open-btn:focus-visible { outline: 3px solid var(--sky, #46b8ff); outline-offset: 2px; }

/* the theme sets `.ilx button { color: inherit }` (0,1,1): our buttons keep their ink at a higher specificity */
.ilxr-bar .ilxr-open-btn, .ilxr-panel .ilxr-btn, .ilxr-box .ilxr-x { color: var(--ink, #2b1a3f); }
.ilxr-panel .ilxr-btn-primary { color: var(--on-color, #2b1a3f); }
.ilxr-bar .ilxr-open-btn:hover, .ilxr-bar .ilxr-open-btn:focus-visible { color: var(--on-color, #2b1a3f); }
.ilxr-file::file-selector-button {
  font: inherit; font-weight: 800; margin-inline-end: .75rem; padding: .3rem .9rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--edge, #2b1a3f); background: var(--sun, #ffc933); color: var(--on-color, #2b1a3f);
}

html.ilxr-open { overflow: hidden; }
.ilxr-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 100002; display: flex; align-items: flex-start; justify-content: center;
  padding: 1rem; overflow-y: auto; background: rgba(29, 18, 49, .6); -webkit-overflow-scrolling: touch;
}
.ilxr-box {
  position: relative; width: 100%; max-width: 560px; margin: auto; padding: 1.4rem 1.25rem 1.25rem; box-sizing: border-box;
  background: var(--paper, #fffdf5); color: var(--ink, #2b1a3f); border: 3px solid var(--edge, #2b1a3f); border-radius: 24px;
  box-shadow: var(--sh-lg, 7px 7px 0 #2b1a3f); font-family: var(--font-body, inherit); font-size: 1rem; line-height: 1.55; text-align: right;
}
.ilxr-box *, .ilxr-inline-box *, .ilxr-box *::before, .ilxr-inline-box *::before { box-sizing: border-box; }
.ilxr-x {
  position: absolute; top: .6rem; inset-inline-start: .6rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--edge, #2b1a3f); background: var(--bg, #fff2d4); color: var(--ink, #2b1a3f); font-size: 1.5rem; line-height: 1; padding: 0;
}
.ilxr-title { margin: 0 0 .25rem; padding-inline-start: 3rem; font-family: var(--font-display, inherit); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: var(--ink, #2b1a3f); }
.ilxr-intro { margin: 0 0 1rem; color: var(--muted, #6a5880); font-size: .95rem; }

.ilxr-inline-box {
  max-width: 640px; padding: 1.25rem; background: var(--paper, #fffdf5); color: var(--ink, #2b1a3f); border: 3px solid var(--edge, #2b1a3f);
  border-radius: 24px; box-shadow: var(--sh, 4px 4px 0 #2b1a3f); font-family: var(--font-body, inherit); text-align: right;
}
.ilxr-form { display: grid; gap: .9rem; }
.ilxr-field { display: grid; gap: .3rem; min-width: 0; }
.ilxr-field label { font-weight: 800; color: var(--ink, #2b1a3f); }
.ilxr-input, .ilxr-file {
  font: inherit; width: 100%; max-width: 100%; padding: .6rem .8rem; min-height: 46px; border: 2px solid var(--edge, #2b1a3f); border-radius: 14px;
  background: var(--bg, #fff2d4); color: var(--ink, #2b1a3f);
}
textarea.ilxr-input { min-height: 8rem; resize: vertical; line-height: 1.5; }
.ilxr-input:focus-visible, .ilxr-file:focus-visible, .ilxr-btn:focus-visible, .ilxr-x:focus-visible { outline: 3px solid var(--sky, #46b8ff); outline-offset: 2px; }
.ilxr-meta { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.ilxr-hint, .ilxr-count { font-size: .85rem; color: var(--muted, #6a5880); }
.ilxr-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ilxr-shot { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ilxr-shot[hidden], .ilxr-thumb[hidden], .ilxr-err[hidden] { display: none; }
.ilxr-thumb { display: block; width: 96px; height: 72px; object-fit: cover; border: 2px solid var(--edge, #2b1a3f); border-radius: 10px; background: #fff; }
.ilxr-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); left: -9999px; }
.ilxr-err {
  margin: 0; padding: .6rem .8rem; border-radius: 12px; border: 2px solid var(--no, #b02a1c);
  background: var(--no-soft, #ffd9d1); color: var(--no, #b02a1c); font-weight: 700;
}
.ilxr-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ilxr-btn {
  font: inherit; font-weight: 800; cursor: pointer; min-height: 46px; padding: .4rem 1.4rem; border-radius: 999px; border: 3px solid var(--edge, #2b1a3f);
  background: var(--paper, #fffdf5); color: var(--ink, #2b1a3f); box-shadow: var(--sh, 4px 4px 0 #2b1a3f);
}
.ilxr-btn-small { min-height: 36px; padding: .15rem .9rem; font-size: .9rem; box-shadow: 2px 2px 0 var(--edge, #2b1a3f); border-width: 2px; }
.ilxr-btn-primary { background: var(--sun, #ffc933); color: var(--on-color, #2b1a3f); }
.ilxr-btn:hover:not([disabled]) { transform: translate(-1px, -1px); }
.ilxr-btn[disabled] { opacity: .6; cursor: wait; }
.ilxr-thanks { text-align: center; padding: 1.25rem .5rem; display: grid; gap: 1rem; justify-items: center; }
.ilxr-thanks-text { margin: 0; font-family: var(--font-display, inherit); font-size: 1.5rem; color: var(--ink, #2b1a3f); }
@media (max-width: 480px) {
  .ilxr-modal { padding: .5rem; }
  .ilxr-box { padding: 1.1rem .9rem; border-radius: 20px; }
  .ilxr-actions .ilxr-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ilxr-open-btn:hover, .ilxr-btn:hover { transform: none; } }
