.s66-timetable,
.s66-timetable-choices,
.s66-timetable-results {
  scroll-margin-top: 1.25rem;
}

.s66-page .s66-timetable-choices {
  width: 100%;
  margin: 1.5rem 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid #dce5ef;
  border-radius: 1.15rem;
  background: #fbfcfe;
}

.s66-timetable-level {
  display: grid;
  gap: .5rem;
  width: min(100%, 24rem);
  margin: 0 0 1.25rem;
  color: #183653;
  font-size: .9375rem;
  font-weight: 600;
}

.s66-timetable-level select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .65rem 2.75rem .65rem .85rem;
  border: 1px solid #b9c9db;
  border-radius: .625rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23324f70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .85rem center;
  color: #183653;
  font: inherit;
  font-size: 1rem;
  appearance: none;
}

.s66-timetable-choices > h3,
.s66-timetable-tools > h3 {
  margin: 0;
  color: #183653;
}

.s66-timetable-choices .s66-intro {
  margin: .5rem 0 .75rem;
  font-size: .9375rem;
}

.s66-timetable-choices .s66-layout {
  gap: 1rem;
  margin-top: .8rem;
}

.s66-timetable-choices .s66-subject {
  min-height: 60px;
  padding: .6rem .75rem;
  border-radius: .7rem;
}

.s66-timetable-choices .s66-hint {
  margin: .75rem 0;
}

.s66-timetable-choices .s66-actions {
  margin-top: .9rem;
}

.s66-timetable-change:empty {
  margin: 0;
}

.s66-timetable-change:not(:empty) {
  margin: .85rem 0;
  padding: .7rem .85rem;
  border-left: 3px solid #29628e;
  border-radius: 0 .5rem .5rem 0;
  background: #edf5fb;
  color: #21466a;
}

.s66-timetable-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #216b99;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .17em;
}

.s66-timetable-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.s66-timetable-tools button {
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #becedf;
  border-radius: .625rem;
  color: #244c70;
  background: #f2f7fc;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.s66-timetable-tools button:hover {
  background: #e7f1fa;
}

.s66-timetable-tools button:focus-visible,
.s66-timetable-level select:focus-visible {
  outline: 3px solid #236b9b;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .s66-page .s66-timetable-choices {
    padding: 1rem;
  }

  .s66-timetable-choices .s66-actions {
    align-items: flex-start;
    gap: .25rem;
  }

  .s66-timetable-choices .s66-actions a:not(.button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .s66-timetable-tools {
    align-items: flex-start;
    flex-direction: column;
  }
}

.s66-form-subjects {
  min-width: 0;
  margin: 0 0 1.1rem;
  padding: .9rem;
  border: 1px solid #d6e1ed;
  border-radius: .75rem;
}

.s66-form-subjects legend {
  padding-inline: .3rem;
  color: #183653;
  font-size: .9375rem;
  font-weight: 600;
}

.alc2027-section .s66-form-subjects p {
  margin: 0 0 .65rem;
  color: #526071;
  font-size: .875rem;
  line-height: 1.55;
}

.s66-form-subjects [data-secondary-form-options] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.75rem), 1fr));
  gap: .5rem;
}

.alc2027-form .s66-form-subjects label {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin: 0;
  padding: .5rem .65rem;
  border: 1px solid #dce5ee;
  border-radius: .55rem;
  color: #183653;
  background: #fff;
  font-size: .875rem;
  line-height: 1.4;
  cursor: pointer;
}

.alc2027-form .s66-form-subjects label:has(input:checked) {
  border-color: #a32659;
  background: #fff3f8;
}

.alc2027-form .s66-form-subjects input[type="checkbox"] {
  flex: 0 0 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: #a32659;
}

.alc2027-form .s66-form-subjects label:focus-within {
  outline: 3px solid #236b9b;
  outline-offset: 2px;
}

.s66-timetable-level[hidden],
.s66-timetable [hidden],
.s66-selected-timetable [data-alc-live-note] {
  display: none !important;
}
.s66-timetable-options {
  margin-top: .8rem;
}
.s66-timetable-subject-note {
  margin: .6rem 0;
  color: #294967;
}

.s66-timetable-conflict p:empty,
.alc2027-section .s66-form-subjects p.s66-form-notice:empty {
  margin: 0;
}

.s66-timetable-overlap:not(:empty),
.alc2027-section .s66-form-subjects .s66-form-notice:not(:empty) {
  margin: .75rem 0;
  padding: .7rem .85rem;
  border-left: 3px solid #a17424;
  border-radius: 0 .5rem .5rem 0;
  background: #fff8ea;
  color: #5d431a;
  font-size: .9375rem;
  line-height: 1.55;
}

.s66-timetable-groups:not(:empty) {
  margin: .65rem 0 .85rem;
  color: #294967;
  font-size: .9375rem;
}

.s66-form-estimate {
  margin-top: .8rem;
  padding: .75rem .9rem;
  border: 1px solid #d6e1ed;
  border-radius: .55rem;
  background: #f2f7fc;
  color: #183653;
}

.alc2027-section .s66-form-estimate p {
  margin: .2rem 0 0;
  color: #183653;
  font-size: .9375rem;
}

.s66-form-estimate a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #216b99;
  font-size: .875rem;
  text-decoration: underline;
}

#anggaran-yuran-menengah {
  scroll-margin-top: 1.25rem;
}

.s66-timetable-registration {
  margin: 1.25rem 0;
}
.s66-timetable-registration .s66-estimate {
  max-width: 42rem;
  padding: 1rem 1.25rem;
}
.s66-timetable-registration .s66-estimate h4 {
  margin: 0 0 .6rem;
  color: #183653;
  font-size: 1.125rem;
}
.s66-timetable-registration .s66-estimate p,
.s66-timetable-registration .s66-estimate dl {
  margin-bottom: .4rem;
}
.s66-timetable-registration .s66-estimate .s66-amount {
  font-size: 1.6rem;
  margin: .3rem 0 .6rem;
}
.s66-timetable-registration .s66-actions {
  margin-top: .9rem;
}
@media (min-width:375px) and (max-width:600px) {
  .s66-timetable-choices .s66-choices {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem;
  }
  .s66-timetable-choices .s66-subject {
    gap: .45rem;
    padding-inline: .5rem;
    font-size: .875rem;
    line-height: 1.4;
  }
  .s66-timetable-choices .s66-subject input {
    width: 18px;
    height: 18px;
  }
  .s66-timetable-choices .s68-subject-copy strong {
    font-size: .9rem;
    line-height: 1.4;
    overflow-wrap: normal;
  }
}
