/* Личный кабинет (SSR): дополнения к публичным стилям */

.lk-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.lk-logout-form .header__login {
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.lk-phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.lk-phase {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid #303a4d22;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
  background: #fff;
}

.lk-phase:hover:not(.lk-phase--locked) {
  box-shadow: 0 6px 20px rgba(48, 58, 77, 0.12);
}

.lk-phase--locked {
  cursor: pointer;
  opacity: 0.55;
}

.lk-phase__title {
  font-family: "Zen Maru Gothic", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  color: #303a4d;
}

.lk-phase__meta {
  font-size: 0.9rem;
  color: #4f5987;
  margin: 0;
}

.lk-modal[hidden] {
  display: none !important;
}

.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 58, 77, 0.45);
}

.lk-modal__panel {
  position: relative;
  max-width: 32rem;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.lk-modal__title {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  color: #303a4d;
}

.lk-modal__text {
  margin: 0 0 1rem 0;
  line-height: 1.5;
  color: #303a4d;
}

.lk-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.lk-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lk-tree__section {
  margin-bottom: 1.5rem;
}

.lk-tree__section-title {
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #303a4d;
}

.lk-tree__pages {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.lk-tree__page {
  margin: 0.35rem 0;
}

.lk-tree__page a {
  color: #4f5987;
  text-decoration: none;
}

.lk-tree__page a:hover {
  text-decoration: underline;
}

.lk-tree__done {
  color: #2d6a4f;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.lk-form-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #303a4d22;
}

.lk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.lk-media-block {
  margin: 1.25rem 0;
}

.lk-media-block audio,
.lk-media-block video {
  width: 100%;
  max-width: 42rem;
}
