.yc-closure-layer {
  position: absolute;
  inset: 0;
  z-index: 95;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #202849;
  background: #f6f7fb;
  font-family: inherit;
}

.yc-c-header {
  flex: 0 0 64px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 0;
  border-bottom: 1px solid #e4e7f0;
  background: rgba(255, 255, 255, 0.98);
}

.yc-c-header > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.yc-c-header strong {
  max-width: 240px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yc-c-header span {
  color: #7c839d;
  font-size: 10px;
}

.yc-c-header button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #3f4869;
  background: #eff1f6;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.yc-c-progress {
  flex: 0 0 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #fff;
}

.yc-c-progress span {
  background: #e6e8f0;
}

.yc-c-progress span.active {
  background: #655ed8;
}

.yc-c-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 28px;
}

.yc-c-intro {
  padding: 0 2px 18px;
}

.yc-c-intro small {
  color: #655ed8;
  font-size: 11px;
  font-weight: 800;
}

.yc-c-intro h1 {
  margin: 6px 0 8px;
  color: #202849;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.yc-c-intro p {
  margin: 0;
  color: #6f7895;
  font-size: 13px;
  line-height: 1.6;
}

.yc-c-checks,
.yc-c-fields {
  display: grid;
  gap: 10px;
}

.yc-c-checks button {
  width: 100%;
  min-height: 58px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 1px solid #dfe2ec;
  border-radius: 12px;
  color: #3a4466;
  background: #fff;
  cursor: pointer;
}

.yc-c-checks button i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #ccd1df;
  border-radius: 7px;
  color: transparent;
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.yc-c-checks button.selected {
  border-color: #817be2;
  background: #f7f6ff;
}

.yc-c-checks button.selected i {
  border-color: #655ed8;
  color: #fff;
  background: #655ed8;
}

.yc-c-checks button span {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.yc-c-fields label,
.yc-c-field {
  display: grid;
  gap: 7px;
}

.yc-c-fields label > span,
.yc-c-field > span {
  color: #555f7e;
  font-size: 11px;
  font-weight: 750;
}

.yc-c-fields input,
.yc-c-field textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d9ddea;
  border-radius: 10px;
  outline: 0;
  color: #2d3658;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.yc-c-field textarea {
  min-height: 92px;
  resize: vertical;
}

.yc-c-fields input:focus,
.yc-c-field textarea:focus {
  border-color: #655ed8;
  box-shadow: 0 0 0 3px rgba(101, 94, 216, 0.12);
}

.yc-c-summary {
  margin: 0;
  padding: 4px 16px;
  border: 1px solid #e0e3ed;
  border-radius: 12px;
  background: #fff;
}

.yc-c-summary > div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eceef4;
}

.yc-c-summary > div:first-child {
  border-top: 0;
}

.yc-c-summary dt {
  color: #655ed8;
  font-size: 10px;
  font-weight: 850;
}

.yc-c-summary dd {
  margin: 0;
  color: #3d4768;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.yc-c-alert {
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid #f1c7c9;
  border-radius: 10px;
  color: #8b3f49;
  background: #fff6f6;
  font-size: 11px;
  line-height: 1.55;
}

.yc-c-success {
  margin-bottom: 14px;
  padding: 22px 16px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid #dce7e2;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.yc-c-success > i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #28a874;
  font-size: 27px;
  font-style: normal;
  font-weight: 900;
}

.yc-c-success strong {
  color: #253052;
  font-size: 15px;
}

.yc-c-success span {
  color: #79819b;
  font-size: 10px;
}

.yc-c-visual,
.yc-c-video {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #dfe2ec;
  border-radius: 12px;
  background: #fff;
}

.yc-c-visual img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  object-position: center 36%;
}

.yc-c-video {
  position: relative;
}

.yc-c-video img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}

