/* MangaOps Connector: report form + series card.
   Scoped under .moc-* and built from currentColor so it sits naturally on a
   light or dark theme without knowing which one it is on. */

.moc-report,
.moc-series {
  --moc-accent: var(--ast-global-color-0, #0274be);
  box-sizing: border-box;
}
.moc-report *,
.moc-report *::before,
.moc-report *::after { box-sizing: border-box; }

.moc-report {
  margin: 28px 0 20px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}
.moc-report__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.moc-report__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.moc-report__title { font-weight: 600; }
.moc-report__sub { font-size: 13.5px; opacity: .72; }

.moc-report__open,
.moc-report__send {
  flex: none;
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--moc-accent);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.moc-report__open:hover,
.moc-report__send:hover { filter: brightness(1.1); }
.moc-report__open:active,
.moc-report__send:active { transform: translateY(1px); }
.moc-report__open:focus-visible,
.moc-report__send:focus-visible,
.moc-report__x:focus-visible { outline: 2px solid var(--moc-accent); outline-offset: 2px; }

.moc-report__done { margin: 0; font-weight: 600; }

@media (max-width: 560px) {
  .moc-report__bar { flex-direction: column; align-items: stretch; text-align: center; }
  .moc-report__open { width: 100%; }
}

/* The dialog paints its own surface: it floats over whatever the theme is. */
.moc-report__modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.moc-report__modal[hidden] { display: none; }
.moc-report__backdrop { position: absolute; inset: 0; background: rgba(8, 9, 12, .62); }
.moc-report__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 14px;
  background: #1c1d22;
  color: #eceef2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  font-size: 15px;
}
.moc-report__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.moc-report__head h2 { margin: 0; font-size: 19px; line-height: 1.3; color: inherit; }
.moc-report__x {
  appearance: none; border: 0; background: transparent; color: inherit;
  width: 34px; height: 34px; border-radius: 8px; font-size: 24px; line-height: 1; cursor: pointer; opacity: .7;
}
.moc-report__x:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.moc-report__form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.moc-report__form label { font-size: 13.5px; font-weight: 600; color: #c9ccd4; }
.moc-report__form label span { font-weight: 400; opacity: .7; }
.moc-report__form select,
.moc-report__form textarea {
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #3a3d46;
  border-radius: 8px;
  background: #121317;
  color: #eceef2;
  font: inherit;
  font-size: 15px;
}
.moc-report__form textarea { resize: vertical; min-height: 92px; }
.moc-report__form select:focus,
.moc-report__form textarea:focus { outline: none; border-color: var(--moc-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--moc-accent) 35%, transparent); }
.moc-report__status { min-height: 1.2em; margin: 0; font-size: 13.5px; color: #f3b35b; }
.moc-report__status.is-ok { color: #6fd19a; }
.moc-report__send { width: 100%; padding: 12px 16px; }
.moc-report__send[disabled] { opacity: .6; cursor: default; }
body.moc-report-lock { overflow: hidden; }

/* Series card rendered by [manga_display]. */
.moc-series {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
.moc-series,
.moc-series:hover,
.moc-series:focus,
.moc-series * { text-decoration: none !important; box-shadow: none; }
.moc-series:hover { border-color: var(--moc-accent); background: color-mix(in srgb, currentColor 5%, transparent); color: inherit; }
.moc-series__cover { width: 56px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; margin: 0; }
.moc-series__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.moc-series__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.moc-series__title { font-size: 16px; line-height: 1.3; }
.moc-series__cta { font-size: 14px; font-weight: 600; color: var(--moc-accent); }
