:root {
  --gh-bg: #f3efe6;
  --gh-ink: #1c1917;
  --gh-muted: #57534e;
  --gh-panel: #fffdf8;
  --gh-line: #e7e0d4;
  --gh-accent: #0f766e;
  --gh-accent-ink: #042f2e;
  --gh-sidebar: #134e4a;
  --gh-sidebar-ink: #ecfdf5;
  --gh-warn: #9a3412;
  --gh-radius: 14px;
  --gh-font: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.gh-body {
  margin: 0;
  font-family: var(--gh-font);
  color: var(--gh-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8efe9 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f6e7d4 0%, transparent 50%),
    var(--gh-bg);
}

.gh-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, #115e59 0%, #134e4a 60%, #0f3f3c 100%);
  color: var(--gh-sidebar-ink);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  z-index: 20;
}
.gh-brand { display: flex; gap: .85rem; align-items: center; padding: .35rem .5rem 1.25rem; }
.gh-brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: .04em;
  background: #99f6e4; color: #042f2e;
}
.gh-brand-name { font-weight: 700; font-size: 1.05rem; }
.gh-brand-sub { font-size: .78rem; opacity: .8; max-width: 160px; line-height: 1.3; }
.gh-nav { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.gh-nav-link {
  color: inherit; text-decoration: none;
  padding: .7rem .85rem; border-radius: 10px;
  opacity: .9;
}
.gh-nav-link:hover { background: rgba(255,255,255,.1); }
.gh-sidebar-foot { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.gh-user { font-size: .85rem; margin-bottom: .4rem; opacity: .9; }

.gh-main { min-height: 100%; }
.gh-main.with-nav { margin-left: 260px; }

.gh-page { padding: 1.75rem 2rem 3rem; max-width: 1100px; }
.gh-page-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.gh-kicker {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; font-weight: 600; color: var(--gh-accent); margin: 0 0 .4rem;
}
.gh-page h1 { margin: 0 0 .45rem; font-size: 1.85rem; line-height: 1.2; }
.gh-lead { margin: 0; color: var(--gh-muted); max-width: 52ch; }

.gh-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.gh-step {
  display: block; text-decoration: none; color: inherit;
  background: var(--gh-panel); border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius); padding: 1.25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gh-step:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,25,23,.08); }
.gh-step-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: #ccfbf1; color: var(--gh-accent-ink); font-weight: 700; font-size: .85rem;
  margin-bottom: .75rem;
}
.gh-step h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.gh-step p { margin: 0; color: var(--gh-muted); font-size: .92rem; }

.gh-panel {
  background: var(--gh-panel); border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius); padding: 1.15rem 1.25rem; margin-bottom: 1rem;
}
.gh-panel h2 { margin: 0 0 .85rem; font-size: 1.05rem; }
.gh-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.gh-panel-head h2 { margin: 0; }

.gh-form { display: grid; gap: .85rem; }
.gh-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; }
.gh-form input, .gh-form select, .gh-search {
  font: inherit; padding: .55rem .7rem; border-radius: 10px;
  border: 1px solid var(--gh-line); background: #fff; color: var(--gh-ink);
}
.gh-form-row { grid-template-columns: 2fr 1fr .7fr 1.4fr auto; align-items: end; }
.gh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.gh-inline { display: flex; gap: .5rem; }
.gh-inline input { width: 100%; }
.gh-checks { display: flex; flex-wrap: wrap; gap: 1rem; }
.gh-checks label { display: flex; gap: .45rem; align-items: center; font-weight: 500; }
.gh-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.gh-btn {
  font: inherit; border-radius: 999px; border: 1px solid var(--gh-line);
  background: #fff; color: var(--gh-ink); padding: .55rem 1.1rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
}
.gh-btn:disabled { opacity: .5; cursor: not-allowed; }
.gh-btn-primary { background: var(--gh-accent); border-color: var(--gh-accent); color: #ecfdf5; }
.gh-link-btn {
  background: none; border: 0; color: var(--gh-accent); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.gh-msg { margin: .35rem 0 0; color: var(--gh-accent-ink); font-size: .9rem; }
.gh-error { color: var(--gh-warn); font-size: .9rem; }
.gh-empty { color: var(--gh-muted); margin: 0; }
.gh-search { min-width: 200px; }

.gh-table-wrap { overflow: auto; }
.gh-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gh-table th, .gh-table td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--gh-line); vertical-align: top; }
.gh-table th { color: var(--gh-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.gh-login {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem;
}
.gh-login-panel {
  width: min(440px, 100%);
  background: var(--gh-panel); border: 1px solid var(--gh-line);
  border-radius: 20px; padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(28,25,23,.08);
}
.gh-login-panel h1 { margin: 0 0 .5rem; font-size: 1.55rem; }
.gh-login-modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
  margin: 1rem 0 .85rem; padding: .3rem;
  background: #efe8dc; border-radius: 999px;
}
.gh-login-mode {
  text-align: center; text-decoration: none; color: var(--gh-muted);
  font-weight: 600; font-size: .9rem; padding: .55rem .7rem; border-radius: 999px;
}
.gh-login-mode.active {
  background: #fff; color: var(--gh-accent-ink);
  box-shadow: 0 1px 4px rgba(28,25,23,.08);
}
.gh-role-badge {
  display: inline-block; margin-left: .35rem; padding: .1rem .45rem;
  font-size: .68rem; border-radius: 999px; font-weight: 600;
  background: rgba(255,255,255,.16); vertical-align: middle;
}
.gh-step-muted { opacity: .85; cursor: default; }
body.gh-admin .gh-sidebar {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f2744 60%, #0b1c31 100%);
}
body.gh-admin .gh-brand-mark { background: #bfdbfe; color: #0f2744; }
body.gh-admin .gh-kicker { color: #1d4ed8; }

@media (max-width: 960px) {
  .gh-sidebar { position: static; width: auto; }
  .gh-main.with-nav { margin-left: 0; }
  .gh-steps, .gh-form-row, .gh-grid-2 { grid-template-columns: 1fr; }
  .gh-page { padding: 1.25rem; }
}
