#sc2027RegistrationAdmin[hidden] { display: none !important; }

.sc-2027-registration-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 16px 0 26px;
  padding: 28px;
  border: 2px solid #d8b85a;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 128, .26), transparent 34%),
    linear-gradient(145deg, #fffdf5 0%, #ffffff 45%, #eef5fb 100%);
  box-shadow: 0 18px 44px rgba(23, 58, 94, .18), 0 3px 10px rgba(23, 58, 94, .08);
}

.sc-2027-registration-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #d6ae35, #173a5e);
  z-index: -1;
}

.sc-2027-registration-card .sc-section-head { margin-bottom: 8px; }

.sc-2027-registration-card .sc-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #173a5e;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(23, 58, 94, .16);
}

.sc-2027-registration-card h2 {
  margin: 0;
  color: #173a5e;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.sc-2027-registration-card > p {
  max-width: 980px;
  margin: 8px 0 22px;
  color: #526778;
  font-size: .98rem;
  line-height: 1.55;
}

.sc-2027-registration-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(23, 58, 94, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(23, 58, 94, .07);
  backdrop-filter: blur(6px);
}

.sc-2027-registration-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #263f54;
  font-size: .82rem;
  font-weight: 850;
}

.sc-2027-registration-form label span { letter-spacing: .01em; }

.sc-2027-registration-form input,
.sc-2027-registration-form select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #c8d4df;
  border-radius: 11px;
  background: #fff;
  color: #172a3a;
  padding: 11px 13px;
  font: inherit;
  font-size: .96rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sc-2027-registration-form select { cursor: pointer; }

.sc-2027-registration-form select:disabled {
  cursor: not-allowed;
  color: #7d8c99;
  background: #f2f5f7;
}

.sc-2027-registration-form input:hover,
.sc-2027-registration-form select:not(:disabled):hover { border-color: #aebfce; }

.sc-2027-registration-form input:focus,
.sc-2027-registration-form select:focus {
  border-color: #d0aa36;
  box-shadow: 0 0 0 4px rgba(208, 170, 54, .16);
  transform: translateY(-1px);
}

.sc-2027-registration-time-field {
  grid-column: 1 / -1;
  gap: 10px !important;
  padding: 16px;
  border: 1px solid #d8e1e9;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfd, #fffdf7);
}

.sc-2027-qualification-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 1px;
}

.sc-2027-qualification-day {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #d7e1e9;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 58, 94, .05);
}

.sc-2027-qualification-day strong {
  color: #173a5e;
  font-size: .86rem;
  font-weight: 900;
}

.sc-2027-qualification-day span {
  color: #667a8a;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}

.sc-2027-qualification-day.is-pending {
  border-style: dashed;
  background: #f7f9fb;
}

.sc-2027-qualification-day.is-pending span {
  color: #7b8792;
  font-style: italic;
}

.sc-2027-qualification-day.is-active {
  border-color: #d6b554;
  background: linear-gradient(135deg, #fffdf5, #fff);
}

.sc-2027-time-hint {
  color: #6c7d8b;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.45;
}

.sc-2027-time-disclaimer {
  display: block;
  padding: 10px 12px;
  border-left: 4px solid #d0aa36;
  border-radius: 8px;
  background: rgba(208, 170, 54, .09);
  color: #596c7a;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.45;
}

.sc-2027-time-disclaimer strong { color: #3e5364; }

.sc-2027-registration-time-field small,
.sc-2027-photo-field small {
  color: #6c7d8b;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.4;
}

.sc-2027-photo-field {
  grid-column: 1 / span 2;
  padding: 16px;
  border: 1.5px dashed #a9bac8;
  border-radius: 13px;
  background: #f8fbfd;
}

.sc-2027-photo-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
}

.sc-2027-photo-field > span strong {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #173a5e;
  color: #fff;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sc-2027-photo-field input[type="file"] {
  min-height: auto;
  padding: 10px;
  cursor: pointer;
}

.sc-2027-photo-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  background: #173a5e;
  color: #fff;
  padding: 9px 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.sc-2027-photo-preview {
  grid-column: 3;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d8e0e7;
  border-radius: 13px;
  background: #fff;
}

.sc-2027-photo-preview[hidden],
.sc-2027-generated-preview[hidden] { display: none !important; }

.sc-2027-photo-preview span {
  color: #5d7182;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sc-2027-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  object-fit: cover;
  background: #eef2f5;
}

.sc-2027-registration-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#sc2027RegistrationSubmit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #173a5e, #255d8f);
  color: #fff;
  padding: 12px 24px;
  font: inherit;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 58, 94, .23);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#sc2027RegistrationSubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 58, 94, .27);
  filter: brightness(1.06);
}

