/* Additive styles only: keep the original directory and college layouts. */
#group-choice {
  width: min(470px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
#group-choice::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.gc-heading {
  display: flex;
  align-items: start;
  gap: 14px;
  justify-content: space-between;
}
.gc-heading h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.gc-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}
.gc-status,
.gc-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}
.gc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.gc-option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--green);
  color: var(--on-accent);
  text-align: center;
  font: inherit;
  font-weight: 800;
  font-size: 19px;
}
.gc-option span {
  font-size: 12px;
  font-weight: 500;
}
.gc-option:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}
#group-choice summary {
  cursor: pointer;
  padding: 12px 0;
}
#group-choice details a {
  display: inline-block;
  padding: 8px 0;
  color: var(--green);
}
.hoc-page-link {
  padding: 20px 0 34px;
}
.hoc-page-link a {
  color: var(--green);
  font-weight: 700;
}
.hoc-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
#hoc-main .page-hero {
  padding: 42px 0 30px;
}
#hoc-main .page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
#hoc-main .page-hero p {
  margin: 14px 0;
}
#hoc-main [hidden] {
  display: none !important;
}
#hoc-form label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
#hoc-form :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
#hoc-form .dg-check {
  display: flex;
  align-items: start;
  gap: 10px;
}
.dg-check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
#hoc-form button {
  background: var(--green);
  color: var(--on-accent);
  margin-top: 16px;
}
#hoc-form button:disabled {
  opacity: 0.6;
}
#hoc-error {
  color: var(--danger);
}
#hoc-success {
  overflow-wrap: anywhere;
}
#group-choice :is(a, button, summary):focus-visible,
#hoc-main :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .hoc-panel {
    padding: 18px;
  }
  #group-choice {
    padding: 20px;
  }
  .gc-option {
    padding: 18px 8px;
  }
}
