/* App-owned vector reactions look consistent across browsers and devices. */
.learn-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  margin: -4px 0 14px;
  border: 1px solid #b9cfc0;
  border-radius: 14px;
  background: #f5f8f6;
  color: #163d35;
}
.learn-reactions-title {
  font-size: 13px;
  font-weight: 700;
}
.learn-reaction-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.learn-reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid #c6d8cd;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f5faf6);
  color: #163d35;
  cursor: pointer;
  box-shadow: 0 2px 5px #133b2910;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.learn-reaction-button:hover:not(:disabled),
.learn-reaction-button:focus-visible {
  transform: translateY(-2px);
  border-color: #7aab8d;
  box-shadow: 0 6px 14px #133b2924;
}
.learn-reaction-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.reaction-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  color: var(--reaction-ink);
  background: var(--reaction-bg);
}
.reaction-art svg {
  display: block;
  width: 24px;
  height: 24px;
}
.reaction-art-like {
  --reaction-ink: #2467a4;
  --reaction-bg: #e5f2ff;
}
.reaction-art-heart {
  --reaction-ink: #c34165;
  --reaction-bg: #ffe9ee;
}
.reaction-art-clap {
  --reaction-ink: #9b641d;
  --reaction-bg: #fff2d8;
}
.reaction-art-laugh {
  --reaction-ink: #9b6a05;
  --reaction-bg: #fff4c7;
}
.reaction-art-angry {
  --reaction-ink: #bf503c;
  --reaction-bg: #ffebe4;
}
.reaction-art-poop {
  --reaction-ink: #855946;
  --reaction-bg: #f2e9e1;
}
.learn-reaction-status {
  min-height: 1em;
  font-size: 12px;
}
.learn-reaction-dialog,
.ak-reaction-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border: 1px solid #a7bfb0;
  border-radius: 18px;
  background: #f5f8f6;
  color: #163d35;
}
.learn-reaction-dialog::backdrop,
.ak-reaction-dialog::backdrop {
  background: #061e1acc;
}
.learn-reaction-dialog h2,
.ak-reaction-dialog h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.learn-reaction-dialog .learn-reaction-buttons {
  margin-bottom: 18px;
}
.learn-reaction-dialog .learn-reaction-button {
  flex: 1 0 30%;
  font-size: 14px;
}
#learn-session.learn-expanded > .learn-view-toolbar .learn-reaction-full-trigger {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #9bb5a5;
  border-radius: 10px;
  background: #164b40;
  color: #fff;
  gap: 7px;
}
#workspace [data-page='academy'] #ak-studio-bar .ak-reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 700;
}
#workspace [data-page='academy'] #ak-studio-bar .ak-reaction-trigger .reaction-art,
#learn-session.learn-expanded .learn-reaction-full-trigger .reaction-art {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}
#workspace [data-page='academy'] #ak-studio-bar .ak-reaction-trigger.is-new {
  background: #b48f36;
  color: #102822;
  box-shadow: 0 0 0 3px #f8df8688;
}
.ak-reaction-counts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.ak-reaction-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #d1ded4;
  border-radius: 10px;
  background: #fff;
}
.ak-reaction-count strong {
  font-size: 18px;
}
.ak-reaction-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .learn-reaction-button {
    transition: none;
  }
  .learn-reaction-button:hover:not(:disabled) {
    transform: none;
  }
}
@media (max-width: 600px) {
  .learn-reactions {
    flex-direction: column;
    align-items: stretch;
  }
  .learn-reaction-buttons {
    justify-content: space-between;
  }
  .learn-reaction-button {
    flex: 1 0 14%;
  }
}
@media (max-width: 350px) {
  .learn-reaction-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .learn-reaction-button {
    width: 100%;
    min-width: 0;
  }
}

html[data-theme='dark'] body.ak-audience .learn-reactions {
  border-color: #49766e;
  background: linear-gradient(145deg, #173a3c, #112c32);
  color: #eaf7ef;
  box-shadow:
    inset 0 1px #ffffff17,
    0 10px 28px #07171735;
}
html[data-theme='dark'] body.ak-audience .learn-reaction-button,
html[data-theme='dark'] .ak-reaction-dialog .learn-reaction-button {
  border-color: #547d73;
  background: #214348;
  color: #f0f8f2;
  box-shadow: inset 0 1px #ffffff14;
}
html[data-theme='dark'] body.ak-audience .learn-reaction-button:is(:hover, :focus-visible),
html[data-theme='dark'] .ak-reaction-dialog .learn-reaction-button:is(:hover, :focus-visible) {
  border-color: #a0dbc8;
  background: #29545a;
  box-shadow: 0 5px 16px #04141866;
}
html[data-theme='dark'] body.ak-audience .learn-reaction-status {
  color: #c8ded2;
}
html[data-theme='dark'] .learn-reaction-dialog,
html[data-theme='dark'] .ak-reaction-dialog {
  border-color: #5d8578;
  background: linear-gradient(150deg, #1a3c3e, #102a31);
  color: #edf8f0;
  box-shadow: 0 24px 64px #020d10a8;
}
html[data-theme='dark'] .ak-reaction-count {
  border-color: #4f746d;
  background: #214348;
  color: #f0f8f2;
}
html[data-theme='dark'] .reaction-art-like {
  --reaction-ink: #8ac9ff;
  --reaction-bg: #3972a536;
}
html[data-theme='dark'] .reaction-art-heart {
  --reaction-ink: #ff9bb6;
  --reaction-bg: #a547673d;
}
html[data-theme='dark'] .reaction-art-clap,
html[data-theme='dark'] .reaction-art-laugh {
  --reaction-ink: #ffda86;
  --reaction-bg: #a87a2d40;
}
html[data-theme='dark'] .reaction-art-angry {
  --reaction-ink: #ffac99;
  --reaction-bg: #a44b3940;
}
html[data-theme='dark'] .reaction-art-poop {
  --reaction-ink: #e4b39b;
  --reaction-bg: #8d614d42;
}
