/* ReadyCue startup skin: calm, low-distraction, Bootstrap-compatible. */
:root {
  --readycue-surface: #f7fbfb;
  --readycue-soft: #eef7f5;
}

body {
  background: var(--readycue-surface);
}

body.readycue-modal-open {
  overflow: hidden;
}

.navbar {
  background: #315f66;
}

.navbar-brand,
.navbar .nav-link,
.navbar .btn-outline-light {
  color: #fff;
}

.readycue-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--readycue-soft) 100%);
}

.readycue-audience-card {
  background: #fcfefe;
}

.readycue-entry-shell {
  box-shadow: 0 1rem 2rem rgba(38, 74, 79, 0.08);
}

.readycue-entry-intro {
  max-width: 42rem;
  margin: 0 auto;
}

.readycue-entry-card {
  border-color: #e6ddd1;
}

.readycue-entry-card-primary {
  background: rgba(255, 255, 255, 0.92);
}

.readycue-entry-form .form-control,
.readycue-entry-form .btn {
  min-height: 3.25rem;
}

.readycue-entry-steps .card-body {
  min-height: 100%;
}

.readycue-entry-reminder {
  border: 1px solid #e6ddd1;
  background: rgba(255, 255, 255, 0.74) !important;
}

.readycue-checklist {
  display: grid;
  gap: 0.5rem;
}

.readycue-checklist div::before {
  content: "\2713";
  color: #315f66;
  font-weight: 700;
  margin-right: 0.5rem;
}

.btn-primary {
  --bs-btn-bg: #315f66;
  --bs-btn-border-color: #315f66;
  --bs-btn-hover-bg: #284f55;
  --bs-btn-hover-border-color: #284f55;
}

.readycue-manager-subnav {
  align-items: center;
}

.readycue-manager-subnav .btn {
  min-height: 2.5rem;
}

.readycue-copy-link input {
  min-width: 0;
}

.readycue-learner-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(111, 174, 117, 0.14), transparent 20rem),
    radial-gradient(circle at top right, rgba(47, 111, 136, 0.12), transparent 18rem),
    #f8fbf8;
  color: #223848;
}

.readycue-learner-shell {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.readycue-learner-intro {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.readycue-learner-header {
  max-width: 42rem;
}

.readycue-learner-header-icon {
  line-height: 1;
}

.readycue-learner-header-title {
  margin-bottom: 0;
}

.readycue-learner-gate-form > .btn {
  min-width: min(100%, 18rem);
}

.readycue-identity-card {
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2rem rgba(38, 74, 79, 0.12) !important;
}

.readycue-routine-grid {
  align-items: stretch;
}

.readycue-routine-card {
  border: 0;
  overflow: hidden;
}

.readycue-routine-card .card-body {
  min-height: 12rem;
}

.readycue-routine-card-icon {
  line-height: 1;
}

.readycue-tap-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.readycue-tap-card:hover,
.readycue-tap-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 1rem 1.75rem rgba(38, 74, 79, 0.12) !important;
}

.readycue-story-card {
  border: 0;
}

.readycue-story-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.85rem;
  border-radius: 999px;
  background: #eef7f5;
}

.readycue-story-media {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 16 / 9;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 1px solid #d9e6e3;
  border-radius: 0.75rem;
  background: #f8fcfb;
}

.readycue-story-picture {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #e9f6f3 0 62%, #d8ece6 62% 100%);
}

.readycue-story-picture::before,
.readycue-story-picture::after {
  position: absolute;
  content: "";
  background: #ffd7bc;
}

.readycue-story-picture::before {
  width: 44%;
  height: 18%;
  left: 8%;
  bottom: 13%;
  border-radius: 0.5rem;
}

.readycue-story-picture::after {
  width: 26%;
  height: 28%;
  right: 12%;
  bottom: 13%;
  border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
  background: #b9d7ff;
}

