/* /press/2026-11-20-chatgpt/: the live stage — the KudoNovel plugin in a
   ChatGPT chat (light), playing on its own (public/press/chatgpt-demo.js).
   ChatGPT's logo is OpenAI's Blossom exactly as their brand kit gives it
   (/press/img/openai/, openai.com/brand — the owner accepted the Marks usage
   terms 2026-11-20): never recoloured, never bigger than KudoNovel's own mark,
   never locked up with it. The card is the real one's Paper face
   (src/chatgpt/studio.css, page-editor.css's .is-light tokens). Transform and
   opacity only; no backdrop-filter. */

.cg-stage { position: relative; max-width: 900px; margin: 54px auto 0; }
.cg-stage::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 20% 30%, rgba(240, 106, 155, 0.28), transparent 70%),
    radial-gradient(45% 45% at 85% 70%, rgba(139, 92, 246, 0.28), transparent 70%);
}
.cg-win {
  position: relative; z-index: 1; display: flex; height: 660px; border-radius: 22px; overflow: hidden;
  background: #fff; color: #0d0d0d;
  font-family: ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  box-shadow: 0 70px 130px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* ChatGPT's frame: the slim rail, the model name, the composer. */
.cg-side { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; background: #f9f9f9; border-right: 1px solid #ececec; }
.cg-side-logo { width: 40px; height: 40px; display: block; margin-bottom: 8px; }
.cg-side i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #5d5d5d; }
.cg-side svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cg-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cg-bar { flex: none; display: flex; align-items: center; height: 54px; padding: 0 18px; }
.cg-model { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; color: #0d0d0d; }
.cg-model svg { width: 16px; height: 16px; fill: none; stroke: #8f8f8f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cg-bar-r { margin-left: auto; display: inline-flex; gap: 14px; color: #5d5d5d; }
.cg-bar-r svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cg-view { position: relative; flex: 1 1 auto; overflow: hidden; }
.cg-feed { max-width: 680px; margin: 0 auto; padding: 18px 24px 30px; transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1); will-change: transform; }

.cg-msg { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.cg-msg.is-hidden { opacity: 0; transform: translateY(12px); }
.cg-me { margin: 4px 0 22px auto; max-width: 78%; width: fit-content; padding: 10px 16px; border-radius: 18px; background: #f4f4f4; color: #0d0d0d; font-size: 15.5px; line-height: 1.5; }
.cg-mention { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; margin-right: 3px; font-weight: 600; color: #0169cc; }
.cg-mention img { width: 18px; height: 18px; border-radius: 5px; }

.cg-tool { margin: 0 0 10px; color: #5d5d5d; font-size: 14.5px; line-height: 1.5; }
.cg-tool [hidden], .cg-ai-body[hidden] { display: none; }
.cg-thinking { display: inline-block; font-weight: 500; background: linear-gradient(90deg, #8f8f8f 0%, #8f8f8f 35%, #e2e2e2 50%, #8f8f8f 65%, #8f8f8f 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cg-shimmer 1.6s linear infinite; }
@keyframes cg-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cg-worked { display: block; margin-bottom: 8px; }
.cg-opened { display: inline-flex; align-items: center; gap: 8px; }
.cg-opened svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cg-ai { margin: 0 0 22px; color: #0d0d0d; font-size: 15.5px; line-height: 1.65; }
.cg-ai h4 { margin: 8px 0 6px; font-size: 18px; font-weight: 600; }
.cg-ai p { margin: 0 0 10px; }
.cg-ai ul { margin: 0 0 10px; padding-left: 22px; }
.cg-ai li { margin: 2px 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.cg-ai li.is-hidden { opacity: 0; transform: translateX(-8px); }
.cg-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #e8f6ed; color: #17703f; font-size: 12.5px; font-weight: 500; }

/* The card: KudoNovel's page, Paper, as ChatGPT frames a plugin's card. */
.cg-card {
  --ink: #26221f; --ink-2: #3b342e; --ink-3: #5f5852;
  --expand-ink: #a8285a; --expand-edge: rgba(168, 40, 90, 0.45);
  --steer-ink: #9a4708; --steer-edge: rgba(154, 71, 8, 0.45);
  margin: 0 0 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid #e5e5e5;
  background: #fbf9f4; color: var(--ink);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.cg-card.is-hidden { opacity: 0; transform: translateY(16px) scale(0.985); }
.cg-card-top { display: flex; align-items: center; gap: 9px; min-width: 0; font: 600 12.5px/1 Manrope, system-ui, sans-serif; color: var(--ink-2); }
.cg-card-top .kn-logo { --kn-h: 17px; color: var(--ink); }
.cg-book { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cg-beatn { flex: none; color: var(--ink-3); font-weight: 500; }
.cg-cred { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(168, 40, 90, 0.32); color: var(--expand-ink); font: 800 12px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.cg-cred b { display: inline-block; }
.cg-cred.bump b { animation: cg-bump 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes cg-bump { 40% { transform: translateY(-4px) scale(1.2); } }

.cg-steer { height: 0; opacity: 0; overflow: hidden; margin-left: 108px; transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, margin 0.4s; }
.cg-steer.is-open { height: 84px; opacity: 1; margin-top: 12px; }
.cg-steer-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 12px; border-radius: 999px; border: 1px solid rgba(60, 50, 40, 0.18); background: linear-gradient(180deg, #fff, #f6f1ea); box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(60, 40, 20, 0.35); }
.cg-steer-l { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid rgba(60, 50, 40, 0.16); font: 700 12.5px/1 Manrope, sans-serif; color: var(--ink-2); }
.cg-steer-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font: 500 13.5px/1 Manrope, sans-serif; color: var(--ink); }
.cg-steer-t:empty::before { content: attr(data-ph); color: #8a8178; }
.cg-steer-go { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #d96a17, #b55510); box-shadow: 0 6px 14px -6px rgba(181, 85, 16, 0.8); transition: transform 0.15s ease; }
.cg-steer-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cg-quick { display: flex; gap: 7px; margin-top: 8px; }
.cg-quick span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--steer-edge); background: #fff; color: var(--steer-ink); font: 700 12px/1 Manrope, sans-serif; }
.cg-quick span.is-on { border-color: var(--steer-ink); }

.cg-para { position: relative; display: flex; gap: 12px; margin-top: 12px; }
.cg-rail { flex: none; width: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cg-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(60, 50, 40, 0.16); background: linear-gradient(180deg, #fff, #f6f1ea); box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(60, 40, 20, 0.35); color: var(--ink-2); font: 700 12.5px/1 Manrope, sans-serif; white-space: nowrap; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.cg-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cg-btn.is-gone { display: none; }
.cg-btn.is-hidden { opacity: 0; transform: translateX(8px) scale(0.9); }
.cg-btn[data-tone="expand"] { color: var(--expand-ink); border-color: var(--expand-edge); }
.cg-btn[data-tone="steer"] { color: var(--steer-ink); border-color: var(--steer-edge); }
.cg-btn.is-shine[data-tone="expand"] { animation: cg-shine 1.8s ease-in-out infinite; }
@keyframes cg-shine { 0%, 100% { box-shadow: inset 0 1px 0 #fff, 0 0 0 0 rgba(168, 40, 90, 0.35); } 50% { box-shadow: inset 0 1px 0 #fff, 0 0 0 7px rgba(168, 40, 90, 0); } }
.is-press { transform: scale(0.9) !important; }

.cg-text { position: relative; flex: 1; min-width: 0; padding-left: 14px; font: 400 15.5px/1.72 Lora, Georgia, serif; color: var(--ink); text-wrap: pretty; }
.cg-text::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; border-radius: 2px; background: rgba(217, 77, 130, 0.55); }
.cg-text.is-running::before { animation: cg-line 1.1s ease-in-out infinite; }
@keyframes cg-line { 50% { background: rgba(217, 77, 130, 0.15); } }
.cg-text.is-steering::before { background: rgba(217, 106, 23, 0.6); animation: cg-line 1.1s ease-in-out infinite; }
.cg-text p { margin: 0 0 12px; }
.cg-text p:last-child { margin-bottom: 0; }
.cg-text.is-draft { color: #554634; }
.cg-text .w { animation: cg-w 0.45s ease-out both; }
@keyframes cg-w { from { opacity: 0; } }
.cg-text ins { text-decoration: none; border-radius: 3px; background: rgba(230, 120, 30, 0.16); box-shadow: 0 0 0 2px rgba(230, 120, 30, 0.16); transition: background 1.2s ease, box-shadow 1.2s ease; }
.cg-text ins.settled { background: transparent; box-shadow: 0 0 0 2px transparent; }
.cg-text del { color: #9a4708; text-decoration-color: rgba(154, 71, 8, 0.7); opacity: 0.75; }

.cg-progress { display: flex; align-items: center; gap: 9px; height: 0; opacity: 0; overflow: hidden; margin-left: 108px; font: 700 12.5px/1 Manrope, sans-serif; color: var(--expand-ink); transition: height 0.3s ease, opacity 0.3s ease, margin 0.3s; }
.cg-progress.is-on { height: 22px; opacity: 1; margin-top: 10px; }
.cg-progress.is-steer { color: var(--steer-ink); }
.cg-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(60, 50, 40, 0.15); border-top-color: currentColor; animation: cg-spin 0.8s linear infinite; }
@keyframes cg-spin { to { transform: rotate(360deg); } }

.cg-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 600 12px/1.3 Manrope, sans-serif; color: var(--ink-3); }
.cg-foot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.cg-more { color: #6a3fc4; }
.cg-next { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(60, 50, 40, 0.22); background: #fff; color: var(--ink); font: 800 12.5px/1 Manrope, sans-serif; transition: transform 0.15s ease; }

.cg-composer { flex: none; display: flex; align-items: center; gap: 12px; width: calc(100% - 48px); max-width: 680px; margin: 0 auto 18px; height: 56px; padding: 0 10px 0 18px; border-radius: 28px; background: #fff; border: 1px solid #e3e3e3; box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.12); }
.cg-composer-plus { flex: none; color: #5d5d5d; font-size: 24px; line-height: 1; font-weight: 300; }
.cg-input { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; color: #0d0d0d; }
.cg-input:empty::before { content: attr(data-ph); color: #8f8f8f; }
.cg-input .cg-mention img { width: 16px; height: 16px; }
.cg-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.17em; background: #0d0d0d; animation: cg-caret 1s steps(1) infinite; }
@keyframes cg-caret { 50% { opacity: 0; } }
.cg-mic { flex: none; color: #5d5d5d; }
.cg-mic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.cg-send { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0d0d0d; opacity: 0.25; transition: opacity 0.2s, transform 0.15s; }
.cg-send.is-ready { opacity: 1; }
.cg-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.cg-cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.3s; }
.cg-cursor.is-on { opacity: 1; }
.cg-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }
.cg-ripple { position: absolute; z-index: 8; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(217, 77, 130, 0.9); pointer-events: none; animation: cg-ripple 0.6s ease-out forwards; }
@keyframes cg-ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

.cg-cap { position: relative; z-index: 1; margin: 22px auto 0; text-align: center; font: 700 12px/1.4 Manrope, system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.cg-cap a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.cg-stage.is-fading .cg-feed { opacity: 0; transition: opacity 0.6s ease; }

@media (max-width: 620px) {
  .cg-win { height: 620px; border-radius: 18px; }
  .cg-side { display: none; }
  .cg-feed { padding: 12px 12px 24px; }
  .cg-me { max-width: 92%; font-size: 14.5px; }
  .cg-ai { font-size: 14.5px; }
  .cg-card { padding: 12px; }
  .cg-card-top .cg-beatn { display: none; }
  .cg-para { flex-direction: column; gap: 8px; }
  .cg-rail { width: auto; flex-direction: row; align-items: center; justify-content: flex-start; }
  .cg-steer, .cg-progress { margin-left: 0; }
  .cg-text { font-size: 14.5px; line-height: 1.68; }
  .cg-more { display: none; }
  .cg-composer { width: calc(100% - 20px); margin-bottom: 10px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-feed, .cg-msg, .cg-card, .cg-btn, .cg-ai li { transition: none; }
  .cg-btn.is-shine[data-tone="expand"], .cg-thinking, .cg-text.is-running::before { animation: none; }
}