#sc2027RegistrationSubmit:disabled { opacity: .55; cursor: wait; transform: none; }

.sc-2027-registration-status {
  min-height: 20px;
  color: #607080;
  font-size: .84rem;
  font-weight: 750;
}

.sc-2027-registration-status.success { color: #176b45; }
.sc-2027-registration-status.error { color: #a82d36; }

.sc-2027-generated-preview {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr);
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #cfd9e2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbfd, #fffdf6);
}

.sc-2027-generated-preview h3 {
  margin: 4px 0 7px;
  color: #173a5e;
  font-size: 1.2rem;
}

.sc-2027-generated-preview p {
  margin: 0;
  color: #657786;
  font-size: .83rem;
  line-height: 1.45;
}

.sc-2027-generated-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
  box-shadow: 0 10px 28px rgba(23, 58, 94, .18);
}

.sc-2027-registration-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 58, 94, .13);
}

.sc-2027-registration-list-head h3 {
  margin: 0;
  color: #21384b;
  font-size: 1rem;
}

.sc-2027-registration-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e1e8;
  border-radius: 12px;
  background: #fff;
}

.sc-2027-registration-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
  font-size: .8rem;
}

.sc-2027-registration-table th,
.sc-2027-registration-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e4e9ee;
  text-align: left;
  vertical-align: middle;
}

.sc-2027-registration-table th {
  background: #173a5e;
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.sc-2027-registration-table tbody tr:last-child td { border-bottom: 0; }
.sc-2027-registration-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.sc-2027-registration-table a { color: #173a5e; }

.sc-2027-delete-registration,
.sc-2027-view-profile {
  border-radius: 8px;
  padding: 6px 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sc-2027-delete-registration {
  border: 1px solid #e3b9bd;
  background: #fff7f7;
  color: #9b2f38;
}

.sc-2027-view-profile {
  border: 1px solid #abc5d8;
  background: #f2f8fc;
  color: #173a5e;
}

.sc-2027-registration-empty {
  padding: 14px;
  border: 1px dashed #ccd7e1;
  border-radius: 10px;
  color: #687887;
  background: #f8fafb;
}

.sc-2027-registration-empty.error { color: #a82d36; }

@media (max-width: 900px) {
  .sc-2027-registration-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-2027-registration-time-field,
  .sc-2027-photo-field { grid-column: 1 / -1; }
  .sc-2027-photo-preview { grid-column: 1 / -1; max-width: 340px; }
}

@media (max-width: 700px) {
  .sc-2027-registration-card {
    margin: 12px 0 22px;
    padding: 21px 16px 18px;
    border-radius: 17px;
    box-shadow: 0 14px 30px rgba(23, 58, 94, .17);
  }

  .sc-2027-registration-card::before { width: 5px; }

  .sc-2027-registration-card .sc-kicker {
    font-size: .65rem;
    padding: 5px 9px;
  }

  .sc-2027-registration-card h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .sc-2027-registration-card > p {
    margin-bottom: 17px;
    font-size: .88rem;
  }

  .sc-2027-registration-form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 13px;
  }

  .sc-2027-registration-form input,
  .sc-2027-registration-form select {
    min-height: 54px;
    font-size: 16px;
  }

  .sc-2027-registration-time-field,
  .sc-2027-photo-field,
  .sc-2027-photo-preview { grid-column: auto; }

  .sc-2027-qualification-days {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sc-2027-qualification-day {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .sc-2027-qualification-day span { text-align: right; }

  .sc-2027-photo-preview { max-width: none; }
  .sc-2027-photo-preview img { aspect-ratio: 16 / 10; }

  .sc-2027-registration-actions {
    grid-column: auto;
    display: grid;
    gap: 9px;
  }

  #sc2027RegistrationSubmit {
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
  }

  .sc-2027-generated-preview {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sc-2027-generated-preview img { grid-row: 1; }
  .sc-2027-registration-list-head { margin-top: 20px; }
}