.readycue-story-picture-mark {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  border: 0.25rem solid #ffffff;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1rem 2rem rgba(38, 74, 79, 0.16);
  font-size: 4.5rem;
  line-height: 1;
}

.readycue-story-video {
  display: grid;
  place-items: center;
  background: #263f47;
  border-color: #263f47;
}

.readycue-story-video-player {
  background: #111b1f;
  border-color: #263f47;
}

.readycue-story-image {
  background: #ffffff;
  border-color: rgba(38, 63, 71, 0.14);
}

.readycue-story-image-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.readycue-ending-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #111b1f;
  object-fit: contain;
}

.readycue-video-help {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(17, 27, 31, 0.72);
  color: #ffffff;
  font-size: 0.875rem;
}

.readycue-video-screen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 78%;
}

.readycue-video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: #f7fbfb;
  font-size: 2.25rem;
  line-height: 1;
}

.readycue-video-timeline {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 1.15rem;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.readycue-video-timeline span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #ffd166;
  animation: readycue-video-progress 3.8s ease-in-out infinite;
}

.readycue-play-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #263f47;
  font-size: 1.25rem;
  box-shadow: 0 0.75rem 1.5rem rgba(10, 24, 29, 0.2);
}

.readycue-story-text {
  text-wrap: balance;
}

.readycue-story-audio {
  margin-top: 1rem;
}

.readycue-story-audio-player {
  display: block;
  width: min(100%, 26rem);
  margin: 0 auto;
}

.readycue-story-actions {
  align-items: stretch;
}

.readycue-story-action,
.readycue-story-action-form {
  flex: 1 1 14rem;
}

.readycue-story-action-form .btn {
  width: 100%;
}

.readycue-learner-finish .card {
  border: 0;
}

