/* studio.kaigen3d.com sign-up flow: the website sign-in design (Kaigen V3 states) with the V4 / DS v1.10 alignment
   table applied. Values are the design system's tokens (design-system/tokens.json). Dark theme only. */
:root {
  --bg-canvas: #0b0b0f;
  --bg-surface: #191b23;
  --neutral-850: #242731;
  --border-control: #444b5a;
  --text-primary: #f2f2f5;
  --neutral-400: #a7abb7;
  --neutral-500: #7c8496;
  --violet: #785cff;
  --focus-ring: #b9aaff;
  --success: #61d9a3;
  --danger: #ff96b8;
  --magma: #ff2d72;
  --vermilion: #ff5a1f;
  --grad-primary: linear-gradient(135deg, #785cff 0%, #ff2d72 52%, #ff5a1f 100%);
  --grad-accent: linear-gradient(90deg, #ff2d72 0%, #ff5a1f 100%);
  --grad-focus: linear-gradient(135deg, #ff2d72 0%, #ff5a1f 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body.kg { margin: 0; padding: 0; height: 100%; background: var(--bg-canvas); }
body.kg { font-family: var(--font-body); color: rgba(242, 242, 245, 0.9); -webkit-font-smoothing: antialiased; overflow: hidden; }
.kg [hidden] { display: none !important; }
:where(.kg) :where(input, textarea, button) { font-family: inherit; color: inherit; }
.kg input::placeholder, .kg textarea::placeholder { color: var(--neutral-500); }
.kg :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.kg a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kg a:hover { opacity: 0.8; }
.kg ::-webkit-scrollbar { width: 0; height: 0; }
.kg * { scrollbar-width: none; }

/* ── buttons (DS v1.10: never pills; radius follows height) ─────────────────────── */
.kg-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: none; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none; transition: background 150ms ease, filter 150ms ease, color 150ms ease; }
.kg a.kg-btn { color: var(--text-primary); text-decoration: none; }
.kg a.kg-btn:hover { opacity: 1; }
.kg-primary { width: 100%; background: var(--grad-primary); font-size: 16px; }
.kg-primary:hover { filter: brightness(1.12); }
.kg-primary:active { filter: brightness(0.92); }
.kg-primary:disabled, .kg-primary[aria-disabled="true"] { background: #2a2f3a; color: var(--neutral-400); filter: none; cursor: default; }
.kg-secondary { width: 100%; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-control); }
.kg-secondary:hover { background: var(--neutral-850); }
.kg-ghost { background: transparent; color: var(--neutral-400); }
.kg-ghost:hover { background: var(--bg-surface); color: var(--text-primary); }
.kg-ghost-plain { height: 40px; padding: 0 12px; background: transparent; color: rgba(242, 242, 245, 0.6); font-weight: 400; }
.kg-ghost-plain:hover { color: var(--text-primary); }
.kg-sm { width: auto; height: 40px; padding: 0 16px; font-size: 12px; }
.kg-lg { width: 100%; height: 48px; font-size: 16px; box-shadow: 0 0 30px rgba(255, 45, 114, 0.3); }
.kg-link { padding: 0; border: none; background: none; cursor: pointer; font-size: 12px; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kg-link:hover { opacity: 0.8; }

/* icon hover motion (lucide-animated, the V4 li-* keyframes) */
@keyframes li-nudge-r { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(1.5px); } }
@keyframes li-nudge-l { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-1.5px); } }
@keyframes li-down { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(2px); } }
@keyframes li-pad { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes li-star { 0%, 100% { opacity: 1; } 15% { opacity: 0; } 30% { opacity: 1; } }
@keyframes li-lift { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-1.5px); } }
.li .mv { transform-box: fill-box; transform-origin: center; }
.ia:hover .li-arrow-right .mv, .ia:hover .li-square-terminal .mv { animation: li-nudge-r 0.5s ease-in-out; }
.ia:hover .li-arrow-left .mv { animation: li-nudge-l 0.5s ease-in-out; }
.ia:hover .li-download .mv, .ia:hover .li-chevron-down .mv { animation: li-down 0.5s ease-in-out; }
.ia:hover .li-gamepad-2 .mv, .ia:hover .li-pencil .mv, .ia:hover .li-settings .mv { animation: li-pad 0.6s ease-in-out; }
.ia:hover .li-sparkles .mv, .ia:hover .li-wand-sparkles .mv { animation: li-star 1s ease-in-out; }
.ia:hover .li-play .mv, .ia:hover .li-layers .mv, .ia:hover .li-users .mv, .ia:hover .li-search .mv, .ia:hover .li-scan-search .mv { animation: li-lift 0.5s ease-in-out; }

