/* ============================================================
   CodePanel — components.md #5 (A–D), unified via `variant`
   ============================================================ */
.ds-code-macos { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xl); }
.ds-code-macos .ds-code-titlebar { background: #2d2d3a; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.ds-code-macos .ds-code-dots { display: flex; gap: 6px; }
.ds-code-macos .ds-dot { width: 12px; height: 12px; border-radius: 50%; }
.ds-code-macos .ds-dot-red { background: #ff5f56; }
.ds-code-macos .ds-dot-yellow { background: #ffbd2e; }
.ds-code-macos .ds-dot-green2 { background: #27c93f; }
.ds-code-macos .ds-code-filename { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); }
.ds-code-macos .ds-code-body { background: #1a1b26; padding: 24px; }
.ds-code-macos pre { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.9; color: #a9b1d6; margin: 0; white-space: pre-wrap; }

.ds-code-notebook { background: #fffef8; border: 1px solid #e8e4d9; border-radius: 4px; position: relative; box-shadow: 2px 3px 0 #e8e4d9; }
.ds-code-notebook .ds-code-holes { position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: rgba(232,74,95,0.2); }
.ds-code-notebook .ds-code-tab { padding: 8px 16px 8px 48px; border-bottom: 1px solid #e8e4d9; font-family: var(--font-hand); font-size: 1rem; color: var(--brand-primary); font-weight: 700; }
.ds-code-notebook pre { font-family: var(--font-mono); font-size: 0.8rem; line-height: 2.2; color: var(--text-body); margin: 0; padding: 16px 20px 16px 48px; background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(43,127,216,0.05) 31px, rgba(43,127,216,0.05) 32px); white-space: pre-wrap; }

.ds-code-typewriter { background: #f5f0e8; border: 2px solid #d4c9b5; padding: 32px 28px; position: relative; }
.ds-code-typewriter::before { content: 'TYPEWRITER OUTPUT'; position: absolute; top: -11px; left: 20px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 2px; color: var(--text-faint); background: #f5f0e8; padding: 0 8px; }
.ds-code-typewriter pre { font-family: var(--font-mono); font-size: 0.82rem; line-height: 2; color: var(--text-body); margin: 0; letter-spacing: 0.5px; white-space: pre-wrap; }
.ds-code-typewriter .ds-code-cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--text-body); vertical-align: middle; animation: ds-blink 1s step-end infinite; }

.ds-code-clean { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-xs); position: relative; }
.ds-code-clean .ds-code-corner-tag { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-faint); padding: 2px 8px; border: 1px solid var(--border-hairline-strong); border-radius: 4px; }
.ds-code-clean pre { font-family: var(--font-mono); font-size: 0.82rem; line-height: 2; color: var(--text-body); margin: 0; white-space: pre-wrap; }

@keyframes ds-blink { 50% { opacity: 0; } }

/* ============================================================
   ChatBubbles — components.md #7
   ============================================================ */
.ds-chat-container { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ds-chat-bubble { padding: 14px 20px; border-radius: 18px; max-width: 85%; font-size: 0.9rem; line-height: 1.6; }
.ds-chat-bubble--user { background: var(--brand-accent); color: var(--text-body); align-self: flex-end; border-bottom-right-radius: 4px; }
.ds-chat-bubble--ai { background: var(--brand-primary); color: var(--surface-page); align-self: flex-start; border-bottom-left-radius: 4px; }

/* ============================================================
   TypewriterSection — components.md #25
   ============================================================ */
.ds-typewriter-section { background: #faf8f5; color: #2a2a2a; padding: clamp(60px, 10vh, 120px) clamp(40px, 6vw, 100px); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.ds-type-header { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 400; border-bottom: 2px solid #333; display: inline-block; padding-bottom: 4px; margin-bottom: 2rem; }
.ds-type-content { font-family: var(--font-mono); font-size: 0.88rem; line-height: 2.4; max-width: 650px; }
.ds-type-content p { margin: 0; }
.ds-type-blank { height: 1.2em; }
.ds-type-warn { color: var(--brand-pop); font-weight: 700; }
.ds-type-cursor { display: inline-block; width: 8px; height: 1.2em; background: #333; animation: ds-cursor-blink 1s infinite; vertical-align: middle; margin-left: 4px; }
@keyframes ds-cursor-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
