:root {
  --bg: #0b0d14; --bg2: #11141f; --card: #161a28; --card2: #1d2233; --line: #262c40;
  --text: #eef0f6; --muted: #9aa3b8; --p1: #8b5cf6; --p2: #ec4899; --accent: #f59e0b;
  --danger: #ef4444; --ok: #22c55e; --radius: 16px; --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.5; }
body { min-height: 100vh; background: radial-gradient(900px 500px at 10% -10%, rgba(124, 92, 255, 0.25), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, 0.18), transparent 60%), var(--bg); }
a { color: var(--p2); }
.muted { color: var(--muted); } .small { font-size: 0.85rem; } .center { text-align: center; }
.grad { background: linear-gradient(90deg, #ec4899, var(--danger), #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; max-width: 1100px; margin: 0 auto; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.brand b { color: var(--p2); }
.logo { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #ec4899, var(--danger) 50%, #8b5cf6); display: inline-block; }
.userbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn { background: var(--card2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: 0.15s; }
.btn:hover { background: #242a3d; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--p1), #5b8def); border: none; color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; } .btn.small { padding: 6px 12px; font-size: 0.85rem; } .btn.tiny { padding: 4px 8px; font-size: 0.85rem; }
.btn.mic { border-color: rgba(239, 68, 68, 0.5); } .btn.mic.on { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(124, 92, 255, 0.15); color: #c4b5fd; font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(124, 92, 255, 0.35); }

.screen { max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; }
.hero { text-align: center; padding: 30px 0 10px; }
.avatars-hero { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.av-hero { background: var(--card); border: 2px solid var(--c); border-radius: 18px; padding: 10px 14px; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av-hero span { font-size: 2rem; } .av-hero b { font-size: 0.9rem; } .av-hero small { color: var(--c); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; margin: 10px 0; font-weight: 900; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 22px; font-size: 1.05rem; }
.idea-form { max-width: 640px; margin: 0 auto; text-align: left; }
.idea-label { display: block; font-weight: 700; margin-bottom: 6px; }
.idea-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.idea-box textarea, .founder-box textarea, .form input { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
.idea-box textarea { border: none; background: transparent; padding: 4px; min-height: 120px; }
.idea-box textarea:focus, .founder-box textarea:focus, .form input:focus { outline: 2px solid rgba(124, 92, 255, 0.5); }
.idea-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 30px auto; }
.how div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.how b { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--p1); color: #fff; text-align: center; line-height: 28px; margin-bottom: 8px; }
.how p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } }
.foot { text-align: center; color: var(--muted); padding: 30px 0 10px; font-size: 0.85rem; }
.foot a { color: var(--muted); }

.note { max-width: 1100px; margin: 10px auto; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; }
.note.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #bbf7d0; }
.note.info { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); color: #cffafe; white-space: pre-line; }
.note.err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; }
.banner.warn { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(255, 184, 0, 0.1); border: 1px solid rgba(255, 184, 0, 0.35); color: #ffe7a8; padding: 12px 16px; border-radius: 12px; margin: 12px auto; max-width: 1100px; font-size: 0.9rem; }

/* ---------- oda sahnesi (dikey, reel uyumlu) ---------- */
.stage { max-width: 520px; margin: 10px auto; background: #07080d; border: 1px solid var(--line); border-radius: 22px; padding: 14px; min-height: 80vh; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.investors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 8px; text-align: center; transition: 0.3s; opacity: 0.55; position: relative; }
.inv .em { font-size: 2.2rem; display: block; transition: 0.3s; }
.inv b { display: block; font-size: 0.85rem; margin-top: 4px; }
.inv small { color: var(--c); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.inv.active { opacity: 1; border-color: var(--c); transform: scale(1.06); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 10px 30px rgba(0, 0, 0, 0.5); }
.inv.active .em { animation: talk 0.5s infinite alternate; }
@keyframes talk { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.08); } }
.inv .wave { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; }
.inv.active .wave { display: flex; }
.inv .wave i { width: 3px; height: 8px; background: var(--c); border-radius: 2px; animation: wave 0.6s infinite ease-in-out; }
.inv .wave i:nth-child(2) { animation-delay: 0.15s; } .inv .wave i:nth-child(3) { animation-delay: 0.3s; } .inv .wave i:nth-child(4) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 16px; } }
.inv .verdict-badge { position: absolute; top: -8px; right: -6px; font-size: 0.65rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #000; border: 1px solid var(--line); }
.subtitle-box { flex: 1; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); border-radius: 16px; padding: 14px; min-height: 150px; }
.speaker-name { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.subtitle { font-size: 1.25rem; font-weight: 700; line-height: 1.35; min-height: 3em; }
.subtitle .w { opacity: 0.18; transition: opacity 0.12s; } .subtitle .w.on { opacity: 1; }
.subtitle .react { display: block; color: var(--muted); font-weight: 500; font-size: 1rem; margin-bottom: 6px; }
.thinking { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-top: 10px; }
.thinking span { width: 8px; height: 8px; border-radius: 50%; background: var(--p2); animation: blink 1s infinite; }
.thinking span:nth-child(2) { animation-delay: 0.2s; } .thinking span:nth-child(3) { animation-delay: 0.4s; }
.thinking em { margin-left: 8px; font-style: normal; font-size: 0.85rem; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.founder-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.founder-box.disabled { opacity: 0.5; pointer-events: none; }
.founder-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.answer-tools { display: flex; gap: 8px; margin-top: 8px; }
.answer-tools .btn { flex: 1; }
.rec { color: var(--danger); font-size: 0.8rem; margin-top: 6px; font-weight: 700; }
.idea-strip { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; max-height: 3.2em; overflow: hidden; }

/* ---------- değerleme kartı ---------- */
.vcard { max-width: 560px; margin: 16px auto; background: linear-gradient(160deg, #141826, #0b0d14); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.vcard-top { display: flex; justify-content: space-between; align-items: center; }
.score { font-weight: 900; } .score b { font-size: 2.4rem; color: var(--accent); } .score small { color: var(--muted); }
.vcard h1 { font-size: 1.6rem; margin: 10px 0 4px; }
.valuation { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 14px; padding: 10px 14px; margin: 14px 0; }
.valuation small { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.valuation b { font-size: 1.3rem; color: var(--p2); }
.decisions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.decisions li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.decisions .av { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 20%, transparent); border: 2px solid var(--c); display: grid; place-items: center; font-size: 1.4rem; }
.decisions b { font-size: 0.9rem; } .decisions li small { color: var(--muted); font-size: 0.72rem; }
.decisions p { margin: 2px 0 0; font-size: 0.82rem; color: #cdd3e3; }
.decisions strong { text-align: right; font-size: 0.8rem; display: flex; flex-direction: column; align-items: flex-end; }
.decisions strong small { font-size: 0.7rem; }
.d-yatirim strong { color: var(--ok); } .d-pas strong { color: var(--danger); } .d-belki strong { color: var(--accent); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.cols h4 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cols ul { margin: 0; padding-left: 18px; font-size: 0.85rem; }
.meme { margin: 14px 0 6px; font-weight: 700; font-style: italic; color: #fcd34d; }
.next { font-size: 0.9rem; color: #cdd3e3; }
.idea summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
.result-actions { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-actions .btn:first-child { grid-column: 1 / -1; }
.share-main { max-width: 600px; margin: 0 auto; padding: 16px; text-align: center; }
.share-main .vcard { text-align: left; }
.share-main .brand { justify-content: center; margin: 10px 0; }

/* ---------- odalarım ---------- */
.my-rooms { max-width: 760px; margin: 20px auto; }
.rooms-list { display: grid; gap: 10px; }
.room-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.room-item .t { font-weight: 700; } .room-item .i { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.room-item .s { font-weight: 900; color: var(--accent); font-size: 1.3rem; }

/* ---------- modal / form ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.75); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: min(440px, 100%); position: relative; box-shadow: var(--shadow); }
.close { position: absolute; right: 10px; top: 8px; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tab { flex: 1; background: none; border: none; color: var(--muted); padding: 8px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; }
.tab.active { background: var(--card2); color: var(--text); }
.form label { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.form label input { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: #cdd3e3; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--p1); }
#turnstile-box:empty { display: none; } #turnstile-box { margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2437; border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: 90vw; box-shadow: var(--shadow); font-size: 0.92rem; }
.toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--danger); }

/* ---------- oda kapısı: reklam ---------- */
.modal.rw { background: rgba(0, 0, 0, 0.92); }
.rw-card { width: min(900px, 100%); background: #000; border-radius: 16px; overflow: hidden; border: 1px solid #222; }
.rw-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #0a0a0a; }
.rw-timer { font-weight: 800; font-variant-numeric: tabular-nums; background: #fff; color: #000; padding: 4px 12px; border-radius: 999px; }
.rw-progress { height: 6px; background: #1a1a1a; }
.rw-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--p2)); transition: width 1s linear; }
.rw-stage { aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; }
.rw-stage video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#rw-adsense { width: 100%; height: 100%; }
.rw-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(700px 400px at 30% 20%, rgba(124, 92, 255, 0.35), transparent 60%), radial-gradient(600px 400px at 80% 90%, rgba(34, 211, 238, 0.3), transparent 60%), #0b0d14; }
.rw-fallback-inner { text-align: center; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rw-fallback-inner .logo.big { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 8px; }
.rw-fallback-inner h2 { font-size: 1.6rem; margin: 0; }
.rw-fallback-inner p { color: var(--muted); margin: 0 0 8px; max-width: 46ch; }
.sponsor-cta { margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; font-size: 0.9rem; display: inline-block; }
.sponsor-cta b { color: #fff; }
.rw-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #0a0a0a; flex-wrap: wrap; }
.rw-actions { display: flex; gap: 8px; margin-left: auto; }
.sp-custom { width: 100%; height: 100%; display: grid; grid-template-columns: 42% 1fr; background: #0b0d14; text-align: left; overflow: hidden; }
.sp-media { background: #f4f5f8; display: grid; place-items: center; padding: 10px; min-height: 0; }
.sp-media img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.sp-body { padding: 18px 22px; overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-label { align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.sp-body h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.sp-body p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: #d7dbe8; white-space: pre-line; }
.sp-btn { align-self: flex-start; margin-top: 4px; }
.sp-tags { color: var(--p2); font-size: 0.75rem; }
.sp-foot { color: var(--muted); font-size: 0.72rem; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.sp-foot b { color: var(--accent); }
@media (max-width: 640px) {
  .rw-stage:has(.sp-custom:not([hidden])) { aspect-ratio: auto; height: 70vh; }
  .sp-custom { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; }
  .sp-body { padding: 12px 14px; }
  .sp-body h2 { font-size: 1rem; }
  .sp-body p { font-size: 0.8rem; }
  .rw-fallback-inner h2 { font-size: 1.2rem; }
}

/* ---------- Mülakat Odası: karar bandı, CV kutusu ---------- */
.decision-banner { margin: 12px 0 8px; padding: 12px 16px; border-radius: 14px; text-align: center; font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; color: #0b0d14; }
.decision-banner.dec-ise_alindi { background: var(--ok); } .decision-banner.dec-ikinci_tur { background: var(--accent); } .decision-banner.dec-red { background: var(--danger); color: #fff; }
.position-line { color: var(--muted); font-size: 0.9rem; margin: 4px 0 10px; }
.d-evet strong { color: var(--ok); } .d-hayir strong { color: var(--danger); }
.cv-box textarea { min-height: 110px; }
.file-btn { cursor: pointer; } .file-btn.disabled { opacity: 0.5; pointer-events: none; }
.idea-form .idea-label + .idea-box { margin-top: 2px; }
.idea-form .idea-label { margin-top: 10px; }
.rw-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.foot a + a { margin-left: 0; }
#position { min-height: 64px; }

/* =================== Bin Prompt'luk Oyun =================== */
:root { --p1: #8b5cf6; --p2: #22d3ee; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
.logo { background: #fff; border-radius: 4px; width: 22px; height: 22px; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.45); }
.brand b { color: var(--p2); }
.live-pill { font-size: 0.8rem; color: #fecaca; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); padding: 4px 10px; border-radius: 999px; }
.live-pill b { color: #fff; }
.layout { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.game-col { position: sticky; top: 8px; }
@media (max-width: 860px) { .game-col { position: static; } }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; max-width: 440px; margin-left: auto; margin-right: auto; }
.game-tools { display: flex; gap: 6px; }
.pill.past { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.frame { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 2 / 3; max-height: 72vh; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 4px rgba(139, 92, 246, 0.18); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.flash { position: absolute; left: 12px; right: 12px; top: 12px; background: rgba(11, 13, 20, 0.92); border: 1px solid var(--p1); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.flash b { color: var(--p2); font-size: 1.1rem; } .flash span { font-size: 0.92rem; } .flash small { color: var(--ok); }
.flash.go { animation: flashIn 3.8s ease forwards; }
@keyframes flashIn { 0% { opacity: 0; transform: translateY(-10px) scale(0.97); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ver-prompt { max-width: 440px; margin: 10px auto 0; font-size: 0.95rem; }
.ver-prompt .by { color: #f472b6; font-weight: 600; }
.hint { max-width: 440px; margin: 6px auto 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.card h3 { margin: 0; font-size: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.code-card { background: #07080d; }
.live-prompt { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.4); border-radius: 10px; padding: 8px 10px; font-size: 0.88rem; margin-bottom: 8px; }
.live-prompt b { color: #f472b6; }
.code { margin: 0; height: 340px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.55; background: #05060a; border-radius: 10px; padding: 10px 0; counter-reset: ln; }
@media (max-width: 860px) { .code { height: 240px; } }
.code code { display: block; white-space: pre; }
.code .ln { display: block; padding: 0 12px 0 44px; position: relative; min-height: 1.55em; }
.code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 34px; text-align: right; color: #3b4258; }
.code .ln.new { background: rgba(34, 197, 94, 0.12); box-shadow: inset 3px 0 0 var(--ok); }
.code .ln.add { background: rgba(34, 197, 94, 0.12); color: #bbf7d0; }
.code .ln.del { background: rgba(239, 68, 68, 0.1); color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.5); }
.code .ln.mk { color: #6b7390; font-style: italic; }
.code .ln.mk::before, .code .ln.sum::before, .code .ln.red::before { content: ""; counter-increment: none; }
.code .ln.sep { height: 6px; min-height: 0; }
.code .ln.sum { color: #fcd34d; font-weight: 600; white-space: pre-wrap; } .code .ln.red { color: #fca5a5; font-weight: 600; white-space: pre-wrap; }
.code i { font-style: normal; } .code .k { color: #c084fc; } .code .s { color: #86efac; } .code .n { color: #fbbf24; } .code .c { color: #5b6480; }
.code .cursor { color: var(--p2); animation: blink 0.8s steps(1) infinite; padding-left: 44px; }
.prompt-card h3 { margin-bottom: 10px; }
.prompt-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.prompt-box textarea { width: 100%; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 1.05rem; resize: none; padding: 4px; outline: none; }
.prompt-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.chip { background: transparent; border: 1px dashed var(--line); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--p1); }
.my-status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); font-size: 0.9rem; }
.my-status.ok { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.4); }
.my-status.err { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.queue li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; background: var(--bg2); border-radius: 10px; padding: 7px 10px; font-size: 0.86rem; }
.queue li.running { border: 1px solid rgba(239, 68, 68, 0.5); }
.queue li.mine { box-shadow: inset 3px 0 0 var(--p2); }
.queue li.empty { display: block; background: none; }
.queue .qn { font-weight: 800; color: var(--muted); text-align: center; } .queue .qt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .queue .qa { color: #f472b6; font-size: 0.78rem; }

.timeline-sec { max-width: 1180px; margin: 26px auto 0; padding: 0 16px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-head h2 { margin: 0; font-size: 1.2rem; }
.tl-tools { display: flex; gap: 6px; align-items: center; }
.input { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 10px; font: inherit; }
.input.small { padding: 5px 8px; font-size: 0.85rem; }
#tl-range { width: 100%; margin: 14px 0 8px; accent-color: var(--p1); }
.timeline { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 12px; scroll-snap-type: x proximity; }
.tl-item { flex: 0 0 180px; scroll-snap-align: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; }
.tl-item::before { content: ""; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.tl-item:hover { border-color: var(--p1); }
.tl-item.on { border-color: var(--p2); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); } .tl-item.on::before { background: var(--p2); }
.tl-item.k-revert { border-style: dashed; } .tl-item.k-seed { background: #0f1220; }
.tl-n { font-weight: 900; color: var(--p2); font-size: 0.85rem; }
.tl-p { font-size: 0.86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.tl-a { color: #f472b6; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mine { max-width: 760px; margin: 26px auto 0; padding: 0 16px; }
.mine h2 { font-size: 1.2rem; }
.mine-list { display: grid; gap: 8px; }
.mine-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mine-item .t { font-weight: 600; }
.mine-actions { display: flex; gap: 6px; flex: none; }
.badge-s { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); }
.badge-s.ok { color: #86efac; border-color: rgba(34, 197, 94, 0.4); } .badge-s.bad { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); } .badge-s.warn { color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.share-actions { display: grid; gap: 8px; margin-top: 12px; }
.share-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-align: left; margin: 14px 0; }
.share-top { display: flex; justify-content: space-between; align-items: center; }
.share-card h1 { font-size: 1.5rem; margin: 12px 0 4px; }
.share-card .by { color: #f472b6; margin: 0 0 6px; }
.share-frame { margin: 12px auto; max-height: 64vh; }
.share-main .btn { margin: 4px; }
@media (max-width: 520px) { .topbar { padding: 10px 12px; } .brand { font-size: 0.95rem; } #me-name { display: none; } }