/* ── fields: #191B23 + 1 px #444B5A, 12 px radius; focus = the gradient ring outside the field ─ */
.kg-field { position: relative; display: flex; }
.kg-field input, .kg-field textarea { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--border-control); border-radius: 12px; outline: none; background: var(--bg-surface); font-size: 14px; color: var(--text-primary); }
.kg-field textarea { height: auto; min-height: 112px; padding: 12px; resize: vertical; line-height: 1.5; }
.kg-field::after, .kg-box::after { content: ""; position: absolute; inset: -5px; border-radius: 17px; padding: 2px; background: var(--grad-focus); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity 120ms ease; pointer-events: none; }
.kg-field:has(input:focus, textarea:focus)::after { opacity: 1; }
.kg-field input:focus-visible, .kg-field textarea:focus-visible { outline: none; }
.kg-field.is-bad input { border-color: var(--danger); }
.kg-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.kg-hint { font-size: 12px; color: rgba(242, 242, 245, 0.4); }
.kg-hint.is-bad { color: var(--danger); }
.kg-error { margin: 0; font-size: 12px; color: var(--danger); }
.kg-error:empty { display: none; }

/* ── sign-in: split screen, form column left, media panel right ─────────────────── */
.kg-split { position: fixed; inset: 0; display: flex; background: var(--bg-canvas); animation: kg-fade 300ms ease both; }
.kg-col { position: relative; flex: 1 1 50%; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 32px 40px 20px; }
.kg-form { flex: 1; width: 100%; max-width: 380px; display: flex; flex-direction: column; justify-content: safe center; padding: 40px 0; }
.kg-logo { display: block; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 12px; object-fit: cover; }
.kg-step { display: flex; flex-direction: column; gap: 16px; }
.kg-step form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kg-step form[data-email-form] { gap: 8px; }
.kg-step form[data-email-form] .kg-btn, .kg-step form[data-details] .kg-btn { margin-top: 8px; }
.kg-step form[data-details] { gap: 8px; }
.kg-step form[data-details] .kg-label:not(:first-child) { margin-top: 8px; }
.kg-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary); }
.kg-title-tight { margin-bottom: 4px; }
.kg-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.kg-head .kg-title { margin: 0; }
.kg-sub { margin: 0; font-size: 12px; line-height: 1.6; color: rgba(242, 242, 245, 0.6); text-wrap: pretty; }
.kg-sub strong { font-weight: 600; color: var(--text-primary); }
.kg-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: rgba(242, 242, 245, 0.4); }
.kg-or span { flex: 1; height: 1px; background: rgba(242, 242, 245, 0.1); }
.kg-switch { margin: 0; font-size: 12px; text-align: center; color: rgba(242, 242, 245, 0.6); }
.kg-terms { margin: 4px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: rgba(242, 242, 245, 0.4); }
.kg-alt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kg-group { display: flex; flex-direction: column; gap: 8px; }
.kg-readonly { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: rgba(20, 22, 28, 0.6); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.05); }
.kg-readonly span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: rgba(242, 242, 245, 0.6); }
.kg-readonly a { font-size: 12px; }
.kg-mt4 { margin-top: 4px; }
.kg-wait { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(242, 242, 245, 0.8); }
.kg-spin { color: var(--vermilion); animation: wf-spin 800ms linear infinite; }
.turnstile:empty { display: none; }

/* the code: eight boxes over one hidden input */
.kg-codeform { gap: 16px !important; }
.kg-code { position: relative; display: flex; gap: 8px; justify-content: space-between; cursor: text; order: 1; }
.kg-codeform .kg-error { order: 2; }
.kg-resend { order: 3; align-self: flex-start; }
.kg-row { order: 4; display: flex; gap: 8px; }
.kg-row .kg-btn { flex: 1; width: auto; font-size: 14px; }
.kg-box { position: relative; flex: 1 1 0; max-width: 44px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-surface); font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; color: var(--text-primary); }
.kg-code:focus-within .kg-box.is-active::after { opacity: 1; }
.kg-code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; outline: none; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; cursor: text; }

