:root {
  --ghc-yellow: #f4cf21;
  --ghc-yellow-bright: #ffe55a;
  --ghc-surface: rgba(17, 19, 22, .96);
  --ghc-line: #292c31;
  --ghc-text: #f4f4ef;
  --ghc-muted: #999da3;
}

.ghc-shell {
  position: relative;
  max-width: 1400px;
  min-height: 78vh;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 44px);
  color: var(--ghc-text);
  background: transparent;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.ghc-shell * { box-sizing: border-box; }
.ghc-top { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--ghc-line); }
.ghc-top h1,
.ghc-panel h1,
.ghc-panel h2 { margin: 2px 0; color: #fff; line-height: 1.2; letter-spacing: .025em; text-transform: uppercase; }
.ghc-top h1 { font-size: clamp(1.65rem, 3.5vw, 2.65rem); }
.ghc-kicker,
.ghc-section-no { margin: 0; color: var(--ghc-yellow); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }

.ghc-mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #08090b;
  background: var(--ghc-yellow);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  font-size: 1.05rem;
  font-weight: 950;
}

.ghc-count { margin-left: auto; text-align: right; }
.ghc-count strong { display: block; color: var(--ghc-yellow); font-size: 1.75rem; line-height: 1; }
.ghc-count span { color: var(--ghc-muted); font-size: .76rem; text-transform: uppercase; }
.ghc-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 18px; }

.ghc-panel {
  position: relative;
  padding: clamp(19px, 2.5vw, 28px);
  background: var(--ghc-surface);
  border: 1px solid var(--ghc-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
}

.ghc-panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 70px; height: 2px; background: var(--ghc-yellow); }
.ghc-form-panel { align-self: start; }
.ghc-shell label { display: block; margin: 17px 0 6px; color: #e3e4df; font-size: .9rem; font-weight: 700; }
.ghc-shell label > span { color: var(--ghc-yellow); }
.ghc-shell label em { float: right; color: var(--ghc-muted); font-style: normal; font-weight: 500; }

.ghc-shell input,
.ghc-shell select {
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  color: #fff;
  background: #0d0f11;
  border: 1px solid #34373c;
  border-radius: 2px;
  font: inherit;
}

.ghc-shell input:hover,
.ghc-shell select:hover { border-color: #4a4d51; }
.ghc-shell input:focus,
.ghc-shell select:focus { border-color: var(--ghc-yellow); outline: 1px solid var(--ghc-yellow); outline-offset: 1px; }
.ghc-shell small,
.ghc-upload > span { display: block; margin-top: 5px; color: var(--ghc-muted) !important; font-size: .76rem; font-weight: 400; }

.ghc-btn,
.ghc-copy {
  margin-top: 17px;
  padding: 11px 15px;
  cursor: pointer;
  color: var(--ghc-yellow-bright);
  background: linear-gradient(180deg, rgba(244, 207, 33, .13), rgba(244, 207, 33, .055));
  border: 1px solid rgba(244, 207, 33, .52);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ghc-btn:hover,
.ghc-copy:hover { color: #090a0c; background: var(--ghc-yellow); }
.ghc-btn:disabled { cursor: wait; opacity: .55; }
.ghc-small { margin: 0; padding: 8px 11px; font-size: .75rem; text-decoration: none; }
.ghc-message { color: var(--ghc-yellow); line-height: 1.5; }
.ghc-error { padding: 10px 12px; color: #ffd9d6; background: rgba(125, 56, 53, .25); border: 1px solid #7d3835; }
.ghc-link { font-size: .76rem; }
.ghc-copy { margin-top: 7px; padding: 7px 9px; }

.ghc-roster-head { display: flex; gap: 20px; align-items: end; justify-content: space-between; }
.ghc-roster-head input { max-width: 270px; margin: 0; }
.ghc-table-wrap { margin-top: 17px; overflow-x: auto; }
.ghc-shell table { width: 100%; min-width: 820px; border-collapse: collapse; }
.ghc-shell th { padding: 10px; color: var(--ghc-muted); border-bottom: 1px solid #3a3d42; font-size: .72rem; letter-spacing: .075em; text-align: left; text-transform: uppercase; }
.ghc-shell td { padding: 11px 10px; border-bottom: 1px solid var(--ghc-line); vertical-align: middle; }
.ghc-shell tbody tr:hover { background: rgba(244, 207, 33, .035); }
.ghc-shell td strong,
.ghc-shell a { color: var(--ghc-yellow); }
.ghc-shell td img { width: 50px; height: 50px; object-fit: cover; border: 1px solid var(--ghc-line); }
.ghc-role { display: inline-block; padding: 5px 8px; color: #e8e8e3; background: #24272b; border: 1px solid #3b3e43; font-size: .74rem; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.ghc-role-diver { color: #f3f3ee; }
.ghc-role-democracy_officer { color: #ffe98a; border-color: rgba(244, 207, 33, .5); }
.ghc-role-admin { color: #0b0c0e; background: var(--ghc-yellow); border-color: var(--ghc-yellow); }
.ghc-role-unassigned { color: var(--ghc-muted); font-weight: 650; }
.ghc-shell footer { margin-top: 24px; color: #74787e; font-size: .74rem; text-align: center; }
.ghc-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ghc-admin-list { display: grid; gap: 13px; margin-top: 18px; }
.ghc-admin-card { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 17px; padding: 17px 0; border-top: 1px solid var(--ghc-line); }
.ghc-admin-avatar { display: grid; width: 86px; height: 86px; align-content: center; justify-items: center; overflow: hidden; color: var(--ghc-muted); background: linear-gradient(145deg, #17191c, #0d0f11); border: 1px solid #34373c; }
.ghc-admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ghc-admin-avatar span { color: var(--ghc-yellow); font-size: 1rem; font-weight: 950; letter-spacing: .12em; }
.ghc-admin-avatar small { margin-top: 4px; color: var(--ghc-muted); font-size: .68rem; }
.ghc-admin-card label { margin: 5px 0; }
.ghc-admin-card > .ghc-message { grid-column: 2 / -1; margin: 0; }
.ghc-actions { display: flex; flex-direction: column; gap: 8px; min-width: 110px; }
.ghc-danger { padding: 8px; color: #fff; background: #35191a; border: 1px solid #7d3835; cursor: pointer; }
.ghc-login { max-width: 620px; min-height: 0; }
.ghc-login .ghc-panel { max-width: 520px; margin: auto; }
.ghc-auth-intro { color: var(--ghc-muted); line-height: 1.55; }
.ghc-auth-form { margin-top: 22px; }
.ghc-auth-form .ghc-remember { display: flex; gap: 9px; align-items: center; font-weight: 500; }
.ghc-auth-form .ghc-remember input { width: auto; margin: 0; accent-color: var(--ghc-yellow); }
.ghc-auth-form .ghc-btn { width: 100%; }

.ghc-user-admin .card { max-width: 760px; padding: 12px 24px 20px; }
.ghc-inline-admin-form { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 900px) {
  .ghc-grid { grid-template-columns: 1fr; }
  .ghc-roster-head { align-items: stretch; flex-direction: column; }
  .ghc-roster-head input { max-width: none; }
  .ghc-admin-card { grid-template-columns: 1fr; }
  .ghc-admin-card > .ghc-message { grid-column: auto; }
  .ghc-top { align-items: flex-start; }
  .ghc-count { display: none; }
}

@media (max-width: 520px) {
  .ghc-shell { padding: 14px; }
  .ghc-mark { flex-basis: 45px; width: 45px; height: 45px; }
  .ghc-top h1 { font-size: 1.35rem; }
  .ghc-panel { padding: 17px; }
}
