/* Scoped styles for the caption wording-review module only.
 * All selectors are .ccr-* prefixed. No global, caption, or code rules.
 */

.ccr-panel {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 8px 10px;
  margin: 8px 0;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #fafafa;
  color: #222;
  font-size: 13px;
  line-height: 1.4;
}

.ccr-panel[hidden] {
  display: none;
}

.ccr-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  cursor: pointer;
}

.ccr-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: none;
}

.ccr-check-label {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ccr-notice {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 4px 0;
  font-size: 12px;
  color: #555;
}

.ccr-status {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 12px;
  color: #333;
  min-height: 16px;
}

.ccr-caption-original {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

mark.ccr-mark {
  background: #fff3a3;
  color: inherit;
  text-decoration: underline wavy #8b6500;
  text-underline-offset: 3px;
  border-left: 1px solid #b58900;
  border-right: 1px solid #b58900;
  border-radius: 2px;
  padding: 0 1px;
  overflow-wrap: anywhere;
}

details.ccr-details {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 6px 0 2px;
  padding: 6px 8px;
  border: 1px dashed #a08c2e;
  border-radius: 6px;
  background: #fffdf0;
  color: #333;
  font-size: 12px;
}

summary.ccr-summary {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
  min-height: 44px;
  line-height: 44px;
  font-weight: 600;
}

.ccr-flag-label,
.ccr-quote,
.ccr-alt,
.ccr-reason {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 4px 0;
}

.ccr-dismiss {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  margin-top: 4px;
  border: 1px solid #888;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}

.ccr-check:focus-visible, .ccr-summary:focus-visible, .ccr-dismiss:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