/* the media panel: 16 px inset, 24 px radius, #111218; four steps rotating every 6 s */
.kg-media { position: relative; flex: 1 1 50%; min-width: 0; margin: 16px 16px 16px 0; border-radius: 24px; overflow: hidden; background: #111218; }
.kg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms ease; }
.kg-slide.is-on { opacity: 1; }
.kg-slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-media-shade { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 40px; padding: 160px 48px 48px; background: linear-gradient(rgba(11, 11, 15, 0) 0%, rgba(11, 11, 15, 0.35) 25%, rgba(11, 11, 15, 0.7) 55%, rgba(11, 11, 15, 0.9) 100%); pointer-events: none; }
.kg-words { display: flex; flex-direction: column; animation: kg-word 600ms var(--ease-out) both; }
.kg-media-title { margin-top: 16px; font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary); text-wrap: balance; }
.kg-media-sub { margin-top: 12px; max-width: 440px; font-size: 16px; font-weight: 300; line-height: 1.6; color: rgba(242, 242, 245, 0.6); text-wrap: pretty; }
.kg-tabs { display: flex; gap: 16px; pointer-events: auto; }
.kg-tab { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 0; border: none; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; }
.kg-tab-bar { width: 100%; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(242, 242, 245, 0.15); }
.kg-tab-fill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--grad-accent); }
.kg-tab.is-done .kg-tab-fill { width: 100%; }
.kg-tab.is-on .kg-tab-fill { animation: kg-fill 6000ms linear both; }
.kg-tab-label { font-family: var(--font-mono); font-size: 12px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(242, 242, 245, 0.6); transition: color 200ms ease; }
.kg-tab.is-on .kg-tab-label { color: var(--text-primary); }

