/* KG Channel Intelligence OS V11.2 R11.10.11
   Contributor attribution, contribution summary, exact-duplicate decision,
   and same-exercise GIF recovery. */

.v111011Contributor {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0 4px;
  padding: 9px 10px;
  color: #f5f7fa;
  border: 1px solid #344353;
  border-radius: 10px;
  background: #182330;
}

.v111011Contributor > span,
.v111011ContributorIdentity > span {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #13171b;
  border-radius: 50%;
  background: #f4eee4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.v111011Contributor > div,
.v111011ContributorIdentity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v111011Contributor small {
  color: #aebdcb !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v111011Contributor b {
  overflow: hidden;
  color: #ffffff !important;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v111011ExactDecision > div,
.v111011RepairPanel > div {
  min-width: 0;
}

.v111011ExactDecision label {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #fff0cf !important;
  font-size: 12px;
  font-weight: 800;
}

.v111011ExactDecision label small {
  color: #dfc48d !important;
  font-weight: 600;
}

.v111011ExactDecision textarea {
  min-height: 76px;
  resize: vertical;
  padding: 10px 11px;
  color: #f8fafc !important;
  border: 1px solid #81652e !important;
  border-radius: 9px;
  background: #171a1e !important;
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
}

.v111011ExactActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.v111011ExactActions button {
  min-height: 38px;
  padding: 8px 12px !important;
}

.v111011ExactActions button.reject {
  color: #ffd9dc !important;
  border-color: #7b4149 !important;
  background: #351c22 !important;
}

.v111011ExactActions button[data-primary="true"] {
  color: #15191e !important;
  border-color: #f4eee4 !important;
  background: #f4eee4 !important;
}

.v111011RepairPanel {
  color: #c5f5dc !important;
  border-color: #38765c !important;
  background: #153129 !important;
}

.v111011ContributionSummary {
  display: grid;
  gap: 16px;
}

.v111011ContributionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  color: #f5f7fa;
  border: 1px solid #39424c;
  border-radius: 16px;
  background: #11161b;
}

.v111011ContributionHead h2 {
  margin: 7px 0 5px;
  color: #ffffff !important;
  font-size: clamp(22px, 3vw, 34px);
}

.v111011ContributionHead p {
  max-width: 760px;
  margin: 0;
  color: #c3ccd5 !important;
  line-height: 1.55;
}

.v111011ContributionHead > button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px !important;
  color: #171a1e !important;
  border-color: #eee8dd !important;
  background: #eee8dd !important;
}

.v111011ContributionStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.v111011ContributionStats > div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  padding: 17px;
  color: #f5f7fa;
  border: 1px solid #354352;
  border-radius: 13px;
  background: #121e2b;
}

.v111011ContributionStats span,
.v111011ContributionStats small {
  color: #b5c2cf !important;
}

.v111011ContributionStats span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.v111011ContributionStats b {
  color: #ffffff !important;
  font-size: 28px;
  line-height: 1;
}

.v111011ContributionToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px;
  color: #d7dee5;
  border: 1px solid #39424c;
  border-radius: 12px;
  background: #11161b;
}

.v111011ContributionToolbar label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
}

.v111011ContributionToolbar input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #f8fafc !important;
  border: 1px solid #45515c !important;
  border-radius: 8px;
  background: #181d22 !important;
}

.v111011ContributionTableWrap {
  overflow-x: auto;
  border: 1px solid #39424c;
  border-radius: 14px;
  background: #11161b;
}

.v111011ContributionTable {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  color: #e8edf2;
}

.v111011ContributionTable th,
.v111011ContributionTable td {
  padding: 14px 15px;
  text-align: left;
  border-bottom: 1px solid #2f3841;
}

.v111011ContributionTable th {
  color: #afbbc7 !important;
  background: #171d23;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v111011ContributionTable tbody tr:last-child td {
  border-bottom: 0;
}

.v111011ContributionTable strong {
  color: #ffffff;
  font-size: 20px;
}

.v111011ContributorIdentity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v111011ContributorIdentity b {
  color: #ffffff !important;
}

.v111011ContributorIdentity small {
  color: #aeb9c4 !important;
}

.v111011RecentCodes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.v111011RecentCodes code {
  padding: 4px 6px;
  color: #f3f6f8;
  border: 1px solid #3e4a55;
  border-radius: 6px;
  background: #1a222a;
  font-size: 10px;
}

html[data-kg-theme="light"] .v111011Contributor,
html[data-kg-theme="light"] .v111011ContributionStats > div {
  color: #20252a;
  border-color: #b9b1a5;
  background: #f0ece4;
}

html[data-kg-theme="light"] .v111011Contributor small,
html[data-kg-theme="light"] .v111011ContributionStats span,
html[data-kg-theme="light"] .v111011ContributionStats small {
  color: #515b64 !important;
}

html[data-kg-theme="light"] .v111011Contributor b,
html[data-kg-theme="light"] .v111011ContributionStats b {
  color: #171b1f !important;
}

html[data-kg-theme="light"] .v111011Contributor > span,
html[data-kg-theme="light"] .v111011ContributorIdentity > span {
  color: #ffffff;
  background: #2b3238;
}

html[data-kg-theme="light"] .v111011ExactDecision label {
  color: #654205 !important;
}

html[data-kg-theme="light"] .v111011ExactDecision label small {
  color: #77571e !important;
}

html[data-kg-theme="light"] .v111011ExactDecision textarea {
  color: #202428 !important;
  border-color: #b48b3d !important;
  background: #fffdf8 !important;
}

html[data-kg-theme="light"] .v111011RepairPanel {
  color: #14553d !important;
  border-color: #6da98f !important;
  background: #e7f5ee !important;
}

html[data-kg-theme="light"] .v111011ContributionHead,
html[data-kg-theme="light"] .v111011ContributionToolbar,
html[data-kg-theme="light"] .v111011ContributionTableWrap {
  color: #24282c;
  border-color: #b9b1a5;
  background: #f5f1e9;
}

html[data-kg-theme="light"] .v111011ContributionHead h2,
html[data-kg-theme="light"] .v111011ContributorIdentity b {
  color: #171b1f !important;
}

html[data-kg-theme="light"] .v111011ContributionHead p,
html[data-kg-theme="light"] .v111011ContributorIdentity small {
  color: #515961 !important;
}

html[data-kg-theme="light"] .v111011ContributionToolbar input {
  color: #202428 !important;
  border-color: #aaa297 !important;
  background: #fffdf9 !important;
}

html[data-kg-theme="light"] .v111011ContributionTable {
  color: #25292d;
}

html[data-kg-theme="light"] .v111011ContributionTable th {
  color: #4e575f !important;
  background: #e8e2d8;
}

html[data-kg-theme="light"] .v111011ContributionTable th,
html[data-kg-theme="light"] .v111011ContributionTable td {
  border-bottom-color: #c9c1b6;
}

html[data-kg-theme="light"] .v111011ContributionTable strong {
  color: #171b1f;
}

html[data-kg-theme="light"] .v111011RecentCodes code {
  color: #25292d;
  border-color: #b8afa3;
  background: #eee8de;
}

@media (max-width: 900px) {
  .v111011ContributionStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .v111011ContributionHead,
  .v111011ContributionToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .v111011ContributionHead > button,
  .v111011ExactActions,
  .v111011ExactActions button {
    width: 100%;
  }

  .v111011ContributionStats {
    grid-template-columns: 1fr;
  }
}