.yc-c-video > span {
  position: absolute;
  right: 18px;
  bottom: 23px;
  left: 18px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.yc-c-video > span i {
  width: 52%;
  height: 100%;
  display: block;
  background: #fff;
}

.yc-c-video small {
  position: absolute;
  right: 18px;
  bottom: 7px;
  color: #fff;
  font-size: 9px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.yc-c-map {
  height: 250px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e1e4;
  border-radius: 12px;
  background: #eaf1ee;
}

.yc-c-map::before,
.yc-c-map::after {
  content: "";
  position: absolute;
  background: rgba(122, 170, 148, 0.27);
  border-radius: 40%;
}

.yc-c-map::before { width: 160px; height: 110px; top: 18px; left: -22px; }
.yc-c-map::after { width: 180px; height: 140px; right: -44px; bottom: -15px; }
.yc-c-map .road { position: absolute; height: 18px; width: 130%; left: -15%; background: #fff; transform: rotate(-24deg); box-shadow: 0 0 0 1px #d9dfe2; }
.yc-c-map .road.a { top: 92px; }
.yc-c-map .road.b { top: 150px; transform: rotate(22deg); }
.yc-c-map > i { position: absolute; z-index: 2; top: 104px; left: calc(50% - 13px); width: 26px; height: 26px; border: 5px solid #fff; border-radius: 50% 50% 50% 0; background: #655ed8; transform: rotate(-45deg); box-shadow: 0 5px 16px rgba(52, 46, 125, 0.3); }
.yc-c-map > strong { position: absolute; z-index: 3; top: 144px; width: 100%; text-align: center; font-size: 13px; }
.yc-c-map > small { position: absolute; z-index: 3; top: 165px; width: 100%; color: #68748b; text-align: center; font-size: 10px; }

.yc-c-stars {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.yc-c-stars button {
  min-width: 0;
  height: 48px;
  border: 1px solid #dfe2ec;
  border-radius: 10px;
  color: #cbd0dc;
  background: #fff;
  font-size: 25px;
  cursor: pointer;
}

.yc-c-stars button.selected {
  border-color: #e5c164;
  color: #e6b53b;
  background: #fffaf0;
}

.yc-c-footer {
  flex: 0 0 auto;
  min-height: 78px;
  padding: 12px 16px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: end;
  gap: 10px;
  border-top: 1px solid #e1e4ed;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(47, 54, 91, 0.07);
}

.yc-c-footer > button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.yc-c-footer .primary {
  border: 0;
  color: #fff;
  background: #655ed8;
}

.yc-c-footer .primary.danger {
  background: #c84f5d;
}

.yc-c-footer .secondary {
  border: 1px solid #d9ddea;
  color: #555f7c;
  background: #fff;
}

.yc-c-footer > button:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

.yc-timeline-filter-result {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #5d58bb;
  background: #f0efff;
  font-size: 11px;
  font-weight: 800;
}

.reminder-card.yc-reminder-complete {
  opacity: 0.62;
}

.reminder-card.yc-reminder-complete > button {
  border-color: #28a874;
  color: #fff;
  background: #28a874;
}

.reminder-card.yc-reminder-complete h3 {
  text-decoration: line-through;
}

.timeline-entry[role="button"],
[data-yc-runtime][role="button"] {
  cursor: pointer;
}

.timeline-entry[role="button"]:focus-visible,
[data-yc-runtime][role="button"]:focus-visible {
  outline: 3px solid rgba(101, 94, 216, 0.25);
  outline-offset: 2px;
}

.yc-closure-layer button:active,
[data-yc-runtime]:active {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: no-preference) {
  .yc-closure-layer {
    animation: yc-c-enter 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes yc-c-enter {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (max-width: 760px) {
  .yc-closure-layer {
    position: fixed;
    width: min(390px, 100vw);
    height: 100dvh;
    margin-inline: auto;
  }
  .yc-c-scroll { padding-inline: 15px; }
  .yc-c-intro h1 { font-size: 22px; }
}
