.gp-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  color: #fff;
  font-family: 'Montserrat', system-ui, sans-serif;
}

.gp-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a8b8;
}

.gp-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gp-lead {
  max-width: 46em;
  margin: 10px 0 0;
  color: #a8a8b8;
  font-size: 14px;
  line-height: 1.5;
}

.gp-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 18px;
}

.gp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16161c;
  color: #c8c8d2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gp-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-tab.is-on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: #24242c;
}

.gp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gp-pick { position: relative; }

.gp-pick-btn, .gp-pick-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121218;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gp-pick-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
}

.gp-pick-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121218;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.gp-pick-menu a {
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.gp-pick-menu a.is-on,
.gp-pick-menu a:hover { background: rgba(255, 255, 255, 0.06); }

.gp-pick-ico { display: grid; place-items: center; width: 22px; height: 22px; }
.gp-pick-ico img { width: 22px; height: 22px; display: block; }

.gp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 148px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 46%),
    #121218;
  color: inherit;
  text-decoration: none;
}

.gp-card__top, .gp-person, .gp-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-card a { color: inherit; text-decoration: none; }
.gp-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
}

.gp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #a8a8b8;
  font-size: 12px;
}

.gp-mark {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.28);
}

.gp-mark svg, .gp-tab svg { display: block; }

.gp-person { justify-content: flex-start; }

.gp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1c1c24 center/cover no-repeat;
  flex-shrink: 0;
}

.gp-person b { display: block; font-size: 13px; }
.gp-person small { color: #a8a8b8; font-size: 11px; }

.gp-claim {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a22;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gp-back {
  color: #a8a8b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.gp-doc, .gp-law, .gp-memo {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #121218;
}

.gp-doc h3, .gp-law h3 { margin: 0 0 6px; font-size: 15px; }
.gp-doc p, .gp-law p, .gp-memo p { margin: 0; color: #d5d5de; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.gp-doc small, .gp-law small { color: #a8a8b8; }

.gp-form { display: grid; gap: 8px; margin-top: 16px; }
.gp-form input, .gp-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c10;
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
}
.gp-form button, .gp-memo a.gp-claim { text-decoration: none; }

.gp-error { color: #ff8fa3; font-size: 13px; }

.gp-steps { margin: 10px 0 0; padding-left: 18px; color: #d5d5de; font-size: 13px; line-height: 1.55; }

.gp-board {
  position: relative;
  height: min(72vh, 760px);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 0, 60, 0.08), transparent 32%),
    #0c0c10;
  cursor: grab;
  touch-action: none;
}

.gp-board.is-drag { cursor: grabbing; }

.gp-world { position: absolute; inset: 0; transform-origin: 0 0; }

.gp-rail {
  position: absolute;
  width: 200px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8b8;
}

.gp-node {
  position: absolute;
  width: 200px;
  min-height: 72px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #16161c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.gp-node:hover { border-color: rgba(255, 0, 60, 0.45); }

.gp-zoom {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.gp-zoom button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121218;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gp-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.gp-saved button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121218;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.gp-editor {
  position: fixed;
  z-index: 80;
  top: var(--portal-nav-h, 72px);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  background: #0c0c10;
}

.gp-editor[hidden] { display: none; }

.gp-editor-side, .gp-editor-paper {
  overflow: auto;
  padding: 20px;
}

.gp-editor-side { border-right: 1px solid rgba(255, 255, 255, 0.08); }

.gp-editor-side label, .gp-editor-side input, .gp-editor-side textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.gp-editor-side label {
  margin-top: 12px;
  color: #a8a8b8;
  font-size: 12px;
  font-weight: 700;
}

.gp-editor-side input, .gp-editor-side textarea {
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121218;
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
}

.gp-paper {
  width: min(640px, 100%);
  min-height: 720px;
  margin: 12px auto;
  padding: 36px 32px;
  background: #f4f1ea;
  color: #1a1a1a;
  border-radius: 4px;
}

.gp-paper header { text-align: center; }
.gp-paper small, .gp-paper em { display: block; letter-spacing: 0.08em; font-size: 11px; }
.gp-paper h3 { text-align: center; font-size: 16px; }
.gp-paper p { font-size: 14px; line-height: 1.5; }
.gp-paper footer { margin-top: 28px; text-align: right; font-size: 12px; }

@media (max-width: 800px) {
  .gp-grid { grid-template-columns: 1fr; }
  .gp-editor { grid-template-columns: 1fr; }
  .gp-tabs { overflow: auto; justify-content: flex-start; }
}