@keyframes readycue-video-progress {
  0% {
    transform: translateX(-102%);
  }

  55%,
  100% {
    transform: translateX(240%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .readycue-tap-card {
    transition: none;
  }

  .readycue-video-timeline span {
    animation: none;
    transform: translateX(70%);
  }
}

@media (max-width: 767.98px) {
  .nav-shell {
    gap: 0.5rem;
  }

  .nav-main {
    gap: 0.5rem;
  }

  .nav-account {
    width: auto !important;
    flex-basis: auto !important;
    justify-content: flex-start;
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .nav-account .btn {
    width: auto !important;
    flex: 0 0 auto;
    min-height: 2.2rem;
    padding: 0.45rem 0.9rem;
  }

  .readycue-entry-shell {
    padding: 1.5rem 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .readycue-entry-intro .display-5 {
    font-size: clamp(2rem, 7vw, 2.55rem);
    line-height: 1.06;
  }

  .readycue-entry-intro .lead {
    font-size: 1.15rem;
  }

  .readycue-entry-card .card-body {
    padding: 1.25rem !important;
  }

  .readycue-entry-form .form-control,
  .readycue-entry-form .btn {
    min-height: 3rem;
  }

  .readycue-entry-steps {
    padding-top: 0.75rem !important;
  }

  .readycue-entry-reminder {
    padding: 1.25rem !important;
  }

  .readycue-learner-header {
    margin-bottom: 1.25rem !important;
  }

  .readycue-learner-header-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.08;
  }

  .readycue-story-card .card-body {
    padding: 1.25rem !important;
  }

  .readycue-story-text {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    line-height: 1.12 !important;
  }

  .readycue-story-actions {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-brand {
    min-height: auto;
    margin-right: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .navbar-nav {
    flex-basis: 100%;
  }

  .nav-account .btn {
    justify-content: center;
  }

  .readycue-entry-intro {
    margin-bottom: 1.5rem !important;
  }

  .readycue-entry-intro .lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 16rem;
  }

  .readycue-entry-card .card-body {
    padding: 1.1rem !important;
  }

  .readycue-learner-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .readycue-learner-intro .lead,
  .readycue-learner-finish .lead {
    font-size: 1.05rem;
  }

  .readycue-routine-card .card-body {
    min-height: 0;
  }

  .readycue-story-picture-mark {
    width: 6.25rem;
    height: 6.25rem;
    font-size: 3.5rem;
  }

  .readycue-video-screen {
    width: 72%;
    gap: 0.35rem;
  }

  .readycue-video-frame {
    font-size: 1.75rem;
  }

  .readycue-video-help {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
  }
}

.readycue-story-topic {
  background: #fff;
  border: 1px solid rgba(31, 45, 61, 0.12);
  border-radius: 1rem;
  overflow: hidden;
}

.readycue-story-topic-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 1.25rem;
}

.readycue-story-topic-summary::-webkit-details-marker {
  display: none;
}

.readycue-story-topic-summary::after {
  color: #516072;
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.readycue-story-topic[open] .readycue-story-topic-summary::after {
  content: "-";
}

.readycue-story-topic-summary:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

.readycue-icon-current {
  min-width: 3rem;
  justify-content: center;
  font-size: 1.25rem;
}

.readycue-icon-current img,
.readycue-icon-picker-thumb img {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.readycue-fluent-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -0.12em;
}

.readycue-icon-picker > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  list-style: none;
}

.readycue-icon-picker > summary::-webkit-details-marker {
  display: none;
}

.readycue-icon-picker-search {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
}

.readycue-icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.5rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid rgba(31, 45, 61, 0.14);
  border-radius: 0.5rem;
  background: #ffffff;
}

.readycue-icon-picker-option[hidden] {
  display: none;
}

.readycue-icon-picker-option {
  position: relative;
  display: grid;
  grid-template-rows: 2.25rem auto;
  gap: 0.25rem;
  align-items: center;
  justify-items: center;
  min-height: 4.75rem;
  padding: 0.45rem;
  border: 1px solid rgba(31, 45, 61, 0.14);
  border-radius: 0.5rem;
  background: #f8fcfb;
  color: #223848;
}

.readycue-icon-picker-option:hover,
.readycue-icon-picker-option:focus-visible,
.readycue-icon-picker-option.is-selected {
  border-color: #315f66;
  background: #eef7f5;
}

.readycue-icon-picker-option.is-selected {
  box-shadow: 0 0 0 0.15rem rgba(49, 95, 102, 0.18);
}

.readycue-icon-picker-thumb {
  font-size: 1.65rem;
  line-height: 1;
}

.readycue-icon-picker-key {
  max-width: 100%;
  overflow: hidden;
  color: #516072;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readycue-icon-picker-hover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  z-index: 2;
  display: none;
  min-width: 8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(31, 45, 61, 0.16);
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 1.5rem rgba(38, 74, 79, 0.16);
  color: #223848;
  font-size: 0.8rem;
  text-align: center;
  transform: translateX(-50%);
}

.readycue-icon-picker-hover span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 2rem;
  line-height: 1;
}

.readycue-icon-picker-hover img {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  object-fit: contain;
}

.readycue-icon-picker-option:hover .readycue-icon-picker-hover,
.readycue-icon-picker-option:focus-visible .readycue-icon-picker-hover {
  display: block;
}

.readycue-icon-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.readycue-icon-modal[hidden] {
  display: none;
}

.readycue-icon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 25, 29, 0.46);
}

.readycue-icon-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 58rem);
  max-height: min(86vh, 44rem);
  overflow: hidden;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3rem rgba(10, 24, 29, 0.22);
}

.readycue-icon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(31, 45, 61, 0.12);
}

.readycue-icon-modal-body {
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
}

.readycue-icon-modal-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.readycue-icon-modal-panelset .readycue-icon-picker-grid {
  max-height: 26rem;
}

@media (max-width: 575.98px) {
  .readycue-icon-modal {
    align-items: stretch;
    padding: 0.5rem;
  }

  .readycue-icon-modal-panel {
    max-height: 92vh;
  }

  .readycue-icon-modal-body,
  .readycue-icon-modal-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