/* ── the questions: full screen, centred ────────────────────────────────────── */
.kg-about { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: var(--bg-canvas); animation: kg-fade 300ms ease both; }
.kg-glow { position: absolute; left: -15%; right: -15%; bottom: -55%; height: 90%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(120, 92, 255, 0.22) 0%, rgba(255, 45, 114, 0.07) 45%, rgba(11, 11, 15, 0) 75%); }
.kg-about-inner { position: relative; width: 100%; max-width: 880px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: kg-pop 420ms var(--ease-out) both; }
.kg-w-5 { max-width: 1000px; }
.kg-w-1 { max-width: 560px; }
.kg-logo-about { display: block; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.kg-dots { margin-top: 32px; display: flex; align-items: center; gap: 4px; }
.kg-dot { width: 34px; height: 4px; border-radius: 2px; background: rgba(242, 242, 245, 0.15); transition: background 300ms ease; }
.kg-dot.is-done { background: var(--grad-accent); }
.kg-about-title { margin: 16px 0 0; text-wrap: balance; }
.kg-about-sub { margin: 8px 0 0; font-size: 14px; color: rgba(242, 242, 245, 0.6); }
.kg-tiles { margin-top: 40px; width: 100%; display: grid; gap: 12px; }
.kg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kg-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kg-tiles form { margin: 0; display: flex; }
.kg-tile { position: relative; flex: 1; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 12px; border: 2px solid transparent; border-radius: 16px; cursor: pointer; background: rgba(20, 22, 28, 0.9) padding-box; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); color: rgba(242, 242, 245, 0.75); transition: background 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out); }
.kg-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.28); }
.kg-tile-label { font-size: 14px; font-weight: 600; color: rgba(242, 242, 245, 0.9); }
.kg-tile.is-on { background: linear-gradient(rgba(255, 45, 114, 0.05), rgba(255, 45, 114, 0.05)) padding-box, linear-gradient(#14161c, #14161c) padding-box, var(--grad-accent) border-box; box-shadow: none; color: var(--text-primary); }
.kg-tile.is-on .kg-tile-label { color: var(--text-primary); }
.kg-check { position: absolute; right: 8px; top: 8px; display: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-accent); align-items: center; justify-content: center; color: var(--text-primary); }
.kg-tile.is-on .kg-check { display: flex; }
.kg-pitch { margin-top: 40px; width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.kg-about-actions { margin-top: 32px; display: flex; align-items: center; gap: 8px; }
.kg-about-actions form { margin: 0; }

/* ── download ─────────────────────────────────────────────────────────────── */
.kg-dl { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: var(--bg-canvas); animation: kg-fade 300ms ease both; }
.kg-dl-inner { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: kg-pop 500ms var(--ease-out) both; }
.kg-logo-dl { display: block; width: 96px; height: 96px; border-radius: 20px; object-fit: cover; }
.kg-hero { margin: 28px 0 0; width: 378px; max-width: 100vw; font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-primary); }
.kg-lead { margin: 16px 0 0; font-size: 16px; color: rgba(242, 242, 245, 0.7); }
.kg-dl-main { width: 100%; margin-top: 28px; }
.kg-os { display: flex; flex-direction: column; gap: 12px; }
.kg-steps { margin: 0; font-size: 12px; line-height: 1.6; color: rgba(242, 242, 245, 0.6); }
.kg-cmd { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 4px 4px 12px; border: 1px solid var(--border-control); border-radius: 12px; background: var(--bg-surface); text-align: left; }
.kg-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }
.kg-copy { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: transparent; cursor: pointer; color: var(--neutral-400); }
.kg-copy:hover { background: var(--neutral-850); color: var(--text-primary); }
.kg-cli { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.kg-cli-label { font-size: 12px; color: rgba(242, 242, 245, 0.4); }
.kg-others { width: 100%; margin-top: 12px; }
.kg-others summary { list-style: none; cursor: pointer; font-size: 12px; color: rgba(242, 242, 245, 0.4); }
.kg-others summary::-webkit-details-marker { display: none; }
.kg-builds { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 16px; background: rgba(20, 22, 28, 0.9); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); text-align: left; animation: kg-drop 180ms var(--ease-out) both; }
.kg-build-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; }
.kg-build-name { flex: 1; font-size: 14px; font-weight: 600; color: rgba(242, 242, 245, 0.9); }
.kg-build { height: 32px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: none; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.2); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-primary); }
.kg-build:hover { background: rgba(242, 242, 245, 0.1); }
.kg-build.is-on { background: rgba(255, 90, 31, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 31, 0.85); }
.kg-later { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kg-discord { width: 100%; margin-top: 32px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(242, 242, 245, 0.04); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.08); text-decoration: none; text-align: left; transition: background 150ms ease; }
.kg a.kg-discord { text-decoration: none; }
.kg a.kg-discord:hover { opacity: 1; background: rgba(242, 242, 245, 0.08); }
.kg-discord > svg:first-child { width: 24px; height: 24px; flex: none; }
.kg-discord-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kg-discord-title { font-size: 13px; font-weight: 600; color: #f2f2f5; }
.kg-discord-line { font-size: 12px; line-height: 1.4; color: rgba(242, 242, 245, 0.6); }
.kg-discord-ext { flex: none; color: rgba(242, 242, 245, 0.5); }

.kg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 64; transform: translateX(-50%); padding: 8px 16px; border: 1px solid rgba(242, 242, 245, 0.1); border-radius: 12px; background: #14161c; font-size: 14px; color: rgba(242, 242, 245, 0.9); pointer-events: none; animation: kg-toast 280ms var(--ease-out) both; }

/* ── plan pages (website rev 2): offer, pricing, billing, cancel, founder, Academic, contact, approval ─ */
body.kg:has([data-plan-page]) { overflow: hidden; }
.kp-page { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; overflow: hidden auto; padding: 56px 24px; background: #0b0b0f; animation: kg-fade 300ms ease both; }
.kp-glow { position: fixed; left: -15%; right: -15%; bottom: -55%; height: 90%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(120, 92, 255, 0.2) 0%, rgba(255, 45, 114, 0.06) 45%, rgba(11, 11, 15, 0) 75%); }
.kp-inner { position: relative; margin: auto 0; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; animation: kg-pop 420ms var(--ease-out) both; }
.kp-w420 { max-width: 420px; }
.kp-w440 { max-width: 440px; }
.kp-w980 { max-width: 980px; }
.kp-w1180 { max-width: 1180px; }
.kp-logo { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }
.kp-title { margin: 28px 0 0; font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; color: #f2f2f5; font-size: 36px; line-height: 1.12; text-wrap: balance; }
.kp-title-lg { font-size: 44px; }
.kp-title-xl { font-size: 48px; }
.kp-title-sm { margin-top: 20px; font-size: 32px; line-height: 1.15; }
.kp-sub { margin: 10px 0 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: rgba(242, 242, 245, 0.6); text-wrap: pretty; }
.kp-sub strong { color: #f2f2f5; font-weight: 600; }
.kp-note { margin: 12px 0 0; font-size: 13px; color: rgba(242, 242, 245, 0.4); }
.kp-warn { margin: 16px 0 0; width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 14px; background: rgba(255, 138, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 138, 92, 0.3); font-size: 13px; line-height: 1.5; color: #ff8a5c; text-align: left; }
.kp-mt { margin-top: 28px; }
.kp-narrow { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.kp-wide { width: 100%; display: flex; flex-direction: column; align-items: center; }
.kp-form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.kp-form.kp-mt { margin-top: 32px; }
.kp-btn { width: 100%; height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: #f2f2f5; text-decoration: none; transition: filter 150ms ease, background 150ms ease, color 150ms ease; }
.kg a.kp-btn { color: #f2f2f5; text-decoration: none; }
.kg a.kp-btn:hover { opacity: 1; }
.kp-primary { background: linear-gradient(135deg, #785cff 0%, #ff2d72 52%, #ff5a1f 100%); box-shadow: 0 0 30px rgba(255, 45, 114, 0.3); }
.kp-primary:hover { filter: brightness(1.12); }
.kp-secondary { background: rgba(242, 242, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); }
.kp-secondary:hover { background: rgba(242, 242, 245, 0.11); }
.kp-white { background: #f2f2f5; color: #0b0b0f; }
.kg a.kp-white { color: #0b0b0f; }
.kp-white:hover { filter: brightness(0.92); }
.kp-danger, .kg a.kp-danger { color: #ff8a8a; }
.kp-ghost, .kg a.kp-ghost { width: auto; height: 40px; background: transparent; font-size: 14px; font-weight: 500; color: rgba(242, 242, 245, 0.6); }
.kp-ghost:hover, .kg a.kp-ghost:hover { color: #f2f2f5; background: rgba(242, 242, 245, 0.05); }
.kp-actions { margin-top: 20px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.kp-quiet { margin-top: 12px; display: flex; justify-content: center; gap: 4px; }
.kp-input { width: 100%; height: 48px; box-sizing: border-box; padding: 0 16px; border: none; outline: none; border-radius: 12px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); font-family: inherit; font-size: 15px; color: #f2f2f5; text-align: left; transition: box-shadow 150ms ease; }
.kp-input:focus { box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1), 0 0 0 3px rgba(120, 92, 255, 0.35); }
.kp-input:focus-visible { outline: none; }
.kp-area { height: 96px; padding: 14px 16px; resize: none; line-height: 1.5; }
.kp-key { font-family: var(--font-mono); letter-spacing: 0.04em; text-align: center; }
.kp-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: rgba(242, 242, 245, 0.7); }
.kp-check input { width: 16px; height: 16px; accent-color: #ff2d72; }
.kp-back, .kg a.kp-back { position: fixed; left: 24px; top: 20px; z-index: 2; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: rgba(242, 242, 245, 0.8); text-decoration: none; }
.kp-back:hover { background: rgba(242, 242, 245, 0.06); opacity: 1; }
.kp-segs { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.kp-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(242, 242, 245, 0.05); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.08); }
.kp-seg-btn { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border: none; border-radius: 10px; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: rgba(242, 242, 245, 0.6); transition: background 150ms ease, color 150ms ease; }
.kp-seg-tag { padding: 2px 7px; border-radius: 6px; background: rgba(61, 220, 151, 0.14); font-size: 11px; font-weight: 700; color: #3ddc97; }
[data-cycle="monthly"] [data-pick-cycle="monthly"], [data-cycle="yearly"] [data-pick-cycle="yearly"], [data-tab="ind"] [data-pick-tab="ind"], [data-tab="co"] [data-pick-tab="co"] { background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.14); color: #f2f2f5; }
[data-cycle="monthly"] .c-y, [data-cycle="yearly"] .c-m { display: none !important; }
.kp-tab { display: none; width: 100%; flex-direction: column; align-items: center; }
[data-tab="ind"] .t-ind, [data-tab="co"] .t-co { display: flex; }
.kp-elig { margin: 32px 0 0; max-width: 640px; font-size: 14px; line-height: 1.55; color: rgba(242, 242, 245, 0.7); text-wrap: pretty; }
.kp-cards { margin-top: 36px; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: stretch; }
.kp-cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 40px; }
.kp-card { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 20px; align-content: start; padding: 24px; border: 1.5px solid transparent; border-radius: 20px; background: #14161c padding-box; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); text-align: left; transition: transform 200ms var(--ease-out); }
.kp-card:hover { transform: translateY(-2px); }
.kp-card.is-hot { background: linear-gradient(#14161c, #14161c) padding-box, linear-gradient(135deg, #785cff 0%, #ff2d72 52%, #ff5a1f 100%) border-box; box-shadow: 0 0 40px rgba(255, 45, 114, 0.12); }
.kp-card-top { display: flex; flex-direction: column; gap: 6px; }
.kp-card-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; color: #f2f2f5; font-size: 22px; }
.kp-badge { padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #785cff 0%, #ff2d72 52%, #ff5a1f 100%); font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #f2f2f5; }
.kp-card-line { min-height: 40px; font-size: 14px; line-height: 1.45; color: rgba(242, 242, 245, 0.6); text-wrap: pretty; }
.kp-card-price { display: flex; flex-direction: column; gap: 6px; }
.kp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.kp-price { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; color: #f2f2f5; font-size: 44px; line-height: 1; }
.is-company .kp-price { font-size: 36px; }
.kp-per { font-size: 14px; color: rgba(242, 242, 245, 0.5); }
.kp-was { font-size: 14px; color: rgba(242, 242, 245, 0.35); text-decoration: line-through; }
.kp-off { align-self: center; padding: 3px 8px; border-radius: 999px; background: rgba(61, 220, 151, 0.14); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); font-size: 11.5px; font-weight: 700; color: #3ddc97; }
.kp-billed { min-height: 18px; font-size: 12.5px; line-height: 1.45; color: rgba(242, 242, 245, 0.45); }
.kp-save { font-size: 13px; font-weight: 600; color: #3ddc97; }
.kp-card-btn { height: 46px; font-size: 14px; }
.kp-ship { display: flex; flex-direction: column; gap: 10px; }
.kp-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(242, 242, 245, 0.4); }
.kp-ship-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-chip { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 8px; background: rgba(242, 242, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.06); font-size: 12px; font-weight: 600; color: rgba(242, 242, 245, 0.9); }
.kp-chip svg { flex: none; }
.kp-rule { height: 1px; background: rgba(242, 242, 245, 0.08); }
.kp-feats { display: flex; flex-direction: column; gap: 12px; }
.kp-feat-head { font-size: 13px; font-weight: 600; color: rgba(242, 242, 245, 0.9); }
.kp-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: rgba(242, 242, 245, 0.8); text-wrap: pretty; text-align: left; }
.kp-feat.is-off { color: rgba(242, 242, 245, 0.4); }
.kp-glyph { flex: none; margin-top: 2px; }
.kp-coming { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(242, 242, 245, 0.03); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.07); }
.kp-coming .kp-feat { font-size: 13px; color: rgba(242, 242, 245, 0.6); }
.kp-academic { margin-top: 40px; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 13.5px; color: rgba(242, 242, 245, 0.6); }
.kg .kp-academic a { font-weight: 600; color: #f2f2f5; }
/* the founding member bar above the plans: the founder page's gold, as a link */
.kg .kp-fo-bar { margin-top: 24px; width: 100%; max-width: 540px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 20px 16px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(180deg, #17140e, #0f0e0c) padding-box, linear-gradient(135deg, #ffe7a3 0%, #e8b64c 40%, #b07a1f 70%, #f5d27a 100%) border-box; box-shadow: 0 18px 50px -28px rgba(232, 182, 76, 0.6); color: #f2f2f5; text-decoration: none; text-align: center; transition: transform 240ms ease, box-shadow 240ms ease; }
.kg .kp-fo-bar:hover, .kg .kp-fo-bar:focus-visible { transform: translateY(-2px); box-shadow: 0 22px 56px -26px rgba(232, 182, 76, 0.75); }
.kp-fo-tag { padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, #ffe7a3 0%, #e8b64c 40%, #b07a1f 70%, #f5d27a 100%); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #1a1206; }
.kp-fo-text { font-size: 14px; line-height: 1.45; color: rgba(242, 242, 245, 0.8); text-wrap: pretty; }
.kp-fo-line { display: block; margin-top: 4px; }
.kp-fo-go { font-weight: 600; color: #f5d27a; white-space: nowrap; }
.kp-guar { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.kp-guar span { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: rgba(242, 242, 245, 0.7); }
.kp-guar .kp-glyph { margin-top: 0; }
.kp-alert { margin-top: 24px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 138, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 138, 92, 0.3); }
.kp-alert-t { font-size: 14px; font-weight: 600; color: #ff8a5c; }
.kp-alert-s { font-size: 13px; line-height: 1.5; color: rgba(242, 242, 245, 0.7); }
.kp-plan-card { margin-top: 24px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px 24px; border-radius: 20px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); }
.kp-plan-name { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 500; color: #f2f2f5; font-size: 30px; }
.kp-plan-state { font-size: 14px; font-weight: 600; }
.kp-plan-state.is-ok { color: #3ddc97; }
.kp-plan-state.is-muted { color: rgba(242, 242, 245, 0.6); }
.kp-plan-state.is-warn { color: #ff8a5c; }
.kp-rows { margin-top: 18px; width: 100%; display: flex; flex-direction: column; }
.kp-rows:empty { display: none; }
.kp-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(242, 242, 245, 0.08); font-size: 14px; color: rgba(242, 242, 245, 0.55); }
.kp-row span:last-child { font-weight: 600; color: #f2f2f5; }
.kp-lose { margin-top: 28px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 16px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); text-align: left; }
.kp-device { margin-top: 32px; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); text-align: left; }
.kp-device-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(242, 242, 245, 0.06); display: flex; align-items: center; justify-content: center; }
.kp-device-icon .kp-glyph { margin: 0; }
.kp-device-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kp-device-name { font-size: 15px; font-weight: 600; color: #f2f2f5; }
.kp-device-meta { font-size: 13px; color: rgba(242, 242, 245, 0.5); }
.kp-account { margin-top: 14px; }
.kp-result { margin-top: 32px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.kp-result .kp-glyph { margin: 0; }
.kp-result.is-ok { background: rgba(61, 220, 151, 0.14); }
.kp-result.is-denied { background: rgba(255, 107, 87, 0.14); }
.kp-code { margin-top: 32px; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.1); }
.kp-code .secret { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: rgba(242, 242, 245, 0.9); text-align: left; }
.kp-copy { height: 36px; padding: 0 14px; border: none; border-radius: 10px; background: rgba(242, 242, 245, 0.08); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #f2f2f5; }
.kp-copy:hover { background: rgba(242, 242, 245, 0.14); }
.kg-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.kg-flow form { flex: 0 0 auto; }
.kg-flow .kg-tile { flex: none; width: 200px; height: 132px; gap: 14px; padding: 0 14px; transition: background 200ms ease, box-shadow 240ms ease, transform 240ms var(--ease-out); }
.kg-flow .kg-tile svg { transition: stroke 200ms ease, transform 240ms var(--ease-out); }
.kg-flow .kg-tile:not(.is-on):hover, .kg-flow .kg-tile:not(.is-on):focus { transform: translateY(-4px); background: linear-gradient(#181a21, #181a21) padding-box, linear-gradient(135deg, rgba(120, 92, 255, 0.75) 0%, rgba(255, 45, 114, 0.75) 52%, rgba(255, 90, 31, 0.75) 100%) border-box; box-shadow: none; color: #f2f2f5; }
.kg-flow .kg-tile:not(.is-on):hover .kg-tile-label, .kg-flow .kg-tile:not(.is-on):focus .kg-tile-label { color: #f2f2f5; }
.kg-flow .kg-tile:not(.is-on):hover svg:not(.kg-check svg), .kg-flow .kg-tile:not(.is-on):focus svg:not(.kg-check svg) { transform: scale(1.08); }
.kg-flow .kg-tile-label { text-wrap: balance; }
.kg-other { margin: 22px auto 0; max-width: 560px; }
.kg-other .kg-btn:disabled { background: rgba(242, 242, 245, 0.08); color: rgba(242, 242, 245, 0.4); filter: none; cursor: default; }
.kg-w-3 { max-width: 920px; }
.kg-w-4 { max-width: 980px; }
@media (max-width: 720px) {
  .kp-title-lg, .kp-title-xl { font-size: 34px; }
  .kp-page { padding: 32px 16px; }
  .kg-flow form { flex-basis: calc(50% - 8px); }
  /* two tiles a row on a phone: a fixed 200px tile fits only one */
  .kg-flow form .kg-tile { width: 100%; }
}

/* ── Kaigen Pages ── (the centred message layout of kaigen-account/design/account/Kaigen Pages.dc.html) */
.kg-m { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden auto; padding: 56px 24px; background: var(--bg-canvas); color: #f2f2f5; }
.kg-m-inner { margin: auto 0; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: kg-pop 420ms var(--ease-out) both; }
.kg-m-logo { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.kg-m-badge { margin-top: 28px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; }
.kg-m-badge.is-ok { background: rgba(61, 220, 151, 0.12); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); color: #3ddc97; }
.kg-m-badge.is-warn { background: rgba(246, 197, 107, 0.1); box-shadow: inset 0 0 0 1px rgba(246, 197, 107, 0.3); color: #f6c56b; }
.kg-m-badge.is-err { background: rgba(255, 150, 184, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 150, 184, 0.3); color: #ff96b8; }
.kg-m-badge.is-info { background: rgba(242, 242, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.12); color: #f2f2f5; }
.kg-m-title { margin: 24px 0 0; font-family: var(--font-display); font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: #f2f2f5; text-wrap: balance; overflow-wrap: anywhere; }
.kg-m-text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: rgba(242, 242, 245, 0.68); text-wrap: pretty; overflow-wrap: anywhere; }
.kg-m-foot { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: rgba(242, 242, 245, 0.45); text-wrap: pretty; }
.kg-m-form { width: 100%; margin: 0; display: flex; flex-direction: column; }
.kg-m-fields { margin-top: 28px; width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.kg-m-field { display: flex; flex-direction: column; gap: 8px; }
.kg-m-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: #f2f2f5; }
.kg-m-count { font-weight: 400; color: rgba(242, 242, 245, 0.45); font-variant-numeric: tabular-nums; }
.kg-m-input { width: 100%; height: 48px; padding: 0 16px; border: none; outline: none; border-radius: 12px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.14); font-family: inherit; font-size: 15px; color: #f2f2f5; text-align: left; }
.kg-m-input.is-mono { font-family: var(--font-mono); letter-spacing: 0.12em; text-align: center; }
.kg-m-area { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.kg .kg-m-input::placeholder { color: rgba(242, 242, 245, 0.4); }
.kg .kg-m-input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(120, 92, 255, 0.9); }
.kg-m-fields > .turnstile:not(.is-shown) { height: 0; margin-top: -16px; overflow: hidden; }
.kg-m-hint { font-size: 13px; line-height: 1.5; color: rgba(242, 242, 245, 0.5); }
.kg-m-err { margin: 16px 0 0; width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 150, 184, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 150, 184, 0.3); font-size: 14px; line-height: 1.5; color: #ff96b8; text-align: left; }
.kg-m-err::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.kg-m-err:empty { display: none; }
.kg-m-acts { margin-top: 28px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.kg-m-btn { position: relative; height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none; transition: filter 160ms ease, background 160ms ease, color 160ms ease; }
.kg a.kg-m-btn { text-decoration: none; }
.kg a.kg-m-btn:hover { opacity: 1; }
.kg-m-primary, .kg a.kg-m-primary { background: var(--grad-primary); box-shadow: 0 0 30px rgba(255, 45, 114, 0.3); color: #ffffff; }
.kg-m-primary:hover { filter: brightness(1.12); }
.kg-m-primary:disabled { background: rgba(242, 242, 245, 0.08); box-shadow: none; color: rgba(242, 242, 245, 0.4); filter: none; cursor: default; }
.kg-m-form[data-busy] .kg-m-primary { background: var(--grad-primary); color: transparent; }
.kg-m-form[data-busy] .kg-m-primary::after { content: ""; position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; animation: kg-m-spin 700ms linear infinite; }
.kg-m-secondary, .kg a.kg-m-secondary { background: #f2f2f5; color: #0b0b0f; }
.kg-m-secondary:hover { background: #d5d8e0; }
.kg-m-tertiary, .kg a.kg-m-tertiary { background: transparent; color: rgba(242, 242, 245, 0.7); font-weight: 500; }
.kg-m-tertiary:hover, .kg a.kg-m-tertiary:hover { background: rgba(242, 242, 245, 0.05); color: #f2f2f5; }
.kg-m-code { margin-top: 24px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.kg-m-code-box { min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 12px; background: #14161c; box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.14); }
.kg-m-code-text { font-family: var(--font-mono); font-size: 19px; font-weight: 500; letter-spacing: 0.08em; color: #f2f2f5; overflow-wrap: anywhere; }
.kg-m-code-warn { display: flex; align-items: flex-start; justify-content: center; gap: 8px; font-size: 13px; line-height: 1.5; color: #f6c56b; }
.kg-m-code-warn svg { flex: none; margin-top: 2px; }
.kg-m-copy { align-self: center; height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border: none; border-radius: 10px; background: rgba(242, 242, 245, 0.04); box-shadow: inset 0 0 0 1px rgba(242, 242, 245, 0.14); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; color: #f2f2f5; transition: background 120ms ease; }
.kg-m-copy:hover { background: rgba(242, 242, 245, 0.09); }
@keyframes kg-m-spin { to { transform: rotate(360deg); } }

@keyframes kg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kg-pop { from { opacity: 0; transform: translateY(8px) scale(0.975); } to { opacity: 1; transform: none; } }
@keyframes kg-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes kg-toast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes kg-word { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kg-fill { from { width: 0%; } to { width: 100%; } }
@keyframes wf-spin { to { transform: rotate(360deg); } }

/* below 1024 px: no media panel, the form centred with a 24 px gutter; 2-column roles, 3-column sizes */
@media (max-width: 1023px) {
  .kg-media { display: none; }
  .kg-col { padding: 24px; }
  .kg-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.kg { overflow: auto; }
  .kg-hero { width: auto; font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .kg *, .kg *::before, .kg *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
/* the approval page's terms line, under Approve and Deny (website Rev 17) */
.kp-ap-terms{margin:20px auto 0;max-width:400px;font-size:12px;line-height:1.6;color:rgba(242,242,245,.45);text-align:center;text-wrap:pretty}
.kp-ap-terms a{color:rgba(242,242,245,.75);text-decoration:underline;text-underline-offset:2px}
